body { margin: 0; background: #08141a; color: #F9F9FB; font: 500 14px/1.4 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
hb-game { position: relative; }
.limbo { width: 100%; max-width: 560px; margin: 0 auto; box-sizing: border-box; padding: 20px; display: grid; gap: 16px; }
.head { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: .12em; color: #28F3F3; }
.brand span { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #8F96A8; }
.hbtn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #0D2A38; background: rgba(9,102,125,0.15); color: #8F96A8; font: inherit; font-weight: 800; cursor: pointer; }
.hbtn:hover { color: #F9F9FB; border-color: #28F3F3; }
.head .tools { display: flex; gap: 6px; }
.hbtn[aria-pressed="true"] { color: #28F3F3; border-color: #28F3F3; box-shadow: 0 0 10px rgba(40, 243, 243, .25); }
.limbo.theatre { max-width: 980px; }
.entryrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; }
.entry-label { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8F96A8; }
.entry-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #1d4356; background: #0A1A21; color: #F9F9FB; }
.entry-box:hover { border-color: #28F3F3; }
.entry-box:focus-within { border-color: #28F3F3; box-shadow: 0 0 0 1px rgba(40, 243, 243, .35); }
.entry-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 0; color: #F9F9FB; font: inherit; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.entry-sym { color: #28F3F3; font-weight: 800; font-size: 16px; }
.history { display: flex; gap: 5px; flex-wrap: nowrap; overflow: hidden; min-height: 24px; }
.hpill { flex: none; padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; background: #0b1f28; border: 1px solid #0D2A38; color: #8F96A8; }
.hpill.win { color: #58e879; border-color: rgba(88, 232, 121, .45); }
.hpill.lose { color: #FA2E5D; border-color: rgba(250, 46, 93, .4); }
.facts { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: #8F96A8; font-variant-numeric: tabular-nums; }
.facts b { color: #F9F9FB; font-weight: 700; font-size: 15px; }
.stage { background: #0b1f28; border: 1px solid #0D2A38; border-radius: 16px; padding: 30px 16px 20px; display: grid; gap: 8px; justify-items: center; }
.stage.win { border-color: #58e879; }
.stage.lose { border-color: #FA2E5D; }
.result { font-size: 104px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; color: #28F3F3; text-shadow: 0 0 36px rgba(40, 243, 243, .28); }
.result.win { color: #58e879; text-shadow: 0 0 36px rgba(88, 232, 121, .30); }
.result.lose { color: #FA2E5D; text-shadow: 0 0 36px rgba(250, 46, 93, .30); }
.status { font-size: 13px; color: #8F96A8; text-align: center; min-height: 18px; }
.resultline { font-size: 14px; font-weight: 800; letter-spacing: .04em; min-height: 19px; font-variant-numeric: tabular-nums; }
.resultline.win { color: #58e879; }
.resultline.lose { color: #FA2E5D; }
.pick { display: grid; gap: 10px; }
.target { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; }
.sliderwrap { position: relative; display: block; }
.sliderwrap input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; }
.sliderwrap input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #0D2A38; }
.sliderwrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: transparent; border: 0; }
.sliderwrap input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #0D2A38; }
.sliderwrap input[type="range"]::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: transparent; border: 0; }
.tball { position: absolute; top: 50%; left: 17px; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe066, #f5b301 60%, #b97e06); border: 2px solid #ffe9a8; box-shadow: 0 4px 14px rgba(0, 0, 0, .55), 0 0 12px rgba(245, 179, 1, .45); color: #4a2f00; font: 900 13px 'Red Hat Display', 'Figtree', system-ui, sans-serif; letter-spacing: -.02em; display: grid; place-items: center; pointer-events: none; }
.target output { color: #F9F9FB; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; background: #0b1f28; border: 1px solid #0D2A38; border-radius: 8px; padding: 7px 4px; font-size: 15px; }
.step { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #0D2A38; background: rgba(9,102,125,0.15); color: #F9F9FB; font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; }
.step:hover { border-color: #28F3F3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 30px; padding: 0 12px; border: 1px solid #0D2A38; border-radius: 15px; background: rgba(9,102,125,0.15); color: #8F96A8; font: inherit; font-weight: 600; cursor: pointer; }
.chips button[aria-pressed="true"] { background: #0D2A38; color: #F9F9FB; border-color: #28F3F3; }
.modetoggle { display: flex; gap: 4px; padding: 3px; background: rgba(9,102,125,0.15); border-radius: 9px; }
.modetoggle button { flex: 1; height: 34px; border: 0; border-radius: 7px; background: transparent; color: #8F96A8; font: inherit; font-weight: 700; cursor: pointer; }
.modetoggle button[aria-pressed="true"] { background: #0D2A38; color: #F9F9FB; box-shadow: inset 0 0 0 1px #28F3F3; }
.streakhud { display: grid; gap: 10px; background: #0b1f28; border: 1px solid #1d5b74; border-radius: 14px; padding: 12px; }
.streakhud[hidden] { display: none; }
.stfacts { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: 12.5px; color: #8F96A8; font-variant-numeric: tabular-nums; }
.stfacts b { color: #F9F9FB; font-weight: 700; font-size: 14px; }
.stbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stbtns button { height: 42px; border: 1px solid #0D2A38; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.stbtns .roll { background: #28F3F3; color: #041015; border-color: #28F3F3; }
.stbtns .cash { background: rgba(88,232,121,.12); color: #58e879; border-color: rgba(88,232,121,.5); }
.stbtns button:disabled { opacity: .4; cursor: default; }

/* Rules overlay: same card family as the intro. */
.rules { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 14px; background: rgba(4, 8, 10, .72); }
.rules[hidden] { display: none; }
.rules-card { width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid #1d5b74; background: linear-gradient(170deg, #0d2431, #08141a); box-shadow: 0 18px 60px rgba(0, 0, 0, .7), 0 0 26px rgba(40, 243, 243, .12); overflow: hidden; }
.rules-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 10px; font-weight: 800; font-size: 17px; letter-spacing: .05em; color: #a5fbfb; }
.rules-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #1d4356; background: #08141a; color: #a5fbfb; font-size: 17px; line-height: 1; cursor: pointer; }
.rules-body { overflow-y: auto; padding: 0 16px 16px; color: #c9d6dd; font-size: 13.5px; line-height: 1.55; }
.rules-body h3 { margin: 12px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: #28F3F3; text-transform: uppercase; }
.rules-body p { margin: 0 0 6px; }
.rules-foot { padding: 10px 16px 14px; }
.rules-intro { width: 100%; height: 38px; border-radius: 9px; border: 1px solid #1d4356; background: rgba(40, 243, 243, .08); color: #a5fbfb; font: 700 13.5px 'Figtree', system-ui, sans-serif; cursor: pointer; }

/* Intro popup: over the zone; the panel stays usable behind it. */
.intro { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 14px; background: rgba(4, 8, 10, .55); }
.intro[hidden] { display: none; }
.intro-card { position: relative; width: min(648px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 18px 18px 16px; border-radius: 16px; border: 1px solid #1d5b74; background: linear-gradient(170deg, #0d2431, #08141a); box-shadow: 0 18px 60px rgba(0, 0, 0, .7), 0 0 26px rgba(40, 243, 243, .12); color: #e6f4f7; }
.intro-logo { display: block; width: min(248px, 76%); height: auto; margin: 0 auto 12px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); }
.intro-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid #1d4356; background: #08141a; color: #a5fbfb; font-size: 17px; line-height: 1; cursor: pointer; }
.intro-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.intro-box { border: 1px solid #1d4356; border-radius: 12px; background: rgba(40, 243, 243, .05); padding: 0 0 11px; text-align: center; overflow: hidden; box-shadow: 0 0 14px rgba(40, 243, 243, .10), inset 0 0 18px rgba(40, 243, 243, .04); }
.intro-art { position: relative; height: 104px; margin-bottom: 10px; overflow: hidden; }
.intro-art::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(40, 243, 243, .18), inset 0 -22px 22px -12px rgba(8, 20, 26, .85); pointer-events: none; }
.intro-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-box-t { font-size: 15px; font-weight: 800; letter-spacing: .03em; color: #28F3F3; margin-bottom: 4px; padding: 0 10px; }
.intro-box-p { margin: 0; font-size: 12.5px; line-height: 1.5; font-weight: 600; color: #e6f4f7; padding: 0 10px; }
.intro-check { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; color: #8fb6c2; margin-bottom: 12px; cursor: pointer; }
.intro-check input { width: 17px; height: 17px; accent-color: #28F3F3; }
.intro-go { display: block; width: min(320px, 100%); margin: 0 auto; height: 46px; border: 0; border-radius: 10px; background: #28F3F3; color: #041015; font-size: 15px; font-weight: 800; letter-spacing: .05em; cursor: pointer; }
.intro-fine { margin: 12px auto 0; max-width: 520px; font-size: 11px; line-height: 1.5; color: #5b7a86; text-align: center; }

@media (max-width: 900px) {
  .intro-boxes { grid-template-columns: 1fr; }
  .intro-art { height: 84px; }
}

@media (max-width: 699px) {
  .limbo { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 17px; }
  .history { min-height: 22px; }
  .hpill { font-size: 11px; padding: 2px 7px; }
  .facts { gap: 8px; font-size: 12px; }
  .facts b { font-size: 13px; }
  .stage { padding: 16px 8px 12px; border-radius: 12px; }
  .result { font-size: 58px; }
  .status { font-size: 12px; min-height: 15px; }
  .resultline { font-size: 13px; min-height: 16px; }
  .entryrow { gap: 8px; }
  .entry-box { height: 44px; padding: 0 11px; }
  .entry-input { font-size: 17px; }
  .pick { gap: 6px; }
  .step { width: 30px; height: 30px; }
  .target output { min-width: 56px; font-size: 13px; padding: 5px 2px; }
  .chips button { height: 26px; padding: 0 9px; font-size: 12px; flex: 1; }
  .modetoggle button { height: 30px; }
  .streakhud { padding: 9px; gap: 7px; }
  .stfacts { font-size: 11.5px; gap: 6px 10px; }
  .stfacts b { font-size: 12.5px; }
  .stbtns button { height: 36px; font-size: 13.5px; }
  .intro { padding: 8px; }
  .intro-card { padding: 12px 13px 11px; }
  .intro-box { padding: 0 0 10px; }
  .intro-box-t { font-size: 14px; }
  .intro-box-p { font-size: 12px; }
}

/* Short frames (the 364×440 sandbox shape): squeeze the zone so the
   stage and controls stay in reach. */
@media (max-width: 699px) and (max-height: 500px) {
  .limbo { gap: 1px; padding: 5px 10px; }
  .brand { font-size: 14px; }
  .hbtn { width: 22px; height: 22px; }
  .history { display: none; }
  .entry-label { display: none; }
  .entry { gap: 0; }
  .entry-box { height: 32px; }
  .entry-input { font-size: 16px; }
  /* Sized against the REAL ~90px stake field (this stub's is ~51px):
     the ambient rows step aside in the tiny frame — the facts line and
     the quick chips, in BOTH modes (streak already dropped them). The
     slider, steppers and entry boxes still set every target. */
  .facts { display: none; }
  .chips { display: none; }
  .pick { gap: 0; }
  .stage { padding: 2px 8px; gap: 2px; }
  .result { font-size: 30px; }
  .status { display: none; }
  .resultline { min-height: 0; font-size: 11px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pick { gap: 4px; }
  .step { width: 26px; height: 26px; }
  .sliderwrap input[type="range"] { height: 26px; }
  .sliderwrap input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; }
  .sliderwrap input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; }
  .tball { width: 26px; height: 26px; font-size: 11px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; }
  .chips button { height: 22px; flex: none; }
  .modetoggle { padding: 2px; }
  .modetoggle button { height: 24px; font-size: 12px; }
  .streakhud { padding: 2px; gap: 2px; border-radius: 10px; }
  .stfacts { font-size: 9.5px; line-height: 1.15; gap: 3px 6px; flex-wrap: nowrap; }
  .stfacts b { font-size: 11px; }
  .stbtns button { height: 18px; font-size: 12.5px; }
  .limbo.streak-on .facts { display: none; }
  /* Streak in the tiny frame: the HUD needs the room, so the chip row
     steps aside (slider, steppers and entry boxes still set targets). */
  .limbo.streak-on .chips { display: none; }
  .limbo.streak-on .result { font-size: 26px; }
  .limbo.streak-on .entry-box { height: 30px; }
  /* Streak + tiny frame + the real ~90px stake field: the zone's entry
     row also steps aside — the next leg's target is set with the
     slider/steppers here (and the panel's own Multiplier/Chance fields);
     the entry boxes return at taller sizes. */
  .limbo.streak-on .entryrow { display: none; }
  .modetoggle button { height: 20px; }
  .intro-boxes { gap: 7px; margin-bottom: 9px; }
  .intro-box { padding: 0 0 8px; }
  .intro-art { height: 44px; margin-bottom: 6px; }
  .intro-box-p { line-height: 1.4; }
  .intro-go { height: 40px; }
  .intro-card { padding: 10px 12px 9px; }
  .intro-logo { width: min(160px, 58%); margin-bottom: 5px; }
  .intro-check { margin-bottom: 8px; }
  .intro-fine { display: none; }
}

/* Theatre: the bet panel STAYS (roo, 2026-11-11) — only the stage
   widens and centres in the space beside the panel. */
.ts-wrap.theatre { justify-content: center; }

/* Settings screen: same card family as rules/intro. */
.settings { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 14px; background: rgba(4, 8, 10, .72); }
.settings[hidden] { display: none; }
.settings-card { width: min(430px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid #1d5b74; background: linear-gradient(170deg, #0d2431, #08141a); box-shadow: 0 18px 60px rgba(0, 0, 0, .7), 0 0 26px rgba(40, 243, 243, .12); overflow: hidden; color: #e6f4f7; }
.settings-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 10px; font-weight: 800; font-size: 17px; letter-spacing: .05em; color: #a5fbfb; }
.settings-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #1d4356; background: #08141a; color: #a5fbfb; font-size: 17px; line-height: 1; cursor: pointer; }
.settings-body { overflow-y: auto; padding: 2px 16px 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(40, 243, 243, .12); }
.set-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-name { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: #a5fbfb; }
.set-desc { font-size: 12px; line-height: 1.45; color: #8fb6c2; }
.switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #0A1A21; border: 1px solid #1d4356; transition: background .15s ease, border-color .15s ease; pointer-events: none; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #5b7a86; transition: transform .15s ease, background .15s ease; }
.switch input:checked + .track { background: rgba(40, 243, 243, .15); border-color: #28F3F3; }
.switch input:checked + .track::after { transform: translateX(20px); background: linear-gradient(180deg, #a5fbfb, #28F3F3); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 2px rgba(40, 243, 243, .55); }
.set-keys { padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.set-keys.off { opacity: .38; }
.set-keyrow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: #c9d6dd; }
.set-kbds { flex: none; min-width: 76px; display: flex; gap: 4px; }
kbd { padding: 2px 7px; border-radius: 6px; border: 1px solid #1d4356; border-bottom-width: 2px; background: #0A1A21; color: #a5fbfb; font: 700 11.5px 'Figtree', system-ui, sans-serif; white-space: nowrap; }

/* --- ROO$TUDIO$ studio splash: the logo sting plays on every fresh
   load, before the intro card, inside a card the SAME size as the
   intro card (roo: the full-screen sting was way too big) — the
   overlay dims the game behind it exactly like the intro overlay.
   Chrome lifted from roo's own splash page (gold on black); no
   version switcher, no replay. --- */
.splash { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; padding: 14px; background: rgba(4, 8, 10, .55); opacity: 1; transition: opacity .7s ease; }
.splash.done { opacity: 0; pointer-events: none; }
.splash[hidden] { display: none; }
.splash-card { position: relative; width: min(648px, 100%); box-sizing: border-box; padding: 18px; border-radius: 16px; border: 1px solid #1d5b74; background: #000; box-shadow: 0 18px 60px rgba(0, 0, 0, .7), 0 0 26px rgba(40, 243, 243, .12); }
.splash-video { width: 100%; height: auto; aspect-ratio: 1632 / 544; object-fit: contain; background: #000; display: block; border-radius: 6px; }
.splash-tap { position: absolute; inset: 0; display: none; place-items: center; background: rgba(0, 0, 0, .55); border: 0; border-radius: 16px; cursor: pointer; z-index: 5; font: inherit; }
.splash-tap.show { display: grid; }
.splash-tap span { display: inline-flex; align-items: center; gap: .6rem; background: #ffc61a; color: #1a1400; font-weight: 800; font-size: 1.05rem; padding: .9rem 1.6rem; border-radius: 999px; box-shadow: 0 8px 32px rgba(255, 198, 26, .35); }
.splash-sound { position: absolute; top: 10px; right: 10px; z-index: 6; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255, 198, 26, .35); background: rgba(16, 16, 14, .82); color: #f5f2e8; display: grid; place-items: center; cursor: pointer; }
.splash-sound svg { width: 18px; height: 18px; }
.splash-sound .icon-off { display: none; }
.splash-sound.muted .icon-on { display: none; }
.splash-sound.muted .icon-off { display: block; }
.splash.done .splash-sound, .splash.done .splash-skip { display: none; }
.splash-skip { position: absolute; left: 10px; top: 10px; z-index: 6; min-height: 36px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 198, 26, .35); background: rgba(16, 16, 14, .82); color: #f5f2e8; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.splash-skip:hover { border-color: #ffc61a; color: #ffc61a; }
@media (max-width: 699px) {
  .splash { padding: 8px; }
  .splash-card { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .splash { transition: none; } }
