/* Serve public MVP: one stylesheet for the game and the privacy page. */
/* Serve: warm food colours on light backgrounds. Plum for text, chili for you and for energy,
   pistachio for your rival, yolk for wins. Bricolage Grotesque for headings, Figtree for the rest. */
:root {
  --bg: #fdfaf9;
  --card: #ffffff;
  --field: #fffaf8;
  --ink: #2a1230;
  --soft: #765f78;
  --faint: #a6919f;
  --line: #f0e3e1;
  --line-strong: #e3cfcc;
  --a: #ff4b2b;          /* you */
  --b: #6fae4e;          /* your rival */
  --accent: #ff4b2b;
  --accent-ink: #d93a1d;  /* accent for text on light backgrounds */
  --yolk: #ffc53a;
  --blush: #ffe2d6;
  --good: #3f8a28;
  --warn: #b77d00;
  --bad: #c22d14;
  --chip: #fbeee9;
  --shadow: 0 1px 0 #f0e3e1, 0 8px 24px rgba(42,18,48,.05);
  --shadow-lift: 0 14px 34px rgba(42,18,48,.16);
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --voice: "Instrument Serif", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b0b20; --card: #26122c; --field: #21102a; --ink: #fbeee9; --soft: #c2a9bf; --faint: #8f7690;
    --line: #3a2240; --line-strong: #4a2f50; --a: #ff6a4d; --b: #8cc56a; --accent: #ff6a4d; --accent-ink: #ff8a6b;
    --blush: #3b1f2c; --good: #8cc56a; --chip: #321a38;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lift: 0 14px 34px rgba(0,0,0,.5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b0b20; --card: #26122c; --field: #21102a; --ink: #fbeee9; --soft: #c2a9bf; --faint: #8f7690;
  --line: #3a2240; --line-strong: #4a2f50; --a: #ff6a4d; --b: #8cc56a; --accent: #ff6a4d; --accent-ink: #ff8a6b;
  --blush: #3b1f2c; --good: #8cc56a; --chip: #321a38;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lift: 0 14px 34px rgba(0,0,0,.5); color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Numbers use tabular figures so scores line up. */
.num { font-family: "Figtree", system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
.wrap { max-width: 680px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.muted { color: var(--soft); }
.small { font-size: .875rem; line-height: 1.5; }
.kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.stack > * + * { margin-top: 14px; }
.stack > .kicker + * { margin-top: 6px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card, .card + .demo-banner + .card { margin-top: 12px; }
@media (min-width: 560px) { .card { padding: 24px; } }

/* ---------- forms ---------- */
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
label .muted { font-weight: 500; }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--field); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 10px 14px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
input[readonly] { color: var(--soft); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a9098' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea { resize: vertical; min-height: 76px; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field + .field { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.err { color: var(--bad); font-weight: 500; }
.hint { margin-top: 6px; }

/* ---------- buttons ---------- */
button, .btn {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; border-radius: 999px; padding: 10px 20px; min-height: 46px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .05s, filter .15s;
}
button:hover:not(:disabled), .btn:hover { border-color: var(--faint); color: var(--ink); }
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent); }
button.primary:hover:not(:disabled), .btn.primary:hover { color: #fff; filter: brightness(1.06); }
button.accent, .btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
button.accent:hover:not(:disabled), .btn.accent:hover { color: #fff; filter: brightness(1.06); }
button.ghost { background: transparent; border-color: transparent; color: var(--soft); }
button.ghost:hover:not(:disabled) { background: var(--chip); border-color: transparent; }
button.small, .btn.small { min-height: 38px; padding: 6px 14px; font-size: .875rem; }
button.icon { width: 38px; min-height: 38px; height: 38px; padding: 0; font-size: 1.1rem; line-height: 1; flex: none; }
button:disabled { opacity: .4; cursor: default; }
.wide { width: 100%; }

/* ---------- small bits ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--chip); color: var(--soft); font-size: .8rem; font-weight: 600; line-height: 1.3; }
.chip.on { background: var(--ink); color: var(--bg); }
.chip.good { background: color-mix(in srgb, var(--b) 18%, var(--card)); color: var(--good); }
.chip.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.a { background: var(--a); } .dot.b { background: var(--b); }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; max-width: calc(100% - 32px); width: max-content;
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lift); text-align: center;
}

/* ---------- header and brand ---------- */
.top { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: .16em; font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.055em; line-height: 1; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .egg { width: 1.45em; height: 1.45em; margin: -.2em 0; }
.top .who-line { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- landing ---------- */
.hero { padding: 32px 0 36px; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; margin-top: 12px; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero p.lead { font-size: 1.12rem; line-height: 1.6; color: var(--soft); margin-top: 18px; max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.hero-cta .muted { font-size: .875rem; }

.preview { margin-top: 32px; padding: 18px 20px; max-width: 460px; }
.preview .preview-head { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--soft); font-weight: 600; margin-bottom: 12px; }
.versus { display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 12px; }
.versus + .versus { margin-top: 10px; }
.versus .name { display: flex; align-items: center; gap: 7px; font-size: .875rem; font-weight: 600; }
.versus .bar { height: 10px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.versus .bar i { display: block; height: 100%; border-radius: 999px; }
.versus b { text-align: right; font-size: 1.05rem; }

.section-title { margin: 48px 0 16px; }
.section-title h2 { font-size: 1.6rem; margin-top: 6px; }
.how { display: grid; gap: 12px; grid-template-columns: 1fr; }
.how .card { margin: 0; }
.how .card h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.how .step {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent-ink);
  font-family: var(--display); font-weight: 700; font-size: .9rem;
}
@media (min-width: 560px) { .how { grid-template-columns: 1fr 1fr; } }

#join { scroll-margin-top: 16px; }
#join h2 { font-size: 1.5rem; }
.foot { margin-top: 48px; padding: 24px 0 48px; border-top: 1px solid var(--line); color: var(--soft); font-size: .85rem; line-height: 1.6; }
.foot a { color: inherit; }
.done-box { text-align: center; padding: 20px 0; }
.done-box .big { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; }
.done-box p { max-width: 28em; margin-left: auto; margin-right: auto; }

/* ---------- app ---------- */
main.app { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.app > .card:first-child { margin-top: 4px; }
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift); width: min(420px, calc(100% - 24px));
}
.tabbar button { border: 0; background: transparent; padding: 8px 6px; min-height: 44px; color: var(--soft); font-size: .9rem; }
.tabbar button:hover:not(:disabled) { color: var(--ink); background: var(--chip); }
.tabbar button[aria-current="page"], .tabbar button[aria-current="page"]:hover { background: var(--ink); color: var(--bg); font-weight: 700; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head + * { margin-top: 12px; }
.daynav { display: flex; align-items: center; gap: 8px; }
.daynav h2 { flex: 1; text-align: center; font-size: 1.15rem; }

.hello { font-family: var(--display); font-weight: 800; font-size: 1.75rem; letter-spacing: -.04em; line-height: 1.05; margin-top: 16px; }
.hello em { font-family: var(--voice); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--accent); font-size: 1.1em; }
.today-stats { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 20px; }
.stat .val { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.stat .unit { font-size: .95rem; color: var(--soft); font-weight: 500; margin-left: 4px; }
.stat .lbl { font-size: .8rem; color: var(--soft); font-weight: 600; margin-top: 6px; }
.stat.right { text-align: right; }
.stat.right .val { font-size: 1.9rem; }

.meter { position: relative; height: 12px; border-radius: 999px; background: var(--chip); margin: 18px 0 8px; overflow: hidden; }
.meter .zone { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--good) 28%, transparent); box-shadow: inset 2px 0 0 var(--good), inset -2px 0 0 var(--good); }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); }
.meter .fill.over { background: var(--ink); }
.meter-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.meter-labels .zone-label { color: var(--good); font-weight: 600; }
.pointrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.list { list-style: none; padding: 0; margin: 8px 0 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .what { flex: 1; min-width: 0; }
.list .what b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .what span { display: block; }
.list .k { font-weight: 700; white-space: nowrap; }
.list .k small { font-weight: 500; color: var(--soft); font-size: .8rem; margin-left: 2px; }
.list button.ghost { width: 34px; min-height: 34px; height: 34px; padding: 0; margin-right: -6px; }
.empty { color: var(--soft); font-size: .9rem; padding: 14px 16px; margin-top: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); text-align: center; }

.subform { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.subform-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }

.est { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--chip); font-size: .9rem; white-space: pre-line; line-height: 1.6; }
.est.working { color: var(--soft); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.checks label {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: .875rem; padding: 8px 14px 8px 10px;
  background: var(--chip); border: 1px solid transparent; border-radius: 999px; margin: 0; cursor: pointer; min-height: 40px;
}
.checks label:has(input:checked) { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.checks label:has(input:disabled) { opacity: .55; cursor: default; }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.invite-box { display: flex; gap: 8px; }
.invite-box input { font-size: .9rem; min-width: 0; }

.score-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; margin-top: 18px; }
.score-head .who { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 7px; justify-content: center; min-width: 0; }
.score-head .who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-head .pts { font-family: var(--display); font-size: 3.2rem; font-weight: 800; line-height: 1; margin-top: 8px; letter-spacing: -.05em; }
.score-head .vs { color: var(--faint); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.lead-line { text-align: center; margin-top: 14px; font-weight: 600; }
.race-bar { display: flex; gap: 3px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--chip); margin-top: 18px; }
.race-bar i { display: block; height: 100%; min-width: 4px; }
.race-bar i:first-child { border-radius: 999px 0 0 999px; } .race-bar i:last-child { border-radius: 0 999px 999px 0; }
.race-bar .a { background: var(--a); } .race-bar .b { background: var(--b); }
.race-meta { text-align: center; margin-top: 8px; }

table.days { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; margin-top: 8px; }
table.days th, table.days td { padding: 11px 4px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
table.days th { font-size: .78rem; color: var(--soft); font-weight: 600; padding-top: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.days th:not(:first-child), table.days td:not(:first-child) { width: 92px; }
table.days td.num { font-weight: 700; font-size: 1rem; }
table.days td:first-child, table.days th:first-child { text-align: left; }
table.days tbody tr:last-child td { border-bottom: 0; }
table.days tfoot td { border-top: 1px solid var(--line-strong); border-bottom: 0; padding-top: 12px; }
table.days .today td:first-child summary { font-weight: 700; }
table.days .today td:first-child summary::after { content: "Today"; margin-left: 8px; font-size: .7rem; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
table.days summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
table.days summary::-webkit-details-marker { display: none; }
table.days summary::before {
  content: ""; width: 7px; height: 7px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(-45deg); transition: transform .15s; margin: 0 4px 0 2px; flex: none;
}
table.days details[open] summary::before { transform: rotate(45deg); }
table.days .day-detail { text-align: left; margin-top: 8px; padding: 10px 12px; background: var(--chip); border-radius: 10px; line-height: 1.6; }

.prize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prize { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--field); }
.prize .who { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .85rem; color: var(--soft); }
.prize p { margin-top: 8px; font-size: .95rem; }
.pick-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; }

.week-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.week-row:last-child { border-bottom: 0; }
.week-row .score { font-weight: 700; font-size: 1.05rem; }
.record { display: flex; gap: 10px; margin: 16px 0 8px; }
.record > div { flex: 1; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--chip); }
.record .num { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.record .who { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--soft); }

.demo-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: color-mix(in srgb, var(--yolk) 22%, var(--card)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--yolk) 55%, transparent);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .85rem; line-height: 1.5; margin: 0 0 12px;
}
.rules { margin: 12px 0 0; padding-left: 20px; }
.rules li { margin: 6px 0; }
.rules li::marker { color: var(--faint); }
.account-row { display: flex; align-items: center; gap: 12px; }

@media (max-width: 480px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 > :nth-child(3) { grid-column: 1 / -1; }
  .score-head .pts { font-size: 2.7rem; }
  .prize-grid { grid-template-columns: 1fr; }
  .pick-form { grid-template-columns: 1fr; }
  .pick-form button { width: 100%; }
  .stat .val { font-size: 2.3rem; }
}

/* ---------- privacy and consent ---------- */
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font-size: .95rem; margin-top: 18px; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.legal ul { margin: 0; padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--faint); }
.legal ul ul { margin-top: 8px; }
.legal.stack > h3 + * { margin-top: 6px; }
.consent { display: grid; gap: 12px; padding: 14px; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.consent label { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-weight: 500; font-size: .9rem; line-height: 1.5; margin: 0; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.rules b { color: var(--ink); font-weight: 600; }

/* Serve: the week race as two bars, like the home page */
.vs-bars { display: grid; gap: 10px; margin-top: 18px; }
.vs-bars .r { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; }
.vs-bars .r span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-bars .r i { height: 12px; border-radius: 999px; background: var(--chip); overflow: hidden; display: block; }
.vs-bars .r i em { display: block; height: 100%; border-radius: 999px; background: var(--a); transition: width .8s cubic-bezier(.3,1.2,.4,1); }
.vs-bars .r.b i em { background: var(--b); }
.vs-bars .r b { font-family: var(--display); font-size: 1.9rem; letter-spacing: -.04em; text-align: right; font-variant-numeric: tabular-nums; }
.lead-tag { display: inline-block; margin-left: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--yolk); color: #2a1230; padding: 1px 7px; border-radius: 999px; vertical-align: 2px; }
.lead-line .served { font-family: var(--display); font-weight: 800; color: var(--accent); font-size: 1.3em; letter-spacing: -.04em; }
.vs-bars .r span .lead-tag { font-style: normal; }

/* Meal photos */
.thumb { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: cover; background: var(--chip); cursor: zoom-in; display: block; }
.thumb.none { cursor: default; border: 1px dashed var(--line-strong); background: transparent; }
.thumb.sm { width: 36px; height: 36px; border-radius: 8px; }
.thumb.missing { cursor: default; }
table.days .day-detail { min-width: min(250px, 62vw); }
.dmeal { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.photo-pick { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.photo-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; cursor: pointer; overflow: hidden; }
.photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.photo-btn:focus-within { outline: 2px solid var(--accent, var(--ink)); outline-offset: 2px; }
.photo-preview { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius-sm); }
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 90vh; }
.viewer::backdrop { background: rgba(15, 10, 20, .8); }
.viewer img { display: block; max-width: 100%; max-height: 85vh; border-radius: 14px; }
.viewer form { position: absolute; top: 8px; right: 8px; margin: 0; }
.viewer-close { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; border: 0; }
