/* BetGr9 theme — loaded after app.css. Red & black (default) or red & white (data-theme="light").
   Condensed upright headings, compact BET NOVA-sized text; mobile first, wider layout on desktop. */
:root {
  --g: #e3161c;
  --g-2: #ff3b3b;
  --g-dark: #a30d12;
  --g-soft: rgba(227, 22, 28, .14);
  --brand: var(--g);
  --brand-2: var(--g-2);
  --brand-grad: linear-gradient(90deg, #a60404, #e01717);
  --brand-head: #0b0c0e;
  --bg: #0a0a0c;
  --bg-2: #050506;
  --surface: #141417;
  --surface-2: #1c1c20;
  --surface-3: #25252a;
  --border: #26262c;
  --text: #f5f6f7;
  --muted: #8d9097;
  --green: var(--g);
  --green-2: var(--g-dark);
  --odd-bg: var(--surface-3);
  --odd-text: var(--g);
  --gold: #f5c518;
  --radius: 12px;
  --max: 560px;
}

/* ---------- frame ---------- */
.app { padding-bottom: 24px; background: var(--bg); }
.hdr { position: sticky; top: 0; z-index: 30; background: radial-gradient(120% 140% at 30% 0%, #2a0808 0%, #0b0c0e 55%); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.topbar { position: static; background: none; box-shadow: none; padding: 8px 10px 6px; gap: 8px; justify-content: flex-start; }
.topbar .brand { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
.topbar .brand img { height: 21px; width: auto; display: block; }
.topbar .top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sq-ic { width: 31px; height: 31px; flex: none; border-radius: 9px; background: rgba(255, 255, 255, .09); display: inline-flex; align-items: center; justify-content: center; color: var(--g); font-size: 11px; font-weight: 800; }
.sq-ic .ic { width: 17px; height: 17px; }
.sq-ic.az { color: #cfd2d6; font-size: 10.5px; letter-spacing: -.3px; }
.sq-ic.mybets { width: auto; padding: 0 7px; gap: 4px; color: #cfd2d6; font-size: 9.5px; font-weight: 600; line-height: 1.05; text-align: left; }
.sq-ic.mybets .ic { width: 15px; height: 15px; color: var(--g); }
.btn-join, .btn-login { height: 30px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; }
.btn-join { background: var(--g); color: #fff; }
.btn-login { background: rgba(255, 255, 255, .09); color: var(--g); }
.bal-chip { display: inline-flex; align-items: center; gap: 6px; height: 31px; padding: 0 4px 0 9px; border-radius: 16px; background: rgba(255, 255, 255, .09); color: var(--g); font-size: 11.5px; font-weight: 700; }
.bal-chip .avatar { width: 24px; height: 24px; }

.topnav { gap: 18px; padding: 2px 12px 0; }
.topnav a { position: relative; flex: none; padding: 7px 0 9px; font-size: 14px; font-weight: 700; color: #e9eaec; white-space: nowrap; }
.topnav a.on { color: var(--g); }
.topnav a.on::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 3px; height: 3px; border-radius: 3px; background: var(--g); }
.topnav .games-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; background: linear-gradient(180deg, #ffd34d, #e89a00); color: #2a1600; font-size: 11.5px; font-weight: 900;  letter-spacing: .3px;  }

.subhead { top: 82px; background: var(--bg); border-bottom-color: var(--border); }
.chrome-plain .subhead, .chrome-none .subhead { top: 0; }
.app:not(.chrome-full) .subhead { top: 0; }

/* ---------- panels ---------- */
.panel { margin: 8px 8px 10px; background: var(--surface); border-radius: 16px; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: linear-gradient(90deg, rgba(196, 6, 6, .22), rgba(196, 6, 6, 0) 70%); }
.panel-head h3 { font-size: 15px; font-weight: 900;  letter-spacing: .3px; color: #fff; }
.ph-ic { width: 24px; height: 24px; border-radius: 7px; background: var(--g); color: #fff; display: inline-flex; align-items: center; justify-content: center;  }
.ph-ic .ic { width: 15px; height: 15px; }
.ph-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; }
.ph-more .ic { width: 13px; height: 13px; }

/* hero carousel */
.hero { margin: 8px 8px 0; position: relative; }
.hero-track { border-radius: 14px; scroll-snap-type: x mandatory; }
.slide { position: relative; flex: none; width: 100%; aspect-ratio: 2.35 / 1; scroll-snap-align: start; overflow: hidden; background: #111; }
.slide img { position: absolute; right: 0; top: 0; height: 100%; width: 72%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #07150c 32%, rgba(7, 21, 12, .75) 52%, rgba(7, 21, 12, 0) 80%); }
.slide-txt { position: absolute; z-index: 1; left: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; max-width: 52%; }
.slide-txt .kicker { align-self: flex-start; padding: 2px 7px; border-radius: 4px; background: var(--g); color: #fff; font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.slide-txt b { font-size: 20px; line-height: 1.05; font-weight: 900;  text-transform: uppercase; }
.slide-txt .cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; padding: 4px 10px; border-radius: 6px; background: #fff; color: #07150c; font-size: 10.5px; font-weight: 900;  text-transform: uppercase; }
.slide-txt .cta .ic { width: 11px; height: 11px; }
.dots { position: absolute; bottom: 7px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; }
.dots i.on { width: 14px; border-radius: 3px; background: var(--g); }

.quick { display: grid; grid-template-columns: repeat(6, 1fr); padding: 11px 4px 10px; margin-top: 8px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; color: #e4e6e9; text-align: center; line-height: 1.15; }
.quick .ic { width: 25px; height: 25px; color: var(--g); }

/* casino tiles */
.gtiles { gap: 8px; padding: 10px; }
.gtile { position: relative; flex: none; width: 74%; max-width: 330px; height: 96px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 0 14px; scroll-snap-align: start; }
.gtile.aviator { background: radial-gradient(120% 140% at 0% 50%, #5a0808, #1f0505 70%); border: 1px solid rgba(196, 6, 6, .35); }
.gtile.lucky { background: #120d1d; }
.gtile.lucky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.gtile > div { position: relative; display: flex; flex-direction: column; gap: 6px; }
.gtile b { font-size: 19px; font-weight: 900;  }
.gt-plane { font-size: 40px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.gt-play { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; padding: 3px 9px; border-radius: 12px; background: rgba(255, 255, 255, .14); font-size: 10.5px; font-weight: 700; }
.gt-play .ic { width: 11px; height: 11px; }

/* featured */
.lchips { gap: 6px; padding: 10px 10px 4px; }
.lchip { flex: none; height: 32px; min-width: 38px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 700; color: #cfd2d6; }
.lchip img { width: 20px; height: 20px; object-fit: contain; }
.lchip .ic { width: 15px; height: 15px; }
.lchip.big { padding: 0 12px; font-size: 12.5px; color: #fff; }
.lchip.on { border-color: var(--g); }
.lchip.on .ic { color: var(--g); }
.fcards { gap: 8px; padding: 8px 10px 6px; }
.fcard { flex: none; width: 82%; max-width: 360px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 9px 10px 10px; scroll-snap-align: start; position: relative; overflow: hidden; }
.fcard::before { content: ''; position: absolute; right: -10px; top: 6px; width: 120px; height: 90px; background: radial-gradient(circle, rgba(196, 6, 6, .12), transparent 70%); pointer-events: none; }
.fcard-top { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.fcard-mid { display: flex; align-items: center; gap: 8px; }
.fteams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.fteams div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fteams span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwhen { text-align: right; display: flex; flex-direction: column; }
.fwhen b { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.fwhen span { color: var(--muted); font-size: 11px; }
.fodds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 9px; }
.more-events { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 11px; color: var(--muted); font-size: 12.5px; }
.more-events .ic { width: 13px; height: 13px; }

/* ---------- Live / Sports sections ---------- */
.sec { padding-bottom: 2px; }
.sec-head { display: flex; align-items: stretch; background: #1c1d20; }
.sec-title { flex: none; display: flex; align-items: center; padding: 8px 16px 8px 12px; font-size: 22px; font-weight: 900;  letter-spacing: -.3px; color: #fff;
  background: linear-gradient(100deg, #4d0606, #260707 85%); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.live-sec .sec-title::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--g); margin: -10px 0 0 3px; box-shadow: 0 0 0 3px rgba(196, 6, 6, .25); animation: blink 1.4s infinite; }
.stabs { gap: 16px; padding: 0 12px; align-items: center; }
.stabs button { position: relative; flex: none; padding: 12px 0 11px; font-size: 13.5px; font-weight: 700; color: #aeb1b7; }
.stabs button.on { color: var(--g); }
.stabs button.on::after { content: ''; position: absolute; left: 15%; right: 15%; bottom: 5px; height: 3px; border-radius: 3px; background: var(--g); }
.utabs { display: flex; gap: 20px; padding: 0 12px; background: #1c1d20; border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.utabs button { flex: none; padding: 10px 0; font-size: 13px; font-weight: 700; color: #aeb1b7; border: 0; }
.utabs button.on { color: var(--g); background: none; }
.mchips { gap: 6px; padding: 8px 10px; }
.mchips button { flex: none; height: 28px; padding: 0 12px; border-radius: 15px; background: var(--surface-3); color: #dcdee2; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.mchips button.on { background: var(--g); color: #fff; font-weight: 800; }
.mchips button .ic { width: 13px; height: 13px; }
.dayrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 14px; background: #1c1d20; font-size: 12.5px; font-weight: 700; }
.dayrow i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11px; }
.dayrow .cols { display: grid; width: 56%; max-width: 270px; color: var(--muted); font-weight: 500; text-align: center; }
.dayrow .cols.c3 { grid-template-columns: repeat(3, 1fr); }
.dayrow .cols.c2 { grid-template-columns: repeat(2, 1fr); }
.lbar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; color: #c4c7cc; font-size: 12px; background: var(--bg); }
.lbar img { width: 18px; height: 18px; object-fit: contain; border-radius: 50%; }
.lbar .ic { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.globe { font-size: 15px; }
.cards { padding: 0 0 2px; }

/* match card */
.mcard { margin: 6px 8px; padding: 8px 10px 7px; border-radius: 12px; background: #1c1d20; }
.mcard.live { box-shadow: none; }
.mcard-top { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); min-width: 0; }
.mtime { flex: none; }
.mtime.live { color: var(--g); font-weight: 700; }
.mleague { color: #a6a9af; }
.mcard-top .stat { margin-left: auto; color: #6f7279; display: inline-flex; }
.mcard-top .stat .ic { width: 15px; height: 15px; }
.mcard-body { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.mcard .teams { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.75; color: #fff; }
.mcard .teams > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mcard .teams span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .teams.scores b { margin-left: auto; padding-left: 6px; color: var(--g); font-weight: 700; }
.crest { width: 16px; height: 16px; object-fit: contain; flex: none; }
.mcard .odds { display: grid; gap: 5px; width: 56%; max-width: 270px; flex: none; }
.mcard .odds.c3 { grid-template-columns: repeat(3, 1fr); }
.mcard .odds.c2 { grid-template-columns: repeat(2, 1fr); }
.mcard-foot { display: flex; align-items: center; gap: 6px; margin-top: 3px; min-height: 20px; }
.mcard-foot .more { display: inline-flex; align-items: center; color: var(--muted); font-size: 11.5px; }
.mcard-foot .more .ic { width: 12px; height: 12px; }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 4px; font-size: 9px; font-weight: 800;  }
.badge.hot { background: #3a2a14; color: #ff9b2f; }
.badge.hot .ic { width: 12px; height: 12px; }
.badge.best { border: 1px solid var(--g); color: var(--g); background: var(--g-soft); }

/* odds buttons */
.odd { height: 40px; border-radius: 8px; background: var(--surface-3); color: var(--g); font-size: 14px; font-weight: 800; letter-spacing: .2px; }
.odd b { font-weight: 800; }
.odd.wide { justify-content: space-between; padding: 0 10px; height: 38px; }
.odd.wide em { color: #9da0a6; font-style: normal; font-weight: 500; font-size: 12.5px; }
.odd.sel { background: var(--g); color: #fff; }
.odd.sel em { color: #fff; }
.odd.lock { color: #6f7279; background: var(--surface-2); }
.odd.up { box-shadow: inset 0 3px 0 var(--g); }
.odd.down { box-shadow: inset 0 -3px 0 #ff4d4d; }
.odd .arrow { display: none; }

.soon-head { margin: 8px 8px 2px; border-radius: 10px; background: var(--g-soft); }
.country { margin: 0 8px; border-bottom: 1px solid var(--border); }

/* ---------- footer ---------- */
.site-footer { margin: 14px 0 0; padding: 22px 14px 26px; border-radius: 22px 22px 0 0; background: #141518; }
.f-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.f-logo { height: 22px; width: auto; display: block; margin-bottom: 10px; }
.f-text { color: #8d9097; font-size: 11.5px; line-height: 1.5; margin: 0 0 10px; }
.f-18 { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #e04343; color: #e04343; font-size: 10.5px; font-weight: 700; margin-bottom: 10px; }
.site-footer h5 { font-size: 14px; font-weight: 700; margin: 4px 0 10px; color: #fff; letter-spacing: 0; }
.site-footer .f-links { display: flex; flex-direction: column; gap: 11px; margin-bottom: 16px; }
.site-footer .f-links a { color: #8d9097; font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.site-footer .f-links .ic { width: 16px; height: 16px; color: var(--g); }
.pay-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.pay-grid span { padding: 4px 6px; border-radius: 4px; background: #fff; color: #222; font-size: 9px; font-weight: 800; }
.f-legal { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); color: #6f7279; font-size: 11px; text-align: center; }

/* ---------- betslip button + sheet ---------- */
.slip-fab { right: max(12px, calc(50% - var(--max) / 2 + 12px)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 13px; background: #1a1b1e; border: 2px solid var(--g); color: var(--g); box-shadow: 0 8px 22px rgba(0, 0, 0, .55); gap: 1px; }
.slip-fab-count { width: auto; height: auto; background: none !important; color: var(--g) !important; font-size: 21px; font-weight: 900; line-height: 1; }
.slip-fab-chev { display: none; }
.slip-fab-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.rec-bar { bottom: 0; }

.sheet.slip { background: #f4f5f6; color: #1b1c1f; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --max: 1180px; }
  body { font-size: 13px; }
  .topbar { padding: 10px 24px 6px; }
  .topbar .brand img { height: 26px; }
  .topnav { padding: 2px 24px 0; gap: 26px; }
  .topnav a { font-size: 15px; }
  .subhead { top: 92px; }
  #view { padding: 0 16px; }
  .hero { margin: 12px 0 0; }
  .slide { aspect-ratio: 3.6 / 1; }
  .slide img { width: 60%; }
  .slide-txt { left: 34px; }
  .slide-txt b { font-size: 34px; }
  .quick { margin: 12px 0; }
  .quick .ic { width: 28px; height: 28px; }
  .quick a { font-size: 12px; }
  .panel { margin: 12px 0; }
  .gtile { width: 300px; }
  .fcard { width: 320px; }
  .mcard .odds, .dayrow .cols { width: 46%; max-width: 420px; }
  .odd { height: 42px; font-size: 15px; }
  .mcard { margin: 6px 10px; }
  .site-footer { border-radius: 22px; margin: 16px 0 0; padding: 28px 32px; }
  .f-cols { grid-template-columns: 1.4fr 1fr; gap: 40px; }
  .slip-fab { right: 24px; }
}
@keyframes blink { 50% { opacity: .35; } }
.live-sec, .sports-sec { border-left: 0; }
.panel.featured { margin: 8px 8px 10px; padding: 0; background: var(--surface); }
.fodds { padding: 0; }
.lgroup .mleague { display: none; }

/* ---------- match details ---------- */
.md-league { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: #17181b; color: #b9bcc1; font-size: 12px; }
.md-league img { width: 18px; height: 18px; object-fit: contain; }
.md-league .badge { flex: none; }
.md-hero { padding: 14px 12px 16px; text-align: center; background: radial-gradient(80% 120% at 50% 0%, #300808, #0e0f11 70%); border-radius: 0 0 20px 20px; }
.md-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.md-teams span:first-child { text-align: right; }
.md-teams span:last-child { text-align: left; }
.md-teams i { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 500; }
.md-score { font-size: 22px; color: var(--g); }
.md-when { margin-top: 10px; color: #c9ccd0; font-size: 12.5px; }
.md-when.live { color: var(--g); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.md-sub { margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.md-tabs { display: flex; justify-content: space-around; margin-top: 8px; background: #17181b; border-radius: 18px 18px 0 0; }
.md-tabs button { position: relative; padding: 11px 6px; font-size: 14.5px; font-weight: 700; color: #b9bcc1; }
.md-tabs button.on { color: var(--g); }
.md-tabs button.on::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 4px; height: 3px; border-radius: 3px; background: var(--g); }
.route-match .mchips { background: #17181b; }
.mkts { padding: 2px 0 10px; }
.mkt { margin: 6px 8px; border-radius: 12px; background: #1c1d20; border: 0; overflow: hidden; }
.mkt summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.mkt summary::-webkit-details-marker { display: none; }
.mkt summary > .ic:first-child { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.mkt:not([open]) summary > .ic:first-child { transform: rotate(-90deg); }
.mkt summary .mkt-ic { margin-left: auto; width: 15px; height: 15px; color: #6f7279; }
.mkt-grid { display: grid; gap: 6px; padding: 0 10px 10px; }
.mkt-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.mkt-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.mkt-grid .odd.wide { height: 40px; }
@media (min-width: 900px) {
  .md-hero { padding: 26px 12px 28px; }
  .md-teams { font-size: 22px; }
  .mkt-grid.g3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- betslip (dark header, light body, green Place Bet bar) ---------- */
.sheet.slip { background: #f3f4f5; color: #17181b; border: 0; border-radius: 18px 18px 0 0; }
.slip-top { grid-template-columns: auto auto auto 1fr auto; background: #232428; color: #fff; padding: 10px 14px; border-radius: 18px 18px 0 0; }
.slip-count { width: 26px; height: 26px; background: var(--g); color: #fff; font-size: 13px; font-weight: 900; }
.slip-title { font-size: 17px; font-weight: 800; }
.slip-bal { color: var(--g); font-size: 14px; font-weight: 700; justify-self: end; }
.slip-close { color: #fff; }
.mode-toggle { background: #34353a; }
.mode-toggle button.on { background: var(--g); color: #fff; }
.slip-tabs { background: #2c2d31; }
.slip-tabs button { color: #dfe1e4; }
.slip-tabs button.on { color: var(--g); }
.slip-panel { background: #fff; color: #17181b; border-bottom-color: #e3e5e8; }
.slip .muted, .slip .slip-market, .slip .slip-meta { color: #6d7077; }
.rec-head { background: #fff; color: #17181b; border-bottom: 1px solid #e3e5e8; }
.rec-sub { color: #6d7077; }
.code-box { background: #fff; border-color: #e3e5e8; color: #17181b; }
.code-input { background: #f3f4f5; border-color: #d9dbdf; }
.code-input input { color: #17181b; }
.code-input button { background: var(--g); color: #fff; font-weight: 800; }
.slip-empty h4 { color: #17181b; }
.slip-empty p { color: #6d7077; }
.slip-sel-head { color: #17181b; }
.slip-sels { background: #fff; padding: 0 10px; }
.slip-sel { border-bottom-color: #eceef0; }
.slip-x { color: #9a9da3; }
.slip-pick { color: #17181b; }
.slip-odd { color: #17181b; font-weight: 800; }
.slip-odd.up { color: var(--g-dark); }
.slip-teams { color: #3a3c41; }
.slip-summary { background: #f3f4f5; color: #17181b; padding: 12px 16px 0; }
.slip-summary .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.slip-summary .row b { font-weight: 800; }
.slip-summary .green, #slip-win { color: #17181b !important; font-size: 16px; }
.stake-input { background: #fff; border: 1px solid #c9ccd1; border-radius: 6px; }
.stake-input input, .stake-input em { color: #17181b; }
.slip .quick-stakes .chip { background: #fff; color: #17181b; border: 1px solid #d9dbdf; }
.accept-odds { color: #3a3c41; }
.slip-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 0; margin: 12px -16px 0; }
.slip-actions .btn { height: 52px; border-radius: 0; font-size: 15px; font-weight: 800; }
.slip-actions .btn-dark { background: #c9ccd1; color: #17181b; }
.slip-actions .btn-green { background: var(--g); color: #fff; }
.sim-note { color: #6d7077; }
@media (min-width: 900px) {
  /* desktop: the betslip opens as a panel on the right instead of a bottom sheet */
  .overlay-sheet#slip-sheet { justify-content: flex-end; align-items: stretch; }
  #slip-sheet .sheet.slip { max-width: 400px; max-height: none; height: 100%; border-radius: 0; }
  #slip-sheet .slip-top { border-radius: 0; }
}
/* titled pages have no top tabs: the back bar sits right under the header */
.app.chrome-full .subhead { top: 47px; }
.quick { max-width: none; width: auto; }
.code-input input { background: transparent; }
@media (min-width: 900px) {
  .app.chrome-full .subhead { top: 46px; }
  .quick { margin-left: 0; margin-right: 0; }
}

/* ---------- login / sign-up (msport-style card with the B mark) ---------- */
.auth-wrap { background: radial-gradient(90% 60% at 50% 0%, #2a0808 0%, #08090a 60%); padding: 70px 14px 28px; align-items: flex-start; }
.auth-card { background: #17181b; border: 1px solid #26272c; border-radius: 18px; padding: 58px 20px 22px; max-width: 420px; margin: 0 auto; }
.auth-mark { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); width: 92px; filter: drop-shadow(0 8px 18px rgba(196, 6, 6, .25)); }
.auth-mark img { width: 100%; height: auto; display: block; }
.auth-close { position: fixed; top: 14px; right: 14px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.auth-close .ic { width: 22px; height: 22px; }
.auth-title { font-size: 21px; font-weight: 600; margin: 4px 0 22px; }
.ofield-label { background: #17181b !important; left: 18px; font-size: 12px; color: #c3c5cb; }
.ofield-box { height: 50px; border-radius: 26px; border: 1.5px solid #3a3b40; }
.ofield-box:focus-within { border-color: var(--g); }
.ofield:focus-within .ofield-label { color: var(--g); }
.auth-card .btn-green { height: 50px; border-radius: 26px; font-size: 16px; font-weight: 800; background: var(--g); color: #fff; }
.auth-card .link-green, .auth-alt a, .link-green { color: var(--g); }
.auth-card .country-pick button.on { border-color: var(--g); background: var(--g-soft); color: #fff; }
.phone-box { border-radius: 26px; border: 1.5px solid #3a3b40; }
.phone-box:focus-within { border-color: var(--g); }
.auth-card .plain-label { color: #c3c5cb; }

/* ---------- Sports / Live list page ---------- */
.az-head { margin-top: 8px; }
.sec-title.is-live::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--g); margin: -10px 0 0 3px; box-shadow: 0 0 0 3px rgba(196, 6, 6, .25); animation: blink 1.4s infinite; }
.route-az .utabs { border-radius: 0; }
.az-filters { padding: 8px 8px 4px; background: #17181b; }
.az-filters .search-field { background: var(--surface-3); border: 0; border-radius: 20px; height: 38px; }
.filter-row { gap: 6px; margin-top: 6px; }
.filter-row select, .filter-row input { background: var(--surface-3); border: 0; border-radius: 10px; height: 36px; color: #e4e6e9; }
.live-head .live-dot { margin-right: 5px; }
.show-more { margin: 8px; width: calc(100% - 16px); background: var(--surface-3); border-radius: 10px; }
.code-box.big { background: #17181b; border: 1px solid var(--border); border-radius: 14px; }
.code-box.big .code-input { background: var(--surface-3); border-color: transparent; }
.code-box.big .code-input input { color: #fff; }
.code-row.card { background: #1c1d20; border: 0; border-radius: 12px; }
.btn-outline-green { border-color: var(--g); color: var(--g); }

/* ---------- My Bets / history / ticket ---------- */
.route-open-bets .ob-top { padding: 10px 12px 6px; }
.route-open-bets .ob-bal { display: none; }
.seg { margin: 4px 8px 0; background: #17181b; border-radius: 14px 14px 0 0; overflow: hidden; }
.seg button { border-radius: 0; color: #aeb1b7; font-weight: 700; position: relative; }
.seg button.on { background: none; color: var(--g); }
.seg button.on::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 6px; height: 3px; border-radius: 3px; background: var(--g); }
#ob-list { padding: 8px; }
.bet.card { background: #1c1d20; border: 0; border-radius: 12px; }
.hb-won { background: linear-gradient(90deg, #930404, #c40606); }
.hb-row b.hb-ret { color: var(--g); }
.hb-day { border-top-color: var(--border); }
.rec-bar { background: #17181b; border-top: 1px solid var(--border); }
.rec-ic { background: var(--g); color: #fff; }
.tk-card { background: radial-gradient(90% 120% at 50% 0%, #300808, #17181b 70%); border: 0; border-radius: 16px; }
.tk-status.is-good, .tk-return b.pos, .pos { color: var(--g); }
.tk-legs.card { background: #1c1d20; border: 0; border-radius: 14px; }
.tk-leg.r-won .tk-leg-ic { background: var(--g); }
.tk-leg.r-won .tk-pick { background: var(--g-soft); }
.tk-foot.card { background: #1c1d20; border: 0; border-radius: 14px; }
.btn-gold.tk-show { background: linear-gradient(180deg, #ffd34d, #e89a00); color: #2a1600; }

/* header: logged in on a phone -> just the B mark, so balance and My Bets fit */
.topbar .brand .mark { display: none; }
@media (max-width: 480px) {
  .topbar .brand.in .full { display: none; }
  .topbar .brand.in .mark { display: block; height: 24px; }
}
.bal-chip { white-space: nowrap; border: 0; }
.bal-chip span { white-space: nowrap; }
.live-head { color: var(--g); }
.live-head .live-dot { background: var(--g); box-shadow: 0 0 0 3px rgba(196, 6, 6, .25); }
.country-pick button.on { box-shadow: 0 0 0 3px rgba(196, 6, 6, .18) !important; }

/* ---- batch 3: wallet / deposit / KYC / manual checkout in green ---- */
.wallet-card { background: linear-gradient(135deg, #7a0606, #0b1a10); box-shadow: 0 12px 30px -14px rgba(196, 6, 6, .55); }
.wallet-card small { color: #f56e6e; }
.dep-promo { background: linear-gradient(90deg, rgba(196, 6, 6, .18), rgba(196, 6, 6, .05)); border-color: rgba(196, 6, 6, .35); }
.pw-icon.kyc { background: var(--g-soft); color: var(--g); }
.pp-btn { background: var(--g); color: #fff; }
.pp-btn.ghost { background: #f2f2f2; color: #222; }
.pp-copy { background: var(--g); color: #fff; }
.pp-spin { border-color: var(--g); border-left-color: transparent; }
.pp-bang { background: var(--g); color: #fff; }
.pp-warn svg, .pp-note svg { color: var(--g); }
.pp-logo { width: auto; height: 18px; }

/* ---- batch 4: casino games, promotions ---- */
.gpage { margin-top: 8px; }
.gfeat { position: relative; display: flex; align-items: center; gap: 12px; width: calc(100% - 20px); margin: 10px 10px 0; padding: 12px 14px; border-radius: 12px; text-align: left; color: #fff; background: radial-gradient(120% 160% at 0% 50%, #5a0808, #1f0505 70%); border: 1px solid rgba(196, 6, 6, .35); }
.gfeat > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gfeat b { font-size: 19px; font-weight: 900;  }
.gfeat small { color: #d95c5c; font-size: 11px; }
.gtag { align-self: flex-start; padding: 1px 6px; border-radius: 4px; background: #fbbf24; color: #3a2a00; font-size: 9.5px; font-weight: 800; }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.gcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: #fff; }
.gcard:hover { border-color: rgba(196, 6, 6, .5); }
.gc-art { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle at 50% 35%, rgba(196, 6, 6, .28), rgba(196, 6, 6, .05)); }
.gcard b { font-size: 12.5px; font-weight: 800; }
.gc-pl { display: inline-flex; align-items: center; gap: 3px; color: var(--g); font-size: 10px; }
.gc-pl .ic { width: 11px; height: 11px; }
@media (min-width: 900px) { .ggrid { grid-template-columns: repeat(5, 1fr); } .gfeat { max-width: 520px; } }

.promo-list { gap: 8px; }
.promo { gap: 11px; padding: 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(196, 6, 6, .14), var(--surface) 70%); border: 1px solid var(--border); }
.promo-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: rgba(196, 6, 6, .16); }
.promo h3 { font-size: 13.5px; font-weight: 800; }
.promo p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
@media (min-width: 900px) { .promo-list { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; } .promo-list > p { grid-column: 1 / -1; } }

/* ---- Me drawer (slides in from the right) ---- */
.md-wrap { position: fixed; inset: 0; z-index: 90; }
.md-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.md-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 86%; max-width: 380px; display: flex; flex-direction: column; background: #121316; transform: translateX(100%); transition: transform .22s ease; box-shadow: -12px 0 30px rgba(0, 0, 0, .5); }
.md-wrap.on .md-back { opacity: 1; }
.md-wrap.on .md-panel { transform: none; }
.md-top { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px; }
.md-av { width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid var(--g); }
.md-av svg { width: 100%; height: 100%; display: block; }
.md-id { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-ic { width: 32px; height: 32px; display: grid; place-items: center; color: #e4e6e9; }
.md-ic .ic { width: 20px; height: 20px; }
.md-scroll { flex: 1; overflow-y: auto; padding: 0 10px 18px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.md-bal { padding: 12px 12px 14px; border-radius: 14px; background: linear-gradient(150deg, #5f0707, #0c1b12 75%); border: 1px solid rgba(196, 6, 6, .45); }
.md-bal-l { display: flex; align-items: center; gap: 6px; color: #e97171; font-size: 12.5px; }
.md-bal-l button { display: grid; place-items: center; color: #e97171; }
.md-bal-l .ic { width: 15px; height: 15px; }
.md-bal > b { display: block; font-size: 24px; font-weight: 900; margin: 6px 0 12px; }
.md-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.md-btns a { position: relative; height: 36px; display: grid; place-items: center; border-radius: 18px; font-size: 13.5px; font-weight: 800; }
.md-dep { background: var(--g); color: #fff; }
.md-wd { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.md-dep i { position: absolute; left: 10px; bottom: -9px; padding: 0 6px; border-radius: 8px; background: #fff; color: var(--g-dark); font-size: 8.5px; font-style: normal; font-weight: 900; line-height: 15px; letter-spacing: .4px; }
.md-card { border-radius: 12px; background: var(--surface); overflow: hidden; }
.md-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 0; margin-top: 4px; }
.md-stats a { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.md-stats a + a { border-left: 1px solid var(--border); }
.md-stats b { font-size: 17px; font-weight: 800; }
.md-stats span { color: var(--muted); font-size: 11px; }
.md-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; font-size: 13.5px; color: #eef0f2; text-align: left; }
.md-row + .md-row { border-top: 1px solid var(--border); }
.md-row > .ic:first-child { width: 19px; height: 19px; color: var(--g); }
.md-row > span { flex: 1; }
.md-row small { color: var(--muted); font-size: 12px; }
.md-row small.ok { color: var(--g); }
.md-row .chev { width: 15px; height: 15px; color: var(--muted); }
.md-row p { flex-basis: 100%; margin: 0 0 0 29px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.md-cs { display: flex; align-items: center; margin: 0 12px 12px 41px; border-radius: 8px; background: var(--surface-2); }
.md-cs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; font-size: 12.5px; }
.md-cs .ic { width: 16px; height: 16px; color: var(--g); }
.md-cs i { width: 1px; height: 18px; background: var(--border); }
.md-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0 4px; }
.md-foot img { height: 20px; width: auto; opacity: .9; }
.md-foot p { margin: 0; color: var(--muted); font-size: 11.5px; }
.md-foot .r18 { display: inline-block; padding: 0 4px; border: 1px solid var(--muted); border-radius: 50%; font-size: 9.5px; line-height: 16px; }
.md-scroll > * { flex: none; }

/* ---- casino games ---- */
.jet-svg { display: block; width: 100%; height: auto; }
.jet-word { font-weight: 900;  letter-spacing: .2px; }
.jet-word em { color: var(--g);  }
.gt-jet { width: 96px; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.gf-jet { width: 84px; flex: none; }
.gc-jet { width: 40px; }
.gc-emo, .gt-emo { font-size: 26px; line-height: 1; }
.gt-emo { font-size: 34px; }
.gtile.mines { background: radial-gradient(120% 140% at 0% 50%, #3a2a0a, #17120a 70%); border: 1px solid rgba(245, 197, 24, .25); width: 52%; }
.gtile.dice { background: radial-gradient(120% 140% at 0% 50%, #0f3a4a, #0a171d 70%); border: 1px solid rgba(80, 180, 230, .25); width: 52%; }
.g-note { margin: 8px 12px 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.gstake { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gs-amt { display: flex; align-items: center; height: 36px; border-radius: 18px; background: #0d0e10; border: 1px solid var(--border); overflow: hidden; }
.gs-amt button { width: 34px; height: 100%; font-size: 18px; color: #cfd2d6; flex: none; }
.gs-amt input { flex: 1; min-width: 0; width: 100%; height: 100%; background: none; border: 0; color: #fff; text-align: center; font-size: 15px; font-weight: 800; outline: 0; -moz-appearance: textfield; }
.gs-amt input::-webkit-inner-spin-button { -webkit-appearance: none; }
.gs-q { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gs-q button { height: 24px; border-radius: 12px; background: var(--surface-3); color: #cfd2d6; font-size: 11px; font-weight: 700; }
.locked .gstake, .locked .mn-ch, .gstake.locked, .mn-ch.locked, #mn-stake.locked { opacity: .5; pointer-events: none; }

/* FlyGr9 */
.jet { padding: 8px 8px 4px; display: flex; flex-direction: column; gap: 8px; }
.jet-hist { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; min-height: 22px; }
.jet-hist::-webkit-scrollbar { display: none; }
.jet-hist span { flex: none; padding: 2px 8px; border-radius: 10px; background: var(--surface-2); font-size: 11.5px; font-weight: 800; }
.jet-hist .lo, .jb-row .lo { color: #7fb0ff; } .jet-hist .mid, .jb-row .mid { color: #c48bff; } .jet-hist .hi, .jb-row .hi { color: #ffcf33; }
.jet-stage { position: relative; height: 230px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(110% 90% at 15% 100%, rgba(196, 6, 6, .2), transparent 60%), repeating-conic-gradient(from 0deg at 0% 100%, #0c0d0f 0 6deg, #101113 6deg 12deg); }
.jet-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.jet-plane { position: absolute; left: 0; top: 0; width: 70px; opacity: 0; will-change: transform; pointer-events: none; }
.jet-mult { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-size: 46px; font-weight: 900; text-shadow: 0 4px 18px rgba(0, 0, 0, .6); display: none; }
.jet-stage[data-phase="flying"] .jet-mult, .jet-stage[data-phase="crashed"] .jet-mult { display: block; }
.jet-stage[data-phase="crashed"] .jet-mult { color: #ff5a5a; }
.jet-away { position: absolute; left: 0; right: 0; top: 24%; text-align: center; font-size: 15px; font-weight: 900;  letter-spacing: 1px; display: none; }
.jet-stage[data-phase="crashed"] .jet-away { display: block; }
.jet-wait { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.jet-wait b { font-size: 30px; }
.jet-wait span { color: #cfd2d6; font-size: 13px; }
.jet-wait i { width: 46%; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.jet-wait em { display: block; height: 100%; background: var(--g); }
.jet-stage[data-phase="waiting"] .jet-wait, .jet-stage[data-phase="closed"] .jet-wait { display: flex; }
.jet-fair { position: absolute; right: 8px; bottom: 6px; z-index: 2; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, .45); color: var(--muted); font-size: 10.5px; }
.jp { padding: 8px 10px 10px; border-radius: 12px; background: var(--surface); }
.jp-tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.jp-tabs button { padding: 3px 18px; border-radius: 12px; font-size: 12px; color: var(--muted); }
.jp-tabs button.on { background: var(--surface-3); color: #fff; font-weight: 700; }
.jp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; }
.jp-go { border-radius: 14px; background: var(--g); color: #fff; font-size: 18px; font-weight: 900; line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 66px; }
.jp-go small { font-size: 12px; font-weight: 700; }
.jp-go.cancel { background: #d9343f; color: #fff; }
.jp-go.cash { background: #f5a623; color: #2a1800; }
.jp-go.won { background: var(--surface-3); color: var(--g); }
.jp-go:disabled { opacity: .6; }
.jp-auto { display: none; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 12.5px; color: #cfd2d6; }
.jp.show-auto .jp-auto { display: flex; }
.jp-auto label { display: flex; align-items: center; gap: 6px; }
.jp-auto input[type=number] { width: 64px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: #0d0e10; color: #fff; text-align: center; }
.jet-bets { border-radius: 12px; background: var(--surface); padding: 8px 10px; }
.jb-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.jb-tabs button { padding: 3px 12px; border-radius: 12px; font-size: 12px; color: var(--muted); }
.jb-tabs button.on { background: var(--surface-3); color: #fff; font-weight: 700; }
.jb-tabs span { margin-left: auto; color: var(--muted); font-size: 11px; }
.jb-row { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr; gap: 6px; padding: 6px 8px; margin-top: 3px; border-radius: 8px; background: #121316; font-size: 12px; }
.jb-row span:last-child { text-align: right; }
.jb-row.won { background: rgba(196, 6, 6, .12); border: 1px solid rgba(196, 6, 6, .35); }
.jb-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 14px 0; margin: 0; }
.fair p { font-size: 13px; line-height: 1.5; margin: 0 0 8px; }
.fair code { display: block; padding: 8px; border-radius: 8px; background: var(--surface-2); font-size: 11px; word-break: break-all; margin-bottom: 8px; }
@media (min-width: 900px) {
  .jet { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto; }
  .jet-hist, .jet-stage, .jet > .g-note { grid-column: 1 / -1; }
  .jet-stage { height: 360px; }
  .jet-bets { grid-column: 1 / -1; }
}

/* Mines */
.mines, .dice { padding: 10px; display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 0 auto; }
.mn-info, .dc-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dc-info { grid-template-columns: repeat(4, 1fr); }
.mn-info > div, .dc-info > div { padding: 7px 8px; border-radius: 10px; background: var(--surface); text-align: center; }
.mn-info small, .dc-info small { display: block; color: var(--muted); font-size: 10.5px; }
.mn-info b, .dc-info b { font-size: 14px; }
.mn-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding: 10px; border-radius: 14px; background: var(--surface); }
.mn-t { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(180deg, #2a2d33, #1d1f23); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35); font-size: 24px; display: grid; place-items: center; transition: transform .1s; }
.mn-t:not(:disabled):active { transform: scale(.94); }
.mn-t:not(:disabled):hover { background: linear-gradient(180deg, #30343b, #23262b); }
.mn-t.gem { background: radial-gradient(circle, rgba(196, 6, 6, .35), #300808); box-shadow: inset 0 0 0 1px rgba(196, 6, 6, .5); }
.mn-t.mine { background: #2a1214; }
.mn-t.mine.hit { background: #7a1c22; box-shadow: inset 0 0 0 2px #ff5a5a; }
.mn-t.dim { opacity: .45; }
.mn-board.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.mn-ctl { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); }
.mn-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #cfd2d6; }
.mn-ch { display: flex; gap: 5px; flex: 1; }
.mn-ch button { flex: 1; height: 30px; border-radius: 8px; background: var(--surface-3); font-weight: 800; font-size: 13px; }
.mn-ch button.on { background: var(--g); color: #fff; }

/* Dice */
.dc-result { padding: 16px 10px 12px; border-radius: 14px; background: var(--surface); text-align: center; }
.dc-result b { display: block; font-size: 44px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dc-result span { color: var(--muted); font-size: 12.5px; }
.dc-result.won b, .dc-result.won span { color: var(--g); }
.dc-result.lost b { color: #ff6b6b; }
.dc-track { position: relative; height: 12px; margin: 10px 6px 0; border-radius: 6px; background: #3a1d20; }
.dc-fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--g); }
.dc-track input { position: absolute; inset: -10px 0; width: 100%; opacity: 0; cursor: pointer; }
.dc-mark { position: absolute; top: -8px; width: 3px; height: 28px; margin-left: -1px; border-radius: 2px; background: #fff; opacity: 0; transition: left .3s; }
.dc-mark.show { opacity: 1; } .dc-mark.won { background: #fff; box-shadow: 0 0 8px var(--g); } .dc-mark.lost { background: #ff6b6b; }
.dc-scale { display: flex; justify-content: space-between; margin: -2px 4px 0; color: var(--muted); font-size: 10px; }
.dc-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dc-side button { height: 34px; border-radius: 10px; background: var(--surface-3); font-weight: 800; font-size: 13px; }
.dc-side button.on { background: var(--g); color: #fff; }
.dc-hist { display: flex; flex-wrap: wrap; gap: 5px; }
.dc-hist span { padding: 2px 8px; border-radius: 10px; background: var(--surface-2); font-size: 11.5px; font-weight: 800; }
.dc-hist .won { color: var(--g); } .dc-hist .lost { color: #ff6b6b; }
.jet-prop { transform-box: fill-box; transform-origin: center; animation: jet-prop .14s linear infinite; }
@keyframes jet-prop { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }
.modal-jet { width: 110px; margin: 0 auto; }
.jet-plane { width: 104px; }

/* ---- BetGr9 verification (KYC) ---- */
.bwk-cta { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; border-radius: 12px; background: linear-gradient(180deg, #e01717, #c40606); color: #fff; font-size: 15px; font-weight: 900; letter-spacing: .2px; box-shadow: 0 8px 18px -10px rgba(196, 6, 6, .8); }
.bwk-cta:disabled { opacity: .6; }
.bwk-later { display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; margin-top: 6px; border-radius: 12px; color: #cfd2d6; font-size: 13.5px; font-weight: 700; }
.bwk-foot { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.bwk-foot .ic { width: 13px; height: 13px; }
.bwk-hero { display: flex; justify-content: center; margin: 2px 0 12px; }
.bwk-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--g); background: radial-gradient(circle, rgba(196, 6, 6, .22), rgba(196, 6, 6, .04) 70%); box-shadow: inset 0 0 0 2px rgba(196, 6, 6, .45), 0 0 0 6px rgba(196, 6, 6, .06); }
.bwk-ring .ic { width: 30px; height: 30px; }
.bwk-ring.wait { color: #f5c518; background: radial-gradient(circle, rgba(245, 197, 24, .2), transparent 70%); box-shadow: inset 0 0 0 2px rgba(245, 197, 24, .45); }
.bwk-gate.bad .bwk-ring { color: #ff6b6b; background: radial-gradient(circle, rgba(255, 90, 90, .2), transparent 70%); box-shadow: inset 0 0 0 2px rgba(255, 90, 90, .45); }
.bwk-gate.wait .bwk-ring { color: #f5c518; background: radial-gradient(circle, rgba(245, 197, 24, .2), transparent 70%); box-shadow: inset 0 0 0 2px rgba(245, 197, 24, .45); }
.bwk-gate { text-align: left; }
.bwk-gate h2 { text-align: center; font-size: 19px; font-weight: 900; margin: 0 0 6px; }
.bwk-gate > p { text-align: center; color: #b9bcc2; font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.bwk-list { list-style: none; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: #0f1012; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; }
.bwk-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: #dfe1e4; line-height: 1.4; }
.bwk-list b { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--g-soft); color: var(--g); display: grid; place-items: center; font-size: 11px; }
.bwk-list em { color: var(--g); font-style: normal; font-weight: 700; }
.bwk-amt { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.3px; }
.bwk-amt.sm { display: inline; font-size: 20px; color: var(--g); }
.bwk-prog { margin: 2px 0 14px; }
.bwk-prog-top { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.bwk-prog-top small { color: var(--g); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.bwk-prog-top b { font-size: 17px; font-weight: 900; }
.bwk-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.bwk-bar i { height: 4px; border-radius: 2px; background: var(--surface-3); }
.bwk-bar i.done { background: var(--g); }
.bwk-bar i.on { background: linear-gradient(90deg, var(--g) 50%, var(--surface-3) 50%); }
.bwk-fee { position: relative; overflow: hidden; padding: 14px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(150deg, #4f0707, #0d1510 70%); border: 1px solid rgba(196, 6, 6, .35); }
.bwk-fee::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 23, 23, .25), transparent 70%); }
.bwk-fee-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bwk-fee-top span { color: #e96969; font-size: 12px; font-weight: 700; }
.bwk-fee-top em { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; }
.bwk-fee-top em .ic { width: 11px; height: 11px; }
.bwk-fee > p { margin: 6px 0 12px; color: #e97474; font-size: 12.5px; line-height: 1.5; }
.bwk-how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.bwk-how li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #eaf6ee; }
.bwk-how span { flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.bwk .kyc-done { text-align: center; }
.bwk .kyc-done h2 { font-size: 19px; font-weight: 900; margin: 0 0 6px; }
.bwk .kyc-done .bwk-cta { margin-top: 14px; }

/* ---- win celebration: elite trophy stage (spotlight, shine, rings, gold dust) ---- */
.trophy-win { background: radial-gradient(circle at 50% 42%, rgba(46, 34, 6, .86), rgba(4, 5, 8, .94) 68%); }
.tw-stage { height: 300px; overflow: visible; }
.tw-rays, .tw-glow, .tw-spark { display: none; }
.tw-spot { position: absolute; top: -40px; left: 50%; width: 260px; height: 330px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 240, 190, .34), rgba(255, 214, 110, .08) 70%, transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(6px); animation: tw-spot 4s ease-in-out infinite; }
.tw-halo { position: absolute; top: 28px; left: 50%; width: 170px; height: 170px; margin-left: -85px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 140, .55), rgba(255, 190, 40, .18) 45%, transparent 70%); animation: tw-breathe 3.2s ease-in-out infinite; }
.tw-ring { position: absolute; bottom: 10px; left: 50%; width: 190px; height: 38px; margin-left: -95px; border-radius: 50%;
  border: 1.5px solid rgba(255, 214, 110, .75); box-shadow: 0 0 18px rgba(255, 200, 60, .55), inset 0 0 12px rgba(255, 200, 60, .35); }
.tw-ring.r2, .tw-ring.r3 { border-color: rgba(255, 214, 110, .5); box-shadow: 0 0 14px rgba(255, 200, 60, .35); animation: tw-ripple 3s ease-out infinite; }
.tw-ring.r3 { animation-delay: 1.5s; }
.tw-cupbox { position: relative; height: 262px; animation: tw-pop .6s cubic-bezier(.2, 1.4, .4, 1) both, tw-float 4s ease-in-out .6s infinite; }
.tw-cupbox .tw-cup { height: 100%; animation: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(255, 200, 60, .25)); }
.tw-shine { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 48%, rgba(255, 246, 200, .4) 52%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 140% 0; mix-blend-mode: screen;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; animation: tw-shine 3.6s ease-in-out 1s infinite; }
.tw-dust { position: absolute; bottom: 30px; left: 50%; width: 4px; height: 4px; margin-left: var(--x); border-radius: 50%;
  background: #ffe9a8; box-shadow: 0 0 8px 2px rgba(255, 205, 80, .8); opacity: 0; transform: scale(var(--s));
  animation: tw-dust var(--t) ease-out var(--d) infinite; }
@keyframes tw-spot { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes tw-breathe { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes tw-ripple { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes tw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tw-shine { 0% { background-position: 140% 0; } 55%, 100% { background-position: -40% 0; } }
@keyframes tw-dust { 0% { opacity: 0; transform: translateY(0) scale(var(--s)); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-230px) translateX(calc(var(--x) * .3)) scale(var(--s)); } }
@media (prefers-reduced-motion: reduce) { .tw-spot, .tw-halo, .tw-ring, .tw-cupbox, .tw-shine, .tw-dust { animation: none; } }
.jb-title { font-size: 13px; font-weight: 800; padding: 2px 4px; }
.jb-row.live { background: rgba(245, 166, 35, .1); border: 1px solid rgba(245, 166, 35, .35); }

/* ======================= BetGr9 design layer ======================= */
:root { --head-font: 'Barlow Condensed', Roboto, sans-serif; --win: #22c55e; --card: #141417; --card-2: #1b1b1f; --ink: #f4f4f6; --ink-2: #c9cad0; }
/* header: black bar, red logo, red Register */
.hdr { background: #050506; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .5); }
.topbar { padding: 7px 10px; }
.topbar .brand img { height: 30px; width: auto; filter: drop-shadow(0 0 8px rgba(227, 22, 28, .35)); }
.sq-ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--ink-2); }
.btn-login { height: 32px; padding: 0 14px; border-radius: 6px; background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 12.5px; }
.btn-join { height: 32px; padding: 0 14px; border-radius: 6px; background: linear-gradient(180deg, #ff2a2f, #c80f14); color: #fff; font-size: 12.5px; box-shadow: 0 4px 14px -4px rgba(227, 22, 28, .7); }
.bal-chip { height: 36px; padding: 0 4px 0 10px; border-radius: 8px; background: #141417; border: 1px solid #2a2a30; color: #fff; display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 7px; align-items: center; }
.bal-chip .bal-l { grid-column: 1; grid-row: 1; font-size: 8.5px; font-weight: 600; color: #8f9097; text-transform: uppercase; letter-spacing: .6px; line-height: 1; margin-top: 4px; }
.bal-chip b { grid-column: 1; grid-row: 2; font-size: 12.5px; font-weight: 800; line-height: 1.1; margin-bottom: 3px; }
.bal-chip .avatar { grid-column: 2; grid-row: 1 / 3; width: 28px; height: 28px; }
/* icon dock */
.topnav.dock { gap: 2px; padding: 0 6px 6px; }
.topnav.dock a { flex: 1 0 auto; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 6px 5px; border-radius: 8px; font-size: 10.5px; font-weight: 600; color: #a3a4ab; }
.topnav.dock a .ic { width: 19px; height: 19px; }
.topnav.dock a.on { color: #fff; background: linear-gradient(180deg, rgba(227, 22, 28, .28), rgba(227, 22, 28, .08)); box-shadow: inset 0 -2px 0 var(--g); }
.topnav.dock a.on .ic { color: var(--g-2); }
.topnav.dock a.on::after { display: none; }
.subhead { top: 98px; }
/* section titles: condensed caps with a short red underline */
.panel { border-radius: 10px; border: 1px solid #1f1f24; background: var(--card); }
.panel-head { background: none; padding: 11px 12px 8px; border-bottom: 1px solid #1f1f24; }
.panel-head h3 { font-family: var(--head-font); font-size: 17px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; position: relative; padding-bottom: 3px; }
.panel-head h3::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 22px; height: 2px; border-radius: 2px; background: var(--g); }
.ph-ic { width: 26px; height: 26px; border-radius: 6px; background: rgba(227, 22, 28, .15); color: var(--g-2); }
.ph-more { color: var(--g-2); font-weight: 700; }
/* match cards + odds: white prices, red when picked */
.mcard { background: var(--card-2); border: 1px solid #222228; border-radius: 8px; }
.mcard .teams.scores b { color: var(--g-2); }
.odd { border-radius: 6px; background: #232329; color: #fff; border: 1px solid #2c2c33; }
.odd.wide em { color: #8f9097; }
.odd.sel { background: linear-gradient(180deg, #ff2a2f, #c80f14); border-color: #ff4a4f; color: #fff; }
.odd.up { box-shadow: inset 0 2px 0 var(--win); }
.odd.lock { background: #19191d; border-color: #222228; }
.mchips button.on, .lchip.on { box-shadow: 0 2px 10px -3px rgba(227, 22, 28, .6); }
.stabs button.on, .utabs button.on { color: #fff; }
.stabs button.on::after { background: var(--g); }
/* hero + quick links */
.hero-track { border-radius: 10px; }
.slide-txt b { font-family: var(--head-font); font-size: 24px; font-weight: 800; letter-spacing: .4px; }
.slide-txt .kicker { border-radius: 3px; }
.slide-txt .cta { border-radius: 5px; background: var(--g); color: #fff; }
.quick { border-radius: 10px; }
.quick .ic { color: var(--g-2); }
/* betslip button */
.slip-fab { border-radius: 50%; width: 56px; height: 56px; background: linear-gradient(180deg, #ff2a2f, #b80d12); border: 2px solid rgba(255, 255, 255, .15); color: #fff; box-shadow: 0 10px 24px -6px rgba(227, 22, 28, .7); }
.slip-fab-count { color: #fff !important; font-size: 19px; }
.slip-fab-label { font-size: 8.5px; text-transform: uppercase; letter-spacing: .5px; }
.btn-green, .btn-brand { background: linear-gradient(180deg, #ff2a2f, #c80f14); color: #fff; }

/* ---------- light mode: red & white ---------- */
[data-theme="light"] {
  --bg: #f3f3f5; --bg-2: #ebebee; --surface: #ffffff; --surface-2: #f4f4f6; --surface-3: #ececf0; --border: #e3e3e8;
  --text: #17171b; --muted: #6c6d75; --card: #ffffff; --card-2: #ffffff; --ink: #17171b; --ink-2: #44454c; --odd-bg: #f1f1f4;
  color-scheme: light;
}
[data-theme="light"] body, [data-theme="light"] .app { background: var(--bg); color: var(--text); }
[data-theme="light"] .hdr { background: #ffffff; box-shadow: 0 1px 0 #e6e6ea, 0 4px 14px rgba(0, 0, 0, .06); }
[data-theme="light"] .sq-ic { background: #f1f1f4; color: #33343a; }
[data-theme="light"] .btn-login { border-color: #d3d3d9; color: #17171b; }
[data-theme="light"] .bal-chip { background: #f6f6f8; border-color: #e3e3e8; color: #17171b; }
[data-theme="light"] .topnav.dock a { color: #6c6d75; }
[data-theme="light"] .topnav.dock a.on { color: #17171b; background: linear-gradient(180deg, rgba(227, 22, 28, .14), rgba(227, 22, 28, .03)); }
[data-theme="light"] .panel, [data-theme="light"] .mcard, [data-theme="light"] .quick { border-color: #e6e6ea; }
[data-theme="light"] .panel-head { border-bottom-color: #ededf1; }
[data-theme="light"] .panel-head h3, [data-theme="light"] .mcard .teams, [data-theme="light"] .featured h3 { color: #17171b; }
[data-theme="light"] .odd { background: #f4f4f7; border-color: #e3e3e8; color: #17171b; }
[data-theme="light"] .odd.sel { color: #fff; }
[data-theme="light"] .odd.lock { background: #f1f1f4; color: #a3a4ab; }
[data-theme="light"] .quick a, [data-theme="light"] .topnav a, [data-theme="light"] .stabs button, [data-theme="light"] .utabs button { color: #44454c; }
[data-theme="light"] .stabs button.on, [data-theme="light"] .utabs button.on { color: #17171b; }
[data-theme="light"] .utabs { background: #fafafb; }
[data-theme="light"] .mchips button { background: #f1f1f4; color: #33343a; }
[data-theme="light"] .mchips button.on { color: #fff; background: var(--g); }
[data-theme="light"] .lchip { background: #f6f6f8; color: #33343a; }
[data-theme="light"] .subhead { background: #ffffff; }
[data-theme="light"] .subhead h2, [data-theme="light"] .subhead .icon-btn { color: #17171b; }
[data-theme="light"] .slide::after { background: linear-gradient(90deg, #1a0405 32%, rgba(26, 4, 5, .75) 52%, rgba(26, 4, 5, 0) 80%); }
[data-theme="light"] .footer, [data-theme="light"] .site-footer { background: #ffffff; color: #44454c; }
[data-theme="light"] .slip-sheet, [data-theme="light"] .sheet, [data-theme="light"] .modal-card { background: #ffffff; color: #17171b; }
[data-theme="light"] .md-panel { background: #f6f6f8; color: #17171b; }
[data-theme="light"] .md-card { background: #ffffff; }
[data-theme="light"] .md-row { color: #17171b; }
[data-theme="light"] .md-ic { color: #33343a; }

/* ---------- light mode: generated for hard-coded dark surfaces (scripts keep it in sync) ---------- */
[data-theme="light"] .wordmark { color: #17171b; }
[data-theme="light"] .wordmark span { color: #4a4b52; }
[data-theme="light"] .wordmark.brand-blue { color: #17171b; }
[data-theme="light"] .wordmark.lg { color: #17171b; }
[data-theme="light"] .icon-btn.white { color: #17171b; }
[data-theme="light"] .bottomnav { background: #ffffff; border-top: 1px solid #e4e4e9; }
[data-theme="light"] .btn-ghost-white { color: #17171b; }
[data-theme="light"] .link-btn.white { color: #17171b; }
[data-theme="light"] .chip { color: #4a4b52; }
[data-theme="light"] .auth-card { background: #f4f4f7; border: 1px solid #e4e4e9; }
[data-theme="light"] .auth-tab { background: #f4f4f7; border: 1px solid #e4e4e9; }
[data-theme="light"] .ofield-label { background: #f4f4f7; color: #4a4b52; }
[data-theme="light"] .ofield-box { border: 1.5px solid #e4e4e9; }
[data-theme="light"] .plain-label { color: #4a4b52; }
[data-theme="light"] .hint { color: #4a4b52; }
[data-theme="light"] .phone-box { background: #f4f4f7; border: 1.5px solid #e4e4e9; }
[data-theme="light"] .phone-box b { color: #4a4b52; }
[data-theme="light"] .strength i { background: #f4f4f7; }
[data-theme="light"] .check { color: #4a4b52; }
[data-theme="light"] .banner { background: #ffffff; }
[data-theme="light"] .quick a { color: #4a4b52; }
[data-theme="light"] .quick .ic { color: #17171b; }
[data-theme="light"] .featured { background: #ffffff; }
[data-theme="light"] .fcard { background: #f4f4f7; }
[data-theme="light"] .fteam { color: #4a4b52; }
[data-theme="light"] .stabs button { color: #4a4b52; }
[data-theme="light"] .utabs button { color: #4a4b52; }
[data-theme="light"] .mtabs button { color: #4a4b52; }
[data-theme="light"] .col-head { background: #f4f4f7; color: #4a4b52; }
[data-theme="light"] .mrow-meta { color: #17171b; }
[data-theme="light"] .odd.dark { background: #f4f4f7; }
[data-theme="light"] .odd em { color: #17171b; }
[data-theme="light"] .odd.lock { background: #f4f4f7; }
[data-theme="light"] .pay-grid span { background: #f4f4f7; }
[data-theme="light"] .search-field { background: #f4f4f7; border: 1.5px solid #e4e4e9; }
[data-theme="light"] .filter-row select, [data-theme="light"] .filter-row input { background: #f4f4f7; border: 1.5px solid #e4e4e9; }
[data-theme="light"] .pbar div { background: #f4f4f7; }
[data-theme="light"] .ga-title { color: #17171b; }
[data-theme="light"] .ga-word { color: #4a4b52; }
[data-theme="light"] .ga-word.sm { color: #17171b; }
[data-theme="light"] .ga-mult { color: #17171b; }
[data-theme="light"] .ob-bal small { color: #4a4b52; }
[data-theme="light"] .rec-bar { background: #f4f4f7; }
[data-theme="light"] .rec-ic { color: #17171b; }
[data-theme="light"] .s-open { color: #4a4b52; }
[data-theme="light"] .me-short a { color: #4a4b52; }
[data-theme="light"] .demo-note { color: #4a4b52; }
[data-theme="light"] .wallet-card small { color: #17171b; }
[data-theme="light"] .faq p { color: #4a4b52; }
[data-theme="light"] .promo p { color: #17171b; }
[data-theme="light"] .slip { background: #f4f4f7; }
[data-theme="light"] .mode-toggle button { color: #4a4b52; }
[data-theme="light"] .slip-close { color: #17171b; }
[data-theme="light"] .slip-tabs { background: #f4f4f7; }
[data-theme="light"] .slip-tabs button { color: #17171b; }
[data-theme="light"] .slip-panel { background: #f4f4f7; }
[data-theme="light"] .code-box.big .code-label { color: #4a4b52; }
[data-theme="light"] .code-input { border: 1px solid #e4e4e9; }
[data-theme="light"] .code-input input { background: #ffffff; }
[data-theme="light"] .code-input button { background: #f4f4f7; color: #4a4b52; }
[data-theme="light"] .slip-teams { color: #4a4b52; }
[data-theme="light"] .stake-input { background: #ffffff; border: 1.5px solid #e4e4e9; }
[data-theme="light"] .accept-odds { color: #4a4b52; }
[data-theme="light"] .sim-note { color: #4a4b52; }
[data-theme="light"] .sim-note .link-btn { color: #4a4b52; }
[data-theme="light"] .legal { color: #4a4b52; }
[data-theme="light"] .legal h2 { color: #17171b; }
[data-theme="light"] .legal-toc a { color: #4a4b52; }
[data-theme="light"] .s-void { color: #4a4b52; }
[data-theme="light"] .leg-lost { color: #17171b; }
[data-theme="light"] .leg-void { color: #17171b; }
[data-theme="light"] .dep-promo svg { color: #4a4b52; }
[data-theme="light"] .dep-open svg { color: #4a4b52; }
[data-theme="light"] .bet-bar { color: #17171b; }
[data-theme="light"] .tk-leg.r-lost .tk-leg-ic { color: #17171b; }
[data-theme="light"] .hb-bar { color: #17171b; }
[data-theme="light"] .pp-mi { color: #17171b; }
[data-theme="light"] .pp-copy { color: #17171b; }
[data-theme="light"] .topnav a { color: #17171b; }
[data-theme="light"] .panel-head h3 { color: #17171b; }
[data-theme="light"] .quick a { color: #17171b; }
[data-theme="light"] .lchip { color: #4a4b52; }
[data-theme="light"] .lchip.big { color: #17171b; }
[data-theme="light"] .sec-head { background: #f4f4f7; }
[data-theme="light"] .sec-title { color: #17171b; background: #ffffff; }
[data-theme="light"] .utabs { background: #f4f4f7; }
[data-theme="light"] .mchips button { color: #17171b; }
[data-theme="light"] .dayrow { background: #f4f4f7; }
[data-theme="light"] .lbar { color: #4a4b52; }
[data-theme="light"] .mcard { background: #f4f4f7; }
[data-theme="light"] .mcard .teams { color: #17171b; }
[data-theme="light"] .site-footer { background: #ffffff; }
[data-theme="light"] .site-footer h5 { color: #17171b; }
[data-theme="light"] .md-league { background: #ffffff; color: #4a4b52; }
[data-theme="light"] .md-when { color: #4a4b52; }
[data-theme="light"] .md-tabs { background: #ffffff; }
[data-theme="light"] .md-tabs button { color: #4a4b52; }
[data-theme="light"] .route-match .mchips { background: #ffffff; }
[data-theme="light"] .mkt { background: #f4f4f7; }
[data-theme="light"] .slip-close { color: #17171b; }
[data-theme="light"] .mode-toggle { background: #f4f4f7; }
[data-theme="light"] .slip-tabs { background: #f4f4f7; }
[data-theme="light"] .slip-tabs button { color: #17171b; }
[data-theme="light"] .slip-panel { color: #17171b; }
[data-theme="light"] .code-input button { color: #17171b; }
[data-theme="light"] .slip-sel { color: #17171b; }
[data-theme="light"] .auth-wrap { background: #ffffff; }
[data-theme="light"] .auth-card { background: #ffffff; border: 1px solid #e4e4e9; }
[data-theme="light"] .auth-close { color: #17171b; }
[data-theme="light"] .ofield-label { background: #ffffff; color: #4a4b52; }
[data-theme="light"] .ofield-box { border: 1.5px solid #e4e4e9; }
[data-theme="light"] .phone-box { border: 1.5px solid #e4e4e9; }
[data-theme="light"] .auth-card .plain-label { color: #4a4b52; }
[data-theme="light"] .az-filters { background: #ffffff; }
[data-theme="light"] .filter-row select, [data-theme="light"] .filter-row input { color: #17171b; }
[data-theme="light"] .code-box.big { background: #ffffff; }
[data-theme="light"] .code-box.big .code-input input { color: #17171b; }
[data-theme="light"] .code-row.card { background: #f4f4f7; }
[data-theme="light"] .seg { background: #ffffff; }
[data-theme="light"] .bet.card { background: #f4f4f7; }
[data-theme="light"] .hb-won { background: #ffffff; }
[data-theme="light"] .rec-bar { background: #ffffff; }
[data-theme="light"] .rec-ic { color: #17171b; }
[data-theme="light"] .tk-card { background: #ffffff; }
[data-theme="light"] .tk-legs.card { background: #f4f4f7; }
[data-theme="light"] .tk-foot.card { background: #f4f4f7; }
[data-theme="light"] .wallet-card { background: #ffffff; }
[data-theme="light"] .pp-btn { color: #17171b; }
[data-theme="light"] .pp-copy { color: #17171b; }
[data-theme="light"] .pp-bang { color: #17171b; }
[data-theme="light"] .gcard { color: #17171b; }
[data-theme="light"] .md-panel { background: #ffffff; }
[data-theme="light"] .md-ic { color: #17171b; }
[data-theme="light"] .md-wd { color: #17171b; }
[data-theme="light"] .md-row { color: #17171b; }
[data-theme="light"] .gs-amt { background: #ffffff; }
[data-theme="light"] .gs-amt button { color: #4a4b52; }
[data-theme="light"] .gs-amt input { color: #17171b; }
[data-theme="light"] .gs-q button { color: #4a4b52; }
[data-theme="light"] .jb-row .hi { color: #4a4b52; }
[data-theme="light"] .jp-auto { color: #4a4b52; }
[data-theme="light"] .jp-auto input[type=number] { background: #ffffff; color: #17171b; }
[data-theme="light"] .jb-row { background: #ffffff; }
[data-theme="light"] .bwk-later { color: #4a4b52; }
[data-theme="light"] .bwk-ring.wait { color: #4a4b52; }
[data-theme="light"] .bwk-gate.wait .bwk-ring { color: #4a4b52; }
[data-theme="light"] .bwk-gate > p { color: #4a4b52; }
[data-theme="light"] .bwk-list { background: #ffffff; }
[data-theme="light"] .bwk-list li { color: #17171b; }
[data-theme="light"] .bwk-how li { color: #17171b; }
[data-theme="light"] .panel { border: 1px solid #e4e4e9; }
[data-theme="light"] .panel-head { border-bottom: 1px solid #e4e4e9; }
[data-theme="light"] .mcard { border: 1px solid #e4e4e9; }
[data-theme="light"] .odd { background: #f4f4f7; color: #17171b; border: 1px solid #e4e4e9; }
[data-theme="light"] .odd.lock { background: #ffffff; border-color: #e4e4e9; }

/* light mode: hand-tuned (things that stay dark or brand-coloured, and the match header) */
[data-theme="light"] .slide-txt b, [data-theme="light"] .gtile, [data-theme="light"] .gtile b, [data-theme="light"] .gfeat, [data-theme="light"] .gfeat b { color: #fff; }
[data-theme="light"] .md-bal, [data-theme="light"] .md-bal b, [data-theme="light"] .md-bal-l, [data-theme="light"] .md-bal-l button { color: #fff; }
[data-theme="light"] .md-hero { background: linear-gradient(180deg, #ffffff, #fbeeee); }
[data-theme="light"] .md-hero, [data-theme="light"] .md-hero .t { color: #17171b; }
[data-theme="light"] .mkt summary, [data-theme="light"] .mkt summary b, [data-theme="light"] .mkt h4 { color: #17171b; }
[data-theme="light"] .odd { color: #17171b; }
[data-theme="light"] .odd.sel, [data-theme="light"] .odd.sel b, [data-theme="light"] .odd.sel em { color: #fff; }
[data-theme="light"] .slip-top { background: #17171b; color: #fff; }
[data-theme="light"] .ph-more { color: var(--g); }
.odd.down { box-shadow: inset 0 -2px 0 #ff4d4d; }
[data-theme="light"] [data-mode].on, [data-theme="light"] [data-mode].on b { color: #fff; }
[data-theme="light"] .code-input button { background: var(--g); color: #fff; }
[data-theme="light"] .md-wd { color: #fff; border-color: rgba(255, 255, 255, .35); }



/* ---------- batch 2: auth ---------- */
.auth-wrap { display: block; min-height: 100vh; padding: 0 14px 24px; background: radial-gradient(120% 45% at 50% 0%, #4a0508 0%, #120203 45%, #050506 75%); }
.auth-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); z-index: 2; }
.auth-close .ic { width: 18px; height: 18px; }
.auth-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 0 16px; }
.auth-logo img { height: 66px; width: auto; filter: drop-shadow(0 0 22px rgba(227, 22, 28, .5)); }
.auth-hero p { margin: 0; color: #d9a3a5; font-family: var(--head-font); font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; margin: 0 auto 12px; padding: 4px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.auth-switch a { height: 38px; display: grid; place-items: center; border-radius: 7px; font-size: 13.5px; font-weight: 800; color: #b9b9c0; }
.auth-switch a.on { background: linear-gradient(180deg, #ff2a2f, #c80f14); color: #fff; box-shadow: 0 6px 16px -6px rgba(227, 22, 28, .8); }
.auth-card { background: rgba(20, 20, 23, .92); border: 1px solid #26262c; border-radius: 12px; padding: 18px 16px 20px; max-width: 420px; margin: 0 auto; }
.auth-title { font-family: var(--head-font); font-size: 24px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; margin: 0; text-align: left; }
.auth-sub { margin: 2px 0 16px; color: var(--muted); font-size: 12.5px; text-align: left; }
.auth-card .ofield { margin-bottom: 12px; }
.auth-card .ofield-label { position: static; display: block; transform: none; padding: 0; margin: 0 0 5px; background: none !important; font-size: 11px; font-weight: 700; color: #a3a4ab; text-transform: uppercase; letter-spacing: .6px; }
.auth-card .ofield-box { height: 46px; border-radius: 8px; border: 1px solid #2c2c33; background: #0e0e10; }
.auth-card .ofield-box:focus-within { border-color: var(--g); box-shadow: 0 0 0 3px rgba(227, 22, 28, .18); }
.auth-card .btn-green { height: 48px; border-radius: 8px; font-size: 15px; font-weight: 800; letter-spacing: .3px; background: linear-gradient(180deg, #ff2a2f, #c80f14); }
.auth-card .country-pick button { border-radius: 8px; }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 14px 0 0; color: #6f7077; font-size: 11px; }
.auth-foot .ic { width: 13px; height: 13px; }
[data-theme="light"] .auth-wrap { background: radial-gradient(120% 45% at 50% 0%, #ffd9da 0%, #fff4f4 45%, #f3f3f5 75%); }
[data-theme="light"] .auth-hero p { color: #a30d12; }
[data-theme="light"] .auth-switch { background: #ffffff; border-color: #e6e6ea; }
[data-theme="light"] .auth-switch a { color: #6c6d75; }
[data-theme="light"] .auth-switch a.on { color: #fff; }
[data-theme="light"] .auth-card { background: #ffffff; border-color: #e6e6ea; }
[data-theme="light"] .auth-card .ofield-box { background: #f6f6f8; border-color: #e3e3e8; }
[data-theme="light"] .auth-close { background: #ffffff; color: #17171b; }

/* ---------- batch 2: wins are gold, losses grey (red is the brand, not a result) ---------- */
:root { --win-gold: #f5c518; }
.hb-won { background: linear-gradient(90deg, #6b5200, #b98e00) !important; color: #fff; }
.hb-lost { background: #2a2a30 !important; color: #c9cad0; }
.tk-leg.r-won .tk-leg-ic { background: var(--win-gold); color: #2a1f00; }
.tk-leg.r-won .tk-pick { background: rgba(245, 197, 24, .1); border-color: rgba(245, 197, 24, .35); }
.tk-leg.r-won .tk-pick b, .tk-leg.r-won .tk-outcome { color: var(--win-gold); }
.won, .tk-status.won, .status-won { color: var(--win-gold); }
.jp-go.won { color: var(--win-gold) !important; }
.jb-row.won { background: rgba(245, 197, 24, .08) !important; border: 1px solid rgba(245, 197, 24, .35) !important; }
.dc-result.won b, .dc-result.won span, .dc-hist .won { color: var(--win-gold) !important; }

/* ---------- batch 2: sports / live lists ---------- */
.sec-head { background: #0e0e10; border-bottom: 1px solid #1f1f24; }
.sec-head h2, .sec-head .sec-title { font-family: var(--head-font); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.dayrow { background: #101013; border-bottom: 1px solid #1f1f24; }
.lgroup > .lg-head, .lg-head { font-weight: 700; }
[data-theme="light"] .sec-head { background: #ffffff; border-bottom-color: #e6e6ea; }
[data-theme="light"] .dayrow { background: #fafafb; border-bottom-color: #ededf1; }
[data-theme="light"] .hb-lost { background: #ececf0 !important; color: #44454c; }
.hb-row b.hb-ret { color: var(--win-gold); }
.auth-card .plain-label { font-size: 11px; font-weight: 700; color: #a3a4ab; text-transform: uppercase; letter-spacing: .6px; margin: 4px 0 6px; }
.auth-card .phone-box { height: 46px; border-radius: 8px; border: 1px solid #2c2c33; background: #0e0e10; }
.auth-card .phone-box:focus-within { border-color: var(--g); box-shadow: 0 0 0 3px rgba(227, 22, 28, .18); }
.auth-card .pw-meter, .auth-card .pw-strength { margin-top: -4px; }
.tk-status.is-good, .tk-return b.pos, .hb-row .pos, .won-amt { color: var(--win-gold) !important; }
[data-theme="light"] .auth-card .phone-box { background: #f6f6f8; border-color: #e3e3e8; }
[data-theme="light"] .auth-card .plain-label, [data-theme="light"] .auth-card .ofield-label { color: #6c6d75; }

/* ---------- match picture banners (players + crests of the top matches) ---------- */
.pslide { background: radial-gradient(90% 120% at 50% 110%, #7a080c 0%, #2a0405 45%, #090909 100%); }
.pslide::after { display: none; }
.ps-side { position: absolute; bottom: 0; width: 46%; height: 100%; display: flex; align-items: flex-end; }
.ps-side.l { left: 0; justify-content: flex-start; }
.ps-side.r { right: 0; justify-content: flex-end; }
.ps-players { position: relative; display: flex; align-items: flex-end; flex: none; }
.ps-players img { flex: none; width: 82px; height: 92px; object-fit: cover; object-position: top; border-radius: 46px 46px 0 0; margin-left: -34px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.ps-players img:first-child { margin-left: 0; width: 100px; height: 116px; border-radius: 50px 50px 0 0; z-index: 3; }
.ps-players img:nth-child(2) { z-index: 2; }
.ps-side.r .ps-players { flex-direction: row-reverse; }
.ps-side.r .ps-players img { margin-left: 0; margin-right: -34px; }
.ps-side.r .ps-players img:first-child { margin-right: 0; }
.ps-crest { position: absolute; top: 12px; }
.ps-side.l .ps-crest { left: 12px; } .ps-side.r .ps-crest { right: 12px; }
.ps-crest .tlogo, .ps-crest .badge { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.ps-txt { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; width: 58%; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ps-txt .kicker { padding: 2px 7px; border-radius: 3px; background: var(--g); color: #fff; font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.ps-txt b { font-family: var(--head-font); font-size: 19px; font-weight: 800; line-height: 1.05; color: #fff; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.ps-txt b i { display: block; font-style: normal; font-size: 12px; color: #ffb3b5; margin: 1px 0; }
.ps-when { font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 4px; }
.ps-when.live { background: var(--g); }
.ps-txt .cta { padding: 4px 12px; border-radius: 5px; background: #fff; color: #17171b; font-size: 10.5px; font-weight: 900; text-transform: uppercase; display: inline-flex; align-items: center; gap: 2px; }
.ps-txt .cta .ic { width: 11px; height: 11px; }
.pslide .ps-players img { position: relative; right: auto; top: auto; }
.pslide .ps-crest img { position: static; width: 100%; height: 100%; object-fit: contain; }
.pslide .ps-side { width: 34%; }
.pslide .ps-players img { width: 56px; height: 66px; margin-left: -22px; border-radius: 28px 28px 0 0; }
.pslide .ps-players img:first-child { width: 72px; height: 86px; border-radius: 36px 36px 0 0; margin-left: 0; }
.pslide .ps-side.r .ps-players img { margin-left: 0; margin-right: -22px; }
.pslide .ps-side.r .ps-players img:first-child { margin-right: 0; }
.pslide .ps-crest { top: 10px; }
.pslide .ps-txt { width: 44%; }
.pslide .ps-txt b { font-size: 16px; }
