/* Built by tools/build-css.mjs from: brand/neon/games-theme.css, brand/neon/layout.css, brand/neon/shell.css, brand/neon/blackout-clean.css.
   Do not edit. Change the sources, then run: node tools/build-css.mjs */
/* ── brand/neon/games-theme.css ── */
/* Tilt neon theme for the original pages (games, the floor, profile): the home page's look on their own layout.
   Glass black surfaces, neon mint as the lit tube (what you press), mint for figures you read,
   wide caps (Unbounded) for labels and headings, pills and circles for controls. Remaps brand/tokens.css, so it is
   linked last on each page. The amber T lamp stays amber. */
@font-face{font-family:"Unbounded";src:url("/assets/fonts/unbounded-800.woff2") format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:"Unbounded";src:url("/assets/fonts/unbounded-700.woff2") format("woff2");font-weight:500 700;font-display:swap}

:root{
  --stage:#030304; --bg:#050507; --bg-glow:#0d0d12;
  --panel:#0b0b0f; --panel-raised:#111116; --panel-hover:#1a1a21; --input:#08080b;
  --line:#1f1f28; --line-strong:#30303c;
  --text:#ffffff; --muted:#bdc1d8; --subtle:#a3a7c2; --dim:#5d6080;
  /* gold → mint and neon mint */
  --gold:#8dfbe0; --gold-bright:#d6fff4; --gold-hover:#5ff7d2; --gold-deep:#12b892; --on-gold:#06071a;
  /* teal (the main action) → neon mint */
  --teal:#22f2c2; --teal-deep:#12b892; --on-teal:#03130e;
  --green:#13ec13;
  --glow-gold:rgba(34,242,194,.4); --glow-teal:rgba(34,242,194,.3);
  --wash-gold:rgba(34,242,194,.09); --sheen:rgba(255,255,255,.05); --scrim:rgba(0,0,0,.66);
  --shadow-card:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.6),0 24px 60px rgba(0,0,0,.6);
  --shadow-lift:inset 0 1px 0 rgba(255,255,255,.1),0 32px 80px rgba(0,0,0,.7);
  --shadow-glow-gold:0 0 22px rgba(34,242,194,.55),inset 0 1px 0 rgba(255,255,255,.3);
  --shadow-glow-teal:0 0 0 4px rgba(34,242,194,.22);
  --foil:linear-gradient(135deg,#d6fff4 0%,#5ff7d2 45%,#22f2c2 100%);
  --font-display:"Unbounded","Arial Black",system-ui,sans-serif;
  --radius-sm:12px; --radius-md:16px; --radius-lg:24px;
  /* glass black: lacquer with a soft top reflection */
  --glass:linear-gradient(180deg,rgba(255,255,255,.06) 0%,rgba(255,255,255,.012) 24%,rgba(255,255,255,0) 50%),linear-gradient(180deg,#121217,#07070a);
}
html,body{background:var(--bg)!important}
body{background-image:linear-gradient(180deg,rgba(255,255,255,.03),transparent 420px)!important}

/* panels: black glass */
.card,.side,.fair,.stat,.controls .cell,.cv2 .c-stake,.cv2 .c-odds,.cv2 .c-pays,.lobby .t,.f-card,.pf-card{
  background:var(--glass)!important;border-color:rgba(255,255,255,.09)!important;box-shadow:var(--shadow-card)}

/* labels and headings in wide caps */
h1,h2,h3,.display-1,.display-2,.display-hero,.title{font-family:var(--font-display)!important;letter-spacing:.01em}
.label,.eyebrow,.ph-chip,.chip,.k,.tab,.tabs button,.seg button,.pill,.play-mode .tag,.phase span,.phase li{
  font-family:var(--font-display)!important;text-transform:uppercase;letter-spacing:.06em}

/* buttons: pills; the main action is a lit electric-blue tube */
.ph-btn,a.btn,.presets button,.stepper button{border-radius:999px}
.ph-btn,.btn-primary,#rollBtn,#betBtn,#buyOk,#flipGo,.cta{
  background:#22f2c2!important;color:#03130e!important;border-color:transparent!important;
  box-shadow:inset 0 0 0 1px rgba(160,255,230,.55),0 0 22px rgba(34,242,194,.5),0 10px 30px -10px rgba(34,242,194,.8)!important}
