/* Plej, "Quiet Money": warm white, ink, one cobalt accent. Big thin numbers, lots of air.
   Higher is always green, Lower always red. */
:root {
  --bg: #fbfaf8;
  --panel: #f1f0ec;
  --card: #ffffff;
  --ink: #121314;
  --ink-2: #3a3c40;
  --dim: #7a7d82;
  --line: #e8e6e1;
  --blue: #2346ff;
  --blue-soft: #eef1ff;
  --up: #138a5a;
  --up-soft: #e8f5ee;
  --down: #d9443a;
  --down-soft: #fcecea;
  --warn: #a86400;
  --warn-soft: #fff4e0;
  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
  --radius: 28px;
  --shadow: 0 8px 24px #0000000d, 0 0 0 1px #0000000a;
  --on-ink: #ffffff;        /* text on an ink-coloured fill */
  --on-ink-dim: #b9bcc2;
  --on-ink-blue: #aab7ff;
  --ink-hover: #2a2c30;
  --blue-ink: #1b2a8a;      /* text on --blue-soft */
  --faint: #c9c7c2;         /* placeholders, waiting dots */
  --logo-bg: #121314;       /* stock logo tiles stay dark in both themes */
  color-scheme: light;
}
/* Dark theme. Picked by the theme switch (data-theme="dark"), or by the system when the switch is on "system". */
:root[data-theme="dark"] {
  --bg: #0d0e0f;
  --panel: #17181a;
  --card: #1c1d20;
  --ink: #f1f0ec;
  --ink-2: #c8c9cc;
  --dim: #8c8f95;
  --line: #2b2c30;
  --blue: #4d66ff;
  --blue-soft: #1a1f3f;
  --up: #2fb879;
  --up-soft: #12291e;
  --down: #f0625a;
  --down-soft: #34181a;
  --warn: #e3a345;
  --warn-soft: #2d2313;
  --shadow: 0 8px 24px #00000059, 0 0 0 1px #ffffff0f;
  --on-ink: #0d0e0f;
  --on-ink-dim: #55585e;
  --on-ink-blue: #2346ff;
  --ink-hover: #d6d5d1;
  --blue-ink: #b4c0ff;
  --faint: #4a4c51;
  --logo-bg: #050506;
  color-scheme: dark;
}
:root[data-theme="dark"] .lg { box-shadow: 0 0 0 1px #ffffff1f inset }
:root.theme-anim, :root.theme-anim * { transition: background-color .2s, border-color .2s, color .2s, fill .2s !important }

/* ---------- Theme switch ---------- */
.themebtn { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); display: inline-grid; place-items: center; padding: 0 }
.themebtn:hover { background: var(--panel); color: var(--ink) }
.themebtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: none }
:root:not([data-theme-pref]) .themebtn .i-system, [data-theme-pref="system"] .themebtn .i-system,
[data-theme-pref="dark"] .themebtn .i-dark, [data-theme-pref="light"] .themebtn .i-light { display: block }
.themebtn::after { content: attr(data-tip); position: absolute; top: calc(100% + 10px); right: 0; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 13px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(-3px); transition: opacity .15s, transform .15s; z-index: 50 }
.themebtn:hover::after, .themebtn:focus-visible::after { opacity: 1; transform: none }
@media (hover: none) { .themebtn:hover::after { opacity: 0 } }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column }
a { color: inherit }
button, input { font: inherit; color: inherit }
button { cursor: pointer }
button:disabled { cursor: not-allowed; opacity: .5 }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px }
.num { font-variant-numeric: tabular-nums }
.dim { color: var(--dim) }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; padding: 12px max(16px, env(safe-area-inset-left, 0px)) 0 }
/* Logo left, menu centred on the page, button/wallet right. */
/* Floating rounded bar. */
.top .wrap { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 20px; max-width: 1120px; min-height: 60px; padding: 8px 8px 8px 22px; background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 99px; box-shadow: 0 10px 30px -18px #12131440 }
.top .wrap > .logo { justify-self: start }
.top .wrap > :last-child { justify-self: end }
.top-end { display: flex; align-items: center; gap: 10px }
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; line-height: 0 }
.logo svg { height: 28px; width: auto; display: block }
footer .logo svg { height: 26px }
.logo svg path[fill="#2346ff"] { fill: var(--blue) }
.tabs { display: flex; gap: 4px; min-width: 0 }
.tabs a { text-decoration: none; color: var(--dim); padding: 8px 14px; border-radius: 99px; font-size: 15px; white-space: nowrap }
.tabs a:hover { color: var(--ink) }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 500 }
.tag { font-size: 12px; color: var(--dim); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; white-space: nowrap }
.walletbox { display: flex; gap: 10px; align-items: center; flex: none; white-space: nowrap }
.walletbox.wchip { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 4px 4px 4px 14px }
.walletbox .addrbtn { border: 0; background: var(--panel); border-radius: 99px; padding: 5px 11px; font-size: 14px; color: var(--ink-2) }
.walletbox .addrbtn:hover { background: var(--line) }
.walletbox .bal { font-size: 14px; color: var(--dim) }
.walletbox .bal b { color: var(--ink); font-weight: 500 }
.linkish { background: none; border: 0; padding: 0; color: var(--blue); font-size: 14px }
.linkish:hover { text-decoration: underline }
@media (max-width: 1100px) { .tag { display: none } .tabs a { padding: 7px 9px; font-size: 14px } }
@media (max-width: 960px) { .walletbox .bal { display: none } }
@media (max-width: 820px) { .top .tabs { display: none } .top .wrap { grid-template-columns: 1fr auto } }

