/* REMATCH: a pro perps terminal. Deep green-black, hairlines, one mint accent, dense tabular numbers. Red is reserved for
   the REMATCH button. Tokens come from theme.css (generated from public/game/brand.mjs). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font-body); letter-spacing: -.005em;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden;
}
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
img { display: block; }
h1, h2, h3 { letter-spacing: -.015em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: var(--acc-ink); padding: 8px 12px; border-radius: 6px; z-index: 99; }
.skip:focus { left: 8px; }
.noscript { padding: 24px; }
[hidden] { display: none !important; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--dim); }
.dim { color: var(--dim); } .mute { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }
.linkish { color: var(--dim); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
@media (hover: hover) { .linkish:hover { color: var(--text); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .12s ease, color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
@media (hover: hover) { .btn-acc:hover { background: color-mix(in srgb, var(--acc) 86%, #fff); } }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
@media (hover: hover) { .btn-line:hover { background: var(--panel2); } }
.btn-red { background: var(--red); color: #fff; }
.btn-sm { min-height: 32px; padding: 0 12px; border-radius: 7px; font-size: 13px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 52px; padding: 0 20px; padding-top: env(safe-area-inset-top);
  background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand b { font-weight: 700; font-size: 14.5px; letter-spacing: .09em; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: 6px; color: var(--dim); text-decoration: none; font-weight: 500; font-size: 13.5px; }
@media (hover: hover) { .nav a:hover { color: var(--text); } }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel2); }
.top .grow { flex: 1; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); flex: none; }
.live-dot.off { background: var(--warn); }
.ca { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 11px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line2); font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.ca .ca-t { color: var(--text); font-weight: 600; }
.ca .ca-s { display: none; }
.ca code { font: 500 12px var(--font-mono); color: var(--text); letter-spacing: -.02em; }
.ca > .mute:last-child { padding-right: 8px; }
.ca-btn { height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 5px; background: var(--panel2); color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none; }
@media (hover: hover) { .ca-btn:hover { background: var(--line2); } }
.who { gap: 6px; }
.who .me-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .mute { font-weight: 500; }

/* ---------- one-line banner ---------- */
.banner { display: flex; align-items: center; justify-content: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg2); font-size: 13px; }
.banner p { margin: 0; }
.banner-link { color: var(--acc); text-decoration: none; font-weight: 500; }
@media (hover: hover) { .banner-link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.banner .x { width: 26px; height: 26px; border-radius: 6px; color: var(--mute); font-size: 16px; line-height: 1; }
@media (hover: hover) { .banner .x:hover { color: var(--text); } }

/* ---------- workspace: three panes split by hairlines ---------- */
.arena { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; align-items: start; min-height: 60vh; }
.arena > .col { min-width: 0; }
.arena > .col + .col { border-left: 1px solid var(--line); }
.col-duel, .col-results { display: none; }
.col, .hero { scroll-margin-top: 72px; }
.arena[data-view="duel"], .arena[data-view="results"] { display: block; padding: 22px 20px; max-width: 1100px; margin: 0 auto; }
.arena[data-view="duel"] .col, .arena[data-view="results"] .col { display: none; border: 0; }
.arena[data-view="duel"] .col-duel, .arena[data-view="results"] .col-results { display: block; }
.panel { background: transparent; }
.panel + .panel { border-top: 1px solid var(--line); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 8px; }
.panel-h h2 { margin: 0; font-size: 13.5px; font-weight: 600; }
.panel-h .meta { font-size: 12px; color: var(--mute); }
.empty { padding: 22px 16px; color: var(--mute); text-align: center; font-size: 13px; margin: 0; }

/* ---------- coin list ---------- */
.col-coins .coins-panel { position: sticky; top: 52px; display: flex; flex-direction: column; max-height: calc(100dvh - 52px); }
.seg { display: flex; gap: 2px; padding: 0 12px 8px; }
.seg button { padding: 5px 10px; border-radius: 6px; font-weight: 500; font-size: 13px; color: var(--dim); }
@media (hover: hover) { .seg button:hover { color: var(--text); } }
.seg button[aria-pressed="true"] { color: var(--text); background: var(--panel2); }
.search { margin: 0 12px 6px; }
.search input { width: 100%; height: 34px; border: 0; border-radius: 7px; background: transparent; box-shadow: inset 0 0 0 1px var(--line2); padding: 0 11px; font-size: 13px; }
.search input::placeholder { color: var(--mute); }
.search input:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--acc); }
.coin-list { overflow-y: auto; overscroll-behavior: contain; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.coin { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 10px 7px 12px; width: 100%; height: 56px; text-align: left; cursor: pointer; }
@media (hover: hover) { .coin:hover { background: var(--panel); } }
.coin[aria-current="true"] { background: var(--panel2); box-shadow: inset 2px 0 0 var(--acc); }
.pfp { width: 32px; height: 32px; border-radius: 7px; overflow: hidden; background: var(--panel2); flex: none; position: relative; }
.pfp img { width: 100%; height: 100%; object-fit: cover; }
.pfp .mono { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.coin .nm { min-width: 0; }
.coin .sym { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.coin .sub { font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.coin .rt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.coin .mc { font-weight: 500; font-size: 13px; }
.coin .ch { font-size: 11.5px; }
.quick { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 34px; padding: 0 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line2); font-size: 12px; font-weight: 600; color: var(--dim); }
@media (hover: hover) { .quick:hover { color: var(--acc-ink); background: var(--acc); box-shadow: none; } }
.prog { display: block; height: 2px; background: var(--line); margin-top: 4px; overflow: hidden; max-width: 120px; }
.prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--acc); opacity: .7; }
.prog.off { visibility: hidden; } /* the bar's space is always kept: a row never changes height */
/* five lists in a 300 px column: the tabs scroll sideways, the row heights never change */
.seg-scroll { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll button { flex: none; white-space: nowrap; }
.seg, .tab-note, .search { flex: none; } /* the sticky desktop panel is a flex column: only the list scrolls */
.tab-note { margin: 0 14px 8px; height: 15px; font-size: 11.5px; line-height: 15px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .sym-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; height: 19px; }
.coin .sym-line .sym { flex: 0 1 auto; min-width: min(4.5em, 100%); }
.coin .cn { flex: 1 1 0; min-width: 0; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .cn:empty { flex: 1 1 0; display: block; }
.coin .tag { flex: none; margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.coin .tag-fresh { color: var(--acc); }
.coin .tag-grad { color: var(--gold); }
.coin .pair { flex: 0 1 auto; min-width: 0; max-width: 7em; font-size: 10.5px; color: var(--warn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 761px) { .coin .cn:not(:empty) { flex: 1 1 0; font-size: 0; } .coin .sym-line .pair { display: none; } }
.coin .sub-line { display: flex; gap: 5px; min-width: 0; height: 16px; }
.coin .sub-line .sub { flex: 1 1 auto; min-width: 0; }
.coin .qn { flex: none; font-size: 11px; line-height: 16px; color: var(--warn); white-space: nowrap; }
.coin .qn:not(:empty)::after { content: ' pair'; }
.coin .qn:empty { display: none; }
@media (max-width: 760px) { .coin .qn { display: none; } } /* the 300 px column has no room for names: the row's tooltip and the trade view carry it */
@media (max-width: 760px) { .coin .pair { max-width: none; } .coin .pair:not(:empty)::after { content: ' pair'; } }
.coin .pair:empty, .coin .tag:empty { display: none; }
.coin .sub { height: 16px; line-height: 16px; }
.coin .mc { color: var(--text); }
.quick[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------- trade pane ---------- */
.coin-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.coin-head .pfp { width: 40px; height: 40px; border-radius: 9px; }
.coin-head h1 { margin: 0; font-size: 17px; line-height: 1.15; font-weight: 650; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.coin-head h1 small { font-size: 13px; color: var(--mute); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; }
.coin-head .links { font-size: 12px; margin-top: 2px; color: var(--mute); }
.coin-head .links .linkish { color: var(--mute); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.stats div { padding: 9px 16px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 11.5px; color: var(--mute); }
.stats dd { margin: 1px 0 0; font-weight: 500; font-size: 14px; }
.chart { position: relative; height: 250px; border-bottom: 1px solid var(--line); }
.chart canvas { width: 100%; height: 100%; display: block; }
.chart .ch-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); font-size: 12.5px; }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.side-box { padding: 12px 16px 14px; }
.side-box + .side-box { border-left: 1px solid var(--line); }
.side-box h3 { margin: 0 0 9px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.side-box h3 b { color: var(--mute); font-weight: 500; font-size: 12.5px; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.presets.three { grid-template-columns: repeat(3, 1fr); }
.preset { height: 40px; border-radius: 7px; font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line2); }
@media (hover: hover) { .preset.buy:hover:not([disabled]) { background: var(--acc); color: var(--acc-ink); box-shadow: none; } }
@media (hover: hover) { .preset.sell:hover:not([disabled]) { background: color-mix(in srgb, var(--down) 18%, transparent); box-shadow: inset 0 0 0 1px var(--down); color: var(--down); } }
.preset[disabled] { opacity: .35; cursor: not-allowed; }
.preset.busy { position: relative; overflow: hidden; }
.preset.busy::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--acc); animation: fillbar var(--fill-ms, 1500ms) linear forwards; }
@keyframes fillbar { from { width: 0; } to { width: 100%; } }
.custom { display: flex; gap: 6px; margin-top: 6px; }
.custom input { flex: 1; min-width: 0; height: 36px; border: 0; border-radius: 7px; background: transparent; box-shadow: inset 0 0 0 1px var(--line2); padding: 0 10px; }
.custom input:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--acc); }
.custom .btn { min-height: 36px; }
.quote { margin-top: 8px; font-size: 12px; color: var(--mute); min-height: 17px; }
.note-delay { margin: 0; padding: 10px 16px 14px; font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); }
.note-delay.warn { color: var(--warn); }
.col-trade .empty { padding: 60px 20px; }
.col-trade .empty p { margin: 4px 0; }
.bags { border-bottom: 1px solid var(--line); }
.positions { padding: 0 0 6px; }
.pos { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 12px; cursor: pointer; }
@media (hover: hover) { .pos:hover { background: var(--panel); } }
.pos .pfp { width: 28px; height: 28px; border-radius: 6px; }
.pos .tok { display: block; font-size: 11.5px; }
.pos .v { text-align: right; font-weight: 500; }
.pos .v small { display: block; font-weight: 500; font-size: 11.5px; }

/* ---------- leaderboard ---------- */
.bhead, .brow { display: grid; grid-template-columns: 20px minmax(0, 1fr) 54px 58px 44px; gap: 8px; align-items: center; padding: 0 14px; }
.brow .sol { text-align: right; color: var(--dim); }
.brow.wide { grid-template-columns: 20px minmax(0, 1fr) 64px 92px; height: 32px; }
.brow.wide .sh small { display: inline; margin-left: 4px; font-size: 11.5px; }
.bhead { font-size: 11.5px; color: var(--mute); padding-bottom: 4px; }
.bhead span:nth-child(n+3) { text-align: right; }
.board { padding: 0 0 4px; }
.brow { height: 28px; font-size: 13px; position: relative; }
.brow .rk { color: var(--mute); }
.brow .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .nm small { color: var(--mute); margin-left: 6px; font-size: 11.5px; }
.brow .pnl { text-align: right; font-weight: 500; }
.brow .sh { text-align: right; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .sh small { display: block; font-size: 10.5px; color: var(--mute); font-weight: 500; }
.brow:nth-child(5)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; border-bottom: 1px dashed var(--line2); }
.brow.me { background: var(--panel2); box-shadow: inset 2px 0 0 var(--acc); }
.brow.top1 .rk { color: var(--acc); }
.badge { display: inline-block; font-size: 11px; font-weight: 500; color: var(--mute); }
.badge.ok { color: var(--up); }
.board-foot { margin: 0; padding: 8px 14px 14px; font-size: 12px; color: var(--mute); line-height: 1.5; }
.feed { padding: 0 14px 14px; display: grid; gap: 5px; font-size: 12.5px; }
.feed p { margin: 0; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed b { color: var(--dim); font-weight: 500; }

/* ---------- 1v1 ---------- */
.col-duel .panel, .col-results .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.col-duel .panel + .panel { border-top: 1px solid var(--line); }
.duel-start { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duel-start .panel { padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.duel-start h2, .duel-wait h2 { margin: 0; font-size: 19px; font-weight: 600; }
.duel-start p, .duel-wait p { margin: 0; }
.duel-rules { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12.5px; }
.duel-wait { padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.linkbox { display: flex; gap: 8px; width: min(520px, 100%); }
.linkbox input { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1px var(--line2); padding: 0 12px; font: 500 13px var(--font-mono); }
.row-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.duel-live { padding: 18px 20px; display: grid; gap: 12px; }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.score > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.score .mute { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.score .r { align-items: flex-end; text-align: right; }
.score .mid { align-items: center; text-align: center; }
.score .mid b { font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.who { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dim); }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.sw.me { background: var(--acc); } .sw.them { background: var(--opp); }
.big { font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.duel-race { min-height: 240px; }
.duel-note { margin: 0; font-size: 12.5px; }

/* ---------- the result sheet (and the finished 1v1) ---------- */
.result { display: grid; }
.res-top { padding: 4px 0 14px; display: grid; gap: 4px; }
.res-top .mute { font-size: 12.5px; }
.res-top h2 { margin: 0; font-size: 22px; font-weight: 600; }
.res-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.res-vs > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.res-vs .r { align-items: flex-end; text-align: right; }
.res-vs .r .res-tag { align-self: flex-end; }
.res-vs .vs { padding-bottom: 8px; font-size: 12px; }
.res-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.res-stats div { padding: 10px 0; }
.res-stats div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.res-stats dt { font-size: 11.5px; color: var(--mute); }
.res-stats dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; }
.res-note { margin: 12px 0 0; color: var(--dim); font-size: 13px; }
.res-act { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 16px; }
.res-act .btn { min-height: 56px; }
.rematch { min-height: 56px; padding: 0 28px; border-radius: 9px; background: var(--red); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .16em; }
@media (hover: hover) { .rematch:hover { background: color-mix(in srgb, var(--red) 88%, #fff); } }
.rematch:active { transform: translateY(1px); }
.res-foot { margin: 14px 0 0; font-size: 12px; }
.res-foot a { color: var(--dim); }
.duel-done { padding: 22px 24px; max-width: 640px; margin: 0 auto; }

/* the core moment: stamp in, numbers count up (bell.mjs), the winner glows, the loser's REMATCH breathes */
.res-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.modal .res-line { padding-right: 36px; }
.res-stamp { flex: none; padding: 3px 10px; border: 2px solid currentColor; border-radius: 8px; font-weight: 800; font-size: 20px; letter-spacing: .08em; transform: rotate(-6deg); animation: stamp .42s cubic-bezier(.2,1.4,.4,1) .12s both; }
.res-won .res-stamp { color: var(--acc); }
.res-lost .res-stamp { color: var(--red); }
.res-draw .res-stamp { color: var(--dim); }
@keyframes stamp { from { transform: rotate(-14deg) scale(2.2); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.res-vs .win .big { text-shadow: 0 0 22px color-mix(in srgb, var(--acc) 45%, transparent); }
.res-tag { align-self: flex-start; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-ink); background: var(--acc); border-radius: 4px; padding: 1px 5px; }
.rematch.pulse { animation: breathe 1.6s ease-in-out .9s 3; }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 28%, transparent); } }
.seek { display: inline-flex; gap: 6px; }
.seek i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: seek 1.1s ease-in-out infinite; }
.seek i:nth-child(2) { animation-delay: .15s; } .seek i:nth-child(3) { animation-delay: .3s; }
@keyframes seek { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
/* the bell: the clock rings for a second */
@keyframes ring { 10%, 50%, 90% { transform: translateX(-3px); } 30%, 70% { transform: translateX(3px); } }

/* ---------- winners ---------- */
.results-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.round-card { padding: 12px 16px; border-top: 1px solid var(--line); }
.round-card h3 { margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 600; }
.round-card h3 .display { font-size: 14px; }
.winner { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 3px 0; font-size: 13px; }
.winner .pl { color: var(--mute); }
.winner .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner b { font-weight: 500; }
.winner a { font-size: 12px; color: var(--acc); text-decoration: none; }
.rolled { font-size: 12px; color: var(--mute); margin: 6px 0 0; }
.col-results .seg { padding: 0 14px 8px; }

/* ---------- modals, sheets, toasts ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(2, 8, 7, .74); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--panel); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line2), 0 30px 80px rgba(0,0,0,.6); padding: 20px 22px 22px; }
.modal.sheet-modal { width: min(560px, 100%); }
.modal h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.modal p { color: var(--dim); margin: 6px 0 14px; font-size: 13.5px; }
.modal label { display: block; font-size: 12.5px; color: var(--dim); margin: 12px 0 6px; font-weight: 500; }
.modal input { width: 100%; height: 42px; border: 0; border-radius: 8px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); padding: 0 12px; font-size: 14px; }
.modal input:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--acc); }
.modal .row { display: flex; gap: 8px; margin-top: 8px; }
.modal .row > * { flex: 1; }
.modal .row > .btn { flex: none; }
.modal .close { position: absolute; top: 12px; right: 12px; float: none; margin: 0; width: 32px; height: 32px; border-radius: 7px; color: var(--mute); font-size: 20px; z-index: 1; }
.modal h2 { padding-right: 40px; }
@media (hover: hover) { .modal .close:hover { color: var(--text); } }
.modal ul.req { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13px; color: var(--dim); }
.modal ul.req li::before { content: '·'; color: var(--acc); margin-right: 8px; }
.modal .ok-line { color: var(--up); font-size: 13px; margin-top: 8px; }
.modal .err-line { color: var(--down); font-size: 13px; margin-top: 8px; }
.modal hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0 6px; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: none; background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2), 0 12px 40px rgba(0,0,0,.5); padding: 11px 14px; border-radius: 9px; font-weight: 500; font-size: 13.5px; animation: pop .2s ease; }
.toast.bad { box-shadow: inset 0 0 0 1px var(--down), 0 12px 40px rgba(0,0,0,.5); color: var(--down); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.foot { padding: 14px 20px 28px; color: var(--mute); font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); }
.foot a { color: var(--dim); }
.tabbar { display: none; }

/* ---------- 404 ---------- */
.lost { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.lost-card { text-align: center; max-width: 420px; }
.lost-num { font-size: 96px; font-weight: 500; letter-spacing: -.05em; line-height: .9; margin: 0; color: var(--acc); }
.lost-card h1 { font-size: 22px; font-weight: 600; margin: 14px 0 8px; }
.lost-card p { color: var(--dim); margin: 0 0 20px; }

/* ---------- /how-it-works ---------- */
.how-page .top { gap: 14px; }
.how { max-width: 980px; margin: 0 auto; padding: 36px 20px 60px; }
.how-head h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.025em; }
.how-head p { margin: 8px 0 0; font-size: 15px; }
.how-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); }
.how-step { padding: 18px 18px 20px; }
.how-step + .how-step { border-left: 1px solid var(--line); }
.how-n { font-size: 12px; font-weight: 600; color: var(--acc); }
.how-step h3 { margin: 8px 0 6px; font-size: 15px; font-weight: 600; }
.how-step p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.5; }
.how-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.how-grid > * + * { border-left: 1px solid var(--line); }
.how-pot { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.how-pot .lbl { font-size: 12.5px; color: var(--mute); }
.how-pot-amt { font-size: 36px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.how-pot .dim { font-size: 13px; }
.how-link { color: var(--acc); font-size: 13px; text-decoration: none; margin-top: 6px; }
@media (hover: hover) { .how-link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.how-when { color: var(--mute); font-weight: 500; }
.how-split, .how-sched, .how-who { padding: 20px; }
.how-sched > p, .how-who li { font-size: 13px; color: var(--dim); line-height: 1.55; }
.how-sched > p { margin: 0 0 12px; }
.how-bells { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.how-bells b { font-weight: 600; font-variant-numeric: tabular-nums; }
.how-who ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.how-void { margin: 0 0 10px; font-size: 12.5px; }
.how-split h2, .how-sched h2, .how-who h2, .how-faq h2, .how-paid h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.how-split > p { margin: 0 0 12px; font-size: 13px; }
.how table { width: 100%; border-collapse: collapse; font-size: 13px; }
.how th { text-align: left; font-weight: 500; color: var(--mute); font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.how td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.how th:nth-child(n+3), .how td:nth-child(n+3) { text-align: right; }
.how-cut td { color: var(--mute); }
.how-paid { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how-paid > p { margin: 0 0 10px; font-size: 13px; }
.how-paid a { color: var(--acc); text-decoration: none; }
.how-faq { margin-top: 32px; }
.how-faq details { border-bottom: 1px solid var(--line); }
.how-faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 500; font-size: 14.5px; display: flex; justify-content: space-between; gap: 12px; }
.how-faq summary::-webkit-details-marker { display: none; }
.how-faq summary::after { content: '+'; color: var(--mute); font-weight: 400; }
.how-faq details[open] summary::after { content: '−'; }
.how-faq details p { margin: 0 0 16px; color: var(--dim); font-size: 13.5px; line-height: 1.6; max-width: 72ch; }
.how-cta { margin: 32px 0 0; display: flex; align-items: center; gap: 12px; }
.how-cta .mute { font-size: 13px; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .arena { grid-template-columns: 280px minmax(0, 1fr); }
  .col-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; border-left: 0 !important; border-top: 1px solid var(--line); }
  .col-side .panel + .panel { border-top: 0; border-left: 1px solid var(--line); }
  .nav a { padding: 6px 8px; }
}

/* ---------- phones: one column, bottom tabs, trade in a sheet ---------- */
@media (max-width: 760px) {
  body { font-size: 14px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .top { gap: 10px; padding: 0 14px; height: 50px; }
  .top .nav, .top .live-dot { display: none; }
  .brand b { font-size: 13.5px; }
  .ca { height: 30px; padding: 0 3px 0 9px; font-size: 12px; gap: 6px; }
  .ca code { display: none; }
  .ca .ca-btn { padding: 0 8px; }
  .who .mute { display: none; }
  .who { padding: 0 10px; min-width: 0; }
  .who .me-name { max-width: 84px; }
  .top .ca { min-width: 0; }
  .ca .ca-t { display: none; }
  .ca .ca-s { display: inline; color: var(--text); font-weight: 600; }
  .banner { height: 32px; font-size: 12.5px; justify-content: space-between; padding: 0 6px 0 14px; }
  body:not([data-view="trade"]) .banner { display: none; }
  .arena { display: block; }
  .arena > .col + .col { border-left: 0; }
  .col { display: none; }
  .arena[data-view="trade"] .col-coins, .arena[data-view="board"] .col-side, .arena[data-view="duel"] .col-duel, .arena[data-view="results"] .col-results { display: block; }
  .arena[data-view="duel"], .arena[data-view="results"] { padding: 14px 12px; }
  .col-side { border-top: 0; }
  .col-side .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
  .col-coins .coins-panel { position: static; max-height: none; }
  .coin-list { overflow: visible; }
  .coin { padding: 8px 14px; height: 60px; grid-template-columns: 34px minmax(0, 1fr) auto auto; }
  .pfp { width: 34px; height: 34px; }
  .quick { height: 32px; min-width: 44px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--mute); position: relative; }
  .tabbar button svg { width: 20px; height: 20px; }
  .tabbar button[aria-current="page"] { color: var(--acc); }
  .tabbar .pip { position: absolute; top: 9px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
  .sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(2, 8, 7, .66); animation: fade .15s ease; }
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--panel); border-radius: 14px 14px 0 0;
    box-shadow: inset 0 1px 0 var(--line2), 0 -20px 60px rgba(0,0,0,.6); padding-bottom: calc(10px + env(safe-area-inset-bottom)); animation: rise .22s cubic-bezier(.2,.8,.2,1); }
  .sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line2); margin: 8px auto 0; }
  @keyframes rise { from { transform: translateY(40px); opacity: .4; } }
  .coin-head { padding: 10px 14px 10px; }
  .stats div { padding: 7px 10px; }
  .stats dd { font-size: 13px; }
  .chart { height: 170px; }
  .ticket { grid-template-columns: 1fr; }
  .side-box { padding: 10px 14px 12px; }
  .side-box + .side-box { border-left: 0; border-top: 1px solid var(--line); }
  .preset { height: 44px; }
  .duel-start { grid-template-columns: 1fr; gap: 10px; }
  .duel-live { padding: 14px; }
  .big { font-size: 19px; white-space: nowrap; }
  .score .mid b { font-size: 20px; }
  .duel-race { min-height: 190px; }
  .results-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-back.sheet-modal-back { place-items: end stretch; padding: 0; }
  .modal.sheet-modal { width: 100%; max-height: 92dvh; border-radius: 14px 14px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .res-act { grid-template-columns: 1fr 1fr; }
  .res-act .rematch { grid-column: 1 / -1; }
  .res-act .btn { min-height: 44px; }
  .toasts { bottom: calc(70px + env(safe-area-inset-bottom)); }
  /* a trade sheet fills the bottom of the phone: toasts drop from the top instead of covering Buy/Sell */
  body:has(.sheet, .sheet-modal-back) .toasts { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
  .foot { padding: 12px 14px 18px; }
  .how { padding: 22px 16px 48px; }
  .how-head h1 { font-size: 24px; }
  /* phones: the steps are one plain column (no outer box: no boxes inside boxes) */
  .how-steps { grid-template-columns: 1fr; border: 0; border-radius: 0; margin-top: 20px; }
  .how-step { padding: 14px 0; }
  .how-step + .how-step { border-left: 0; border-top: 1px solid var(--line); }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid > * + * { border-left: 0; border-top: 1px solid var(--line); }
}
/* ---------- phones: every tap target >= 44 px (TEK-STANDARD §7) ---------- */
@media (max-width: 760px) {
  .top { height: 60px; }
  .brand { min-height: 44px; }
  .ca { height: 44px; padding: 0 0 0 10px; gap: 0; overflow: hidden; }
  .ca .ca-s { padding-right: 8px; }
  .ca .ca-btn, .ca .ca-btn:last-child { height: 44px; padding: 0 11px; border-radius: 0; background: transparent; box-shadow: inset 1px 0 0 var(--line2); }
  .ca > .mute:last-child { padding-right: 12px; }
  .btn, .btn-sm { min-height: 44px; }
  .banner { height: 44px; }
  .banner p, .banner-link { display: flex; align-items: center; min-height: 44px; }
  .banner .x { width: 44px; height: 44px; }
  .seg button { min-height: 44px; padding: 0 14px; }
  .search input { height: 44px; font-size: 16px; }
  .quick { height: 44px; min-width: 52px; }
  .coin { height: 62px; }
  .tab-note { margin-bottom: 6px; }
  .board-foot .linkish { display: inline-block; padding: 12px 0; }
  .res-foot a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .panel-h .post { display: inline-block; padding: 14px 10px; margin: -14px -10px -14px 0; }
  .custom input { height: 44px; font-size: 16px; }
  .custom .btn { min-height: 44px; }
  .modal input { font-size: 16px; height: 46px; }
  .modal .close { width: 44px; height: 44px; top: 8px; right: 8px; margin: 0; }
}
/* ---------- 10-14 review: states, connection, strip, motion, phone ergonomics ---------- */
.phone-only { display: none; }
.spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--acc); animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* the connection bar: every view, every width (text + colour, never colour alone) */
.connbar { position: sticky; top: 52px; z-index: 29; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 36px; padding: 6px 14px; background: color-mix(in srgb, var(--warn) 16%, var(--bg)); color: var(--warn); border-bottom: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); font-size: 13px; animation: slidein .2s ease; }
.connbar b { font-weight: 650; }
.connbar .spin { border-color: color-mix(in srgb, var(--warn) 35%, transparent); border-top-color: var(--warn); }
@keyframes slidein { from { transform: translateY(-6px); opacity: 0; } }
.clock.stale, .st-clock.stale { color: var(--warn); opacity: .85; }
/* the round strip on 1v1 / Winners / the phone's Round tab */
.strip { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); }
body[data-view="trade"] .strip { display: none; }
.strip .st-clock { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -.02em; }
.strip .st-clock.hot { color: var(--warn); }
.strip .st-pot { margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.strip .st-go { margin-left: auto; color: var(--acc); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 32px; }
/* 1v1 + Winners fill the screen (the footer sits at the bottom, not mid-page); desktop 1v1 keeps the live board beside it */
.arena[data-view="duel"], .arena[data-view="results"] { min-height: calc(100dvh - 150px); }
@media (min-width: 761px) {
  .arena[data-view="duel"] { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
  .arena[data-view="duel"] .col-side { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
  .arena[data-view="duel"] .col-side .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
  .arena[data-view="duel"] .col-side { grid-template-columns: 1fr; order: 2; }
  .arena[data-view="duel"] .col-duel { order: 1; }
  .arena[data-view="duel"] .duel-wait, .arena[data-view="duel"] .duel-start .panel { min-height: 300px; justify-content: center; }
}
.duel-late { grid-column: 1 / -1; margin: 0; color: var(--warn); font-size: 13px; }
.duel-pulse { grid-column: 1 / -1; margin: 0; display: flex; align-items: flex-start; gap: 10px; flex-wrap: nowrap; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.duel-pulse .pulse-dot { margin: 6px 0 0 3px; }
.duel-pulse > span { min-width: 0; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); animation: pulse 2s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.how-pot .lbl { display: inline-flex; align-items: center; gap: 8px; }
/* the board: a row that climbs flashes once */
.brow.climb { animation: climb .9s ease-out both; }
@keyframes climb { 0% { background: color-mix(in srgb, var(--acc) 24%, transparent); transform: translateY(6px); } 40% { transform: none; } 100% { background: transparent; } }
.brow.me.climb { animation-name: climbme; }
@keyframes climbme { 0% { background: color-mix(in srgb, var(--acc) 30%, var(--panel2)); } 100% { background: var(--panel2); } }
/* Winners */
.round-card.fresh { animation: fadeup .5s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } }
.top-line { margin: 2px 0 0; font-size: 13px; }
.round-card.quiet { padding-top: 8px; padding-bottom: 8px; }
.round-card.quiet .rolled { margin: 0; }
.held-line { margin: 4px 0 0; font-size: 12.5px; color: var(--warn); }
.winner a { display: inline-flex; align-items: center; min-height: 32px; }
/* wallet modal tones */
.modal .say-line { animation: pop .18s ease; display: flex; gap: 6px; align-items: baseline; }
.modal .say-line .glyph { flex: none; width: 14px; text-align: center; }
.modal .warn-line { color: var(--warn); font-size: 13px; margin-top: 8px; }
.modal .info-line { color: var(--dim); font-size: 13px; margin-top: 8px; }
.modal .bad-line { color: var(--down); font-size: 13px; margin-top: 8px; }
.modal .buy-link { color: var(--acc); }
/* trade: loading skeleton, bad custom size */
.sk { display: block; background: linear-gradient(90deg, var(--panel2), var(--line2), var(--panel2)); background-size: 200% 100%; animation: sheen 1.1s linear infinite; border-radius: 5px; }
.pfp.sk { width: 40px; height: 40px; }
.sk-lines { display: grid; gap: 6px; flex: 1; }
.sk-a { height: 15px; width: 40%; } .sk-b { height: 11px; width: 60%; }
.sk-chart { background: linear-gradient(90deg, var(--bg2), var(--panel), var(--bg2)); background-size: 200% 100%; animation: sheen 1.4s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
.custom input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--down); }
.shake { animation: shake .3s ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.empty.searching { display: flex; align-items: center; justify-content: center; gap: 8px; }
/* sheets get a real close button */
.sheet-bar { position: relative; height: 0; }
.sheet .grab { position: relative; z-index: 1; }
.sheet-x { position: absolute; top: 4px; right: 6px; z-index: 2; width: 44px; height: 44px; border-radius: 10px; color: var(--mute); font-size: 22px; line-height: 1; }
@media (hover: hover) { .sheet-x:hover { color: var(--text); } }
.sheet .coin-head { padding-right: 56px; }
/* 404: the number lands like a stamp */
.lost-num { animation: stamp .5s cubic-bezier(.2,1.4,.4,1) .1s both; }
.lost-card h1 { animation: fadeup .4s ease .35s both; }
.lost-card p, .lost-card .btn { animation: fadeup .4s ease .45s both; }
/* how-it-works: the steps come in once */
.how-step { animation: fadeup .45s ease both; }
.how-step:nth-child(2) { animation-delay: .06s; } .how-step:nth-child(3) { animation-delay: .12s; } .how-step:nth-child(4) { animation-delay: .18s; }
@media (max-width: 760px) {
  .phone-only { display: inline-flex; }
  .connbar { top: 60px; font-size: 12.5px; }
  .strip { padding: 8px 14px; gap: 10px; font-size: 12.5px; flex-wrap: wrap; }
  .strip .st-go { display: none; } /* the tab bar already has Trade */
  .strip { flex-wrap: nowrap; }
  .strip .st-pot { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* every tap target >= 44 px: inline links get a 44 px hit box */
  .coin-head .links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; margin-top: 0; }
  .coin-head .links .linkish { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin: 0 -2px; }
  .coin-head .links .linkish:first-child { margin-left: -8px; }
  .foot a, .foot span > a { display: inline-flex; align-items: center; min-height: 44px; }
  .board-foot .linkish { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0; }
  .res-foot a { display: inline-block; min-height: 0; padding: 14px 0; margin: -14px 0; } /* 44 px hit box, no extra line gap */
  .winner a { min-height: 44px; padding: 0 6px; }
  .how-link, .how-paid a { display: inline-flex; align-items: center; min-height: 44px; }
  .arena[data-view="duel"], .arena[data-view="results"] { min-height: calc(100dvh - 200px); }
  .coin-head .links .linkish { min-width: 44px; justify-content: center; }
  .pos { min-height: 48px; }
  .linkbox input { height: 44px; }
  .st-go { padding: 0 4px; }
}
@media (max-width: 380px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-step + .how-step { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ==========================================================================================================================
   Premium pass 10-17: the hero (big line, the loop, Play this round, CA card, the live round dial + PnL race), the live tape,
   the home sections (round timeline, payout, receipts, FAQ, last call) and a finish on every game screen.
   Motion is opacity/transform only (no layout shift); numbers are tabular; reduced motion turns it all off.
   ========================================================================================================================== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --hair: color-mix(in srgb, var(--line2) 70%, transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.eyebrow b { color: var(--acc); font-weight: 600; }
.desk-only { display: inline-flex; }

/* the top bar: translucent over the page, a status pill, the CA chip waits until the hero's own CA card has scrolled away */
.top { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.live-dot { width: auto; height: 26px; border-radius: 999px; background: transparent; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; min-width: 76px; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--hair); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: pulse 2s ease-out infinite; }
.live-dot.off { background: transparent; color: var(--warn); }
.live-dot.off i { background: var(--warn); animation: none; }
.top-ca { transition: opacity .25s ease, visibility .25s; }
body[data-view="trade"]:not(.past-hero) .top-ca { opacity: 0; visibility: hidden; }

/* until the first render builds the hero, only the top bar paints (so the terminal and footer never paint high and then move) */
body.app:not(.booted) > :not(.top):not(.skip):not(noscript) { display: none !important; }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
body:not([data-view="trade"]) .hero { display: none; }
/* a hairline grid fading out from the figure: texture, not a glow */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 78% 40%, #000 0%, transparent 70%); opacity: .55; }
.hero-in { max-width: 1400px; margin: 0 auto; padding: 56px 40px 52px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 56px; align-items: center; min-height: 600px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 13px 0 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); background: color-mix(in srgb, var(--panel) 70%, transparent);
  font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 2s ease-out infinite; }
.pill-live .pill-t { color: var(--text); }
.pill-warn { color: var(--warn); } .pill-warn .pill-dot { background: var(--warn); animation: none; }
.pill-lock { color: var(--warn); } .pill-lock .pill-dot { background: var(--warn); }
.hero-h1 { margin: 0; display: flex; flex-direction: column; font-size: clamp(46px, 6.3vw, 92px); line-height: .93; font-weight: 650; letter-spacing: -.052em; }
.hero-h1 .hl { display: block; }
.hero-h1 .hl-acc { color: var(--acc); }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 620px; }
.loop-step { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 22px 0 0; border-top: 1px solid var(--line2); }
.loop-step + .loop-step { padding-left: 4px; }
.loop-k { font: 500 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.loop-step b { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.loop-s { font-size: 12.5px; color: var(--mute); }
.loop-arrow { position: absolute; right: 8px; top: 30px; color: var(--mute); font-size: 15px; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.btn-xl { min-height: 54px; padding: 0 24px; border-radius: 11px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.btn { transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s var(--ease); }
.btn:active:not([disabled]) { transform: scale(.98); }
.play { gap: 12px; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 30px -12px color-mix(in srgb, var(--acc) 60%, transparent); }
.play-arrow { display: inline-block; transition: transform .2s var(--ease); }
@media (hover: hover) { .play:hover .play-arrow { transform: translateX(4px); } }
.cta-when { flex-basis: 100%; font-size: 12.5px; min-height: 18px; }
.ca-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 64px; padding: 0 10px 0 12px; max-width: 460px; border-radius: 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel2) 80%, transparent), color-mix(in srgb, var(--panel) 80%, transparent)); box-shadow: inset 0 0 0 1px var(--hair); }
.ca-logo { width: 36px; height: 36px; border-radius: 9px; }
.ca-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ca-txt b { font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.ca-addr { font: 500 12px/1.2 var(--font-mono); color: var(--dim); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-addr code { font: inherit; color: var(--text); }
.ca-acts { display: flex; gap: 6px; }
.ca-card .ca-btn { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
.ca-soon { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding-right: 6px; }

/* the figure: the round as a dial, the facts beside it, the PnL race under them */
.hero-fig { margin: 0; min-width: 0; border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--bg2) 92%, transparent));
  box-shadow: inset 0 0 0 1px var(--hair), 0 40px 80px -40px rgba(0, 0, 0, .7); overflow: hidden; }
.fig-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.fig-stamp { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--mute); white-space: nowrap; }
.fig-stamp.stale { color: var(--warn); }
.fig-top { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 26px; align-items: center; padding: 22px 22px 18px; }
.dial { position: relative; width: 216px; aspect-ratio: 1; }
.dial-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dial-face { fill: color-mix(in srgb, var(--bg) 70%, transparent); stroke: var(--line); stroke-width: 1; }
.dial-track { fill: none; stroke: var(--line); stroke-width: 6; }
.dial-arc { fill: none; stroke: var(--acc); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s linear, stroke .3s ease; }
.tk { stroke: var(--line2); stroke-width: 1.5; stroke-linecap: round; }
.tk-major { stroke: var(--mute); stroke-width: 2; }
.dial-bell { stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; }
.dial-hand { transform-box: view-box; transform-origin: 120px 120px; transition: transform 1s linear; }
.dial-dot { fill: var(--acc); stroke: var(--bg); stroke-width: 2; transition: fill .3s ease; }
.dial-dot-halo { fill: var(--acc); opacity: .22; transform-box: fill-box; transform-origin: center; animation: halo 2s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.8); opacity: 0; } }
.dial.no-anim .dial-arc, .dial.no-anim .dial-hand { transition: none; }
.dial.hot .dial-arc { stroke: var(--warn); } .dial.hot .dial-dot, .dial.hot .dial-dot-halo { fill: var(--warn); }
.dial.stale .dial-arc { stroke: var(--mute); } .dial.stale .dial-dot-halo { animation: none; opacity: 0; }
.dial-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; pointer-events: none; }
.dial-k { font: 500 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.dial .clock { font-size: 46px; font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.clock.hot { color: var(--warn); }
.dial-r { font: 500 11px/1 var(--font-mono); color: var(--mute); letter-spacing: .04em; min-height: 11px; }
.facts { margin: 0; display: grid; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; min-height: 42px; }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--mute); white-space: nowrap; }
.facts dd { margin: 0; font-weight: 550; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-pot { font-size: 15px; }
.facts .proof { color: var(--text); text-decoration: none; font-weight: 500; }
.facts .proof b { color: var(--acc); font-weight: 600; }
.facts .proof .arrow { color: var(--mute); transition: transform .2s var(--ease); display: inline-block; }
@media (hover: hover) { .facts .proof:hover .arrow { transform: translateX(3px); color: var(--text); } }
.fig-race { padding: 14px 20px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.h-race-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; min-height: 18px; }
.r-title { font: 500 11px/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.r-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.race-box { position: relative; height: 176px; }
.race-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.bell .dial .clock { animation: ring .9s ease; color: var(--acc); }

/* on load: the copy rises in, in order (once: the hero is built once and patched in place after) */
.rise { animation: riseIn .8s var(--ease) both; }
.r1 { animation-delay: .05s; } .r2 { animation-delay: .12s; } .r3 { animation-delay: .22s; } .r4 { animation-delay: .32s; } .r5 { animation-delay: .42s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } }

/* ---------- the live tape ---------- */
.tape { position: relative; display: flex; align-items: stretch; height: 46px; border-bottom: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
body:not([data-view="trade"]) .tape { display: none; }
.tape-k { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 20px; border-right: 1px solid var(--line); font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: var(--bg2); z-index: 1; }
.tape-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tape-track { display: flex; width: max-content; height: 100%; animation: tape var(--tape-s, 50s) linear infinite; }
.tape:hover .tape-track, .tape:focus-within .tape-track { animation-play-state: paused; }
.tape.still .tape-track { animation: none; }
.tape.still .tape-view { overflow-x: auto; scrollbar-width: none; }
@keyframes tape { to { transform: translateX(-50%); } }
.tape-run { display: flex; flex: none; }
.tick-item { display: inline-flex; align-items: center; gap: 9px; height: 100%; padding: 0 20px; border-right: 1px solid var(--line); font-size: 13px; white-space: nowrap; transition: background .15s ease; }
@media (hover: hover) { .tick-item:hover { background: var(--panel); } }
.tick-item b { font-weight: 600; }
.tk-mc { color: var(--dim); min-width: 46px; }
.tk-ch { min-width: 50px; text-align: right; }
.pfp.pfp-xs { width: 20px; height: 20px; border-radius: 5px; }
.pfp-xs .mono { font-size: 8px; }
.tape-empty { display: inline-flex; align-items: center; padding: 0 20px; font-size: 13px; }

/* ---------- home sections (trade view only) ---------- */
.about { border-top: 1px solid var(--line); }
body:not([data-view="trade"]) .about { display: none; }
.about-in { max-width: 1240px; margin: 0 auto; padding: 104px 40px 40px; display: flex; flex-direction: column; gap: 128px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.sec-head h2 { margin: 0; font-size: clamp(34px, 4.2vw, 56px); line-height: 1; font-weight: 650; letter-spacing: -.045em; }
.sec-sub { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--dim); max-width: 62ch; }
/* scroll reveal: in once */
.js-rv .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-rv .rv.in { opacity: 1; transform: none; }
.pay-rules .rv:nth-child(2), .tl-step.s1 { transition-delay: .08s; }

/* round timeline: the round (now moving along it) then the payout window */
.tl { margin-top: 44px; }
.tl-track { display: grid; grid-template-columns: 1fr 1fr; align-items: center; height: 40px; }
.tl-round { position: relative; height: 4px; border-radius: 4px; background: var(--line); }
.tl-fill { position: absolute; inset: 0; border-radius: 4px; background: var(--acc); transform-origin: left; transform: scaleX(0); transition: transform 1s linear; }
.tl-nowlayer { position: absolute; inset: 0; transition: transform 1s linear; pointer-events: none; }
.tl-now { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--acc), 0 0 0 4px var(--bg); }
.tl-now-t { position: absolute; bottom: 22px; left: 7px; white-space: nowrap; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--acc); }
.tl-after { height: 0; border-top: 2px dashed var(--line2); }
.tl-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl-step { position: relative; padding: 6px 26px 0 0; }
.tl-step::before { content: ''; position: absolute; left: 0; top: -43px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line2); }
.tl-step.s0::before, .tl-step.s2::before { box-shadow: inset 0 0 0 2px var(--text); }
.tl-t { font: 500 12px/1 var(--font-mono); color: var(--acc); letter-spacing: .06em; }
.tl-step h3 { margin: 10px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.tl-step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dim); max-width: 34ch; }

/* payout */
.pay-grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.pay-table { display: flex; flex-direction: column; }
.pay-note { margin-top: auto !important; padding-top: 14px; }
.pay-table { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg2); padding: 22px 24px 20px; }
.pay-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pay-at { font-size: 12.5px; text-align: right; }
.pay-rows { list-style: none; margin: 0; padding: 0; }
.pay-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 46px 112px; align-items: center; gap: 14px; height: 50px; border-bottom: 1px solid var(--line); }
.pay-pl { font: 500 12.5px/1 var(--font-mono); color: var(--dim); }
.pay-bar { height: 10px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pay-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 55%, transparent), var(--acc)); transform-origin: left; }
.js-rv .pay-table:not(.in) .pay-bar i { transform: scaleX(0); }
.pay-table.in .pay-bar i { transition: transform 1s var(--ease) .25s; }
.pay-row:nth-child(2) .pay-bar i { transition-delay: .32s; } .pay-row:nth-child(3) .pay-bar i { transition-delay: .39s; } .pay-row:nth-child(4) .pay-bar i { transition-delay: .46s; } .pay-row:nth-child(5) .pay-bar i { transition-delay: .53s; }
.pay-row b { font-size: 16px; font-weight: 600; text-align: right; }
.pay-sol { text-align: right; font-size: 13px; white-space: nowrap; }
.pay-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; }
.pay-rules { display: grid; gap: 20px; }
.rule-card { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 22px 24px; }
.rule-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.rule-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rule-card li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.6; color: var(--dim); }
.rule-card li::before { content: ''; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; border-radius: 1px; background: var(--acc); }

