/* Oddalo — visual system.
   Ink-dark surfaces lit from the top-left, hairline borders, tight corners (3 / 5 / 8 px).
   Type: Schibsted Grotesk for headlines and titles, Geist for UI and big numbers,
   Geist Mono only for small data (dates, odds, axes).
   Signal lime is the brand and the YES side; vermilion is NO. */

@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0b0d;
  --bg-raise: #0e1013;
  --panel: #121418;
  --panel-2: #171a1f;
  --panel-3: #1e2228;
  --line: #22262d;
  --line-2: #2f343c;
  --line-3: #41474f;
  --text: #edeff2;
  --text-2: #a4aab4;
  --text-3: #6e747e;

  --yes: #c5f23a;
  --yes-ink: #11170a;
  --yes-tint: rgba(197, 242, 58, 0.09);
  --yes-tint-2: rgba(197, 242, 58, 0.17);
  --no: #ff5d4d;
  --no-ink: #1c0604;
  --no-tint: rgba(255, 93, 77, 0.09);
  --no-tint-2: rgba(255, 93, 77, 0.17);
  --amber: #f5b544;
  --up: #7ee08a;
  --down: #ff6b5e;

  --s1: #c5f23a; --s2: #6e9bff; --s3: #f5b544; --s4: #b48cff; --s5: #3cc8c0;

  --r-1: 3px;
  --r-2: 5px;
  --r-3: 8px;

  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-num: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-display: "Schibsted Grotesk", "Geist", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1320px;
  --gutter: 24px;
  --head-h: 60px;
  color-scheme: dark;
}
@media (max-width: 720px) { :root { --gutter: 16px; --head-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 14px/1.45 var(--f-ui); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.sheet-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--yes); outline-offset: 2px; }
#main:focus { outline: none; }
::selection { background: var(--yes); color: var(--yes-ink); }

.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.display { font-family: var(--f-display); font-weight: 640; letter-spacing: -0.005em; }
.eyebrow { font: 500 11px/1 var(--f-num); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.up { color: var(--up); }
.down { color: var(--down); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; border: 0; border-radius: var(--r-2);
  background: var(--yes); color: var(--yes-ink); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ header */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 11, 13, 0.92); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--head-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand-mark { width: 22px; height: 22px; color: var(--text); }
.brand-dot { fill: var(--yes); }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }

.search { position: relative; flex: 1; max-width: 460px; }
.search input {
  width: 100%; height: 36px; padding: 0 36px 0 34px; border-radius: var(--r-2);
  background: var(--panel); border: 1px solid var(--line); color: var(--text); outline: none;
  transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--line-3); background: var(--panel-2); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 11px var(--f-num); color: var(--text-3); border: 1px solid var(--line-2); border-radius: var(--r-1); padding: 1px 6px; }

.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 10px; border-radius: var(--r-2); color: var(--text-2); font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active { color: var(--text); }

