/* Components from the approved mockup B, plus the ones the mockup does not draw
 * (fields, breadcrumbs, prose, accordion, table, event row, game card, gates),
 * built on the same tokens. States: hover, focus-visible, active, disabled, selected. */

/* ---------- icons ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; }
.icon--sm { width: 16px; height: 16px; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--c-error); }

/* ---------- signature 2: mono kicker with live dot ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-kicker)/1 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-2); }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); flex: none; animation: pulse 1.8s var(--ease) infinite; }
.kicker .dot.amber { background: var(--c-accent); animation: none; }
.kicker .dot.idle { background: var(--text-3); animation: none; }
.kicker b { color: var(--c-text); font-weight: 600; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-brand) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- signature 1: segmented control with sliding thumb ---------- */
.seg { position: relative; display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-0); border: 1px solid var(--hair); isolation: isolate; max-width: 100%; }
.seg-thumb { position: absolute; left: 0; top: 0; border-radius: var(--r-pill); background: var(--surface-3); box-shadow: 0 1px 2px rgb(0 0 0 / .4), inset 0 1px 0 rgb(255 255 255 / .06); transition: transform var(--dur-slow) var(--spring), width var(--dur-slow) var(--spring), height var(--dur-slow) var(--spring); z-index: -1; }
.seg > button, .seg > a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 30px; padding: 5px 12px; border-radius: var(--r-pill); font: 600 var(--fs-xs)/1 var(--ff-body); color: var(--c-text-2); transition: color .2s var(--ease); white-space: nowrap; }
.seg > button:hover, .seg > a:hover { color: var(--c-text); }
.seg > [aria-pressed="true"], .seg > [aria-selected="true"], .seg > [aria-current="page"] { color: var(--c-text); }
.seg > button, .seg > a { transition: color .2s var(--ease), background-color .15s var(--ease); }
.seg > [aria-pressed="true"], .seg > [aria-selected="true"], .seg > [aria-current="page"] { background: var(--surface-3); transition: color .2s var(--ease), background-color .1s var(--ease) .3s; }
.seg--brand .seg-thumb { background: var(--c-brand); }
.seg--brand > [aria-pressed="true"], .seg--brand > [aria-current="page"] { color: var(--brand-ink); }
.seg--brand > [aria-pressed="true"], .seg--brand > [aria-current="page"] { background: var(--c-brand); }
.seg--lg { display: flex; padding: 5px; border-radius: 16px; }
.seg--lg .seg-thumb { border-radius: 12px; }
.seg--lg > button, .seg--lg > a { flex: 1; min-height: 44px; border-radius: 12px; font-size: var(--fs-sm); }
.seg--scroll { overflow-x: auto; scrollbar-width: none; }
.seg--scroll::-webkit-scrollbar { display: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 600 var(--fs-sm)/1 var(--ff-body); white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s; overflow: hidden; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .icon { width: 16px; height: 16px; }
.btn--brand, .btn--primary { background: var(--c-brand); color: var(--brand-ink); box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 10px 24px -12px color-mix(in oklab, var(--c-brand) 80%, transparent); }
.btn--brand:hover, .btn--primary:hover { background: var(--c-brand-hover); }
.btn--brand::after, .btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .35) 50%, transparent 65%); transform: translateX(-110%); transition: transform .6s var(--ease); pointer-events: none; }
.btn--brand:hover::after, .btn--primary:hover::after { transform: translateX(110%); }
.btn--ghost { background: color-mix(in oklab, var(--c-surface) 55%, transparent); color: var(--c-text); border-color: var(--hair-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--surface-3); border-color: color-mix(in oklab, var(--c-text-2) 35%, transparent); }
.btn--quiet { background: transparent; color: var(--c-text); border-color: var(--hair); }
.btn--quiet:hover { background: var(--surface-2); }
.btn--amber { background: var(--c-accent); color: #1A1406; }
.btn--sm { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: var(--fs-xs); }
.btn--lg { min-height: 50px; padding: 0 22px; font-size: .9375rem; }
.btn--block { width: 100%; }

.icon-btn { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--hair); color: var(--c-text-2); transition: background-color .2s, color .2s; flex: none; }
.icon-btn::after { content: ""; position: absolute; inset: -6px; }
.icon-btn:hover { background: var(--surface-3); color: var(--c-text); }
.icon-btn .icon { width: 16px; height: 16px; }
.icon-btn:disabled { opacity: .4; cursor: default; }

