/* Components of the approved mockup B "Line Board" + the states it did not draw. */

/* ── icons ────────────────────────────────────────────────────────────── */
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 1.15em; border: 1px solid transparent; border-radius: var(--radius-pill);
  background: transparent; color: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  white-space: nowrap; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.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--primary { background: var(--color-brand); color: var(--color-brand-ink); }
.btn--primary:hover { background: var(--color-brand-hover); }
.btn--primary:active { background: var(--color-brand-active); }
/* shine sweep on the primary button (signature motion, small) */
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--line { border-color: var(--line); background: var(--surface-1); color: var(--color-text); }
.btn--line:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn--ghost { border-color: var(--line-strong); color: var(--color-text); }
.btn--ghost:hover { background: color-mix(in oklab, #fff 8%, transparent); }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; padding: 0 1.5em; font-size: 1rem; }
.btn--icon { width: 44px; padding: 0; }

/* ── label with the north line (signature #1) ─────────────────────────── */
.t-label { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--fs-label)/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--color-faint); }
.t-label::before { content: ""; width: 18px; height: 2px; flex: none; background: var(--color-brand); border-radius: 2px; }
.t-label--live { color: #FFC2C4; }
.t-label--live::before { background: var(--color-live); }

/* ── chips (sport rail, filters) ──────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: .88rem; color: var(--color-muted); text-decoration: none; background: transparent; cursor: pointer; transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast); }
.chip b { font: 700 .72rem var(--font-mono); padding: 2px 7px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--color-text); }
.chip .icon { width: 1em; height: 1em; }
.chip:hover { border-color: var(--color-brand); color: var(--color-text); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--color-text); color: var(--color-bg); border-color: transparent; }
.chip[aria-pressed="true"] b, .chip[aria-current] b { background: var(--color-bg); color: var(--color-text); }
.chip .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--color-live); animation: blink 1.2s infinite; }

/* ── tags ─────────────────────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: .4em; padding: 4px 10px; border-radius: var(--radius-pill); font-weight: 600; font-size: .74rem; letter-spacing: .02em; background: var(--tint-accent); color: #BFF1EA; }
.tag--live { background: var(--tint-live); color: #FFC2C4; }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-live); animation: blink 1.2s infinite; }
.tag--brand { background: var(--tint-brand); color: #FFE2A3; }

/* ── tiles (bento, cards) ─────────────────────────────────────────────── */
.tile { position: relative; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; overflow: hidden; box-shadow: var(--shadow-card); isolation: isolate; transition: border-color var(--dur-base), transform var(--dur-base) var(--ease); }
.tile--link:hover, a.tile:hover { border-color: color-mix(in oklab, var(--color-brand) 35%, transparent); transform: translateY(-3px); }
a.tile { text-decoration: none; color: inherit; display: block; }

/* ── section head ─────────────────────────────────────────────────────── */
.sh { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 24px; flex-wrap: wrap; }
.sh h2 { font: 700 var(--fs-h2)/1.05 var(--font-display); font-stretch: 90%; letter-spacing: -.03em; text-wrap: balance; margin-top: 10px; }
.sh p { color: var(--color-muted); max-width: 480px; font-size: .97rem; text-wrap: pretty; }
.sh__side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── segmented control ────────────────────────────────────────────────── */
.seg { display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-0); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: none; font-size: .86rem; font-weight: 600; color: var(--color-muted); cursor: pointer; transition: background var(--dur-base) var(--ease), color var(--dur-base); white-space: nowrap; }
.seg button:hover { color: var(--color-text); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--color-text); box-shadow: 0 1px 2px rgb(0 0 0 / .3); }

/* ── odds button (signature #2: mono prices that flash on change) ─────── */
.odd { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); color: var(--color-text); cursor: pointer; text-align: left; transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease); min-width: 0; }
.odd span { font-size: .85rem; line-height: 1.25; color: var(--color-muted); min-width: 0; overflow-wrap: break-word; padding-block: 6px; }
.odd b { font: 700 1rem var(--font-mono); font-variant-numeric: tabular-nums; flex: none; }
.odd:hover { border-color: var(--color-brand); background: var(--surface-3); transform: translateY(-1px); }
.odd:active { transform: scale(.97); }
.odd--c { justify-content: center; }
.odd.is-up b { animation: up 1.2s; }
.odd.is-down b { animation: down 1.2s; }
.odd--off { opacity: .35; justify-content: center; cursor: default; pointer-events: none; }
@keyframes up { 0%, 40% { color: var(--color-success); } }
@keyframes down { 0%, 40% { color: var(--color-error); } }
@keyframes blink { 50% { opacity: .25; } }