/* ---------- Buttons ---------- */
.btn { text-decoration: none; display: inline-block; text-align: center; background: var(--ink); color: var(--on-ink); border: 0; padding: 13px 22px; border-radius: 99px; font-weight: 500; transition: background .15s }
.btn:hover:not(:disabled) { background: var(--ink-hover) }
.btn.blue { background: var(--blue); color: #fff } .btn.blue:hover:not(:disabled) { background: #1a37e0 }
.btn.light { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset }
.btn.light:hover:not(:disabled) { background: var(--panel) }
.btn.small { padding: 7px 14px; font-size: 14px; border-radius: 99px }
.btn.wide { width: 100% }

/* ---------- Page ---------- */
main { flex: 1; padding-block: 44px 80px }
.view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px }
.eyebrow { font-size: 13px; color: var(--blue); font-weight: 500; margin: 0 0 12px }
h1.title { font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -.045em; margin: 0; text-wrap: balance }
h1.title span { color: var(--dim) }
.lead { color: var(--dim); font-size: 17px; max-width: 54ch; margin: 14px 0 0; font-weight: 300 }
h2.section { font-size: 15px; font-weight: 500; margin: 0 0 14px; letter-spacing: -.01em }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start }
.grid2 > *, .grid3 > * { min-width: 0 }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start }
@media (max-width: 1000px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 820px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr) } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px }
.k { font-size: 13px; color: var(--dim) }

/* ---------- Prize stage (the floating-cards field) ---------- */
.stage { align-content: center; position: relative; background: var(--panel); border-radius: 22px; padding: 40px 28px 28px; display: grid; gap: 26px; overflow: hidden }
.stage .pot { text-align: center }
.stage .pot b { display: block; font-weight: 300; font-size: clamp(56px, 9vw, 104px); letter-spacing: -.055em; line-height: 1 }
.stage .pot span { font-size: 14px; color: var(--dim) }
.floats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start }
.float { background: var(--card); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 12px; color: var(--dim); min-width: 0 }
.float b { display: block; color: var(--ink); font-size: 19px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
@media (max-width: 560px) { .floats { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* ---------- Forms ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border-radius: 99px; padding: 4px; gap: 4px; margin-bottom: 18px }
.seg button { border: 0; background: transparent; padding: 8px; border-radius: 99px; color: var(--dim); font-weight: 500 }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px #0000000f }
.amount { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 20px; padding: 6px 8px 6px 18px; background: var(--card) }
.amount:focus-within { border-color: var(--ink) }
.amount input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font-size: 36px; font-weight: 300; letter-spacing: -.04em; padding: 6px 0; outline: none }
.amount input::placeholder { color: var(--faint) }
.amount .unit { color: var(--dim); font-size: 14px }
.amount .max { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 5px 9px; font-size: 13px; color: var(--ink-2) }
.under { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--dim); margin: 10px 2px 18px }
.under b { color: var(--ink); font-weight: 500 }
.note { font-size: 14px; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; background: var(--blue-soft); color: var(--blue-ink) }
.note.warn { background: var(--warn-soft); color: var(--warn) }

/* ---------- Rows / tables ---------- */
.stats { display: grid; gap: 0 }
.stat { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px }
.stat:first-child { border-top: 0; padding-top: 0 }
.stat span { color: var(--dim) }
.stat b { font-weight: 500 }
.bigline { font-weight: 300; font-size: 48px; letter-spacing: -.05em; line-height: 1; margin: 8px 0 18px }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card) }
table.ledger { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px }
table.ledger th { text-align: left; font-weight: 400; color: var(--dim); font-size: 13px; padding: 14px 18px; border-bottom: 1px solid var(--line) }
table.ledger td { padding: 14px 18px; border-top: 1px solid var(--line) }
table.ledger tr:first-child td { border-top: 0 }
table.ledger td:last-child, table.ledger th:last-child { text-align: right }
.you { color: var(--blue); font-weight: 500 }
.empty { color: var(--dim); font-size: 15px; padding: 18px; text-align: center }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.steps div { border-top: 1px solid var(--ink); padding-top: 14px }
.steps b { display: block; font-weight: 500; margin-bottom: 4px }
.steps p { margin: 0; color: var(--dim); font-size: 15px }
@media (max-width: 720px) { .steps { grid-template-columns: minmax(0, 1fr) } }

