/* Aviator game client - Lit Stage look (mobile + foldable pass, 2026-11-01; desktop in the same look per Skorp).
   Kit: vendor/ui-kit/stage.css (tokens, glass, celebration). Layout per html[data-shape] from vendor/ui-kit/posture.js. */
:root {
  --ls-ground: #0b0f17; --ls-key: #1b2438; --ls-metal: #f5a524; --ls-metal-hi: #ffd27a; --ls-ink: #eef1f7;
  --bg: #0b0f17; --panel: rgba(255, 255, 255, .045); --panel-2: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .10);
  --text: #eef1f7; --muted: #9aa4ba;
  --orange: #f5a524; --green: #22c55e; --green-dark: #15803d; --red: #ef4444; --blue: #4c8dff; --purple: #a855f7;
  --radius: 16px; --font: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 18px; --gap: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; height: 100%; }
body { height: var(--ls-vh); overflow: hidden; color: var(--text); font: 14px/1.35 var(--font); font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; }
button, input, select { font: inherit; color: inherit; }
input, select { font-size: 16px; } /* iPhone Safari zooms on smaller inputs */
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
.hidden { display: none !important; }

/* header */
.top { flex: none; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; font-stretch: 125%; letter-spacing: .12em; white-space: nowrap; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--red); font-size: 15px; letter-spacing: 0;
  background: radial-gradient(circle at 35% 30%, #2a1e10, #0b0f17); box-shadow: inset 0 0 0 2px var(--orange), 0 0 16px rgba(245, 165, 36, .45); }
.top-right { display: flex; align-items: center; gap: 10px; }
.chip-btn, .icon-btn, .balance { height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; display: flex; align-items: center; gap: 8px; background: var(--panel); }
.icon-btn { width: 44px; justify-content: center; padding: 0; font-size: 18px; }
.balance b { font-size: 19px; font-weight: 700; }
.balance span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }

/* layout: desktop + square default (stage left, live panel right, controls under the stage) */
.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "stage side";
  gap: var(--gap); padding: 0 max(var(--pad), env(safe-area-inset-right)) max(var(--pad), env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left)); }
