/* SKYWARD BUST: the SKYWARD 2.0 design (the "Skyward 2.0 / Balloon Flight Dashboard" mockups) on the real game.
   Wide screens (min-width 980px and min-height 600px): the dashboard. Narrower screens without the mobile panel
   (tablets upright, small windows): one column with slot tabs and a players drawer. Phones upright or on their side:
   the same column inside the shared mobile control panel's frame box, the bets in the panel (bottom of this file).
   Icons are the single-colour SVGs in ../img/ico, drawn with a CSS mask so they take the text colour; their url()s
   are declared and used in this stylesheet only (never set from JS), so they resolve against css/ wherever the game
   is served. */
:root {
  --bg: #08111f; --panel: #0e1a2d; --card: rgba(13, 24, 42, .74); --line: rgba(140, 175, 230, .16); --line2: rgba(140, 175, 230, .28);
  --txt: #eef3fb; --dim: #a9b8cf; --mute: #7c8ca6;
  --gold: #ffc547; --gold2: #f39a1d; --blue: #5fb4ff; --green: #44e08a; --red: #ff6464; --purple: #c084ff; --orange: #ff9a3c;
  --ui: "Inter", "Segoe UI", Roboto, "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font-family: var(--ui); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow: hidden; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
  background: radial-gradient(120% 70% at 50% 0%, #11223d 0%, var(--bg) 60%); }
button, select { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
img { -webkit-user-drag: none; user-select: none; }
a { color: var(--gold); }
kbd { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-fit] { display: block; white-space: nowrap; overflow: hidden; min-width: 0; font-variant-numeric: tabular-nums; }
.age { display: inline-block; font-weight: 800; font-size: .9em; }

/* ---------- icons ---------- */
.i { display: inline-block; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-bar-chart { --i: url("../img/ico/bar-chart.svg?v=26"); } .i-broadcast { --i: url("../img/ico/broadcast.svg?v=26"); } .i-cash-out { --i: url("../img/ico/cash-out.svg?v=26"); }
.i-chevron-down { --i: url("../img/ico/chevron-down.svg?v=26"); } .i-chevron-right { --i: url("../img/ico/chevron-right.svg?v=26"); } .i-clock { --i: url("../img/ico/clock.svg?v=26"); }
.i-close { --i: url("../img/ico/close.svg?v=26"); } .i-coins { --i: url("../img/ico/coins.svg?v=26"); } .i-flame { --i: url("../img/ico/flame.svg?v=26"); }
.i-gamepad { --i: url("../img/ico/gamepad.svg?v=26"); } .i-gear { --i: url("../img/ico/gear.svg?v=26"); } .i-keyboard { --i: url("../img/ico/keyboard.svg?v=26"); }
.i-minus { --i: url("../img/ico/minus.svg?v=26"); } .i-mountain { --i: url("../img/ico/mountain.svg?v=26"); } .i-play { --i: url("../img/ico/play.svg?v=26"); }
.i-plus { --i: url("../img/ico/plus.svg?v=26"); } .i-question { --i: url("../img/ico/question.svg?v=26"); } .i-shield-check { --i: url("../img/ico/shield-check.svg?v=26"); }
.i-shield { --i: url("../img/ico/shield.svg?v=26"); } .i-speaker-muted { --i: url("../img/ico/speaker-muted.svg?v=26"); } .i-speaker { --i: url("../img/ico/speaker.svg?v=26"); }
.i-trophy { --i: url("../img/ico/trophy.svg?v=26"); } .i-up-down-arrows { --i: url("../img/ico/up-down-arrows.svg?v=26"); } .i-wind { --i: url("../img/ico/wind.svg?v=26"); }
.i-sun { --i: url("../img/ico/sun.svg?v=1"); } .i-moon { --i: url("../img/ico/moon.svg?v=1"); }

/* ---------- layout: phone first ---------- */
.app { position: relative; height: 100vh; height: 100dvh; max-width: 1680px; margin: 0 auto; display: grid; gap: 6px; padding: calc(4px + var(--safe-t)) 8px calc(4px + var(--safe-b));
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
  grid-template-areas: "top" "hist" "stage" "ctls" "slots" "side" "foot"; overflow: hidden; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- header ---------- */
.top { grid-area: top; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 0; }
/* the logo is a plain picture, not a link: no pointer, no tooltip, nothing to select or drag */
.logo { display: block; flex: none; margin-right: auto; cursor: default; user-select: none; -webkit-user-select: none; }
.logo img { display: block; height: 40px; width: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.tagline, .live, .flight-no { display: none; }
.tagline { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); padding-left: 18px; border-left: 1px solid var(--line2); margin-right: auto; white-space: nowrap; }
.live { align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(68, 224, 138, .12); color: var(--green); font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: blink 1.4s infinite; }
.live.wait { background: rgba(95, 180, 255, .12); color: var(--blue); } .live.over { background: rgba(255, 100, 100, .12); color: var(--red); }
@keyframes blink { 50% { opacity: .35; } }
.flight-no { font-size: 15px; letter-spacing: .06em; color: var(--txt); font-weight: 600; white-space: nowrap; margin-right: 8px; }
.wallet { display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.wallet .i-coins { font-size: 22px; color: var(--gold); }
.w-txt { display: grid; min-width: 0; text-align: left; line-height: 1.1; }
.w-txt small { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.w-txt b { font-size: 17px; font-weight: 800; max-width: 110px; }
.wallet .i-chevron-down { font-size: 16px; color: var(--dim); }
.ib { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; color: var(--txt); }
.ib:hover { background: rgba(255, 255, 255, .06); }
.ib.muted { color: var(--red); }
#btn-info { display: none; }

/* ---------- flight history ---------- */
.hist { grid-area: hist; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hist-l { display: none; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.hist-l .i { font-size: 20px; color: var(--blue); }
.hist ol { flex: 1; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; overflow: hidden; min-width: 0; }
.hist li { flex: none; padding: 5px 10px; border-radius: 9px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
  background: rgba(30, 44, 68, .85); border: 1px solid var(--line); color: var(--txt); }
.hist li.c-red { color: #ff7a7a; background: rgba(120, 30, 40, .45); border-color: rgba(255, 100, 100, .35); }
.hist li.c-blue { color: #79c6ff; background: rgba(30, 70, 120, .45); border-color: rgba(95, 180, 255, .3); }
.hist li.c-green { color: #5ff09d; background: rgba(20, 90, 50, .5); border-color: rgba(68, 224, 138, .4); }
.hist li.c-purple { color: #e2b6ff; background: rgba(90, 40, 140, .55); border-color: rgba(192, 132, 255, .55); }
.hist li.new { animation: chipIn .4s ease-out; }
@keyframes chipIn { from { transform: translateX(-10px); opacity: 0; } }
.hist-btn { flex: none; display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line2); font-weight: 600; font-size: 0; }
.hist-btn .i { font-size: 16px; }

/* ---------- stage (sky) ---------- */
.stage { grid-area: stage; position: relative; overflow: hidden; min-height: 0; border-radius: 18px; border: 1px solid var(--line2); background: #2b3e6b;
  touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stats { position: absolute; left: 10px; bottom: 10px; display: grid; gap: 8px; pointer-events: none; }
.stat { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; min-width: 112px; }
.stat > .i { font-size: 24px; color: var(--txt); }
.stat span { display: grid; min-width: 0; line-height: 1.1; }
.stat small, .hull small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.stat b { font-size: 18px; font-weight: 800; }
/* the scenery around the balloon under the altitude: the wind there and day or night (for show; never the flight) */
.stat .wx { display: flex; align-items: center; gap: 5px; margin-top: 3px; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--dim); }
.stat .wx em { font-style: normal; font-weight: 700; } .stat .wx .i { font-size: 13px; color: var(--txt); } .stat .wx .i-sun { color: #ffd36b; } .stat .wx .i-moon { color: #c9d6ff; margin-left: 2px; }
.stat .wx.gust em { color: #8fe3ff; }
.stat .wx .wx-t { margin-left: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-card { display: none; }
.vs-card b.up { color: var(--txt); } .vs-card b.down { color: #8fd2ff; }
.center { position: absolute; left: 0; right: 0; top: 8px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.center .arcs { display: none; }
.center .phase { font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: rgba(255, 255, 255, .9); font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); padding-left: .36em; }
.center b { max-width: 92%; text-align: center; font-size: clamp(44px, 15vw, 72px); line-height: 1; font-weight: 900; letter-spacing: -.02em; color: #fff;
  text-shadow: 0 0 24px rgba(255, 200, 120, .45), 0 4px 0 rgba(120, 60, 10, .55), 0 8px 24px rgba(0, 0, 0, .45); }
.center.wait b { font-size: clamp(36px, 11vw, 56px); text-shadow: 0 0 20px rgba(95, 180, 255, .5), 0 6px 20px rgba(0, 0, 0, .5); }
.center.crash b { color: #ff7a6a; text-shadow: 0 0 24px rgba(255, 90, 70, .6), 0 6px 20px rgba(0, 0, 0, .5); }
.center.crash .phase { color: #ffb3a8; }
.center.cashed b { color: #7cf5ae; text-shadow: 0 0 24px rgba(68, 224, 138, .55), 0 6px 20px rgba(0, 0, 0, .5); }
.hull { position: absolute; right: 10px; bottom: 10px; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; row-gap: 6px; padding: 8px 12px 9px; pointer-events: none; transition: opacity .3s; }
.hull > .i { font-size: 24px; color: var(--green); }
.hull span { display: grid; line-height: 1.1; }
.hull b { font-size: 18px; font-weight: 800; }
.hull .bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.hull em { display: block; height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, #2fc874, #6ff3a6); box-shadow: 0 0 8px rgba(68, 224, 138, .6); transition: width .25s; }
.hull.low > .i { color: var(--red); } .hull.low em { background: linear-gradient(90deg, #c8343a, #ff7a6a); box-shadow: 0 0 8px rgba(255, 100, 100, .6); }
.hull.idle { opacity: .55; }
.banner { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); padding: 7px 14px; border-radius: 10px; font-weight: 800; font-size: 13px; letter-spacing: .04em; white-space: nowrap; pointer-events: none;
  background: rgba(150, 30, 36, .9); border: 1px solid #ff7a6a; box-shadow: 0 0 18px rgba(255, 100, 100, .5); animation: pulse .5s ease-in-out infinite alternate; }
.banner.storm { background: rgba(70, 36, 120, .92); border-color: #c9b8ff; box-shadow: 0 0 18px rgba(192, 132, 255, .5); }
@keyframes pulse { to { transform: translateX(-50%) scale(1.04); } }
.bonus { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.bonus button { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 12px 6px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: #2a1600; background: linear-gradient(#ffd56a, #f5a524); box-shadow: 0 0 0 1px #ffe3a0 inset, 0 0 16px rgba(255, 197, 71, .6); animation: glow 1.2s ease-in-out infinite alternate; }
.bonus .i { font-size: 16px; }
@keyframes glow { to { box-shadow: 0 0 0 1px #fff2c8 inset, 0 0 26px rgba(255, 197, 71, .9); } }
.toast { position: absolute; left: 50%; top: 44%; transform: translate(-50%, 8px); padding: 8px 18px; border-radius: 12px; background: rgba(8, 17, 31, .9); border: 1px solid var(--line2);
  font-weight: 800; font-size: 16px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.good { color: #7cf5ae; border-color: rgba(68, 224, 138, .6); } .toast.bad { color: #ffb3a8; border-color: rgba(255, 100, 100, .6); }

/* ---------- burner / vent ---------- */
.ctls { grid-area: ctls; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; touch-action: none; user-select: none; -webkit-user-select: none; }
.ctl { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 16px; overflow: hidden;
  background: rgba(13, 24, 42, .8); touch-action: none; transition: box-shadow .15s, transform .08s, opacity .2s; }
.burner { border: 2px solid var(--gold); color: #ffe2a8; box-shadow: 0 0 14px rgba(255, 170, 60, .35), inset 0 0 18px rgba(255, 150, 40, .12); }
.vent { border: 2px solid var(--blue); color: #d8eeff; box-shadow: 0 0 14px rgba(95, 180, 255, .3), inset 0 0 18px rgba(95, 180, 255, .1); }
.ctl .ci { font-size: 24px; }
.burner .ci { color: var(--orange); filter: drop-shadow(0 0 6px rgba(255, 140, 40, .8)); }
.vent .ci { color: #cfe8ff; }
.ct { display: grid; text-align: left; line-height: 1.1; }
.ct b { font-size: 17px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ct small { display: none; font-size: 12px; font-weight: 600; }
.burner .ct small { color: #ffd27a; } .vent .ct small { color: #8fd2ff; }
.ctl kbd { display: none; margin-left: auto; width: 34px; height: 34px; place-items: center; border-radius: 8px; border: 1.5px solid currentColor; font-size: 16px; font-weight: 700; opacity: .9; }
.ctl.on { transform: scale(.98); }
.burner.on { background: rgba(120, 60, 10, .85); box-shadow: 0 0 28px rgba(255, 160, 50, .8), inset 0 0 26px rgba(255, 150, 40, .45); }
.vent.on { background: rgba(20, 60, 110, .85); box-shadow: 0 0 28px rgba(95, 180, 255, .75), inset 0 0 26px rgba(95, 180, 255, .4); }
.ctl:disabled { opacity: .42; box-shadow: none; cursor: default; }
.heat { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--heat, 0) * 100%); background: linear-gradient(90deg, #ff7a2a, #ffd36b); box-shadow: 0 0 8px #ff9a3c; transition: width .1s linear; pointer-events: none; }
.app.swap .ctls .burner { order: 2; }

/* ---------- bet slots ---------- */
.slots { grid-area: slots; display: grid; gap: 8px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tab { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 12px; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(13, 24, 42, .6); border: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
.tab.sel { color: var(--txt); border-color: rgba(255, 197, 71, .7); background: rgba(40, 30, 14, .55); box-shadow: inset 0 0 12px rgba(255, 197, 71, .12); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #8193b0; }
.slot.in .dot, .tab.in .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.badge { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
.badge:empty { display: none; }
.badge.b-ready { background: rgba(140, 160, 200, .18); color: #c8d4ea; }
.badge.b-bet, .badge.b-queued { background: rgba(95, 180, 255, .18); color: #8fd2ff; border: 1px solid rgba(95, 180, 255, .4); }
.badge.b-in { background: rgba(68, 224, 138, .16); color: #6ff3a6; border: 1px solid rgba(68, 224, 138, .5); }
.badge.b-cashed { background: rgba(68, 224, 138, .22); color: #8ff7b9; }
.badge.b-lost { background: rgba(255, 100, 100, .18); color: #ff9a9a; }
.slot { display: none; gap: 10px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.slot.sel { display: grid; }
.slot.in { border-color: rgba(255, 197, 71, .85); box-shadow: 0 0 0 1px rgba(255, 197, 71, .35), 0 0 26px rgba(255, 170, 40, .22), inset 0 0 30px rgba(255, 170, 40, .06); }
.slot-h { display: none; align-items: center; gap: 10px; min-width: 0; }
.slot-h > b { font-size: 17px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.pot { margin-left: auto; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.pot small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.pot b { font-size: 20px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.pot.won b { color: var(--green); } .pot.lost b { color: var(--red); }
.slot-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fl { display: grid; gap: 5px; min-width: 0; }
.fl > span:first-child { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(5, 12, 24, .55); overflow: hidden; }
.stepper button { height: 100%; display: grid; place-items: center; font-size: 18px; color: var(--txt); background: rgba(255, 255, 255, .03); }
.stepper button:first-child { border-right: 1px solid var(--line2); } .stepper button:last-child { border-left: 1px solid var(--line2); }
.stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper b { text-align: center; font-size: 19px; font-weight: 800; }
.selw { position: relative; display: block; }
.selw select { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(5, 12, 24, .55);
  font-size: 18px; font-weight: 800; color: var(--txt); font-variant-numeric: tabular-nums; }
.selw select option { background: #0e1a2d; color: #fff; }
.selw .i { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--dim); pointer-events: none; }
.act { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; padding: 0 14px; border-radius: 12px; font-size: 18px; font-weight: 900; letter-spacing: .04em;
  text-transform: uppercase; transition: filter .15s, transform .08s, box-shadow .2s; touch-action: manipulation; min-width: 0; }
.act .i { font-size: 22px; } .act .i:not([class*="i-"]) { display: none; }
.act span { min-width: 0; font-variant-numeric: tabular-nums; }
.act:active:not([aria-disabled="true"]), .act.down:not([aria-disabled="true"]) { transform: translateY(1px) scale(.99); filter: brightness(.95); }
.act:hover:not([aria-disabled="true"]) { filter: brightness(1.08); }
.act[aria-disabled="true"] { cursor: default; }
.act.c-gold { color: #2a1600; background: linear-gradient(#ffd35e, #f4a41f); box-shadow: 0 0 0 1px #ffe19a inset, 0 6px 22px rgba(255, 170, 40, .45); }
.act.c-gold.pulse { box-shadow: 0 0 0 1px #ffe19a inset, 0 0 calc(10px + var(--glow, 0) * 24px) rgba(255, 170, 40, .85); }
.act.c-blue { color: #fff; background: linear-gradient(#3f86e0, #2559ab); box-shadow: 0 0 0 1px rgba(150, 200, 255, .55) inset, 0 6px 20px rgba(40, 110, 220, .35); }
.act.c-green { color: #04220f; background: linear-gradient(#5ef0a0, #23b866); box-shadow: 0 0 0 1px #a8ffcc inset, 0 6px 20px rgba(40, 200, 110, .35); }
.act.c-outline { color: #cfe6ff; background: rgba(20, 45, 80, .6); box-shadow: 0 0 0 1.5px rgba(95, 180, 255, .7) inset; }
.act.c-orange { color: #2a1200; background: linear-gradient(#ffb15e, #f07a1f); box-shadow: 0 0 0 1px #ffd3a0 inset; }
.act.c-red { color: #fff; background: linear-gradient(#b8343a, #7c1d24); box-shadow: 0 0 0 1px rgba(255, 130, 130, .5) inset; }
.act.c-dim { color: var(--dim); background: rgba(40, 55, 80, .55); box-shadow: 0 0 0 1px var(--line2) inset; }
.act.idle { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { filter: brightness(1.15); } }
.act.shake { animation: shake .3s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------- flight activity (phone: a drawer) ---------- */
.side { grid-area: side; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.drawer-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 12px 12px 4px 4px; background: rgba(13, 24, 42, .75); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.drawer-btn .i { transform: rotate(180deg); transition: transform .2s; }
.side .activity, .side .side-nav { display: none; }
.side.open { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; max-height: 78dvh; padding: 8px 8px calc(10px + var(--safe-b)); background: #0b1526; border-top: 1px solid var(--line2);
  border-radius: 18px 18px 0 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55), 0 -10px 40px rgba(0, 0, 0, .5); }
.side.open .drawer-btn .i { transform: none; }
.side.open .activity { display: flex; min-height: 0; flex: 1; }
.side.open .side-nav { display: grid; }
.activity { flex-direction: column; padding: 14px 12px 8px; min-height: 0; }
.activity h2 { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; font-size: 20px; font-weight: 700; }
.activity h2 .i { font-size: 24px; color: var(--green); }
.act-sub { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.act-sub em { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line2); margin-left: 6px; color: var(--mute); }
.act-sub b { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 17px; }
/* a demo room with simulated players (rgs crash_sims.rs): a small note, and a SIM mark on their rows */
.demo-room { display: flex; align-items: center; gap: 6px; margin: -4px 4px 8px; font-size: 11px; letter-spacing: .04em; color: var(--mute); }
.demo-room[hidden] { display: none; }
.demo-room .i { width: 12px; height: 12px; opacity: .8; }
.tbl li.sim .nm em { font-size: 9px; letter-spacing: .06em; opacity: .75; }
.act-sub b i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tbl-h, .tbl li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 64px; gap: 6px; align-items: center; }
.tbl-h { padding: 8px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.tbl-h span:not(:first-child), .tbl li span:not(:first-child) { text-align: right; }
.tbl { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0; list-style: none; scrollbar-width: thin; scrollbar-color: #2b3d5c transparent; }
.tbl li { padding: 7px 10px; border-bottom: 1px solid rgba(140, 175, 230, .08); font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl li .nm { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl li .nm img { width: 15px; height: 24px; flex: none; }
.tbl li .x { font-weight: 800; color: var(--mute); }
.tbl li .x.won { color: var(--green); } .tbl li .x.lost { color: #ff8a8a; }
.tbl li.me { background: rgba(255, 197, 71, .1); border-radius: 8px; } .tbl li.me .nm { color: var(--gold); font-weight: 800; }
.tbl li.hit { animation: rowHit .8s ease-out; }
@keyframes rowHit { from { background: rgba(68, 224, 138, .25); } }
.side-nav { gap: 10px; }
.side-nav button { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line2); font-size: 17px; font-weight: 600; text-align: left; }
.side-nav button:hover { background: rgba(30, 50, 82, .8); }
.side-nav .i { font-size: 22px; } .side-nav .i-chevron-right { margin-left: auto; font-size: 18px; color: var(--dim); }
.side-nav .ready { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; color: #2a1600; background: var(--gold); margin-left: auto; }
.side-nav .ready:not([hidden]) + .i-chevron-right { margin-left: 8px; }

/* ---------- footer ---------- */
.foot { grid-area: foot; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 11px; letter-spacing: .04em; color: var(--dim); text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.foot .keys { display: none; align-items: center; gap: 8px; text-transform: none; font-size: 14px; letter-spacing: 0; }
.foot .keys .i { font-size: 22px; margin-right: 4px; }
.foot kbd { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-weight: 700; color: var(--txt); margin-left: 6px; }
.foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); text-decoration: none; text-transform: none; font-size: 12px; letter-spacing: 0; }
.foot a:hover { color: var(--txt); }
.foot .sess { display: none; }

/* ---------- wide screens: the dashboard ---------- */
@media (min-width: 980px) and (min-height: 600px) {
  .app { gap: 14px 16px; padding: 14px 18px 10px; grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 420px); grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "top top" "hist hist" "stage side" "slots side" "foot foot"; }
  .top { gap: 18px; padding: 0 4px; }
  .logo { margin-right: 0; } .logo img { height: 52px; }
  .tagline { display: block; } .live { display: inline-flex; } .flight-no { display: block; }
  .wallet { height: 58px; padding: 0 16px; gap: 14px; border-radius: 14px; min-width: 260px; }
  .wallet .i-coins { font-size: 30px; }
  .w-txt small { font-size: 12px; } .w-txt b { font-size: 24px; max-width: 170px; }
  .wallet .i-chevron-down { margin-left: auto; font-size: 20px; }
  .ib { width: 46px; height: 46px; font-size: 26px; } #btn-info { display: grid; }
  .hist { padding: 10px 14px; border-radius: 16px; background: rgba(13, 24, 42, .6); border: 1px solid var(--line); gap: 12px; }
  .hist-l { display: flex; margin-right: 18px; }
  .hist ol { gap: 12px; }
  .hist li { padding: 7px 0; width: clamp(66px, 6.4vw, 110px); text-align: center; font-size: 17px; border-radius: 10px; }
  .hist-btn { font-size: 15px; height: 40px; padding: 0 14px; gap: 8px; border-radius: 10px; }
  .stage { border-radius: 20px; }
  .stats { left: 22px; top: 22px; bottom: auto; gap: 10px; }
  .stat { min-width: 250px; padding: 14px 18px; gap: 18px; border-radius: 16px; }
  .stat > .i { font-size: 34px; }
  .stat small, .hull small { font-size: 13px; }
  .stat b { font-size: 26px; }
  .vs-card { display: flex; }
  .center { top: 14px; }
  .center .arcs { display: block; position: absolute; top: 18px; width: min(56%, 600px); height: auto; }
  .center .phase { font-size: 14px; letter-spacing: .42em; display: flex; align-items: center; gap: 18px; }
  .center .phase::before, .center .phase::after { content: ""; width: 48px; height: 6px; border-top: 2px solid #8fd2ff; border-bottom: 2px solid #8fd2ff; opacity: .7; }
  .center b { margin-top: 4px; font-size: clamp(64px, 7.4vw, 124px); font-style: italic; }
  .center.wait b { font-size: clamp(54px, 5.6vw, 92px); }
  .hull { right: 22px; top: 22px; bottom: auto; min-width: 250px; padding: 14px 18px 16px; column-gap: 18px; row-gap: 12px; border-radius: 16px; }
  .hull > .i { font-size: 36px; } .hull b { font-size: 28px; } .hull .bar { height: 8px; }
  .bonus { right: 22px; top: 150px; }
  .banner { top: 40%; font-size: 15px; }
  .toast { font-size: 20px; top: 46%; }
  .ctls { grid-area: stage; align-self: end; z-index: 2; display: flex; justify-content: space-between; padding: 0 22px 22px; pointer-events: none; }
  .ctl { pointer-events: auto; width: clamp(240px, 26%, 380px); height: 76px; justify-content: flex-start; gap: 18px; padding: 0 16px 0 26px; border-radius: 22px; background: rgba(10, 18, 34, .72);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .ctl .ci { font-size: 34px; }
  .ct b { font-size: 22px; } .ct small { display: block; font-size: 14px; }
  .ctl kbd { display: grid; }
  .app.swap .ctls .burner { order: 2; }
  .slots { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tabs { display: none; }
  .slot, .slot.sel { display: grid; padding: 14px 24px 16px; gap: 12px; border-radius: 18px; }
  .slot-h { display: flex; }
  .slot-f { gap: 24px; }
  .fl > span:first-child { font-size: 13px; }
  .stepper { height: 50px; grid-template-columns: 58px minmax(0, 1fr) 58px; border-radius: 12px; }
  .stepper button { font-size: 22px; } .stepper b { font-size: 24px; }
  .selw select { height: 50px; font-size: 22px; padding-left: 26px; border-radius: 12px; }
  .act { height: 60px; font-size: 24px; border-radius: 14px; }
  .act .i { font-size: 28px; }
  .side { gap: 14px; }
  .drawer-btn { display: none; }
  .side .activity { display: flex; flex: 1; }
  .side .side-nav { display: grid; }
  .activity { padding: 18px 16px 10px; border-radius: 18px; }
  .activity h2 { font-size: 24px; }
  .side-nav button { height: 64px; font-size: 19px; padding: 0 22px; border-radius: 16px; }
  .foot { justify-content: space-between; font-size: 13px; padding: 2px 6px 0; }
  .foot .keys { display: flex; }
  .foot .legal { margin-left: auto; padding-right: 18px; border-right: 1px solid var(--line2); }
  .foot a { font-size: 15px; }
  .foot a .i { font-size: 20px; }
  .foot .sess { display: inline; }
}
@media (min-width: 980px) and (min-height: 600px) and (max-height: 820px) {
  .app { gap: 10px 14px; padding-top: 10px; }
  .wallet { height: 50px; } .logo img { height: 44px; }
  .hist { padding: 7px 12px; } .hist li { padding: 5px 0; font-size: 15px; }
  .stat { padding: 10px 14px; min-width: 210px; } .stat b { font-size: 22px; } .hull { padding: 10px 14px 12px; min-width: 210px; } .hull b { font-size: 22px; }
  .vs-card { display: none; }
  .ctl { height: 62px; } .slot, .slot.sel { padding: 10px 18px 12px; gap: 9px; } .stepper, .selw select { height: 44px; } .act { height: 52px; font-size: 20px; }
  .side-nav button { height: 52px; }
}
/* short phones: tighter */
@media (max-width: 979px) and (max-height: 700px) {
  .logo img { height: 34px; } .wallet { height: 40px; } .ib { width: 36px; height: 36px; }
  .ctl { height: 46px; } .act { height: 48px; } .stepper, .selw select { height: 40px; } .tab { height: 36px; }
  .slot { padding: 8px; gap: 8px; } .drawer-btn { height: 34px; }
  .center b { font-size: clamp(38px, 12vw, 60px); }
}
/* landscape phones / small tablets: put the activity drawer and controls beside the sky would be cramped; keep the column but cap its width */
@media (max-width: 979px) and (min-width: 600px) { .app { max-width: 600px; } }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 12px; background: rgba(2, 6, 14, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2b3d5c transparent;
  padding: 20px 18px 18px; border-radius: 20px; background: linear-gradient(#12213a, #0b1526); border: 1px solid var(--line2); box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.modal-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: 20px; color: var(--dim); }
.modal-x:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.modal-x:focus { outline: none; } .modal-x:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
button:focus-visible:not(.modal-x), select:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal h2 { margin: 0 40px 12px 0; font-size: 22px; font-weight: 800; }
.modal h3 { margin: 16px 0 6px; color: var(--gold); font-size: 16px; }
.modal p, .modal li { font-size: 15px; line-height: 1.5; color: var(--dim); }
.modal ul { padding-left: 20px; }
.modal .wordmark { display: block; width: min(60%, 300px); height: auto; margin: 0 auto 8px; }
.menu-list { display: grid; gap: 8px; margin-top: 6px; }
.menu-list button, .menu-list a { min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 12px; background: rgba(20, 36, 60, .8); border: 1px solid var(--line);
  text-decoration: none; color: var(--txt); font-size: 16px; font-weight: 600; text-align: left; }
.menu-list button:hover, .menu-list a:hover { background: rgba(30, 50, 82, .9); }
.menu-list .i { font-size: 20px; color: var(--dim); }
.menu-legal { margin: 12px 0 0; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.menu-legal + .art-btn { margin-top: 14px; text-decoration: none; }
.menu-list .val { margin-left: auto; color: var(--gold); font-weight: 700; }
.menu-list button:disabled { opacity: .45; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--dim); }
.modal .rounds { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.rounds li { padding: 10px 12px; border-radius: 12px; background: rgba(20, 36, 60, .8); border: 1px solid var(--line); }
.rounds .ok { color: var(--green); font-weight: 700; } .rounds .bad { color: var(--red); font-weight: 700; }
.recent { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.recent li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(20, 36, 60, .8); border: 1px solid var(--line); font-size: 15px; color: var(--dim); }
.recent li b { color: var(--txt); font-variant-numeric: tabular-nums; }
.recent li .r { text-align: right; font-weight: 700; }
.recent li .won { color: var(--green); } .recent li .lost { color: #ff8a8a; }
.bonus-list { display: grid; gap: 10px; margin-top: 6px; }
.bonus-card { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(20, 36, 60, .8); border: 1px solid var(--line); }
.bonus-card img { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; }
.bonus-card b { font-size: 17px; } .bonus-card p { margin: 0; font-size: 14px; }
.bonus-card .art-btn { grid-column: 1 / -1; margin-top: 6px; }
/* modal buttons (also used by minigames.js: .art-btn with data-color) */
.art-btn { display: grid; place-items: center; width: 100%; height: 54px; margin-top: 14px; border-radius: 14px; font-size: 19px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  color: #04220f; background: linear-gradient(#5ef0a0, #23b866); box-shadow: 0 0 0 1px #a8ffcc inset, 0 6px 20px rgba(40, 200, 110, .3); transition: filter .15s, transform .08s; }
.art-btn:hover:not(:disabled) { filter: brightness(1.08); } .art-btn:active:not(:disabled) { transform: translateY(1px); }
.art-btn[data-color="red"], .art-btn[data-color="orange"] { color: #2a1600; background: linear-gradient(#ffd35e, #f4a41f); box-shadow: 0 0 0 1px #ffe19a inset, 0 6px 20px rgba(255, 170, 40, .35); }
.art-btn[data-color="grey"] { color: var(--txt); background: rgba(40, 55, 80, .8); box-shadow: 0 0 0 1px var(--line2) inset; }
.art-btn:disabled { opacity: .55; cursor: default; }

/* ---------- mini-games ---------- */
.mg { text-align: center; }
.mg-stage { position: relative; margin: 6px auto 4px; }
.wheel-stage { margin-top: 34px; width: min(78vw, 320px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #1c3050, #0b1526 70%); box-shadow: 0 0 40px rgba(255, 197, 71, .25); }
.wheel-stage .wheel { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.wheel-stage .pointer { position: absolute; left: 50%; top: -6%; width: 12%; transform: translateX(-50%); filter: drop-shadow(0 3px 4px #000a); }
.timing-stage { width: calc(100% - 24px); aspect-ratio: 768 / 128; margin: 18px auto 0; }
.timing-stage .track { position: absolute; inset: 0; width: 100%; height: 100%; }
.timing-stage .cursor { position: absolute; top: -22%; height: 144%; width: auto; transform: translateX(-50%); left: 50%; filter: drop-shadow(0 2px 3px #000a); }
.mg-result { min-height: 70px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--gold); }
.mg-result img { width: 60px; height: 60px; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
.mg-hint { font-size: 14px; color: var(--mute); margin: 4px 0; }

@media (prefers-reduced-motion: reduce) { .act.idle, .banner, .bonus button, .live i { animation: none; } }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); margin: 0; z-index: 99; }

/* ---------- phones with large system text: nothing may push past the screen edge ---------- */
@media (max-width: 979px) {
  .logo { flex: 0 1 auto; min-width: 56px; }
  .logo img { width: clamp(64px, 27vw, 108px); height: auto; max-height: 40px; object-fit: contain; }
  .wallet { flex: 0 1 auto; }
  .w-txt small { overflow: hidden; text-overflow: ellipsis; }
  .ctls, .tabs, .slot-f { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ctl, .tab, .slots, .slot, .fl { min-width: 0; }
  .ct { min-width: 0; } .ct b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab { overflow: hidden; padding: 0 6px; gap: 6px; }
  .tab .badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .foot { flex-wrap: wrap; row-gap: 0; column-gap: 10px; white-space: normal; text-align: center; }
}
@media (max-width: 979px) {
  .tab > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ctl { gap: 8px; padding: 0 8px; } .ct b { letter-spacing: .02em; }
}
@media (max-width: 400px) { .tab .lng { display: none; } }

/* ======================================================================================================
   The real game on the game server (RGS): what the 2.0 demo did not have.
   ====================================================================================================== */
/* the game server's notices (reconnecting, paused, unavailable) */
.netnote { position: absolute; left: 50%; transform: translateX(-50%); top: 38%; z-index: 6; width: min(560px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px; background: rgba(8, 17, 31, .92); border: 1px solid var(--line2); color: var(--txt); font-size: 13px; line-height: 1.35; }
.netnote.warn { border-color: rgba(255, 100, 100, .7); box-shadow: 0 0 18px rgba(255, 100, 100, .25); }
.netnote span { flex: 1; }
.netnote button { flex: none; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 18px; }
.netnote button.reload { width: auto; padding: 0 12px; font-size: 13px; font-weight: 700; }
/* other players' cash-outs over the sky (narrow screens: the flight activity is in the drawer there) */
.feed { position: absolute; left: 10px; bottom: 74px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; pointer-events: none; max-width: 60%; }
.feed li { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 9px; background: rgba(8, 17, 31, .78); border: 1px solid rgba(68, 224, 138, .35); animation: feedIn .3s ease-out;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li b { color: var(--green); }
@keyframes feedIn { from { opacity: 0; transform: translateX(-12px); } }
/* the one-time "for show" hint of the burner and vent: a sentence, so it wraps */
.toast.hint { width: max-content; max-width: min(88%, 460px); white-space: normal; text-align: center; font-size: 15px; line-height: 1.3; }
.selw select:disabled { opacity: .55; cursor: default; }
.tbl li.empty { display: block; color: var(--mute); font-size: 14px; border-bottom: 0; }
.tbl li .nm em { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line2); color: var(--mute); }
.tbl li.up .x { color: var(--gold); }
.side-nav button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet:disabled { cursor: default; }
/* the burner and vent: usable ones take the pointer; under a real mouse (set from JS) they light up a little */
.ctl:not(:disabled) { cursor: pointer; }
.ctl.hov:not(.on):not(:disabled) { filter: brightness(1.12); }
.ctl:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* A room that takes one bet per player (the game server's bet slots: 1): slot 1 alone, no tabs, no empty card. */
.app.one-slot .tabs, .app.one-slot #slot-2 { display: none !important; }
.app.one-slot #slot-1 { display: grid; }

/* Operator sessions: the casino holds the balance (no demo refill). */
body.operator [data-act="refill"] { display: none !important; }
body.operator .wallet .i-chevron-down { display: none; }
body.real-money .demo-only { display: none !important; }

/* Round replay (?replay=): the REPLAY bar on top; no bet, cash-out, burner, refill, menu or bonus buttons, no balance. */
html.rk-replay .app { height: calc(100vh - var(--rk-h, 46px)); height: calc(100dvh - var(--rk-h, 46px)); margin-top: var(--rk-h, 46px); }
html.rk-replay #btn-menu, html.rk-replay #btn-sound, html.rk-replay .wallet, html.rk-replay .stepper, html.rk-replay .selw,
html.rk-replay #btn-burner, html.rk-replay #btn-vent, html.rk-replay .bonus, html.rk-replay .side-nav { visibility: hidden; pointer-events: none; }
html.rk-replay .act { pointer-events: none; }

@media (min-width: 980px) and (min-height: 600px) {
  .feed { display: none; }
  .netnote { top: 42%; font-size: 15px; padding: 11px 16px; }
  .slots { align-items: start; }
  .app.one-slot .slots { grid-template-columns: minmax(0, 1fr); }
  .app.one-slot #slot-1 { width: min(100%, 860px); justify-self: center; }
  .tbl li .nm em { font-size: 11px; }
  /* operator free rounds: in the sky, under the multiplier */
  #free-rounds-banner { --frk-top: 232px !important; }
}

/* ---------- mobile control panel (js/mobile-hud.js, the shared kit's crash panel) ----------
   Phones and small tablets upright (body.mh-portrait) and phones on their side (body.mh-landscape): the game area
   (the 2.0 column: header, history chips, sky, burner / vent and the players drawer) fills the kit's frame box
   (--fx / --fy / --fw / --fh, set by js/game.js) and the bets are in the kit's panel, which never covers it: slot A
   and slot B side by side, each with its own button, − / + and bet, one auto cash-out pill for both. The game's own
   bet slots, wallet, menu and sound buttons step aside. Desktop and tablets in landscape keep the layout above.
   The footer line (18+, demo credits, Play responsibly) steps aside too, so the sky gets its height: the panel's 18+
   badge (.mh-age, js/mobile-hud.js) opens the same note with the link, and the menu lists it. */
body.mh-on .app { position: fixed; left: var(--fx, 0); top: var(--fy, 0); width: var(--fw, 100vw); height: var(--fh, 100dvh); margin: 0; max-width: none;
  padding: calc(4px + var(--safe-t)) 8px 4px; grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "top" "hist" "stage" "ctls" "side"; }
body.mh-on .foot { display: none; }
.mh > .mh-age { display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1.5px solid rgba(140, 175, 230, .4); background: rgba(13, 24, 42, .8);
  color: var(--txt); font: 800 12px/1 inherit; font-family: "Inter", "Segoe UI", Roboto, system-ui, sans-serif; letter-spacing: -.02em; cursor: pointer; }
.mh > .mh-age[hidden] { display: none; }
.mh > .mh-age:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Phones upright: the sky takes most of the screen. One slim bar on top (the logo, the history chips, the history and
   players buttons: the players list opens as a sheet), the sky under it with everything else on it: LIVE and the
   flight number in its top corners, the multiplier under them, the burner and vent in its bottom corners with the
   altitude and hull cards (smaller) over them, the bonus pills over the hull card (never on the multiplier). The sky's
   --sky-top / --sky-floor tell js/game.js where the balloons have room (between the multiplier and the cards). */
body.mh-portrait .app { gap: 6px; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 44px minmax(0, 1fr); grid-template-areas: "top hist side" "stage stage stage"; }
body.mh-portrait .top { padding: 0; gap: 0; }
body.mh-portrait .tagline { display: none; }
body.mh-portrait .logo img { width: auto; height: 30px; max-height: 30px; }
body.mh-portrait .live, body.mh-portrait .flight-no { position: absolute; z-index: 3; top: calc(var(--safe-t) + 60px); pointer-events: none; }
body.mh-portrait .live { left: 18px; gap: 6px; padding: 3px 9px; font-size: 11px; background: rgba(8, 17, 31, .72); }
body.mh-portrait .live.wait { background: rgba(8, 17, 31, .72); } body.mh-portrait .live.over { background: rgba(8, 17, 31, .72); }
body.mh-portrait .live i { width: 7px; height: 7px; }
body.mh-portrait .flight-no { right: 18px; padding: 3px 9px; border-radius: 999px; font-size: 11px; background: rgba(8, 17, 31, .72); color: var(--txt); }
body.mh-portrait .hist { gap: 6px; padding-left: 8px; }
body.mh-portrait .hist ol { gap: 5px; }
body.mh-portrait .hist li { padding: 4px 8px; font-size: 13px; }
body.mh-portrait .hist-btn, body.mh-portrait .drawer-btn { height: 44px; min-width: 44px; justify-content: center; border-radius: 12px; }
body.mh-portrait .side { align-self: center; margin-left: 6px; }
body.mh-portrait .side:not(.open) .drawer-btn { padding: 0 10px; gap: 5px; font-size: 0; }
body.mh-portrait .side:not(.open) .drawer-btn > .i-chevron-down { display: none; }
body.mh-portrait .side:not(.open) .drawer-btn .mob-ico { display: inline-block; font-size: 18px; color: var(--green); }
body.mh-portrait .side:not(.open) .drawer-btn b { font-size: 15px; }
body.mh-portrait .stage { --sky-top: 104px; --sky-floor: 112px; }
body.mh-portrait .center { top: 30px; }
body.mh-portrait .center b { font-size: clamp(40px, 13vw, 64px); }
body.mh-portrait .ctls { grid-area: stage; align-self: end; z-index: 2; display: flex; justify-content: space-between; gap: 8px; padding: 0 8px 8px; pointer-events: none; }
body.mh-portrait .ctl { pointer-events: auto; width: min(170px, 46%); height: 44px; background: rgba(10, 18, 34, .72); }
body.mh-portrait .stats { left: 8px; bottom: 60px; }
body.mh-portrait .stat, body.mh-portrait .hull { padding: 4px 9px 5px 8px; min-width: 0; gap: 7px; column-gap: 7px; row-gap: 3px; }
body.mh-portrait .stat > .i, body.mh-portrait .hull > .i { font-size: 18px; }
body.mh-portrait .stat small, body.mh-portrait .hull small { font-size: 9px; }
body.mh-portrait .stat b, body.mh-portrait .hull b { font-size: 15px; }
body.mh-portrait .hull { right: 8px; bottom: 60px; }
body.mh-portrait .hull .bar { height: 4px; }
body.mh-portrait .feed { bottom: 112px; }
body.mh-portrait .bonus { top: auto; right: 8px; bottom: 112px; }
.drawer-btn .mob-ico { display: none; }
body.mh-on .deck, body.mh-on .wallet, body.mh-on #btn-menu, body.mh-on #btn-sound, body.mh-on #btn-info, body.mh-on .desk-only { display: none !important; }
body.mh-on .top { justify-content: space-between; }
body.mh-on .live, body.mh-on .flight-no { display: inline-flex; }
body.mh-on .live { padding: 4px 10px; font-size: 12px; }
body.mh-on .flight-no { font-size: 12px; margin: 0; color: var(--dim); }
body.mh-on .logo img { height: 34px; }
body.mh-on .ctl { height: 46px; }
body.mh-on .drawer-btn { height: 34px; border-radius: 12px; }
body.mh-on .side.open { z-index: 25; }
body.mh-on.sheet-open .app { z-index: 22; }   /* the players sheet over the kit's panel (z 20), under the dialogs (30) */
body.mh-landscape .app { padding: 4px 6px 4px; gap: 4px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "hist" "stage"; }
body.mh-landscape .top { display: none; }
body.mh-landscape .hist { padding-right: 168px; }
body.mh-landscape .hist li { padding: 3px 8px; font-size: 12px; }
body.mh-landscape .side { grid-area: hist; justify-self: end; align-self: center; z-index: 2; }
body.mh-landscape .side.open { justify-self: stretch; }
body.mh-landscape .drawer-btn { height: 28px; padding: 0 10px; font-size: 11px; }
body.mh-landscape .ctls { grid-area: stage; align-self: end; z-index: 2; display: flex; justify-content: space-between; padding: 0 8px 8px; pointer-events: none; }
body.mh-landscape .ctl { pointer-events: auto; width: min(170px, 30%); height: 44px; background: rgba(10, 18, 34, .72); }
body.mh-landscape .stats { bottom: 60px; }
body.mh-landscape .stat { padding: 5px 9px; min-width: 96px; } body.mh-landscape .stat b { font-size: 15px; }
body.mh-landscape .hull { bottom: 60px; padding: 5px 9px 6px; } body.mh-landscape .hull b { font-size: 15px; }
body.mh-landscape .center b { font-size: clamp(34px, 9vh, 52px); }
body.mh-landscape .feed { bottom: 112px; }

/* the auto cash-out picker of the mobile panel (one row of targets per bet) */
.ac-picker { display: grid; gap: 4px; }
.modal .ac-row h3 { display: flex; justify-content: space-between; margin: 10px 0 6px; }
.ac-row h3 b { color: #fff; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip { min-width: 54px; min-height: 44px; padding: 0 10px; border-radius: 12px; background: rgba(20, 36, 60, .8); border: 1px solid var(--line2); font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.ac-chip[aria-pressed="true"] { background: rgba(60, 44, 14, .8); border-color: var(--gold); color: var(--gold); }
.ac-chip:disabled { opacity: .45; }
.ac-row small { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); }
@media (max-height: 500px) { .modal .ac-intro { display: none; } .modal .ac-row h3 { margin: 4px 0 4px; } .ac-chip { min-height: 40px; min-width: 50px; } }

/* Other languages (?lang=, js/strings.js): longer words. Scoped so the English layout cannot change. */
:root:not(:lang(en)) .modal h2 { overflow-wrap: anywhere; }
:root:not(:lang(en)) .mg h2 { margin-left: 34px; font-size: 22px; }   /* centred titles clear the close button */
:root:not(:lang(en)) .ac-chip { padding: 0 6px; }                      /* "Kapalı", "Não": the chips keep their rows */
:root:not(:lang(en)) .tagline { letter-spacing: .14em; }
:root:not(:lang(en)) .act { letter-spacing: .01em; }

/* fit-ups of the 2.0 layout on the real game's words */
.ct small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mh-landscape .hist-btn, body.mh-landscape .hull, body.mh-landscape .vs-card { display: none; }
@media (min-width: 980px) and (min-height: 600px) and (max-width: 1500px) {
  .foot { font-size: 11px; }
  .foot .keys { font-size: 12px; gap: 5px; } .foot kbd { min-width: 24px; height: 24px; margin-left: 3px; }
  .foot a { font-size: 13px; } .foot .legal { padding-right: 10px; }
}
body.mh-landscape .drawer-btn { background: #0b1526; }