/* ---------- Weekend Gap ---------- */
.market { display: grid; gap: 14px }
.market .head { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.market .sym { font-weight: 600; letter-spacing: -.02em; font-size: 17px }
.market .q { font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin: 0; text-wrap: balance }
.market .price { font-weight: 300; font-size: 40px; letter-spacing: -.05em; line-height: 1 }
.market .price small { font-size: 13px; color: var(--dim); letter-spacing: 0; display: block; font-weight: 400; margin-top: 6px }
.split { display: flex; height: 6px; gap: 3px }
.split .u { background: var(--up); border-radius: 99px; min-width: 6px; transition: width .4s }
.split .d { background: var(--down); border-radius: 99px; min-width: 6px; transition: width .4s }
.split.none .u, .split.none .d { background: var(--line) }
.pools { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim) }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.side { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; text-align: left; font-weight: 500; font-size: 16px; transition: background .15s, border-color .15s }
.side small { display: block; color: var(--dim); font-size: 12px; font-weight: 400 }
.side.u { color: var(--up) } .side.d { color: var(--down) }
.side.u:hover:not(:disabled), .side.u[aria-pressed="true"] { background: var(--up-soft); border-color: var(--up) }
.side.d:hover:not(:disabled), .side.d[aria-pressed="true"] { background: var(--down-soft); border-color: var(--down) }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--panel); color: var(--ink-2); white-space: nowrap }
.chip.open { background: var(--blue-soft); color: var(--blue) }
.chip.open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.chip.up { background: var(--up-soft); color: var(--up) } .chip.down { background: var(--down-soft); color: var(--down) }
.betbox { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px }
.betbox .amount input { font-size: 26px }
.est { font-size: 14px; color: var(--dim) } .est b { color: var(--ink); font-weight: 500 }
.mine { font-size: 14px; background: var(--panel); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center }
.up-t { color: var(--up) } .down-t { color: var(--down) }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)) }
.toast { background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: 0 12px 32px #0003 }
.toast.err { background: var(--down) }
.toast.ok { background: var(--up) }
.toast a { color: var(--on-ink); font-weight: 500 }

footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 13px }
footer .wrap { padding-block: 22px; display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between }

.skeleton { color: transparent !important; background: var(--panel); border-radius: 8px; animation: pulse 1.4s ease-in-out infinite }
@keyframes pulse { 50% { opacity: .55 } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none } * { transition: none !important } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

/* Winners strip */
.wins { display: grid; gap: 12px }
.wins-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; font-size: 14px; color: var(--dim) }
.wins-head b { color: var(--ink); font-weight: 500 }
.wins-window { display: flex; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; margin: 0 -2px }
.wins-window::-webkit-scrollbar { display: none }
.wins-track { list-style: none; margin: 0; padding: 0 10px 0 0; display: flex; gap: 10px; flex: none }
.win { flex: none; display: grid; gap: 2px; min-width: 132px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow) }
.win .who { font-size: 12px; color: var(--dim) }
.win b { font-weight: 400; font-size: 22px; letter-spacing: -.04em; line-height: 1.1 }
.win .what { font-size: 12px; color: var(--dim) }
.win.big { background: var(--ink); border-color: var(--ink); color: var(--on-ink); min-width: 168px }
.win.big .who, .win.big .what { color: var(--on-ink-dim) }
.win.mine { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset }
.win.mine .who { color: var(--blue); font-weight: 500 }
.win.big.mine .who { color: var(--on-ink-blue) }
.wins.marquee .wins-window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent) }
.wins.marquee .wins-track { animation: wins-scroll 60s linear infinite }
.wins.marquee .wins-window:hover .wins-track { animation-play-state: paused }
@keyframes wins-scroll { to { transform: translateX(-100%) } }
@media (prefers-reduced-motion: reduce) {
  .wins.marquee .wins-window { overflow-x: auto }
  .wins.marquee .wins-track { animation: none }
  .wins.marquee .wins-track[aria-hidden] { display: none }
}