/* ── event row (league board) ─────────────────────────────────────────── */
.hd, .ev { display: grid; grid-template-columns: 156px minmax(0, 1fr) repeat(3, 88px) 44px; align-items: center; gap: 10px; }
.hd { padding: 0 16px 8px; font: 700 .7rem var(--font-mono); letter-spacing: .1em; color: var(--color-faint); text-transform: uppercase; }
.hd span:nth-child(n+3) { text-align: center; }
.ev { position: relative; padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--line); margin-bottom: 8px; transition: transform var(--dur-base) var(--ease), border-color var(--dur-base); }
.ev:hover { transform: translateX(4px); border-color: color-mix(in oklab, var(--color-brand) 30%, transparent); }
.ev__t { font: 700 .76rem/1.35 var(--font-mono); color: var(--color-faint); }
.ev__t .tag { font-family: var(--font-body); }
.ev__n { display: grid; gap: 2px; font-weight: 600; min-width: 0; text-decoration: none; color: inherit; }
.ev__n strong { font-weight: 600; }
.ev__n span { font-weight: 400; color: var(--color-muted); font-size: .9rem; }
.ev__sc { margin-left: 6px; color: var(--color-brand); }
.ev__n small { font-size: .75rem; color: var(--color-faint); }
.ev__n::after { content: ""; position: absolute; inset: 0; z-index: 0; }          /* whole row opens the event */
.ev .odd, .ev .ev__more { position: relative; z-index: 1; }
.ev .odd { justify-content: center; }
.ev__more { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--color-muted); text-decoration: none; font: 700 .72rem var(--font-mono); }
.ev__more:hover { border-color: var(--color-brand); color: var(--color-text); }
.ev__score { font: 700 1rem var(--font-mono); color: var(--color-text); }
@media (max-width: 820px) {
  .hd { display: none; }
  .ev { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ev__t, .ev__n { grid-column: 1 / -1; }
  .ev__more { display: none; }
  .ev:hover { transform: none; }
}

/* ── fields & forms ───────────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: .84rem; font-weight: 600; color: var(--color-muted); }
.field input:not(.visually-hidden):not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface-0); color: var(--color-text); font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-brand); box-shadow: var(--focus-ring); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-faint); }
.field__hint { font-size: .8rem; color: var(--color-faint); }
.field__error { color: var(--color-error); font-size: .84rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-brand); }
.field--check .field__label { display: inline; font-weight: 400; color: var(--color-muted); }
.field--check .field__label a { color: var(--color-brand); }
.field--check .field__error { grid-column: 1 / -1; }
.form__error { color: var(--color-error); font-size: .9rem; padding: 10px 14px; border-radius: var(--radius-md); background: color-mix(in oklab, var(--color-error) 12%, transparent); }
.form__success { color: var(--color-success); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── overlays: modal, menu, gates ─────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: rgb(6 10 13 / .66); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-base) var(--ease); overflow-y: auto; }
.overlay.is-open { opacity: 1; }
.overlay__panel { position: relative; width: min(100%, 460px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-pop); transform: translateY(16px) scale(.98); transition: transform var(--dur-base) var(--ease); }
.overlay.is-open .overlay__panel { transform: none; }
.overlay__title { font: 700 1.6rem/1.1 var(--font-display); letter-spacing: -.02em; margin: 12px 0 8px; }
.overlay__lead { color: var(--color-muted); margin-bottom: 20px; }
.overlay__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); color: var(--color-text); cursor: pointer; }
.overlay__x:hover { border-color: var(--color-brand); }
.overlay__actions { display: grid; gap: 10px; margin-top: 20px; }
.overlay__switch { margin-top: 18px; font-size: .92rem; color: var(--color-muted); text-align: center; }
.overlay__switch button, .link-btn { border: 0; background: none; color: var(--color-brand); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.overlay__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tint-brand); color: var(--color-brand); }
.overlay__icon .icon { width: 28px; height: 28px; }
.overlay__icon--warn { background: var(--tint-live); color: #FFB3B6; }

/* ── toast ────────────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: var(--radius-md); background: var(--color-text); color: var(--color-bg); box-shadow: var(--shadow-pop); transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
@media (max-width: 820px) { .toast { bottom: 88px; } }

/* ── accordion (FAQ, markets) ─────────────────────────────────────────── */
.acc { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); margin-bottom: 10px; overflow: hidden; }
.acc > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 18px; border: 0; background: none; color: var(--color-text); font: 600 1.02rem/1.35 var(--font-body); text-align: left; cursor: pointer; }
.acc > button .icon { transition: transform var(--dur-base) var(--ease); color: var(--color-brand); }
.acc > button[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc > button:hover { background: var(--surface-2); }
.acc__body > div > div { padding: 0 18px 18px; color: var(--color-muted); }
.acc__body p + p { margin-top: 10px; }
.acc__body a { color: var(--color-brand); }

/* ── breadcrumb ───────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--color-faint); }
.crumbs a { color: var(--color-muted); text-decoration: none; }
.crumbs a:hover { color: var(--color-brand); }
.crumbs .icon { width: 14px; height: 14px; }

/* ── game card ────────────────────────────────────────────────────────── */
.game { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-1); border: 1px solid var(--line); color: inherit; text-decoration: none; cursor: pointer; padding: 0; text-align: left; transition: transform var(--dur-base) var(--ease), border-color var(--dur-base); width: 100%; }
.game picture, .game img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.game:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--color-brand) 45%, transparent); }
.game:hover img { transform: scale(1.06); }
.game__b { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.game__b b { font-weight: 600; font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; overflow-wrap: break-word; }
.game__b span { margin-top: auto; padding-top: 2px; font-size: .8rem; color: var(--color-faint); }
.game__play { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--color-brand); color: var(--color-brand-ink); opacity: 0; transform: scale(.8); transition: opacity var(--dur-base), transform var(--dur-base) var(--ease); }
.game:hover .game__play, .game:focus-visible .game__play { opacity: 1; transform: none; }

