/* Premium midnight flight dashboard. Functional game hooks remain class-compatible. */
:root {
  color-scheme: dark;
  --ink: #090e1b;
  --ink-soft: #0d1526;
  --panel: #111c30;
  --panel-raised: #16243b;
  --panel-hover: #1b2b45;
  --line: #263752;
  --line-soft: rgba(145, 169, 203, .14);
  --text: #f0f5fb;
  --muted: #91a2bb;
  --subtle: #647891;
  --lime: #b9f36b;
  --lime-deep: #6fb53f;
  --amber: #ffbd72;
  --coral: #ff777b;
  --blue: #81baff;
  --display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-panel: 0 18px 50px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body {
  min-width: 320px; margin: 0; color: var(--text); background:
    radial-gradient(ellipse at 12% -12%, rgba(59, 94, 146, .17), transparent 36rem),
    radial-gradient(ellipse at 92% 8%, rgba(92, 129, 61, .09), transparent 30rem),
    var(--ink);
  font: 14px/1.5 var(--body); -webkit-text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { color: #10190b; background: var(--lime); }

/* Header */
.top {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px max(22px, calc((100vw - 1280px) / 2)); border-bottom: 1px solid rgba(145, 169, 203, .12);
  background: rgba(9, 14, 27, .76); backdrop-filter: blur(18px); position: relative; z-index: 4;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: max-content; }
.brand-mark {
  width: 38px; height: 38px; position: relative; display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(185, 243, 107, .3); border-radius: 13px;
  background: linear-gradient(145deg, rgba(185,243,107,.17), rgba(129,186,255,.08));
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 7px 22px rgba(0,0,0,.22);
}
.brand-mark::before { content: ""; position: absolute; width: 24px; height: 24px; border: 2px solid var(--lime); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(35deg); }
.brand-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 13px rgba(255,189,114,.65); transform: translate(4px,-4px); }
.brand-mark span { position: absolute; width: 17px; height: 2px; background: var(--lime); border-radius: 2px; transform: rotate(-42deg) translate(-1px, 4px); }
.brand-copy { display: grid; gap: 1px; }
.brand { margin: 0; font: 800 19px/1.1 var(--display); letter-spacing: .025em; }
.brand-caption { font: 700 9px/1.2 var(--body); letter-spacing: .19em; color: var(--muted); }
.top-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; min-width: 0; }
.secure-note { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; font-weight: 650; letter-spacing: .025em; }
.secure-dot, .stage-pulse, .feed-mark i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(185,243,107,.09), 0 0 12px rgba(185,243,107,.35); }
.acct { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.btn { min-height: 39px; border: 1px solid transparent; border-radius: 11px; padding: 9px 15px; font-size: 13px; font-weight: 750; letter-spacing: .01em; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn.solid { color: #17200f; background: var(--lime); border-color: rgba(255,255,255,.16); box-shadow: 0 6px 18px rgba(139, 201, 72, .16); }
.btn.solid:hover:not(:disabled) { background: #c8f98a; box-shadow: 0 8px 22px rgba(139, 201, 72, .25); }
.btn.ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.025); }
.btn.ghost:hover:not(:disabled) { background: rgba(255,255,255,.07); border-color: #3c5273; }
.btn:disabled { opacity: .48; }
.bal { display: inline-flex; align-items: center; min-height: 39px; padding: 7px 13px; border-radius: 11px; border: 1px solid rgba(185,243,107,.27); background: rgba(185,243,107,.075); color: var(--lime); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .015em; }

/* Page intro and main grid */
.page { max-width: 1280px; margin: 0 auto; padding: 0 22px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 0 23px; }
.intro-copy { min-width: 0; }
.eyebrow, .section-kicker { margin: 0 0 6px; color: var(--lime); font-size: 10px; line-height: 1.2; font-weight: 850; letter-spacing: .17em; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-mark { width: 16px; height: 2px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 9px rgba(185,243,107,.55); }
.intro h1 { margin: 0; font: 800 clamp(25px, 3vw, 34px)/1.15 var(--display); letter-spacing: -.045em; }
.intro-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.intro-tag { display: inline-flex; align-items: center; gap: 11px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(125deg, rgba(129,186,255,.07), rgba(255,255,255,.015)); white-space: nowrap; }
.intro-tag-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: rgba(129,186,255,.12); color: var(--blue); font-size: 20px; font-weight: 800; }
.intro-tag strong, .intro-tag small { display: block; }
.intro-tag strong { font-size: 12px; }
.intro-tag small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 18px; align-items: start; padding-bottom: 20px; }
.play { min-width: 0; }
.section-head, .bet-section-head, .side-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.section-head { margin: 1px 2px 10px; }
.section-head h2, .bet-section-head h2, .side-head h2 { margin: 0; font: 750 16px/1.2 var(--display); letter-spacing: -.015em; }
.section-kicker { color: var(--subtle); margin-bottom: 4px; font-size: 9px; }
.section-hint { color: var(--subtle); font-size: 11px; padding-bottom: 1px; text-align: right; }
.history-wrap { padding: 0 1px 15px; }
.history { list-style: none; margin: 0; padding: 0 1px 3px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #344865 transparent; }
.history::-webkit-scrollbar { height: 3px; }
.history::-webkit-scrollbar-thumb { background: #344865; border-radius: 5px; }
.chip { min-width: 57px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: rgba(17,28,48,.9); color: var(--muted); font: 750 12px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.chip:hover { transform: translateY(-2px); border-color: #56704c; background: var(--panel-raised); }
.chip.low { color: var(--coral); border-color: rgba(255,119,123,.22); }
.chip.mid { color: var(--amber); border-color: rgba(255,189,114,.24); }
.chip.high { color: var(--lime); border-color: rgba(185,243,107,.25); background: rgba(185,243,107,.055); }

/* Flight stage */
.stage-shell { overflow: hidden; border: 1px solid rgba(129,186,255,.17); border-radius: 20px; background: #101b32; box-shadow: var(--shadow-panel), inset 0 1px rgba(255,255,255,.035); }
.stage-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: rgba(7,13,26,.45); border-bottom: 1px solid rgba(145,169,203,.11); }
.stage-label { display: inline-flex; align-items: center; gap: 9px; color: #dce8f7; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.stage-pulse { width: 6px; height: 6px; }
.stage-caption { color: #6f839f; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.stage {
  position: relative; isolation: isolate; height: clamp(285px, 39vw, 425px); overflow: hidden;
  background: radial-gradient(ellipse at 51% 77%, rgba(52, 82, 132, .54), transparent 44%),
    linear-gradient(180deg, #101a32 0%, #1b2850 48%, #34436a 78%, #76533f 100%);
}
.stage::before { content: ""; pointer-events: none; position: absolute; z-index: 0; inset: 0; opacity: .5; background: linear-gradient(105deg, transparent 10%, rgba(255,255,255,.035) 45%, transparent 73%); }
.stage::after { content: ""; pointer-events: none; position: absolute; z-index: 0; left: 12%; right: 12%; bottom: -30%; height: 64%; border-radius: 50%; background: rgba(255,189,114,.12); filter: blur(48px); }
#cv { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; }
.readout { position: absolute; z-index: 2; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; pointer-events: none; padding: 0 12px 4%; }
.mult { font: 850 clamp(64px, 12vw, 112px)/.98 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.065em; color: #f7fbff; text-shadow: 0 5px 30px rgba(0,0,0,.4), 0 0 45px rgba(129,186,255,.12); transition: color .15s; }
.mult.idle { color: rgba(239,245,251,.56); }
.mult.flying { color: #f7fbff; }
.mult.crashed { color: var(--coral); text-shadow: 0 5px 30px rgba(0,0,0,.48), 0 0 36px rgba(255,119,123,.2); }
.status { margin-top: 10px; color: rgba(240,245,251,.87); font-size: 12px; font-weight: 650; letter-spacing: .015em; text-shadow: 0 1px 10px rgba(0,0,0,.7); min-height: 1.5em; }
.stage-bottom-note { position: absolute; z-index: 2; bottom: 13px; left: 0; right: 0; text-align: center; color: rgba(231,240,251,.46); font-size: 8px; font-weight: 800; letter-spacing: .2em; pointer-events: none; }
.stage-bottom-note span { color: var(--amber); padding: 0 5px; }

/* Bet controls */
.bet-section-head { margin: 19px 2px 10px; }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp { min-width: 0; padding: 15px; display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(155deg, rgba(22,36,59,.97), rgba(15,25,43,.97)); box-shadow: 0 10px 30px rgba(0,0,0,.12); transition: border-color .18s ease, transform .18s ease; }
.bp:hover { border-color: #39516f; }
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bp-label { color: var(--text); font: 750 13px/1.2 var(--display); }
.bp-caption { margin: 3px 0 0; color: var(--subtle); font-size: 10px; }
.bp-index { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: rgba(129,186,255,.09); border: 1px solid rgba(129,186,255,.14); font-size: 10px; font-weight: 850; }
.bp-row { display: flex; gap: 8px; align-items: center; }
.step { display: flex; flex: 1; align-items: stretch; min-width: 0; overflow: hidden; background: #0b1424; border: 1px solid #30435f; border-radius: 11px; transition: border-color .15s, box-shadow .15s; }
.step:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(185,243,107,.08); }
.step button { flex: 0 0 38px; width: 38px; border: 0; background: transparent; color: var(--muted); font-size: 18px; font-weight: 650; transition: color .15s, background .15s; }
.step button:hover { color: var(--lime); background: rgba(185,243,107,.07); }
.step input { flex: 1; min-width: 0; width: 0; text-align: center; background: transparent; border: 0; outline: 0; color: var(--text); font: 800 17px var(--display); font-variant-numeric: tabular-nums; padding: 8px 0; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.quick button { min-width: 0; border: 1px solid #2b3d57; background: rgba(255,255,255,.025); color: #b7c5d8; border-radius: 8px; padding: 6px 2px; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; transition: color .15s, border-color .15s, background .15s; }
.quick button:hover { color: var(--lime); border-color: rgba(185,243,107,.5); background: rgba(185,243,107,.07); }
.auto { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; min-width: 0; }
.auto label { cursor: pointer; white-space: nowrap; }
.auto input[type=number] { width: 66px; margin-left: auto; background: #0b1424; border: 1px solid #30435f; border-radius: 8px; padding: 6px 7px; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.auto input[type=checkbox] { flex: 0 0 auto; width: 16px; height: 16px; margin: 0 1px 0 0; accent-color: var(--lime); }
.go { width: 100%; min-height: 47px; border: 0; border-radius: 11px; padding: 12px 10px; font: 850 14px var(--display); letter-spacing: .005em; background: var(--lime); color: #17200f; font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px rgba(139,201,72,.12); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.go:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(139,201,72,.2); filter: brightness(1.04); }
.go[data-kind=primary] { background: var(--lime); color: #17200f; }
.go[data-kind=cancel] { background: #293751; color: var(--text); border: 1px solid #405475; box-shadow: none; }
.go[data-kind=cash] { background: var(--amber); color: #281707; box-shadow: 0 6px 22px rgba(255,189,114,.18); animation: breathe 1.15s ease-in-out infinite; }
.go[data-kind=won] { background: rgba(185,243,107,.08); color: var(--lime); border: 1px solid rgba(185,243,107,.42); box-shadow: none; }
.go[data-kind=lost], .go[data-kind=wait] { background: #1a2940; color: #7d91ac; border: 1px solid #2b3e59; box-shadow: none; }
.go:disabled { cursor: default; opacity: .92; }
.bp-info { color: var(--muted); font-size: 11px; min-height: 1.25em; margin: -3px 0 0; }
@keyframes breathe { 50% { transform: scale(1.012); box-shadow: 0 0 0 5px rgba(255,189,114,.12), 0 8px 24px rgba(255,189,114,.12); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Activity panel */
.side { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(160deg, rgba(17,28,48,.98), rgba(13,22,39,.98)); box-shadow: var(--shadow-panel); }
.side-head { align-items: center; padding: 17px 16px 15px; }
.feed-mark { display: inline-flex; align-items: center; gap: 7px; color: var(--lime); border: 1px solid rgba(185,243,107,.2); background: rgba(185,243,107,.055); border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 800; }
.feed-mark i { width: 5px; height: 5px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 0 12px; background: rgba(7,13,25,.5); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.tabs button { position: relative; border: 0; background: transparent; padding: 12px 8px; font-size: 11px; font-weight: 750; color: var(--subtle); transition: color .15s; }
.tabs button::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected=true] { color: var(--lime); }
.tabs button[aria-selected=true]::after { background: var(--lime); box-shadow: 0 0 10px rgba(185,243,107,.28); }
.list { max-height: 495px; min-height: 180px; overflow-y: auto; padding: 8px 0; font-variant-numeric: tabular-nums; scrollbar-width: thin; scrollbar-color: #344865 transparent; }
.list .sum { padding: 7px 15px 11px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; padding: 9px 15px; align-items: center; color: #c6d2e1; font-size: 11px; border-bottom: 1px solid rgba(145,169,203,.055); }
.row:last-child { border-bottom: 0; }
.row.won { background: rgba(185,243,107,.055); }
.row .m { color: var(--lime); font-weight: 800; min-width: 52px; text-align: right; }
.row .lost { color: var(--coral); }
.empty { padding: 29px 18px; color: var(--muted); text-align: center; font-size: 12px; }
.side-foot { display: flex; align-items: center; gap: 8px; padding: 12px 15px; color: var(--subtle); font-size: 10px; border-top: 1px solid var(--line-soft); }
.side-foot-mark { width: 15px; height: 15px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid #4b6280; color: #9cb0c9; font: 800 9px var(--display); }

/* Footer */
.foot { max-width: 1280px; margin: 4px auto 0; padding: 16px 22px 30px; color: var(--muted); font-size: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; justify-content: space-between; border-top: 1px solid rgba(145,169,203,.1); }
.foot p { margin: 0; }
.foot strong { color: #cbd7e6; font-weight: 800; }
.foot nav { display: flex; align-items: center; gap: 18px; }
.link { background: none; border: 0; padding: 2px 0; margin: 0; color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; text-underline-offset: 4px; }
.link:hover { color: #b5d7ff; text-decoration: underline; }

/* Dialogs, forms, wallet */
dialog { width: min(480px, calc(100vw - 24px)); max-height: min(760px, calc(100dvh - 24px)); overflow-y: auto; background: #111c30; color: var(--text); border: 1px solid #344965; border-radius: 19px; padding: 0 20px 21px; box-shadow: 0 24px 90px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(3,7,16,.78); backdrop-filter: blur(5px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 0 12px; margin-bottom: 2px; position: sticky; top: 0; background: #111c30; border-bottom: 1px solid var(--line-soft); z-index: 2; }
.dlg-head h2 { margin: 0; font: 800 19px var(--display); letter-spacing: -.02em; }
.x { border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--muted); font-size: 22px; line-height: 1; width: 34px; height: 34px; border-radius: 10px; }
.x:hover { color: var(--text); background: rgba(255,255,255,.08); }
.stack { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { color: #aebed2; font-size: 11px; font-weight: 700; }
.field input, .field select { background: #0b1424; border: 1px solid #30435f; border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 42px; color: var(--text); outline: 0; }
.field input:focus, .field select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(185,243,107,.08); }
.msg { margin: 0; min-height: 1.3em; color: var(--coral); font-size: 12px; }
.msg.okay { color: var(--lime); }
.note { color: var(--muted); font-size: 11px; margin: 0; }
.sub { margin: 6px 0 0; font: 800 13px var(--display); color: #e0eaf6; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: #0b1424; padding: 4px; border: 1px solid var(--line-soft); border-radius: 12px; }
.seg button { border: 0; background: transparent; padding: 8px; border-radius: 8px; font-size: 11px; font-weight: 750; color: var(--muted); }
.seg button[aria-pressed=true] { background: #243650; color: var(--lime); box-shadow: inset 0 0 0 1px rgba(185,243,107,.12); }
code.hash { display: block; word-break: break-all; background: #0b1424; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; color: #aec5df; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tx { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); color: #d9e4f1; font-size: 11px; }
.tx small { color: var(--subtle); font-size: 10px; }
.big { font: 850 30px var(--display); letter-spacing: -.03em; color: var(--lime); font-variant-numeric: tabular-nums; padding: 4px 0; }
.auto label { color: var(--muted); }
.phone { background: #0a1322; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.phone .sim { color: var(--lime); font-weight: 800; margin: 0; }
.phone .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 200%); opacity: 0; visibility: hidden; pointer-events: none; max-width: min(92vw, 460px); width: max-content; background: #edf5ff; color: #0b1424; padding: 12px 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; font-size: 12px; font-weight: 750; box-shadow: 0 12px 45px rgba(0,0,0,.45); transition: transform .2s ease, opacity .2s ease, visibility .2s ease; z-index: 50; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.win { background: var(--lime); color: #17200f; }
.toast.lose, .toast.err { background: var(--coral); color: #27090b; }

/* Responsive behaviour */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0,1fr) 285px; gap: 13px; }
  .page { padding: 0 16px; }
  .top { padding-left: 16px; padding-right: 16px; }
  .foot { padding-left: 16px; padding-right: 16px; }
  .bp { padding: 12px; }
}
@media (max-width: 760px) {
  .top { min-height: 68px; }
  .top-right { gap: 10px; }
  .secure-note { display: none; }
  .layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .side { grid-row: 2; }
  .list { max-height: 310px; min-height: 120px; }
  .stage { height: clamp(270px, 57vw, 390px); }
  .intro { padding: 24px 0 19px; }
}
@media (max-width: 520px) {
  .top { padding: 10px 13px; min-height: 62px; gap: 8px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 11px; }
  .brand { font-size: 16px; }
  .brand-caption { font-size: 8px; }
  .acct { gap: 5px; }
  .btn { min-height: 35px; padding: 8px 10px; font-size: 11px; border-radius: 9px; }
  .bal { min-height: 35px; padding: 7px 9px; font-size: 11px; }
  .page { padding: 0 12px; }
  .intro { align-items: flex-start; padding: 21px 0 16px; }
  .intro h1 { font-size: 25px; }
  .intro-note { max-width: 275px; font-size: 11px; }
  .intro-tag { gap: 8px; padding: 8px; }
  .intro-tag-icon { width: 28px; height: 28px; }
  .intro-tag strong { font-size: 10px; }
  .intro-tag small { font-size: 9px; }
  .section-hint { max-width: 112px; font-size: 9px; }
  .history-wrap { padding-bottom: 12px; }
  .chip { min-width: 52px; padding: 7px 8px; font-size: 11px; }
  .stage-shell { border-radius: 15px; }
  .stage-topline { padding: 10px 12px; }
  .stage { height: clamp(255px, 73vw, 330px); }
  .mult { font-size: clamp(60px, 17vw, 86px); }
  .status { max-width: 270px; font-size: 11px; }
  .stage-bottom-note { bottom: 10px; font-size: 7px; }
  .bet-section-head { margin-top: 16px; }
  .panels { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .bp { padding: 13px; gap: 9px; }
  .bp-head { margin-bottom: 1px; }
  .side-head { padding: 14px; }
  .foot { padding: 14px 12px 24px; align-items: flex-start; }
  .foot nav { gap: 14px; flex-wrap: wrap; }
  .link { font-size: 10px; }
  dialog { padding: 0 15px 17px; }
}
@media (max-width: 365px) {
  .intro-tag { display: none; }
  .acct .ghost { display: none; }
  .auto { gap: 5px; font-size: 10px; }
  .auto input[type=number] { width: 58px; }
  .step button { flex-basis: 34px; width: 34px; }
}