/* Win reveal */
.no-scroll { overflow: hidden }
.reveal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(6px); animation: reveal-in .25s ease-out }
.reveal-card { width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); border-radius: 24px; padding: 32px 28px 24px; text-align: center; box-shadow: 0 40px 80px -30px #12131433, 0 0 0 1px var(--line); animation: reveal-up .45s cubic-bezier(.2, .8, .2, 1) }
.reveal-card .eyebrow { margin-bottom: 8px }
.reveal-title { font-weight: 400; font-size: 40px; letter-spacing: -.05em; margin: 0 }
.reveal-amount { margin: 18px 0 6px; display: grid; gap: 4px }
.reveal-amount b { font-weight: 300; font-size: clamp(56px, 16vw, 84px); letter-spacing: -.06em; line-height: 1 }
.reveal-amount span { color: var(--dim); font-size: 15px }
.reveal-what { margin: 8px 0 0; color: var(--ink-2) }
.reveal-note { margin: 14px 0 0; background: var(--panel); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2) }
.reveal-actions { display: grid; gap: 8px; margin-top: 24px }
@keyframes reveal-in { from { opacity: 0 } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(24px) scale(.97) } }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-card { animation: none } }
.stage .pot .boost, .pot .boost { display: table; margin: 10px auto 0; font-size: 12px; font-weight: 500; color: var(--blue); background: #2346ff14; border-radius: 99px; padding: 4px 11px; cursor: help }

/* ---------- Daily Streak ---------- */
.today { display: grid; gap: 16px }
.today .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap }
.today .q { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin: 0; text-wrap: balance }
.today p.k { margin: 0; font-size: 14px } .today p.k b { color: var(--ink); font-weight: 500 }
.pickbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.pickbtn { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 18px 16px; text-align: left; display: grid; gap: 6px; transition: background .15s, border-color .15s }
.pickbtn .psym { font-weight: 300; font-size: 40px; letter-spacing: -.05em; line-height: 1 }
.pickbtn small { color: var(--dim); font-size: 13px }
.pickbtn:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-soft) }
.pickbtn:disabled { opacity: 1; cursor: default }
.pickbtn.mine { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; background: var(--blue-soft) }
.pickbtn.won .psym { color: var(--up) }
.bigline small { font-size: 18px; color: var(--dim); letter-spacing: 0; font-weight: 400 }
.dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px }
.dot { height: 30px; border-radius: 8px; background: var(--panel); display: grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--dim) }
.dot.mile { box-shadow: 0 0 0 1px var(--line) inset; background: var(--card) }
.dot.on { background: var(--blue); color: #fff; box-shadow: none }

/* Win cards (share sheet) and the test money helper */
.acts { display: inline-flex; gap: 14px; align-items: center }
.share-card, .help-card { width: min(560px, 100%); padding: 24px 22px 20px }
.share-title { font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin: 0 0 16px }
.share-img { aspect-ratio: 1200 / 675; border-radius: 14px; overflow: hidden; background: #0c0c0d; box-shadow: 0 0 0 1px var(--line) }
.share-img img { display: block; width: 100%; height: auto }
.share-img .skeleton { width: 100%; height: 100%; border-radius: 0; background: #1b1b1d }
.share-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px }
.share-hint { min-height: 1.5em; margin: 2px 0 0; font-size: 14px; color: var(--ink-2) }
.share-hint:empty { min-height: 0; margin: 0 }
.addr { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 16px; background: var(--panel); border-radius: 12px; padding: 10px 14px; font-size: 13px; text-align: left }
.addr span { overflow-wrap: anywhere }

/* ---------- App polish: page heads, phone tab bar, Lapa finish ---------- */
.bottombar { display: none }
.bottombar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
@media (max-width: 820px) {
  .bottombar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 7px max(6px, env(safe-area-inset-left, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) }
  .bottombar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--dim); text-decoration: none; padding: 3px 0 }
  .bottombar a[aria-current="page"] { color: var(--ink); font-weight: 500 }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) }
  main { padding-top: 28px }
}
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap }
.pagehead h1 { font-weight: 400; font-size: clamp(28px, 4vw, 36px); letter-spacing: -.035em; line-height: 1.1; margin: 0 }
.pagehead p { margin: 4px 0 0; color: var(--dim); font-size: 15px; max-width: 60ch }

/* A chip that cycles through a few facts */
.cycle { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 99px; background: var(--panel); font-size: 14px; color: var(--ink-2); overflow: hidden; max-width: 100% }
.cycle::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 9px; background: var(--blue) }
.cycle .rot { display: grid; height: 20px; overflow: hidden }
.cycle .rot span { height: 20px; line-height: 20px; white-space: nowrap; animation: rot3 9s infinite }
.cycle .rot.n2 span { animation-name: rot2; animation-duration: 6s }
@keyframes rot3 { 0%, 28% { transform: translateY(0) } 33%, 61% { transform: translateY(-20px) } 66%, 94% { transform: translateY(-40px) } 100% { transform: translateY(0) } }
@keyframes rot2 { 0%, 42% { transform: translateY(0) } 50%, 92% { transform: translateY(-20px) } 100% { transform: translateY(0) } }

/* Prize pot hero */
.hero { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 26px; display: grid; gap: 22px }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60%; height: 90%; background: radial-gradient(closest-side, #2346ff26, #2346ff08 60%, transparent); pointer-events: none }
.hero > * { position: relative; z-index: 1 }
.potline { display: flex; align-items: flex-end; gap: 8px 14px; flex-wrap: wrap }
.potline .sub { flex-basis: 100%; color: var(--dim); font-size: 15px }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--up); background: var(--up-soft); padding: 5px 11px; border-radius: 99px; margin-bottom: 12px; white-space: nowrap }
.cents { font-size: .45em; color: var(--dim); letter-spacing: -.02em }
.odo { display: inline-flex; font-weight: 300; font-size: clamp(60px, 9vw, 112px); letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums }
.odo .d { display: inline-block; height: 1em; overflow: hidden }
.odo .d > span { display: block }
.odo .d i { display: block; height: 1em; font-style: normal }
.odo.roll .d > span { animation: odo 1.5s cubic-bezier(.2, .8, .2, 1) both }
@keyframes odo { from { transform: translateY(0) } }
.odo .cents { align-self: flex-start; margin-top: .16em }
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 420px }
.clock div { background: var(--panel); border-radius: 16px; padding: 9px 0 7px; text-align: center; font-size: 12px; color: var(--dim) }
.clock b { display: block; font-size: 26px; font-weight: 400; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2 }
.prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.prizes div { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--dim) }
.prizes b { display: block; font-size: 20px; font-weight: 400; color: var(--ink); letter-spacing: -.02em; white-space: nowrap }
.hero .boost { margin: 0 }