.side { grid-area: side; background: rgba(14, 19, 30, .72); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column;
  min-height: 0; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.stage { grid-area: stage; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; min-width: 0; min-height: 0; }
.side-close, .live-btn { display: none; }
.scrim { display: none; }

/* side panel */
.tabs, .seg { display: flex; gap: 2px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 2px; }
.tabs { margin: 12px; }
.tab, .seg button { flex: 1; min-height: 40px; padding: 0 10px; border-radius: 20px; color: var(--muted); font-weight: 700; font-size: 13px; }
.tab.active, .seg button.active { background: rgba(255, 255, 255, .14); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.tab-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.tab-body .seg { margin: 0 12px 8px; }
.side-head { display: flex; justify-content: space-between; padding: 6px 16px 10px; color: var(--muted); border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side-head b { color: var(--text); font-size: 14px; }
.list-head, .row { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.1fr; align-items: center; gap: 6px; }
.list-head { padding: 8px 16px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.list-head span:not(:first-child), .row span:not(:first-child) { text-align: right; }
.list { overflow-y: auto; padding: 0 10px 10px; flex: 1; overscroll-behavior: contain; }
.row { min-height: 36px; padding: 6px 8px; margin-bottom: 4px; border-radius: 10px; background: var(--panel); font-size: 13px; border: 1px solid transparent; }
.row.win { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .35); }
.row.lost { opacity: .55; }
.row .who { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #111; flex: none; }
.xtag { display: inline-block; padding: 1px 7px; border-radius: 8px; background: var(--green); color: #052e14; font-weight: 700; font-style: normal; }
.empty { color: var(--muted); text-align: center; padding: 24px 8px; }

/* history strip */
.hist-row { display: flex; gap: 6px; align-items: center; min-width: 0; }
.history { flex: 1; display: flex; gap: 6px; overflow: hidden; min-width: 0; padding: 2px 0;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.hchip { flex: none; height: 28px; padding: 0 11px; border-radius: 14px; font-size: 12.5px; font-weight: 700; border: 1px solid transparent; }
.hchip.low { color: #7fb2ff; background: rgba(76, 141, 255, .14); border-color: #7fb2ff33; }
.hchip.mid { color: #c99bff; background: rgba(168, 85, 247, .16); border-color: #c99bff33; }
.hchip.high { color: #ff8fc8; background: rgba(244, 114, 182, .16); border-color: #ff8fc833; }
.hist-btn { flex: none; width: 44px; height: 32px; border-radius: 16px; display: grid; place-items: center; color: var(--muted); background: var(--panel); border: 1px solid var(--line); }

/* play area: the stage (shadow + amber metal rim) */
.play { position: relative; border-radius: 20px; overflow: hidden; min-height: 140px; container-type: size;
  border: 2px solid transparent;
  background: radial-gradient(90% 70% at 30% 100%, rgba(239, 68, 68, .16), transparent 60%) padding-box,
    radial-gradient(100% 80% at 50% 0%, #182035, #0a0e16) padding-box,
    linear-gradient(180deg, rgba(255, 210, 122, .55), rgba(245, 165, 36, .18) 45%, rgba(255, 210, 122, .4)) border-box; }
.play canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.play-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; align-items: center; z-index: 2; pointer-events: none; }
.play-badges > * { pointer-events: auto; }
.pf-badge, .maxwin-badge, .live-btn { height: 32px; font-size: 12px; font-weight: 600; color: var(--text); border: 1px solid var(--line); background: rgba(11, 15, 23, .6);
  padding: 0 12px; border-radius: 16px; display: inline-flex; align-items: center; gap: 6px; }
.pf-badge { margin-right: auto; }
.pf-badge svg { color: #8ee6a8; }
.maxwin-badge { color: var(--muted); }
.maxwin-badge b { color: var(--text); }
.mult { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 1; pointer-events: none; }
.mult-x { font-size: clamp(40px, 18cqmin, 120px); font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -.01em; color: #fff;
  text-shadow: 0 0 24px rgba(245, 165, 36, .55), 0 0 2px rgba(255, 210, 122, .9), 0 6px 20px rgba(0, 0, 0, .6); }
.mult-sub { color: var(--muted); letter-spacing: .3em; font-size: 13px; margin-top: 6px; }
.mult.crashed .mult-x { color: var(--red); text-shadow: 0 0 24px rgba(239, 68, 68, .5), 0 6px 20px rgba(0, 0, 0, .6); }
.mult.crashed .mult-sub { color: var(--text); letter-spacing: .15em; font-weight: 800; font-stretch: 115%; font-size: 18px; }
.waiting { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; z-index: 1; padding: 0 12px; }
.waiting-title { letter-spacing: .2em; font-weight: 800; font-stretch: 115%; color: #dbe2f0; }
.waiting-bar { width: min(320px, 70cqw); height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 0 auto; }
.waiting-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--orange)); width: 100%; transform-origin: left; }
.unavailable { position: absolute; inset: auto 0 16px; text-align: center; color: var(--orange); z-index: 3; }

/* bet panels (glass; 2 of the max 3 blur elements, the balance is the third) */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel { border-radius: var(--radius); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.panel.active { border-color: rgba(245, 165, 36, .45); box-shadow: 0 0 0 1px rgba(245, 165, 36, .15), 0 12px 30px rgba(0, 0, 0, .4); }
.panel .mode { align-self: flex-start; width: 140px; }
.panel .mode button { min-height: 32px; }
.panel-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; }
.stake-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stake-input { display: flex; align-items: center; justify-content: space-between; height: 44px; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; }
.stake { width: 100%; text-align: center; background: none; border: 0; font-size: 17px; font-weight: 700; outline: none; min-width: 0; }
.round-btn { width: 44px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 22px; flex: none; }
.chips { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 1 0 auto; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.chips button.lim { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.chips button.sel { background: rgba(245, 165, 36, .16); border-color: rgba(245, 165, 36, .5); color: #ffd27a; }
.panel.locked .stake-box { opacity: .5; pointer-events: none; }
.bet-btn { border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 94px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18);
  transition: transform var(--ls-t-tap) var(--ls-ease); }
.bet-btn:active { transform: scale(.97); }
.bb-top { font-size: 20px; font-weight: 800; font-stretch: 115%; letter-spacing: .04em; text-transform: uppercase; }
.bb-amt { font-size: 16px; font-weight: 700; }
.btn-green { background: linear-gradient(180deg, #4ade80 0%, #22c55e 45%, #15803d 100%); color: #04210f; }
.btn-red { background: linear-gradient(180deg, #f87171 0%, #ef4444 45%, #b91c1c 100%); color: #fff; }
.btn-orange { background: linear-gradient(180deg, #ffd27a 0%, #f5a524 45%, #c47a08 100%); color: #2a1700;
  box-shadow: 0 0 0 1px rgba(255, 210, 122, .6), 0 0 28px rgba(245, 165, 36, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-blue { background: var(--blue); color: #04112a; }
.bet-btn:disabled { opacity: .6; cursor: wait; }
.bb-note:empty { display: none; }
.bb-note { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.auto-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.auto-row .right { margin-left: auto; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); }
.auto-co-x { width: 76px; height: 36px; padding: 0 10px; border-radius: 18px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); text-align: center; }
.xs { margin-left: -6px; color: var(--muted); }
.auto-bet-row { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12.5px; }
.auto-bet-row input, .auto-bet-row select { width: 76px; height: 36px; padding: 0 8px; border-radius: 10px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); }
.auto-bet-row select option { background: #121826; }
.ab-status { color: var(--orange); }

/* toast */
.toast { position: fixed; top: calc(var(--ls-safe-t) + 60px); left: 50%; transform: translateX(-50%); z-index: 30; max-width: calc(100vw - 24px);
  background: rgba(21, 128, 61, .92); border: 1px solid var(--green); color: #eafff1; padding: 10px 16px; border-radius: 26px;
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.err { background: rgba(74, 20, 20, .95); border-color: var(--red); }

/* modal / sheet */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 40; }
.sheet { position: relative; width: min(560px, 94vw); max-height: 86vh; overflow: auto; background: #111723; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.sheet h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; font-stretch: 115%; }
.sheet h3 { margin: 16px 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sheet p, .sheet li { color: #c5ccdb; }
.close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; text-align: right; }
.menu-list button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 4px; border-bottom: 1px solid var(--line); }
.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 700; }
.seed-input { width: 100%; padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); }
.ok { color: var(--green); } .bad { color: var(--red); }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.t th { color: var(--muted); font-weight: 500; text-align: right; padding: 6px; border-bottom: 1px solid var(--line); }
table.t td { text-align: right; padding: 6px; border-bottom: 1px solid var(--line); }
table.t th:first-child, table.t td:first-child { text-align: left; }

/* offline / loading */
.offline { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 50; }
.offline-box { background: #111723; border: 1px solid var(--line); border-radius: 16px; padding: 24px 30px; display: grid; gap: 8px; justify-items: center; }
.offline-box span { color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: grid; place-content: center; gap: 16px; text-align: center; padding: 16px; }
.loading-logo { font-size: 30px; font-weight: 800; font-stretch: 125%; letter-spacing: .16em; display: flex; gap: 12px; align-items: center; justify-content: center; }
.loading-bar { width: min(260px, 70vw); height: 6px; background: rgba(255, 255, 255, .08); border-radius: 4px; overflow: hidden; margin: 0 auto; }
.loading-bar i { display: block; width: 40%; height: 100%; background: var(--orange); animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.loading-text { color: var(--muted); }
.login { display: grid; gap: 10px; width: min(280px, 90vw); margin: 0 auto; text-align: left; }
.login input { min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.login small { color: var(--muted); }
.login .btn { min-height: 48px; }

/* ---------- square (unfolded, ~900x1000): stage left ~62 %, live panel docked right ---------- */
html[data-shape="square"] { --pad: 14px; --gap: 12px; }
html[data-shape="square"] .layout { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); }
html[data-shape="square"] .panel-row { grid-template-columns: 140px minmax(0, 1fr); }
html[data-shape="square"] .bb-top { font-size: 18px; }
html[data-shape="square"] .bb-amt { font-size: 14px; white-space: nowrap; }
html[data-shape="square"] .bb-note { font-size: 10px; }
html[data-shape="square"] .maxwin-badge { display: none; }
/* book posture: split the columns on the hinge so nothing sits under it */
html[data-shape="square"][data-fold="book"] .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--ls-hinge) + 24px); }

/* ---------- phone, cover, landscape: shared mobile rules ---------- */
html[data-shape="phone"], html[data-shape="cover"], html[data-shape="landscape"] { --pad: 12px; --gap: 8px; }
html[data-shape="phone"] .top, html[data-shape="cover"] .top, html[data-shape="landscape"] .top { height: calc(var(--ls-safe-t) + 46px); padding-top: var(--ls-safe-t); }
html[data-shape="phone"] .hide-sm, html[data-shape="cover"] .hide-sm, html[data-shape="landscape"] .hide-sm,
html[data-shape="phone"] .maxwin-badge, html[data-shape="cover"] .maxwin-badge, html[data-shape="landscape"] .maxwin-badge,
html[data-shape="phone"] .pf-word, html[data-shape="cover"] .pf-word, html[data-shape="landscape"] .pf-word { display: none; }
html[data-shape="phone"] .brand, html[data-shape="cover"] .brand, html[data-shape="landscape"] .brand { font-size: 17px; }
html[data-shape="phone"] .live-btn, html[data-shape="cover"] .live-btn, html[data-shape="landscape"] .live-btn { display: inline-flex; }
html[data-shape="phone"] .pf-badge, html[data-shape="cover"] .pf-badge, html[data-shape="landscape"] .pf-badge { margin-left: auto; margin-right: 0; }
/* live bets = bottom sheet; the same element is the docked panel on square/desktop */
html[data-shape="phone"] .side, html[data-shape="cover"] .side, html[data-shape="landscape"] .side {
  position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: min(72dvh, 560px); border-radius: 20px 20px 0 0; background: #111723;
  padding-bottom: var(--ls-safe-b); transform: translateY(105%); transition: transform var(--ls-t-ui) var(--ls-ease); visibility: hidden; }
html[data-shape="landscape"] .side { left: auto; width: min(420px, 60vw); height: calc(var(--ls-vh) - 16px); border-radius: 20px 0 0 0; }
body.side-open .side { transform: none !important; visibility: visible !important; }
html[data-shape="phone"] body.side-open .scrim, html[data-shape="cover"] body.side-open .scrim, html[data-shape="landscape"] body.side-open .scrim {
  display: block; position: fixed; inset: 0; z-index: 34; background: rgba(0, 0, 0, .5); }
html[data-shape="phone"] .side-close, html[data-shape="cover"] .side-close, html[data-shape="landscape"] .side-close {
  display: grid; place-items: center; flex: none; height: 28px; width: 100%; }
.side-close i { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
html[data-shape="phone"] .modal, html[data-shape="cover"] .modal { place-items: end center; }
html[data-shape="phone"] .sheet, html[data-shape="cover"] .sheet { width: 100%; border-radius: 18px 18px 0 0; max-height: 88dvh; padding-bottom: calc(22px + var(--ls-safe-b)); }

/* ---------- phone portrait (390x844; fits 375x667): stage shrinks, thumb-zone controls never do ---------- */
html[data-shape="phone"] .layout, html[data-shape="cover"] .layout { display: flex; flex-direction: column; overflow-y: auto; }
html[data-shape="phone"] .stage, html[data-shape="cover"] .stage { flex: 1; display: flex; flex-direction: column; gap: 8px; }
html[data-shape="phone"] .play, html[data-shape="cover"] .play { flex: 1 1 0; min-height: 120px; max-height: 420px; }
html[data-shape="phone"] .panels, html[data-shape="cover"] .panels { flex: none; grid-template-columns: 1fr; gap: 8px; }
html[data-shape="phone"] .panel-row, html[data-shape="cover"] .panel-row { grid-template-columns: minmax(150px, 158fr) minmax(0, 180fr); }
html[data-shape="phone"] .bet-btn { min-height: 94px; }
/* short phones (iPhone SE, or any phone inside the lobby frame): drop the chip shortcuts (+/- stay) and a shorter
   Bet button, so the stage keeps ~180 px and nothing scrolls */
@media (max-height: 700px) {
  html[data-shape="phone"] .panel { padding: 8px 10px 10px; gap: 6px; }
  html[data-shape="phone"] .panel .chips button:not(.lim) { display: none; }
  html[data-shape="phone"] .bet-btn { min-height: 64px; }
}
/* iPhone SE Safari with its toolbars (~548 px): the stage may go a little smaller still */
@media (max-height: 600px) { html[data-shape="phone"] .play { min-height: 96px; } }

/* ---------- fold cover (360x880): compact 44px HUD row, thin history, chip tray scrolls ---------- */
html[data-shape="cover"] .top { height: calc(var(--ls-safe-t) + 44px); }
html[data-shape="cover"] .balance { height: 40px; padding: 0 10px; }
html[data-shape="cover"] .balance b { font-size: 16px; }
/* 360-wide phones: a 4+ digit balance pushed the menu button off screen (QA 2026-11-02). Compact balance like the
   cover; if it still does not fit, the wordmark gives way, never the menu. */
@media (max-width: 380px) {
  html[data-shape="phone"] .balance { padding: 0 10px; }
  html[data-shape="phone"] .balance b { font-size: 16px; }
  html[data-shape="phone"] .brand { gap: 8px; letter-spacing: .04em; }
}
.brand { min-width: 0; }
.brand b { overflow: hidden; text-overflow: ellipsis; }
.top-right { flex: none; }
html[data-shape="cover"] .hchip { height: 24px; font-size: 11.5px; padding: 0 9px; }
html[data-shape="cover"] .hist-btn { height: 28px; }
html[data-shape="cover"] .play { max-height: 460px; }
html[data-shape="cover"] .chips button { flex: 0 0 auto; }
html[data-shape="cover"] .bet-btn { min-height: 92px; }

/* ---------- phone landscape (844x390): stage centre, panel 1 left rail, panel 2 right rail ---------- */
html[data-shape="landscape"] .top { height: calc(var(--ls-safe-t) + 40px); }
html[data-shape="landscape"] .layout { grid-template-columns: minmax(180px, 24%) minmax(0, 1fr) minmax(180px, 24%); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: none; padding-bottom: var(--ls-safe-b); }
html[data-shape="landscape"] .stage, html[data-shape="landscape"] .panels { display: contents; }
html[data-shape="landscape"] .hist-row { grid-column: 2; grid-row: 1; }
html[data-shape="landscape"] .play { grid-column: 2; grid-row: 2; min-height: 0; }
html[data-shape="landscape"] .panel { grid-row: 1 / -1; overflow-y: auto; padding: 8px 10px 10px; gap: 6px; }
html[data-shape="landscape"] .panel:nth-child(1) { grid-column: 1; }
html[data-shape="landscape"] .panel:nth-child(2) { grid-column: 3; }
html[data-shape="landscape"] .panel .mode { width: 100%; }
html[data-shape="landscape"] .panel-row { flex: 1; display: flex; flex-direction: column; gap: 6px; }
html[data-shape="landscape"] .bet-btn { flex: 1; min-height: 56px; }
html[data-shape="landscape"] .chips button { flex: 0 0 auto; }
html[data-shape="landscape"] .auto-row { gap: 0 8px; font-size: 12.5px; }
html[data-shape="landscape"] .auto-row .right { margin-left: 0; }
html[data-shape="landscape"] .toast { top: calc(var(--ls-safe-t) + 44px); }

/* low effects: no glow on the stage text */
html[data-fx="low"] .mult-x { text-shadow: 0 4px 12px rgba(0, 0, 0, .6); }