/* receipts */
.rcpt { margin-top: 40px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg2); overflow: hidden; }
.rcpt-list { list-style: none; margin: 0; padding: 0; }
.rcpt-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 80px 130px 150px; align-items: center; gap: 16px; min-height: 54px; padding: 0 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rcpt-r { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.rcpt-r small { font: 500 11px/1 var(--font-mono); }
.rcpt-w { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rcpt-pl { font: 500 11.5px/1 var(--font-mono); color: var(--mute); width: 30px; flex: none; }
.rcpt-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcpt-p, .rcpt-s { text-align: right; }
.rcpt-s { font-weight: 600; }
.rcpt-tx { justify-self: end; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--acc); text-decoration: none; font-size: 12.5px; transition: background .15s ease; }
.rcpt-tx code { font: 500 12px var(--font-mono); }
@media (hover: hover) { .rcpt-tx:hover { background: var(--acc-soft); } }
.rcpt-empty { min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 28px 24px; border-bottom: 1px solid var(--line); }
.rcpt-empty p { margin: 0; font-size: 15px; }
.rcpt-empty p.mute { font-size: 13px; }
.rcpt-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 14px 24px; font-size: 13px; }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; padding: 8px 0; font-size: 17px; font-weight: 550; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line2); color: var(--dim); font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--acc); }
@media (hover: hover) { .faq summary:hover { color: var(--acc); } }
.faq details p { margin: 0 0 22px; color: var(--dim); font-size: 14.5px; line-height: 1.65; max-width: 70ch; }
.faq-more { margin: 18px 0 0; font-size: 14px; }