/* Facts with ticks, and the live checklist */
.ticks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 2px 0; font-size: 13px; color: var(--ink-2) }
.ticks span::before { content: "\2713"; color: var(--blue); margin-right: 5px; font-weight: 600 }
.checklist { display: grid; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px }
.checklist div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 7px 0; font-size: 14px }
.checklist i { width: 24px; height: 24px; border-radius: 99px; border: 1.5px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--dim) }
.checklist .done i { background: var(--ink); border-color: var(--ink); color: var(--on-ink) }
.checklist small { display: block; color: var(--dim); font-size: 13px }

/* Folded reference sections */
details.fold { border-top: 1px solid var(--line); padding-top: 16px }
details.fold > summary { cursor: pointer; list-style: none; font-weight: 500; font-size: 15px; display: flex; justify-content: space-between; gap: 12px }
details.fold > summary::-webkit-details-marker { display: none }
details.fold > summary::after { content: "+"; color: var(--dim); font-weight: 400 }
details.fold[open] > summary::after { content: "\2212" }
details.fold[open] > summary { margin-bottom: 16px }

/* Higher / Lower as rows: payout and the crowd's share */
.rows { display: grid; gap: 8px }
.row-side { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--panel); border: 1px solid transparent; text-align: left; font: inherit; color: inherit; transition: background .15s, border-color .15s }
.row-side .n { font-size: 16px; font-weight: 500 }
.row-side .n small { display: block; font-size: 12px; color: var(--dim); font-weight: 400 }
.row-side .x { font-size: 15px; color: var(--ink-2) }
.row-side .p { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 99px; min-width: 52px; text-align: center }
.row-side.u .n { color: var(--up) } .row-side.u .p { background: var(--up-soft); color: var(--up) }
.row-side.d .n { color: var(--down) } .row-side.d .p { background: var(--down-soft); color: var(--down) }
.row-side.u:hover:not(:disabled), .row-side.u[aria-pressed="true"] { background: var(--up-soft); border-color: var(--up) }
.row-side.d:hover:not(:disabled), .row-side.d[aria-pressed="true"] { background: var(--down-soft); border-color: var(--down) }
.row-side.u[aria-pressed="true"] .p { background: var(--card) } .row-side.d[aria-pressed="true"] .p { background: var(--card) }

/* Streak as pills that stretch when filled */
.pills { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 4px 0 18px }
.pills i { height: 10px; width: 10px; border-radius: 99px; background: var(--line); transition: width .3s }
.pills i.on { width: 28px; background: var(--ink) }
.pills i.goal { width: auto; height: auto; background: none; font-style: normal; font-size: 11px; font-weight: 500; color: var(--dim); border: 1px solid var(--line); padding: 2px 8px }
.pills i.goal.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink) }

/* Today */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap }
.hello h1 { font-weight: 300; font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -.045em; line-height: 1.05; margin: 0 }
.hello h1 span { color: var(--dim) }
.totals { display: flex; gap: 28px; flex-wrap: wrap }
.totals div { font-size: 13px; color: var(--dim) }
.totals b { display: block; font-size: 28px; font-weight: 400; color: var(--ink); letter-spacing: -.03em; line-height: 1.15 }
.winbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; background: var(--ink); color: var(--on-ink); border-radius: 20px; padding: 14px 16px 14px 20px }
.winbar b { font-weight: 500 }
.winbar .dim { color: var(--on-ink-dim) }
.winbar .btn { background: var(--on-ink); color: var(--ink) }
/* Points line on Today */
.ptsbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; color: var(--ink); text-decoration: none; font-size: 15px }
.ptsbar b { font-weight: 500 }
.ptsbar .go { color: var(--blue); font-weight: 500; white-space: nowrap }
.ptsbar:hover { border-color: var(--ink-2) }
table.ledger.points-table { min-width: 480px }
table.ledger tr.me-row td { background: var(--blue-soft) }
.todo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start }
@media (max-width: 820px) { .todo { grid-template-columns: minmax(0, 1fr) } }
.game { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px }
.game .gh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px }
.game .gh a { font-weight: 500; text-decoration: none }
.game .gh a:hover { text-decoration: underline }
.game .gh span { color: var(--dim) } .game .gh span b { color: var(--ink); font-weight: 500 }
.game .gq { font-size: 21px; letter-spacing: -.02em; line-height: 1.25; margin: 0 }
.game .line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--dim) }
.game .line b { color: var(--ink); font-weight: 500 }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line) }
.mrow:first-of-type { border-top: 0 }
.mrow .ms { font-weight: 500 } .mrow .ms small { display: block; font-weight: 400; color: var(--dim); font-size: 13px }
.mrow button { border: 0; border-radius: 99px; padding: 8px 12px; font-size: 14px; font-weight: 500; white-space: nowrap }
.mrow .hu { background: var(--up-soft); color: var(--up) } .mrow .hd { background: var(--down-soft); color: var(--down) }
.mrow .mine-t { font-size: 13px; color: var(--ink-2); grid-column: 2 / 4; text-align: right }
.game .pickbtns { gap: 10px } .game .pickbtn { padding: 14px } .game .pickbtn .psym { font-size: 30px }
@media (prefers-reduced-motion: reduce) { .odo.roll .d > span, .cycle .rot span { animation: none } }
@media (max-width: 560px) { .hero { padding: 24px 20px 20px } .clock b { font-size: 22px } .prizes b { font-size: 17px } .row-side { padding: 11px 12px } }
@media (max-width: 820px) { .draw-grid .draw-side { order: -1 } }

