:root {
  --betly-orange:#ff9c48;
  --betly-orange-hover:#ffb677;
  --betly-charcoal:#101011;
  --betly-panel:#171719;
  --betly-raised:#202023;
  --betly-stroke:#37373c;
  --betly-selected:#35251b;
  --betly-selected-line:#73472a;
}
body {
  --bg:var(--betly-charcoal);
  --panel:var(--betly-panel);
  --line:var(--betly-stroke);
  --mint:var(--betly-orange);
  --muted:#b6b2b0;
  --accent-gold:var(--betly-orange);
  color:#faf7f4;
  background:var(--bg);
}
.brand img { filter:hue-rotate(-63deg) saturate(1.25); }
.brand-lockup { width:max-content; flex:none; }
.brand-lockup .brand-virtuals {
  display:block; color:#ffac62; font:800 9px/1 Geist,Arial,sans-serif; text-align:center;
  text-transform:uppercase; letter-spacing:.38em; padding-inline-start:.38em;
}
@media(max-width:530px) {
  .brand-lockup img { width:68px; height:24px; }
  .brand-lockup .brand-virtuals { font-size:7px; }
}
@media(max-width:360px) {
  :is(.page,.play-page) header { padding-inline:6px; gap:4px; }
  :is(.page,.play-page) header .brand-lockup img { width:56px; height:21px; }
  :is(.page,.play-page) header .brand-lockup .brand-virtuals { font-size:6px; }
  :is(.page,.play-page) header nav { gap:4px; font-size:10px; }
  :is(.page,.play-page) header nav .ui-icon { width:11px; height:11px; }
  :is(.page,.play-page) header nav :is(a,button) { padding-inline:2px; }
  :is(.page,.play-page) header > [data-account] { padding:6px 7px; font-size:11px; white-space:nowrap; }
}
aside,.page header,.play-page header,.operations header { background:#141415; }
.page .toolbar { background:#101011f5; }
.primary,.page[data-view="casino"] .hero-actions .primary,.play-page .machine .primary {
  background:var(--betly-orange); color:#231308;
}
.primary:hover,.page[data-view="casino"] .hero-actions .primary:hover,.play-page .machine .primary:hover {
  background:var(--betly-orange-hover); color:#231308;
}
.secondary,.page #categories button,.search,.page .section-head button {
  background:var(--betly-raised); border-color:var(--line); color:#f4efea;
}
.secondary:hover { border-color:var(--betly-orange); color:var(--betly-orange); }
aside button[aria-pressed=true] {
  background:var(--betly-selected); color:var(--betly-orange); box-shadow:inset 2px 0 var(--betly-orange);
}
.page #categories button[aria-pressed=true],.slip-tabs button[aria-pressed=true],
#virtual-switcher a[aria-current=page] { background:var(--betly-selected); border-color:var(--betly-selected-line); color:var(--betly-orange); }
.page .lobby-feature .hero {
  background-image:linear-gradient(90deg,#141312 0%,#141312bc 50%,#14131215 100%),var(--hero-art);
}
.page[data-view="virtuals"] .lobby-feature .hero {
  border-color:var(--line);
  background-image:linear-gradient(90deg,#141312 0%,#151312d9 33%,#15131222 100%),url("football-stadium.jpg");
}
.page :is(.lobby-schedule,.quick-games a,.game),.page[data-view="virtuals"] :is(.lobby-schedule,.virtual-card) {
  background:var(--panel); border-color:var(--line);
}
.page :is(.game,.casino-card,.virtual-card):hover { border-color:var(--betly-orange); }
.page .quick-games :is(small,b),.page footer strong,.page[data-view="virtuals"] .lobby-schedule time,
.page[data-view="casino"] .section-head button { color:var(--betly-orange); }
.mobile-footer,dialog { background:var(--panel); border-color:var(--line); }
.mobile-footer button,.mobile-footer button span { color:#e7dfd8; }
.mobile-footer b { background:var(--betly-orange); color:#231308; }
.play-page .machine,.play-page .machine[data-event-phase]:not([hidden]),.play-page .machine[data-flight] {
  --accent:var(--betly-orange); --glow:var(--betly-stroke); --mint:var(--betly-orange);
  color:#faf7f4; background:var(--panel); border-color:var(--line);
}
.play-page .machine .eyebrow,.play-page .event-clock { color:var(--betly-orange); }
.play-page .machine :is(.balance small,details),.play-page .controls label { color:var(--muted); }
.play-page .machine .stage,.play-page .machine[data-event-phase] .stage {
  background:radial-gradient(ellipse at center,#222124,#121214); border-color:var(--line);
}
.play-page .event-boards section,#event-boards .fixture-panel,#featured-market:not([hidden]),
.flight-stake,.flight-history { background:var(--panel); border-color:var(--line); }
.play-page .event-boards :is(.fixture-tabs,.league-heading),.play-mode:not([hidden]),
.flight-history li,.fixture-extra-markets,.extra-market-tabs button,.fixture-market-toggle {
  background:var(--betly-raised); border-color:var(--line); color:#eee8e2;
}
.market-price,.football-odds .football-odd { background:var(--betly-raised); border-color:var(--line); color:#faf7f4; }
.market-price:hover,.football-odds .football-odd:hover,.fixture-market-toggle:hover { border-color:var(--betly-orange); }
.market-price[aria-pressed=true],.football-odds .football-odd[aria-pressed=true],.play-mode a[aria-current=page],
.stake-presets button[aria-pressed=true],.extra-market-tabs button[aria-pressed=true] {
  background:var(--betly-orange); border-color:var(--betly-orange); color:#231308;
}
.football-odd[aria-pressed=true] :is(.odd-label,.odd-price) { color:#231308; }
.fixture-result-market .football-odd[aria-pressed=true] .odd-label,
.featured-football-odds .market-price[aria-pressed=true] > span { color:#582704; }
.fixture-result-market .odd-label,.featured-football-odds .market-price > span { color:#ffb77d; }
.fixture-market-toggle[aria-expanded=true] { color:var(--betly-orange); border-color:var(--betly-selected-line); background:var(--betly-selected); }
.machine .match-centre,.fixture-with-score .fixture-score,.centre-scoreboard,.receipt-totals div,
.slip-tabs,.slip-row,.slip-history-row,#slip-summary { background:#141416; border-color:var(--line); }
:is(.centre-state,.receipt-badge):not([data-result=lost]):not([data-result=mixed]) {
  background:var(--betly-raised); border-color:var(--line); color:#e7dfd8;
}
.centre-state[data-state=live],.centre-state[data-state=final],.receipt-badge[data-result=won],
#arena-data[aria-pressed=true] { background:var(--betly-selected); border-color:var(--betly-selected-line); color:var(--betly-orange); }
.flight[data-phase="2"] .flight-stage-label,.centre-score,.fixture-status,.receipt-result,
.fixture-with-score .fixture-score { color:var(--betly-orange); }
.flight-automation input[type=checkbox],.operations input[type=checkbox] { accent-color:var(--betly-orange); }
.goal-moment + .match-caption,.broadcast-goal .broadcast-caption,.goal-popup:not([hidden]) {
  background:var(--betly-orange); color:#231308;
}
.football-period-banner {
  position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); z-index:5;
  min-width:min(72%,200px); max-width:90%; display:grid; gap:4px; padding:12px 18px; text-align:center;
  border:1px solid #ff9c4880; border-radius:9px; color:#faf7f4; background:#111112ef; box-shadow:0 8px 30px #0008;
}
.football-period-banner strong,.football-result-banner .result-period {
  color:var(--betly-orange); font-size:clamp(21px,5vw,34px); font-weight:800; letter-spacing:-.035em;
}
.football-period-banner span { font-size:13px; font-weight:650; }
.football-result-banner { width:100%; display:grid; place-content:center; justify-items:center; gap:7px; min-height:125px; padding:12px 5px; text-align:center; }
.football-result-banner .result-score { font-size:clamp(18px,4vw,32px); font-variant-numeric:tabular-nums; }
.result-half { color:var(--muted); font-size:12px; }
.fixture-period-score { display:inline-flex; align-items:center; gap:3px; font-size:11px; }
.fixture-period-score:first-child { margin-right:7px; }
.fixture-period-score:not(:only-child) small { font-size:9px; color:var(--muted); }
#slip-form select,.flight-stake input[type=number],.account-dialog :is(#account-form input,input),#slip-stake {
  background:#121213; border-color:var(--line); color:#faf7f4;
}
#slip-form #slip-bet-type { min-height:36px; padding:5px 8px; margin:0 0 8px 5px; border-radius:6px; }
.operations { --ops-background:var(--betly-charcoal); --surface:var(--betly-panel); --outline:var(--betly-stroke); --ops-blue:#a2a3ad; }
.operations .operation-nav button:hover,.ops-table tbody tr:hover { background:var(--betly-raised); }
.operations .operation-nav button[aria-pressed=true],.ops-table [data-selected=true] {
  background:var(--betly-selected); border-color:var(--betly-selected-line); color:var(--betly-orange);
}
.ops-environment,.ops-pill,.ops-table thead tr > * { background:var(--betly-raised); color:#e5dfd9; }
.ops-table button { color:var(--betly-orange); }
.rtp-legend span:last-child::before,.rtp-bar-group span:last-child { background:var(--betly-orange); }
.rtp-filters :is(input,select),#rtp-trend-view,.operations #rtp-settings-form :is(input,select) {
  background:#121213; border-color:var(--line); color:#faf7f4;
}
#slot-rtp-data { margin-top:14px; }
#slot-rtp-status:empty { display:none; }
.slot-settings { display:flex; justify-content:space-between; align-items:center; gap:10px 16px; flex-wrap:wrap; margin:12px 0; }
.slot-settings p { margin:5px 0 0; font-size:13px; }
#slot-rtp-form input { width:112px; }
.ops-table td small,.ops-table th small { display:block; color:var(--muted); padding-top:2px; font-size:11px; }
#player-record { width:min(980px,calc(100% - 22px)); padding:clamp(12px,2.1vw,26px); overflow-x:hidden; }
.operations .accounting-nav { margin:0; }
.accounting-filters { margin:14px 0; }
#accounting-status:empty,#exposure-status:empty { display:none; }
.accounting-panel { margin:12px 0; }
.accounting-daily { max-height:285px; }
#accounting-detail { width:min(660px,calc(100% - 22px)); }
#accounting-detail-results ul { list-style:none; padding:0; margin:0; }
#accounting-detail-results li { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; padding:7px 0; border-top:1px solid var(--line); font-size:13px; }
#accounting-detail-results li span { color:var(--muted); }
#player-record > p { margin:6px 0 12px; }
.player-record-forms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:10px 0; }
.player-record-forms form { display:grid; align-content:start; gap:8px; margin:0; }
.player-record-forms button { justify-self:start; }
.player-record-forms label select { padding:7px 9px; border-radius:6px; color:inherit; background:#121213; border:1px solid var(--line); }
#player-history-tabs { display:flex; gap:5px; overflow:auto; padding-bottom:8px; white-space:nowrap; }
#player-history-tabs button { padding:7px 9px; border-radius:6px; font-size:13px; }
#player-history-tabs [aria-pressed=true] { background:var(--betly-selected); color:var(--betly-orange); }
.player-history-ticket { padding:7px 0; border-bottom:1px solid var(--line); }
.player-history-ticket summary { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:8px; cursor:pointer; }
.player-history-ticket small { display:block; color:var(--muted); margin-top:2px; }
.player-history-ticket ul { margin:6px 0; padding-inline-start:20px; font-size:13px; }
.player-history-pagination { display:flex; gap:6px; margin-top:8px; }
.player-history-pagination button:disabled { opacity:.4; }
@media(max-width:585px) {
  .player-record-forms { grid-template-columns:minmax(0,1fr); }
  .player-history-ticket summary { grid-template-columns:minmax(0,1fr) auto; }
  .player-history-ticket summary > small { grid-column:1/-1; }
}