.link-all { position: relative; display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-sm)/1 var(--ff-body); color: var(--c-text-2); transition: color .2s, gap .2s; }
/* standalone text links get a 24px hit area without moving the layout (WCAG 2.5.8) */
.link-all::after, .t-foot a::after, .ev-title::after, .pill > a::after, .fm-mk a::after, .sb-cap-row a::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
.t-foot a, .ev-title, .pill > a, .fm-mk a, .sb-cap-row a { position: relative; }
.link-all:hover { color: var(--c-text); gap: 9px; }
.link-all .icon { width: 16px; height: 16px; }
.lnk { color: var(--brand-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lnk:hover { color: var(--c-text); }

/* ---------- odds button (signature in every market) ---------- */
.odd { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 52px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface-1); border: 1px solid var(--hair); text-align: left; transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); min-width: 0; }
.odd:hover { border-color: var(--hair-2); background: var(--surface-3); transform: translateY(-1px); }
.odd .o-lbl { font: 500 var(--fs-xs)/1.2 var(--ff-body); color: var(--c-text-2); max-width: 100%; overflow-wrap: anywhere; }
.odd .o-val { font: 700 1.0625rem/1 var(--ff-head); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.odd.is-sel { background: var(--c-brand); border-color: var(--c-brand); color: var(--brand-ink); }
.odd.is-sel .o-lbl { color: color-mix(in oklab, var(--brand-ink) 75%, transparent); }
.odd .mv { position: absolute; top: 8px; right: 10px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: 0; transition: opacity .3s; }
.odd.up .mv { border-bottom: 6px solid var(--c-brand); opacity: 1; }
.odd.down .mv { border-top: 6px solid var(--c-accent); opacity: 1; }
.odd.is-sel.up .mv { border-bottom-color: var(--brand-ink); }
.odd--sm { min-height: 40px; padding: 6px 10px; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.odd--sm .o-val { font-size: .9375rem; }
.odd--c { align-items: center; text-align: center; }
.odd:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font: 600 var(--fs-xs)/1 var(--ff-body); background: var(--surface-3); color: var(--c-text-2); white-space: nowrap; }
.pill--amber { background: var(--accent-tint); color: var(--c-accent); }
.pill--brand { background: var(--brand-tint); color: var(--brand-soft); }
.pill--live { background: color-mix(in oklab, #FF5A4E 18%, transparent); color: #FF9C93; }
.pill .icon { width: 13px; height: 13px; }

/* ---------- tile (bento card) ---------- */
.tile { position: relative; min-width: 0; border-radius: var(--r-lg); background: linear-gradient(180deg, color-mix(in oklab, var(--c-surface) 92%, white 2%), var(--surface-1)); border: 1px solid var(--hair); box-shadow: var(--sh-1); padding: 18px; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / .05); }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; min-height: 30px; }
.t-title { font: 700 1.0625rem/1.2 var(--ff-head); letter-spacing: -.01em; }

/* ---------- section head ---------- */
.sec { padding-top: var(--sec-gap); }
.sec--tight { padding-top: 56px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -.03em; margin-top: 12px; }
.sec-head p { color: var(--c-text-2); max-width: 560px; margin-top: 10px; }

/* page head for inner pages */
.phead { position: relative; padding: 28px 0 8px; }
.phead h1 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.25rem); line-height: 1.04; letter-spacing: -.035em; margin-top: 14px; max-width: 900px; }
.phead .lead { margin-top: 14px; color: var(--c-text-2); font-size: 1.0625rem; max-width: 680px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.crumbs a { position: relative; color: var(--c-text-2); transition: color .2s; }
.crumbs a::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
.crumbs a:hover { color: var(--c-text); }
.crumbs .icon { width: 12px; height: 12px; }

/* ---------- sports ribbon ---------- */
.ribbon { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; margin-bottom: 6px; scrollbar-width: none; }
.ribbon::-webkit-scrollbar { display: none; }
.sp-chip { scroll-snap-align: start; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 12px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--hair); font: 600 var(--fs-sm)/1 var(--ff-body); white-space: nowrap; color: var(--c-text-2); transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); flex: none; }
.sp-chip:hover { color: var(--c-text); transform: translateY(-2px); }
.sp-chip .icon { width: 18px; height: 18px; }
.sp-chip .cnt { min-width: 28px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--surface-3); font: 600 .6875rem/1 var(--ff-mono); font-variant-numeric: tabular-nums; color: var(--c-text); }
.sp-chip[aria-pressed="true"], .sp-chip[aria-current="page"] { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.sp-chip[aria-pressed="true"] .cnt, .sp-chip[aria-current="page"] .cnt { background: var(--c-bg); color: var(--c-text); }

/* ---------- photo sport card ---------- */
.sp { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; border: 1px solid var(--hair); background: var(--surface-0); transition: transform .3s var(--ease), box-shadow .3s var(--ease); min-height: 220px; }
.sp:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.sp > picture { position: absolute; inset: 0; z-index: -2; }
.sp > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sp:hover > picture img { transform: scale(1.05); }
.sp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 18 24 / .15) 0%, rgb(11 18 24 / .55) 45%, rgb(11 18 24 / .94) 100%); }
.sp-top { position: absolute; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-top .kicker { padding: 7px 10px; border-radius: var(--r-pill); background: rgb(11 18 24 / .7); backdrop-filter: blur(8px); }
.sp-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(11 18 24 / .7); backdrop-filter: blur(8px); border: 1px solid var(--hair-2); transition: background-color .2s, color .2s, transform .3s var(--spring); }
.sp:hover .sp-go { background: var(--c-brand); color: var(--brand-ink); transform: rotate(-45deg); }
.sp-go .icon { width: 16px; height: 16px; }
.sp h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.sp .nx { margin-top: 4px; font-size: var(--fs-sm); color: var(--c-text-2); }
.sp .nx b { display: block; color: var(--c-text); font-weight: 600; }
.sp-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; position: relative; z-index: 2; }
.sp-odds .odd { background: rgb(21 31 41 / .82); backdrop-filter: blur(6px); }
.sp-odds .odd.is-sel { background: var(--c-brand); }
.sp .cover-link { position: absolute; inset: 0; z-index: 1; }