/* Today: link to the Markets page */
.marketlink { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; font-weight: 500 }
.marketlink:hover { border-color: var(--ink) }
.marketlink .dim { font-weight: 400 }

/* Company logo tiles (js/logos.js) */
.lg { --s: 32px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: var(--logo-bg); display: inline-grid; place-items: center; overflow: hidden; align-self: center; vertical-align: middle }
.lg img { width: 64%; height: 64%; object-fit: contain }
.lg.txt { color: #fff; font-size: calc(var(--s) * .36); font-weight: 600; letter-spacing: -.02em }
.lg.sm { --s: 26px }
.lg.xs { --s: 22px }
.lgsym { display: inline-flex; align-items: center; gap: 8px }
.pickbtn .lg { --s: 34px } .game .pickbtn .lg { --s: 28px }
.pickbtn { min-width: 0 } .pickbtn .lgsym { gap: 6px; max-width: 100% }
@media (max-width: 560px) { .pickbtn .lg { --s: 26px } .pickbtn .psym { font-size: 32px } }

/* ---------- App shell: top bar, left menu, status bar ---------- */
.apptop { position: sticky; top: 0; z-index: 25; display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding: 14px 28px 10px 24px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px) }
.at-brand { display: flex; align-items: center; gap: 12px }
.at-brand .tag { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, transparent); background: var(--blue-soft); font-weight: 500; display: inline-block }
.testline { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; color: var(--dim) }
.search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 300px; height: 44px; padding: 0 8px 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 99px }
.search:focus-within { border-color: var(--ink) }
.search > svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; flex: none }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px }
.search input::-webkit-search-cancel-button { display: none }
.search kbd { font: 500 12px var(--font); color: var(--dim); background: var(--panel); border-radius: 8px; padding: 3px 9px }
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; width: min(360px, calc(100vw - 32px)); max-height: min(420px, 60vh); overflow-y: auto; background: var(--card); border-radius: 18px; box-shadow: 0 24px 48px -12px #12131433, 0 0 0 1px var(--line); padding: 8px; z-index: 40 }
.search-pop[hidden] { display: none }
.search-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 15px }
.search-pop a b { font-weight: 600 }
.search-pop a span.k { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.search-pop a:hover, .search-pop a.on { background: var(--panel) }
.search-pop p { margin: 8px 10px; color: var(--dim); font-size: 14px }
.apptop .top-end { justify-self: end }

.shell { flex: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 24px; padding: 0 28px 0 12px }
.appside { position: sticky; top: 96px; align-self: start; height: calc(100vh - 96px - 46px); display: flex; flex-direction: column; justify-content: space-between; padding: 12px 0 20px }
.sidenav { display: grid; gap: 4px }
.sidenav a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 99px; text-decoration: none; color: var(--ink-2); font-size: 16px }
.sidenav a:hover { background: var(--panel); color: var(--ink) }
.sidenav a[aria-current="page"] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: var(--shadow) }
.sidenav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none }
.sidenav.low a { padding-block: 9px; font-size: 15px; color: var(--dim) }
.appmain { padding: 20px 0 64px; min-width: 0 }
#view { max-width: 1240px }

.statusbar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; padding: 12px 28px 12px 40px; font-size: 13px; color: var(--ink-2); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line) }
.statusbar .sb-net { display: inline-flex; align-items: center; gap: 8px }
.statusbar .dot { width: 8px; height: 8px; border-radius: 9px; background: var(--dim) }
.statusbar .dot.ok { background: var(--up) }
.statusbar .dot.bad { background: var(--down) }
.statusbar .sb-fine { color: var(--dim); margin-left: auto }
.statusbar a { color: var(--ink-2) }

/* Today: main column + right column */
.todaygrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start }
.today-main { display: grid; gap: 24px; min-width: 0 }
.todaygrid .todo { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) }
.rail { display: grid; gap: 16px; align-items: start }
.rail .card { padding: 24px; display: grid; gap: 14px }
.rail h2 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px }
.rail h2 a { font-size: 14px; font-weight: 400; color: var(--blue) }
.rail p { margin: 0; color: var(--ink-2); font-size: 15px }
.steps2 { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none }
.steps2 li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px }
.steps2 li > i { width: 24px; height: 24px; border-radius: 99px; background: var(--panel); color: var(--dim); font: normal 500 13px/24px var(--font); text-align: center }
.steps2 li.done > i { background: var(--up-soft); color: var(--up) }
.steps2 b { font-weight: 500 }
.steps2 span { grid-column: 2; color: var(--dim); font-size: 14px }
.steps2 .btn { grid-column: 2; justify-self: start; margin-top: 4px }
.rail-list { display: grid; gap: 4px }
.rail-list a, .rail-list .claim { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; text-decoration: none; font-size: 15px; border-top: 1px solid var(--line) }
.rail-list > :first-child { border-top: 0 }
.rail-list a:hover b { color: var(--blue) }
.rail-list .k { color: var(--dim); font-size: 14px }