@media(hover:hover){.ph-btn:not(:disabled):hover,#rollBtn:not(:disabled):hover,#betBtn:not(:disabled):hover{box-shadow:inset 0 0 0 1px rgba(200,255,240,.8),0 0 34px rgba(34,242,194,.8)!important}}
/* round icon buttons get a white ring */
#muteBtn{border-radius:50%!important;border:2px solid #fff!important;background:transparent!important;color:#fff!important}


/* the game stage: deep black glass under the scene */
.stage{background:#030304!important}
/* Cash out: same shape as Bet (each page's own button radius). A quiet green outline until it's live, then solid
   green lit the way Bet is: a fine inner ring and a soft glow, not a neon tube */
#cashBtn{background:transparent!important;border:1px solid rgba(74,222,128,.42)!important;color:#bdf5cf!important;box-shadow:none!important}
#cashBtn:not(:disabled){background:#4ade80!important;color:#04140a!important;border-color:transparent!important;
  box-shadow:inset 0 0 0 1px rgba(200,255,220,.55),0 0 18px rgba(74,222,128,.38),0 10px 28px -12px rgba(74,222,128,.7)!important}
#cashBtn:not(:disabled):hover{box-shadow:inset 0 0 0 1px rgba(220,255,232,.8),0 0 26px rgba(74,222,128,.55)!important}
#rollBtn.stop{background:transparent!important;color:#fff!important;box-shadow:inset 0 0 0 2px #fff!important}

/* leftovers from the old teal, hardcoded in the pages: re-lit in the neon theme */
.livebtn{border:2px solid #fff!important;background:transparent!important;color:#fff!important;font-family:var(--font-display)!important;
  font-size:11px!important;font-weight:600!important;letter-spacing:.06em;text-transform:uppercase;height:38px!important;padding:0 16px!important}
.livebtn:hover{background:#fff!important;color:#06071a!important}
.livebtn:focus-visible{outline:2px solid #22f2c2!important}
.cv2 .dirseg button.on,.pre label:has(input:checked),.cv2 .fasttog[aria-pressed="true"]{background:#22f2c2!important;color:#03130e!important;border-color:transparent!important;box-shadow:0 0 16px rgba(34,242,194,.5)!important}
/* Fast on: the bright mint pill carries dark text and icon, so "Fast" and "On" stay readable (white glowed into the mint) */
.cv2 .fasttog[aria-pressed="true"] :is(.t,.q,svg){color:#03130e!important;filter:none!important;text-shadow:none!important}
.fairbtn:hover,.cv2 .refill:hover,.verify:hover,.btnwrap .faucet:hover{background:rgba(34,242,194,.14)!important;border-color:rgba(34,242,194,.6)!important}
.verify{border-color:rgba(34,242,194,.5)!important;background:rgba(34,242,194,.1)!important;color:#d6fff4!important}
.queued,#betBtn.queued:disabled{background:rgba(34,242,194,.18)!important;color:#d6fff4!important;box-shadow:inset 0 0 0 1px rgba(34,242,194,.6)!important}
.seat.turn .plate{box-shadow:0 0 0 2px #22f2c2,0 0 18px rgba(34,242,194,.55)!important}

/* ---------- the game pages' sidebar (brand/rail.js) and phone tab bar, in the home theme ---------- */
.trail{background:rgba(8,8,11,.86)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:24px!important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)!important;box-shadow:0 24px 60px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.06)!important}
.trail .tl-h{font:500 10px/1 var(--font-display)!important;letter-spacing:.14em!important;text-transform:uppercase;color:var(--muted)!important}
.trail .tl-x{border-radius:50%!important;border:2px solid rgba(255,255,255,.85)!important;background:transparent!important;color:#fff!important}
.trail .tl-x:hover{background:#fff!important;color:#06071a!important}
.trail a{border-radius:999px!important}
.trail a:hover{background:rgba(255,255,255,.06)!important}
.trail a:focus-visible,.tbar a:focus-visible{outline-color:#22f2c2!important}
.trail .g .ic{border-radius:50%!important;background:radial-gradient(circle at 50% 35%,rgba(var(--c),.2),rgba(0,0,0,.4) 70%),#0b0b0f!important}
.trail .g b{font:700 12px/1.2 var(--font-display)!important;letter-spacing:.04em;text-transform:uppercase}
.trail .g small{font-size:11px!important}
/* the page you're on: a white pill with dark text, like the home sidebar */
.trail .g[aria-current],.trail .l[aria-current]{background:#fff!important;box-shadow:none!important;color:#06071a!important}
.trail .g[aria-current] b,.trail .g[aria-current] small,.trail .l[aria-current] span{color:#06071a!important}
.trail .g[aria-current]::before{display:none!important}
.trail .g[aria-current] .ic{box-shadow:0 0 0 2px rgba(var(--c),.9)!important}
.trail .sep{background:rgba(255,255,255,.08)!important}
.trail .l{font:600 11px/1 var(--font-display)!important;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)!important}
.trail .l:hover{color:#fff!important}
.trail .ft b{color:#13ec13!important;font-family:var(--font-display)!important;font-size:10px!important}
.tbar{background:rgba(6,6,9,.96)!important;border-top:1px solid rgba(255,255,255,.08)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.tbar a{font-family:var(--font-display)!important;font-size:9px!important;letter-spacing:.06em;text-transform:uppercase}
.tbar a[aria-current]{color:#fff!important}
.tbar a[aria-current] .ic{border-radius:50%!important;background:rgba(255,255,255,.08)!important;box-shadow:0 0 0 2px #fff,0 0 14px rgba(34,242,194,.5)!important}
/* no "live" status dots in the game sidebar either */
.trail .ft b::before{display:none!important}

/* phones: the tab bar's labels in a narrower face so five games fit side by side */
.tbar a{font-family:var(--font-sans)!important;font-size:10.5px!important;font-weight:600;letter-spacing:0!important;text-transform:none!important}
/* phones: every small control is at least 40px tall, so it's easy to hit with a thumb */
@media (max-width:760px){
  .presets button,.stepper button,.seg button,.dirseg button,.chips button,.qchips button,.tabs button,.filters button,.seg a,
  .refill,.navlink,.sw,.ph-btn--sm,.chipbtn,.ph-btn--ghost,.ph-btn--gold,.livebtn,.pm-wallet a,.trail .l,#stakeDn,#stakeUp{
    min-height:40px!important;display:inline-flex;align-items:center;justify-content:center}
}
@media (max-width:760px){
  .stepper button,#stakeDn,#stakeUp{min-width:40px!important}
  .ph-logo{min-height:40px;display:inline-flex!important;align-items:center}
}
/* phones and tablets: the live table's player list scrolls inside its card instead of running into the footer */
@media (max-width:980px){
  .card.lobby{overflow:hidden}
  .card.lobby .players{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
}

/* ---------- touch screens (phones and tablets): every control is at least 44px, the size of a fingertip ---------- */
@media (pointer:coarse){
  .presets button,.stepper button,.seg button,.dirseg button,.chips button,.qchips button,.tabs button,.filters button,.seg a,
  .refill,.navlink,.floorlink,.sw,.ph-btn,.chipbtn,.livebtn,.pm-wallet a,.trail .l,.trail .tl-x,#stakeDn,#stakeUp,.autotog,.fasttog,
  .play-mode a,.foot a,.ftr a{min-height:44px!important;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
  .presets,.chips,.qchips{gap:6px}
  /* the live table's list never runs into what follows it */
  .card.lobby{overflow:hidden}
  .card.lobby .players{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  /* inputs at 16px, so iPhone doesn't zoom the page when you tap one */
  input,select,textarea{font-size:16px!important}
}
/* phones: a card header holding control groups wraps them onto their own lines instead of squeezing them into one grid row */
@media (max-width:760px){.hd:has(> .ctrls){display:flex!important;flex-wrap:wrap;gap:8px;align-items:center}}
/* when the game tab bar is showing, the page ends above it, so nothing (like the action buttons) hides behind it */
html.tbar-on body{padding-bottom:calc(var(--tbar-h, 64px) + env(safe-area-inset-bottom, 0px) + 12px)!important}

/* ---------- the game coach (brand/neon/coach.js): what to do next, the result, the session total ---------- */
.coach{display:flex;align-items:center;gap:10px;min-height:48px;margin:0 0 10px;padding:10px 14px;border-radius:14px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);font:500 14px/1.35 var(--font-sans);color:#e6e8f0}
.coach-dot{display:none!important}
.coach[data-state="go"] .coach-dot{display:none!important}
.coach[data-state="wait"] .coach-dot{display:none!important}
.coach[data-state="won"]{border-color:rgba(34,242,194,.45);background:rgba(34,242,194,.08)}
.coach[data-state="won"] .coach-dot{display:none!important}
.coach[data-state="won"] b{color:var(--teal)}
.coach[data-state="lost"] b{color:#c9ccd8}
.coach-text{flex:1;min-width:0}
.coach-text b{font-weight:700}
.coach-verify{all:unset;cursor:pointer;margin-left:6px;padding:3px 10px;border-radius:999px;font:600 12px var(--font-sans);color:var(--teal);border:1px solid rgba(34,242,194,.4)}
.coach-verify:hover{background:rgba(34,242,194,.12)}
.coach-side{display:flex;align-items:center;gap:8px;flex:none}
.coach-session{font:600 12px var(--font-mono);padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.06)}
.coach-session[data-sign="up"]{color:var(--teal)}
.coach-session[data-sign="down"]{color:#c9ccd8}
.coach-how{all:unset;cursor:pointer;font:600 12px var(--font-sans);color:#c9ccd8;text-decoration:underline;text-underline-offset:3px}
.coach-how:hover{color:#fff}
.coach-verify:focus-visible,.coach-how:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
@keyframes coachPulse{50%{opacity:.4}}
@media (prefers-reduced-motion:reduce){.coach-dot{animation:none!important}}
@media (max-width:600px){.coach{flex-wrap:wrap;font-size:13.5px}.coach-side{width:100%;justify-content:space-between}}
@media (pointer:coarse){.coach-verify,.coach-how{min-height:44px;display:inline-flex;align-items:center}}
/* the last small links on phones: the footer home link, "PnL ▸", and the empty-state links on the profile get a full-size tap area */
@media (pointer:coarse){footer a,.mine .k a,.empty a{display:inline-flex;align-items:center;min-height:44px}}
/* Crash and Blackout keep a floating Bet / Cash out dock above the phone tab bar: the footer scrolls clear of both */
@media (max-width:767px){html.tsh-g-crash body>footer,html.tsh-g-blackout body>footer,html.tsh-g-dice body>footer,html.tsh-g-flip body>footer{padding-bottom:calc(150px + env(safe-area-inset-bottom))!important}}
/* the word Tilt, set as the official wordmark inside text (also in components.css, for pages without this file) */
.wm-in{display:inline-block;height:1em;width:auto;vertical-align:-.13em;margin:0 .03em}
:is(h1,h2,h3,.display) .wm-in{height:1.1em;vertical-align:-.16em}
/* touch: the stake - / + steppers reach the 44pt minimum */
@media (pointer:coarse){.bb-step button{width:44px!important;min-height:44px}}
@media (pointer:coarse){#faucetBtn,#fairBtn,.practice-choice,.turn .how{min-height:44px!important}#stakeDn,#stakeUp,.stepper button{min-width:44px!important}}
/* phones: nothing readable under 11px - table column headers, badges and step labels */
@media (max-width:767px){thead :is(th,td),.tb-hd>*,.tb-demo,.step-time,.ways-pill,.figure-tag{font-size:11px!important}}
/* ── brand/neon/layout.css ── */
/* Tilt game layouts: the standard arcade layout on the game pages (bet panel on the left, the game on the right). Per-game rules are scoped by body class or page markers.
   Crash, Dice, Flip and Blackout, from 1024px wide (desktop and tablet landscape). brand/neon/layout.js marks the main
   card .tl-card and the page html.tl-<game>, adds html.tl-stack when the side card won't fit beside the game, and adds
   the Manual | Auto tabs, the Recent pills (Dice, Flip) and Profit on win (Crash, Blackout). Below 1024px nothing here
   applies except hiding those additions, so the stacked layout and the phone dock stay exactly as they were. */

/* additions are desktop-only */
.tl-tabs,.tl-recent,.tl-profit,.tl-side-x{display:none!important}

@media (min-width:1024px){
  /* ---------- the page: wider, and the side card beside the game only when there's room ---------- */
  html.tl-game body{grid-template-columns:minmax(0,1fr)}   /* the body grid's one track is the space beside the rail, never the shell's content width */
  html.tl-game .shell{width:min(1520px,100%);min-width:0}
  html.tl-game .shell:has(> .card.lobby){grid-template-columns:minmax(0,1fr) 300px}
  html.tl-game .layout{grid-template-columns:minmax(0,1fr) 316px}
  html.tl-stack.tl-game .shell:has(> .card.lobby),html.tl-stack.tl-game .layout{grid-template-columns:minmax(0,1fr)}
  html.tl-stack .card.lobby{max-height:300px;overflow:hidden}
  html.tl-stack .card.lobby .players{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  html.tl-stack .side .cols{display:grid;grid-template-columns:1fr 1fr}

  /* ---------- no side column: the game gets the full width ----------
     The side card (Session on Dice and Flip, Live table on Crash and Blackout) made the game cramped. It now waits off
     screen and slides in over the page from the Live stats tool (brand/neon/shell.js), closing on its X, Esc or a click outside. */
  html.tl-game .layout,html.tl-game .shell:has(> .card.lobby){grid-template-columns:minmax(0,1fr)!important}
  html.tl-game .layout > .side,html.tl-game .shell > .card.lobby{position:fixed!important;top:12px;right:12px;bottom:12px;z-index:85;
    width:min(360px,calc(100vw - 24px));max-height:none!important;margin:0;overflow-y:auto;overscroll-behavior:contain;
    box-shadow:0 24px 60px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.08);
    translate:calc(100% + 24px) 0;visibility:hidden;transition:translate .34s cubic-bezier(.2,.8,.2,1),visibility 0s .34s}
  html.tl-side-open.tl-game .layout > .side,html.tl-side-open.tl-game .shell > .card.lobby{translate:0 0;visibility:visible;transition:translate .34s cubic-bezier(.2,.8,.2,1)}
  html.tl-game .tl-side-x{display:grid!important;position:sticky;top:0;margin:0 0 -34px auto;z-index:2;width:34px;height:34px;place-items:center;border-radius:50%;
    border:1px solid rgba(255,255,255,.14);background:rgba(10,10,14,.85);color:#c9ccd8;cursor:pointer}
  html.tl-game .tl-side-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  html.tl-game .tl-side-x:hover{color:#fff;border-color:rgba(255,255,255,.3)}

  /* ---------- the main card: panel | game ---------- */
  .tl-card{
    --tl-panel:clamp(300px,30%,348px);
    --tl-stage-min:clamp(400px,calc(100vh - 300px),640px);   /* vh first; the @supports block below upgrades it to dvh (a custom property can't fall back by itself) */
    display:grid!important;grid-template-columns:var(--tl-panel) minmax(0,1fr);
    /* 1 head (until the shell moves it out) · 2 play mode · 3 recent · 4 the stage (takes up the slack) · 5–10 the rest */
    grid-template-rows:auto auto auto minmax(var(--tl-stage-min),1fr) repeat(6,auto);
    grid-auto-rows:auto;row-gap:0;column-gap:0;align-items:start}
  html.tl-blackout .tl-card{--tl-stage-min:clamp(400px,calc(100vh - 260px),660px)}
  @supports (height:100dvh){
    .tl-card{--tl-stage-min:clamp(400px,calc(100dvh - 300px),640px)}
    html.tl-blackout .tl-card{--tl-stage-min:clamp(400px,calc(100dvh - 260px),660px)}
  }
  .tl-card > *{grid-column:2;min-width:0}
  .tl-card > .head{grid-column:1 / -1;grid-row:1}
  .tl-card > .play-mode{grid-column:1 / -1;grid-row:2}
  .tl-card > :is(.strip,.tl-recent){grid-row:3}
  .tl-card > .stage{grid-row:4;align-self:stretch;height:auto!important;min-height:0}
  /* a short laptop window: when the bet panel runs past the fold, its play buttons ride the bottom edge of the
     screen (sticky inside the panel) instead of waiting below it */
  .tl-card{overflow:clip!important}   /* clip, not hidden: a hidden overflow is a scroll container and would stop the sticky buttons below */
  .tl-card .controls > [data-dock],.tl-card .controls > :has(> [data-dock]){position:sticky;bottom:calc(var(--tbar-h,0px) + 10px);z-index:3;padding-top:10px;
    background:linear-gradient(180deg,rgba(8,8,12,0),rgba(8,8,12,.96) 12px)}
  /* reserve the game column's first four rows, so auto-placed extras (toolbar, coach…) never slide up into the
     rows the head and play-mode bar leave empty once the shell moves them out */
  .tl-card::before{content:"";grid-column:2;grid-row:1 / 5;pointer-events:none;visibility:hidden}
  /* everything else in the card (toolbar, coach, fairness, keys…) flows under the stage in the game column */

  /* ---------- recent results: a row of pills on top of the stage ---------- */
  .tl-card > :is(.strip,.tl-recent){display:flex!important;align-items:center;gap:6px;min-height:44px;padding:8px 14px;border-top:0;
    border-bottom:1px solid rgba(255,255,255,.07);background:rgba(0,0,0,.28);overflow:hidden;flex-wrap:nowrap;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent)}
  .tl-card > :is(.strip,.tl-recent) .lab{font:600 10px/1 var(--font-display)!important;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-right:6px;flex:none}
  .tl-card > :is(.strip,.tl-recent) .q{font:500 12.5px/1.3 var(--font-sans);color:var(--muted);white-space:nowrap}
  .tl-card > :is(.strip,.tl-recent) .chip{flex:none;display:inline-flex;align-items:center;height:26px;padding:0 11px;border-radius:999px;
    font:600 12px/1 var(--font-mono)!important;letter-spacing:0!important;text-transform:none!important;white-space:nowrap;
    background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:#c9ccd8}
  .tl-card > :is(.strip,.tl-recent) .chip.win,.tl-card > :is(.strip,.tl-recent) .chip.big{background:rgba(34,242,194,.12);border-color:rgba(34,242,194,.45);color:#8dfbe0}
  .tl-card > :is(.strip,.tl-recent) .chip.mega{background:#22f2c2;border-color:transparent;color:#03130e;box-shadow:0 0 12px rgba(34,242,194,.5)}
  .tl-card > :is(.strip,.tl-recent) .chip.lose{color:#c9ccd8}
  .tl-recent{display:flex!important}
  button.tl-pill{cursor:pointer;font:inherit}
  button.tl-pill:hover{border-color:rgba(255,255,255,.35)}
  button.tl-pill:focus-visible{outline:2px solid #22f2c2;outline-offset:1px}
  .tl-pill.new{animation:tlPill .3s cubic-bezier(.2,.8,.2,1) both}
  @keyframes tlPill{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
  @media (prefers-reduced-motion:reduce){.tl-pill.new{animation:none}}

  /* ---------- the bet panel ---------- */
  .tl-card > .controls,.tl-card > .controls.cv2{grid-column:1;grid-row:3 / -1;align-self:stretch;
    display:flex!important;flex-direction:column;gap:12px;padding:16px 14px 18px;margin:0;
    border-top:0;border-right:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(0,0,0,.25))}
  .tl-card > .controls > *{min-width:0;grid-column:auto!important;flex:none}
  .tl-card > .controls .cell{margin:0}

  /* Manual | Auto */
  .tl-tabs{display:grid!important;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:999px;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.08)}
  .tl-tabs button{all:unset;box-sizing:border-box;height:36px;display:flex;align-items:center;justify-content:center;border-radius:999px;cursor:pointer;
    font:600 11px/1 var(--font-display);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);transition:background .18s,color .18s}
  .tl-tabs button:hover{color:#fff}
  .tl-tabs button[aria-selected="true"]{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
  .tl-tabs button:focus-visible{outline:2px solid #22f2c2;outline-offset:2px}
  .tl-card #autoTog{display:none!important}    /* the tabs replace the Auto toggle */
  .tl-card > .controls > .tl-tabs{order:0}
  .tl-card > .controls > .autopanel{order:4;grid-template-columns:1fr!important;padding:12px}
  .tl-card > .controls > .autopanel .ap-row.stops{grid-template-columns:1fr 1fr}
  .tl-card > .controls > .rollrow{order:5;display:flex!important;gap:8px}
  .tl-card > .controls > .rollrow #rollBtn,.tl-card > .controls > .rollrow #flipBtn{flex:1 1 0;min-width:0;width:auto}
  .tl-card > .controls > .rollrow .autotog{flex:0 0 auto;width:auto;min-width:72px}

  /* Dice / Flip: stake, the choice, then profit */
  .tl-card .cv2 .c-stake,.tl-card .cv2 .c-odds,.tl-card .cv2 .c-pay{padding:12px}
  .tl-card .cv2 .c-pay{display:grid!important;grid-template-columns:1fr auto;align-items:baseline;gap:2px 10px}
  .tl-card .cv2 .c-pay .mini{grid-column:1 / -1}
  .tl-card .cv2 .c-pay .paybig{grid-column:1;font-size:24px}
  .tl-card .cv2 .c-pay .payline{grid-column:2;text-align:right}
  .tl-card .cv2 .c-pay .paywhen{grid-column:1 / -1}
  .tl-card .cv2 #stakePresets{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  .tl-card .cv2 #stakePresets button{padding-left:0;padding-right:0;min-width:0}
  .tl-card .cv2 .trio{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .tl-card .cv2 .od input{font-size:16px;padding:8px 8px;height:42px}
  .tl-card .cv2 .stakebox input{font-size:22px;height:52px}
  /* the left column is narrow: stack the label over the payout so the amount always shows in full */
  .tl-card #rollBtn,.tl-card #flipBtn{flex-direction:column;justify-content:center;gap:2px;padding:9px 12px}
  #rollBtn .sub,#flipBtn .sub{white-space:normal;text-align:center;min-width:0;line-height:1.25}
  #rollBtn,#flipBtn{min-height:56px}
  .tl-card .calls .call{min-width:0}

  /* Crash / Blackout: cells stacked, Profit on win, the Bet button at the bottom */
  .tl-profit{display:block!important;padding:12px 14px;border-radius:14px}
  .tl-profit .lab{font:var(--label,500 12.5px/1.25 var(--font-sans));color:var(--muted);margin-bottom:6px}
  .tl-profit .tl-pv{display:flex;align-items:baseline;gap:8px}
  .tl-profit .tl-pv b{font:600 22px/1.1 var(--font-mono);color:#22f2c2;font-variant-numeric:tabular-nums;text-shadow:0 0 14px rgba(34,242,194,.35)}
  .tl-profit .tl-pv span{font:600 11px/1 var(--font-mono);color:var(--muted);letter-spacing:.06em}
  .tl-profit .tl-pn{margin-top:6px;font:500 12.5px/1.35 var(--font-sans);color:var(--muted)}
  .tl-card > .controls > .btnwrap{order:6;display:flex!important;flex-direction:column;gap:8px;padding-top:0}
  html.tl-crash .tl-card > .controls > .btnwrap button{min-height:52px;width:100%}
  html.tl-blackout .tl-card > .controls > .btnwrap .acts{order:-1;display:grid;gap:8px}   /* Bet / Cash out right under Profit on win; the faucet and the odds notes follow */
  html.tl-blackout .tl-card > .controls > .btnwrap .acts button{width:100%}
  html.tl-blackout .tl-card > .controls > .btnwrap .odds:empty{display:none}
  html.tl-crash .tl-card > .controls > .cell,html.tl-blackout .tl-card > .controls > .cell{padding:12px;border-radius:14px}
  html.tl-blackout .tl-card > .controls > .btnwrap{padding:0;background:none!important;box-shadow:none!important;border:0}
  /* risk: three rows (grid icon, name and odds) instead of three narrow cards */
  html.tl-blackout .tl-card .levels{grid-template-columns:1fr;gap:6px}
  html.tl-blackout .tl-card .levels button{flex-direction:row;align-items:center;text-align:left;gap:12px;padding:8px 12px}
  html.tl-blackout .tl-card .levels .mg{width:38px;height:38px;padding:4px}
  html.tl-blackout .tl-card .levels .lt{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:10px;row-gap:2px;flex:1}
  html.tl-blackout .tl-card .levels .lt b{font-size:13.5px}
  html.tl-blackout .tl-card .levels .lt em{white-space:nowrap;justify-self:end}
  html.tl-blackout .tl-card .levels .lt .meter{justify-self:end;margin:0}
  html.tl-blackout .tl-card .levels .lt small,html.tl-blackout .tl-card .levels .lt em{grid-column:auto}
  html.tl-blackout .tl-card > :is(.strip) .lab:only-child::after{font:500 12.5px/1.3 var(--font-sans);letter-spacing:0;text-transform:none;color:var(--muted)}
  #rollBtn .k,#flipBtn .k{display:none!important}
  html.tl-blackout .tl-card > .controls .cell:first-child .risklab{margin-top:14px}
}

/* Crash on phones: the stake cell now carries six chips, which pushed the auto cash-out cell off-screen; stack the cells */
@media (max-width:560px){html.tsh-g-crash .controls{grid-template-columns:minmax(0,1fr)}}
@media (min-width:561px) and (max-width:700px){html.tsh-g-crash .controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
/* ── brand/neon/shell.css ── */
/* Tilt arcade shell: the global top bar, practice / real switch, game toolbar, game info, bets table and play-safe reminders on the game pages (brand/neon/shell.js).
   Everything here is scoped to html.tsh-on (set by shell.js on the five game pages only), because the home page links this file too. */

html.tsh-on{--tsh-h:64px;scroll-padding-top:calc(var(--tsh-h) + 12px)}
@media (max-width:640px){html.tsh-on{--tsh-h:56px}}

/* ---------- 1. the top bar ---------- */
.tsh-top{position:fixed;z-index:45;top:0;left:var(--rail-w,0px);right:0;height:var(--tsh-h,64px);
  background:rgba(6,6,9,.88);border-bottom:1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(0,0,0,.35);
  font-family:var(--font-sans,system-ui,sans-serif);transition:left .2s ease}
html.tsh-on #shell,html.tsh-on body>.wrap{margin-top:var(--tsh-h,64px)}
html.tsh-on body>.wrap{padding-top:12px}
/* the page's own header, moved in: logo | balance pill | wallet */
.tsh-top>.head{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px!important;
  height:100%;margin:0!important;padding:0 20px!important;border:0!important;background:none!important;box-shadow:none!important;flex-wrap:nowrap!important}
.tsh-top>.head::after{display:none!important}
.tsh-top>.head>.brand,.tsh-top>.head>.ph-logo{grid-column:1;justify-self:start;min-width:0;padding:0!important;margin:0!important}
.tsh-top .ph-logo{display:inline-flex!important;align-items:center;min-height:44px;color:#fff;text-decoration:none}
.tsh-top .ph-logo>span{display:flex;align-items:center;gap:12px;min-width:0}
.tsh-top .ph-logo>span:has(> .tilt-wm){flex-direction:row;align-items:center;gap:12px}   /* components.css stacks the wordmark over the subtitle; the top bar keeps them side by side */
.tsh-top .ph-logo small{display:inline-block!important;margin:0!important;font:500 12px/1.2 var(--font-sans)!important;color:var(--muted,#bdc1d8)!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:32vw;padding-left:12px;border-left:1px solid rgba(255,255,255,.12)}
.tsh-top>.head>.wallet{grid-column:2;justify-self:center;display:flex!important;align-items:center;gap:8px;margin:0!important;flex:none!important;position:static!important}
.tsh-right{grid-column:3;justify-self:end;display:flex;align-items:center;gap:10px;min-width:0}
.tsh-right>*{margin:0!important}
.tsh-right>*:not(.tn-bell){position:static!important}   /* the bell keeps position:relative so its count badge sits on it, not on the page corner */
/* the side menu already shows the Tilt wordmark: the top bar names the game only */
html.rail-on .tsh-top .ph-logo .tilt-wm{display:none!important}
html.rail-on .tsh-top .ph-logo small{padding-left:0!important;border-left:0!important;font:600 14px/1.2 var(--font-sans)!important;color:#fff!important;max-width:40vw}
.tsh-right #muteBtn{display:none!important}   /* the toolbar's sound button drives it */
.tsh-right .floorlink,.tsh-right .navlink,.tsh-right .tsh-floor{display:inline-flex!important;align-items:center;height:40px;padding:0 14px;border-radius:999px;
  border:1px solid rgba(255,255,255,.1)!important;background:transparent;color:var(--muted,#bdc1d8)!important;font:600 12.5px var(--font-sans)!important;
  letter-spacing:0!important;text-decoration:none;white-space:nowrap;transition:color .15s,border-color .15s,background .15s}
.tsh-right .floorlink:hover,.tsh-right .navlink:hover,.tsh-right .tsh-floor:hover{color:#fff!important;border-color:rgba(255,255,255,.3)!important;background:rgba(255,255,255,.04)}
.tsh-right #liveBtn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 18px;border-radius:999px;cursor:pointer;
  background:#22f2c2;color:#03130e;font:700 13px var(--font-sans,system-ui,sans-serif);white-space:nowrap;
  box-shadow:inset 0 0 0 1px rgba(160,255,230,.55),0 0 18px rgba(34,242,194,.35);transition:box-shadow .15s,filter .15s}
.tsh-right #liveBtn:hover{box-shadow:inset 0 0 0 1px rgba(200,255,240,.8),0 0 28px rgba(34,242,194,.6)}
.tsh-right #liveBtn:disabled{opacity:.55;cursor:default}
.tsh-right #liveBtn[hidden]{display:none}
.tsh-right #liveBtn::before{content:"";width:16px;height:16px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h14a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h11'/%3E%3Cpath d='M16 13.5h.01'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h14a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h11'/%3E%3Cpath d='M16 13.5h.01'/%3E%3C/svg%3E") center/contain no-repeat}
.tsh-top a:focus-visible,.tsh-top button:focus-visible{outline:2px solid #22f2c2!important;outline-offset:2px}

/* the balance pill with the Practice | Real switch */
.tsh-pill{display:flex;align-items:center;gap:10px;height:44px;padding:0 4px 0 16px;border-radius:999px;background:#0b0b0f;
  border:1px solid rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.tsh-pill .bal{display:flex!important;flex-direction:column;justify-content:center;text-align:left!important;line-height:1!important;position:relative;margin:0!important;padding:0!important}
.tsh-pill .bal .lab{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tsh-pill .bal .amt{display:flex;align-items:baseline;gap:4px;margin:0!important;font:600 15px/1 var(--font-mono,ui-monospace,monospace)!important;color:#fff!important;
  white-space:nowrap;font-variant-numeric:tabular-nums;transform:none}
.tsh-pill .bal .amt b,.tsh-pill .bal .amt small,.tsh-pill .bal .amt .u-lbl{font:600 10px var(--font-mono,ui-monospace,monospace)!important;color:var(--muted,#bdc1d8)!important;letter-spacing:.04em;margin:0!important}
.tsh-pill .bal>small,#balanceWallet{display:none!important}
.tsh-pill .bal .chipbtn:not([hidden]){margin-top:2px;padding:0;height:auto;font:600 10px var(--font-sans);color:#22f2c2;background:none;border:0;cursor:pointer;text-decoration:underline}
.tsh-pill .bal .delta{top:calc(100% + 6px)!important;bottom:auto!important;right:auto!important;left:0}
body:not(.live) .tsh-pill .bal .amt{color:#fff!important}
.tsh-seg{display:flex;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.tsh-seg button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;cursor:pointer;
  font:600 12px var(--font-sans,system-ui,sans-serif);color:var(--muted,#bdc1d8);white-space:nowrap;transition:background .15s,color .15s}
.tsh-seg button:hover{color:#fff}
.tsh-seg button[aria-pressed="true"]{cursor:default}
.tsh-seg button[data-m="practice"][aria-pressed="true"]{background:rgba(255,208,79,.16);color:#ffd04f;box-shadow:inset 0 0 0 1px rgba(255,208,79,.45)}
.tsh-seg button[data-m="real"][aria-pressed="true"]{background:#22f2c2;color:#03130e}
.tsh-seg button[data-m="real"][aria-pressed="true"]::before{content:none}
.tsh-seg button:focus-visible{outline:2px solid #22f2c2;outline-offset:1px}
.tsh-note{max-width:180px;font:600 11px/1.25 var(--font-sans);color:#ffd04f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsh-note[hidden]{display:none}
@keyframes tshPulse{50%{opacity:.35}}

/* the old mode strip: its job moved into the bar (kept in the page, games still write to it) */
html.tsh-on #playModeBar,html.tsh-on body>.wrap>.play-mode{display:none!important}

@media (max-width:1100px){.tsh-top .ph-logo small{display:none!important}}
@media (max-width:900px){.tsh-right .floorlink,.tsh-right .navlink,.tsh-right .tsh-floor{display:none!important}}
@media (max-width:640px){
  .tsh-top>.head{grid-template-columns:auto minmax(0,1fr) auto;gap:8px!important;padding:0 12px!important}
  .tsh-pill{height:40px;padding-left:12px;gap:8px}
  .tsh-pill .bal .amt{font-size:14px!important}
  .tsh-pill .bal .amt b,.tsh-pill .bal .amt small,.tsh-pill .bal .amt .u-lbl{display:none!important}
  .tsh-seg button{height:30px;padding:0 10px;font-size:11.5px}
  .tsh-note{display:none}
  .tsh-right #liveBtn{width:44px;height:44px;padding:0;font-size:0!important}
  .tsh-right #liveBtn::before{width:19px;height:19px}
  .tsh-right .me-chip,.tsh-right a[data-me]{display:none!important}
}
@media (max-width:400px){
  .tsh-top .ph-logo img.tilt-wm,.tsh-top img.tilt-wm{height:24px!important;width:auto!important}
  .tsh-top .ph-logo{margin-right:6px}
  .tsh-seg button{padding:0 8px}
}
@media (pointer:coarse){.tsh-seg button{min-height:36px}.tsh-pill{height:46px}}

/* ---------- 2. the toolbar under the stage ---------- */
.tsh-tools{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;
  border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.015)}
.tsh-tools .g{display:flex;align-items:center;gap:4px}
.tsh-tool{all:unset;box-sizing:border-box;position:relative;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:var(--muted,#bdc1d8);
  transition:color .15s,background .15s}
.tsh-tool svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.tsh-tool:hover{color:#fff;background:rgba(255,255,255,.07)}
.tsh-tool:focus-visible{outline:2px solid #22f2c2;outline-offset:1px}
.tsh-tool[aria-pressed="true"]{color:#22f2c2;background:rgba(34,242,194,.1)}
.tsh-tool[data-t="fav"][aria-pressed="true"]{color:#ffd04f;background:rgba(255,208,79,.1)}
.tsh-tool[data-t="fav"][aria-pressed="true"] svg{fill:currentColor}
.tsh-tool[data-t="sound"][aria-pressed="false"]{color:var(--dim,#5d6080)}
.tsh-tool[data-tip]::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%,4px);padding:6px 10px;border-radius:8px;
  background:#16161c;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 10px 24px rgba(0,0,0,.5);color:#fff;font:600 12px/1 var(--font-sans,system-ui,sans-serif);white-space:nowrap;
  opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;z-index:5}
.tsh-tools .g:last-child .tsh-tool:last-child[data-tip]::after{left:auto;right:0;transform:translateY(4px)}
.tsh-tools .g:first-child .tsh-tool:first-child[data-tip]::after{left:0;transform:translateY(4px)}
.tsh-tool:hover::after,.tsh-tool:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.tsh-tools .g:last-child .tsh-tool:last-child:hover::after,.tsh-tools .g:last-child .tsh-tool:last-child:focus-visible::after,
.tsh-tools .g:first-child .tsh-tool:first-child:hover::after,.tsh-tools .g:first-child .tsh-tool:first-child:focus-visible::after{transform:none}
@media (pointer:coarse){.tsh-tool{width:44px;height:44px}.tsh-tool[data-tip]::after{display:none}.tsh-tool[data-t="keys"]{display:none}}
@media (max-width:767px){.tsh-tool[data-t="theatre"]{display:none}.tsh-tools{padding:4px 6px}}
@media (max-width:380px){.tsh-tools .g{gap:0}}
/* the sound control lives in the toolbar now */
html.tsh-on #muteBtn{display:none!important}

/* theatre mode: no side columns or sidebar, the game gets the room */
html.tsh-theatre{--rail-w:0px!important}
html.tsh-theatre .trail,html.tsh-theatre .card.side,html.tsh-theatre aside.side,html.tsh-theatre .card.lobby{display:none!important}
html.tsh-theatre #shell{width:min(1640px,100%)!important;max-width:none!important;grid-template-columns:minmax(0,1fr)!important}
html.tsh-theatre #shell .layout,html.tsh-theatre .tv{grid-template-columns:minmax(0,1fr)!important}
html.tsh-theatre body>.wrap{width:min(1640px,calc(100% - 24px))!important;max-width:none!important}

/* ---------- 5. clutter ---------- */
html.tsh-on #phase,html.tsh-on .stage>.phase,html.tsh-on #buildTag{display:none!important}
/* live table: bots with no bet this round (their row only says "—"); You stays */
html.tsh-on #players>.player.idle:not(.me):not(:only-child){display:none!important}
html.tsh-on.tsh-g-blackout #players>.player:not(.me):not(.queued):not(.won):not(.out){display:none!important}

/* ---------- 6. stake chips ---------- */
.tsh-x2{font-variant-numeric:tabular-nums}

/* ---------- 4. the bets section's place on the page ---------- */
html.tsh-on #bets{grid-column:1/-1;margin-top:14px}

/* ---------- 3 & 8. dialogs ---------- */
dialog.tsh-dlg{position:fixed;inset:0;margin:auto;height:fit-content;width:min(520px,calc(100vw - 32px));max-height:min(86vh,760px);padding:0;border:0;border-radius:24px;color:#fff;overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,0) 30%),linear-gradient(180deg,#141419,#08080b);
  box-shadow:0 0 0 1px rgba(255,255,255,.1),0 30px 80px rgba(0,0,0,.7);font-family:var(--font-sans,system-ui,sans-serif)}
dialog.tsh-dlg[open]{display:flex;flex-direction:column;animation:tshIn .22s cubic-bezier(.2,.8,.2,1)}
dialog.tsh-dlg::backdrop{background:rgba(0,0,0,.66);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
@keyframes tshIn{from{opacity:0;transform:translateY(10px) scale(.98)}}
.tsh-dlg .hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 4px 24px}
.tsh-dlg h2{margin:0;font:700 15px/1.3 var(--font-display,system-ui)!important;letter-spacing:.04em;text-transform:uppercase}
.tsh-dlg .x{all:unset;box-sizing:border-box;flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#fff;border:2px solid rgba(255,255,255,.85)}
.tsh-dlg .x:hover{background:#fff;color:#06071a}
.tsh-dlg .x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.tsh-dlg .bd{padding:10px 24px 24px;overflow-y:auto;overscroll-behavior:contain;font:500 14px/1.55 var(--font-sans,system-ui);color:var(--muted,#bdc1d8)}
.tsh-dlg .bd p{margin:0 0 12px}
.tsh-dlg .bd strong{color:#fff}
.tsh-dlg .facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:14px 0}
.tsh-dlg .facts div{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.tsh-dlg .facts span{display:block;font:600 10px var(--font-display,system-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#bdc1d8);margin-bottom:6px}
.tsh-dlg .facts b{display:block;font:600 15px/1.3 var(--font-sans,system-ui);color:#22f2c2}
.tsh-dlg .facts small{display:block;margin-top:4px;font:500 12px/1.4 var(--font-sans,system-ui);color:var(--muted,#bdc1d8)}
.tsh-dlg .note{font-size:12.5px;color:var(--subtle,#a3a7c2)}
.tsh-dlg .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.tsh-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:999px;cursor:pointer;
  font:700 13px var(--font-sans,system-ui);white-space:nowrap;text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.18);transition:background .15s,border-color .15s,box-shadow .15s,opacity .15s}
.tsh-btn:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.35)}
.tsh-btn.pri{background:#22f2c2;color:#03130e;border-color:transparent;box-shadow:0 0 18px rgba(34,242,194,.4)}
.tsh-btn.pri:hover{box-shadow:0 0 28px rgba(34,242,194,.65)}
.tsh-btn[disabled],.tsh-btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed;box-shadow:none}
.tsh-btn:focus-visible,.tsh-dlg a:focus-visible,.tsh-dlg input:focus-visible,.tsh-dlg select:focus-visible{outline:2px solid #22f2c2;outline-offset:2px}
.tsh-dlg a{color:#22f2c2;font-weight:600}
.tsh-keys{width:100%;border-collapse:collapse}
.tsh-keys td{padding:9px 0;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:middle}
.tsh-keys td:first-child{width:42%;padding-right:12px;white-space:nowrap}
.tsh-keys td:last-child{color:#fff}
.tsh-keys kbd{display:inline-block;min-width:26px;margin:2px 4px 2px 0;padding:4px 8px;border-radius:7px;text-align:center;font:600 12px var(--font-mono,ui-monospace,monospace);color:#fff;
  background:rgba(255,255,255,.06);box-shadow:inset 0 -2px 0 rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.12)}
.tsh-form{display:grid;gap:14px;margin:6px 0 4px}
.tsh-form label{display:grid;gap:6px;font:600 13px var(--font-sans,system-ui);color:#fff}
.tsh-form label small{font-weight:500;color:var(--muted,#bdc1d8)}
.tsh-form .in{display:flex;align-items:center;height:46px;border-radius:12px;background:#08080b;border:1px solid rgba(255,255,255,.12);padding:0 14px;gap:8px}
.tsh-form .in:focus-within{border-color:#22f2c2;box-shadow:0 0 0 3px rgba(34,242,194,.15)}
.tsh-form .in i{font-style:normal;color:var(--muted,#bdc1d8);font:600 13px var(--font-mono,ui-monospace,monospace)}
.tsh-form input,.tsh-form select{all:unset;flex:1;min-width:0;height:100%;font:600 15px var(--font-mono,ui-monospace,monospace);color:#fff}
.tsh-form select option{background:#111;color:#fff}
.tsh-now{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}
.tsh-now span{padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.05);font:600 12px var(--font-mono,ui-monospace,monospace);color:#fff}
.tsh-wait{margin:12px 0 0;padding:10px 14px;border-radius:12px;background:rgba(255,208,79,.08);border:1px solid rgba(255,208,79,.3);color:#ffe9a8;font:600 13px/1.4 var(--font-sans,system-ui)}
.tsh-wait[hidden]{display:none}
.tsh-big{font:700 30px/1.15 var(--font-display,system-ui);color:#fff;margin:6px 0 10px;letter-spacing:.01em}
.tsh-big em{font-style:normal;color:#22f2c2}
.tsh-big em.dn{color:#c9ccd8}
@media (max-width:640px){
  dialog.tsh-dlg{width:100%;max-width:none;margin:auto 0 0!important;border-radius:24px 24px 0 0;max-height:90vh;padding-bottom:env(safe-area-inset-bottom,0px)}
  dialog.tsh-dlg[open]{animation-name:tshUp}
  @keyframes tshUp{from{transform:translateY(40px);opacity:0}}
  .tsh-dlg .hd{padding:16px 16px 4px 20px}.tsh-dlg .bd{padding:8px 20px 20px}
  .tsh-dlg .acts .tsh-btn{flex:1 1 auto}
}

/* ---------- 8b. limit reached: the game is covered until the limit changes ---------- */
.tsh-block{position:fixed;z-index:47;top:var(--tsh-h,64px);left:var(--rail-w,0px);right:0;bottom:0;display:grid;place-items:center;padding:20px;
  background:rgba(3,3,4,.82);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:tshFade .3s ease}
html.tbar-on .tsh-block{bottom:calc(var(--tbar-h,64px) + env(safe-area-inset-bottom,0px))}
@keyframes tshFade{from{opacity:0}}
.tsh-block .card{width:min(460px,100%);padding:28px 26px;border-radius:24px;text-align:left;font-family:var(--font-sans,system-ui);color:var(--muted,#bdc1d8);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,0) 30%),linear-gradient(180deg,#141419,#08080b)!important;box-shadow:0 0 0 1px rgba(255,208,79,.35),0 30px 80px rgba(0,0,0,.7)!important}
.tsh-block .k{font:600 10.5px var(--font-display,system-ui);letter-spacing:.12em;text-transform:uppercase;color:#ffd04f}
.tsh-block h2{margin:8px 0 10px;font:700 22px/1.25 var(--font-display,system-ui)!important;color:#fff;letter-spacing:.01em}
.tsh-block p{margin:0 0 10px;font:500 14px/1.55 var(--font-sans,system-ui)}
.tsh-block .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.tsh-block .t{font:600 13px var(--font-mono,ui-monospace,monospace);color:#fff}

@media (prefers-reduced-motion:reduce){
  .tsh-top,.tsh-tool,.tsh-tool::after,.tsh-seg button,.tsh-btn{transition:none!important}
  dialog.tsh-dlg[open],.tsh-block{animation:none!important}
  .tsh-seg button[data-m="real"][aria-pressed="true"]::before{animation:none}
}

/* six stake chips on Dice and Flip once 2× joins them */
html.tsh-on .cv2 #stakePresets{grid-template-columns:repeat(6,minmax(0,1fr))}
.tsh-pill [hidden]{display:none!important}
/* Connect wallet: one lit mint button on every game (the theme's .livebtn ring is for in-page buttons) */
.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{background:#22f2c2!important;color:#03130e!important;border:0!important;height:40px!important;padding:0 18px!important;
  font:700 13px var(--font-sans,system-ui,sans-serif)!important;letter-spacing:0!important;text-transform:none!important;border-radius:999px!important}
@media (max-width:640px){.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{width:44px;height:44px!important;padding:0!important;font-size:0!important}}
/* Hold'em lobby: the toolbar sits above the table list as its own strip */
.tsh-tools.lobby{margin:0 0 16px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.02)}
.tsh-tools.lobby [data-t="theatre"],.tsh-tools.lobby [data-t="keys"]{display:none}
/* Hold'em: "Refresh balance" (live play only) becomes a small round icon beside the amount, so it never sits on the figure */
.tsh-pill .bal:has(#pokerBalanceRefresh:not([hidden])){flex-direction:row!important;align-items:center;gap:6px}
.tsh-pill #pokerBalanceRefresh:not([hidden]){all:unset;box-sizing:border-box;flex:none;display:inline-grid;place-items:center;width:28px;height:28px;margin:0!important;border-radius:50%;cursor:pointer;
  font-size:0!important;color:var(--muted,#bdc1d8);border:1px solid rgba(255,255,255,.14);transition:color .15s,border-color .15s}
.tsh-pill #pokerBalanceRefresh:not([hidden])::before{content:"";width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E") center/contain no-repeat}
.tsh-pill #pokerBalanceRefresh:not([hidden]):hover{color:#22f2c2;border-color:rgba(34,242,194,.5)}
.tsh-pill #pokerBalanceRefresh:focus-visible{outline:2px solid #22f2c2;outline-offset:2px}
.tsh-pill #pokerBalanceRefresh:disabled{opacity:.4;cursor:default}
@media (pointer:coarse){
  .tsh-pill #pokerBalanceRefresh:not([hidden]){position:relative;width:32px;height:32px;min-width:32px!important;min-height:32px!important}
  .tsh-pill #pokerBalanceRefresh:not([hidden])::after{content:"";position:absolute;inset:-6px}   /* a 44px tap area */
}
.tsh-form input:focus-visible,.tsh-form select:focus-visible{outline:none!important;box-shadow:none!important}   /* the field's own ring shows focus */

/* ---------- match the home page header (css/lobby.css .bal / .bal-mode / .bal-seg / .btn-wallet) ---------- */
.tsh-pill{height:48px;padding:0 0 0 16px;gap:12px;background:rgba(0,0,0,.45);border:1px solid rgba(178,107,255,.22);box-shadow:none}
.tsh-pill .bal .amt{font:600 15px/1 var(--font-mono,ui-monospace,monospace)!important}
.tsh-seg{align-self:stretch;height:auto;gap:0;padding:0;background:rgba(255,255,255,.05);box-shadow:none}
.tsh-seg button{height:100%;min-width:44px;padding:0 14px;border:4px solid transparent;background-clip:padding-box;
  font:600 10px/1 var(--font-display,"Unbounded",system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase}
.tsh-seg button:hover{background-color:rgba(255,255,255,.08)}
.tsh-seg button[aria-pressed="true"],.tsh-seg button[data-m="practice"][aria-pressed="true"],.tsh-seg button[data-m="real"][aria-pressed="true"]{
  background:#22f2c2;color:#03130e;box-shadow:0 0 14px rgba(34,242,194,.35);background-clip:padding-box}
.tsh-right #liveBtn,.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{height:48px!important;padding:0 20px!important;font-size:14px!important}
@media (max-width:640px){
  .tsh-pill{height:44px;padding-left:12px;gap:8px}
  .tsh-pill .bal .amt{font-size:13px!important}
  .tsh-seg button{padding:0 8px;font-size:9px;letter-spacing:.03em;border-width:3px}
  .tsh-right #liveBtn,.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{width:48px;height:48px!important;padding:0!important;font-size:0!important;border-radius:50%!important}
}
@media (max-width:400px){.tsh-pill{padding-left:10px}.tsh-pill .bal .amt{font-size:12.5px!important}.tsh-seg button{padding:0 6px;min-width:40px}
  .tsh-right #liveBtn,.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{width:44px;height:44px!important}}
.tsh-right #liveBtn,.tsh-right #liveBtn.livebtn,.tsh-right #liveBtn.chipbtn{font-family:var(--font-display,"Unbounded",system-ui,sans-serif)!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.04em!important}

/* ---------- right cluster: quiet Connect wallet in practice, account menu, comfortable spacing ---------- */
.tsh-right{gap:14px}
.tsh-top>.head>.wallet{gap:12px}
.tsh-pill{gap:14px}
.tsh-right .floorlink,.tsh-right .navlink,.tsh-right .tsh-floor,.tsh-right a[data-me],.tsh-right .me-chip{display:none!important}   /* now in the account menu */
/* Practice: Connect wallet is a ghost button (no fill, no glow, muted label). Real: the lit mint button above stands. */
html:not(.tsh-real) .tsh-right #liveBtn,html:not(.tsh-real) .tsh-right #liveBtn.livebtn,html:not(.tsh-real) .tsh-right #liveBtn.chipbtn{
  background:transparent!important;color:#c3c7dc!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:none!important;filter:none!important;
  height:44px!important;padding:0 16px!important;font-size:12px!important;font-weight:600!important;letter-spacing:.03em!important}
html:not(.tsh-real) .tsh-right #liveBtn:hover{color:#fff!important;border-color:rgba(255,255,255,.5)!important;background:rgba(255,255,255,.06)!important;box-shadow:none!important}
@media (max-width:640px){
  html:not(.tsh-real) .tsh-right #liveBtn,html:not(.tsh-real) .tsh-right #liveBtn.livebtn,html:not(.tsh-real) .tsh-right #liveBtn.chipbtn{width:44px;height:44px!important;padding:0!important;font-size:0!important;border-radius:50%!important}
  .tsh-right{gap:8px}
  .tsh-top>.head>.wallet{gap:8px}
}
/* Real segment: quiet while you're in Practice, never pulses (the pulse is only the live indicator) */
html:not(.tsh-real) .tsh-seg button[data-m="real"]::before{animation:none}
.tsh-seg button{position:relative}
@media (pointer:coarse){
  .tsh-seg button{min-width:44px!important}
  .tsh-seg button::after{content:"";position:absolute;inset:-4px -2px}   /* a 44px tap area */
}
/* the account menu */
.tsh-menu{position:relative;flex:none}
.tsh-menubtn{all:unset;box-sizing:border-box;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;cursor:pointer;color:#c3c7dc;border:1px solid rgba(255,255,255,.14);transition:color .15s,border-color .15s,background .15s}
.tsh-menubtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tsh-menubtn:hover,.tsh-menubtn[aria-expanded="true"]{color:#fff;border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.06)}
.tsh-menulist{position:absolute;right:0;top:calc(100% + 10px);z-index:60;min-width:220px;padding:6px;border-radius:16px;background:#0e0e14;border:1px solid rgba(178,107,255,.28);box-shadow:0 18px 50px rgba(0,0,0,.6)}
.tsh-menulist[hidden]{display:none}
.tsh-mi{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 14px;border-radius:12px;cursor:pointer;color:#e8eaf5;font:600 14px var(--font-sans,system-ui,sans-serif);white-space:nowrap}
.tsh-mi[hidden]{display:none}
.tsh-mi svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;color:#c3c7dc}
.tsh-mi:hover,.tsh-mi:focus-visible{background:rgba(255,255,255,.08);color:#fff}
.tsh-mi:focus-visible{outline:2px solid #22f2c2;outline-offset:-2px}
@media (max-width:640px){.tsh-menulist{position:fixed;left:12px;right:12px;top:calc(var(--tsh-h,64px) + 6px);min-width:0}}

/* ---------- home header (css/lobby.css) shares the same quiet treatment ---------- */
/* phones: five things share one row (logo, pill, chat, wallet, menu), so the round buttons are 40px with a 44px tap area */
@media (max-width:640px){
  html.tsh-on .tsh-right{gap:6px}
  html.tsh-on .tsh-top>.head{gap:6px!important;padding:0 10px!important}
  html.tsh-on .tsh-pill{gap:6px;padding-left:10px}
  html.tsh-on .tsh-seg button{padding:0 4px}
  html.tsh-on .tsh-right #liveBtn,html.tsh-on .tsh-right #liveBtn.livebtn,html.tsh-on .tsh-right #liveBtn.chipbtn,
  html:not(.tsh-real) .tsh-right #liveBtn,html:not(.tsh-real) .tsh-right #liveBtn.livebtn,html:not(.tsh-real) .tsh-right #liveBtn.chipbtn{width:40px;height:40px!important;min-width:0!important;min-height:0!important;position:relative}
  .tsh-menubtn{width:40px;height:40px;position:relative}
  .tsh-right #liveBtn::after,.tsh-menubtn::after{content:"";position:absolute;inset:-2px}
  .tsh-right>button:not(#liveBtn):not(#muteBtn){width:40px!important;height:40px!important;min-width:0!important}
}
@media (max-width:380px){
  html.tsh-on .tsh-pill{padding-left:8px;gap:4px}
  html.tsh-on .tsh-pill .bal .amt{font-size:11.5px!important}
  html.tsh-on .tsh-seg button{padding:0 2px;min-width:40px!important;font-size:8.5px;border-width:2px}
  html.tsh-on .tsh-seg button::after{inset:-4px -1px}
}
/* edge-to-edge (viewport-fit=cover): the fixed top bar pads itself clear of the notch, Dynamic Island and landscape sides */
.tsh-top{padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
/* Real is shut until the game server reports ready: dimmed, and a click only explains why */
.tsh-seg button[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
/* the Demo | Real choice, first row of each game's bet controls (owner: not in the top bar) */
.tsh-moderow{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0 0 10px}
.tsh-modesw{display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.tsh-modesw button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:32px;min-width:64px;padding:0 14px;border-radius:999px;cursor:pointer;font-weight:600;font-size:13px;line-height:1;color:rgba(255,255,255,.72)}
.tsh-modesw button:hover{color:#fff}
.tsh-modesw button[aria-pressed="true"]{cursor:default}
.tsh-modesw button[data-m="practice"][aria-pressed="true"]{background:rgba(255,208,79,.16);color:#ffd04f;box-shadow:inset 0 0 0 1px rgba(255,208,79,.45)}
.tsh-modesw button[data-m="real"][aria-pressed="true"]{background:#22f2c2;color:#03130e}
.tsh-modesw button[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.tsh-modesw button:focus-visible{outline:2px solid #22f2c2;outline-offset:1px}
.tsh-moderow .tsh-note{max-width:none;white-space:normal;overflow:visible;font-size:12px;line-height:16px;font-weight:500;color:rgba(255,255,255,.62)}
.tsh-moderow .tsh-note:not([hidden]){display:inline}
@media (pointer:coarse),(max-width:640px){.tsh-modesw button{height:44px;min-width:72px}}
@media (prefers-reduced-motion:reduce){.tsh-modesw button{transition:none!important}}
/* Real mode: the pill shows the Tilt vault balance in place of the demo balance, styled the same way */
.tsh-pill{padding-right:16px}
.tsh-pill.show-vault .bal{display:none!important}
/* one Connect wallet in the bar: the pill offers it only where the top-bar button is hidden (phone tab-bar mode) */
html:not(.tbar-on) .tsh-vault-amount.tsh-va-connect{display:none!important}
@media (min-width:768px){.tsh-vault-amount.tsh-va-connect{display:none!important}.tsh-pill.show-vault:has(.tsh-va-connect){display:none!important}}   /* no empty balance pill before a wallet connects */
.tsh-vault-amount{all:unset;box-sizing:border-box;display:flex;align-items:baseline;gap:4px;cursor:pointer;white-space:nowrap;font:600 15px/1 var(--font-mono,ui-monospace,monospace);color:#fff;font-variant-numeric:tabular-nums}
.tsh-vault-amount .u-lbl{font:600 10px var(--font-mono,ui-monospace,monospace);color:var(--muted,#bdc1d8);letter-spacing:.04em}
.tsh-vault-amount:hover .tsh-va-n{color:#22f2c2}
.tsh-vault-amount:focus-visible{outline:2px solid #22f2c2;outline-offset:4px;border-radius:6px}
@media (max-width:640px){.tsh-pill{padding-right:12px}.tsh-vault-amount{font-size:14px}.tsh-vault-amount .u-lbl{display:none}}
/* ── brand/neon/blackout-clean.css ── */
/* Blackout, the clean look: a quiet black panel with Manual / Auto tabs, a grid picker, the Auto settings,
   presets and a hover price on the board. Linked last on blackout.html, after the neon theme. */

/* the risk cards stay in the page as the level state; the grid picker drives them */
.controls .risklab{display:none!important}
/* the three classic boards are the big risk cards again; the small preset buttons make way */
.controls .bx-quick{display:none!important}
.controls #levels{margin-top:8px}

/* ── tabs ── */
.bx-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin-bottom:16px;border-radius:14px;background:#08080b;border:1px solid rgba(255,255,255,.07)}
.bx-tabs button{height:40px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:600 14px/1 var(--font-sans);cursor:pointer;position:relative;transition:color .18s,background .18s}
.bx-tabs button:hover:not(:disabled){color:#fff}
.bx-tabs button[aria-selected="true"]{background:#16161c;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.bx-tabs button[aria-selected="true"]::after{content:"";position:absolute;left:18%;right:18%;bottom:4px;height:2px;border-radius:2px;background:var(--teal);box-shadow:0 0 10px rgba(34,242,194,.6)}
.bx-tabs button:disabled{cursor:not-allowed;opacity:.5}
.bx-tabs button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}

/* ── labels and the grid picker ── */
.controls .cell .lab{font:600 12px/1.2 var(--font-sans)!important;letter-spacing:.01em!important;text-transform:none!important;color:var(--muted)!important;margin:14px 0 7px}
.controls .cell .bx-tabs + .lab{margin-top:0}
.bx-select{position:relative}
.bx-select::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);transform:rotate(45deg);pointer-events:none}
.bx-select select{appearance:none;-webkit-appearance:none;width:100%;height:46px;padding:0 40px 0 14px;border-radius:12px;border:1px solid rgba(255,255,255,.09);background:#0a0a0d;color:#fff;font:600 14px/1 var(--font-sans);cursor:pointer}
.bx-select select:hover:not(:disabled){border-color:rgba(255,255,255,.18)}
.bx-select select:focus-visible{outline:2px solid var(--teal);outline-offset:1px}
.bx-select select:disabled{opacity:.55;cursor:not-allowed}
.bx-select option{background:#0d0d11;color:#fff}

/* shorts / safe readout under the picker */
.bx-count{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.bx-count > span{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:12px;font:500 13px/1 var(--font-sans);color:var(--muted)}
.bx-count b{font:700 16px/1 var(--font-mono,ui-monospace,monospace);color:#fff}
.bx-sh{background:rgba(255,77,106,.07);border:1px solid rgba(255,77,106,.22)}
.bx-sf{justify-content:flex-end;background:rgba(34,242,194,.06);border:1px solid rgba(34,242,194,.22)}
.bx-sh i,.bx-sf i{width:10px;height:10px;border-radius:3px;flex:none}
.bx-sh i{background:#ff4d6a;box-shadow:0 0 8px rgba(255,77,106,.7)}
.bx-sf i{background:var(--teal);box-shadow:0 0 8px rgba(34,242,194,.7)}

/* ── Auto ── */
.bx-auto[hidden],.bx-adv[hidden]{display:none!important}
.bx-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.bx-ghost{height:42px;border-radius:12px;border:1px solid rgba(255,255,255,.09);background:#0a0a0d;color:#fff;font:600 13.5px/1 var(--font-sans);cursor:pointer;transition:border-color .18s,background .18s}
.bx-ghost:hover:not(:disabled){border-color:rgba(255,255,255,.2);background:#111116}
.bx-ghost:disabled{opacity:.45;cursor:not-allowed}
.bx-ghost:focus-visible,.bx-primary:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.bx-wide{width:100%;margin-top:12px}
.bx-num{display:flex;align-items:center;height:46px;padding:0 5px 0 14px;border-radius:12px;border:1px solid rgba(255,255,255,.09);background:#0a0a0d}
.bx-num:focus-within{border-color:rgba(34,242,194,.5)}
.bx-num input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:#fff;font:600 15px/1 var(--font-mono,ui-monospace,monospace);outline:none}
.bx-num input::placeholder{color:var(--dim,#5d6080)}
.bx-num button{width:36px;height:36px;border-radius:9px;border:1px solid rgba(255,255,255,.1);background:#16161c;color:var(--muted);font:600 18px/1 var(--font-sans);cursor:pointer}
.bx-num button[aria-pressed="true"]{background:var(--teal);border-color:var(--teal);color:#03130e;box-shadow:0 0 12px rgba(34,242,194,.45)}
.bx-profit{display:grid;gap:8px;margin-top:12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.03),transparent)}
.bx-profit .lab{margin:0!important}
.bx-pv{display:flex;align-items:center;justify-content:space-between;gap:10px}
.bx-pv b{font:700 18px/1 var(--font-mono,ui-monospace,monospace);color:#fff}
.bx-pv em{font:700 12px/1 var(--font-mono,ui-monospace,monospace);font-style:normal;color:var(--teal);padding:5px 8px;border-radius:999px;border:1px solid rgba(34,242,194,.45);background:rgba(34,242,194,.08)}
.bx-profit small{font:500 12px/1.4 var(--font-sans);color:var(--subtle,#a3a7c2)}

/* the Auto button: same lit tube as Bet; red while it runs, so Stop reads as stop */
#autoBtn{width:100%;min-height:56px;border:0;border-radius:999px;font:700 16px/1 var(--font-sans);cursor:pointer;background:var(--teal);color:#03130e;box-shadow:0 0 22px rgba(34,242,194,.45),inset 0 1px 0 rgba(255,255,255,.3)}
#autoBtn:hover:not(:disabled){filter:brightness(1.06)}
#autoBtn:disabled{cursor:not-allowed;background:rgba(34,242,194,.08);color:rgba(34,242,194,.8);box-shadow:inset 0 0 0 1px rgba(34,242,194,.25)}
#autoBtn.bx-stop{background:#ff4d6a;color:#fff;box-shadow:0 0 22px rgba(255,77,106,.45),inset 0 1px 0 rgba(255,255,255,.25)}
#autoBtn.bx-stop:disabled{background:rgba(255,77,106,.12);color:#ffb3c0;box-shadow:inset 0 0 0 1px rgba(255,77,106,.35)}
#autoBtn[hidden],#betBtn[hidden],#cashBtn[hidden]{display:none!important}
#autoBtn:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* ── advanced settings: takes the panel over, with a back arrow ── */
.controls.bx-advopen .cell:first-child > :not(.bx-adv){display:none!important}
.controls.bx-advopen .cell.btnwrap{display:none!important}
.controls.bx-advopen{grid-template-columns:1fr!important}
.bx-adv{display:grid;align-content:start}
.bx-advhead{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;margin-bottom:6px}
.bx-advhead h3{margin:0;text-align:center;font:700 15px/1.2 var(--font-display);letter-spacing:.02em;color:#fff}
.bx-back{width:32px;height:32px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.bx-back:hover{color:#fff;border-color:rgba(255,255,255,.25)}
.bx-onx{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:4px;padding:4px;border-radius:12px;border:1px solid rgba(255,255,255,.09);background:#0a0a0d}
.bx-onx button{height:34px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:600 13px/1 var(--font-sans);cursor:pointer}
.bx-onx button[aria-pressed="true"]{background:#1c1c23;color:#fff}
.bx-onx label{display:flex;align-items:center;justify-content:flex-end;gap:4px;padding-right:8px;border-left:1px solid rgba(255,255,255,.08)}
.bx-onx input{width:100%;min-width:0;text-align:right;border:0;background:transparent;color:#fff;font:600 14px/1 var(--font-mono,ui-monospace,monospace);outline:none}
.bx-onx input:disabled{color:var(--dim,#5d6080)}
.bx-onx span{color:var(--muted);font:500 13px/1 var(--font-sans)}
.bx-money{display:flex;align-items:center;gap:8px;height:46px;padding:0 14px;border-radius:12px;border:1px solid rgba(255,255,255,.09);background:#0a0a0d}
.bx-money:focus-within{border-color:rgba(34,242,194,.5)}
.bx-money input{flex:1;min-width:0;border:0;background:transparent;color:#fff;font:600 15px/1 var(--font-mono,ui-monospace,monospace);outline:none}
.bx-money .plus{color:var(--teal);font-weight:700}
.bx-money .minus{color:#ff4d6a;font-weight:700}
.bx-primary{height:48px;margin-top:22px;border:0;border-radius:999px;background:var(--teal);color:#03130e;font:700 15px/1 var(--font-sans);cursor:pointer;box-shadow:0 0 18px rgba(34,242,194,.35)}
.bx-primary:hover:not(:disabled){filter:brightness(1.06)}
.bx-primary:disabled{opacity:.45;cursor:not-allowed}

/* ── on the board: the hover price and the first-time drag tip ── */
.bx-tip{position:absolute;z-index:6;transform:translate(-50%,-100%);padding:6px 10px;border-radius:9px;background:#0d1f1a;border:1px solid rgba(34,242,194,.55);color:var(--teal);font:700 13px/1 var(--font-mono,ui-monospace,monospace);white-space:nowrap;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.5),0 0 14px rgba(34,242,194,.25)}
.bx-tip::after{content:"";position:absolute;left:50%;bottom:-5px;width:8px;height:8px;margin-left:-4px;background:#0d1f1a;border-right:1px solid rgba(34,242,194,.55);border-bottom:1px solid rgba(34,242,194,.55);transform:rotate(45deg)}
.bx-tip[hidden]{display:none}
.bx-coach{position:absolute;z-index:7;left:50%;top:50%;transform:translate(-50%,-50%);width:min(280px,calc(100% - 32px));display:grid;justify-items:center;gap:6px;padding:20px 20px 16px;border-radius:18px;background:rgba(12,12,16,.96);border:1px solid rgba(255,255,255,.1);box-shadow:0 24px 60px rgba(0,0,0,.7);text-align:center}
.bx-coach[hidden]{display:none}
.bx-coach b{font:700 15px/1.3 var(--font-sans);color:#fff}
.bx-coach small{font:500 13px/1.4 var(--font-sans);color:var(--muted)}
.bx-coachgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;width:180px;margin:10px 0 12px}
.bx-coachgrid i{aspect-ratio:1;border-radius:7px;background:#1a1a20;border:1px solid rgba(255,255,255,.08)}
.bx-coachgrid i:not([style*="--d:-1"]){animation:bx-paint 3.2s infinite;animation-delay:calc(var(--d) * .22s)}
@keyframes bx-paint{0%,8%{background:#1a1a20;border-color:rgba(255,255,255,.08);box-shadow:none}18%,78%{background:rgba(34,242,194,.3);border-color:var(--teal);box-shadow:0 0 10px rgba(34,242,194,.45)}90%,100%{background:#1a1a20;border-color:rgba(255,255,255,.08);box-shadow:none}}
@media (prefers-reduced-motion:reduce){.bx-coachgrid i:not([style*="--d:-1"]){animation:none;background:rgba(34,242,194,.3);border-color:var(--teal)}}
.bx-coach button{width:100%;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:#16161c;color:#fff;font:600 14px/1 var(--font-sans);cursor:pointer}
.bx-coach button:hover{border-color:rgba(255,255,255,.25)}
body.bx-automode #fx{cursor:pointer;touch-action:none}
body.bx-running #fx{cursor:default}

/* ── presets dialog ── */
.bx-dlg{width:min(520px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 48px));padding:20px;border-radius:20px;border:1px solid rgba(255,255,255,.1);background:#0c0c10;color:#fff;box-shadow:0 30px 80px rgba(0,0,0,.75)}
.bx-dlg::backdrop{background:rgba(0,0,0,.66);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.bx-dlghead{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.bx-dlghead h3{margin:0;font:700 18px/1.2 var(--font-display);letter-spacing:.02em}
.bx-x{width:34px;height:34px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.bx-x:hover{color:#fff}
.bx-dlg textarea{width:100%;resize:none;padding:12px 14px;border-radius:12px;border:1px solid rgba(34,242,194,.4);background:#08080b;color:#fff;font:500 13px/1.45 var(--font-mono,ui-monospace,monospace);outline:none}
.bx-dlg textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(34,242,194,.15)}
.bx-dlg .bx-row{margin-top:10px}
.bx-dlg .bx-primary{margin-top:0;height:42px}
.bx-dlg .lab{margin:20px 0 10px;font:600 11px/1 var(--font-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--subtle,#a3a7c2)}
.bx-err{margin:6px 0 0;color:#ff8a9c;font:500 12.5px/1.4 var(--font-sans)}
.bx-err:empty{display:none}
.bx-presets{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.bx-preset{display:grid;gap:8px;padding:10px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:#111116;color:#fff;text-align:left;cursor:pointer;transition:border-color .18s,transform .18s}
.bx-preset:hover{border-color:rgba(34,242,194,.5)}
.bx-preset:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.bx-preset b{font:600 13px/1.2 var(--font-sans)}
.bx-preset small{font:500 11.5px/1 var(--font-mono,ui-monospace,monospace);color:var(--muted)}
.bx-mini{display:grid;gap:3px;padding:8px;border-radius:10px;background:#08080b}
.bx-mini i{aspect-ratio:1;border-radius:2px;background:#22222a}
.bx-mini i.on{background:var(--teal);box-shadow:0 0 6px rgba(34,242,194,.6)}
.bx-none{grid-column:1/-1;margin:0;color:var(--muted);font:500 13px/1.5 var(--font-sans)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

@media (pointer:coarse){.bx-tabs button,.bx-ghost{min-height:44px}.bx-onx button{min-height:40px}}

/* Auto shows its own profit on win; the manual card (layout.js) steps aside, and so does everything under
   Advanced settings */
body.bx-automode .controls .tl-profit,.controls.bx-advopen .tl-profit{display:none!important}
/* the site resets dialog margins; centre this one */
.bx-dlg{position:fixed;inset:0;margin:auto;height:max-content}

/* ═══ v3: the video's layout. One slim panel (tabs, bet, grid, shorts, one button), the board on black ═══ */
.controls{background:#0d0c11}
/* everything the video's panel doesn't have steps aside; the faucet comes back only when you can't cover the bet */
.controls .odds,.controls .tl-profit,.controls #roundLimits{display:none!important}
.controls #faucetBtn:not(.bx-need){display:none!important}
.controls .cell .lab{margin:16px 0 8px}

/* bet amount: coin, value, 1/2, 2x in one field */
.bx-bet{display:flex;align-items:center;gap:6px;height:48px;padding:0 6px 0 10px;border-radius:12px;border:1px solid rgba(255,255,255,.09);background:#0a0a0d}
.bx-bet:focus-within{border-color:rgba(34,242,194,.55)}
.bx-coin{flex:none;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:linear-gradient(180deg,#2ff5c8,#12b892);color:#03130e;font:800 14px/1 var(--font-sans);box-shadow:0 0 10px rgba(34,242,194,.35)}
.bx-bet input[type=number]{flex:1;min-width:0;height:100%;padding:0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#fff;font:700 16px/1 var(--font-mono,ui-monospace,monospace)!important;text-align:left!important;-moz-appearance:textfield;outline:none}
.bx-bet input::-webkit-outer-spin-button,.bx-bet input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.bx-bet button{flex:none;height:34px;min-width:40px;padding:0 9px;border-radius:9px;border:1px solid rgba(255,255,255,.08);background:#16161c;color:var(--muted);font:700 12px/1 var(--font-mono,ui-monospace,monospace);cursor:pointer;transition:color .15s,background .15s}
.bx-bet button:hover:not(:disabled){color:#fff;background:#1e1e26}
.bx-bet button:disabled{opacity:.4;cursor:not-allowed}
.bx-bet button:focus-visible{outline:2px solid var(--teal);outline-offset:1px}

/* shorts box: red count, a track filled by the share of shorts, green safe count */
.bx-count{display:grid;grid-template-columns:auto 1fr auto;gap:0;margin-top:0;height:48px;border-radius:12px;border:1px solid rgba(255,255,255,.09);background:#0a0a0d;overflow:hidden}
.bx-count > span.bx-sh,.bx-count > span.bx-sf{height:100%;border:0;border-radius:0;padding:0 14px;min-width:72px}
.bx-sh{background:rgba(255,77,106,.09)!important;border-right:1px solid rgba(255,77,106,.25)!important}
.bx-sf{justify-content:flex-end;background:rgba(34,242,194,.08)!important;border-left:1px solid rgba(34,242,194,.25)!important}
.bx-track{position:relative;align-self:center;height:6px;margin:0 14px;border-radius:999px;background:var(--teal);box-shadow:0 0 8px rgba(34,242,194,.35)}
.bx-track i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:#ff4d6a;box-shadow:0 0 8px rgba(255,77,106,.5)}
.bx-track i::after{content:"";position:absolute;right:-7px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.6)}

/* one action button: Bet, which hands over to Cash out once a pick can be cashed */
.controls .cell.btnwrap{align-content:start}
.controls .acts #cashBtn:disabled{display:none!important}
.controls .acts:has(#cashBtn:not(:disabled)) #betBtn{display:none!important}
.controls .acts #betBtn,.controls .acts #cashBtn,#autoBtn{min-height:52px;border-radius:12px!important;font:700 16px/1 var(--font-sans)!important}

/* the stage: plain black behind the board, a smaller readout above it */
.stage{background:#050507}
.stage .vignette{display:none}
.stage .mult{font-size:40px;top:6px}
.stage .ladder{top:56px;font-size:12.5px}
@media (max-width:600px){.stage .mult{font-size:34px}.stage .ladder{top:48px}}
/* older game styles size every panel input and button to full width; the bet field lays out its own */
.controls .bx-bet > input{width:auto!important;flex:1 1 auto!important;height:100%!important;min-height:0!important;margin:0!important}
.controls .bx-bet > button{width:auto!important;flex:0 0 auto!important;margin:0!important}
.bx-count > span.bx-track{display:block;height:6px;padding:0;margin:0 16px;border-radius:999px;background:var(--teal);color:inherit}

/* ═══ QA pass 1 ═══ */
/* phones: the panel track may shrink below the bet row's natural width, so nothing is clipped at 320-390 */
.controls{grid-template-columns:minmax(0,1fr)!important}
@media (min-width:701px){.controls{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)!important}}
.controls .cell{min-width:0}
.controls .bx-bet > input{min-width:0!important;width:0!important}
/* the action button lines up with the fields above it */
.controls .cell.btnwrap{padding-left:12px!important;padding-right:12px!important}
/* consistent label spacing after the Presets row */
.bx-row + .lab{margin-top:16px!important}
/* touch targets: 44px on touch screens */
@media (pointer:coarse){.bx-bet{height:54px}.bx-bet button{min-height:44px;min-width:44px}#autoInf,.bx-back{min-width:44px;min-height:44px}.bx-onx button{min-height:44px}.bx-num{height:54px}}
/* placeholder and disabled inputs readable (AA) */
.bx-num input::placeholder,.bx-money input::placeholder,.bx-onx input:disabled{color:#8a8fb0}
#autoBtn:disabled,.bx-primary:disabled{opacity:.7}
/* clear focus on the input fields and the infinity toggle */
.bx-bet:focus-within,.bx-num:focus-within,.bx-money:focus-within,.bx-onx label:focus-within{border-color:var(--teal);box-shadow:0 0 0 2px rgba(34,242,194,.55)}
#autoInf:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* the shorts bar is a readout, not a slider: no knob to suggest dragging */
.bx-track i::after{display:none}
/* one action button: the countdown lives in the status line, not as a second button under Bet */
.controls .acts #cooldownBtn{display:none!important}
/* Manual drag-to-pick: while a practice round can be picked, the board takes the finger instead of scrolling */
#fx{touch-action:manipulation}
body.bx-picking #fx{touch-action:none;cursor:pointer}

/* ═══ custom board: grid size, classic quick picks, a shorts slider with − and + ═══ */
.bx-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.bx-quick button{min-height:34px;padding:0 6px;border-radius:10px;border:1px solid rgba(255,255,255,.08);background:#0a0a0d;color:var(--muted);font:600 11.5px/1.2 var(--font-sans);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .15s,border-color .15s,background .15s}
.bx-quick button:hover:not(:disabled){color:#fff;border-color:rgba(255,255,255,.2)}
.bx-quick button[aria-pressed="true"]{color:#fff;border-color:rgba(34,242,194,.55);background:rgba(34,242,194,.08)}
.bx-quick button:disabled{opacity:.4;cursor:not-allowed}
.bx-quick button:focus-visible{outline:2px solid var(--teal);outline-offset:1px}

.bx-count{grid-template-columns:auto minmax(0,1fr) auto;height:auto!important}
.bx-count > span.bx-sh,.bx-count > span.bx-sf{display:grid!important;grid-template-rows:1fr auto;align-items:stretch;justify-content:stretch;gap:0;padding:0!important;min-width:68px;height:auto}
.bx-n{display:flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 12px}
.bx-n b{font:700 16px/1 var(--font-mono,ui-monospace,monospace);color:#fff}
.bx-sh button,.bx-sf button{height:26px;border:0;border-top:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.25);color:var(--muted);font:700 15px/1 var(--font-sans);cursor:pointer}
.bx-sh button:hover:not(:disabled),.bx-sf button:hover:not(:disabled){color:#fff;background:rgba(255,255,255,.05)}
.bx-sh button:disabled,.bx-sf button:disabled{opacity:.35;cursor:not-allowed}
.bx-sh button:focus-visible,.bx-sf button:focus-visible{outline:2px solid var(--teal);outline-offset:-2px}
.bx-count > span.bx-range{display:flex;align-items:center;padding:0 14px;min-width:0}
.bx-range input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:24px;margin:0;background:transparent;cursor:pointer;--p:0%}
.bx-range input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(90deg,#ff4d6a var(--p),var(--teal) var(--p))}
.bx-range input[type=range]::-moz-range-track{height:6px;border-radius:999px;background:linear-gradient(90deg,#ff4d6a var(--p),var(--teal) var(--p))}
.bx-range input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border-radius:50%;background:#fff;border:0;box-shadow:0 1px 5px rgba(0,0,0,.6)}
.bx-range input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;border:0;box-shadow:0 1px 5px rgba(0,0,0,.6)}
.bx-range input[type=range]:focus-visible{outline:2px solid var(--teal);outline-offset:4px;border-radius:999px}
.bx-range input[type=range]:disabled{opacity:.45;cursor:not-allowed}
.bx-note{margin:8px 2px 0;font:500 12px/1.45 var(--font-sans);color:var(--subtle,#a3a7c2)}
.bx-note b{color:#fff;font-family:var(--font-mono,ui-monospace,monospace);font-weight:700}
@media (pointer:coarse){.bx-sh button,.bx-sf button{height:44px}.bx-quick button{min-height:44px}.bx-range input[type=range]{height:44px}}
.bx-quick + .lab{margin-top:16px!important}
#presetCode::placeholder{color:#8a8fb0}
.controls .cell label.lab{display:block}

/* ── v4: the board fills the stage, a priced drag path, a win card, round rows, recent chips with counts ── */
.stage .mult,.stage .ladder{display:none!important}
/* in your own round Cash out takes Bet's place from the start, showing 1.00× until the first light */
body.bx-inround .acts #betBtn{display:none!important}
body.bx-inround .acts #cashBtn:disabled{display:flex!important;align-items:center;justify-content:center;opacity:.5;cursor:not-allowed}
.bx-round{display:grid;gap:8px;margin-bottom:10px}
.bx-round[hidden]{display:none}
.bx-prow{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;background:#141419;border:1px solid #232329;font:500 13px/1 var(--font-sans)}
.bx-prow span{color:var(--muted)}
.bx-prow b{color:var(--text,#f5f5f5);font-weight:600;font-variant-numeric:tabular-nums}
.bx-prow em{font-style:normal;font-weight:600;color:#22f2c2;padding:3px 7px;border-radius:6px;background:rgba(34,242,194,.1);font-variant-numeric:tabular-nums}
#bxRandom{min-height:44px}
/* the win card over the board */
.bx-win{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);z-index:6;display:grid;justify-items:center;gap:6px;padding:14px 22px;border-radius:14px;
  background:rgba(10,14,16,.92);border:1px solid rgba(34,242,194,.55);box-shadow:0 0 0 1px rgba(0,0,0,.4),0 18px 40px rgba(0,0,0,.55),0 0 32px rgba(34,242,194,.18);
  animation:bxWinIn .28s cubic-bezier(.2,.9,.3,1.2) both;pointer-events:none}
.bx-win[hidden]{display:none}
.bx-wl{display:flex;align-items:center;gap:8px;font:700 17px/1 var(--font-sans);color:#f5f5f5;font-variant-numeric:tabular-nums}
.bx-wl .bx-wi{width:22px;height:22px;object-fit:contain}
.bx-win strong{font:700 26px/1 var(--font-sans);color:#22f2c2;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
@keyframes bxWinIn{from{opacity:0;transform:translate(-50%,-50%) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media (prefers-reduced-motion:reduce){.bx-win{animation:none}}
/* recent: lights found and the multiplier, or a short at 0.00× */
.strip .chip{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:5px 9px;border-radius:7px;font:600 12.5px/1 var(--font-sans);font-variant-numeric:tabular-nums}
.strip .chip .bx-ci{width:16px;height:16px;flex:none;object-fit:contain}
.strip .chip.win{background:rgba(34,242,194,.08);border:1px solid rgba(34,242,194,.35);color:#f5f5f5}
.strip .chip.win .bx-ci{fill:#22f2c2}
.strip .chip.win span{color:#22f2c2}
.strip .chip.lose{background:rgba(255,90,118,.07);border:1px solid rgba(255,90,118,.3);color:#ff9aab}
.strip .chip.lose .bx-ci{fill:#ff5a76}
/* not enough balance for this bet */
.bx-bet.bad{border-color:#ff5a76!important;box-shadow:0 0 0 1px rgba(255,90,118,.35)}
.bx-bet.bad input{color:#ff9aab!important}
.bx-funds{margin:6px 0 0;font:500 12.5px/1.3 var(--font-sans);color:#ff7d93}
.bx-funds[hidden]{display:none}
/* the − and + under the counts: no inherited padding, the sign centred in its button */
.bx-count #bxShMinus,.bx-count #bxShPlus{padding:0!important;display:flex!important;align-items:center;justify-content:center;font:600 17px/1 var(--font-sans)!important;min-height:26px}
/* the risk cards stack in one column at every width, so the names and odds never get cut */
.controls #levels{grid-template-columns:minmax(0,1fr)!important}
.controls #levels .lt small{display:block!important}
.controls #levels button b{font-size:14px!important}
.controls #levels button{flex-direction:row!important;align-items:center!important;text-align:left!important;gap:12px!important;padding:8px 12px!important}
.controls #levels .lt{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:2px 10px!important;text-align:left!important;flex:1;min-width:0}
.controls #levels .lt em{justify-self:end}
.controls #levels .lt .meter{justify-self:end}
.controls #levels .lt b{grid-column:1;grid-row:1;font-family:var(--font-sans,Inter,sans-serif)!important;font-weight:700!important;letter-spacing:0!important;white-space:normal;line-height:1.15;min-width:0}
.controls #levels .lt .meter{grid-column:2;grid-row:1}
.controls #levels .lt small{grid-column:1;grid-row:2;white-space:normal;line-height:1.25;min-width:0}   /* risk name and odds wrap, never "…" */
.controls #levels .lt em{grid-column:2;grid-row:2;white-space:nowrap}
@media (max-width:380px){.controls #levels .lt em{font-size:11.5px}.controls #levels button{gap:9px!important;padding:8px 10px!important}}
@media (max-width:380px){
  .controls #levels .lt{grid-template-columns:minmax(0,1fr)!important;gap:1px!important}
  .controls #levels .lt .meter{display:none!important}
  .controls #levels .lt b,.controls #levels .lt small,.controls #levels .lt em{grid-column:1!important;grid-row:auto!important;justify-self:start}
  .controls #levels .mg{width:36px!important;height:36px!important;flex:none}
}
/* shorts and safe counts wear the board's own icons: the bolt and the bulb */
.bx-n .bx-ni{width:22px;height:22px;flex:none;object-fit:contain}
.bx-sh .bx-ni{filter:drop-shadow(0 0 5px rgba(255,90,118,.4))}
.bx-sf .bx-ni{filter:drop-shadow(0 0 5px rgba(34,242,194,.4))}

/* the flat bolt in the counter, chips and win card */
.bx-ni,.bx-wi,.bx-ci{object-fit:initial}
.strip .chip .bx-ci{width:12px;height:14px}
.bx-n .bx-ni,.bx-wl .bx-wi{width:18px;height:21px}
