* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  font-family: Rubik, sans-serif;
  color: #FFFFFF;
  background: #000000;
  font-variant-numeric: tabular-nums;
  --border: #2A2440;
  --purple: #8F6BFF;
  --lilac: #B49BFF;
  --muted: #8A8A9A;
}
body { margin: 0; }
[hidden] { display: none !important; }
button, input, summary { font: inherit; }
button, input { border: 1.5px solid var(--border); border-radius: 10px; }
button { color: #FFFFFF; background: #000000; padding: 10px 14px; cursor: pointer; }
button:hover { border-color: var(--purple); }
button:disabled { opacity: .45; cursor: default; }
button[aria-pressed="true"] { background: var(--lilac); color: #000000; }
a { color: #C9B8FF; text-decoration: none; }
b, strong { font-weight: 700; }
small { color: var(--muted); font-size: 11px; }
p { line-height: 1.6; }
h1, h2 { font-size: 20px; margin: 16px 0; }
input { width: 100%; min-width: 0; background: #000000; padding: 12px; color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.topbar, main, body > .notice { max-width: 1150px; margin: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; }
.brand { color: #FFFFFF; font-size: 23px; font-weight: 700; }
.account-menu { position: relative; font-size: 13px; }
.account-menu summary { border: 1.5px solid var(--purple); border-radius: 999px; padding: 12px; }
.account-menu form { position: absolute; right: 0; z-index: 10; width: 260px; background: #000; }
.account-menu form { border: 1.5px solid var(--border); border-radius: 10px; padding: 16px; }
.account-menu input { margin: 12px 0; }
.notice { color: var(--muted); font-size: 12px; padding: 6px 0 14px; }
.game { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: 24px 30px; }
.pitch-panel, aside { min-width: 0; }
.intro { color: #C9B8FF; font-size: 15px; margin: 0 0 22px; }
.intro b, .sentence-box b { color: #FFFFFF; }
.match-strip { display: flex; gap: 8px; align-items: center; width: 100%; font-size: 12px; }
.match-strip img { width: 22px; height: 22px; object-fit: contain; }
.match-strip small { margin-left: auto; }
.team { overflow-wrap: anywhere; }
.score { white-space: nowrap; }
.club-placeholder { width: 12px; height: 12px; border: 1px solid var(--purple);
  border-radius: 50%; }
.segmented, .selections, .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.segmented button, .selections button, .chips button { border-radius: 999px; font-size: 12px; }
.selections button { display: flex; align-items: center; gap: 8px; }
.score-head, .score-line { display: flex; align-items: center; justify-content: space-between; }
.score-head { margin: 20px 0 12px; font-size: 12px; }
.score-head p { margin: 0; }
.score-line { justify-content: flex-start; gap: 8px; }
#scoreboard { font-size: 28px; font-weight: 700; }
#liquidity, .up { color: #5BE3A5; }
.down, .error { color: #E8507A; }
.chart-wrap { height: 360px; position: relative; }
#chart { width: 100%; height: 100%; }
.chart-status { position: absolute; top: 40%; width: 100%; text-align: center;
  color: var(--muted); }
.chart-status { pointer-events: none; }
.chart-tools { display: flex; align-items: center; justify-content: space-between; }
.chart-tools > button { border: 0; font-size: 23px; padding-left: 0; }
.panel { border: 1.5px solid var(--border); border-radius: 10px; padding: 20px; }
#slip { border: 0; padding: 0; }
.quick-switch { display: flex; gap: 10px; }
.quick-switch button { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.field-label { display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; }
.field-label { margin: 22px 0 12px; gap: 12px; }
.field-label small { font-weight: 400; text-align: right; }
.directions { display: flex; gap: 12px; }
.direction { flex: 1; position: relative; padding: 20px 10px; }
.direction strong { display: block; font-size: 12px; margin-top: 8px; }
.direction small { color: #5BE3A5; display: block; }
.chain-add { border-radius: 50%; padding: 4px 10px; margin-top: 10px; }
.rounds { display: flex; flex-wrap: wrap; gap: 6px; }
.countdown, #slip-history, #slip-status, #speed-sentence { font-size: 11px; color: var(--muted); }
.stake-input { position: relative; }
.stake-input input { padding-right: 75px; }
.stake-input button { position: absolute; right: 5px; top: 5px; padding: 7px 14px; }
.stake-input button { color: #000000; background: var(--lilac); border-radius: 999px; }
.result { display: flex; align-items: center; gap: 12px; min-height: 90px; padding: 16px; }
.result { border-radius: 10px; background: var(--lilac); color: #000000; margin-top: 20px; }
.result > span { margin-right: auto; font-size: 13px; font-weight: 700; }
.result b { font-size: 20px; }
.result small { display: block; color: #2A2440; text-align: right; }
.primary { width: 100%; border-color: var(--purple); border-radius: 999px; font-weight: 700; }
.primary:hover { background: var(--lilac); color: #000000; }
.overview-link { display: block; text-align: center; font-size: 11px; margin-top: 18px; }
.sentence-box { border: 1.5px solid var(--purple); border-radius: 10px;
  padding: 15px; }
.sentence-box { color: #C9B8FF; text-align: center; grid-column: 1; position: relative; }
#trade-sentence { padding-top: 20px; }
.sentence-box small { display: block; font-size: 10px; }
.slippage { text-align: right; font-size: 11px; }
.slippage summary { display: inline-block; border: 1.5px solid var(--border); }
.slippage summary { padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.slippage[open] { padding: 10px; background: #000000; }
.text-button { border: 0; color: #C9B8FF; font-size: 11px; }
#share-link { display: block; margin-left: auto; }
.bets-panel { grid-column: 1 / -1; border: 0; padding: 0; margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
[data-claim], [data-claim-all] { background: var(--lilac); color: #000000; border-radius: 999px; }
nav { display: flex; gap: 24px; margin: 24px 0; font-size: 13px; }
nav a[aria-current] { color: #FFFFFF; }
.muted, .empty { color: var(--muted); }
:is(.bets-panel, #page, #statement-page) table { width: 100%; border-collapse: collapse; font-size: 12px; }
:is(.bets-panel, #page, #statement-page) :is(th, td) { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--border); }
:is(.bets-panel, #page, #statement-page) th { color: var(--muted); font-weight: 400; }
.round-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 2px; }
.round-dot { background: var(--muted); }
.round-dot.rise, .round-dot.fall { background: #5BE3A5; }
.round-dot.lost { background: #E8507A; }
dialog { background: #000000; color: #FFFFFF; border: 1.5px solid var(--purple); }
dialog { border-radius: 10px; width: min(700px, 95vw); }
dialog::backdrop { background: #000000CC; }
.picker-match { display: flex; width: 100%; gap: 8px; align-items: center; margin: 8px 0; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; }
#toast { background: #000000; border: 1.5px solid var(--purple); border-radius: 10px;
  padding: 15px; }
#toast { width: min(90vw, 500px); font-size: 13px; }
@media (max-width: 1200px) {
  .topbar, main, body > .notice { margin-left: 20px; margin-right: 20px; }
}
@media (max-width: 700px) {
  .topbar, main, body > .notice { margin-left: 14px; margin-right: 14px; }
  .topbar { gap: 8px; padding: 20px 0; }
  .brand { font-size: 15px; }
  .account-menu { font-size: 10px; }
  .account-menu summary { padding: 9px; }
  .game { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .intro { display: none; }
  .match-strip { gap: 5px; padding: 10px 6px; font-size: 10px; flex-wrap: wrap; }
  .match-strip small { font-size: 9px; }
  .chart-wrap { height: 280px; }
  .score-head { font-size: 11px; }
  .sentence-box, .bets-panel { grid-column: 1; }
  .selections { gap: 5px; }
  .selections button { padding: 8px; font-size: 11px; }
  nav { gap: 15px; flex-wrap: wrap; }
  .panel { padding: 12px; }
  :is(.bets-panel, #page, #statement-page) :is(th, td) { padding: 8px 3px; font-size: 10px; overflow-wrap: anywhere; }
  :is(.bets-panel, #page, #statement-page) table { table-layout: fixed; }
}

@media (min-width: 701px) {
  aside { grid-column: 2; grid-row: 1 / 3; }
}

/* Speed Odds: stadium light, translucent panels and condensed trading figures. */
:root {
  font-family: Inter, sans-serif;
  color: #F3F4FF;
  background: #070A1F;
  --border: #2B2F6B;
  --purple: #8B3DFF;
  --lilac: #19C8FF;
  --muted: #9AA0C8;
  --brand: linear-gradient(110deg, #19C8FF, #2F6BFF 45%, #8B3DFF);
}
body {
  min-width: 320px;
  background: radial-gradient(ellipse at 5% 0, #6B3CFF26, transparent 55%),
    radial-gradient(ellipse at 95% 40%, #1E4BFF1F, transparent 55%),
    radial-gradient(circle, #9AA0C808 1px, transparent 1.5px);
  background-size: auto, auto, 9px 11px;
}
h1, h2, h3, button, nav, strong, b, .score-line, .hero-team, .hero-clock {
  font-family: Rajdhani, sans-serif;
}
h2 { font-size: 25px; }
button, input { background: #080D25AA; color: #F3F4FF; border-radius: 7px; }
button:active { transform: scale(.98); }
button[aria-pressed="true"] { background: #8B3DFF25; color: #F3F4FF; }
:focus-visible { outline-color: #3D7BFF; }
.topbar, main, body > .notice { max-width: 1350px; width: calc(100% - 48px); }
.topbar { height: 64px; padding: 0; gap: 14px; }
.brand img { height: 40px; width: auto; display: block; }
.topbar nav { margin: 0; gap: 6px; white-space: nowrap; }
nav a { padding: 8px 13px; border: 1px solid transparent; border-radius: 7px; }
nav a[aria-current] { background: var(--brand); border-color: #8B3DFF; }
#search { max-width: 235px; padding: 9px 12px; font-size: 11px; margin-left: auto; }
#account { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; }
.account-menu summary, .balance-chip { border: 1px solid var(--border); padding: 9px; }
.balance-chip { border-radius: 999px; color: #C5BAFF; }
.account-menu form { background: #0D102C; }
#hamburger { display: none; }
body > .notice { font-size: 10px; padding: 0 0 8px; }
.game { grid-template-columns: minmax(0, 69fr) minmax(0, 31fr); gap: 14px; }
.panel, .pitch-panel {
  background: rgba(13,16,44,.82);
  border: 1px solid #2B2F6B;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #7C5CFF26, 0 0 24px #5B3CFF1F;
}
.pitch-panel { overflow: hidden; padding: 12px; }
aside.panel { grid-column: 2; grid-row: 1; padding: 20px; }
aside h2 { display: flex; align-items: center; margin: 0; gap: 8px; }
.bolt { color: #A855F7; font-size: 32px; }
.help { margin-left: auto; border: 1px solid; border-radius: 50%; font-size: 14px; padding: 0 5px; }
#slip-subtitle { color: var(--muted); font-size: 12px; margin: 8px 0 18px; }
.match-strip {
  display: block; text-align: left; border: 0; border-radius: 8px; min-height: 185px;
  background: radial-gradient(ellipse at 0 0, #19C8FF35, transparent 40%),
    radial-gradient(ellipse at 100% 0, #8B3DFF45, transparent 40%),
    linear-gradient(170deg, #060B25, #12244A66 60%, #070A1F);
  position: relative;
}
.match-strip::after, .chart-wrap::before {
  content: ''; position: absolute; inset: 65% 15% 4%; border: 1px solid #19C8FF18;
  background: linear-gradient(90deg, transparent 49.8%, #19C8FF18 50%, transparent 50.2%);
  transform: perspective(200px) rotateX(40deg); pointer-events: none;
}
.hero-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.hero-meta img { width: 32px; height: 32px; }
.hero-meta b { color: white; font-size: 16px; }
.live-pill, .status-pill { border: 1px solid #22E58A; color: #22E58A; border-radius: 6px; }
.live-pill { padding: 5px 8px; margin-left: auto; white-space: nowrap; }
.live-pill.pending { color: var(--muted); border-color: var(--muted); }
.hero-clock { display: flex; align-items: center; gap: 6px; }
.hero-clock span { display: grid; text-align: center; }
.hero-clock b { border: 1px solid #8B90B8; border-radius: 5px; }
.hero-clock b { font-size: 23px; padding: 0 7px; }
.hero-teams { display: flex; align-items: center; justify-content: center; gap: 60px; }
.hero-team { text-align: center; font-size: 22px; min-width: 120px; }
.hero-team img { width: 58px; height: 58px; display: block; margin: 6px auto; }
.hero-team small { display: block; font-size: 12px; }
.hero-team em { font-style: normal; margin: 0 3px; }
.hero-team .rank { border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.form-V, .up, #liquidity { color: #22E58A; }
.form-D, .down, .error { color: #FF3B6B; }
.form-N { color: #F3F4FF; }
.segmented { flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--border); }
.segmented button { border-radius: 6px; white-space: nowrap; border-color: transparent; }
.segmented button[aria-pressed="true"] { border-bottom: 3px solid #A855F7; }
.more-markets { position: relative; padding: 8px; white-space: nowrap; }
.more-markets[open] { display: flex; flex-wrap: wrap; }
.selections { flex-wrap: nowrap; }
.selections button {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr;
  text-align: left; border-radius: 8px; padding: 10px 14px; position: relative;
}
.selections button[aria-pressed="true"] { border: 1.5px solid #3D7BFF; }
.selections button[aria-pressed="true"] { box-shadow: 0 0 12px #3D7BFF30; }
.selections button > span { grid-column: 1 / -1; font-size: 16px; }
.selections strong { font-size: 34px; }
.selections canvas { width: 100%; height: 32px; }
.selection-change { font-size: 13px; }
.chart-heading { display: flex; align-items: center; border-top: 1px solid var(--border); }
.score-head { flex: 1; margin: 10px 0; gap: 8px; }
.score-head > p, #books { display: none; }
#selection-label { font-size: 17px; }
.score-line { font-size: 13px; }
#scoreboard { font-size: 27px; }
.chart-tools { gap: 5px; }
.chart-tools .chips { gap: 5px; }
.chart-tools button, .chips button { border-radius: 6px; padding: 6px 10px; }
#timeframes button[aria-pressed="true"] { color: #CBA7FF; border-color: #A855F7; }
.chart-wrap { height: 330px; }
.chart-wrap { background: radial-gradient(ellipse at bottom, #124E3820, transparent); }
#chart { position: relative; z-index: 1; }
.quick-switch, .overview-link { display: none; }
.field-label { margin: 20px 0 10px; }
.direction { padding: 15px 5px; border-width: 2px; border-radius: 8px; }
.direction.rise { border-color: #22E58A; color: #22E58A; box-shadow: inset 0 0 15px #22E58A10; }
.direction.fall { border-color: #FF3B6B; color: #FF3B6B; box-shadow: inset 0 0 15px #FF3B6B10; }
.direction.rise[aria-pressed="true"] { background: #22E58A20; }
.direction.fall[aria-pressed="true"] { background: #FF3B6B20; }
.direction strong { font-size: 30px; margin-top: 0; }
.direction span { font-size: 16px; }
.direction small { position: absolute; top: -15px; left: 15px; background: #0D102C; }
.candle-timer { padding: 15px; border: 1px solid #8B3DFF; border-radius: 8px; text-align: center; }
.countdown { margin: 0; font-size: 12px; }
#candle-clock { display: block; font: 700 36px Rajdhani, sans-serif; }
progress { width: 100%; height: 7px; border: 0; border-radius: 9px; overflow: hidden; }
progress::-webkit-progress-bar { background: #30345A; }
progress::-webkit-progress-value { background: var(--brand); transition: width 1s linear; }
progress::-moz-progress-bar { background: var(--brand); }
.stake-chips { flex-wrap: nowrap; }
.stake-chips button { flex: 1; }
.stake-input button { background: #8B3DFF20; color: #DFC7FF; border-radius: 6px; }
.result { background: #22E58A08; color: #22E58A; border: 2px solid #22E58A; }
.result { box-shadow: 0 0 12px #22E58A25; display: grid; grid-template-columns: 1fr auto; }
.result > span { color: #F3F4FF; }
.result > div { grid-column: 1 / -1; display: flex; justify-content: space-between; }
.result b { font-size: 29px; }
.result small { color: #22E58A; font-size: 20px; align-self: end; }
.primary { background: var(--brand); border-radius: 8px; font-size: 20px; padding: 12px; }
.extra-modes { margin-top: 14px; color: var(--muted); font-size: 12px; }
#slip-history, #slip-status { margin: 6px 0; }
.slippage { text-align: left; margin-top: 14px; }
.slippage summary { width: 100%; border-radius: 6px; padding: 10px; }
.sentence-box { grid-column: 1 / -1; margin: 0; padding: 10px; font-size: 12px; }
#trade-sentence { padding: 0; margin: 0; }
.bets-panel { border: 1px solid var(--border); padding: 12px 20px; margin-top: 0; }
.bets-panel .section-head { justify-content: flex-start; }
#claim-all { margin-left: auto; }
.status-pill { display: inline-block; padding: 4px 8px; font-size: 11px; }
.status-CLAIMABLE { color: #C13DFF; border-color: #C13DFF; }
.status-LOSS { color: #FF3B6B; border-color: #FF3B6B; }
.bet-logos img { width: 25px; height: 25px; object-fit: contain; vertical-align: middle; }
.bet-logos { white-space: nowrap; }
td small { display: block; }
[data-claim], [data-claim-all] { background: #8B3DFF20; color: #D9B8FF; border-radius: 6px; }
dialog { background: #0D102C; max-height: 85vh; }
.picker-match { flex-wrap: wrap; }
#toast { background: #0D102C; }
.price-flash { animation: price-pulse .2s ease-out; }
@keyframes price-pulse { from { text-shadow: 0 0 20px currentColor; } to { text-shadow: none; } }
@media (max-width: 1199px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  aside.panel { grid-column: 1; grid-row: auto; }
  .topbar { flex-wrap: wrap; height: auto; min-height: 64px; padding: 8px 0; }
  #search { flex: 1; }
}
@media (max-width: 767px) {
  .topbar, main, body > .notice { width: calc(100% - 24px); margin: auto; }
  .topbar { gap: 6px; }
  .brand img { height: 30px; }
  #hamburger { display: block; margin-left: auto; }
  .topbar nav { display: none; width: 100%; overflow-x: auto; order: 5; }
  .topbar.menu-open nav { display: flex; }
  #search { order: 6; max-width: none; flex-basis: 100%; }
  #account { font-size: 10px; gap: 4px; }
  #notifications { padding: 6px; }
  .account-menu summary, .balance-chip { padding: 6px; }
  .pitch-panel { padding: 8px; }
  .hero-meta { flex-wrap: wrap; gap: 6px; }
  .hero-teams { gap: 15px; }
  .hero-team { min-width: 100px; font-size: 20px; }
  .hero-clock { margin-left: auto; }
  .selections { overflow-x: auto; }
  .selections button { min-width: 155px; }
  .chart-heading { flex-wrap: wrap; }
  .chart-tools { width: 100%; }
  .chart-wrap { height: 260px; }
  .bets-panel .section-head { flex-wrap: wrap; }
  #bet-tabs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  #bet-tabs button { white-space: nowrap; }
  :is(.bets-panel, #page) :is(table, tbody, tr, td) { display: block; width: 100%; }
  :is(.bets-panel, #page) thead { display: none; }
  tr.position { border: 1px solid var(--border); border-radius: 8px; margin: 10px 0; padding: 8px; }
  :is(.bets-panel, #page) td { font-size: 12px; border: 0; padding: 5px; }
  :is(.bets-panel, #page) td::before { content: attr(data-label);
    color: var(--muted); margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.brand .tagline { display: block; font-size: 11px; }
.source-age { display: block; font-size: 11px; }
@media (max-width: 760px) {
  .brand .tagline { display: none; }
}

/* Sixth pass: shared scale, stadium lights and responsive trading panels. */
.topbar { height: 76px; min-height: 76px; padding: 0; flex-wrap: nowrap; }
.brand { flex-shrink: 0; }
.brand img { height: 52px; width: auto; object-fit: contain; }
.brand .tagline { font-size: 12px; }
body > .notice { font-size: 12px; padding: 8px 0; }
h2 { font-size: 26px; }
small, .source-age, .status-pill, #slip-history, #slip-status { font-size: 12px; }
button, .chips button, .segmented button { font-size: 14px; }
.panel, .pitch-panel, .sentence-box { border-radius: 14px; }
.match-strip { min-height: 200px; isolation: isolate; }
.match-strip {
  background: radial-gradient(ellipse at 0 12%, #78D9FF70, transparent 28%),
    radial-gradient(ellipse at 100% 12%, #8E8AFF70, transparent 28%),
    repeating-conic-gradient(from 65deg at 0 0, #A0DAFF0D 0deg 4deg, transparent 4deg 12deg),
    linear-gradient(170deg, #04091C, #102343 60%, #05091D);
}
.match-strip::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(transparent, #04091CAA); border-radius: inherit; }
.hero-meta { align-items: flex-start; }
.hero-clock { align-items: flex-start; font-size: 12px; }
.hero-clock b { font-size: 26px; line-height: 32px; }
.hero-clock small { margin: 0; font-size: 12px; line-height: 16px; text-align: center; }
.hero-teams { gap: 64px; padding-top: 8px; position: relative; z-index: 1; }
.hero-team { font-size: 26px; }
.hero-team img { width: 72px; height: 72px; }
.hero-team small { margin: 0; }
.hero-team em { margin: 0 4px; }
.segmented { margin: 8px 0 16px; gap: 8px; }
.segmented button { min-height: 48px; padding: 8px 16px; font-size: 16px; }
.segmented button[aria-pressed="true"] { background: #6725BB55;
  box-shadow: inset 0 -3px #A855F7, 0 5px 12px #8B3DFF33; }
.selections { align-items: stretch; margin: 16px 0; }
.selections button { grid-template-columns: 1fr; gap: 0; min-height: 160px; padding: 8px 16px; }
.selections button > span { font-size: 14px; }
.selections button > span:first-child { font-size: 16px; }
.selections button .source-age { font-size: 12px; }
.selections canvas { grid-column: 1 / -1; width: 100%; height: 50px; min-width: 0; }
.selections button[aria-pressed="true"] { border-color: #19C8FF;
  background: #06304455; box-shadow: inset 0 0 16px #19C8FF10, 0 0 16px #19C8FF30; }
.chart-heading { flex-wrap: wrap; gap: 8px; }
.score-head > div { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#selection-label { font-size: 16px; }
#scoreboard { font-size: 34px; }
.score-line { font-size: 14px; }
.chart-tools { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.chart-tools button { font-size: 14px; }
#timeframes { flex-wrap: nowrap; max-width: 100%; overflow: auto; }
.chart-wrap::before { inset: 30% 8% 8%; opacity: .06; border-color: white;
  background: linear-gradient(90deg, transparent 49.8%, white 50%, transparent 50.2%); }
.directions { margin-top: 24px; gap: 16px; }
.direction { min-width: 0; padding: 8px; }
.direction strong { font-size: 34px; }
.direction small { position: static; background: none; color: inherit; font-size: 12px; }
.direction [data-bonus] { position: absolute; top: -20px; left: 0; padding: 0 8px;
  color: #22E58A; background: #103F32; border-radius: 999px; line-height: 16px; }
.direction:disabled { border-color: #6B7199; color: #AEB2D4; opacity: 1;
  background: #24283D; box-shadow: none; }
#candle-clock { font-size: 44px; }
.result b, #gain-mult { font-size: 34px; }
.result.incomplete b, .result.incomplete #gain-mult { color: var(--muted); }
.sentence-box { border: 0; padding: 8px 0; text-align: left; font-size: 12px; }
.sentence-box small { font-size: 12px; }
#trade-sentence { line-height: 16px; }
#share-link { font-size: 12px; padding: 0; }
#submit-reason { font-size: 12px; margin: 8px 0; text-align: center; }
#slip-error:empty, #slip-status:empty { display: none; }
.primary:disabled { opacity: 1; color: #D0D4E8; background: #333C65; border-color: #515D91; }
.empty { text-align: center; padding: 32px 16px; font-size: 14px; }
.empty > span { display: block; font-size: 34px; margin-bottom: 16px; }
:is(.bets-panel, #page, #statement-page) table { font-size: 14px; }
.bet-logos img { width: 32px; height: 32px; }
@media (min-width: 1200px) {
  .game { grid-template-columns: minmax(0, 69fr) minmax(0, 31fr); }
}
@media (max-width: 1199px) and (min-width: 768px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 0; }
}
@media (max-width: 767px) {
  body { overflow-x: clip; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .topbar { position: relative; gap: 8px; }
  .brand img { height: 36px; }
  .brand .tagline { display: none; }
  #account { margin-left: auto; font-size: 12px; }
  .balance-chip { padding: 8px; }
  #hamburger { order: 3; margin-left: 0; }
  #notifications, #search { display: none; }
  .account-menu { display: none; }
  .topbar.menu-open nav { position: absolute; top: 76px; left: 0; right: 0;
    width: 100%; display: flex; flex-wrap: wrap; padding: 16px;
    background: #0D102C; z-index: 20; border: 1px solid var(--border); }
  .topbar.menu-open .account-menu { display: block; position: absolute;
    top: 208px; left: 0; right: 0; padding: 16px; background: #0D102C; z-index: 21; }
  .account-menu form { position: static; width: 100%; }
  .hero-meta { gap: 8px; font-size: 12px; }
  .hero-meta > span:nth-child(2) { flex: 1; }
  .hero-meta b { font-size: 14px; }
  .hero-clock { flex-basis: 100%; justify-content: flex-end; }
  .hero-clock b { font-size: 26px; }
  .hero-team { min-width: 0; flex: 1; font-size: 20px; }
  .hero-team img { width: 48px; height: 48px; }
  .hero-teams { gap: 8px; }
  .hero-team small { font-size: 12px; }
  .hero-team em { margin: 0 1px; }
  .segmented, .selections { scroll-snap-type: x mandatory; }
  .segmented button, .selections button { scroll-snap-align: start; flex-shrink: 0; }
  .selections button { flex: 0 0 72%; min-width: 0; }
  .chart-wrap { height: 260px; width: 100%; }
  .chart-tools, .score-head, #timeframes { min-width: 0; }
  .chart-tools { gap: 8px; }
  .chart-tools .chips { width: 100%; }
  .bets-panel { min-width: 0; padding: 16px; }
  tr.position { border-radius: 14px; }
  :is(.bets-panel, #page) td { font-size: 14px; }
}

#selection-label { display: flex; align-items: center; gap: 8px; }
.hero-clock .hero-phase { font-size: 15px; color: #c5e8f0; padding: 6px 10px; }
.hero-score { white-space: nowrap; font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.2; color: #f4f5ff; }
#selection-label img { width: 32px; height: 32px; object-fit: contain; }
.account-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  width: 290px; padding: 16px; border: 1px solid #49537e; border-radius: 12px;
  background: #0d102c; white-space: normal; box-shadow: 0 10px 30px #0008; }
.account-menu .account-popover form { position: static; width: 100%; padding: 0;
  border: 0; background: transparent; display: block; }
.account-popover label { display: block; }
.account-popover button { width: 100%; }
.account-popover [data-refill] { margin-top: 14px; border-color: #53cce1; }
@media (max-width: 767px) {
  .account-menu .account-popover { position: static; width: 100%; margin-top: 10px; }
}

/* Swipe: the source, chart and quoted payout stay visible during validation. */
#swipe-page { max-width: 1020px; margin: 16px auto 40px; }
.swipe-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.swipe-heading h1 { font: 700 46px/1 Rajdhani, sans-serif; margin: 8px 0; }
.swipe-heading h1 span { color: #48dbf1; }
.swipe-heading p { margin: 6px 0; color: #a3accb; }
.swipe-heading .eyebrow { font-size: 11px; letter-spacing: .14em; color: #48dbf1; }
.swipe-heading > a { font-size: 13px; }
.swipe-layout { display: grid; grid-template-columns: minmax(0, 540px) minmax(230px, 1fr); gap: 48px; }
.swipe-play { min-width: 0; }
.swipe-filters { display: flex; gap: 6px; margin-bottom: 16px; }
.swipe-filters button { font-size: 12px; padding: 9px 12px; min-height: 40px; }
.swipe-filters button[aria-pressed=true] { background: #123447; border-color: #48dbf1; color: #c9f9ff; }
.swipe-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #a3accb; margin-bottom: 14px; }
.swipe-meta select { background: #111934; border: 1px solid #3b4a75; color: white; border-radius: 8px; padding: 7px; margin-left: 8px; min-width: 90px; }
.swipe-stack { position: relative; isolation: isolate; margin: 0 0 22px; }
.swipe-stack:before, .swipe-stack:after { content: ''; position: absolute; z-index: -1; inset: 10px 12px -7px; border: 1px solid #35406b; border-radius: 18px; background: #11152e; }
.swipe-stack:before { inset: 16px 25px -13px; opacity: .6; }
.swipe-card { position: relative; padding: 22px; border: 1px solid #3d5079; border-radius: 18px; background: #0f1730; box-shadow: 0 12px 32px #02081766; cursor: grab; touch-action: none; user-select: none; }
.swipe-card:active { cursor: grabbing; }
.swipe-card.is-pending { pointer-events: none; border-color: #48dbf1; }
.swipe-card-top { display: flex; justify-content: space-between; align-items: center; color: #a3accb; font-size: 11px; gap: 10px; }
#swipe-phase { color: #48dbf1; text-align: right; }
.swipe-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 22px 0; }
.swipe-teams > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; min-width: 0; }
.swipe-teams b { font: 700 20px/1.1 Rajdhani, sans-serif; }
.swipe-teams img { object-fit: contain; }
.swipe-teams > strong { font: 600 24px Rajdhani, sans-serif; color: #8c9abd; }
.swipe-teams small { color: #8c9abd; }
.swipe-club { color: #48dbf1; font-size: 32px; height: 44px; }
.swipe-selection { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #293452; padding-top: 15px; }
.swipe-selection h2 { font: 600 24px/1.1 Rajdhani, sans-serif; margin: 5px 0; }
.swipe-selection > div:last-child { text-align: right; flex-shrink: 0; }
.swipe-selection strong { display: block; color: #f6f8ff; font: 700 40px/1.1 Rajdhani, sans-serif; }
.swipe-selection small { color: #a3accb; font-size: 11px; }
.swipe-chart { height: 130px; margin-top: 5px; }
.swipe-chart svg { width: 100%; height: 100%; display: block; }
.swipe-times { text-align: center; font-size: 12px; color: #bac6e4; margin: 4px 0 13px; }
.swipe-payouts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swipe-payouts > button { border: 1px solid currentColor; border-radius: 10px; text-align: center; padding: 9px 5px; font-size: 12px; min-height:48px; }
.swipe-payouts > .down { background:#461e32; color:#ff8aa6; }
.swipe-payouts > .up { background:#123e35; color:#66edb3; }
.swipe-payouts strong { display: block; font: 700 27px/1.1 Rajdhani, sans-serif; margin: 3px 0; }
.swipe-payouts small { display: block; color: #c6cde3; font-size: 10px; }
.swipe-source { font-size: 10px; line-height: 1.5; color: #a3accb; margin: 13px 0 0; text-align: center; }
#swipe-intent { position: absolute; top: 48%; left: 50%; transform: translate(-50%,-50%); font: 700 35px Rajdhani; color: #fff; background: #080e26dd; border-radius: 8px; }
#swipe-intent:not(:empty) { padding: 12px; border: 2px solid #48dbf1; }
.swipe-stakes { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; margin: 20px 0 14px; color: #a3accb; }
.swipe-stakes button { padding: 10px 16px; min-height: 44px; }
.swipe-stakes button[aria-pressed=true] { background: #293453; border-color: #8497cd; color: white; }
.swipe-actions { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 10px; }
.swipe-actions button { font-weight: 700; font-size: 15px; min-height: 50px; border-radius: 12px; }
.swipe-actions .swipe-down { background: #461e32; color: #ff8aa6; border-color: #a84969; }
.swipe-actions .swipe-up { background: #123e35; color: #66edb3; border-color: #2a9e76; }
.swipe-actions button:disabled { opacity: .45; }
.swipe-status { color: #a3accb; font-size: 12px; text-align: center; margin: 10px 0; }
#swipe-feedback { min-height: 45px; color: #c8f6ed; font-size: 13px; line-height: 1.5; text-align: center; margin: 8px 0; }
#swipe-feedback[data-state=pending] { color: #61dff1; }
#swipe-feedback[data-state=uncertain] { color: #ffd291; }
.swipe-info { padding-top: 44px; }
.swipe-info-block { border-top: 1px solid #34405e; padding: 20px 0; }
.swipe-info h2 { font: 600 23px Rajdhani, sans-serif; margin: 0 0 14px; }
.swipe-info p, .swipe-info details, .swipe-info a { font-size: 13px; color: #aebbd9; line-height: 1.8; }
.swipe-info details { margin: 20px 0; }
.swipe-info a { color: #64d6e8; }
.swipe-info .swipe-rule { color: #d2dcef; padding-left: 12px; border-left: 2px solid #48dbf1; }
#swipe-receipts a { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid #222d48; padding: 10px 0; gap: 3px 10px; }
#swipe-receipts small { grid-column: 1 / -1; color: #8c9abd; }
#swipe-receipts b { color: #d2dcef; }
.swipe-demo { font-size: 11px !important; }
.swipe-empty { background: #0f1730; border: 1px solid #3d5079; border-radius: 18px; padding: 70px 25px; text-align: center; }
.swipe-empty > span { color: #48dbf1; font-size: 40px; }
.swipe-empty a { display: block; margin-top: 20px; }
@media (max-width: 767px) {
  #swipe-page { margin-top: 10px; }
  .swipe-heading { margin-bottom: 16px; }
  .swipe-heading h1 { font-size: 34px; }
  .swipe-heading p { font-size: 12px; }
  .swipe-heading p:not(.eyebrow) { display: none; }
  .swipe-heading > a { font-size: 11px; }
  .swipe-layout { display: block; }
  .swipe-filters { gap: 5px; }
  .swipe-filters button { font-size: 11px; padding: 8px; flex: 1; }
  .swipe-card { padding: 14px; }
  .swipe-teams { margin: 10px 0; gap: 8px; }
  .swipe-teams img, .swipe-club { width: 32px; height: 32px; font-size: 26px; }
  .swipe-teams b { font-size: 18px; }
  .swipe-chart { height: 90px; }
  .swipe-selection { padding-top: 10px; }
  .swipe-selection strong { font-size: 34px; }
  .swipe-selection h2 { font-size: 21px; }
  .swipe-payouts strong { font-size: 25px; }
  .swipe-source { margin-top: 9px; }
  .swipe-stakes { margin-top: 17px; }
  .swipe-info { padding-top: 10px; }
  .swipe-stakes { gap: 8px; }
  .swipe-stakes button { padding: 10px 15px; }
  .swipe-payouts { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Compact Swipe workspace: the decision controls remain next to the visible quote. */
.swipe-links { display: flex; gap: 18px; font-size: 13px; }
.swipe-links a:first-child { color: #d5def5; }
.swipe-card:focus-visible { outline: 2px solid #64e2f4; outline-offset: 4px; }
.swipe-card { transition: border-color .18s; }
.swipe-card[data-availability=ready] { border-color: #477e8f; }
#swipe-intent[data-direction=down] { color: #ff91ad; border-color: #ff527b; }
#swipe-intent[data-direction=up] { color: #75f4ba; border-color: #22e58a; }
.swipe-controls { border-radius: 14px; }
.swipe-empty[aria-busy=true] > span { display: block; animation: waiting-spin 2s linear infinite; }
@keyframes waiting-spin { to { transform: rotate(360deg); } }
.notice[data-connection=offline] { color: #ffd291; }
.placement-recovery { width: min(calc(100% - 24px), 1020px); margin: 12px auto;
  border: 1px solid #8f7147; border-radius: 12px; background: #26243a; padding: 14px;
  color: #ffe2b3; font-size: 13px; }
.placement-recovery p { margin: 0 0 10px; }
/* Audit text must fit within its row on wide and narrow screens. */
.position details { min-width: 120px; max-width: 320px; white-space: normal; }
.position details p { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.position details[open] { padding: 10px; background: #111a34; border-radius: 8px; }
@media (min-width: 768px) and (max-height: 1000px) {
  #swipe-page { margin-top: 6px; }
  .swipe-heading { margin-bottom: 12px; }
  .swipe-heading .eyebrow, .swipe-heading p:not(.eyebrow) { display: none; }
  .swipe-heading h1 { font-size: 34px; margin: 4px 0; }
  .swipe-filters { margin-bottom: 8px; }
  .swipe-meta { margin-bottom: 8px; }
  .swipe-card { padding: 14px 18px; }
  .swipe-teams { margin: 10px 0; }
  .swipe-teams img, .swipe-club { width: 30px; height: 30px; }
  .swipe-teams b { font-size: 18px; }
  .swipe-teams small { font-size: 10px; }
  .swipe-selection { padding-top: 8px; }
  .swipe-selection h2 { font-size: 22px; }
  .swipe-selection strong { font-size: 32px; }
  .swipe-chart { height: 96px; }
  .swipe-times { margin-bottom: 8px; font-size: 11px; }
  .swipe-payouts > button { padding: 6px; }
  .swipe-payouts strong { font-size: 24px; }
  .swipe-source { margin-top: 8px; }
  .swipe-stack { margin-bottom: 14px; }
  .swipe-controls { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; align-items: center; }
  .swipe-stakes { margin: 0; gap: 5px; font-size: 11px; }
  .swipe-stakes > span:first-child { max-width: 42px; }
  .swipe-stakes > span:last-child { display: none; }
  .swipe-stakes button { min-width: 36px; padding: 8px; }
  .swipe-actions { gap: 6px; }
  .swipe-actions button { min-height: 44px; }
  .swipe-status { margin: 6px 0; }
  .swipe-info { padding-top: 18px; }
}
body[data-route="/swipe"] #toast { top: 76px; bottom: auto; box-shadow: 0 8px 30px #0008; }
@media (max-width: 767px) {
  body[data-route="/swipe"] .topbar { min-height: 60px; height: 60px; }
  body[data-route="/swipe"] > .notice { font-size: 10px; line-height: 1.4; padding: 3px 0 6px; }
  #swipe-page { margin: 4px auto 24px; }
  .swipe-heading { margin-bottom: 10px; min-height: 34px; gap: 8px; }
  .swipe-heading .eyebrow { display: none; }
  .swipe-heading h1 { font-size: 28px; margin: 0; white-space: nowrap; }
  .swipe-links { flex-direction: column; align-items: flex-end; gap: 5px; font-size: 11px; }
  .swipe-filters { margin-bottom: 8px; }
  .swipe-filters button { min-height: 44px; padding: 6px; }
  .swipe-meta { margin-bottom: 8px; min-height: 34px; }
  .swipe-meta select { min-height: 34px; padding: 5px 7px; }
  .swipe-stack { margin-bottom: 15px; }
  .swipe-card { padding: 12px; border-radius: 16px; }
  .swipe-card-top { font-size: 10px; }
  .swipe-teams { margin: 8px 0; gap: 7px; }
  .swipe-teams > div { gap: 3px; }
  .swipe-teams b { font-size: 17px; }
  .swipe-teams img, .swipe-club { width: 28px; height: 28px; }
  .swipe-teams small { font-size: 10px; }
  .swipe-selection { padding-top: 7px; }
  .swipe-selection h2 { font-size: 20px; margin: 2px 0; }
  .swipe-selection strong { font-size: 32px; }
  .swipe-chart { height: 96px; margin-top: 3px; }
  .swipe-times { font-size: 11px; margin: 2px 0 8px; }
  .swipe-payouts > button { padding: 6px 3px; }
  .swipe-payouts strong { font-size: 25px; margin: 2px 0; }
  .swipe-payouts small { font-size: 10px; }
  .swipe-source { font-size: 10px; line-height: 1.4; margin-top: 7px; }
  .swipe-controls { position: sticky; bottom: max(6px, env(safe-area-inset-bottom)); z-index: 5;
    background: #090e27f5; padding: 6px; margin: 0 -6px; border: 1px solid #202b48; }
  .swipe-stakes { margin: 0 0 6px; gap: 8px; }
  .swipe-stakes button { min-height: 44px; padding: 8px 15px; }
  .swipe-actions { gap: 8px; }
  .swipe-actions button { min-height: 46px; font-size: 14px; padding: 8px; }
  .swipe-status { font-size: 11px; margin: 8px 0 4px; }
  #swipe-feedback { min-height: 0; margin: 6px 0; font-size: 12px; }
  #swipe-feedback:empty { display: none; }
  #swipe-retry { width: 100%; min-height: 44px; margin: 6px 0; border-color: #e4b66e; color: #ffe2b3; }
  .swipe-info { padding-top: 18px; }
  body[data-route="/swipe"] #toast { top: 62px; width: calc(100% - 24px); font-size: 12px; }
}