/* last call */
.last-call { border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line2); background: linear-gradient(120deg, var(--panel2), var(--bg2) 60%); overflow: hidden; }
.lc-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 40px; padding: 40px 44px; }
.lc-in > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.lc-clock { font-size: clamp(56px, 7vw, 96px); font-weight: 500; line-height: .9; letter-spacing: -.055em; }
.lc-go { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px 28px; }
.lc-line { margin: 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.03em; color: var(--dim); }

/* ---------- game screens: finish ---------- */
.coin, .pos, .brow, .round-card, .seg button, .nav a, .quick, .preset, .ca-btn, .tabbar button { transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s var(--ease); }
.quick:active, .preset:active:not([disabled]), .seg button:active { transform: scale(.96); }
.panel-h h2 { letter-spacing: -.01em; }
.panel-h .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.bhead { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.brow.itm { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 7%, transparent), transparent 70%); }
.brow.itm .rk { color: var(--acc); font-weight: 600; }
.brow.me { box-shadow: inset 2px 0 0 var(--acc); }
.stats dt, .facts dt { letter-spacing: 0; }
.chart { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--panel) 60%, transparent)); }
.preset.buy { background: color-mix(in srgb, var(--acc) 5%, transparent); }
.round-card { border-radius: 0; }
@media (hover: hover) { .round-card:hover { background: color-mix(in srgb, var(--panel) 60%, transparent); } }
.winner a { font-family: var(--font-mono); font-size: 11.5px; }
.modal-back, .sheet-back { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { border-radius: 16px; }
.col-duel .panel, .col-results .panel { border-radius: 14px; }
.strip { background: var(--bg2); }
.foot { max-width: none; }

/* how-it-works page: the same type scale as the home sections */
.how-head { display: flex; flex-direction: column; gap: 12px; }
.how-head h1 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.05em; line-height: 1; font-weight: 650; }
.how-head p { font-size: 16.5px; }
.how-steps, .how-grid, .how-paid { border-radius: 16px; }
.how-pot-amt { font-size: 44px; letter-spacing: -.04em; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .hero-in { padding: 44px 28px 40px; gap: 36px; }
  .fig-top { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .dial { width: 180px; }
  .dial .clock { font-size: 38px; }
  .about-in { padding: 80px 28px 32px; gap: 104px; }
  .rcpt-row { grid-template-columns: 140px minmax(0, 1fr) 70px 120px 130px; }
}
@media (max-width: 980px) and (min-width: 761px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-fig { max-width: 640px; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .desk-only { display: none; }
  .live-dot { display: none; }
  .hero::before { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 20%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 90% 50% at 50% 20%, #000 0%, transparent 75%); background-size: 44px 44px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 22px 16px 24px; min-height: 0; }
  .hero-copy { gap: 18px; }
  .pill { height: 28px; font-size: 10.5px; }
  .hero-h1 { font-size: 46px; line-height: .94; }
  .loop-step { padding: 10px 10px 0 0; }
  .loop-step + .loop-step { padding-left: 0; }
  .loop-arrow { display: none; }
  .loop-step b { font-size: 14px; }
  .loop-s { font-size: 11.5px; }
  .hero-cta { gap: 8px 10px; }
  .hero-cta .play { flex: 1 1 auto; }
  .btn-xl { min-height: 52px; padding: 0 18px; font-size: 15.5px; }
  .cta-when { font-size: 12px; }
  .ca-card { max-width: none; height: 60px; }
  .ca-card .ca-btn { height: 44px; padding: 0 13px; }
  .fig-head { height: 44px; padding: 0 16px; }
  .fig-top { grid-template-columns: 136px minmax(0, 1fr); gap: 16px; padding: 16px 16px 12px; }
  .dial { width: 136px; }
  .dial .clock { font-size: 29px; }
  .dial-k { font-size: 9px; } .dial-r { font-size: 9.5px; }
  .facts div { padding: 7px 0; font-size: 12.5px; min-height: 34px; }
  .f-pot { font-size: 13px; }
  .fig-race { padding: 12px 14px 12px; }
  .race-box { height: 132px; }
  .tape { height: 44px; }
  .tape-k { padding: 0 12px 0 14px; }
  .tape-k { font-size: 0; gap: 0; } .tape-k .pill-dot { width: 7px; height: 7px; }
  .tick-item { padding: 0 14px; }
  .about-in { padding: 64px 16px 24px; gap: 80px; }
  .sec-head h2 { font-size: 36px; }
  .sec-sub { font-size: 15px; }
  .tl { margin-top: 36px; }
  .tl-steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .tl-step { padding-right: 14px; }
  .tl-step::before { display: none; }
  .tl-step h3 { font-size: 18px; }
  .tl-step p { font-size: 13.5px; }
  .pay-grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .pay-table { padding: 18px 16px 16px; }
  .pay-row { grid-template-columns: 36px minmax(0, 1fr) 40px 96px; gap: 10px; height: 46px; }
  .rule-card { padding: 18px 16px; }
  .rcpt { margin-top: 28px; }
  .rcpt-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'r s' 'w tx' 'p tx'; gap: 4px 12px; padding: 12px 16px; }
  .rcpt-r { grid-area: r; flex-direction: row; align-items: baseline; gap: 8px; }
  .rcpt-r:empty { display: none; }
  .rcpt-w { grid-area: w; } .rcpt-p { grid-area: p; text-align: left; } .rcpt-s { grid-area: s; } .rcpt-tx { grid-area: tx; height: 44px; }
  .rcpt-empty, .rcpt-foot { padding-left: 16px; padding-right: 16px; }
  .rcpt-foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .faq summary { font-size: 15.5px; min-height: 56px; }
  .faq-more a { display: inline-flex; align-items: center; min-height: 44px; }
  .lc-in { grid-template-columns: 1fr; gap: 22px; padding: 28px 20px; }
  .lc-go { justify-content: flex-start; }
  .lc-go .play { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .dial-dot-halo, .pill-dot, .live-dot i { animation: none !important; }
  .js-rv .rv { opacity: 1; transform: none; transition: none; }
  .dial-arc, .dial-hand, .tl-fill, .tl-nowlayer { transition: none; }
}
.pay-bar .w0 { width: 0%; }
.pay-bar .w1 { width: 5%; }
.pay-bar .w2 { width: 10%; }
.pay-bar .w3 { width: 15%; }
.pay-bar .w4 { width: 20%; }
.pay-bar .w5 { width: 25%; }
.pay-bar .w6 { width: 30%; }
.pay-bar .w7 { width: 35%; }
.pay-bar .w8 { width: 40%; }
.pay-bar .w9 { width: 45%; }
.pay-bar .w10 { width: 50%; }
.pay-bar .w11 { width: 55%; }
.pay-bar .w12 { width: 60%; }
.pay-bar .w13 { width: 65%; }
.pay-bar .w14 { width: 70%; }
.pay-bar .w15 { width: 75%; }
.pay-bar .w16 { width: 80%; }
.pay-bar .w17 { width: 85%; }
.pay-bar .w18 { width: 90%; }
.pay-bar .w19 { width: 95%; }
.pay-bar .w20 { width: 100%; }