/* signature 3: momentum / spark line */
.spark { display: block; width: 100%; height: 34px; margin-top: 10px; overflow: visible; }
.spark .line, .mo .line { fill: none; stroke: var(--c-brand); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.spark .base, .mo .mid { stroke: var(--hair-2); stroke-width: 1; stroke-dasharray: 2 4; }
.spark.is-in .line, .mo .line.draw { animation: draw 1.6s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- event row (lists on sportsbook / live / sport pages) ---------- */
.ev-list { display: grid; gap: 8px; }
.ev { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-1); border: 1px solid var(--hair); transition: border-color .2s, background-color .2s; }
.ev:hover { border-color: var(--hair-2); }
.ev-main { display: grid; gap: 6px; min-width: 0; }
.ev-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 500 var(--fs-xs)/1 var(--ff-body); color: var(--text-3); }
.ev-meta .when { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; color: var(--c-text-2); }
.ev-teams { display: grid; gap: 4px; }
.ev-team { display: flex; align-items: center; gap: 10px; font: 600 var(--fs-sm)/1.25 var(--ff-body); min-width: 0; }
.ev-team .nm { min-width: 0; overflow-wrap: anywhere; }
.ev-team .sc { margin-left: auto; font: 800 .9375rem/1 var(--ff-head); font-variant-numeric: tabular-nums; }
.ev-title { font: 700 var(--fs-sm)/1.3 var(--ff-head); }
.ev-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ev-side .ev-odds { flex: 1; min-width: 0; }
.ev-odds { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 6px; }
.ev-odds .odd { min-height: 46px; padding: 6px 10px; }
.ev-more { display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--hair); font: 600 var(--fs-xs)/1 var(--ff-body); color: var(--c-text-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.ev-more:hover { background: var(--surface-3); color: var(--c-text); }
.ev-more .icon { width: 14px; height: 14px; }
.crest { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--hair-2); font: 800 .625rem/1 var(--ff-head); letter-spacing: .02em; color: var(--c-text); flex: none; }
.crest.c2 { background: var(--surface-0); }
.live-clock { display: inline-flex; align-items: center; gap: 6px; color: #FF9C93; font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.live-clock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FF5A4E; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.flip { display: inline-block; min-width: 1.4ch; text-align: center; }
.flip.go { animation: flip .6s var(--spring); color: var(--c-brand); }
@keyframes flip { 0% { transform: rotateX(-90deg); opacity: .2; } 60% { transform: rotateX(12deg); opacity: 1; } 100% { transform: none; } }

/* ---------- game card ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--gap); }
.gc { position: relative; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--hair); padding: 8px; transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .2s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }
.gc:hover { --ty: -3px; box-shadow: var(--sh-2); border-color: var(--hair-2); }
.gc .cov { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--surface-0); }
.gc .cov img { width: 100%; height: 100%; object-fit: cover; }
.gc .cov::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .22), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.gc:hover .cov::after { opacity: 1; }
.gc .tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.gc .tags .pill { height: 22px; padding: 0 8px; background: rgb(11 18 24 / .78); backdrop-filter: blur(6px); }
.gc .prev { position: absolute; inset: auto 8px 8px 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.gc:hover .prev, .gc:focus-within .prev { opacity: 1; transform: none; }
.gc .prev .btn { flex: 1; min-height: 36px; padding: 0 8px; }
.gc .meta { padding: 10px 4px 2px; }
.gc .meta b { display: block; font: 700 .875rem/1.25 var(--ff-head); overflow-wrap: anywhere; }
.gc .meta span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-3); }
.gc .meta span em { font-style: normal; }
@media (hover: none) { .gc .prev { opacity: 1; transform: none; } }

/* ---------- bet slip (shared: tile, sidebar, drawer) ---------- */
.slip-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: var(--r-pill); background: var(--c-brand); color: var(--brand-ink); font: 700 .75rem/1 var(--ff-body); font-variant-numeric: tabular-nums; vertical-align: 2px; transition: transform var(--dur-slow) var(--spring); }
.slip-count.bump { transform: scale(1.3); }
.slip-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; scrollbar-width: thin; margin-bottom: 12px; padding-right: 2px; }
.slip-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-0); border: 1px solid var(--hair); animation: slideIn .3s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(10px); } }
.slip-item .si-t { min-width: 0; flex: 1; }
.slip-item .si-pick { display: block; font: 600 var(--fs-sm)/1.2 var(--ff-body); overflow-wrap: anywhere; }
.slip-item .si-ev { display: block; font-size: var(--fs-xs); color: var(--text-3); overflow-wrap: anywhere; }
.slip-item .si-o { font: 700 .9375rem/1 var(--ff-head); font-variant-numeric: tabular-nums; }
.slip-item button { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--text-3); transition: background-color .2s, color .2s; }
.slip-item button::after { content: ""; position: absolute; inset: -6px; }
.slip-item button:hover { background: var(--surface-3); color: var(--c-text); }
.slip-item button .icon { width: 15px; height: 15px; }
.slip-empty { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1px dashed var(--hair-2); font-size: var(--fs-sm); color: var(--text-3); margin-bottom: 12px; }
.slip-empty .icon { width: 18px; height: 18px; }
.stake { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.stake-in { position: relative; }
.stake-in span { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font: 600 var(--fs-sm)/1 var(--ff-body); color: var(--text-3); }
.stake-in input { width: 100%; height: 42px; padding: 0 12px 0 38px; border-radius: 10px; background: var(--surface-0); border: 1px solid var(--hair-2); font: 600 var(--fs-sm)/1 var(--ff-body); font-variant-numeric: tabular-nums; }
.stake-in input:focus { outline: none; border-color: var(--c-brand); box-shadow: var(--focus-ring); }
.quick { display: flex; gap: 4px; }
.quick button { min-width: 44px; height: 42px; padding: 0 8px; border-radius: 10px; background: var(--surface-3); font: 600 var(--fs-xs)/1 var(--ff-body); color: var(--c-text-2); transition: background-color .2s, color .2s; }
.quick button:hover { color: var(--c-text); background: color-mix(in oklab, var(--surface-3) 80%, white); }
.slip-sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 14px 0 12px; }
.slip-sum .ss-l { font-size: var(--fs-xs); color: var(--text-3); }
.slip-sum .ss-l b { display: block; color: var(--c-text-2); font-weight: 500; font-size: var(--fs-sm); }
.slip-sum .ret { text-align: right; }
.slip-sum .ret small { display: block; font: 500 var(--fs-kicker)/1 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.slip-sum .ret strong { font: 800 1.625rem/1 var(--ff-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.slip-note { margin-top: 10px; font-size: var(--fs-xs); color: var(--text-3); }

/* slip drawer (any page) */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: min(400px, 100vw); display: flex; flex-direction: column; padding: 18px; background: var(--surface-2); border-left: 1px solid var(--hair-2); box-shadow: var(--sh-2); transform: translateX(104%); visibility: hidden; transition: transform var(--dur-slow) var(--ease), visibility 0s var(--dur-slow); }
.drawer.is-open { transform: none; visibility: visible; transition: transform var(--dur-slow) var(--ease), visibility 0s; }
.drawer-scrim { position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgb(6 10 14 / .55); opacity: 0; pointer-events: none; transition: opacity var(--dur-slow) var(--ease); }
.drawer-scrim.is-on { opacity: 1; pointer-events: auto; }
.drawer [data-slip] { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: auto; }
.drawer .slip-list { max-height: none; overflow: visible; }

/* ---------- search ---------- */
.search { position: relative; flex: 1; max-width: 520px; }
.search > .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--text-3); width: 18px; height: 18px; pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 64px 0 42px; border-radius: 12px; background: var(--surface-1); border: 1px solid var(--hair); color: var(--c-text); font-size: var(--fs-sm); transition: border-color .2s, background-color .2s; }
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; border-color: var(--c-brand); box-shadow: var(--focus-ring); background: var(--surface-2); }
.kbd { position: absolute; right: 10px; top: 50%; translate: 0 -50%; display: inline-flex; gap: 3px; pointer-events: none; }
.kbd kbd { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--hair-2); border-bottom-width: 2px; font: 600 .6875rem/1 var(--ff-mono); color: var(--c-text-2); }
.s-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 6px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--hair-2); box-shadow: var(--sh-2); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); max-height: 60vh; overflow: auto; }
.search.is-open .s-results { opacity: 1; transform: none; pointer-events: auto; }
.s-results a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: var(--fs-sm); }
.s-results a:hover, .s-results a.is-hi { background: var(--surface-3); }
.s-results small { margin-left: auto; font: 500 var(--fs-kicker)/1 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.s-results .empty { padding: 10px; color: var(--text-3); font-size: var(--fs-sm); }

/* ---------- fields (forms.js contract) ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field__label { font: 500 var(--fs-xs)/1.3 var(--ff-body); color: var(--c-text-2); }
.field input:not(.visually-hidden):not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--surface-0); border: 1px solid var(--hair-2); color: var(--c-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-text-2) 50%), linear-gradient(135deg, var(--c-text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field textarea { min-height: 130px; padding-block: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-brand); box-shadow: var(--focus-ring); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field__hint { font-size: var(--fs-xs); color: var(--text-3); }
.field__error { color: var(--c-error); font-size: var(--fs-xs); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-error); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--c-brand); }
.field--check .field__label { display: inline; color: var(--c-text-2); font-size: var(--fs-sm); }
.field--check .field__error { grid-column: 1 / -1; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-wrap .icon-btn { position: absolute; right: 8px; top: 50%; translate: 0 -50%; border: 0; }
.form__error { padding: 10px 12px; border-radius: 10px; background: color-mix(in oklab, var(--c-error) 12%, transparent); color: var(--c-error); font-size: var(--fs-sm); }
.form__success { color: var(--c-success); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.done { display: grid; justify-items: start; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--brand-tint); border: 1px solid color-mix(in oklab, var(--c-brand) 40%, transparent); }
.done .icon { width: 32px; height: 32px; color: var(--c-brand); }

/* ---------- cards & prose ---------- */
.card { position: relative; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--hair); padding: 22px; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color .2s; }
.card:hover { border-color: var(--hair-2); }
.card h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.card p { color: var(--c-text-2); font-size: var(--fs-sm); margin-top: 8px; }
.card .ic-box { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-soft); margin-bottom: 14px; }
.card .ic-box .icon { width: 20px; height: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }

.prose { max-width: 760px; color: var(--c-text-2); font-size: 1rem; }
.prose h2 { color: var(--c-text); font-size: 1.5rem; letter-spacing: -.02em; margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose h3 { color: var(--c-text); font-size: 1.125rem; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); }
.prose ol { padding-left: 22px; list-style: decimal; display: grid; gap: 8px; }
.prose strong { color: var(--c-text); font-weight: 600; }
.prose a { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-text); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--util-h) + 20px); display: grid; gap: 2px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--hair); max-height: calc(100vh - 120px); overflow: auto; }
.toc b { font: 500 var(--fs-kicker)/1 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 4px 8px 8px; }
.toc a { display: block; padding: 7px 8px; border-radius: 8px; font-size: var(--fs-xs); color: var(--c-text-2); transition: background-color .2s, color .2s; }
.toc a:hover, .toc a.is-on { background: var(--surface-2); color: var(--c-text); }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--accent-tint); border: 1px solid color-mix(in oklab, var(--c-accent) 35%, transparent); color: var(--c-text); font-size: var(--fs-sm); }
.note .icon { color: var(--c-accent); margin-top: 1px; }
.note--brand { background: var(--brand-tint); border-color: color-mix(in oklab, var(--c-brand) 35%, transparent); }
.note--brand .icon { color: var(--c-brand); }