@media (max-width: 1200px) { .todaygrid { grid-template-columns: minmax(0, 1fr) } .rail { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) } }
@media (max-width: 1000px) { .apptop, .shell { grid-template-columns: 200px minmax(0, 1fr) auto } .shell { grid-template-columns: 200px minmax(0, 1fr) } .appside { width: 200px } .sidenav a { padding-inline: 12px; gap: 10px; font-size: 15px } }
@media (max-width: 820px) {
  .apptop { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px 8px }
  .apptop .search { display: none }
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0 16px }
  .appside, .statusbar { display: none }
  .appmain { padding-top: 12px }
}
/* Pick buttons shrink their ticker to fit the button, however narrow the card gets. */
.pickbtn { container-type: inline-size }
.pickbtn .psym { font-size: clamp(20px, 15cqi, 40px) }
.pickbtn .lg { --s: clamp(22px, 20cqi, 34px) }
.pickbtn .lgsym { white-space: nowrap }

/* App Markets tab */
.mk-tools { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap }
.mk-find { flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px }
.mk-find:focus-within { border-color: var(--ink) }
.mk-find svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; flex: none }
.mk-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px }
.fchips { display: flex; gap: 6px; flex-wrap: wrap }
.fchip { border: 1px solid transparent; background: none; border-radius: 99px; padding: 7px 14px; font-size: 14px; color: var(--ink-2) }
.fchip:hover { background: var(--panel) }
.fchip[aria-pressed="true"] { background: var(--card); border-color: var(--line); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px #0000000f }
table.ledger.mk-table { min-width: 860px }
.mk-table td { vertical-align: middle; padding-block: 10px }
table.ledger.mk-table td:last-child, table.ledger.mk-table th:last-child { text-align: right }
.mk-table th:first-child, .mk-table td:first-child { width: 36px; padding-right: 0 }
.star { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--dim); padding: 4px }
.star.on { color: var(--blue) }
.star:hover { color: var(--ink) }
.mk-name { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0 }
.mk-name span { display: grid; line-height: 1.25 }
.mk-name b { font-weight: 600 }
.mk-name small { color: var(--dim); font-size: 13px; white-space: nowrap }
.mk-name:hover b { color: var(--blue) }
.chg { display: inline-block; padding: 2px 8px; border-radius: 99px; font-weight: 500; font-size: 13px }
.chg.u { color: var(--up); background: var(--up-soft) }
.chg.d { color: var(--down); background: var(--down-soft) }
.spark { display: block; overflow: visible }
.spark polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round }
.spark.u polyline { stroke: var(--up) } .spark.d polyline { stroke: var(--down) }
.spark line { stroke: var(--line); stroke-dasharray: 2 3 }
.spark-empty { display: block; width: 96px; height: 2px; background: var(--panel) }
.ingame { font-size: 13px; color: var(--ink-2) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px }
.pager-btns { display: flex; align-items: center; gap: 4px; flex-wrap: wrap }
.pnum { border: 0; background: none; min-width: 34px; height: 34px; border-radius: 99px; font-size: 14px; color: var(--ink-2) }
.pnum:hover { background: var(--panel) }
.pnum[aria-current="true"] { background: var(--ink); color: var(--on-ink); font-weight: 500 }

/* How the games fund the draw: receipts on settled Gap rounds, and the pot's sources on the draw page. */
.receipt { font-size: 14px; background: var(--blue-soft); color: var(--blue-ink); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px }
.receipt p { margin: 0 }
.receipt b { font-weight: 600 }
.receipt a { color: inherit; text-decoration: underline; text-underline-offset: 2px }
.receipt .rc-split { font-size: 12.5px; opacity: .85 }
.note a { color: inherit; text-decoration: underline; text-underline-offset: 2px }
.note b { font-weight: 600 }
.sources { display: grid; gap: 18px }
.sources h2.section { margin: 0 }
.src-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap }
.srcbar { display: flex; gap: 3px; height: 10px }
.srcbar i { border-radius: 99px; min-width: 10px; flex-basis: 0 }
.s-games { background: var(--blue) }
.s-int { background: var(--ink-2) }
.s-boost { background: var(--faint) }
.src-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.src-rows div { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--dim); display: grid; gap: 2px; align-content: start }
.src-rows span { display: flex; align-items: center; gap: 7px }
.src-rows b { font-size: 20px; font-weight: 400; color: var(--ink); letter-spacing: -.02em; white-space: nowrap }
.src-rows small { font-size: 12px; line-height: 1.35 }
.sw { width: 9px; height: 9px; border-radius: 3px; flex: none }
.sources .ledger td:first-child { width: 1% }
@media (max-width: 560px) { .src-rows { grid-template-columns: 1fr } .src-rows b { font-size: 18px } }
.sources, .sources > * { min-width: 0 }
@media (max-width: 560px) { .sources .ledger td:nth-child(3), .sources .ledger th:nth-child(3) { display: none } }