.account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.balance { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding: 4px 10px; border-radius: var(--r-2); }
.balance:hover { background: var(--panel); }
.balance-label { font: 500 10px var(--f-num); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.balance strong { font: 600 14px var(--f-num); color: var(--yes); }
.lang { height: 32px; min-width: 36px; padding: 0 8px; border-radius: var(--r-2); border: 1px solid var(--line); background: transparent; color: var(--text-2); font: 500 11px var(--f-num); letter-spacing: .06em; }
.lang:hover { color: var(--text); border-color: var(--line-2); }

.cats { border-top: 1px solid var(--line); }
.cats-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.cats-inner::-webkit-scrollbar { display: none; }
.cat {
  position: relative; flex: none; height: 42px; padding: 0; border: 0; background: none; color: var(--text-2);
  font-weight: 500; white-space: nowrap; transition: color .15s;
}
.cat:hover { color: var(--text); }
.cat[aria-pressed="true"] { color: var(--text); }
.cat[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.cat .pulse { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--amber); vertical-align: 1px; }
.cat-sep { flex: none; width: 1px; height: 16px; align-self: center; background: var(--line-2); }

@media (max-width: 860px) {
  .nav { display: none; }
  .search { max-width: none; }
  .search kbd { display: none; }
}
@media (max-width: 560px) {
  .topbar-inner { gap: 10px; }
  .brand-word { display: none; }
  .balance-label { display: none; }
  .hide-sm { display: none !important; }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: var(--r-2); border: 1px solid transparent; font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; height: 44px; }
.btn-primary { background: var(--yes); color: var(--yes-ink); }
.btn-primary:hover { background: #d4fa5c; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-3); background: var(--panel); }
.btn-quiet { background: var(--panel-2); color: var(--text); }
.btn-quiet:hover { background: var(--panel-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-2); border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 18px; line-height: 1; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* YES / NO side buttons */
.side {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  height: 32px; padding: 0 10px; border-radius: var(--r-2); border: 1px solid transparent;
  font: 600 13px var(--f-ui); transition: background .12s, color .12s, border-color .12s, transform .08s;
}
.side:active:not(:disabled) { transform: translateY(1px); }
.side-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-price { font-family: var(--f-num); font-weight: 500; font-variant-numeric: tabular-nums; }
.side-odds { display: none; }
.side-yes { background: var(--yes-tint); color: var(--yes); }
.side-yes:hover:not(:disabled) { background: var(--yes-tint-2); }
.side-no { background: var(--no-tint); color: var(--no); }
.side-no:hover:not(:disabled) { background: var(--no-tint-2); }
.side-yes.selected { background: var(--yes); color: var(--yes-ink); }
.side-no.selected { background: var(--no); color: var(--no-ink); }
.side:disabled { background: var(--panel-2); color: var(--text-3); cursor: not-allowed; }
.side-big { height: 46px; font-size: 15px; }
.side-big .side-price { font-size: 15px; }
.side.tick-up { box-shadow: inset 0 0 0 1px var(--up); }
.side.tick-down { box-shadow: inset 0 0 0 1px var(--down); }

/* ------------------------------------------------------------------ layout */
.layout { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 64px; }
.main { min-width: 0; }
.mock-banner { margin-bottom: 16px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: var(--r-2); color: var(--amber); font: 500 12px var(--f-num); }

.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-3); font: 12px var(--f-num); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.section-head > div { display: flex; align-items: baseline; }
.section-head h2 { font-family: var(--f-display); font-weight: 640; font-size: 24px; letter-spacing: -0.005em; }
.section-head .count { font: 500 12px var(--f-num); color: var(--text-3); margin-left: 8px; }
.page-title { font-family: var(--f-display); font-weight: 650; font-size: 34px; letter-spacing: -0.01em; margin-bottom: 20px; }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); }
.notice-error { border-color: rgba(255, 93, 77, .35); color: #ffb3aa; }
.notice-muted { font-size: 13px; }
.empty { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: var(--text-2); }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.skeleton { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-3); border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* category tile: a glyph in a tinted square */
.tile { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-2); background: var(--tile-bg, var(--panel-3)); color: var(--tile-fg, var(--text)); }
.tile svg { width: 20px; height: 20px; }
.tile-lg { width: 56px; height: 56px; border-radius: var(--r-3); }
.tile-lg svg { width: 28px; height: 28px; }

.delta { font: 500 12px var(--f-num); white-space: nowrap; }
.delta::before { font-size: 9px; margin-right: 3px; vertical-align: 1px; }
.delta.up::before { content: "▲"; }
.delta.down::before { content: "▼"; }

.meter { position: relative; height: 2px; margin-top: 5px; background: var(--line); border-radius: 1px; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--meter, var(--yes)); border-radius: 1px; transition: width .4s ease; }

.countdown { font: 500 11.5px var(--f-num); color: var(--text-3); white-space: nowrap; }
.countdown.soon { color: var(--amber); }
.countdown.soon::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--amber); animation: blink 1.6s infinite; vertical-align: 1px; }
@keyframes blink { 50% { opacity: .25; } }

/* ------------------------------------------------------------------ home: hero */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
@media (max-width: 1080px) { .home-top { grid-template-columns: 1fr; } }