/* ── stat ─────────────────────────────────────────────────────────────── */
.stat { display: grid; gap: 2px; }
.stat b { font: 700 1.6rem/1.1 var(--font-mono); letter-spacing: -.02em; }
.stat span { font-size: .82rem; color: var(--color-faint); }

/* ── shelf (horizontal scroll with snap) ──────────────────────────────── */
.shelf { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-1); color: var(--color-text); display: grid; place-items: center; cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.arrows button:hover { border-color: var(--color-brand); background: var(--surface-2); }

/* ── document pages (legal / info) ────────────────────────────────────── */
.doc-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 300px at 85% 0%, var(--tint-accent), transparent 70%); }
.doc-hero h1 { font: 700 var(--fs-h1)/1.02 var(--font-display); font-stretch: 88%; letter-spacing: -.035em; margin: 14px 0 12px; text-wrap: balance; }
.doc-hero p { color: var(--color-muted); max-width: 680px; font-size: 1.05rem; text-wrap: pretty; }
.doc-hero__meta { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 18px; font-size: .86rem; color: var(--color-faint); }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-block: 48px var(--section-y); }
.toc { position: sticky; top: 140px; align-self: start; display: grid; gap: 2px; max-height: calc(100vh - 160px); overflow: auto; scrollbar-width: thin; }
.toc a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--color-muted); font-size: .88rem; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.toc a:hover { color: var(--color-text); background: var(--surface-1); }
.toc a[aria-current="true"] { color: var(--color-text); background: var(--surface-1); box-shadow: inset 3px 0 0 var(--color-brand); }
.prose { max-width: 760px; }
.prose h2 { font: 700 var(--fs-h3)/1.2 var(--font-display); letter-spacing: -.02em; margin: 44px 0 14px; scroll-margin-top: 150px; display: flex; gap: 12px; align-items: baseline; }
.prose h2 .n { font: 700 .8rem var(--font-mono); color: var(--color-brand); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 1.08rem/1.3 var(--font-display); margin: 26px 0 10px; }
.prose p, .prose li { color: var(--color-muted); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--color-brand); border-radius: 2px; }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding-left: 32px; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; font: 700 .78rem/1.9 var(--font-mono); color: var(--color-brand); }
.prose a { color: var(--color-brand); text-underline-offset: 3px; }
/* buttons inside prose keep their own colours (the link rule above outranks .btn--*) */
.prose a.btn { text-decoration: none; }
.prose a.btn--primary { color: var(--color-brand-ink); }
.prose a.btn--line, .prose a.btn--ghost { color: var(--color-text); }
.prose code { font: .88em var(--font-mono); color: var(--color-text); }
.prose strong { color: var(--color-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--color-faint); font: 700 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.prose td { color: var(--color-muted); }
.prose td:first-child { color: var(--color-text); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); margin: 16px 0; }
.table-wrap table { margin: 0; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--tint-brand); border: 1px solid color-mix(in oklab, var(--color-brand) 30%, transparent); margin: 20px 0; color: var(--color-text); }
.callout .icon { color: var(--color-brand); margin-top: 3px; }
.callout p { color: var(--color-text); }
.callout--teal { background: var(--tint-accent); border-color: color-mix(in oklab, var(--color-accent) 40%, transparent); }
.callout--teal .icon { color: var(--color-accent-hi); }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block-start: 24px; }   /* minmax: wide tables scroll in .table-wrap instead of widening the page */
  .toc { position: static; display: flex; overflow-x: auto; max-height: none; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--line); border-radius: var(--radius-pill); }
}

