/* Spoon Fight · UI v4 (based on v3 ("minimal premium"). Colours are tokens with a light and a dark theme. */
:root{
  --bg:#F4F4F5; --surface:#FFFFFF; --sunk:#FAFAFA; --ink:#09090B; --ink2:#3F3F46; --muted:#52525B; --muted2:#71717A; --faint:#A1A1AA;
  --line:#E4E4E7; --line2:#F4F4F5; --ring:rgba(9,9,11,.06); --table:#A1A1AA;
  --you:#2546F0; --you-text:#1D3BD8; --you-soft:#EEF2FF; --you-line:#C7D2FE;
  --rival:#D61F69; --rival-text:#A3134F; --rival-soft:#FDF2F7; --rival-line:#F5C2D7;
  --bad:#DC2626; --bad-text:#B91C1C; --bad-soft:#FEF2F2; --bad-line:#FECACA; --good:#15803D;
  --red1:#E8392B; --red2:#C8201A; --red3:#8A1610; --gold1:#FFF27A; --gold2:#FFD21F; --gold3:#F5A800; --gold-ink:#7A1A0E;
  --hero:#09090B; --hero-ink:#FFFFFF; --hero-muted:#D4D4D8;
  --body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif; --display:"Inter Tight","Inter",system-ui,sans-serif; --fun:"Luckiest Guy","Inter Tight",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0B0B0D; --surface:#17171A; --sunk:#1F1F23; --ink:#F4F4F5; --ink2:#D4D4D8; --muted:#A1A1AA; --muted2:#8B8B93; --faint:#6B6B73;
  --line:#2E2E33; --line2:#222226; --ring:rgba(255,255,255,.07); --table:#6B6B73;
  --you:#6B8AFF; --you-text:#9DB0FF; --you-soft:#1B2347; --you-line:#34407A;
  --rival:#F0569A; --rival-text:#F68DBA; --rival-soft:#3A1527; --rival-line:#6B2747;
  --bad:#F87171; --bad-text:#FCA5A5; --bad-soft:#3A1515; --bad-line:#6B2525; --good:#4ADE80;
  --hero:#000000; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0B0B0D; --surface:#17171A; --sunk:#1F1F23; --ink:#F4F4F5; --ink2:#D4D4D8; --muted:#A1A1AA; --muted2:#8B8B93; --faint:#6B6B73;
  --line:#2E2E33; --line2:#222226; --ring:rgba(255,255,255,.07); --table:#6B6B73;
  --you:#6B8AFF; --you-text:#9DB0FF; --you-soft:#1B2347; --you-line:#34407A;
  --rival:#F0569A; --rival-text:#F68DBA; --rival-soft:#3A1527; --rival-line:#6B2747;
  --bad:#F87171; --bad-text:#FCA5A5; --bad-soft:#3A1515; --bad-line:#6B2525; --good:#4ADE80;
  --hero:#000000; color-scheme:dark}

*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.wrap{max-width:1400px;margin:0 auto;padding:16px 24px 40px;display:grid;gap:16px}
@media (max-width:700px){.wrap{padding:12px 0 32px}}
h1,h2,h3{margin:0;font-family:var(--display);letter-spacing:-.02em;line-height:1.15;text-wrap:balance}
p{margin:0}
button{font:inherit;color:inherit}
.hidden{display:none!important}
.muted{color:var(--muted)} .muted2{color:var(--muted2)} .faint{color:var(--faint)}
.num{font-family:var(--display);font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ic{flex:none;vertical-align:middle}
.inl{display:inline-flex;align-items:center;gap:6px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.stack{display:grid;gap:14px;align-content:start}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.dot{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}
.dot.you{background:var(--you)} .dot.rival{background:var(--rival)} .dot.round{border-radius:50%;width:8px;height:8px}
.pos{color:var(--good)} .neg{color:var(--bad-text)}

/* gold logo lettering for celebration numbers */
.gold{font-family:var(--fun);font-weight:400;letter-spacing:0;line-height:1;background:linear-gradient(180deg,var(--gold1) 0%,var(--gold2) 45%,var(--gold3) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:2px var(--gold-ink);filter:drop-shadow(0 3px 0 var(--gold-ink))}
.gold.sm{-webkit-text-stroke:1.5px var(--gold-ink);filter:drop-shadow(0 2px 0 var(--gold-ink))}

/* ---------- header ---------- */
.bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:18px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.bar .logo{display:block;width:62px;height:50px} .bar .logo .badge{width:100%;height:100%;display:block}
.bar .mid{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.bar .mid .day{font-size:13px;color:var(--muted)} .bar .mid .day b{color:var(--ink)}
.bar .tools{display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:nowrap;font-size:13px;color:var(--muted2)}
.bar .tools>span{margin-right:4px;white-space:nowrap}
@media (max-width:1100px){.bar{grid-template-columns:auto 1fr auto}.bar .mid{grid-column:1/-1;order:4}.bar .pills{order:3;grid-column:1/-1}}
/* the day's steps as one progress bar */
.pgbar{display:grid;gap:6px;width:min(440px,100%)}
.pgbar .ph{display:flex;justify-content:space-between;align-items:baseline;gap:12px} .pgbar .ph .gold{font-size:20px} .pgbar .ph b{font-size:14px}
.pgbar .track{position:relative;height:12px;border-radius:6px;background:var(--line);overflow:hidden}
.pgbar .track i{display:block;height:100%;background:linear-gradient(90deg,var(--gold3),var(--gold2));border-radius:6px 0 0 6px}
.pgbar .track s{position:absolute;top:0;width:3px;height:100%;background:var(--bg)}
.pgbar .lbls{display:flex} .pgbar .lbls span{flex:1;text-align:center;font-size:11px;font-weight:600;color:var(--faint)}
.pgbar .lbls span.done{color:var(--muted2)} .pgbar .lbls span.on{color:var(--gold-ink);font-weight:800}
:root[data-theme="dark"] .pgbar .lbls span.on{color:var(--gold2)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .pgbar .lbls span.on{color:var(--gold2)}}
.pills{display:flex;gap:10px;flex-wrap:wrap}
.pill{display:flex;align-items:center;gap:10px;height:48px;padding:0 16px;border-radius:16px;font-size:14px}
.pill b{font-weight:700} .pill .num{font-size:20px} .pill .st{font-size:12px}
.pill.you{background:var(--you-soft);box-shadow:inset 0 0 0 1px var(--you-line)} .pill.you b{color:var(--you-text)}
.pill.rival{background:var(--rival-soft);box-shadow:inset 0 0 0 1px var(--rival-line)} .pill.rival b,.pill.rival .st{color:var(--rival-text)} .pill.rival .num{font-size:17px}
.pill .loc{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:2px 8px;border-radius:999px;background:var(--surface);color:var(--rival-text);box-shadow:inset 0 0 0 1px var(--rival-line)}
.ministars{display:inline-flex;gap:1px;font-size:14px;line-height:1;font-style:normal} .ministars i{font-style:normal;color:var(--line)} .ministars i.on{color:var(--gold3)}
.btn.help{width:40px;height:40px;padding:0;font-size:16px;font-weight:700}
.progress{display:flex;align-items:center;list-style:none;margin:0;padding:0;font-size:12px;color:var(--faint);flex-wrap:wrap;justify-content:center}
.progress li{display:flex;align-items:center;gap:6px}
.progress li .pd{width:8px;height:8px;border-radius:50%;border:1.5px solid var(--line)}
.progress li.done .pd{background:var(--faint);border-color:var(--faint)}
.progress li.on{color:var(--ink);font-weight:700}
.progress li.on .pd{width:10px;height:10px;background:var(--ink);border-color:var(--ink);box-shadow:0 0 0 4px var(--line)}
.progress li.sep{width:22px;height:1px;background:var(--line);margin:0 8px}

/* ---------- buttons ---------- */
.btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);
  border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;min-height:34px;text-decoration:none}
.btn:hover{border-color:var(--ink)}
.btn:focus-visible,.cta:focus-visible,.choice:focus-visible,.item:focus-visible,.ad:focus-visible,.acc-h:focus-visible,input:focus-visible,.stepper button:focus-visible{outline:2px solid var(--you);outline-offset:2px}
.cta{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;border:0;border-radius:14px;padding:14px 18px;
  font-size:16px;font-weight:700;cursor:pointer;color:#fff;background:linear-gradient(180deg,var(--red1) 0%,var(--red2) 100%);
  box-shadow:0 3px 0 var(--red3),0 12px 24px -12px rgba(200,32,26,.7);transition:transform .08s ease,box-shadow .08s ease;text-align:center}
.cta:hover{filter:brightness(1.05)} .cta:active{transform:translateY(2px);box-shadow:0 1px 0 var(--red3)}
.cta small{font-size:12px;font-weight:500;color:#FECACA}
.cta.inline{width:auto;display:inline-flex;flex-direction:row}
.cta.outline{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.cta.outline small{color:var(--muted2)}
.ink-btn{appearance:none;border:0;border-radius:12px;padding:12px 16px;background:var(--ink);color:var(--surface);font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left}
.ink-btn small{display:block;font-size:12px;font-weight:500;opacity:.7}
.line-btn{appearance:none;border:1px solid var(--line);border-radius:12px;padding:12px 16px;background:var(--surface);color:var(--ink);font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
.line-btn small{display:block;font-size:12px;font-weight:500;color:var(--muted2)}
kbd{font:600 11px/1 var(--body);padding:3px 6px;border-radius:5px;background:rgba(127,127,127,.18)}
.linkish{appearance:none;border:0;background:none;padding:0;color:var(--ink2);font-weight:600;text-decoration:underline;cursor:pointer}

/* ---------- surfaces ---------- */
.panel{background:var(--surface);border-radius:18px;padding:18px;box-shadow:0 0 0 1px var(--ring);display:grid;gap:12px;align-content:start;min-width:0}
.panel.lift{box-shadow:0 0 0 1px var(--ring),0 24px 48px -28px rgba(9,9,11,.18)}
.panel.edge{box-shadow:0 0 0 1.5px var(--ink)}
.panel h2{font-size:15px;font-family:var(--body);font-weight:700;letter-spacing:0}
.panel .sub{font-size:13px;color:var(--muted)}
.tile{background:var(--sunk);border-radius:12px;padding:10px 12px;display:grid;gap:2px;min-width:0}
.tile .k{font-size:12px;color:var(--muted2)} .tile .v{font-family:var(--display);font-weight:700;font-size:22px;letter-spacing:-.02em}
.tile .s{font-size:12px;color:var(--muted)}
.tile.bad{background:var(--bad-soft);box-shadow:inset 0 0 0 1px var(--bad-line)} .tile.bad .k,.tile.bad .v,.tile.bad .s{color:var(--bad-text)}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tiles.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.lines{display:grid;font-size:13px}
.lines>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0}
.lines>div+div{border-top:1px solid var(--line2)}
.lines .tot{border-top:1.5px solid var(--ink)!important;font-size:15px;font-weight:700;padding-top:10px}
.callout{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--ring);font-size:13px;color:var(--ink2)}
.callout b{color:var(--ink);display:block;font-size:14px}
.callout.bad{background:var(--bad-soft);box-shadow:0 0 0 1.5px var(--bad);color:var(--bad-text)} .callout.bad b{color:var(--bad-text)}
.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px}
.chips .lbl{font-weight:600;color:var(--muted)}
.chips span.c{padding:3px 10px;border-radius:999px;background:var(--line2);color:var(--ink2)}
.chips span.c.bad{background:var(--bad-soft);color:var(--bad-text)}
.wait{display:flex;align-items:center;gap:10px;color:var(--ink2);font-size:14px}
.wait .dot{animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.wait .dot{animation:none}}
.err{color:var(--bad-text);font-size:13px}

/* main two-column game layout */
.game{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}
.game>*{min-width:0}
@media (max-width:1000px){.game{grid-template-columns:1fr}}
.title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.title h1{font-size:22px}
.title .sub{font-size:13px;color:var(--muted)}

/* status strip: you + rival */
.status{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px}
@media (max-width:1000px){.status{grid-template-columns:1fr}}
.me{display:grid;grid-template-columns:auto repeat(4,minmax(0,1fr));align-items:center;padding:12px 20px;background:var(--surface);border-radius:14px;box-shadow:0 0 0 1px var(--ring)}
.me>div{display:flex;flex-direction:column;min-width:0}
.me>div+div{padding-left:18px;border-left:1px solid var(--line2)}
.me>div:first-child{flex-direction:row;align-items:center;gap:10px;padding-right:20px}
.me .k{font-size:12px;color:var(--muted2)} .me .v{font-family:var(--display);font-size:22px;font-weight:700;letter-spacing:-.02em}
.me .v small{font-family:var(--body);font-size:12px;font-weight:500;color:var(--muted2);letter-spacing:0}
.me .k.bad{color:var(--bad-text);font-weight:600}
.who b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .who span{font-size:12px;color:var(--muted2)}
.them{display:flex;align-items:center;gap:12px;padding:12px 18px;background:var(--surface);border-radius:14px;box-shadow:0 0 0 1px var(--ring)}
.them .who{flex:1;min-width:0}
.them .st{font-size:12px;color:var(--muted)}
@media (max-width:700px){.me{grid-template-columns:1fr 1fr;gap:10px}.me>div+div{padding-left:0;border-left:0}.me>div:first-child{grid-column:1/-1}}

/* ---------- floor plan ---------- */
.floor{width:100%;height:auto;display:block;font-family:var(--body)}
.floor .street{fill:var(--sunk)} .floor .room{fill:var(--surface)} .floor .wall{fill:none;stroke:var(--ink);stroke-width:3}
.floor .split{stroke:var(--line);stroke-width:2} .floor .patio{fill:var(--surface);stroke:var(--line);stroke-width:1.5}
.floor .zone{font-size:11px;font-weight:700;fill:var(--muted2);letter-spacing:1px} .floor .zone.mid{text-anchor:middle} .floor .zone.bad{fill:var(--bad-text)}
.floor .tbl .top{fill:var(--surface);stroke:var(--table);stroke-width:2}
.floor .tbl.blocked .top{fill:url(#rr-hatch);stroke:var(--line)} .floor .tbl.fake .top{fill:url(#rr-hatch-m);stroke:var(--rival-line)}
.floor .tbl.borrowed .top{stroke:var(--you);stroke-width:2.5;stroke-dasharray:6 5}
.floor .tbl.new .top{stroke:var(--ink);stroke-width:2.5}
.floor .tbl.arriving .top{fill:var(--you-soft);stroke:var(--you-line);stroke-dasharray:6 5}
.floor .spin{fill:none;stroke:var(--you);stroke-width:4;stroke-dasharray:20 60;transform-box:fill-box;transform-origin:center;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.floor .rim{fill:var(--surface);stroke:var(--table);stroke-width:2} .floor .dish{fill:var(--ink)} .floor .guest{fill:var(--ink)}
.floor .chair{fill:none;stroke:var(--table);stroke-width:2}
.floor .tag-bg{fill:var(--surface)} .floor .tag{font-size:12px;font-weight:600;fill:var(--muted);text-anchor:middle} .floor .tag.m{fill:var(--rival-text)}
.floor .new-bg{fill:var(--ink)} .floor .new-t{font-size:11px;font-weight:700;fill:var(--surface);text-anchor:middle}
.floor .waiting{fill:var(--muted)} .floor .left{fill:var(--surface);stroke:var(--bad);stroke-width:2.2}
.floor .out-t{font-size:12px;font-weight:600;fill:var(--ink);text-anchor:middle} .floor .out-t.bad{fill:var(--bad-text)}
.floor .chip-bg{fill:var(--ink)} .floor .chip-bg.soft{fill:var(--line2)} .floor .chip-t{font-size:12px;font-weight:700;fill:var(--surface);text-anchor:middle} .floor .chip-t.ink{fill:var(--ink)}
.floor .incoming{fill:none;stroke:var(--you);stroke-width:3;stroke-dasharray:4 4}
.floor .note{font-size:14px;font-weight:500;fill:var(--faint);text-anchor:middle} .floor .note.sm{font-size:12px;fill:var(--muted2)}
.floor .bubble{fill:var(--surface);stroke:var(--ink);stroke-width:2}
.floor .more{fill:var(--ink)} .floor .more-t{font-size:16px;font-weight:700;fill:var(--surface);text-anchor:middle}
.floor .tbl{transition:opacity .3s ease}
.key{display:flex;flex-wrap:wrap;gap:16px;font-size:12px;color:var(--muted);align-items:center}
.key span{display:inline-flex;align-items:center;gap:6px}
.key svg{flex:none}
.ic.plate .rim{fill:var(--surface);stroke:var(--table);stroke-width:2} .ic.plate .dish{fill:var(--ink)}
.stars{display:inline-flex;gap:2px} .ic.star{fill:var(--line)} .ic.star.on{fill:var(--ink)}

/* ---------- landing ---------- */
.landing{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:48px;align-items:center}
@media (max-width:1000px){.landing{grid-template-columns:1fr;gap:24px}}
.keyart{position:relative;margin:0}
.keyart img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:28px;box-shadow:0 0 0 1px var(--ring),0 40px 80px -40px rgba(9,9,11,.45)}
.vs{position:absolute;left:20px;bottom:20px;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.92);color:#09090B;font-size:13px;font-weight:600}
.vs .faint{color:#A1A1AA}
.pitch{display:grid;gap:22px}
.pitch .eyebrow{font-size:13px;font-weight:600;color:var(--muted)}
.headline{font-family:var(--display);font-size:44px;line-height:1.08;font-weight:800;letter-spacing:-.04em;display:grid;gap:8px}
.headline .sub2{font-size:24px;font-weight:700;color:var(--ink2);letter-spacing:-.02em}
.landing-badge{display:block;width:160px} .landing-badge .badge{width:100%;height:auto;display:block}
.headline>span{display:flex;align-items:baseline;gap:14px}
.headline .gold{font-size:66px;-webkit-text-stroke:2.5px var(--gold-ink);filter:drop-shadow(0 4px 0 var(--gold-ink))}
@media (max-width:700px){.headline{font-size:36px}.headline .gold{font-size:46px}}
.pitch p{font-size:16px;line-height:1.55;color:var(--ink2);max-width:46ch}
.field{display:grid;gap:6px}
.field label{font-size:13px;font-weight:600} .field label span{color:var(--muted2);font-weight:500}
input[type=text]{font:inherit;font-size:16px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);width:100%;max-width:320px}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:560px){.choices{grid-template-columns:1fr}}
.choice-card{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--ring);margin:0}
.choice-card b{font-size:16px;display:block} .choice-card .sub{display:block;font-size:13px;color:var(--muted);line-height:1.4}
.choice-card .cta{margin-top:auto;font-size:15px;padding:12px 16px;border-radius:12px}
.join{display:flex;gap:8px}
.join input{flex:1 1 auto;min-width:0;max-width:none;font-family:var(--display);font-size:18px;font-weight:700;letter-spacing:.3em;text-transform:uppercase;text-align:center;background:var(--sunk);padding:10px 8px}
.join .cta{width:auto;padding:10px 18px;font-size:15px;border-radius:12px}
.resume{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:var(--you-soft);color:var(--you-text);font-weight:600;border:0;cursor:pointer;font-size:14px}
.five{background:var(--surface);border-radius:22px;padding:22px 24px;box-shadow:0 0 0 1px var(--ring);display:grid;gap:14px}
.five ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
@media (max-width:900px){.five ol{grid-template-columns:1fr 1fr}}
.five li{display:flex;gap:12px;align-items:flex-start}
.five .ib{flex:none;width:36px;height:36px;border-radius:10px;background:var(--line2);display:grid;place-items:center}
.five li b{display:flex;align-items:baseline;gap:8px;font-size:15px}
.five li b .gold{font-size:24px}
.five li span.d{font-size:13px;color:var(--muted);line-height:1.4}
.fine{font-size:12px;color:var(--muted2);text-align:center}

/* ---------- how to play drawer ---------- */
.overlay{position:fixed;inset:0;background:rgba(9,9,11,.45);z-index:20;animation:fade .2s ease}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(540px,100%);background:var(--surface);z-index:21;display:flex;flex-direction:column;box-shadow:-24px 0 64px -24px rgba(9,9,11,.5);animation:slide .25s ease}
@keyframes fade{from{opacity:0}} @keyframes slide{from{transform:translateX(40px);opacity:0}}
@media (prefers-reduced-motion:reduce){.overlay,.drawer{animation:none}}
.drawer header{display:flex;align-items:center;justify-content:space-between;padding:22px 28px 18px;border-bottom:1px solid var(--line2)}
.drawer header h1{font-size:26px;font-weight:800}
.drawer .body{flex:1;overflow-y:auto;padding:22px 28px;display:grid;gap:22px;align-content:start}
.drawer footer{padding:16px 28px 22px;border-top:1px solid var(--line2)}
.short{display:grid;gap:14px;padding:20px;border-radius:18px;background:var(--sunk);box-shadow:0 0 0 1px var(--ring)}
.short ol{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.short li{display:flex;gap:14px;align-items:flex-start;font-size:16px;line-height:1.45}
.short li .gold{font-size:26px;width:22px;flex:none}
.acc{border-top:1px solid var(--line2)} .acc:last-child{border-bottom:1px solid var(--line2)}
.acc-h{appearance:none;color:var(--ink);width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border:0;background:none;cursor:pointer;text-align:left}
.acc-h b{display:block;font-size:15px} .acc-h span{font-size:13px;color:var(--muted2)}
.acc-h .ic{transition:transform .2s ease} .acc.open .acc-h .ic{transform:rotate(180deg)}
.acc-b{display:grid;gap:12px;padding:0 0 16px;font-size:14px;color:var(--ink2);line-height:1.5}
.acc-b b{color:var(--ink)}
.acc-b ul,.acc-b ol{margin:0;padding-left:18px;display:grid;gap:8px}
.acc-b .steps li{list-style:none;margin-left:-18px;padding-left:14px;border-left:2px solid var(--line)}
.acc-b table{width:100%;border-collapse:collapse;font-size:14px}
.acc-b th,.acc-b td{padding:8px 0;text-align:right;border-top:1px solid var(--line2)} .acc-b th:first-child,.acc-b td:first-child{text-align:left;color:var(--ink2)}
.acc-b thead th{border-top:0;color:var(--ink)}

/* ---------- intro + pick ---------- */
.intro{position:relative;display:grid;justify-items:center;text-align:center;gap:20px;padding:40px 16px;border-radius:28px;background:var(--hero);color:#fff}
.intro .skip{position:absolute;top:16px;right:16px}
.spic{display:grid;justify-items:center;gap:14px;min-height:220px;align-content:center}
.spic .sign{font-family:var(--fun);font-size:26px;padding:8px 18px;border-radius:10px;background:var(--red1);color:#fff;box-shadow:0 4px 0 var(--red3);letter-spacing:.04em}
.spic .duo{display:flex;align-items:center;gap:22px} .spic .duo i{font-style:normal;font-size:84px;line-height:1;display:grid;justify-items:center;gap:6px;padding:14px;border-radius:24px}
.spic .duo i.you{background:#1B2347} .spic .duo i.rival{background:#3A1527} .spic .duo small{font:800 12px var(--body);letter-spacing:.08em}
.spic .duo .gap{font-size:28px;color:#71717A;letter-spacing:.2em} .spic .duo .gold{font-size:56px}
.spic .paper{display:grid;gap:4px;padding:18px 26px;background:#F4F1E8;color:#09090B;border-radius:6px;transform:rotate(-3deg);font-family:var(--display)}
.spic .paper b{font-size:22px;letter-spacing:.06em} .spic .paper .one{color:var(--red1);font-size:20px}
.spic .prize{display:grid;justify-items:center;gap:6px} .spic .prize .cup{font-size:96px;line-height:1} .spic .prize b{font-family:var(--fun);font-size:30px;color:var(--gold2)} .spic .prize span{font-size:13px;font-weight:700;letter-spacing:.08em;color:#D4D4D8}
.intro .dots i{background:#3F3F46} .intro .dots i.on{background:#fff}
.intro p{font-family:var(--display);font-size:30px;font-weight:800;letter-spacing:-.03em;max-width:22ch}
.dots{display:flex;gap:6px} .dots i{width:8px;height:8px;border-radius:50%;background:var(--line)} .dots i.on{background:var(--ink)}
.pick-title{text-align:center;display:grid;gap:6px}
.pick-title h1{font-size:40px;font-weight:800;letter-spacing:-.035em}
@media (max-width:700px){.pick-title h1{font-size:28px}}
.picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
@media (max-width:860px){.picks{grid-template-columns:1fr}}
.pick{display:flex;flex-direction:column;border-radius:26px;background:var(--surface);overflow:hidden;box-shadow:0 0 0 1px var(--ring),0 30px 60px -36px rgba(9,9,11,.45)}
.pick .pic{position:relative}
.pick .pic img{display:block;width:100%;aspect-ratio:2/1;object-fit:cover;object-position:50% 45%}
.pick .pic::after{content:"";position:absolute;left:0;right:0;bottom:0;height:45%;background:linear-gradient(180deg,rgba(9,9,11,0),rgba(9,9,11,.65))}
.pick .pic .gold{position:absolute;left:18px;bottom:16px;font-size:42px;z-index:1}
.pick .in{display:flex;flex-direction:column;gap:16px;padding:22px 24px 24px;flex-grow:1}
.pick .lead{font-size:16px;font-weight:600;line-height:1.4}
.cmp{margin:0;display:grid;grid-template-columns:1fr auto;font-size:14px}
.cmp dt,.cmp dd{margin:0;padding:9px 0;border-top:1px solid var(--line2)} .cmp dt{color:var(--muted)} .cmp dd{text-align:right;font-weight:700}
.better{font-size:11px;font-weight:700;color:var(--you-text);padding:1px 6px;border-radius:999px;background:var(--you-soft);margin-left:6px}
.only{display:grid;gap:4px;padding:12px 14px;border-radius:14px;background:var(--sunk);font-size:13px;color:var(--ink2);line-height:1.45}
.only b{font-size:12px;color:var(--muted)}
.pick .cta{margin-top:auto}

/* ---------- build ---------- */
.morning{font-size:13px;color:var(--muted)}
.solo{display:grid;justify-items:center} .solo>.panel{width:min(760px,100%)}
.offer{gap:16px;padding:26px 28px} .offer h1{font-size:28px;font-weight:800}
.offer-opts{display:grid;grid-template-columns:1fr 1fr;gap:12px} @media (max-width:640px){.offer-opts{grid-template-columns:1fr}}
.choice.lg{padding:16px 18px} .choice.lg b{font-size:17px;margin-bottom:4px} .choice.lg span.d{display:block;margin-top:2px}
.gift{display:grid;justify-items:center;text-align:center;gap:14px;padding:40px 24px;border-radius:28px;background:var(--hero);color:#fff;max-width:760px;width:100%;justify-self:center}
.gift .eyebrow{font-size:13px;font-weight:600;color:#A1A1AA} .gift-badge{width:120px} .gift-badge .badge{width:100%;height:auto;display:block}
.gift h1{font-size:44px} .gift .big1{font-family:var(--display);font-size:22px;font-weight:700} .gift p{color:#D4D4D8;max-width:44ch}
.gift .plates{display:grid;grid-template-columns:repeat(6,auto);gap:8px} .gift .ic.plate .rim{fill:#F4F4F5;stroke:#A1A1AA} .gift .ic.plate .dish{fill:#E8392B}
.plus{color:var(--ink);font-weight:800}
.fc{display:flex;align-items:baseline;gap:10px}
.vd{display:flex;gap:8px;align-items:flex-start;font-size:13px;font-weight:600;line-height:1.4;padding:10px 12px;border-radius:12px}
.vd.ok{background:var(--sunk);color:var(--good)} .vd.bad{background:var(--bad-soft);color:var(--bad-text)} .vd.warn{background:var(--sunk);color:var(--ink2)}
.callout.food{background:var(--sunk);align-items:center}
.floor .tbl.add{cursor:pointer} .floor .tbl.add .top{fill:none;stroke:var(--faint);stroke-width:2;stroke-dasharray:6 5}
.floor .tbl.add .plus{font-size:30px;font-weight:700;fill:var(--muted);text-anchor:middle;dominant-baseline:middle}
.floor .tbl.add:hover .top,.floor .tbl.add:focus .top{stroke:var(--ink);fill:var(--sunk)} .floor .tbl.add:focus{outline:none}
.floor .tbl.new[role=button]{cursor:pointer}
.offer-tag{display:inline-flex;align-items:center;gap:6px;justify-self:start;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--ink);color:var(--surface)}
.choice{appearance:none;display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:12px;border:0;background:var(--surface);box-shadow:0 0 0 1px var(--line);color:var(--ink);cursor:pointer;text-align:left;width:100%}
.choice .rd{flex:none;width:18px;height:18px;margin-top:1px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--faint)}
.choice.on{box-shadow:0 0 0 2px var(--ink)} .choice.on .rd{box-shadow:inset 0 0 0 5px var(--ink)}
.choice b{display:block;font-size:14px} .choice span.d{font-size:13px;color:var(--muted);line-height:1.4}
.stepper{display:flex;align-items:center;border-radius:12px;box-shadow:0 0 0 1px var(--line);background:var(--surface)}
.stepper button{appearance:none;width:40px;height:40px;border:0;background:none;font-size:20px;cursor:pointer;color:var(--ink)}
.stepper .off{width:40px;text-align:center;color:var(--line);font-size:20px}
.stepper output{min-width:32px;text-align:center;font-family:var(--display);font-size:20px;font-weight:700}
.hint{font-size:12px;color:var(--muted2);line-height:1.45}
.center-note{text-align:center;display:grid;gap:4px;padding:16px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--ring);font-size:14px;font-weight:600}
.center-note span{font-size:12px;font-weight:500;color:var(--muted2)}

/* ---------- market ---------- */
.timer{display:flex;align-items:center;gap:12px;padding:8px 16px 8px 10px;border-radius:999px;background:var(--hero);color:#fff}
.timer .t{display:flex;flex-direction:column;line-height:1.1} .timer .t b{font-family:var(--display);font-size:24px;font-weight:800;font-variant-numeric:tabular-nums} .timer .t span{font-size:11px;color:#A1A1AA}
.ringp{--p:1;display:inline-block;width:34px;height:34px;border-radius:50%;background:conic-gradient(#fff calc(var(--p)*1turn),#3F3F46 0);-webkit-mask:radial-gradient(circle,transparent 54%,#000 55%);mask:radial-gradient(circle,transparent 54%,#000 55%);flex:none}
.ringp.sm{width:22px;height:22px}
.ringp.ink{background:conic-gradient(var(--ink) calc(var(--p)*1turn),var(--line2) 0)}
.ringp.hot{background:conic-gradient(var(--bad) calc(var(--p)*1turn),var(--line2) 0)}
.legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width:700px){.legend{grid-template-columns:1fr}}
.legend>div{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;background:var(--sunk)}
.legend b{display:block;font-size:14px} .legend span{font-size:12px;color:var(--muted)}
.tbox{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:none}
.tbox.exp{background:#09090B;color:#FFD21F} .tbox.reg{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.tbox.sm{width:30px;height:30px;border-radius:8px}
.strip{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:12px;background:var(--hero);color:#fff;font-size:14px;font-weight:600}
.strip.soft{background:var(--surface);color:var(--ink2);font-weight:500;box-shadow:0 0 0 1px var(--ring)}
.strip.soft b{color:var(--ink)}
.strip.rival{background:var(--rival-soft);color:var(--rival-text);box-shadow:0 0 0 1px var(--rival-line)}
.shelf{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
@media (max-width:700px){.shelf{grid-template-columns:repeat(3,minmax(0,1fr))}}
.item{appearance:none;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;border-radius:14px;border:0;background:var(--surface);box-shadow:0 0 0 1px var(--line);
  min-height:84px;cursor:pointer;color:var(--ink);text-align:left;transition:transform .1s ease,box-shadow .1s ease}
.item .ihead{display:flex;align-items:center;gap:8px;width:100%}
.item .pn{font-family:var(--display);font-size:22px;font-weight:800;line-height:1;letter-spacing:-.02em;display:flex;align-items:baseline;gap:4px}
.item .pn small{font-family:var(--body);font-size:11px;font-weight:600;color:var(--muted);letter-spacing:0}
.item.taken .pn,.item.taken .pn small{color:var(--rival-text)} .item.poor .pn{color:var(--faint)}
.item:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 0 0 1.5px var(--ink),0 10px 20px -12px rgba(9,9,11,.4)}
.item b{font-size:13px} .item .p{font-size:13px;font-weight:700} .item .s{font-size:12px;font-weight:600}
.item.mine{box-shadow:0 0 0 2px var(--you);cursor:default} .item.mine .s{color:var(--you-text)} .item.mine .s.later{color:var(--muted)}
.item.taken{background:var(--rival-soft);box-shadow:none;cursor:default} .item.taken b,.item.taken .s{color:var(--rival-text)}
.item.taken .tbox{background:var(--rival-line);color:var(--rival-text);box-shadow:none}
.item.poor{background:var(--sunk);box-shadow:0 0 0 1px var(--line2);cursor:default} .item.poor b{color:var(--faint)} .item.poor .s{color:var(--muted2);font-weight:500}
.item.wait,.item.off{opacity:.45;cursor:default}
.item.claim{box-shadow:0 0 0 2px var(--faint)}
.item .bar{display:block;height:5px;border-radius:999px;background:var(--you-soft);overflow:hidden;width:100%} .item .bar i{display:block;height:100%;background:var(--you);width:0}
.shake{animation:shake .3s}
@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.big{font-family:var(--display);font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1}

/* ---------- ads ---------- */
.adrow{display:grid;gap:10px}
.adrow .hd{display:flex;align-items:center;gap:8px} .adrow .hd h2{font-size:15px;font-family:var(--body);letter-spacing:0} .adrow .hd span{font-size:12px;color:var(--muted2)}
.ads{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:860px){.ads{grid-template-columns:1fr}}
.ad{appearance:none;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:16px;border:0;background:var(--surface);box-shadow:0 0 0 1px var(--line);color:var(--ink);cursor:pointer;text-align:left;min-height:190px;transition:box-shadow .12s ease,transform .12s ease}
.ad:hover:not(.on){transform:translateY(-2px)}
.ad .top{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:20px} .ad .top b{font-size:16px}
.ad .nm{font-family:var(--display);font-size:17px;font-weight:700}
.ad .d{font-size:13px;color:var(--ink2);line-height:1.45}
.ad .odds{margin-top:auto;font-size:12px;font-weight:600;color:var(--muted)}
.ad .tg{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--line2);color:var(--muted)}
.ad.on.self{box-shadow:0 0 0 2.5px var(--you)} .ad.on.rival{box-shadow:0 0 0 2.5px var(--rival)}
.ad.on .tg.ch{color:#fff} .ad.on.self .tg.ch{background:var(--you)} .ad.on.rival .tg.ch{background:var(--rival)}
.ad.poor{background:var(--sunk);box-shadow:0 0 0 1px var(--line2);cursor:default} .ad.poor .nm,.ad.poor .top b{color:var(--faint)}

/* ad cards, style S1: solid colour, emoji art, big effect, keyword tag */
.hand{display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:18px 14px;padding-top:12px}
.handrow{display:flex;gap:18px;font-size:13px;font-weight:600;color:var(--muted)} .handrow .hd{display:inline-flex;align-items:center;gap:6px}
.acard{--c:#6B8AFF;--d:#3A4FB8;--p:#E3E9FF;appearance:none;position:relative;display:flex;flex-direction:column;gap:7px;padding:11px;border-radius:18px;background:var(--c);border:4px solid #0B0B0D;
  box-shadow:0 6px 0 var(--d);color:#fff;text-align:left;font:inherit;min-height:286px;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.acard.rival{--c:#F0569A;--d:#A82E66;--p:#FFE1EE}
button.acard:hover:not(:disabled){transform:translateY(-6px)}
.acard.on{transform:translateY(-10px);box-shadow:0 6px 0 var(--d),0 0 0 4px var(--surface),0 0 0 7px var(--c)}
.acard.poor{filter:grayscale(.8);opacity:.5;cursor:default}
.ac-top{display:flex;justify-content:space-between;align-items:flex-start;gap:6px}
.ac-nm{font-family:var(--fun);font-size:15px;line-height:1.05;letter-spacing:.02em;text-transform:uppercase;text-shadow:0 2px 0 var(--d)}
.coin{flex:none;width:38px;height:38px;border-radius:50%;background:#FFD21F;border:3px solid #7A1A0E;color:#4A2A00;font:800 14px var(--display);display:grid;place-items:center;box-shadow:0 3px 0 #7A1A0E}
.ac-art{position:relative;height:88px;border-radius:12px;background:var(--p);border:3px solid #0B0B0D;display:grid;place-items:center;font-size:48px;line-height:1}
.ac-loc{position:absolute;top:5px;right:5px;font:800 9px var(--body);letter-spacing:.08em;padding:3px 6px;border-radius:6px;background:#0B0B0D;color:#fff}
.ac-eff{font:800 26px/1 var(--display);text-shadow:0 2px 0 var(--d)}
.ac-line{font-size:13px;font-weight:600;line-height:1.3;flex-grow:1}
.kw{display:inline-flex;align-self:flex-start;gap:5px;align-items:center;font:800 10.5px var(--body);letter-spacing:.06em;padding:4px 8px;border-radius:8px;white-space:nowrap}
.kw.sure{background:#DCFCE7;color:#15803D} .kw.gamble{background:#FEF3C7;color:#B45309} .kw.if{background:#FFEDD5;color:#C2410C} .kw.lasting{background:#DBEAFE;color:#1D4ED8} .kw.bluff{background:#E4E4E7;color:#3F3F46}
.ac-played{position:absolute;top:-14px;left:50%;transform:translateX(-50%);padding:3px 10px;border-radius:9px;background:#F4F4F5;color:#0B0B0D;font:800 12px var(--body);border:3px solid #0B0B0D;white-space:nowrap}
.acard.back{min-height:0;aspect-ratio:230/322;border-color:#3F3F46;box-shadow:none;background:repeating-linear-gradient(45deg,#1F1F23 0 10px,#17171A 10px 20px);display:grid;place-items:center;padding:8px;cursor:default}
.acard.back .badge{width:80%;height:auto}
.backs{display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,72px));gap:8px}
.kwlegend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:var(--muted);align-items:center}
.kwlegend>span{display:inline-flex;gap:6px;align-items:center}
.stamp{position:absolute;left:50%;top:96px;transform:translateX(-50%) rotate(-6deg);padding:6px 12px;border-radius:10px;background:#FFD21F;color:#4A2A00;border:3px solid #0B0B0D;font:400 18px/1 var(--fun);white-space:nowrap;box-shadow:0 3px 0 #7A1A0E}
.stamp.bad{background:#0B0B0D;color:#FCA5A5;border-color:#FCA5A5;box-shadow:none}

/* ---------- service ---------- */
.tally{display:flex;gap:18px;font-size:13px;color:var(--muted2);align-items:center;flex-wrap:wrap}
.tally b{color:var(--ink);font-size:15px} .tally .bad,.tally .bad b{color:var(--bad-text)}
.decide{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:14px 16px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1.5px var(--ink),0 16px 32px -16px rgba(9,9,11,.3)}
.decide.hot{box-shadow:0 0 0 1.5px var(--bad)}
.decide .q{display:flex;align-items:center;gap:14px;flex:1 1 300px;min-width:0}
.decide .q b{display:block;font-family:var(--display);font-size:18px;letter-spacing:-.01em}
.decide .q span{font-size:13px;color:var(--muted);line-height:1.4}
.decide .acts{display:flex;gap:8px;flex-wrap:wrap}
.decide .prog{display:block;height:6px;border-radius:999px;background:var(--you-soft);overflow:hidden;margin-top:6px} .decide .prog i{display:block;height:100%;background:var(--you);width:0}
.ringw{position:relative;display:block;width:46px;height:46px;flex:none} .ringw .ringp{width:46px;height:46px} .decide .ringw b,.ringw b{position:absolute;inset:0;display:grid;place-items:center;font:700 14px var(--body)!important;letter-spacing:0!important;color:var(--ink)}
.toastline{font-size:13px;font-weight:600;color:var(--ink2)}
.log{list-style:none;margin:0;padding:0;display:grid;font-size:13px;color:var(--ink2)}
.log li{display:flex;gap:10px;padding:7px 0}
.log li+li{border-top:1px solid var(--line2)}
.log li .w{width:38px;flex:none;font-size:11px;font-weight:600;color:var(--muted2);padding-top:1px}
.log li.now{color:var(--ink);font-weight:600}
.cardline{display:grid;gap:2px;padding:8px 0} .cardline+.cardline{border-top:1px solid var(--line2)}
.cardline .r{display:flex;justify-content:space-between;font-size:13px} .cardline .d{font-size:13px;color:var(--ink2)} .cardline .d.dim{color:var(--muted2)}
.cardline .lead{font-size:13px;font-weight:600} .cardline .sm{font-size:12px;color:var(--muted2)}
.banner{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:var(--hero);color:#fff;font-size:14px}
.banner span{color:#A1A1AA;font-size:13px}
.banner.blue{background:var(--surface);color:var(--ink);box-shadow:0 0 0 1.5px var(--you)} .banner.blue span{color:var(--muted)}

/* service v2 */
.tally .earn{font-family:var(--display);font-size:18px;font-weight:800;color:var(--good)}
.starcheck .tiers{display:grid;gap:4px}
.starcheck .tiers>div{display:grid;grid-template-columns:16px 1fr auto;gap:8px;align-items:center;padding:8px 10px;border-radius:10px;font-size:14px;color:var(--muted)}
.starcheck .tiers>div.on{background:var(--sunk);color:var(--ink);font-weight:600;box-shadow:inset 0 0 0 1.5px var(--ink)}
.starcheck .ar{font-size:11px}
.opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;width:100%}
.opt{appearance:none;position:relative;display:grid;gap:4px;align-content:start;text-align:left;padding:12px 46px 12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;font-size:13px;line-height:1.35}
.opt b{font-size:15px} .opt .r{display:flex;justify-content:space-between;gap:10px} .opt kbd{position:absolute;right:10px;bottom:10px}
.opt.ink{background:var(--ink);color:var(--surface);border-color:var(--ink)} .opt.ink .pos,.opt.ink .neg{color:inherit}
.opt .kw{justify-self:start}
.decide .opts{flex:1 1 100%}
.gbadge{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--you);color:#fff;font-size:11px;font-weight:800;margin-right:8px;vertical-align:middle}
.gbadge.rival{background:var(--rival)}
.flips{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,190px));gap:18px;justify-content:center;padding-top:6px}
.flip{display:grid;gap:8px;justify-items:center;text-align:center} .flip .who{font-size:12px;font-weight:700;color:var(--muted)} .flip .acard{width:100%}
.flip .acard.back{width:100%}
.banner{flex-wrap:wrap} .banner .t{flex:1;min-width:0} .banner .t span{display:block} .banner .bell{font-size:18px} .banner .btn{background:transparent;color:#fff;border-color:#3F3F46}
.callout.waste{background:var(--bad-soft);box-shadow:0 0 0 1px var(--bad-line);color:var(--bad-text);align-items:center} .callout.waste b{color:var(--bad-text)} .binic{font-size:28px}
.floor .gb{fill:var(--you)} .floor .gb-t{font-size:9px;font-weight:800;fill:#fff;text-anchor:middle}
.floor .need{fill:var(--surface);stroke:var(--bad);stroke-width:2} .floor .need-t{font-size:10px;text-anchor:middle}
.floor .chip-bg.bad{fill:var(--bad)}
.floor .paypop{font-family:var(--display);font-size:40px;font-weight:800;fill:var(--good);text-anchor:middle;animation:pop 1s ease-out forwards}
@keyframes pop{from{opacity:0;transform:translateY(10px)}30%{opacity:1}to{opacity:0;transform:translateY(-24px)}}
@media (prefers-reduced-motion:reduce){.floor .paypop{animation:none}}
.vmodal{position:fixed;inset:0;z-index:15;background:rgba(9,9,11,.72);display:grid;place-items:center;padding:16px;overflow-y:auto}
.vcard{width:min(720px,100%);display:grid;gap:18px;padding:30px;border-radius:24px;background:var(--surface);box-shadow:0 30px 80px rgba(0,0,0,.5)}
.vcard .eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.vcard .vh{font-size:34px} .vcard .sub{font-size:15px;color:var(--ink2);line-height:1.45}
.faces{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.face{appearance:none;width:120px;display:grid;justify-items:center;gap:6px;padding:14px 8px;border-radius:16px;border:2px dashed var(--faint);background:var(--sunk);color:var(--muted);cursor:pointer;font-size:12px;font-weight:700}
.face .em{font-size:38px;line-height:1} .face.on{border:3px solid var(--gold2);background:var(--surface);color:var(--gold-ink)} .face:disabled{opacity:.4;cursor:default}
.vres{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}
.vres>div{display:grid;gap:2px;text-align:center;padding:10px 6px;border-radius:12px;background:var(--sunk)} .vres span{font-size:12px;color:var(--muted)} .vres b{font-family:var(--display);font-size:17px;color:var(--bad-text)}
.vres>div.ok b{color:var(--good)} .vres>div.on{box-shadow:inset 0 0 0 2px var(--ink);background:var(--surface)}
.vhint{font-size:14px;font-weight:600;color:var(--gold-ink)}
:root[data-theme="dark"] .vhint,:root[data-theme="dark"] .face.on{color:var(--gold2)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .vhint,:root:not([data-theme="light"]) .face.on{color:var(--gold2)}}
.vbtns{display:grid;grid-template-columns:1fr 2fr;gap:12px} .vbtns .cta:disabled{opacity:.5;cursor:default}
.ghostbtn{appearance:none;border:1px solid var(--line);border-radius:14px;background:transparent;color:var(--ink);font-weight:600;cursor:pointer;padding:12px}

/* ---------- recap + final ---------- */
.recap-top{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px}
.recap-bot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
@media (max-width:1000px){.recap-top,.recap-bot{grid-template-columns:1fr}}
.hero{position:relative;overflow:hidden;display:grid;gap:18px;padding:28px 30px;border-radius:22px;background:var(--hero);color:var(--hero-ink)}
.hero .confetti{position:absolute;inset:0;pointer-events:none;width:100%;height:100%}
.hero>*:not(.confetti){position:relative}
.hero .eyebrow{font-size:13px;font-weight:600;color:#A1A1AA}
.hero .money{display:grid;gap:12px} .hero .money span{font-size:14px;color:var(--hero-muted)}
.hero .money .gold{font-size:84px;-webkit-text-stroke:2.5px var(--gold-ink);filter:drop-shadow(0 4px 0 var(--gold-ink))}
.hero .money .loss{font-family:var(--display);font-size:64px;font-weight:800;letter-spacing:-.03em;line-height:1;color:#fff}
.starbox{display:flex;align-items:center;gap:16px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.08)}
.starbox b{display:block;font-size:16px} .starbox span{font-size:13px;color:var(--hero-muted)}
.gstars{display:flex;gap:3px;align-items:center}
.gstar{width:30px;height:30px} .gstar path{fill:#3F3F46} .gstar.on path{fill:#FFD21F;stroke:#7A1A0E;stroke-width:1.4;stroke-linejoin:round}
.gstar.new{width:38px;height:38px;margin-top:-4px;filter:drop-shadow(0 0 8px rgba(255,210,31,.7))} .gstar.new path{fill:#FFF27A}
.gstar.lost path{fill:none;stroke:#FCA5A5;stroke-width:1.4;stroke-dasharray:3 2}
.race{display:grid;gap:14px;padding:24px 26px;border-radius:22px;background:var(--surface);box-shadow:0 0 0 1px var(--ring)}
.race .hd{display:flex;justify-content:space-between;align-items:baseline;gap:10px} .race .hd h2{font-size:20px} .race .hd span{font-size:12px;color:var(--muted2)}
.lane{display:grid;gap:6px}
.lane .t{display:flex;justify-content:space-between;align-items:baseline;font-size:14px} .lane .t b.n{font-family:var(--display);font-size:22px}
.lane .tr{height:14px;border-radius:999px;background:var(--line2);overflow:hidden} .lane .tr i{display:block;height:100%;border-radius:999px}
.verdict{display:grid;gap:4px;padding:14px 16px;border-radius:14px;background:var(--sunk);margin-top:auto}
.verdict b{font-size:16px} .verdict span{font-size:13px;color:var(--ink2);line-height:1.45}
.final-hero{position:relative;overflow:hidden;border-radius:28px;min-height:360px;display:flex;align-items:flex-end}
.final-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.final-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(9,9,11,.05) 0%,rgba(9,9,11,.55) 55%,rgba(9,9,11,.92) 100%);z-index:1}
.final-hero .in{position:relative;z-index:2;width:100%;padding:28px 34px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;color:#fff}
.final-hero .gold{font-size:76px;-webkit-text-stroke:3px var(--gold-ink);filter:drop-shadow(0 5px 0 var(--gold-ink))}
.final-hero .plain{font-family:var(--display);font-size:56px;font-weight:800;letter-spacing:-.03em;line-height:1}
.final-hero p{font-size:17px;color:#F4F4F5;margin-top:6px}
.scores{display:flex;gap:12px;flex-wrap:wrap}
.score{display:grid;gap:4px;padding:16px 20px;border-radius:18px;background:rgba(255,255,255,.9);color:#09090B;min-width:190px}
.score.win{background:#fff;box-shadow:0 0 0 3px #FFD21F}
.score .w{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
.score .n{font-family:var(--display);font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1}
.score .s{font-size:12px;color:#52525B}
.final-mid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:1000px){.final-mid{grid-template-columns:1fr}}
.chart{width:100%;height:auto;font-family:var(--body)}
.chart .grid{stroke:var(--line2);stroke-width:1.5} .chart text{font-size:11px;fill:var(--faint)} .chart text.d{font-size:12px;fill:var(--muted2)}
.talk ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width:700px){.talk ol{grid-template-columns:1fr}}
.talk li{display:flex;gap:10px;padding:12px 14px;border-radius:14px;background:var(--sunk);font-size:14px;line-height:1.4}
.talk li .gold{font-size:22px}
.again{display:grid;gap:12px;align-content:center;padding:22px 24px;border-radius:22px;background:var(--hero);color:#fff}
.again b{font-family:var(--display);font-size:22px;letter-spacing:-.02em} .again span{font-size:14px;color:#D4D4D8;line-height:1.45}
.again .ghost{appearance:none;padding:12px 18px;border-radius:14px;border:1px solid #3F3F46;background:transparent;color:#fff;font-weight:600;cursor:pointer}

/* ---------- cover screen for one-screen practice ---------- */
.cover{display:grid;justify-items:center;gap:14px;padding:60px 24px;border-radius:24px;background:var(--hero);color:#fff;text-align:center}
.cover b{font-family:var(--display);font-size:30px;letter-spacing:-.02em} .cover span{color:#D4D4D8}
.cover .cta{width:auto}

/* toast */
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom,0px));background:var(--ink);color:var(--surface);padding:12px 18px;border-radius:12px;font-size:14px;font-weight:600;max-width:calc(100% - 32px);z-index:30;box-shadow:0 16px 32px -12px rgba(9,9,11,.5)}

/* one-screen practice: the page takes the active player's colour (as before the redesign) */
body[data-view="p1"]{--bg:#EEF1FB} body[data-view="p2"]{--bg:#FBEFF4}
body{transition:background-color .35s ease}
@media (prefers-reduced-motion:reduce){body{transition:none}}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body[data-view="p1"]{--bg:#0E1222} :root:not([data-theme="light"]) body[data-view="p2"]{--bg:#1C0D14}}
:root[data-theme="dark"] body[data-view="p1"]{--bg:#0E1222} :root[data-theme="dark"] body[data-view="p2"]{--bg:#1C0D14}

/* "Every day so far" table (recap + final results) */
.daylog summary{cursor:pointer;display:flex;gap:10px;align-items:baseline;list-style:none}
.daylog summary::-webkit-details-marker{display:none}
.daylog summary::before{content:"▸";color:var(--muted2)} .daylog[open] summary::before{content:"▾"}
.daylog table{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums}
.daylog th,.daylog td{padding:7px 8px;border-bottom:1px solid var(--line2);text-align:right;white-space:nowrap}
.daylog th:first-child,.daylog td:first-child{text-align:left}
.daylog th{font-size:12px;font-weight:600;color:var(--muted2)}

/* market briefing (before the clock starts) */
.brief{max-width:880px;width:100%;justify-self:center;gap:20px;padding:28px 32px;text-align:left}
.brief h1{font-size:34px;font-weight:800;letter-spacing:-.035em;text-align:center}
.brief-rules{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.brief-rules li{display:flex;gap:14px;align-items:flex-start;font-size:15px;line-height:1.45;color:var(--ink2)}
.brief-rules li b{color:var(--ink)} .brief-rules .gold{font-size:24px;width:20px;flex:none}
.brief-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.brief-cards.one{grid-template-columns:minmax(0,420px);justify-content:center}
@media (max-width:640px){.brief-cards{grid-template-columns:1fr}}
.brief-card{display:grid;justify-items:center;text-align:center;gap:6px;padding:22px 18px;border-radius:18px;background:var(--sunk);box-shadow:0 0 0 1px var(--ring)}
.brief-card .tbox{width:56px;height:56px;border-radius:14px;margin-bottom:4px}
.brief-card b{font-family:var(--display);font-size:22px;letter-spacing:-.02em}
.brief-card .price{font-size:13px;font-weight:700;color:var(--muted)}
.brief-card .line{font-size:16px;font-weight:600;line-height:1.35}
.brief-plan{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;padding:12px 16px;border-radius:12px;background:var(--you-soft);color:var(--you-text);font-size:13px}
.brief-plan b{color:var(--you-text)}
.brief-start{max-width:420px;justify-self:center;font-size:18px}
.brief-go{display:grid;justify-items:center;gap:4px} .brief-go .gold{font-size:56px}

/* ---------- start screens v2 (A2 first visit, B2 returning, C2 invite) ---------- */
.bar.bare{border-bottom:0;padding-bottom:0}
.bar .tools .btn.round{width:44px;height:44px;border-radius:22px;padding:0;justify-content:center}
.bar .tools .btn.pillbtn{height:44px;border-radius:22px;padding:0 18px;font-size:14px;font-weight:600}
.linkish.quiet{color:var(--muted);font-weight:500;font-size:14px;text-underline-offset:3px;justify-self:start}
.linkish.quiet:hover{color:var(--ink)}
.start{display:grid;grid-template-columns:minmax(0,780px) minmax(0,440px);gap:72px;justify-content:center;align-items:center;padding:24px 0 72px}
.sart{position:relative;margin:0}
.sart img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:28px;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.sbadge{position:absolute;left:50%;bottom:-60px;width:300px;transform:translateX(-50%);filter:drop-shadow(0 10px 18px rgba(0,0,0,.5))}
.sbadge .badge{display:block;width:100%;height:auto}
.scol{display:grid;gap:26px;align-content:center}
.shead{display:grid;gap:12px}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.eyebrow.you{color:var(--you-text)}
.funh{font-family:var(--fun);font-weight:400;font-size:48px;line-height:1.02;letter-spacing:.01em;color:var(--gold2)}
:root:not([data-theme="dark"]) .funh{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .funh{color:var(--gold2)}}
.lede{margin:0;font:700 22px/1.3 var(--display);color:var(--ink)}
.smuted{font-size:14px;color:var(--muted)}
.sfield{display:grid;gap:8px} .sfield label{font-size:14px;font-weight:600;color:var(--ink2)}
.sfield input{height:52px;box-sizing:border-box;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:500 17px var(--body);max-width:none;width:100%}
.sfield input.hi{border:2px solid var(--you)}
.cta.bigc{min-height:60px;font-size:19px}
.sjoin{display:grid;gap:10px;padding-top:20px;border-top:1px solid var(--line2)}
.sjoin label{font-size:14px;font-weight:500;color:var(--muted)}
.row1{display:flex;gap:10px}
.sjoin input{flex:1 1 auto;min-width:0;max-width:none;height:48px;box-sizing:border-box;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:700 18px var(--display);letter-spacing:.3em;text-transform:uppercase}
.obtn{appearance:none;flex:1 1 auto;height:48px;padding:0 24px;border-radius:12px;border:1px solid var(--muted2);background:transparent;color:var(--ink);font:600 15px var(--body);cursor:pointer}
.sjoin .obtn{flex:none}
.obtn:hover{background:var(--sunk)}
.rcard{display:grid;gap:16px;padding:22px;border-radius:18px;background:var(--you-soft);border:1px solid var(--you-line)}
.rcard .rl{display:grid;gap:6px} .rcard .rl b{font:700 24px var(--display);letter-spacing:-.01em} .rcard .rl>span{font-size:15px;font-weight:500;color:var(--ink2)}
.rv{color:var(--rival-text)}
.alt{display:grid;gap:12px} .alt>span{font-size:14px;font-weight:500;color:var(--muted)}
.inv{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:500;color:var(--ink2)} .inv b{color:var(--rival-text)}
.av{flex:none;width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;font:700 18px var(--display);box-sizing:border-box}
.av.rival{background:var(--rival-soft);border:2px solid var(--rival);color:var(--rival-text)}
.av.you{background:var(--you);color:#fff}
.av.empty{border:2px dashed var(--rival)}
@media (max-width:1000px){.start{grid-template-columns:minmax(0,1fr);gap:96px;padding-top:8px}.funh{font-size:38px}}
@media (max-width:520px){.sbadge{width:200px;bottom:-40px}.start{gap:64px}.funh{font-size:32px}.row1{flex-wrap:wrap}}

/* ---------- waiting room (D2) ---------- */
.room{width:min(640px,100%);justify-self:center;display:grid;gap:36px;justify-items:center;padding:24px 0 40px}
.rcode{display:grid;justify-items:center;gap:10px}
.rcode .code{font:400 120px/1 var(--fun);letter-spacing:.12em;color:var(--gold2);-webkit-text-stroke:2px var(--gold-ink);paint-order:stroke}
.rlink{justify-self:stretch;display:grid;gap:10px} .rlink .lbl{font-size:15px;font-weight:600;color:var(--ink2);text-align:center}
.linkbox{flex:1 1 auto;min-width:0;height:56px;box-sizing:border-box;padding:0 18px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:16px;font-weight:500;display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rlink .cta{min-height:56px;padding:0 26px;font-size:17px;gap:8px;flex:none}
.rseats{justify-self:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rseat{padding:20px;border-radius:16px;display:flex;align-items:center;gap:14px}
.rseat>span:last-child{display:grid;gap:2px} .rseat b{font:700 17px var(--display)} .rseat>span:last-child>span{font-size:13px;font-weight:500;color:var(--muted)}
.rseat.you{background:var(--you-soft);border:1px solid var(--you-line)} .rseat.you>span:last-child>span{color:var(--you-text)}
.rseat.empty{border:2px dashed var(--rival-line)} .rseat.empty b{color:var(--rival-text)}
.waitpill{display:flex;align-items:center;gap:10px;padding:13px 22px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:15px;font-weight:500;color:var(--ink2)}
.waitpill .dot{width:10px;height:10px;flex:none}
@media (max-width:600px){.rcode .code{font-size:80px}.rseats{grid-template-columns:1fr}.waitpill{border-radius:18px}}

/* ---------- story cards (Intro-1..5) ---------- */
.story{min-height:calc(100vh - 150px);display:grid;grid-template-rows:auto 1fr auto;gap:20px;padding:20px 24px 32px;border-radius:28px;background:#0B0B0D;color:#F4F4F5}
.story .stop{display:flex;justify-content:flex-end} .story .linkish.quiet{color:#A1A1AA;padding:8px 4px} .story .linkish.quiet:hover{color:#F4F4F5}
.story .smid{display:grid;justify-items:center;align-content:center;gap:34px}
.storyart{display:block;width:min(760px,100%);height:auto;aspect-ratio:640/400;border-radius:28px;background:#17171A}
.story .cap{margin:0;font:400 46px/1.1 var(--fun);letter-spacing:.01em;color:#FFD21F;text-align:center;max-width:24ch}
.story .sfoot{display:flex;justify-content:center;align-items:center;gap:28px}
.sdots{display:flex;gap:8px} .sdots i{width:8px;height:8px;border-radius:4px;background:#3F3F46} .sdots i.on{width:28px;background:#FFD21F}
.story .cta{min-height:56px;padding:0 34px;font-size:18px}
@media (max-width:700px){.story .cap{font-size:30px}.story{padding:16px 16px 24px}}

/* ---------- pick location (E) ---------- */
.daypill{display:inline-flex;align-items:center;gap:22px;padding:10px 20px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:14px;font-weight:600;color:var(--muted)}
.daypill b{color:var(--ink)} .daypill>.num{font-size:16px} .daypill>i{width:1px;height:18px;background:var(--line)}
.gstars{font:700 16px var(--display);color:var(--gold3);letter-spacing:.02em} .gstars span{color:var(--line)}
.pickc{appearance:none;font:inherit;color:inherit;text-align:left;cursor:pointer;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;background:var(--surface);border:3px solid var(--line);padding:0;transition:border-color .15s,box-shadow .15s}
.pickc:hover{border-color:var(--muted2)}
.pickc.on{border-color:var(--you);box-shadow:0 0 0 6px color-mix(in srgb,var(--you) 18%,transparent)}
.pickc .pic{position:relative;display:block}
.pickc .pic img{display:block;width:100%;height:250px;object-fit:cover}
.picks:has(.pickc.on) .pickc:not(.on) img{opacity:.7}
.pickc .chip{position:absolute;top:14px;left:14px;padding:6px 12px;border-radius:999px;background:var(--you);color:#fff;font-size:13px;font-weight:700}
.pickc .in{display:grid;gap:18px;padding:22px 26px 26px}
.pickc .nm{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.pickc .nm b{font:800 28px var(--display);letter-spacing:-.02em} .pickc .nm span{font-size:15px;font-weight:600;color:var(--muted)}
.pickc .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pickc .st{display:grid;gap:4px;padding:14px;border-radius:14px;background:var(--sunk)}
.pickc .st b{font:800 30px var(--display);letter-spacing:-.02em} .pickc .st span{font-size:13px;font-weight:500;color:var(--muted)}
.pickfoot{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.pickfoot .cta{min-height:60px;padding:0 36px}
@media (max-width:700px){.pickc .pic img{height:160px}.pickc .st b{font-size:22px}.pickc .in{padding:16px}}

/* ================= v2 game screens (Build, Ads, Service) from the mockups ================= */
:root{--rm-bg:#F4F4F5;--rm-door:#E9E9EC;--rm-lab:#71717A;--rm-pp:#A1A1AA;--rm-pp2:#71717A;--rm-tf:#FFFFFF;--rm-ts:#A1A1AA;--rm-line:#D4D4D8;--rm-plate:#18181B;
  --rm-book:#FEF3C7;--rm-bookt:#92400E;--rm-pop:#15803D;--rm-popst:#FFFFFF;--rm-warn:#B91C1C;--rm-k0:#FEF2F2;--rm-bub:#FFFFFF;--gd:#B45309;--gd-soft:#FEF3C7;--gd-line:#FCD34D;
  --ok-soft:#ECFDF3;--ok-line:#A7F3D0;--ok-text:#047857}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--rm-bg:#141417;--rm-door:#101012;--rm-lab:#71717A;--rm-pp:#A1A1AA;--rm-pp2:#D4D4D8;--rm-tf:#1F1F23;--rm-ts:#52525B;--rm-line:#2E2E33;--rm-plate:#F4F4F5;
  --rm-book:#2A2410;--rm-bookt:#FFD21F;--rm-pop:#86EFAC;--rm-popst:#0B0B0D;--rm-warn:#FCA5A5;--rm-k0:#2A1210;--rm-bub:#F4F4F5;--gd:#FFD21F;--gd-soft:#2A2410;--gd-line:#6B5410;
  --ok-soft:#10261A;--ok-line:#1F5A38;--ok-text:#86EFAC}}
:root[data-theme="dark"]{--rm-bg:#141417;--rm-door:#101012;--rm-lab:#71717A;--rm-pp:#A1A1AA;--rm-pp2:#D4D4D8;--rm-tf:#1F1F23;--rm-ts:#52525B;--rm-line:#2E2E33;--rm-plate:#F4F4F5;
  --rm-book:#2A2410;--rm-bookt:#FFD21F;--rm-pop:#86EFAC;--rm-popst:#0B0B0D;--rm-warn:#FCA5A5;--rm-k0:#2A1210;--rm-bub:#F4F4F5;--gd:#FFD21F;--gd-soft:#2A2410;--gd-line:#6B5410;
  --ok-soft:#10261A;--ok-line:#1F5A38;--ok-text:#86EFAC}

.g2{display:grid;grid-template-columns:minmax(0,1fr) 448px;gap:28px;align-items:stretch;min-height:calc(100vh - 150px)}
@media (max-width:1100px){.g2{grid-template-columns:minmax(0,1fr) 360px}}
@media (max-width:900px){.g2{grid-template-columns:1fr;min-height:0}}
.card2{background:var(--surface);border:1px solid var(--line);border-radius:20px;min-width:0}
.main2{padding:26px 28px;display:flex;flex-direction:column;gap:18px}
.side2{display:flex;flex-direction:column;gap:18px;min-width:0}
.side2 .grow{flex-grow:1}
.side2>.cta{min-height:60px;font-size:19px}
.box{padding:22px 24px;display:flex;flex-direction:column;gap:14px}
.lab{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.bhead{display:flex;justify-content:space-between;align-items:baseline;gap:10px} .bhead>span:last-child{font-size:13px;font-weight:600;color:var(--muted)}
.fhead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.fh{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 360px} .fh.center{align-items:center;text-align:center}
.funt{margin:0;font:400 40px/1 var(--fun);letter-spacing:.01em;color:var(--gold-ink)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .funt{color:var(--gold2)}}
:root[data-theme="dark"] .funt{color:var(--gold2)}
.fsub{font-size:17px;font-weight:500;color:var(--ink2);line-height:1.35} .fsub b{color:var(--ink)}
.fnote{font-size:13px;line-height:1.45;color:var(--muted2)} .fnote.center{text-align:center}
.btext{font-size:15px;font-weight:500;line-height:1.45;color:var(--ink)}
.pill2{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 12px;border-radius:14px;background:var(--sunk);color:var(--muted);font-size:13px;font-weight:600}
.room2{display:block;width:100%;height:auto;flex:1 1 auto;max-height:60vh}
.room2 .rm-bg{fill:var(--rm-bg)} .room2 .rm-door{fill:var(--rm-door)}
.room2 .rm-lab{font:700 11px var(--body);letter-spacing:1px;fill:var(--rm-lab)} .room2 .rm-lab.warn{fill:var(--rm-warn)}
.room2 .rm-note{font:600 12px var(--body);fill:var(--muted)} .room2 .rm-note.pos{fill:var(--rm-pop)}
.room2 .rm-warn{font:800 13px var(--body);fill:var(--rm-warn)}
.room2 .pp circle,.room2 .pp path{fill:var(--rm-pp)} .room2 .pp.svc circle,.room2 .pp.svc path{fill:var(--rm-pp2)} .room2 .pp.vill circle,.room2 .pp.vill path{fill:#E8A35C}
.room2 .tb rect{fill:var(--rm-tf);stroke:var(--rm-ts);stroke-width:2.5}
.room2 .tb.add rect{fill:none;stroke-dasharray:7 6} .room2 .tb.add,.room2 .tb.new[data-act]{cursor:pointer} .room2 .tb.add:hover rect{stroke:var(--ink)}
.room2 .tb.seat rect,.room2 .tb.new rect,.room2 .tb.bseat rect{fill:var(--you-soft);stroke:var(--you)} .room2 .tb.bseat rect,.room2 .tb.bfree rect{stroke-dasharray:6 4}
.room2 .gst{fill:var(--you-text)}
.room2 .tb.booked rect,.room2 .tb.fake rect{fill:var(--rm-book);stroke:#F5A800;stroke-dasharray:5 4} .room2 .tb.broken rect{fill:var(--rm-k0);stroke:var(--bad)}
.room2 .tt{font:700 11px var(--body);fill:var(--muted2)} .room2 .tt.plus{font-size:22px} .room2 .tt.new{font-size:13px;fill:var(--you-text)} .room2 .tt.book{fill:var(--rm-bookt)} .room2 .tt.bad{fill:var(--rm-warn)} .room2 .tt.bor{fill:var(--you-text);font-size:9px}
.room2 .pop{font:800 16px var(--display);fill:var(--rm-pop);stroke:var(--rm-popst);stroke-width:4;paint-order:stroke}
.room2 .rm-line{stroke:var(--rm-line);stroke-width:2}
.room2 .plt circle{fill:none;stroke:var(--rm-plate);stroke-width:3} .room2 .plt .dot{fill:var(--rm-plate);stroke:none} .room2 .plt.old circle{stroke:var(--rm-lab)} .room2 .plt.old .dot{fill:var(--rm-lab)}
.room2 .k0{fill:var(--rm-k0);stroke:var(--red1);stroke-width:2;stroke-dasharray:5 4}
.room2 .bin path{fill:var(--rm-tf);stroke:var(--muted);stroke-width:3} .room2 .bin rect{fill:var(--muted)}
.room2 .arr{stroke:var(--rm-warn);stroke-width:3;fill:none;stroke-dasharray:6 5} .room2 .arrh{fill:var(--rm-warn)}
.room2 .needb circle{fill:#F4F4F5;stroke:var(--red1);stroke-width:3} .room2 .needb line{stroke:var(--red1);stroke-width:3}
.room2 .tagb circle{fill:var(--you);stroke:var(--rm-bg);stroke-width:2} .room2 .tagb.rival circle{fill:var(--rival)} .room2 .tagb text{font:800 10px var(--body);fill:#0B0B0D}
.room2 .bub rect,.room2 .bub path{fill:var(--rm-bub);stroke:#0B0B0D;stroke-width:2} .room2 .bub path{stroke:none} .room2 .bub text{font:700 11px var(--body);fill:#0B0B0D}
.strip2{display:flex;gap:10px;align-items:center;padding:12px 16px;border-radius:14px;background:var(--sunk);font-size:15px;font-weight:500;color:var(--ink2)} .strip2 b{color:var(--ink)}
.pdots{display:inline-flex;gap:4px;flex-shrink:0} .pdots i{width:18px;height:18px;border-radius:9px;border:3px solid var(--ink);box-sizing:border-box;display:inline-grid;place-items:center} .pdots i::after{content:"";width:6px;height:6px;border-radius:3px;background:var(--ink)}
.legend2{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:14px;font-weight:500;color:var(--muted)}
.legend2 .lg{width:26px;height:16px;border-radius:4px;border:2px dashed #F5A800;background:var(--rm-book)}
.vd2{padding:14px 16px;border-radius:14px;font-size:15px;font-weight:600;line-height:1.4}
.vd2.ok{background:var(--ok-soft);border:1px solid var(--ok-line);color:var(--ok-text)} .vd2.warn{background:var(--gd-soft);border:1px solid var(--gd-line);color:var(--gd)} .vd2.bad{background:var(--bad-soft);border:1px solid var(--bad-line);color:var(--bad-text)}
.fc2{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap} .fc2 .big2{font:800 44px/1 var(--display);letter-spacing:-.02em} .fc2>span:last-child{font-size:18px;font-weight:600;color:var(--ink2)}
.mrow{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:15px;font-weight:500} .mrow b{font:700 17px var(--display)}
.mrow.dim{color:var(--muted)} .mrow.you{color:var(--you-text)} .mrow.gold{color:var(--gd)}
/* gift + morning offer */
.gift2{min-height:calc(100vh - 150px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;text-align:center;padding:12px 0 24px}
.giftart{display:block;width:min(760px,100%);height:auto;border-radius:28px}
.gtext{display:flex;flex-direction:column;align-items:center;gap:10px} .gtext .funt{font-size:50px} .gtext b{font:700 22px var(--display)} .gtext span{font-size:17px;line-height:1.45;color:var(--muted);max-width:700px}
.cta.gcta{width:min(360px,100%);min-height:60px;font-size:19px}
.solo2{min-height:calc(100vh - 150px);display:grid;place-items:center}
.offer2{width:min(834px,100%);padding:34px 36px;display:flex;flex-direction:column;gap:22px}
.otop{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap} .otop .otext{font-size:15px;color:var(--muted)}
.offer2 .funt{font-size:38px}
.ochoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.och{appearance:none;text-align:left;display:flex;flex-direction:column;gap:8px;padding:22px 22px;border-radius:16px;border:1.5px solid var(--line);background:var(--sunk);color:var(--ink);cursor:pointer;font:inherit}
.och>b{font:700 20px var(--display);letter-spacing:-.01em} .och span b{font-weight:700} .och .d1{font-size:15px;font-weight:500;color:var(--ink2)} .och .d2{font-size:15px;color:var(--muted)}
.och.on{border:2px solid var(--ink);background:var(--surface)} .och:hover{border-color:var(--muted2)}
.offer2>.cta{min-height:60px;font-size:19px}
/* ads */
.hand2{display:flex;flex-direction:column;gap:26px;align-items:center;padding-top:8px}
.hrow{display:flex;gap:40px;justify-content:center;flex-wrap:wrap}
.hand2 .acard{width:212px;min-height:296px}
.bar2{display:flex;flex-direction:column;gap:6px} .bar2 .bl{display:flex;justify-content:space-between;gap:10px;font-size:15px;font-weight:600} .bar2 .bl b{color:var(--you-text);text-align:right}
.bar2 .bt{height:18px;border-radius:9px;background:var(--sunk);display:flex;overflow:hidden} .bar2 .bt i{display:block;height:100%;background:var(--you-text)} .bar2 .bt i.ht{background:repeating-linear-gradient(45deg,var(--you-text) 0 5px,transparent 5px 10px)}
.bar2.low .bl b{color:var(--bad-text)} .bar2.low .bt i{background:var(--bad-text)}
.backs2{display:flex;gap:12px;align-items:center} .backs2 .acard.back{width:76px;flex:none} .backs2>b{margin-left:auto;font:700 18px var(--display)}
/* flip */
.flip2{display:flex;flex-direction:column;align-items:center;gap:26px;padding:18px 0 32px}
.flip2 .funt{font-size:50px}
.flips2{display:flex;gap:28px;justify-content:center;flex-wrap:wrap;align-items:flex-start}
.fcol{display:flex;flex-direction:column;align-items:center;gap:14px;width:280px} .fcol.nx{width:220px}
.fcol .who{font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)} .fcol .who.you{color:var(--you-text)} .fcol .who.rival{color:var(--rival-text)}
.fcard{position:relative} .fcard .acard{width:230px;min-height:322px}
.stamp2{position:absolute;left:50%;bottom:-20px;transform:translateX(-50%) rotate(-6deg);padding:9px 16px;border-radius:12px;background:#86EFAC;color:#0B0B0D;border:3px solid #0B0B0D;font:400 24px/1 var(--fun);white-space:nowrap;box-shadow:0 5px 0 #0B0B0D}
.stamp2.gold{background:#FFD21F} .stamp2.bad{background:#F68DBA}
.fline{font-size:16px;font-weight:600;line-height:1.4;color:var(--ink2);text-align:center;padding-top:16px} .fline.dim{font-size:14px;color:var(--muted);padding-top:0}
.fback{transform:perspective(600px) rotateY(25deg)} .fback .acard.back{width:198px}
.eqpill{display:flex;gap:14px;align-items:center;padding:14px 22px;border-radius:16px;background:var(--surface);border:1px solid var(--line)} .eqpill span{font-size:16px;font-weight:600} .eqpill b{font:800 20px var(--display);color:var(--you-text)}
/* service */
.cpills{display:flex;gap:8px;flex-wrap:wrap} .cp{display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:14px;font-size:13px;font-weight:600;background:var(--sunk);color:var(--muted)}
.cp.earn{background:var(--ok-soft);color:var(--ok-text)} .cp.seat{background:var(--you-soft);color:var(--you-text)} .cp.bad{background:var(--bad-soft);color:var(--bad-text)}
.gb2{flex:none;width:30px;height:30px;border-radius:15px;background:var(--you);color:#0B0B0D;display:inline-grid;place-items:center;font:800 13px var(--body)} .gb2.rival{background:var(--rival)} .gb2.sm{width:20px;height:20px;font-size:11px}
.cline{display:flex;gap:12px;align-items:center;font-size:15px;font-weight:600;line-height:1.35}
.banner2{display:flex;align-items:center;gap:14px;padding:18px 22px;border-radius:16px;background:var(--sunk)} .banner2 b{flex:1;font-size:16px} .banner2 .bell{font-size:22px}
.banner2 .ffb{height:44px;border-radius:12px;padding:0 16px;font-size:15px}
.decide2{display:flex;flex-direction:column;gap:14px;padding:18px 20px;border-radius:18px;border:2px solid var(--ink);background:var(--surface)} .decide2.hot{border-color:var(--bad)}
.decide2 .dq{display:flex;align-items:center;gap:14px;font:700 20px var(--display);letter-spacing:-.01em}
.dstatus{font-size:14px;font-weight:600;color:var(--you-text);display:grid;gap:6px}
.opts2{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px} .opts2.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.opt2{appearance:none;position:relative;display:flex;flex-direction:column;gap:6px;text-align:left;padding:16px 16px 18px;border-radius:14px;border:1px solid var(--line);background:var(--sunk);color:var(--ink);cursor:pointer;font:500 13px/1.35 var(--body)}
.opt2 b{font:700 17px var(--display)} .opt2 .r{display:flex;justify-content:space-between;gap:10px} .opt2>span{color:var(--muted)} .opt2 .neg{color:var(--bad-text)}
.opt2.ink{background:var(--ink);color:var(--surface);border-color:var(--ink)} .opt2.ink>span{color:inherit;opacity:.85}
.opt2.off{cursor:default;opacity:.6}
.opt2 .odds{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--ink)!important;opacity:1!important} .opt2.ink .odds{color:var(--surface)!important}
.opt2 kbd{position:absolute;right:10px;bottom:8px;font-size:10px;opacity:.5}
.tiers2{display:flex;flex-direction:column;gap:6px} .tiers2>div{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:8px;padding:12px 16px;border-radius:14px;font-size:15px;color:var(--muted)}
.tiers2>div b{font:800 17px var(--display)} .tiers2>div.on{border:2px solid var(--ok-text);color:var(--ink);font-weight:700} .tiers2>div.on.t0 b{color:var(--ok-text)}
.tiers2>div.on.t1,.tiers2>div.on.t2{border-color:var(--bad-text)} .tiers2>div.on.t1 b,.tiers2>div.on.t2 b{color:var(--bad-text)} .tiers2 .ar{color:var(--ok-text);font-size:13px} .tiers2 .t1 .ar,.tiers2 .t2 .ar{color:var(--bad-text)}
.callout2{display:flex;gap:16px;align-items:center;padding:18px 22px;border-radius:16px;font-size:15px;line-height:1.45;color:var(--ink)} .callout2 b{display:block;font:700 20px var(--display);margin-bottom:2px}
.callout2.waste{background:var(--bad-soft);border:1px solid var(--bad-line)} .callout2.waste b{color:var(--bad-text)} .callout2.ok{background:var(--ok-soft);border:1px solid var(--ok-line)} .callout2.ok b{color:var(--ok-text)} .callout2 .bi{font-size:30px}
.vline{font-size:17px;font-weight:700}
/* vouchers */
.vpage{min-height:calc(100vh - 150px);display:grid;place-items:center}
.vcard2{width:min(790px,100%);padding:36px 34px;display:flex;flex-direction:column;gap:16px} .vcard2 .funt{font-size:38px} .vh2{font:700 22px var(--display)}
.faces2{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;padding:8px 0}
.face2{appearance:none;width:132px;height:134px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-radius:16px;border:2px dashed var(--muted2);background:var(--sunk);color:var(--muted);cursor:pointer;font:700 14px var(--body)}
.face2 .em{font-size:40px;line-height:1} .face2.on{border:3px solid #FFD21F;background:var(--gd-soft);color:var(--gd)} .face2:disabled{opacity:.4;cursor:default}
.vres2{display:flex;flex-direction:column;gap:10px} .vres2 .vl{font-size:14px;font-weight:600;color:var(--muted)}
.vres2>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.vres2>div>div{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 8px;border-radius:14px;font-size:12px;font-weight:600;color:var(--muted)} .vres2>div>div b{font:800 18px var(--display);color:var(--bad-text)}
.vres2>div>div.ok b{color:var(--ok-text)} .vres2>div>div.on{border:2px solid var(--ink);background:var(--sunk)}
.vhint2{font-size:15px;font-weight:600;color:var(--gd)}
.vbtns2{display:grid;grid-template-columns:1fr 2fr;gap:12px;align-items:center} .vbtns2 .obtn{height:56px} .vbtns2 .cta{min-height:56px;font-size:19px}
@media (max-width:700px){.funt{font-size:30px}.gtext .funt,.flip2 .funt{font-size:34px}.hrow{gap:16px}.hand2 .acard{width:160px}.vbtns2{grid-template-columns:1fr}.opts2.two{grid-template-columns:1fr}}

/* ===== Real-time service (service.js) and the hire-staff plan ===== */
.plan2{border-radius:var(--r2,16px);overflow:hidden;background:#F3E6D6}
.plan2 svg{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none}
.rrplan .sec-hit{cursor:pointer}
.rrplan .sec-hit:focus-visible{outline:none;stroke:#FFE08A;stroke-width:4}
.svc2{display:grid;gap:10px}
.svchelp{display:grid;gap:4px;font-size:13px;color:var(--ink2);line-height:1.45}
.svchelp b{color:var(--ink)} .svchelp .dim{color:var(--muted)}
.rrsvc{display:grid;gap:10px}
.rrsvc [hidden]{display:none!important}
.rrsvc-hud{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.rrsvc-hud .rp{display:flex;align-items:baseline;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:7px 12px;font-variant-numeric:tabular-nums}
.rrsvc-hud .rp small{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.04em}
.rrsvc-hud .rp b{font-size:18px;font-weight:800}
.rrsvc-hud .rp.bad b{color:var(--bad,#C2410C)}
.rrsvc-hud .rclock{flex:1 1 240px;display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 14px;font-variant-numeric:tabular-nums}
.rrsvc-hud .rtrack{position:relative;flex:1;height:12px;border-radius:6px;background:var(--line2,#eee)}
.rrsvc-hud .rtrack>i{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:linear-gradient(#FFE08A,#F4B740)}
.rrsvc-hud .ev{position:absolute;top:-24px;transform:translateX(-50%);background:#E76F51;color:#fff;border-radius:9px;padding:2px 7px;font-size:11px;font-weight:800;white-space:nowrap}
.rrsvc-hud .ev.pulse{box-shadow:0 0 0 4px #FFE08A;animation:rrevp 1s ease-in-out infinite}
@keyframes rrevp{50%{box-shadow:0 0 0 8px rgba(255,224,138,.35)}}
@media (prefers-reduced-motion:reduce){.rrsvc-hud .ev.pulse{animation:none}}
.rrsvc-hud .rseg{display:inline-flex;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:3px;gap:2px}
.rrsvc-hud .rseg button{appearance:none;border:0;background:transparent;color:var(--muted);font:700 13px var(--body);padding:6px 12px;border-radius:9px;cursor:pointer}
.rrsvc-hud .rseg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.rrsvc-stage{position:relative;border-radius:18px;overflow:hidden;background:#F3E6D6}
.rrsvc-stage svg{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.rrsvc .click{cursor:pointer} .rrsvc .click:hover>.hl{opacity:1} .rrsvc .hl{opacity:0;transition:opacity .12s}
.rrsvc-toast{position:absolute;left:50%;top:12px;transform:translateX(-50%);background:#FFF7EC;color:#3A2A1E;font-weight:800;padding:8px 14px;border-radius:12px;box-shadow:0 3px 0 rgba(0,0,0,.25);pointer-events:none;transition:opacity .2s;white-space:nowrap}
.rrsvc-ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(30,22,18,.55);z-index:4}
.rrsvc .rcard{position:relative;background:#FFF7EC;color:#3A2A1E;border-radius:18px;padding:22px 24px;max-width:440px;width:calc(100% - 32px);box-shadow:0 6px 0 rgba(0,0,0,.3);display:flex;flex-direction:column;gap:12px}
.rrsvc .rcard h2{font-family:var(--display);font-size:24px;margin:0}
.rrsvc .rcard p{margin:0;font-weight:600;line-height:1.45}
.rrsvc .rcard .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rrsvc .rcard .obtn{color:#3A2A1E}
.rrsvc .rtimer{position:absolute;right:16px;top:14px;font-weight:800;font-variant-numeric:tabular-nums;color:#B3261E;background:#FFE1E3;border-radius:10px;padding:2px 8px}
.rrsvc .rstats{display:grid;grid-template-columns:1fr auto;gap:4px 16px;font-weight:600;font-variant-numeric:tabular-nums}
.rrsvc .rstats b{font-weight:800;text-align:right}
.rrsvc-coach{position:absolute;z-index:3;background:#FFF7EC;color:#3A2A1E;border-radius:14px;padding:10px 14px;width:max-content;max-width:min(280px,80%);box-shadow:0 4px 0 rgba(0,0,0,.35);display:flex;flex-direction:column;gap:8px;transform:translate(-50%,calc(-100% - 16px))}
.rrsvc-coach.below{transform:translate(-50%,16px)}
.rrsvc-coach p{margin:0;font-weight:800;font-size:15px;line-height:1.3}
.rrsvc-coach .row{display:flex;align-items:center;gap:12px}
.rrsvc-coach .step{font-size:11px;font-weight:700;color:#7A5A40;letter-spacing:.04em}
/* Staff step: the plan fills the page, the money panel sits in the kitchen, day-1 tips pop up over it */
.hire2{display:grid;gap:10px}
.hhead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 16px}
.hstage{position:relative;border-radius:18px;overflow:hidden;background:#F3E6D6}
.hstage .rrplan{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none}
.hcard{position:absolute;z-index:2;background:#FFF7EC;color:#3A2A1E;border-radius:14px;box-shadow:0 4px 0 rgba(0,0,0,.3);padding:10px 12px;display:flex;flex-direction:column;gap:5px;overflow:auto;font-size:13px;font-weight:600;line-height:1.3}
.hcard .hrw{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}
.hcard .hrw b{font-weight:800;white-space:nowrap}
.hcard .hrw.you b,.hcard .hrw.you span{color:#1D3BD1;font-weight:800}
.hcard .htitle{font-family:var(--display);font-size:18px;font-weight:700}
.hcard .hbig{font-size:22px}
.hcard .hnote{font-size:12px;color:#7A5A40}
.hcard .hwarn{background:#FFE1E3;color:#B3261E;border-radius:9px;padding:5px 8px;font-weight:800;font-size:12px}
.hcard .linkish{color:#7A5A40;font-size:12px;text-align:left}
.hcard .cta{margin-top:auto;padding:10px 12px;font-size:15px}
.hover2{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;background:rgba(30,22,18,.5)}
.hover2 .rcard{background:#FFF7EC;color:#3A2A1E;border-radius:18px;padding:22px 24px;max-width:420px;width:calc(100% - 32px);box-shadow:0 6px 0 rgba(0,0,0,.3);display:flex;flex-direction:column;gap:12px}
.hover2 h2{font-family:var(--display);font-size:26px;margin:0;line-height:1.15}
.hover2 p{margin:0;font-size:16px;font-weight:600;line-height:1.4}
.hover2 .row.end{display:flex;justify-content:flex-end}
/* Kitchen hover note on the Staff step */
.khover{position:absolute;z-index:3;cursor:help;border-radius:12px}
.khover:hover,.khover:focus-within{box-shadow:inset 0 0 0 3px #FFE08A}
.kbubble{display:none;position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:min(240px,92%);background:#FFF7EC;color:#3A2A1E;border:2px solid #E9C46A;border-radius:16px;padding:12px 14px;box-shadow:0 4px 0 rgba(0,0,0,.3);flex-direction:column;gap:8px;align-items:flex-end;cursor:default}
.kbubble p{margin:0;font-weight:700;font-size:14px;line-height:1.35;align-self:stretch}
.kbubble .cta{padding:6px 14px;font-size:14px}
.khover:hover .kbubble,.khover:focus-within .kbubble{display:flex}
.khover.done .kbubble{display:none}
/* Day-1 hiring tips: B (spotlight on a section) and D (pay rate) */
.hover2 .tstep,.tipbub .tstep{font:700 11px var(--body);letter-spacing:.08em;text-transform:uppercase;color:#7A5A40}
.hover2 .tfoot,.tipbub .tfoot{display:flex;justify-content:space-between;align-items:center}
.hover2 .dots,.tipbub .dots{display:flex;gap:6px}
.hover2 .dots i,.tipbub .dots i{width:8px;height:8px;border-radius:50%;background:#E3D3C1}
.hover2 .dots i.on,.tipbub .dots i.on{background:#3A2A1E}
.tiphole{position:absolute;z-index:4;appearance:none;border:0;padding:0;background:transparent;border-radius:16px;cursor:pointer;box-shadow:0 0 0 3000px rgba(30,22,18,.55);outline:3px dashed #FFE08A;outline-offset:2px}
.tiphole:focus-visible{outline-style:solid}
.tiphand{position:absolute;left:46%;top:44%;width:44px;filter:drop-shadow(0 2px 0 rgba(0,0,0,.3));animation:tiptap 1.2s ease-in-out infinite}
@keyframes tiptap{50%{transform:translateY(6px) scale(.94)}}
@media (prefers-reduced-motion:reduce){.tiphand{animation:none}}
.tipbub{position:absolute;z-index:5;width:min(330px,40%);background:#FFF7EC;color:#3A2A1E;border-radius:18px;padding:18px 20px;box-shadow:0 6px 0 rgba(0,0,0,.28);display:flex;flex-direction:column;gap:10px}
.tipbub:before{content:"";position:absolute;left:-12px;top:44px;border:12px solid transparent;border-left:0;border-right-color:#FFF7EC}
.tipbub h3{font:800 21px var(--display);margin:0;line-height:1.2}
.tipbub p{margin:0;font:500 15px var(--body);line-height:1.45}
.hover2 .pay{max-width:500px}
.hover2 .paygrid{display:grid;grid-template-columns:140px 1fr;gap:18px;align-items:center}
.hover2 .tipbunbox{display:block;border-radius:14px;overflow:hidden;background:#A7D49B;line-height:0}
.hover2 .tipbun{display:block;height:auto}
.hover2 .paybig{font:400 60px var(--fun);line-height:.9;color:#1F7A63}
.hover2 .paybig small{font:800 18px var(--body);color:#3A2A1E;margin-left:6px}
.hover2 .payper{font:600 15px var(--body);color:#7A5A40;margin-top:6px}
.hover2 .payeg{display:flex;gap:8px;align-items:center;background:#F6EDE1;border-radius:12px;padding:9px 12px;font:600 14px var(--body)}
.hover2 .payeg span{color:#7A5A40} .hover2 .payeg b{font-weight:800}
.tbtns{display:flex;align-items:center;gap:14px}
.tback{appearance:none;border:0;background:none;padding:6px 4px;color:#9A8B7E;font:600 14px var(--body);cursor:pointer}
.tback:hover{color:#5C4A3C;text-decoration:underline}
/* Staff plan: a section lights up a little under the pointer, so players see it can be clicked */
.rrplan .sec-hit{transition:fill .12s}
.rrplan .sec-hit:hover,.rrplan .sec-hit:focus-visible{fill:rgba(255,246,214,.18);stroke:#FFE08A;stroke-width:3}
.kbubble{align-items:center;text-align:center;gap:6px}
.kbubble b{font:800 16px var(--body)}
.kbubble p{font-weight:700;font-size:14px}
.hpills{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.rivalcards{background:#FBE3EE;color:#9D174D}
/* Goal pages after the story */
.story.goal .smid{gap:18px}
.goalchip{display:inline-flex;align-items:center;gap:12px;font:400 26px var(--fun);letter-spacing:.06em;color:#FFD21F}
.goalchip .spoonmark{width:22px;height:34px}
.storyart.goalart{aspect-ratio:720/400;background:#1A1A1C}
.goaltext{display:grid;justify-items:center;gap:8px}
.story .gsub{margin:0;font:600 19px/1.45 var(--body);color:#E4E4E7;text-align:center;max-width:52ch}
.story .gsub b{color:#fff}
@media (max-width:700px){.goalchip{font-size:20px}.story .gsub{font-size:16px}}
.pickc .pic .placeart{display:block;width:100%;height:250px}
@media (max-width:700px){.pickc .pic .placeart{height:160px}}
/* Ads flow (day 3+) */
.adsflow{display:grid;justify-items:center;padding:12px 0}
.adsc{width:min(880px,100%);display:grid;gap:16px;padding:28px 32px}
.adsc.center{justify-items:center;text-align:center}
.adsc .funt.big{font-size:52px}
.adsc .cta.inline{justify-self:center;padding:14px 34px}
.adsc .megaphone{width:200px;height:140px}
.ahead{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.aback{appearance:none;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 14px;font:700 14px var(--body);color:var(--ink2);cursor:pointer}
.aback:hover{color:var(--ink)}
.btiles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.btile{border:2px solid var(--line);border-radius:18px;padding:18px;display:grid;justify-items:center;gap:8px;text-align:center;background:var(--sunk,#FAFAFB)}
.btile .em{font-size:44px;line-height:1}.btile b{font-size:18px}.btile>span:last-child{font-size:13px;line-height:1.35;color:var(--muted)}
.btile .when{font:800 11px var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.btile.now{border-color:#E8392B;box-shadow:0 0 0 4px rgba(232,57,43,.12)}.btile.now .when{color:#E8392B}
.adhand{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;padding:6px 0}
.adhand .acard{width:200px}
.asum{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--ink2)}
.asum .you{color:var(--you)}
.anote{display:grid;gap:4px;background:#FFF7E6;color:#7A4A10;border-radius:14px;padding:12px 14px;font-weight:600;font-size:14px;line-height:1.4}
.envs{display:flex;gap:28px;margin:8px 0}
.env{width:150px;height:104px;border-radius:12px;background:#FDE6EF;border:2.5px solid var(--rival);position:relative;display:grid;place-items:center}
.env:before{content:"";position:absolute;inset:0;background:linear-gradient(155deg,transparent 49%,var(--rival) 50%,transparent 52%),linear-gradient(25deg,transparent 49%,var(--rival) 50%,transparent 52%);opacity:.5;border-radius:10px}
.env b{font:400 48px var(--fun);color:var(--rival);position:relative}
.radlist{display:flex;flex-wrap:wrap;gap:22px;justify-content:center}
.radc{width:220px;border-radius:18px;border:3px solid var(--rival);background:var(--surface);padding:16px;display:grid;gap:8px;justify-items:center}
.radc .em{font-size:52px;line-height:1}.radc b{font-size:17px}.radc .big{font:400 30px var(--fun);color:var(--rival)}.radc>span:last-child{font-size:13px;line-height:1.35;color:var(--ink2)}
@media (max-width:700px){.btiles{grid-template-columns:1fr}.adsc{padding:20px 16px}.adsc .funt.big{font-size:38px}}
/* New-day page and Today's ads */
.morn{gap:14px;max-width:640px}
.morn .sunrise{width:160px;height:90px}
.morn .kick{font:800 13px var(--body);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.evts{display:grid;gap:10px;width:100%}
.evt{display:flex;align-items:center;gap:14px;text-align:left;border-radius:16px;padding:12px 16px;font-weight:600;font-size:16px;line-height:1.35}
.evt .em{font-size:30px;width:40px;text-align:center;flex:none}.evt b{display:block;font-weight:800}
.evt.bad{background:#FFECEB;color:#9B1C12}.evt.good{background:#EAF7EE;color:#14532D}.evt.info{background:var(--sunk,#F4F4F5);color:var(--ink2)}
.cashday{display:grid;gap:2px;justify-items:center}.cashday .v{font:400 54px/1 var(--fun);color:var(--ink)}.cashday .l{font-weight:700;font-size:13px;color:var(--muted)}
.morn .rent{font-size:12px;color:var(--muted)}
.sumads .center{text-align:center}
.sumads .grp{display:grid;gap:8px}
.sumads .gh{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px}.sumads .gh b{font-size:17px}.sumads .gh span{font-size:14px;color:var(--muted)}
.sumads .adhand .acard{width:170px}
.sumads .sep{height:1px;background:var(--line)}
/* Ending after day 5 */
.ending{position:relative;min-height:calc(100vh - 170px);border-radius:28px;background:#0B0B0D;color:#F4F4F5;display:grid;place-items:center;padding:32px 20px;overflow:hidden}
.ending.glow::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 40%,rgba(255,210,31,.22),transparent 55%)}
.ein{position:relative;display:grid;justify-items:center;gap:18px;text-align:center;max-width:960px;width:100%}
.ending .moon{width:90px;height:90px}
.ekick{font:800 14px var(--body);letter-spacing:.12em;text-transform:uppercase;color:#A1A1AA}.ekick.gold2{color:#FFE08A}
.efun{font:400 54px/1.05 var(--fun);color:#FFD21F;margin:0}.efun.sm{font-size:44px}.efun.big{font-size:64px}
.esub{margin:0;font:600 20px/1.45 var(--body);color:#E4E4E7}
.edots{display:flex;gap:10px}.edots i{width:10px;height:10px;border-radius:50%;background:#FFD21F;animation:eb 1.2s infinite}.edots i:nth-child(2){animation-delay:.2s}.edots i:nth-child(3){animation-delay:.4s}
@keyframes eb{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.edots i{animation:none}}
.eav{display:block;width:150px;height:150px;border-radius:50%;background-image:url(assets/key-art.jpg);background-size:auto 210%;border:6px solid;box-shadow:0 0 0 6px rgba(255,255,255,.06)}
.eav.cat{border-color:#5B78FF;background-position:12% 46%}.eav.dog{border-color:#F0559A;background-position:86% 46%}.eav.sm{width:64px;height:64px;border-width:4px}
.epair{display:flex;gap:70px}.ewho{display:grid;gap:10px;justify-items:center;font:800 18px var(--body)}.ewho.row{grid-auto-flow:column;align-items:center;gap:12px}
.ending .you{color:#8EA2FF}.ending .riv{color:#F78BBE}
.etally{display:grid;grid-template-columns:1fr 1fr;gap:26px;width:min(860px,100%)}
.ebal{background:#1A1A1C;border-radius:22px;padding:22px 24px;display:grid;gap:12px;justify-items:center;border:3px solid}.ebal.you{border-color:#5B78FF}.ebal.riv{border-color:#F0559A}
.eline{display:flex;justify-content:space-between;width:100%;font:600 18px var(--body);color:#D4D4D8}.eline b{color:#fff}
.estars{color:#FFD21F;letter-spacing:2px}.estars s{color:#3F3F46;text-decoration:none}
.etot{border-top:1px dashed #52525B;padding-top:10px;width:100%;display:flex;justify-content:space-between;align-items:baseline}.etot span{font:700 15px var(--body);color:#A1A1AA}.etot b{font:400 46px var(--fun);color:#FFD21F}
.erule{font:600 15px var(--body);color:#A1A1AA}
.ebadge svg{width:190px;height:190px}
.espoon{font:400 70px/1 var(--fun);color:#FFD21F;text-shadow:0 4px 0 #8A6A00}
.epic{width:min(560px,100%);border-radius:22px;border:4px solid #27272A}
.etwo{display:grid;grid-template-columns:auto 1fr;gap:34px;align-items:center;text-align:left}.ecol{display:grid;gap:14px;justify-items:start}
.ecrop{display:block;width:210px;height:210px;border-radius:26px;background-size:auto 150%;border:5px solid}.ecrop.you{border-color:#5B78FF}.ecrop.riv{border-color:#F0559A}.ecrop.sm2{width:170px;height:170px;border-color:#3F3F46}
.econs{display:flex;gap:30px;align-items:center;justify-content:center;flex-wrap:wrap}.epair2{display:flex;align-items:center;gap:10px}.eplus{font:400 40px var(--fun);color:#71717A}
.equote{position:relative;background:#FFF7EC;color:#3A2A1E;border-radius:20px;padding:18px 22px;font:600 18px/1.5 var(--body);max-width:480px;text-align:left}
.equote small{display:block;margin-top:8px;font:800 13px var(--body);color:#9D174D}
@media (max-width:700px){.etally,.etwo{grid-template-columns:1fr}.efun{font-size:36px}.efun.sm{font-size:30px}.efun.big{font-size:42px}.espoon{font-size:46px}.epair{gap:30px}.eav{width:110px;height:110px}}
/* Step timer (pick, ads, staff, vouchers, recap) */
.steptimer{justify-self:end;display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.steptimer b{font-size:16px;color:var(--ink)}
.steptimer.hot{border-color:#E8392B;background:#FFECEB;color:#9B1C12}.steptimer.hot b{color:#B3261E}

/* ===== One screen per step: the game area is exactly the window height, nothing scrolls =====
   #app is a size container, so pictures can scale with its height (cqh units). */
.wrap{height:100dvh;box-sizing:border-box;padding:10px 24px 12px;grid-template-rows:auto minmax(0,1fr);gap:10px}
.bar{padding-bottom:8px}
#app{container-type:size;display:flex!important;flex-direction:column;gap:10px!important;min-height:0;overflow:auto}
#app>*{flex:none}
#app>.strip.soft{padding:5px 14px;font-size:13px}
#app>.steptimer{margin-bottom:-4px}
#app>.story,#app>.ending,#app>.gift2,#app>.solo2,#app>.vpage,#app>.adsflow,#app>.hire2,#app>.svc2{flex:1 1 auto;min-height:0}
/* story, goal and ending pages */
.story{min-height:0;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:12px 24px 16px}
.story .smid{gap:clamp(8px,2.5cqh,34px);min-height:0}
.storyart{width:auto;max-width:100%;height:clamp(160px,50cqh,400px)}
.storyart.goalart{height:clamp(150px,44cqh,400px)}
.story .cap{font-size:clamp(24px,5.2cqh,46px)}
.story.goal .smid{gap:clamp(6px,1.6cqh,18px)}.story .gsub{font-size:clamp(14px,2.3cqh,19px)}.goalchip{font-size:clamp(18px,3cqh,26px)}
.story .cta{min-height:48px}
.ending{min-height:0;padding:16px 20px}.ein{gap:clamp(8px,1.8cqh,18px)}
.efun{font-size:clamp(30px,6.5cqh,54px)}.efun.sm{font-size:clamp(26px,5.3cqh,44px)}.efun.big{font-size:clamp(34px,7.5cqh,64px)}.espoon{font-size:clamp(38px,8cqh,70px)}
.ending .moon{width:clamp(48px,10cqh,90px);height:auto}.eav{width:clamp(80px,17cqh,150px);height:clamp(80px,17cqh,150px)}
.ebadge svg{width:clamp(100px,22cqh,190px);height:auto}.epic{width:auto;max-width:100%;height:clamp(180px,46cqh,380px)}
.ecrop{width:clamp(120px,26cqh,210px);height:clamp(120px,26cqh,210px)}.ecrop.sm2{width:clamp(100px,20cqh,170px);height:clamp(100px,20cqh,170px)}
.etally .ebal{padding:clamp(12px,2.4cqh,22px) 22px;gap:clamp(6px,1.4cqh,12px)}.etot b{font-size:clamp(30px,6cqh,46px)}
/* day 1 gift, offer card, vouchers */
.gift2{min-height:0;gap:clamp(8px,2cqh,26px);padding:0}.giftart{width:auto;max-width:100%;height:clamp(160px,46cqh,475px)}
.gtext .funt{font-size:clamp(28px,5.5cqh,50px)}
.solo2,.vpage{min-height:0}
/* pick */
.pick-title h1{font-size:clamp(26px,4.6cqh,40px)}
.pickc .pic .placeart{height:clamp(110px,28cqh,250px)}
.pickc .in{gap:clamp(8px,1.6cqh,18px);padding:clamp(12px,2cqh,22px) 26px}
.pickc .st{padding:clamp(8px,1.4cqh,14px)}.pickc .st b{font-size:clamp(22px,3.6cqh,30px)}
/* staff and service: the restaurant drawing (1352 × 600) scales to the height that's left */
.hire2,.svc2{container-type:size;display:flex;flex-direction:column;gap:6px}
.hire2 .hhead .funt{font-size:30px;line-height:1.1}
.hstage{flex:none;width:min(100cqw,calc((100cqh - 46px) * 2.2533));align-self:center}
.svc2 .rrsvc{gap:6px;justify-items:center}
.svc2 .rrsvc-hud{width:min(100cqw,calc((100cqh - 96px) * 2.2533))}
.rrsvc-stage{width:min(100cqw,calc((100cqh - 96px) * 2.2533))}
.svc2 .rrsvc-hud .rp,.svc2 .rrsvc-hud .rclock{padding-top:5px;padding-bottom:5px}
.svchelp{gap:0;font-size:12px;line-height:1.35;text-align:center}
/* ads pages and today's ads */
.adsc{gap:clamp(8px,1.6cqh,16px);padding:clamp(14px,2.6cqh,28px) 32px}
.adhand .acard{width:clamp(150px,27cqh,200px)}
.sumads{grid-template-columns:1fr 1fr;width:min(1100px,100%)}.sumads>h1,.sumads>.cta{grid-column:1/-1}.sumads .sep{display:none}
.sumads .adhand .acard{width:clamp(120px,22cqh,160px)}
.adsc.morn{gap:clamp(6px,1.4cqh,14px)}.morn .sunrise{width:clamp(80px,14cqh,160px);height:auto}.adsc .funt.big{font-size:clamp(34px,7cqh,52px)}.cashday .v{font-size:clamp(34px,6.5cqh,54px)}
.adsc .megaphone{width:clamp(110px,18cqh,200px);height:auto}
/* step timer sits at the right, on its own short line */
#app>.steptimer{align-self:flex-end}
/* offer card (shady deal) */
.offer2{padding:clamp(18px,3cqh,34px) 30px;gap:clamp(10px,1.8cqh,22px)}.offer2 .funt{font-size:clamp(26px,4.4cqh,38px)}.och{padding:clamp(12px,2cqh,22px) 20px}
/* market: a little tighter */
.shelf{gap:8px}.item{padding:10px 12px}
/* vouchers: smaller faces, more per row */
.vcard2{width:min(960px,100%);padding:clamp(18px,3cqh,36px) 30px;gap:clamp(8px,1.4cqh,16px)}.vcard2 .funt{font-size:clamp(26px,4.4cqh,38px)}
.faces2{gap:10px;padding:2px 0}.face2{width:clamp(84px,12cqh,132px);height:clamp(80px,11.5cqh,134px);gap:4px;font-size:12px}.face2 .em{font-size:clamp(24px,4cqh,36px)}
.vres2>div>div{padding:8px 6px}
/* recap */
.recap-top .hero{padding:clamp(14px,2.6cqh,28px) 26px;gap:clamp(8px,1.6cqh,18px)}
.hero .money{gap:6px}.hero .money .gold{font-size:clamp(46px,8cqh,84px)}.hero .money .loss{font-size:clamp(38px,6.5cqh,64px)}
.starbox{padding:10px 14px}
.recap-top .race,.recap-bot .panel{padding:clamp(12px,2cqh,18px) 18px;gap:clamp(6px,1.2cqh,12px)}
.lines>div{padding:3px 0}.lines .tot{padding-top:6px}
.tile{padding:8px 10px}
/* final results */
.final-hero{min-height:0;height:clamp(150px,25cqh,360px)}
.final-hero .in{padding:18px 26px}.final-hero .gold{font-size:clamp(40px,7cqh,76px)}.final-hero .plain{font-size:clamp(32px,5.5cqh,56px)}
.final-mid>.panel{padding:clamp(12px,2cqh,22px) 20px!important;gap:8px}
.chart{display:block;width:100%;height:clamp(100px,19cqh,250px)}
.talk li{padding:8px 12px}
.again{padding:clamp(12px,2.2cqh,22px) 22px;gap:8px}.again .cta,.again .ghost{min-height:0;padding-top:10px;padding-bottom:10px}
/* short windows (small laptops): a little less air everywhere */
@media (max-height:820px){
  .wrap{padding:6px 20px 8px;gap:6px}.bar{padding-bottom:4px}#app{gap:6px!important}
  .offer2 .fsub{font-size:14px}.offer2 .ochoices{gap:8px}.och{gap:4px;padding:10px 18px}.offer2{gap:10px}.offer2>.cta{min-height:48px}
  .final-hero{height:clamp(136px,18cqh,360px)}.final-hero .in{padding:12px 22px}.score{padding:10px 16px;gap:2px}.score .n{font-size:32px}.daylog{padding:10px 18px}.chart{height:clamp(114px,21cqh,250px)}.talk ol{gap:6px}.talk li{padding:6px 10px;font-size:13px}.again span{font-size:13px}
  .faces2{gap:8px}.vres2{gap:6px}
  .brief{gap:10px}
}