.feature { padding: 22px 24px 18px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 8px 28px; min-height: 420px; }
.feature-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.feature-head .eyebrow { display: block; margin-bottom: 6px; }
.feature-title { font-family: var(--f-display); font-weight: 650; font-size: 30px; line-height: 1.05; letter-spacing: -0.01em; }
.feature-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feature-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.feature-nav .pos { font: 500 12px var(--f-num); color: var(--text-3); min-width: 44px; text-align: center; }
.feature-list { display: flex; flex-direction: column; padding-top: 8px; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .lbl { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-row .mult { font: 12px var(--f-num); color: var(--text-3); }
.feature-row .pct { font-family: var(--f-display); font-weight: 650; font-size: 22px; min-width: 54px; text-align: right; }
.feature-chart { min-width: 0; display: flex; flex-direction: column; }
.feature-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.feature-foot .sides { margin-left: auto; display: flex; gap: 8px; }
.feature-foot .sides .side { min-width: 120px; height: 36px; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; padding: 18px 16px; }
  .feature-title { font-size: 25px; }
  .feature-foot { flex-wrap: wrap; }
  .feature-foot .sides { width: 100%; margin: 0; }
  .feature-foot .sides .side { flex: 1; min-width: 0; }
}

.rail { display: flex; flex-direction: column; gap: 16px; }
.rail .rail-box:last-child { flex: 1; }
.rail-box { padding: 16px 18px 6px; }
.rail-box h3 { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rail-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rail-item:last-child { border-bottom: 0; }
.rail-item:hover .rail-t { color: var(--text); }
.rail-n { font: 500 12px var(--f-num); color: var(--text-3); }
.rail-t { display: block; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.rail-s { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-v { text-align: right; }
.rail-v strong { display: block; font: 600 14px var(--f-num); }

/* ------------------------------------------------------------------ home: grid of cards */
.toolbar { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; padding: 2px; border-radius: var(--r-2); background: var(--panel); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-1); background: transparent; color: var(--text-2); font: 500 12px var(--f-num); letter-spacing: .02em; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 880px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

.mcard { display: flex; flex-direction: column; min-height: 196px; padding: 14px 14px 10px; transition: border-color .15s, background .15s; }

.mcard-head { display: flex; gap: 11px; align-items: flex-start; min-height: 40px; }
.mcard-title { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-title:hover { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.mcard-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 0 6px; gap: 2px; }
.mcard-foot { display: flex; align-items: center; gap: 10px; padding-top: 9px; border-top: 1px solid var(--line); min-height: 30px; }
.mcard-foot .eyebrow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard-foot .countdown { margin-left: auto; flex: none; }

.orow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 5px 0; }
.orow .lbl { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow .pct { font: 600 14px var(--f-num); min-width: 40px; text-align: right; }
.orow .sides { display: flex; gap: 4px; }
.orow .side { height: 26px; padding: 0 8px; font-size: 12px; }
.orow .side .side-price { display: none; }
.orow.is-off { opacity: .5; }
.more { font: 500 11.5px var(--f-num); color: var(--text-3); padding-top: 4px; }

/* binary card: a dial echoing the brand ring */
.binary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.dial { position: relative; width: 66px; height: 66px; flex: none; }
.dial svg { width: 66px; height: 66px; transform: rotate(-90deg); }
.dial .track { stroke: var(--line-2); }
.dial .val { transition: stroke-dashoffset .5s ease; }
.dial b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 15px var(--f-num); }
.dial small { position: absolute; left: 0; right: 0; bottom: -15px; text-align: center; font: 500 10px var(--f-num); letter-spacing: .06em; color: var(--text-3); text-transform: uppercase; }
.binary .sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.binary .sides .side { height: 38px; }

/* two named sides (team vs team) */
.duel { display: flex; flex-direction: column; gap: 8px; }
.duel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.duel-row .lbl { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-row .pct { font: 600 14px var(--f-num); }
.duel .sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.duel .sides .side { height: 36px; }
.duel .sides .side-price { display: inline; }

/* ------------------------------------------------------------------ charts */
.chart { position: relative; width: 100%; min-height: 220px; flex: 1; user-select: none; }
.chart svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 1 4; }
.chart .axis { fill: var(--text-3); font: 11px var(--f-num); }
.chart .series { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .07; }
.chart .end-dot { stroke: var(--bg); stroke-width: 2; }
.chart .halo { opacity: .25; animation: halo 2s infinite ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(1); opacity: .35; } to { transform: scale(3.2); opacity: 0; } }
.chart .end-label { font: 650 16px var(--f-display); }
.chart .end-name { font: 500 11px var(--f-ui); fill: var(--text-2); }
.chart .cross { stroke: var(--line-3); stroke-width: 1; }
.chart .watermark { fill: var(--text-3); opacity: .5; font: 700 15px var(--f-display); letter-spacing: -0.01em; }
.chart-tip { position: absolute; top: 0; pointer-events: none; padding: 8px 10px; border-radius: var(--r-2); background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); font: 12px var(--f-num); white-space: nowrap; z-index: 2; }
.chart-tip .when { color: var(--text-3); margin-bottom: 4px; }
.chart-tip .r { display: flex; align-items: center; gap: 8px; }
.chart-tip .r i { width: 8px; height: 2px; border-radius: 1px; }
.chart-empty { display: grid; place-items: center; min-height: 220px; color: var(--text-3); font: 12px var(--f-num); }

.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend b { font: 600 12.5px var(--f-num); color: var(--text); }

/* ------------------------------------------------------------------ market page */
.mpage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 1080px) { .mpage { grid-template-columns: 1fr; } }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font: 500 12px var(--f-num); color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }
.crumbs a:hover { color: var(--text); }
.mhead { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.mhead h1 { font-family: var(--f-display); font-weight: 650; font-size: 36px; line-height: 1.02; letter-spacing: -0.012em; }
.mhead .eyebrow { display: block; margin-bottom: 7px; }
.mstat { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.mstat .big { font-family: var(--f-display); font-weight: 650; font-size: 40px; line-height: 1; color: var(--yes); }
.mstat .big-lbl { font-size: 14px; color: var(--text-2); }
.mchart { height: 320px; display: flex; margin-top: 6px; }
.mchart .chart { min-height: 0; }
.chart-bar { display: flex; align-items: center; gap: 12px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.chart-bar .seg { margin-left: auto; }

.otable { margin-top: 4px; }
.otable-h { display: grid; grid-template-columns: minmax(0, 1fr) 130px 280px; gap: 16px; padding: 12px 0 8px; border-bottom: 1px solid var(--line); }
.otr { display: grid; grid-template-columns: minmax(0, 1fr) 130px 280px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.otr.is-current { box-shadow: inset 2px 0 0 var(--yes); padding-left: 12px; margin-left: -12px; }
.otr .lbl { font-weight: 500; font-size: 15px; }
.otr .lbl small { display: block; margin-top: 3px; font: 12px var(--f-num); color: var(--text-3); }
.otr .chance { display: flex; align-items: baseline; gap: 8px; }
.otr .chance strong { font-family: var(--f-display); font-weight: 650; font-size: 26px; }
.otr .sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.otr .sides .side { height: 40px; }
.otr.is-off { opacity: .55; }
@media (max-width: 720px) {
  .otable-h { display: none; }
  .otr { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .otr .sides { grid-column: 1 / -1; }
  .mhead h1 { font-size: 28px; }
  .mchart { height: 240px; }
}

.details { margin-top: 32px; }
.details h2 { font-family: var(--f-display); font-weight: 640; font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 0; }
.dl div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.dl dt { font: 500 11px var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.dl dd { margin: 0; font: 500 14px var(--f-num); }
.details p { margin-top: 14px; color: var(--text-2); max-width: 70ch; line-height: 1.6; }

/* ------------------------------------------------------------------ ticket (bet slip) */
.slip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); }
.slip-in { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slip-head h2 { font: 500 11px var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.slip-q { display: flex; gap: 12px; align-items: center; }
.slip-q .tile { width: 40px; height: 40px; }
.slip-q span { display: block; }
.slip-q .ev { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip-q .mk { font-family: var(--f-display); font-weight: 650; font-size: 19px; line-height: 1.1; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 3px; border-radius: var(--r-2); background: var(--bg-raise); border: 1px solid var(--line); }
.pick button { height: 40px; border: 0; border-radius: var(--r-1); background: transparent; color: var(--text-2); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pick button .num { font-weight: 500; }
.pick button:hover:not(:disabled) { color: var(--text); }
.pick .pk-yes[aria-pressed="true"] { background: var(--yes); color: var(--yes-ink); }
.pick .pk-no[aria-pressed="true"] { background: var(--no); color: var(--no-ink); }
.pick button:disabled { opacity: .4; cursor: not-allowed; }
.label { display: block; font: 500 11px var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.stake-wrap { position: relative; }
.stake-wrap input { width: 100%; height: 54px; padding: 0 14px 0 30px; border-radius: var(--r-2); background: var(--bg-raise); border: 1px solid var(--line-2); color: var(--text); font: 600 24px var(--f-num); text-align: right; outline: none; }
.stake-wrap input:focus { border-color: var(--line-3); }
.stake-wrap input::placeholder { color: var(--text-3); }
.stake-cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 500 16px var(--f-num); color: var(--text-3); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.quick button { height: 30px; border-radius: var(--r-1); border: 1px solid var(--line); background: transparent; color: var(--text-2); font: 500 12px var(--f-num); }
.quick button:hover { color: var(--text); border-color: var(--line-2); background: var(--panel-2); }
.sum { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--text-2); }
.sum-row strong { font: 600 13px var(--f-num); color: var(--text); }
.sum-row.big strong { font-family: var(--f-display); font-size: 28px; font-weight: 650; color: var(--yes); }
.slip-note { font-size: 13px; color: #ffb3aa; }
.slip-note.warn { color: var(--amber); }
.slip-deposit { font-size: 13px; color: var(--yes); text-decoration: underline; text-underline-offset: 3px; }
.slip-fine { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.slip-empty { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 13px; }

.mpage .slip-col { position: sticky; top: calc(var(--head-h) + 60px); }
.slip-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(0, 0, 0, .55); }
.slip.drawer { position: fixed; z-index: 50; top: calc(var(--head-h) + 52px); right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: 360px; max-height: calc(100vh - var(--head-h) - 72px); overflow: auto; box-shadow: 0 24px 64px rgba(0, 0, 0, .6); animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateY(-6px); opacity: 0; } }
@media (max-width: 1080px) {
  .mpage .slip-col { position: static; }
  .slip.drawer, .mpage .slip.sheet { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 88vh; border-radius: var(--r-3) var(--r-3) 0 0; border-bottom: 0; animation: rise .2s ease-out; z-index: 50; }
  @keyframes rise { from { transform: translateY(24px); opacity: 0; } }
  .mpage .slip-col .slip:not(.sheet) { display: none; }
}

/* ------------------------------------------------------------------ bets */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { position: relative; height: 40px; padding: 0; border: 0; background: none; color: var(--text-2); font-weight: 500; }
.tabs button[aria-pressed="true"] { color: var(--text); }
.tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.tabs .n { font: 500 11px var(--f-num); color: var(--text-3); margin-left: 6px; }

.bets { display: flex; flex-direction: column; }
.bet { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 110px) 96px; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.bet:last-child { border-bottom: 0; }
.bet-title { font-weight: 600; }
.bet-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.bet-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; font: 12px var(--f-num); color: var(--text-3); }
.bet-cell span { display: block; font: 500 10.5px var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.bet-cell strong { font: 600 14px var(--f-num); }
.bet-cell strong.pos { color: var(--yes); }
.bets-head { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 110px) 96px; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
@media (max-width: 820px) {
  .bets-head { display: none; }
  .bet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bet > :first-child { grid-column: 1 / -1; }
  .bet > .badge-cell { grid-column: 1 / -1; }
}
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-1); font: 600 11px var(--f-num); letter-spacing: .04em; text-transform: uppercase; }
.pill-yes { background: var(--yes-tint-2); color: var(--yes); }
.pill-no { background: var(--no-tint-2); color: var(--no); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-1); font: 500 11px var(--f-num); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2); }
.badge-won { border-color: transparent; background: var(--yes-tint-2); color: var(--yes); }
.badge-lost { border-color: transparent; background: var(--no-tint); color: var(--no); }
.badge-open { color: var(--text); }

/* ------------------------------------------------------------------ wallet */
.wallet { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .wallet { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat span { display: block; font: 500 11px var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.stat strong { font: 600 20px var(--f-num); }
.stat-main strong { font-family: var(--f-display); font-weight: 650; font-size: 40px; line-height: 1; color: var(--yes); letter-spacing: -0.01em; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-main { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
}
.cashier { margin-top: 20px; }
.cashier .tabs { padding: 0 18px; margin: 0; }
.cashier-panel { padding: 18px; }
.cashier-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cashier-frame { display: block; width: 100%; height: 680px; border: 1px solid var(--line); border-radius: var(--r-2); background: #fff; }
.side-box { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.side-box h3 { font-size: 14px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 11px var(--f-num); color: var(--text-3); padding-top: 2px; }

/* ------------------------------------------------------------------ auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 920px; margin: 24px auto 0; overflow: hidden; }
.auth-side { padding: 36px; background: var(--bg-raise); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.auth-side h2 { font-family: var(--f-display); font-weight: 650; font-size: 34px; line-height: 1.02; letter-spacing: -0.01em; }
.auth-side h2 em { font-style: normal; color: var(--yes); }
.auth-ticker { display: flex; flex-direction: column; gap: 10px; }
.auth-ticker div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.auth-ticker div strong { font: 600 13px var(--f-num); color: var(--text); }
.auth-card { padding: 36px; display: flex; flex-direction: column; gap: 6px; }
.auth-card h1 { font-family: var(--f-display); font-weight: 650; font-size: 30px; margin-bottom: 18px; }
.auth-card input[type="email"], .auth-card input[type="password"] {
  width: 100%; height: 44px; padding: 0 12px; margin-bottom: 14px; border-radius: var(--r-2);
  background: var(--bg-raise); border: 1px solid var(--line-2); color: var(--text); outline: none;
}
.auth-card input:focus { border-color: var(--line-3); }
.auth-card #pw-hint { margin: -8px 0 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--yes); width: 16px; height: 16px; margin: 1px 0 0; }
.form-error { padding: 10px 12px; margin-bottom: 12px; border-radius: var(--r-2); background: var(--no-tint); color: #ffb3aa; font-size: 13px; }
.auth-card .muted.small { margin-top: 14px; }
.auth-card a { color: var(--yes); }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; margin-top: 0; }
  .auth-side { display: none; }
  .auth-card { padding: 24px 18px; }
}

/* ------------------------------------------------------------------ toasts */
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 10px 14px; border-radius: var(--r-2); background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); font-size: 13px; transition: opacity .3s, transform .3s; }
.toast-ok { border-left: 2px solid var(--yes); }
.toast-error { border-left: 2px solid var(--no); }
.toast.out { opacity: 0; transform: translateY(6px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ v2: event page modules */
.mhead { align-items: flex-start; }
.mhead-meta { margin-top: 8px; }
.mhead-meta .countdown { font-size: 12.5px; }
.mhead-actions { display: flex; gap: 6px; padding-top: 4px; }

.msticky { position: fixed; left: 0; right: 0; top: var(--head-h); z-index: 35; background: var(--bg); border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .18s, transform .18s; }
.msticky.on { opacity: 1; transform: none; pointer-events: auto; }
.msticky-in { display: flex; align-items: center; gap: 12px; height: 56px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.msticky .tile { width: 30px; height: 30px; }
.msticky .tile svg { width: 16px; height: 16px; }
.msticky-t { flex: 1; min-width: 0; font-family: var(--f-display); font-weight: 650; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msticky strong { font-size: 15px; color: var(--yes); }

.osec { margin-top: 8px; }
.osec + .osec { margin-top: 28px; }
.osec-h { font-family: var(--f-display); font-weight: 640; font-size: 21px; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.otr { cursor: pointer; border-radius: var(--r-2); margin: 0 -12px; padding: 14px 12px; border-bottom-color: transparent; box-shadow: inset 0 -1px 0 var(--line); transition: background .12s; }
.otr:hover, .otr.open { background: var(--panel); }
.otr.is-current { box-shadow: inset 2px 0 0 var(--yes), inset 0 -1px 0 var(--line); padding-left: 12px; margin-left: -12px; }
.otr.is-picked .lbl-t { color: var(--yes); }
.otr .lbl { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; }
.otr .lbl .dot { width: 8px; height: 8px; border-radius: 50%; }
.otr .lbl small { grid-column: 1 / -1; }
.otr .lbl .dot + .lbl-t + small { grid-column: 2; }
.otr .lbl:not(:has(.dot)) { grid-template-columns: 1fr; }
.xpanel { margin: 0 -12px 10px; padding: 14px 12px 16px; background: var(--panel); border-radius: 0 0 var(--r-2) var(--r-2); border-top: 1px solid var(--line); }
.xgrid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
.xchart { height: 190px; display: flex; }
.xchart .chart { min-height: 0; }
.xstats { margin: 0; display: grid; gap: 0; align-content: start; }
.xstats div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.xstats dt { font-size: 12.5px; color: var(--text-3); }
.xstats dd { margin: 0; font: 600 13px var(--f-num); }
.xq { margin-top: 12px; font-size: 13px; color: var(--text-2); }
@media (max-width: 720px) { .xgrid { grid-template-columns: 1fr; } }
.show-more { display: block; margin: 12px auto 0; padding: 8px 14px; border: 0; background: none; color: var(--text-2); font-weight: 500; }
.show-more:hover { color: var(--text); }
.show-more::after { content: " ⌄"; }

.details .tabs { margin-bottom: 14px; }
.rules-body p { margin-top: 0; margin-bottom: 12px; color: var(--text-2); line-height: 1.65; max-width: 72ch; }
.rules-body.collapsed p:nth-child(n+2) { display: none; }
.link-btn { padding: 0; border: 0; background: none; color: var(--text); font-weight: 600; margin-bottom: 18px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.side-col { display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--head-h) + 76px); }
.mpage .side-col .slip-col { position: static; }
.related { padding: 0 4px; }
.related h3 { margin-bottom: 8px; }
.rel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rel:last-child { border-bottom: 0; }
.rel .tile { width: 34px; height: 34px; }
.rel-t { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel:hover .rel-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.rel strong { font-size: 14px; }
@media (max-width: 1080px) { .side-col { position: static; } }

/* hero dots */
.dots { display: inline-flex; gap: 5px; align-items: center; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--line-3); transition: width .2s, background .2s; }
.dots button.on { width: 18px; background: var(--text); }

/* scoreboard strip */
.board { margin-bottom: 18px; }
.board-head { margin-bottom: 8px; }
.board-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 2px; }
.board-row::-webkit-scrollbar { display: none; }
.bcard { flex: none; width: 196px; scroll-snap-align: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--panel); transition: border-color .15s; }
.bcard:hover { border-color: var(--line-3); }
.bwhen { display: block; margin-bottom: 7px; font: 500 11px var(--f-num); color: var(--text-3); }
.bwhen.soon { color: var(--amber); }
.bt { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--text-2); }
.bt.lead { color: var(--text); }
.bt .bt-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt .num { font-weight: 600; }

/* back to top + bottom nav */
.to-top { position: fixed; z-index: 45; left: 50%; bottom: 24px; transform: translateX(-50%); height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--text); font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.to-top::after { content: " ↑"; }
.bottomnav { display: none; }
@media (max-width: 720px) {
  .bottomnav { position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(10, 11, 13, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--text-3); font-size: 10.5px; font-weight: 500; }
  .bottomnav svg { width: 20px; height: 20px; }
  .bottomnav .active { color: var(--text); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .slip.drawer, .mpage .slip.sheet { bottom: 0; z-index: 50; }
  .msticky-in { height: 50px; }
}

/* ================================================================== v3: light, glass and type
   One light source for the whole site, up and to the left. Every module catches it the same way:
   a brighter top-left edge on the border, a faint wash in the corner and a 1px highlight on top.
   Market modules take the light in their category's colour (--tint), so a crypto card glows amber
   and a sports card glows blue. Under the pointer the light follows the cursor along the edge.
   Floating layers (top bar, sticky bar, ticket drawer, tooltips, bottom nav) are frosted glass. */

:root {
  --text-2: #b4bac3;
  --text-3: #8a919b;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --edge: rgba(255, 255, 255, 0.055);
  --glass: rgba(14, 16, 19, 0.66);
  --glass-line: rgba(255, 255, 255, 0.08);
  --blur: blur(22px) saturate(170%);
}

/* ambient light behind everything, so glass has something to bend */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -12%, rgba(197, 242, 58, 0.055), transparent 62%),
    radial-gradient(800px 520px at 96% -18%, rgba(110, 155, 255, 0.06), transparent 60%),
    var(--bg);
}
body { background: transparent; isolation: isolate; }

/* ---- lit surfaces */
.card, .slip, .bcard, .xpanel {
  --tint: rgba(255, 255, 255, 0.5);
  position: relative; isolation: isolate;
  border: 1px solid transparent;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tint) 6%, transparent), transparent 52%) padding-box,
    linear-gradient(180deg, #131518 0%, #0e1013 100%) padding-box,
    linear-gradient(155deg, color-mix(in srgb, var(--tint) 42%, transparent) 0%, var(--edge) 26%, rgba(255, 255, 255, 0.035) 72%, rgba(255, 255, 255, 0.07) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 1px 0 rgba(0, 0, 0, 0.5), 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}
.xpanel { border-radius: 0 0 var(--r-2) var(--r-2); border-top: 1px solid var(--line); }
.auth-side { background: rgba(0, 0, 0, 0.18); }

/* pointer light: a soft pool on the surface and a bright arc on the edge */
.mcard::before, .bcard::before, .feature::before, .rail-box::before,
.mcard::after, .bcard::after, .feature::after, .rail-box::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.mcard::before, .bcard::before, .feature::before, .rail-box::before {
  z-index: -1;
  background: radial-gradient(320px circle at var(--mx, 30%) var(--my, 0%), color-mix(in srgb, var(--tint) 7%, transparent), transparent 65%);
}
.mcard::after, .bcard::after, .feature::after, .rail-box::after {
  padding: 1px;
  background: radial-gradient(200px circle at var(--mx, 30%) var(--my, 0%), color-mix(in srgb, var(--tint) 75%, white), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.mcard:hover::before, .bcard:hover::before, .feature:hover::before, .rail-box:hover::before,
.mcard:hover::after, .bcard:hover::after, .feature:hover::after, .rail-box:hover::after { opacity: 1; }
.mcard, .bcard { transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s; }
.mcard:hover, .bcard:hover { transform: translateY(-2px); background-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.5), 0 24px 44px -22px rgba(0, 0, 0, 0.95); }

/* the featured market: its light is stronger and comes in from the corner of its category */
.feature { --tint-strength: 12%; }
.feature { background:
    radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--tint) 11%, transparent), transparent 60%) padding-box,
    radial-gradient(60% 70% at 100% 100%, rgba(255, 255, 255, 0.025), transparent 70%) padding-box,
    linear-gradient(180deg, #131518 0%, #0d0f12 100%) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--tint) 60%, transparent) 0%, var(--edge) 30%, rgba(255, 255, 255, 0.035) 70%, rgba(255, 255, 255, 0.08) 100%) border-box; }

/* games about to start: light runs around the border */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.bcard.is-soon { background:
    linear-gradient(180deg, #131518, #0e1013) padding-box,
    conic-gradient(from var(--sweep), transparent 0deg, rgba(245, 181, 68, 0.85) 40deg, transparent 90deg, transparent 360deg) border-box,
    linear-gradient(var(--edge), var(--edge)) border-box;
  animation: sweep 4s linear infinite; }
@keyframes sweep { to { --sweep: 360deg; } }

/* ---- glass */
.topbar { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--glass-line); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4); }
.cats { border-top-color: var(--glass-line); }
.msticky { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom-color: var(--glass-line); }
.slip.drawer, .slip.sheet, .chart-tip, .toast, .to-top {
  background: linear-gradient(180deg, rgba(30, 33, 38, 0.78), rgba(18, 20, 24, 0.84));
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px -12px rgba(0, 0, 0, 0.7);
}
.toast-ok { border-left: 2px solid var(--yes); }
.toast-error { border-left: 2px solid var(--no); }
@media (max-width: 720px) { .bottomnav { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-top-color: var(--glass-line); } }
.search input { background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.search input:focus { background: rgba(255, 255, 255, 0.06); border-color: var(--line-3); }

/* inputs and segmented controls sit "into" the surface: inner shadow instead of a lighter fill */
.seg, .pick, .stake-wrap input, .auth-card input[type="email"], .auth-card input[type="password"] {
  background: rgba(0, 0, 0, 0.28); border-color: var(--line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }

/* buttons catch the same light */
.btn-primary { background: linear-gradient(180deg, #d3fb55, #b9e62e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 1px rgba(197, 242, 58, 0.4), 0 6px 22px -8px rgba(197, 242, 58, 0.55); }
.btn-primary:hover { background: linear-gradient(180deg, #ddff70, #c5f23a); }
.btn-ghost { background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.side-yes.selected, .pick .pk-yes[aria-pressed="true"] { background: linear-gradient(180deg, #d3fb55, #bbe830); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 16px -6px rgba(197, 242, 58, 0.6); }
.side-no.selected, .pick .pk-no[aria-pressed="true"] { background: linear-gradient(180deg, #ff7566, #f24d3c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 16px -6px rgba(255, 93, 77, 0.6); }
.side-yes, .side-no { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }

/* category tile: a small lit chip */
.tile { background: linear-gradient(160deg, var(--tile-bg, var(--panel-3)), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }

/* ================================================================== type hierarchy
   Four steps, each clearly apart from the next:
   display 34  · page / event title          Schibsted 700
   title   21  · section heads                Schibsted 650
   heading 15.5· card and module titles       Schibsted 600
   body    14.5· UI text                      Geist 400
   meta    12.5· labels, sources, timestamps  Geist 500, sentence case
   Big numbers use Geist 600 with tabular figures so they do not jitter as prices move. */
body { font-size: 14.5px; line-height: 1.5; }

.page-title, .mhead h1, .auth-side h2, .auth-card h1 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
.mhead h1 { font-size: 34px; text-wrap: balance; }
.page-title { font-size: 32px; }
.feature-title { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.022em; text-wrap: balance; }
.auth-side h2 { font-size: 32px; }
.auth-card h1 { font-size: 26px; }
.section-head h2, .details h2, .osec-h { font-family: var(--f-display); font-weight: 650; font-size: 21px; letter-spacing: -0.018em; line-height: 1.2; }
.osec-h { padding: 10px 0 12px; }
.mcard-title { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; line-height: 1.3; letter-spacing: -0.008em; }
.rail-box h3, .side-box h3, .related h3, .slip-head h2 { font-family: var(--f-display); font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; text-transform: none; color: var(--text); }
.related h3.eyebrow { font: 650 15.5px/1.3 var(--f-display); letter-spacing: -0.01em; color: var(--text); text-transform: none; }
.msticky-t { font-family: var(--f-display); font-weight: 650; font-size: 17px; letter-spacing: -0.015em; }
.slip-q .mk { font-family: var(--f-display); font-weight: 650; font-size: 17px; letter-spacing: -0.015em; line-height: 1.2; }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.04em; }
.otr .lbl, .feature-row .lbl { font-size: 15px; font-weight: 550; }
.rail-t { font-size: 13.5px; }
.rel-t { font-size: 13.5px; }

/* meta: readable sentence case instead of tiny uppercase mono */
.eyebrow, .label, .dl dt, .stat span, .bet-cell span, .crumbs, .balance-label, .bwhen {
  font-family: var(--f-ui); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3); line-height: 1.35;
}
.crumbs { margin-bottom: 14px; }
.crumbs a { color: var(--text-2); }
.label { margin-bottom: 8px; color: var(--text-2); }
.balance-label { font-size: 11px; }
.bwhen.soon { color: var(--amber); }
.countdown { font-family: var(--f-ui); font-size: 12.5px; }

/* big numbers */
.mstat .big, .feature-row .pct, .otr .chance strong, .sum-row.big strong, .stat-main strong {
  font-family: var(--f-ui); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.035em;
}
.mstat .big { font-size: 40px; }
.feature-row .pct { font-size: 22px; }
.otr .chance strong { font-size: 24px; }
.chart .end-label { font: 650 15px var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.chart .watermark { font: 800 15px var(--f-display); letter-spacing: -0.04em; }

@media (max-width: 720px) {
  .mhead h1 { font-size: 27px; }
  .feature-title { font-size: 23px; }
  .page-title { font-size: 27px; }
  .section-head h2, .details h2, .osec-h { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .mcard:hover, .bcard:hover { transform: none; } }