/* ---------- accordion (FAQ) ---------- */
.acc { display: grid; gap: 8px; }
.acc-item { border-radius: var(--r-md); background: var(--surface-1); border: 1px solid var(--hair); transition: border-color .2s; }
.acc-item:has([aria-expanded="true"]) { border-color: var(--hair-2); }
.acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 18px; text-align: left; font: 600 1rem/1.35 var(--ff-body); }
.acc-btn .icon { transition: transform var(--dur-base) var(--ease); color: var(--c-text-2); }
.acc-btn[aria-expanded="true"] .icon { transform: rotate(45deg); color: var(--c-brand); }
.acc-body > div > div { padding: 0 18px 18px; color: var(--c-text-2); font-size: .9375rem; }
.acc-body p + p { margin-top: 10px; }
.acc-body a { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--hair); background: var(--surface-1); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.tbl th { text-align: left; padding: 12px 14px; font: 500 var(--fs-kicker)/1 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--hair); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--hair); color: var(--c-text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td b { color: var(--c-text); font-weight: 600; }

/* ---------- empty state ---------- */
.empty { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; border-radius: var(--r-lg); border: 1px dashed var(--hair-2); text-align: center; color: var(--c-text-2); }
.empty .icon { width: 30px; height: 30px; color: var(--text-3); }
.empty b { color: var(--c-text); font: 700 1.0625rem/1.2 var(--ff-head); }

/* ---------- marquee ticker (live scores, from mockup C) ---------- */
.ticker { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); background: var(--surface-0); height: 38px; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; height: 100%; font-size: var(--fs-xs); color: var(--c-text-2); white-space: nowrap; border-right: 1px solid var(--hair); transition: color .2s, background-color .2s; }
.ticker a:hover { color: var(--c-text); background: var(--surface-1); }
.ticker a b { color: var(--c-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker .lg { font: 600 .625rem/1 var(--ff-mono); letter-spacing: .08em; color: var(--text-3); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--hair); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- overlays: modal, age gate, cookie banner ---------- */
.overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: rgb(6 10 14 / .72); backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.overlay.is-open { opacity: 1; }
.overlay__panel { position: relative; width: min(100%, 440px); max-height: 90vh; overflow: auto; padding: 26px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--hair-2); box-shadow: var(--sh-2); transform: translateY(12px) scale(.97); transition: transform var(--dur-slow) var(--spring); }
.overlay.is-open .overlay__panel { transform: none; }
.overlay__close { position: absolute; top: 14px; right: 14px; }
.modal-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-tint); color: var(--c-accent); margin-bottom: 16px; }
.modal-ic .icon { width: 28px; height: 28px; }
.modal-ic--brand { background: var(--brand-tint); color: var(--c-brand); }
.overlay__panel h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -.025em; }
.overlay__panel p { margin-top: 10px; color: var(--c-text-2); font-size: .9375rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1 1 160px; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-overlay); max-width: 720px; margin-inline: auto; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--hair-2); box-shadow: var(--sh-2); opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.cookie.is-open { opacity: 1; transform: none; }
.cookie p { font-size: var(--fs-sm); color: var(--c-text-2); }
.cookie p a { color: var(--brand-soft); text-decoration: underline; }
.cookie .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookie .opts { display: grid; gap: 8px; margin-top: 14px; }
.cookie .opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--hair); font-size: var(--fs-sm); }
.cookie .opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-brand); }
.cookie .opt span { color: var(--text-3); display: block; font-size: var(--fs-xs); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: var(--z-toast); translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--hair-2); box-shadow: var(--sh-2); font-size: var(--fs-sm); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: none; }
.toast .icon { color: var(--c-brand); }

/* ---------- to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: var(--z-dock); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hair-2); color: var(--c-text); box-shadow: var(--sh-1); transition: transform .2s var(--ease), background-color .2s; }
.to-top:hover { transform: translateY(-2px); background: var(--surface-3); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 1024px) {
  .ev { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 760px) {
  .grid-3, .grid-2, .form-row { grid-template-columns: minmax(0, 1fr); }
  .ev { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ev-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gc { padding: 6px; }
  .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(140px + env(safe-area-inset-bottom)); right: 16px; }
  .cookie { bottom: calc(82px + env(safe-area-inset-bottom)); left: 10px; right: 10px; }
  .overlay__panel { padding: 22px 18px; }
  .sp { min-height: 190px; padding: 14px; }
  .sp h3 { font-size: 1.1875rem; }
  .drawer { width: 100vw; }
}