/* ---------- Practice round (Today, before a wallet is connected) ---------- */
.practice .pickbtn small.up { color: var(--up) } .practice .pickbtn small.down { color: var(--down) }
.practice .pickbtn:disabled:not(.mine):not(.won) { opacity: .75 }
.pr-result { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-2) }
.pr-result b { color: var(--ink); font-weight: 500 }
.pr-result:focus { outline: none }
.pchart { width: 100%; height: auto; display: block; background: var(--panel); border-radius: 16px; overflow: visible }
.pchart .pc-zero { stroke: var(--faint); stroke-dasharray: 3 4 }
.pchart .pc-line { fill: none; stroke: var(--dim); stroke-width: 2; stroke-linejoin: round }
.pchart .pc-line.win { stroke: var(--blue); stroke-width: 2.5 }
.pchart text { font-family: var(--font); font-size: 12px; fill: var(--dim) }
.pchart .pc-l { font-size: 14px; font-weight: 500; fill: var(--ink-2); dominant-baseline: middle }
.pchart .pc-l.win { fill: var(--blue) }
.pchart .pc-v { font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums }
.pr-next { margin: 0; font-size: 15px; color: var(--ink-2) } .pr-next b { color: var(--ink); font-weight: 500 }
.pr-act { display: flex; flex-wrap: wrap; gap: 10px }
@media (max-width: 560px) { .pr-act .btn { flex: 1 1 auto } }

/* Today: "Your week" recap timeline */
.recap { display: grid; gap: 18px }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap }
.rc-head h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 0 }
.rc-head p { margin: 2px 0 0; font-size: 14px }
.rc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 0; border-block: 1px solid var(--line) }
.rc-stats span { display: block; font-size: 13px; color: var(--dim) }
.rc-stats b { display: block; font-size: 24px; font-weight: 400; letter-spacing: -.03em; line-height: 1.2 }
.rc-h { font-size: 13px; font-weight: 500; color: var(--dim); margin: 0 0 -6px }
.rc-list { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid }
.rc-list li { position: relative; padding: 0 0 18px 24px; display: grid; gap: 4px }
.rc-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--faint) }
.rc-list li::after { content: ""; position: absolute; left: 4px; top: 19px; bottom: 2px; width: 1px; background: var(--line) }
.rc-list li:last-child { padding-bottom: 0 }
.rc-list li:last-child::after { display: none }
.rc-list li.good::before { background: var(--up); box-shadow: 0 0 0 2px var(--up-soft) }
.rc-list li.pending::before { box-shadow: 0 0 0 2px var(--blue); }
.rc-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: 13px; color: var(--dim) }
.rc-meta a { color: var(--ink-2); font-weight: 500; text-decoration: none }
.rc-meta a:hover { color: var(--blue) }
.rc-meta .chip { margin-left: auto }
.rc-list p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 68ch }
.rc-list p b { color: var(--ink); font-weight: 500 }
.rc-list li.muted p { color: var(--dim) }
.rc-act { margin-top: 6px }
.rc-empty { margin: 0; color: var(--dim); font-size: 15px }
@media (max-width: 560px) { .rc-stats b { font-size: 20px } .rc-stats { gap: 8px } }

/* First-visit tour (app.js openTour) */
.tour-card { width: min(460px, 100%); text-align: left; padding: 22px 24px 20px; display: grid; gap: 0 }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.tour-top .eyebrow { margin: 0 }
.tour-x { width: 34px; height: 34px; margin: -6px -8px -6px 0; border: 0; border-radius: 50%; background: none; color: var(--dim); display: inline-grid; place-items: center; padding: 0 }
.tour-x:hover { background: var(--panel); color: var(--ink) }
.tour-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round }
.tour-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 22px }
.tour-bars i { height: 4px; border-radius: 9px; background: var(--line); transition: background .25s }
.tour-bars i.on { background: var(--ink) }
.tour-title { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 400; font-size: 28px; letter-spacing: -.04em; line-height: 1.15 }
.tour-title .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: inline-grid; place-items: center; font-size: 16px; font-weight: 500; letter-spacing: 0 }
.tour-text { margin: 14px 0 0; color: var(--ink-2); line-height: 1.5 }
.tour-fine { margin: 10px 0 0; color: var(--dim); font-size: 14px }
.tour-act { display: grid; gap: 8px; margin-top: 20px }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line) }
.tour-nav .linkish { color: var(--dim); font-size: 15px; padding: 8px 0 }
.tour-nav .btn.small { padding: 9px 18px; font-size: 15px }
.tour-again { margin: 0; padding: 0 4px; font-size: 14px; color: var(--dim) }
.tour-again a { color: var(--ink-2) }
@media (max-width: 560px) {
  .reveal.tour { place-items: end center; padding: 0 }
  .tour-card { width: 100%; border-radius: 24px 24px 0 0; max-height: 92dvh; padding: 20px 20px calc(18px + env(safe-area-inset-bottom, 0px)) }
  .tour-title { font-size: 24px }
}