/* ── steps (how it works) ─────────────────────────────────────────────── */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line); }
.step__n { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tint-brand); color: var(--color-brand); font: 700 1.1rem var(--font-mono); }
.step h2, .step h3 { font: 700 1.2rem/1.25 var(--font-display); margin: 6px 0 8px; }
.step p, .step li { color: var(--color-muted); }

/* ── help cards (RG organisations) ────────────────────────────────────── */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.help { display: grid; gap: 8px; padding: 20px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--line); }
.help b { font-size: 1.02rem; color: var(--color-text); }
.help p { font-size: .9rem; }
.help a.mono { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15rem; color: var(--color-brand); text-decoration: none; font-weight: 700; }

/* ── shared by home, sportsbook, event and casino ─────────────────────── */
.odds2, .odds3 { display: grid; gap: 8px; }
.odds2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odds3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.odds4, .odds6, .odds8 { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--color-brand); font-weight: 600; font-size: .92rem; text-decoration: none; }
.more-link .icon { transition: transform var(--dur-base) var(--ease); }
.more-link:hover .icon { transform: translateX(4px); }

.dots { display: flex; gap: 4px; }
.dots button { width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.dots button::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: rgb(255 255 255 / .45); transition: width var(--dur-base) var(--ease), background var(--dur-base); }
.dots button[aria-current="true"]::before { width: 18px; background: var(--color-brand); }

.board { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
.rail { position: sticky; top: 150px; align-self: start; display: grid; gap: 4px; }
.rail a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-md); color: var(--color-muted); font-size: .94rem; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.rail a b { font-size: .74rem; color: var(--color-faint); }
.rail a:hover, .rail a[aria-current="true"] { background: var(--surface-1); color: var(--color-text); }
.rail a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--color-brand); }
.grp { margin-bottom: 56px; scroll-margin-top: 150px; }
.grp:last-child { margin-bottom: 0; }
.mk-list { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.mk-list li { padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: .8rem; color: var(--color-muted); }
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; gap: 16px; }
  .rail { position: sticky; top: 118px; z-index: 5; display: flex; overflow-x: auto; scrollbar-width: none; padding: 8px 0; background: var(--color-bg); }
  .rail a { white-space: nowrap; border: 1px solid var(--line); border-radius: var(--radius-pill); }
}

.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.live-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; border-radius: var(--radius-lg); background: linear-gradient(180deg, color-mix(in oklab, var(--color-live) 8%, var(--surface-1)), var(--surface-1) 60%); border: 1px solid var(--line); transition: border-color var(--dur-base), transform var(--dur-base) var(--ease); }
.live-card:hover { border-color: color-mix(in oklab, var(--color-live) 40%, transparent); transform: translateY(-3px); }
.live-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .74rem; color: var(--color-faint); }
.live-card__top .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-card__teams { display: grid; gap: 6px; color: var(--color-text); text-decoration: none; font-weight: 600; }
.live-card__teams span { display: flex; justify-content: space-between; gap: 10px; }
.live-card__teams b { font-size: 1.15rem; }
.live-card__teams:hover { color: var(--color-brand); }
.live-card__status { font-size: .8rem; color: #FFC2C4; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 360px) { .game__b { padding: 10px 12px 12px; } .game__b b { font-size: .88rem; -webkit-line-clamp: 4; line-clamp: 4; } }
.game-wrap { display: flex; animation: pop var(--dur-slow) var(--ease); }
.game-shelf { grid-auto-columns: minmax(180px, 200px); margin-top: 18px; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ── betslip (includes/betslip.php, assets/js/betslip.js) ───────────────── */
.odd.is-picked { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-brand-ink); }
.odd.is-picked span { color: color-mix(in oklab, var(--color-brand-ink) 78%, transparent); }
.odd.is-picked:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover); }

