/* sw-p0-ux 20261106p0 — P0/P1 chrome; SoftAgg/SoftGaming never on player UI */
/* Hub: stake amount + unit only (hubfix-20261106) */
html.swd .swr-hub::after,
html.swd [data-testid=wheel-hub-stake]::after,
.swr-hub::after,
[data-testid=wheel-hub-stake]::after,
html[lang^=zh] .swr-hub::after,
html.zh .swr-hub::after,
html[lang^=zh] [data-testid=wheel-hub-stake]::after,
html.zh [data-testid=wheel-hub-stake]::after{
  content:none!important;display:none!important;visibility:hidden!important;
}
html.swd .swr-hub > small:first-of-type,
html.swd [data-testid=wheel-hub-stake] > small:first-of-type,
.swr-hub > small:first-of-type,
[data-testid=wheel-hub-stake] > small:first-of-type{display:none!important}
html.swd .swr-hub > small:last-of-type,
html.swd [data-testid=wheel-hub-stake] > small:last-of-type,
.swr-hub > small:last-of-type,
[data-testid=wheel-hub-stake] > small:last-of-type{
  display:block!important;font:800 9px/1.05 system-ui,sans-serif!important;color:#fde68a!important;
  text-transform:uppercase!important;letter-spacing:.04em!important;
}
[data-testid=hub-emblem],
html.swd [data-testid=hub-emblem],
#root [data-testid=hub-emblem]{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}

/* RTP next to disclosed-return / odds table */
[data-testid=odds] ::before,
[data-testid=rtp-table]::before,
section[aria-label*=Disclosed]::before,
.swr-odds::before,
[data-testid=fairness] h2::after,
[data-testid=odds-table]::before{
  /* filled by more specific rule below */
}
table[data-testid=odds] caption::after,
[data-testid=odds] > h2::after,
[data-testid=odds] > h3::after,
.swr-panel [data-testid=odds]::before,
div[data-testid=odds]::before{
  content:" · RTP 95%";
  color:#fbbf24;
  font-weight:800;
}
html[lang^=zh] table[data-testid=odds] caption::after,
html.zh table[data-testid=odds] caption::after,
html[lang^=zh] div[data-testid=odds]::before,
html.zh div[data-testid=odds]::before{
  content:" · 回報率 95%";
}

/* Hide any leftover in-game language <select> in game chrome */
#root select[aria-label],
main select.border-amber-500\/60{
  display:none!important;
}

/* Demo banner: one clean badge */
[data-testid=demo-banner]{
  display:inline-flex!important;align-items:center;gap:8px;
  max-width:min(96vw,520px);margin:0 auto 8px!important;
  padding:10px 14px!important;border-radius:999px!important;
  border:1px solid #38bdf8!important;background:#0c4a6e!important;color:#e0f2fe!important;
  font:800 14px/1.25 system-ui,sans-serif!important;text-align:center;
}
[data-testid=demo-banner] span{font:600 12px/1.35 system-ui,sans-serif!important;color:#bae6fd!important}

/* Coach-2 belt-and-suspenders */
.swr-coach.c2,[data-testid=coach-2]{display:none!important}

/* Repeat-last as clear own toggle */
[data-testid=repeat-last],.swr-rep{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:44px;padding:8px 12px;border-radius:12px;
  border:1px solid #38bdf8;background:#0f172a;color:#7dd3fc;
  font:800 13px/1 system-ui,sans-serif;margin:0 0 8px;
}

/* Jackpot 20x slice visibility */
[data-testid=seg-jackpot],
[data-segment=Jackpot],
[data-seg="Jackpot"],
.swr-seg-jackpot,
wedge[data-label="20x"],
[aria-label*="Jackpot"],
[aria-label*="20x"]{
  filter:drop-shadow(0 0 6px #fbbf24) drop-shadow(0 0 12px #f59e0b)!important;
}
/* SVG path heuristic: title/label */
#root svg path[data-jackpot="1"],
#root svg .jackpot-slice{
  stroke:#fde68a!important;stroke-width:2.5!important;
  filter:url(#sw-jackpot-glow);
}

/* Bottom quests bar must not cover controls */
[data-testid=quests-bar],
.quests-float,
#sw-quests,
[class*="quest"][class*="float"],
a[href*="quest"]{
  bottom:max(12px, env(safe-area-inset-bottom))!important;
}
/* push common sticky promo/quest bars above stake CTA */
body .fixed.bottom-0, body [class*="bottom-0"][class*="fixed"]{
  margin-bottom:0;
}
/* specific: Complete quests floating bar if present as fixed bottom */
body > a[href*="/quests"], body #root ~ a[href*="quest"]{
  transform:translateY(-72px);
}

/* High-contrast 18+ / responsible gaming */
.sw-rg-notice, #sw-rg-notice, [data-testid=rg-notice]{
  display:block!important;margin:12px auto!important;max-width:min(96vw,560px);
  padding:12px 14px!important;border-radius:12px!important;
  border:2px solid #f87171!important;background:#450a0a!important;color:#fecaca!important;
  font:800 14px/1.4 system-ui,sans-serif!important;text-align:center!important;
}
