:root { color-scheme:dark; }
body {
  --bg:#0b111a;
  --panel:#131e2d;
  --line:#273849;
  --mint:#c3f483;
  --muted:#a1b2c5;
  background: var(--bg);
}
.ui-icon { width:17px; height:17px; flex:none; vertical-align:middle; }
[data-icon] { display:inline-flex; align-items:center; }
.brand img { display:block; width:94px; height:31px; object-fit:contain; }
aside .brand { margin:0 0 16px; padding:4px 9px; }
aside { width:176px; background:#111a27; padding:16px 11px; }
.page { margin-left:176px; }
aside :is(button,.safer) { display:flex; align-items:center; gap:9px; font-size:13px; min-height:39px; }
aside #side button { padding:8px 10px; }
aside .eyebrow { margin:15px 9px 5px; }
aside button[aria-pressed=true] { background:#24374a; color:#dcf5c0; box-shadow:inset 2px 0 #c3f483; }
.page header, .play-page header, .operations header {
  height:55px; min-height:55px; padding-inline:clamp(12px,2vw,26px);
  background:#111a27; border-bottom:1px solid var(--line);
}
header nav :is(button,a), .hero-actions .primary, .floating-slip { display:inline-flex; align-items:center; gap:7px; }
header nav button[aria-pressed=true] { color:var(--mint); }
header .secondary { padding:7px 13px; }
.page main,.play-page main,.operations main { padding:14px clamp(10px,2vw,26px) 26px; }
.page main,.play-page main { max-width:1440px; }
.lobby-feature { display:grid; grid-template-columns:minmax(0,2fr) minmax(234px,1fr); gap:12px; }
.page .lobby-feature .hero {
  min-height:210px;
  border:1px solid var(--line);
  border-radius:10px;
  background-image:linear-gradient(90deg,#0f1928 0%,#101b2bbc 50%,#101b2b15 100%),var(--hero-art);
}
.page .hero-copy { padding:clamp(16px,3.1vw,36px); }
.page .hero h1 { font-size:clamp(29px,4.3vw,61px); line-height:.94; letter-spacing:-.058em; }
.hero-actions { margin-top:16px; }
.hero-actions>a { min-height:36px; padding:8px 11px; font-size:13px; }
.lobby-schedule { border:1px solid var(--line); border-radius:10px; background:#141f2d; padding:11px 13px; }
.lobby-schedule>div,.lobby-schedule li a,.lobby-schedule button { display:flex; align-items:center; justify-content:space-between; gap:9px; }
.lobby-schedule h2 { font-size:16px; letter-spacing:-.02em; }
.lobby-schedule small { color:var(--muted); font-size:11px; }
.lobby-schedule ul { list-style:none; margin:7px 0; padding:0; }
.lobby-schedule li { border-top:1px solid var(--line); }
.lobby-schedule li a { padding:8px 0; min-height:32px; font-size:12px; }
.lobby-schedule li a:hover { color:var(--mint); }
.lobby-schedule time { color:var(--mint); font-variant-numeric:tabular-nums; }
.lobby-schedule button { padding:3px 0; color:var(--mint); font-weight:680; width:100%; text-align:left; font-size:12px; }
.quick-games { margin:10px 0 4px; gap:8px; }
.quick-games a { padding:5px 8px 5px 5px; grid-template-columns:48px minmax(0,1fr) auto; gap:8px; border-radius:8px; background:#141f2d; }
.quick-art { width:48px; height:39px; }
.quick-games small { margin-bottom:2px; }
.quick-games strong { font-size:13px; }
.page .toolbar { top:55px; padding:8px 0; background:#0b111af5; gap:8px; }
.page #categories button,.search { padding:6px 8px; font-size:12px; }
.page .collection { margin:16px 0 24px; }
.page .section-head { margin:0 0 10px; padding:0 0 8px; }
.page .section-head h2 { font-size:20px; }
.page .section-head button { padding:5px 9px; }
.page .grid { gap:8px; }
.page .game { border-radius:8px; background:#141f2d; border-color:var(--line); }
.page .art { aspect-ratio:1.52; }
.page .game-info { padding:7px 9px; min-height:48px; gap:2px; }
.page .game-info strong { font-size:12px; }
.page .game-info small { font-size:10px; }
.page footer { padding-block:10px; color:var(--muted); }
.page[data-view="casino"] .lobby-feature { grid-template-columns:minmax(0,1fr); }
.page[data-view="casino"] :is(.lobby-schedule,.quick-games) { display:none; }
.page[data-view="casino"] .lobby-feature .hero {
  min-height:clamp(180px,25vw,308px);
  border-color:#594531;
  background-image:linear-gradient(90deg,#120f17 0%,#17111ce5 38%,#1b102026 79%),var(--hero-art);
  background-position:center,center 55%;
}
.page[data-view="casino"] .hero h1 { color:#fff4e4; }
.page[data-view="casino"] .hero-actions .primary { color:#21170d; background:#efc68a; }
.page[data-view="casino"] .hero-actions .secondary { border-color:#805e42; background:#211a22; color:#f5dfc3; }
.page[data-view="casino"] .grid { grid-template-columns:repeat(auto-fill,minmax(min(165px,100%),1fr)); gap:12px; }
.page .casino-card { border-color:#4a3c39; background:#1b1721; }
.page .casino-card:hover { border-color:#efc68a; }
.page .casino-card .art { aspect-ratio:1.16; }
.page .casino-card .game-info { padding:9px 10px; }
.page .casino-card .game-info strong { font-size:14px; }
.page .casino-card .game-info small { color:#ccaf96; }
.page[data-view="casino"] .section-head button { color:#efc68a; }
.page[data-view="virtuals"] .lobby-feature .hero {
  border-color:#315664;
  background-image:linear-gradient(90deg,#0a1726 0%,#0c2033d9 33%,#102b4533 100%),url("football-stadium.jpg");
}
.page[data-view="virtuals"] .hero h1 { color:#e5faff; }
.page[data-view="virtuals"] .lobby-schedule { border-color:#305666; background:#122632; }
.page[data-view="virtuals"] .lobby-schedule time { color:#9ce4f1; }
.page[data-view="virtuals"] .grid { grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr)); }
.page[data-view="virtuals"] .virtual-card { display:grid; grid-template-columns:84px minmax(0,1fr); border-color:#315060; align-items:center; }
.page[data-view="virtuals"] .virtual-card .art { width:100%; }
.page[data-view="virtuals"] .virtual-card .game-info { align-content:center; }
.page[data-view="virtuals"] .virtual-card .game-info small { color:#a7d7e2; }
.page .hero-actions>button { min-height:36px; padding:8px 11px; font-size:13px; }
@media(max-width:740px) {
  .play-page .floating-slip { display:none; }
  .page[data-view="casino"] .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .page[data-view="casino"] .casino-card .game-info strong { font-size:12px; }
  .page[data-view="casino"] .lobby-feature .hero { min-height:195px; }
}

.play-mode:not([hidden]) { margin:0 0 7px; padding:2px; }
.play-mode a { padding:4px 10px; }
.play-page .machine[data-event-phase]:not([hidden]), .play-page .machine[data-flight] {
  padding:10px; gap:7px; border-radius:10px; background:#131d2a;
}
.play-page .machine[data-event-phase] .game-heading { padding-bottom:6px; }
.play-page .machine[data-event-phase] .game-heading h1 { font-size:clamp(23px,3vw,34px); }
#virtual-switcher:not([hidden]) { padding:0 0 4px; gap:5px; scrollbar-width:thin; }
#virtual-switcher a { padding:5px 8px; font-size:12px; border-radius:6px; }
.sport-clock { display:block; color:var(--muted); font-size:10px; font-weight:600; font-variant-numeric:tabular-nums; margin-top:2px; }
#event-bar:not([hidden]) { gap:5px 8px; min-height:30px; }
#event-phase { padding:3px 6px; font-size:11px; }
#event-times { font-size:10px; color:#aebed0; font-variant-numeric:tabular-nums; }
#event-bar a { font-size:11px; }
#featured-match { font-size:11px; }
#event-boards:not([hidden]) { gap:6px; }
.play-page .event-boards section { padding:9px; border-radius:8px; background:#172333; }
#event-boards .fixture-panel { padding:0; background:#151f2d; }
.play-page .machine .fixture-guide { padding:7px 9px; }
.board-heading { padding:7px 9px; }
.fixture-tabs { padding:4px 6px; gap:3px; }
.fixture-tabs button { padding:5px 7px; font-size:11px; }
.market-fixture { padding:6px 8px; gap:6px; }
.market-price { min-height:30px; padding:5px 6px; }
.market-fixture .fixture-teams { font-size:12px; }
.market-fixture.football-fixture { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
.football-fixture-main { display:grid; grid-template-columns:minmax(0,1fr) auto 36px; align-items:center; gap:8px; }
.football-fixture-main .fixture-identity { align-self:center; overflow-wrap:anywhere; }
[data-game="virtual-football"] .fixture-tabs { scrollbar-width:thin; scrollbar-color:#496378 #192637; }
.fixture-result-market { justify-self:end; }
.football-odds { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:4px; }
.football-odds .football-odd {
  min-width:0; min-height:44px; padding:3px; display:grid; place-content:center; gap:2px;
  text-align:center; background:#1f3043; border-color:#3b536b;
}
.football-odd:hover,.fixture-market-toggle:hover { border-color:#8bc1dc; }
.football-odd :is(.odd-label,.odd-price) { font-size:12px; font-weight:750; line-height:1.15; }
.odd-label { color:#bed2e6; }
.odd-price { color:#f4f9ff; font-variant-numeric:tabular-nums; }
.football-odd[aria-pressed=true] { background:var(--mint); }
.football-odd[aria-pressed=true] :is(.odd-label,.odd-price) { color:#162917; }
.fixture-result-market .football-odd { display:flex; align-items:center; justify-content:center; gap:5px; min-width:54px; padding-inline:6px; white-space:nowrap; }
.fixture-result-market .odd-label,.featured-football-odds .market-price > span { color:#e9c994; font-weight:750; }
.fixture-result-market .football-odd[aria-pressed=true] .odd-label,.featured-football-odds .market-price[aria-pressed=true] > span { color:#455116; }
.fixture-market-toggle {
  display:grid; place-items:center; min-height:44px; border:1px solid #41596d; border-radius:5px;
  color:#c5ddef; background:#192a3a;
}
.fixture-market-toggle[aria-expanded=true] { color:#adf1f0; border-color:#557f94; background:#263d50; }
.fixture-market-toggle[aria-expanded=true] .ui-icon { transform:rotate(180deg); }
.fixture-extra-markets { display:grid; gap:8px; margin-top:8px; padding:8px; border:1px solid #31495e; border-radius:7px; background:#101e2c; }
.extra-market-tabs { display:flex; flex-wrap:wrap; gap:4px; }
.extra-market-tabs button { padding:5px 7px; min-height:32px; border:1px solid #344b60; border-radius:4px; background:#1b2b3d; color:#c2d6e7; font-size:11px; }
.extra-market-tabs button[aria-pressed=true] { background:#a8dce8; border-color:#a8dce8; color:#12242f; font-weight:750; }
.extra-market-choices { display:grid; gap:4px; }
.extra-market-choices .score-odds { grid-auto-flow:row; grid-template-columns:repeat(5,minmax(0,1fr)); }
.extra-market-choices .split-result-odds { grid-auto-flow:row; grid-template-columns:repeat(3,minmax(0,1fr)); }
.score-guide { margin:0; color:#b6cbe0; font-size:11px; }
@media(max-width:480px) {
  .football-fixture-main { gap:5px; }
}
.market-fixture.fixture-with-score {
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(48px,auto);
  align-items:center; column-gap:7px;
}
.fixture-with-score .fixture-teams { overflow-wrap:anywhere; }
.fixture-watch { white-space:nowrap; text-align:center; }
a.fixture-watch { color:#b9dce9; padding:5px 3px; font-size:11px; }
a.fixture-watch:hover { text-decoration:underline; }
.fixture-with-score .fixture-score {
  justify-self:end; text-align:center; min-width:48px; margin:0; padding:5px 6px;
  border-radius:4px; background:#0d1926; color:#baf3f4; font-size:13px;
  white-space:nowrap; font-variant-numeric:tabular-nums;
}
.machine .match-centre {
  border:1px solid #315264; border-radius:8px; scroll-margin-top:12px; margin-top:0;
  padding:9px; background:#132535;
}
.match-centre[open] { display:grid; gap:7px; }
.match-centre-header { display:grid; grid-template-columns:minmax(0,1fr) auto 8px; align-items:center; gap:9px; list-style:none; }
.match-centre-header::-webkit-details-marker { display:none; }
.match-centre-header::after { content:""; width:6px; height:6px; border:solid #afc7d8; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.match-centre[open] .match-centre-header::after { transform:rotate(225deg); }
.match-centre-header strong { color:#f0f6ff; font-size:15px; }
#centre-event { display:block; margin:2px 0 0; color:#b3c8dc; font-size:11px; }
.match-centre:not([open]) #centre-event { display:none; }
.centre-state { flex:none; border:1px solid #3b596a; border-radius:4px; background:#1c3547; color:#d2e9f1; padding:3px 5px; font-size:10px; font-weight:750; }
.centre-state[data-state="live"] { background:#21424b; color:#baf3f4; }
.centre-state[data-state="final"] { color:#c3f483; }
.centre-scoreboard { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; padding:7px; background:#0c1826; border-radius:6px; }
.centre-side { flex:1 1 0; min-width:0; overflow-wrap:anywhere; text-align:center; font-size:12px; font-weight:750; }
.centre-score { min-width:56px; text-align:center; font-size:17px; font-variant-numeric:tabular-nums; color:#baf3f4; }
.centre-runner { flex:1 1 21%; min-width:max-content; text-align:center; padding:3px; font-size:12px; }
.centre-timeline { list-style:none; margin:0; padding:0; max-height:234px; overflow:auto; scrollbar-width:thin; }
.centre-moment { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:7px; padding:5px 3px; border-top:1px solid #2c4557; font-size:12px; }
.centre-moment time { font-size:11px; color:#acccdd; font-variant-numeric:tabular-nums; }
.centre-moment[data-kind="goal"] strong,.centre-moment[data-kind="end"] strong { color:var(--mint); }
.centre-moment[data-kind="lead"] strong,.centre-moment[data-kind="turnover"] strong { color:#f7cc7d; }
.centre-moment[data-highlight="true"] { background:#3b2921; border-left:2px solid var(--mint); padding-left:7px; }
.machine[data-receipt-archive] #event-boards { display:none; }
.machine[data-receipt-archive][data-event-phase] > .arena-column { grid-column:1/-1; width:min(100%,780px); justify-self:center; }
.centre-empty { color:#b3c8dc; font-size:12px; padding:2px 0; }
#centre-current { justify-self:start; font-size:12px; }
.receipt-result { color:#a8e4ee; font-weight:700; width:max-content; padding:4px 0; text-decoration:underline; }
#slip-limit-notice { margin:8px 0; padding:9px; border:1px solid #76623a; border-radius:6px; background:#372d1d; color:#f9dea5; font-size:13px; }
#match-replay { padding:5px 8px; }
.arena-actions:not([hidden]) { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
#arena-data { padding:5px 8px; font-size:13px; }
#arena-data[aria-pressed=true] { border-color:#719d4c; background:#243724; color:#d5fba7; }
#featured-market { display:none; }
#connection-status { color:#f7cc7d; font-size:11px; }
.receipt-card { display:grid; gap:6px; }
.receipt-title { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.receipt-badge { padding:3px 7px; border-radius:5px; background:#2c3e52; color:#d7e6f5; font-size:11px; font-weight:750; }
.receipt-badge[data-result="won"] { background:#253d2a; color:#cbf8ad; }
.receipt-badge[data-result="lost"] { background:#442a32; color:#ffc6c5; }
.receipt-badge[data-result="mixed"] { background:#423522; color:#f9d58c; }
#slip-history .receipt-reference { color:#b3c4d5; overflow-wrap:anywhere; border:0; margin:0; padding:0; }
.receipt-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:1px 0; }
.receipt-totals div { min-width:0; padding:6px; background:#0e1826; border-radius:4px; }
.receipt-totals dt,.receipt-leg span { font-size:11px; color:#b6c7d9; }
.receipt-totals dd { margin:2px 0 0; font-size:12px; font-weight:700; overflow-wrap:anywhere; }
.receipt-leg { display:grid; gap:2px; padding-top:5px; border-top:1px solid var(--line); font-size:13px; }
.receipt-card.compact button { justify-self:start; font-size:12px; padding:5px 8px; }
#event-boards .event-receipt-panel { grid-column:1/-1; }
#event-receipt { margin-top:6px; color:#c9d7e6; font-size:12px; }
.play-page .machine[data-data-saver="true"][data-game="virtual-football"] .stage:has(.scoreboard),
.machine[data-data-saver="true"] .broadcast-screen { background:linear-gradient(#1c303b,#142b29); }
.machine[data-data-saver="true"] .racecourse::before { background:linear-gradient(#243a4c 0 54%,#486044 55% 84%,#968260 85%); }
.machine[data-data-saver="true"] .race-surface::before { background-image:none; }
.machine[data-data-saver="true"] .racecourse::after { background-position:0 bottom,0 calc(100% - 11px); }
.machine[data-data-saver="true"] .score-team { backdrop-filter:none; }
@media(max-width:1049px) {
  #featured-market:not([hidden]) { display:grid; gap:5px; border:1px solid var(--line); border-radius:8px; background:#172333; padding:6px; }
  .featured-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:3px 8px; }
  .featured-heading h2 { margin:0; font-size:12px; }
  .featured-heading span { font-size:10px; color:#b8c8da; }
  .featured-prices { display:flex; gap:4px; }
  .featured-prices .market-price { flex:1 1 0; min-width:0; min-height:44px; display:grid; place-content:center; padding:2px 4px; gap:1px; font-size:11px; }
  .featured-prices strong { font-size:13px; font-variant-numeric:tabular-nums; }
  .featured-football-odds { justify-content:flex-end; }
  .featured-football-odds .market-price { flex:0 0 58px; display:flex; align-items:center; justify-content:center; gap:5px; white-space:nowrap; }
  .featured-football-odds .market-price :is(span,strong) { font-size:12px; font-weight:750; line-height:1.15; }
}
@media(max-width:740px) {
  .play-page main:has([data-focused-arena]) { padding:6px 6px 20px; }
  .play-page .machine[data-focused-arena][data-event-phase] { padding:6px; gap:5px; }
  .play-page .machine[data-focused-arena] .game-heading { gap:4px; padding-bottom:4px; }
  .play-page .machine[data-focused-arena] .game-heading h1 { font-size:clamp(19px,5.3vw,24px); margin:2px 0 0; }
  .machine[data-focused-arena] .game-heading .eyebrow,.machine[data-focused-arena] .balance small { font-size:9px; }
  .machine[data-focused-arena] .balance { padding:4px 6px; gap:1px; }
  .machine[data-focused-arena] .balance strong { font-size:13px; }
  .machine[data-focused-arena] #event-bar { min-height:27px; gap:2px 6px; }
  .machine[data-focused-arena] #event-times,.machine[data-focused-arena] #featured-match { display:none; }
  .machine[data-focused-arena] #event-bar .event-clock { font-size:12px; }
  .machine[data-focused-arena] .racecourse { --venue-height:clamp(44px,9dvh,68px); --runner:58px; }
  .machine[data-focused-arena] .racecourse .track { min-height:clamp(31px,6dvh,43px); padding-block:0; }
  .machine[data-focused-arena] .stage:has(.racecourse) { position:relative; }
  .play-page .machine[data-focused-arena] .stage { min-height:0; gap:4px; }
  .play-page .machine[data-focused-arena][data-game="virtual-football"] .stage:has(.scoreboard) { min-height:clamp(104px,23dvh,174px); }
  .machine[data-focused-arena] .broadcast-score,.machine[data-focused-arena] .broadcast-minute,.machine[data-focused-arena] .broadcast-caption { padding:3px 5px; }
}
@media(max-width:740px) and (max-height:640px) {
  .play-page main:has([data-focused-arena]) .play-mode { margin-bottom:3px; }
  .machine[data-focused-arena] .racecourse { --runner:50px; --venue-height:clamp(39px,8dvh,50px); }
  .machine[data-focused-arena] .racecourse .track { min-height:clamp(29px,5.7dvh,36px); }
}
.machine[data-flight] .stage { margin-top:8px; min-height:0; }
.machine[data-flight] .stage .flight {
  isolation:isolate;
  background:#101e30;
  height:clamp(174px,26vw,264px);
  min-height:0;
  aspect-ratio:auto;
  padding:0;
}
.machine[data-flight] .flight::before {
  content:"";
  position:absolute;
  inset:-15% -16%;
  z-index:-1;
  background:linear-gradient(0deg,#071321aa,#0a182d1a 60%,#0a182d55),url("flight-sky.png") center 58%/cover;
  transform:translate(var(--cloud-x,0%),var(--cloud-y,0%));
  transition:transform .1s linear;
}
.flight-trace { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.machine[data-flight] .stage .flight-plane {
  left:var(--plane-x,12%);
  top:var(--plane-y,82%);
  bottom:auto;
  width:clamp(77px,11vw,144px);
  transform:translate(-50%,-50%);
  transition:left .07s linear,top .07s linear,opacity .25s;
}
.machine[data-flight] .stage .in-flight .flight-plane { transform:translate(-50%,-50%) rotate(-15deg); }
.machine[data-flight] .stage .flight-finished .flight-plane { opacity:.22; }
.flight-hud {
  position:relative;
  z-index:2;
  display:grid;
  justify-items:center;
  gap:3px;
  padding:8px 16px;
  color:#eef6ff;
  border:1px solid #b1d0ef43;
  border-radius:8px;
  background:#061425d4;
  pointer-events:none;
}
.flight[data-phase="1"] .flight-hud { position:absolute; top:9px; left:9px; justify-items:start; }
.flight-stage-label,.flight-stage-note { font-size:12px; font-weight:700; }
.flight-stage-note:empty { display:none; }
.machine[data-flight] .flight .flight-hud strong {
  font-size:clamp(30px,6vw,55px);
  line-height:1;
  font-variant-numeric:tabular-nums;
  color:#f7fcff;
}
.flight[data-phase="2"] .flight-stage-label { color:#c3f483; }
@media(prefers-reduced-motion:reduce) {
  .machine[data-flight] .flight::before { transform:none;transition:none; }
  .machine[data-flight] .stage .flight-plane { transition:none; }
}
.flight-desk:not([hidden]) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:9px 0; }
.flight-stake { min-width:0; background:#1b283a; border:1px solid var(--line); border-radius:8px; padding:11px; }
.flight-stake h2 { font-size:15px; margin:0 0 8px; }
.flight-amount { display:flex; align-items:center; justify-content:space-between; font-size:13px; gap:8px; }
.flight-amount span { display:flex; align-items:center; gap:6px; color:var(--muted); }
.flight-stake input[type="number"] { width:78px; max-width:100%; border:1px solid #435a74; background:#0d1725; border-radius:5px; color:#f4f8ff; padding:5px 7px; }
.stake-presets { display:flex; gap:5px; margin:8px 0; }
.stake-presets button { flex:1; padding:5px; background:#283b50; border-radius:4px; font-size:12px; }
.stake-presets button:hover { background:#395772; }
.stake-presets button[aria-pressed="true"] { color:#17280f; background:var(--mint); font-weight:700; }
.flight-automation { display:flex; gap:7px 12px; flex-wrap:wrap; align-items:center; font-size:12px; color:#dce7f3; }
.flight-automation label { display:inline-flex; align-items:center; gap:4px; }
.flight-automation input[type="checkbox"] { accent-color:#c3f483; }
.flight-submit { margin-top:8px; width:100%; }
.flight-submit:disabled { opacity:.6; cursor:default; }
.flight-stake-status { min-height:15px; margin:6px 0 0; color:#c4d4e5; font-size:11px; }
.virtual-rtp-note { margin:6px 0 0; color:#b8c7d5; font-size:.78rem; font-variant-numeric:tabular-nums; line-height:1.4; }
.slip-pick-rtp:not([hidden]) { display:block; }
.slip-tabs:has([data-slip-view="picks"][hidden]) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.account-dialog { max-height:calc(100dvh - 28px); overflow:auto; }
.account-dialog form[data-account-route],#player-password-form { display:grid; gap:10px; margin:14px 0 0; }
.account-dialog label { display:grid; gap:5px; color:#c5d2e1; font-size:13px; }
.account-dialog :is(#account-form input,input) {
  min-width:0;
  width:100%;
  border:1px solid var(--line);
  border-radius:6px;
  background:#0c1522;
  color:#f3f7ff;
  padding:9px 10px;
}
.account-dialog :is(#account-form [role="status"],[role="status"]) { margin:0; color:#dbe7f6; font-size:13px; }
.account-dialog [role="status"]:empty { display:none; }
.account-dialog h3 { margin:0; font-size:16px; }
.account-dialog [data-account-section="settings"] form { padding-block:10px; border-top:1px solid var(--line); }
.account-dialog .account-text-button { justify-self:center; background:none; color:var(--mint); padding:6px; text-decoration:underline; }
.account-wallet-actions,.credit-actions { display:flex; flex-wrap:wrap; gap:8px; margin-block:10px; }
.account-wallet-actions button,.credit-actions button { flex:1 1 auto; min-height:40px; }
.credit-panel:not([hidden]) { display:grid; gap:10px; }
#credit-account { max-width:620px; margin-block:14px; border:1px solid var(--line); border-radius:10px; padding:12px; }
.credit-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid var(--line); border-radius:8px; padding:9px 11px; }
.credit-summary span,.credit-summary strong { display:block; }
.credit-summary span,.credit-note { color:var(--muted); font-size:13px; }
.credit-summary strong { font-size:20px; font-variant-numeric:tabular-nums; }
.credit-actions { margin:0; }
.credit-actions [aria-pressed="true"] { color:#ffd0b3; border-color:#855d4d; background:#33241f; }
.credit-panel p,.credit-panel h3 { margin:0; }
.credit-panel [role="status"]:empty { display:none; }
.credit-request-form:not([hidden]) { display:grid; gap:10px; }
.credit-request-form label { display:grid; gap:5px; font-size:13px; color:var(--muted); }
#credit-account input { width:100%; min-width:0; padding:9px 10px; border:1px solid var(--line); border-radius:6px; background:#171619; color:#fff; }
.credit-requests { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.credit-requests li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 8px; padding:8px 9px; border:1px solid var(--line); border-radius:7px; }
.credit-requests strong { font-size:13px; overflow-wrap:anywhere; }
.credit-requests small { grid-column:1/-1; color:var(--muted); font-size:11px; }
.credit-request-status { font-size:11px; align-self:start; padding:2px 6px; border-radius:10px; background:#383033; }
.credit-request-status[data-status=pending] { color:#ffe3b1; }
.credit-request-status[data-status=approved] { color:#a3dfb1; }
.credit-request-status[data-status=rejected] { color:#ffadac; }
.operation-row .password-request { color:#f7cc7d; }
.bonus-form { display:grid; grid-template-columns:1.3fr .7fr 1.4fr auto; gap:9px; align-items:end; margin:12px 0 20px; }
#betslip-limits-form fieldset { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto; align-items:end; gap:9px; margin:0; padding:0; border:0; }
:is(.bonus-form,#betslip-limits-form) label { display:grid; gap:5px; min-width:0; font-size:13px; color:var(--muted); }
:is(.bonus-form,#betslip-limits-form) input { min-width:0; width:100%; padding:8px 9px; border:1px solid var(--line); border-radius:5px; background:#0c1522; color:white; }
.machine[data-flight] .controls { margin-top:8px; }
.flight-history { margin-top:12px; padding:10px; background:#182637; border-radius:8px; border:1px solid var(--line); }
.flight-history h2 { font-size:15px; }
.flight-history ol { display:flex; flex-wrap:wrap; gap:6px; list-style:none; padding:0; margin:7px 0 0; }
.flight-history li { background:#213347; border:1px solid var(--line); border-radius:5px; padding:5px 7px; font-size:11px; color:var(--mint); font-variant-numeric:tabular-nums; }
.racecourse {
  --race-background:url("racecourse-night.jpg");
  --venue-height:clamp(85px,12vw,126px);
  isolation:isolate;
  position:relative;
  overflow:hidden;
  border:1px solid #64717e;
  border-radius:9px;
  background:#243744;
  padding-top:var(--venue-height);
}
.racecourse.dogs-run { --race-background:url("greyhound-venue.png"); }
.racecourse.circuit-sprint { --race-background:url("motorsport-venue.png"); }
.racecourse::before,.racecourse::after {
  content:"";
  position:absolute;
  inset-inline:0;
  top:0;
  height:var(--venue-height);
  z-index:-1;
}
.racecourse::before {
  background-image:var(--race-background);
  background-size:clamp(420px,65vw,800px) auto;
  background-repeat:repeat-x;
  background-position:var(--scenery-pan,0px) 49%;
}
.racecourse::after {
  background-image:repeating-linear-gradient(90deg,#dae8f1 0 3px,#0a192570 3px 5px,transparent 5px 66px),
    linear-gradient(#d3dee3,#748998);
  background-size:100% 17px,100% 3px;
  background-repeat:repeat-x,no-repeat;
  background-position:var(--rail-pan,0px) bottom,0 calc(100% - 11px);
  opacity:.85;
}
.race-surface {
  isolation:isolate;
  position:relative;
  overflow:hidden;
  background:#896846;
}
.race-surface::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background-image:url("race-surfaces.jpg");
  background-size:clamp(620px,88vw,1120px) 300%;
  background-position:var(--track-pan,0px) var(--surface-y,0%);
  background-repeat:repeat-x;
}
.racecourse.dogs-run .race-surface { --surface-y:50%; background:#b09873; }
.racecourse.circuit-sprint .race-surface { --surface-y:100%; background:#374752; }
.racecourse .track {
  background:linear-gradient(0deg,#0b101959,transparent 62%);
  border-bottom:1px solid #dfecf247;
  border-right:0;
}
.race-surface .runner::before {
  content:"";
  position:absolute;
  inset:71% 7% 7%;
  border-radius:50%;
  background:radial-gradient(ellipse,#17120f99,transparent 74%);
  z-index:-1;
}
.racecourse[data-camera] .track { transition:transform .4s ease; }
.racecourse[data-camera="turn"] .track { transform:skewY(-1.25deg); }
.racecourse[data-camera]:not([data-camera="finish"]) .track-meter { border-right-color:transparent; border-image:none; }
.race-map { position:absolute; right:12px; top:8px; width:108px; height:46px; border:2px solid #e6eef78f; border-radius:48%; background:#101c28df; }
.race-dot { position:absolute; width:6px; height:6px; border:1px solid #071018; border-radius:50%; background:#dcf49d; transform:translate(-50%,-50%); }
.race-dot.lane-1 {background:#65cfff}.race-dot.lane-2 {background:#ffcf65}.race-dot.lane-3 {background:#ed87ff}
.race-finish-hud {
  display:grid; gap:6px; padding:8px; border:1px solid #3b3c42; border-radius:8px;
  color:#ebe6e4; background:#151619; font-size:12px; font-variant-numeric:tabular-nums;
}
.race-finish-header {
  display:flex; align-items:center; justify-content:space-between; gap:6px 10px;
  min-height:24px; padding-inline:3px;
}
.race-finish-phase { color:#cbc5c2; }
.race-finish-winner { color:#ffbf7a; font-size:clamp(12px,3.8vw,17px); text-align:right; }
.race-finish-hud[data-winner] { border-color:#9c633b; background:linear-gradient(115deg,#291e19,#151619 75%); }
.race-finish-places {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; list-style:none; margin:0; padding:0;
}
.race-finish-place {
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:2px 6px;
  min-width:0; border:1px solid #3b3c42; border-radius:5px; background:#232428; padding:4px 5px;
}
.race-finish-rank { grid-row:span 2; color:#c9c3bf; font-size:11px; }
.race-finish-place strong { color:#f8f3ec; overflow:hidden; text-overflow:ellipsis; }
.race-finish-place small { color:#c9c3bf; font-size:10px; }
.race-finish-place[data-finished="true"] small { color:#ffcf9b; }
.race-finish-place:first-child[data-finished="true"] { border-color:#a7723d; background:#40281b; }
.racecourse[data-timed-finish] .track-meter {
  --finish-stripe:calc(73% + var(--runner) * .97);
  padding:0; margin-right:var(--runner); border:0;
}
.racecourse[data-timed-finish][data-camera="finish"] .track-meter::after {
  content:""; position:absolute; top:-15px; bottom:-15px; left:var(--finish-stripe); width:10px;
  transform:translateX(-50%); background:conic-gradient(#f6f2ee 25%,#2c3037 0 50%,#f6f2ee 0 75%,#2c3037 0) 0 0 / 10px 10px;
  box-shadow:0 0 0 1px #1c2028,0 0 10px #ffffff3a; pointer-events:none;
}
.racecourse[data-timed-finish] .runner.race-winner {
  z-index:2; filter:drop-shadow(0 0 4px #ffe3a3) drop-shadow(0 0 8px #ff9c48);
}
.racecourse[data-timed-finish] .track:has(.race-winner) {
  background:linear-gradient(90deg,#211a17b0,#e99b5524 72%,transparent);
  border-bottom-color:#ff9d63;
}
.racecourse[data-timed-finish] .track:has(.race-winner) > strong { background:#ffbc76; color:#221209; }
.racecourse[data-finish-replay="true"] .runner.running .runner-sprite { animation-duration:.68s; }
.racecourse.circuit-sprint .runner-sprite { animation:none; }
@media(prefers-reduced-motion:reduce){
  .racecourse::before { background-position:0 49%; }
  .racecourse::after { background-position:0 bottom,0 calc(100% - 11px); }
  .racecourse[data-camera] .track { transform:none;transition:none; }
  .race-surface::before { background-position:0 var(--surface-y,0%); }
}
@media(max-width:820px) {
  aside { display:none; }
  .page { margin-left:0; }
  .page .mobile { display:inline-flex; }
}
@media(max-width:600px) {
  .page header,.play-page header,.operations header { gap:5px; }
  .brand img { width:68px; height:23px; }
  header nav .ui-icon { width:16px; height:16px; }
  header nav :is(button,a) { gap:3px; }
  header nav button { padding-inline:3px; }
  .lobby-feature { grid-template-columns:1fr; gap:7px; }
  .page .lobby-feature .hero { min-height:155px; }
  .lobby-schedule { padding:8px 9px; }
  .lobby-schedule ul { display:grid; grid-template-columns:1fr 1fr; column-gap:10px; }
  .lobby-schedule li a { padding:5px 0; gap:3px; font-size:10px; }
  .quick-games a { grid-template-columns:1fr; gap:4px; }
  .quick-art { width:100%; height:32px; }
  .quick-games strong { font-size:11px; }
  .quick-games small { font-size:8px; letter-spacing:0; }
  .page .toolbar { position:static; }
  .play-page .machine[data-event-phase] .stage,.play-page .machine[data-flight] .stage { padding:3px; }
  .play-page .machine[data-event-phase] .stage:has(.broadcast-screen) { padding:0; }
  .board-heading .secondary { padding:5px 8px; }
  .play-page main { padding-bottom:65px; }
  .flight-stake { padding:8px; }
  .flight-amount { flex-wrap:wrap; gap:4px; }
  .flight-automation { gap:5px; }
  .flight-submit { font-size:12px; padding:6px; }
  .bonus-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #betslip-limits-form fieldset { grid-template-columns:1fr; }
}