.slip { position: fixed; right: 24px; bottom: 24px; z-index: calc(var(--z-tabbar) - 2); width: 372px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); overflow: hidden; }
.slip[hidden] { display: none; }
.slip__head { flex: none; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 18px; border: 0; background: var(--color-brand); color: var(--color-brand-ink); font: 700 1rem var(--font-display); text-align: left; cursor: pointer; }
.slip__head:hover { background: var(--color-brand-hover); }
.slip__head:focus-visible { outline: 3px solid var(--color-text); outline-offset: -3px; }
.slip__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 8px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-brand-ink); color: var(--color-brand); font: 700 .8rem var(--font-mono); }
.slip__sum { margin-left: auto; font-size: .92rem; }
.slip__chev { flex: none; transform: rotate(180deg); transition: transform var(--dur-base) var(--ease); }
.slip.is-open .slip__chev { transform: none; }
.slip__body { display: grid; gap: 12px; padding: 14px 16px 16px; overflow-y: auto; overscroll-behavior: contain; }

.slip__mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-0); border: 1px solid var(--line); }
.slip__mode button { min-height: 36px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-muted); font: 600 .9rem var(--font-body); cursor: pointer; }
.slip__mode button[aria-pressed="true"] { background: var(--surface-3); color: var(--color-text); }

.slip__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.slip__item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 8px; align-items: start; padding: 12px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); }
.slip__sel { min-width: 0; }
.slip__sel b { display: block; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.slip__sel span { display: block; margin-top: 2px; font-size: .82rem; color: var(--color-muted); }
.slip__sel small { display: block; margin-top: 2px; font-size: .78rem; color: var(--color-faint); }
.slip__odds { padding-top: 1px; font-size: 1rem; color: var(--color-brand); }
.slip__x { display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px 0 0; border: 0; border-radius: 50%; background: none; color: var(--color-faint); cursor: pointer; }
.slip__x:hover { background: var(--surface-3); color: var(--color-text); }
.slip__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.slip__stake { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--color-muted); }
.slip__stake--row { grid-column: 1 / -1; margin-top: 8px; }
.slip__stake small { margin-left: auto; font-size: .8rem; color: var(--color-success); }
.slip__input { display: inline-flex; align-items: center; gap: 2px; width: 124px; height: 40px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--surface-0); border: 1px solid var(--line-strong); font: 700 .95rem var(--font-mono); color: var(--color-faint); }
.slip__input:focus-within { border-color: var(--color-brand); box-shadow: var(--focus-ring); }
.slip__input input { width: 100%; min-width: 0; border: 0; background: none; color: var(--color-text); font: inherit; outline: none; }
.slip__input input::placeholder { color: var(--color-faint); }

.slip__parlay { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--tint-brand); border: 1px solid color-mix(in oklab, var(--color-brand) 30%, transparent); }
.slip__parlay[hidden] { display: none; }
.slip__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.slip__line b { font-size: 1.1rem; color: var(--color-brand); }
.slip__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.slip__quick .chip { min-height: 32px; padding: 0 12px; font: 700 .8rem var(--font-mono); }
.slip__quick .chip:hover { border-color: var(--color-brand); color: var(--color-text); }
.slip__warn { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--tint-live); color: var(--color-error); font-size: .85rem; }
.slip__tot { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: .9rem; }
.slip__tot dt { color: var(--color-muted); }
.slip__tot dd { margin: 0; text-align: right; font-weight: 700; }
.slip__tot dd:last-of-type { font-size: 1.1rem; color: var(--color-brand); }
.slip__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: .75rem; color: var(--color-faint); }
.slip__foot .link-btn { font-size: .85rem; }
.slip__tel { white-space: nowrap; }

body.has-slip .to-top { bottom: 96px; }
@media (max-width: 820px) {
  .slip { left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: calc(100dvh - 160px); border-radius: var(--radius-md); }
  .slip__head { min-height: 50px; }
  body.has-slip { padding-bottom: 130px; }
  body.has-slip .to-top { bottom: 140px; }
  body.has-slip .toast { bottom: 140px; }
}
