/* Liquid Glass, as in iOS 26: content on a soft wallpaper, controls of frosted glass with a
   bright rim floating above it, capsule shapes, a floating tab bar. */

:root {
  --wallpaper:
    radial-gradient(65% 45% at 5% 0%, #bfe3ff 0, transparent 70%),
    radial-gradient(60% 45% at 100% 30%, #c8d4ff 0, transparent 70%),
    radial-gradient(75% 50% at 30% 100%, #bdeee6 0, transparent 70%),
    #eef4fb;
  --text: #1c1c1e;
  --hint: rgba(60, 60, 67, 0.62);
  --accent: #2aabee;
  --on-accent: #ffffff;
  --accent-ink: #168acd;
  --danger: #ff3b30;
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --rim: rgba(255, 255, 255, 0.9);
  --rim-low: rgba(255, 255, 255, 0.35);
  --line: rgba(60, 60, 67, 0.14);
  --press: rgba(0, 0, 0, 0.05);
  --well: rgba(118, 118, 128, 0.12);
  --shadow: 0 10px 30px -12px rgba(30, 40, 80, 0.25);
  --chrome: #f2f2f7;
  --radius: 26px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
}
[data-scheme="dark"] {
  --wallpaper:
    radial-gradient(60% 40% at 10% 5%, #1a2b47 0, transparent 70%),
    radial-gradient(55% 40% at 95% 35%, #123a55 0, transparent 70%),
    radial-gradient(70% 45% at 40% 100%, #153d3a 0, transparent 70%),
    #070b12;
  --text: #f5f5f7;
  --hint: rgba(235, 235, 245, 0.6);
  --accent: #4fc3f7;
  --accent-ink: #7fd4fa;
  --danger: #ff453a;
  --glass: rgba(44, 44, 52, 0.48);
  --glass-strong: rgba(52, 52, 60, 0.7);
  --rim: rgba(255, 255, 255, 0.22);
  --rim-low: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --press: rgba(255, 255, 255, 0.08);
  --well: rgba(118, 118, 128, 0.24);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  --chrome: #070b12;
}
/* No blur on this device: frosted becomes milky. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, 0.86); --glass-strong: rgba(255, 255, 255, 0.94); }
  [data-scheme="dark"] { --glass: rgba(36, 36, 42, 0.9); --glass-strong: rgba(44, 44, 52, 0.95); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--chrome);
  font: 400 16px/1.35 var(--font); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
/* The wallpaper stays put while the glass moves over it. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--wallpaper); }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; }

/* One recipe for every glass surface: blur, a bright rim on top, a soft shadow. */
.card, .list, .segmented, .search, .tabbar, .icon-btn, .btn--secondary, .chip, .empty__icon {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 -1px 0 var(--rim-low), inset 0 0 0 1px var(--rim-low), var(--shadow);
}

.app { min-height: var(--tg-viewport-stable-height, 100vh); display: flex; flex-direction: column; }
.page { flex: 1; display: flex; flex-direction: column; gap: 14px;
  padding: 4px 16px calc(104px + var(--safe-bottom)); }
.app:not(:has(.tabbar)) .page { padding-bottom: calc(28px + var(--safe-bottom)); }

/* Header: a large title; content scrolling under it fades into a blur. */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 12px) 16px 12px; isolation: isolate; }
.topbar::before { content: ""; position: absolute; inset: 0 0 -18px; z-index: -1;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.topbar__text { flex: 1; min-width: 0; }
.topbar__title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.topbar__sub { font-size: 15px; color: var(--hint); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  flex: none; transition: transform .35s var(--spring); }
.icon-btn:active { transform: scale(.88); }
.icon-btn--filled { width: 34px; height: 34px; background: var(--accent); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 10px -4px var(--accent); }
.icon-btn--filled .i { width: 18px; height: 18px; stroke-width: 2.4; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 600; color: #fff; background: linear-gradient(160deg, #8e8e93, #636366);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }

/* Cards */
.card { border-radius: var(--radius); padding: 18px; }
.card--accent { color: var(--on-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .15),
    0 16px 32px -16px var(--accent); }
.hero__label { font-size: 15px; opacity: .85; }
.hero__value { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 14px; }
.hero__value small { font-size: 24px; opacity: .75; }
.hero__hint { font-size: 14px; opacity: .85; margin-top: 10px; }
.progress { height: 8px; border-radius: 4px; background: var(--well); overflow: hidden; }
.card--accent .progress { background: rgba(255, 255, 255, .28); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: currentColor; }

.section-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; padding: 10px 4px 0;
  margin-bottom: -4px; }

/* Lists: one glass sheet, rows inside it */
.list { list-style: none; margin: 0; padding: 6px; border-radius: var(--radius); }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 20px;
  min-height: 60px; transition: background .2s; }
.row:active { background: var(--press); }
.row__icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--well); color: var(--accent-ink); }
.row__body { flex: 1; min-width: 0; }
.row__title { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.row__sub { font-size: 14px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__end { display: flex; align-items: center; gap: 10px; color: var(--hint); }
.price { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chev { width: 18px; height: 18px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); }

/* Segmented control: a glass track with a lens over the chosen item */
.segmented { display: flex; padding: 4px; border-radius: 999px; }
.segmented > * { flex: 1; height: 38px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--hint); transition: background .3s, color .3s, box-shadow .3s; }
.segmented > .is-active { color: var(--text); background: var(--glass-strong);
  box-shadow: inset 0 1px 0 var(--rim), 0 4px 12px -4px rgba(0, 0, 0, .18); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; white-space: nowrap; font-size: 14px;
  font-weight: 500; transition: transform .35s var(--spring), background .2s; }
.chip:active { transform: scale(.94); }
.chip.is-active { background: var(--accent); color: var(--on-accent); }
.card .chip { box-shadow: inset 0 0 0 1px var(--line); background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.card .chip.is-active { background: var(--accent); box-shadow: none; }

/* Fields */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--hint); padding-left: 4px; }
.input { width: 100%; min-height: 46px; padding: 11px 16px; border: 0; border-radius: 16px;
  background: var(--well); font-size: 16px; outline: none; resize: none; transition: box-shadow .2s; }
.input::placeholder { color: var(--hint); }
.input:focus { box-shadow: 0 0 0 2px var(--accent); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; color: var(--hint); }
.search .i { width: 19px; height: 19px; }
.search .input { background: none; padding: 0; min-height: 46px; color: var(--text); box-shadow: none; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px;
  padding: 0 4px; font-weight: 500; }
.switch { appearance: none; -webkit-appearance: none; margin: 0; flex: none; position: relative;
  width: 62px; height: 28px; border-radius: 14px; background: var(--well); transition: background .3s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 38px; height: 24px;
  border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  transition: transform .4s var(--spring); }
.switch:checked { background: #34c759; }
.switch:checked::after { transform: translateX(20px); }

/* Buttons: capsules that squeeze when pressed */
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions__row { display: flex; gap: 10px; }
.actions__row > .btn { flex: 1; }
.btn { height: 50px; padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform .35s var(--spring), opacity .2s; }
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .4; }
.btn--primary { color: var(--on-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 60%), var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 22px -12px var(--accent); }
.btn--secondary { color: var(--accent-ink); }
.btn--ghost { color: var(--accent-ink); }
.btn--danger { color: var(--danger); }
.btn--cash { color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #3ddc73, #0f9d43);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -10px rgba(15, 157, 67, .9);
  animation: cash-pulse 1.6s ease-in-out infinite; }
@keyframes cash-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
.btn--cash:active { animation: none; }
.btn--block { width: 100%; }

/* Empty state */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 32px 24px; }
.empty__icon { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center;
  color: var(--accent-ink); margin-bottom: 6px; }
.empty__icon .i { width: 34px; height: 34px; stroke-width: 1.6; }
.empty__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.empty__text { color: var(--hint); font-size: 15px; max-width: 280px; margin-bottom: 8px; }

/* Bottom navigation: a floating glass capsule */
.tabbar { position: fixed; z-index: 5; left: 16px; right: 16px; bottom: calc(10px + var(--safe-bottom));
  display: flex; padding: 5px; border-radius: 999px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  height: 54px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--text);
  transition: background .3s, color .3s, transform .35s var(--spring); }
.tab:active { transform: scale(.92); }
.tab.is-active { color: var(--accent-ink); background: var(--press); }
.tab .i { width: 25px; height: 25px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* app */
[hidden] { display: none !important; }
.screen { display: flex; flex-direction: column; gap: 14px; animation: screen-in .32s var(--spring); }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } }

.hero__value { overflow-wrap: anywhere; }
.balance-note { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--hint); padding: 0 4px; }
.balance-note b { color: var(--text); font-weight: 600; }

.list button.row { width: 100%; text-align: left; font: inherit; color: inherit; }
.list > li { list-style: none; }
.row.is-me { background: var(--press); }

.live-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-state { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--hint); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: live 1.8s infinite; }
@keyframes live { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .45; } }
.live-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 6px; }
.live-mult { font-size: 42px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.live-side { text-align: right; font-size: 13px; color: var(--hint); line-height: 1.35; }
.live-side b { display: block; color: var(--text); font-size: 15px; }

/* Rocket: a live chart, a growing curve, a glowing tip and an explosion */
.rocket-hero { position: relative; height: 292px; border-radius: var(--radius); overflow: hidden;
  isolation: isolate; color: var(--accent-ink); transition: color .4s;
  background:
    radial-gradient(95% 75% at 88% -12%, rgba(42, 171, 238, .42), transparent 68%),
    radial-gradient(70% 60% at 6% 104%, rgba(120, 200, 255, .34), transparent 72%),
    var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--rim-low), var(--shadow); }
[data-scheme="dark"] .rocket-hero {
  background:
    radial-gradient(95% 75% at 88% -12%, rgba(42, 171, 238, .28), transparent 68%),
    radial-gradient(70% 60% at 6% 104%, rgba(40, 110, 170, .32), transparent 72%),
    var(--glass-strong); }
.rocket-hero.is-crashed { color: var(--danger); animation: rocket-shake .45s ease-out; }
@keyframes rocket-shake {
  0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.rocket-hero__head { position: relative; z-index: 3; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; padding: 14px 16px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 12px;
  border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--hint); background: var(--well);
  transition: color .3s, background .3s; }
.pill--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--live { color: #fff; background: linear-gradient(160deg, #4fc3f7, #2a9fd8); }
.pill--live .pill__dot { animation: live 1.3s infinite; }
.pill--loss { color: #fff; background: linear-gradient(160deg, #ff6b5e, #e8342a); }

.rocket-readout { position: relative; z-index: 3; padding: 6px 18px 0; }
.rocket-mult { font-size: clamp(44px, 14vw, 60px); font-weight: 700; letter-spacing: -.04em;
  line-height: 1; font-variant-numeric: tabular-nums; }
.rocket-note { margin-top: 5px; font-size: 13px; color: var(--hint); }

.rocket-plot { position: absolute; left: 0; right: 0; top: 128px; bottom: 0; }
.rocket-chart { display: block; width: 100%; height: 100%; }
.rocket-line { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rocket-area { stroke: none; }
.rocket-grid { color: var(--hint); }
.rocket-grid line { stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 6; opacity: .26; }
.rocket-grid text { fill: currentColor; opacity: .68; font-size: 9px; font-weight: 700; }

.rocket-dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 5px rgba(42, 171, 238, .2), 0 0 20px 2px rgba(42, 171, 238, .7); }
.rocket-hero.is-crashed .rocket-dot { box-shadow: 0 0 0 5px rgba(255, 59, 48, .18), 0 0 20px 2px rgba(255, 59, 48, .7); }
.rocket-dot span { position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.rocket-dot.is-idle { animation: dot-idle 1.8s ease-in-out infinite; }
@keyframes dot-idle {
  0%, 100% { transform: scale(1); opacity: .82; }
  50% { transform: scale(1.22); opacity: 1; }
}
.rocket-boom { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.rocket-boom i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor;
  animation: rocket-boom 1.5s ease-out infinite; }
.rocket-boom i:nth-child(2) { animation-delay: .45s; }
@keyframes rocket-boom { from { transform: scale(1); opacity: .85; } to { transform: scale(10); opacity: 0; } }

.rocket-wait { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; }
.rocket-wait__bar { height: 6px; border-radius: 3px; background: rgba(120, 120, 128, .22); overflow: hidden; }
.rocket-wait__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: currentColor;
  transition: width .3s linear; }
.rocket-wait__text { margin-top: 7px; font-size: 11px; font-weight: 500; text-align: center; color: var(--hint); }

.rocket-board { display: flex; flex-direction: column; gap: 12px; }
.rocket-meta { display: flex; }
.rocket-meta div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.rocket-meta div + div { border-left: 1px solid var(--line); }
.rocket-meta span { font-size: 18px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rocket-meta small { font-size: 11px; color: var(--hint); }
.rocket-my { padding: 11px 14px; border-radius: 16px; background: var(--well); text-align: center;
  font-size: 14px; font-weight: 600; color: var(--hint); transition: background .25s, color .25s; }
.rocket-my.is-live { color: var(--accent-ink); background: rgba(42, 171, 238, .14); }
.rocket-my.is-win { color: #fff; background: linear-gradient(160deg, #3ddc73, #0f9d43); }
.rocket-my.is-loss { color: var(--danger); background: rgba(255, 59, 48, .12); }
.rocket-preview { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rocket-preview span { font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: var(--well); color: var(--hint); }
.rocket-preview span b { color: var(--text); font-weight: 600; }
.rocket-preview span.is-cashed { color: #0f9d43; background: rgba(52, 199, 89, .14); }

.rocket-history { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 4px; scrollbar-width: none; }
.rocket-history::-webkit-scrollbar { display: none; }
.rocket-history > span { flex: none; padding: 9px 14px; border-radius: 14px; font-size: 13px;
  font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hint); background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--rim-low); }
.rocket-history > span.is-mid { color: var(--accent-ink); background: var(--well); box-shadow: none; }
.rocket-history > span.is-hot { color: #fff; background: linear-gradient(160deg, #ffb340, #ff5e3a); box-shadow: none; }
.rocket-history > span.is-empty { font-weight: 500; }

.game-head { display: flex; align-items: center; gap: 12px; }
.game-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none;
  background: var(--well); color: var(--accent-ink); }
.game-title { font-size: 17px; font-weight: 700; }
.game-sub { font-size: 14px; color: var(--hint); }
.game-panel { display: flex; flex-direction: column; gap: 14px; }
.game-result { min-height: 22px; font-size: 14px; color: var(--hint); text-align: center; }
.game-result.is-win { color: var(--accent-ink); font-weight: 600; }
.game-result.is-loss { color: var(--danger); }

.dice-row { display: flex; gap: 16px; justify-content: center; padding: 6px 0; }
.die { width: 70px; height: 70px; border-radius: 18px; background: var(--well);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 12px; gap: 2px; }
.die.rolling { animation: shake .28s infinite; }
@keyframes shake { 0%, 100% { transform: rotate(-3deg) scale(.98); } 50% { transform: rotate(3deg) scale(1.02); } }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--text); opacity: 0;
  align-self: center; justify-self: center; }
.pip.on { opacity: 1; }

.reels { display: flex; gap: 10px; justify-content: center; padding: 4px 0; }
.reel { flex: 1; max-width: 96px; height: 104px; border-radius: 18px; background: var(--well);
  display: grid; place-items: center; font-size: 44px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; }
.reel.spinning { animation: jitter .14s infinite; }
@keyframes jitter { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
.reel.win { color: var(--accent-ink); }

.paytable { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--hint); justify-content: center; }
.paytable b { color: var(--text); }

.wheel-wrap { position: relative; width: 232px; height: 232px; margin: 8px auto 2px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; position: relative;
  background: conic-gradient(
    var(--accent) 0deg 45deg,
    var(--accent-ink) 45deg 90deg,
    var(--accent) 90deg 135deg,
    var(--accent-ink) 135deg 180deg,
    var(--accent) 180deg 225deg,
    var(--accent-ink) 225deg 270deg,
    var(--accent) 270deg 315deg,
    var(--accent-ink) 315deg 360deg);
  box-shadow: inset 0 0 0 2px var(--glass-strong), inset 0 0 0 3px var(--rim-low);
  transition: transform 4s cubic-bezier(.15, .85, .25, 1); }
.wheel-label { position: absolute; left: 50%; top: 50%; font-size: 13px; font-weight: 700;
  color: var(--on-accent); transform: translate(-50%, -50%) rotate(var(--a)) translateY(-84px); }
.wheel-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; background: var(--chrome); color: var(--text);
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18), inset 0 0 0 1px var(--line); }
.wheel-pointer { position: absolute; z-index: 2; top: -9px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 18px solid var(--text); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--well); border-radius: 18px; padding: 12px 14px; }
.stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat span { font-size: 12px; color: var(--hint); }

.note { font-size: 13px; line-height: 1.45; color: var(--hint); padding: 0 4px; }
.note b { color: var(--text); }
.is-win { color: var(--accent-ink); }
.is-loss { color: var(--danger); }
.is-danger { color: var(--danger); }

.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(86px + var(--safe-bottom));
  transform: translate(-50%, 14px); max-width: calc(100% - 40px); padding: 12px 18px;
  border-radius: 999px; background: var(--text); color: var(--chrome); font-size: 14px;
  font-weight: 600; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .topbar__title { font-size: 28px; }
  .tab { font-size: 10px; }
  .live-mult { font-size: 36px; }
  .rocket-hero { height: 268px; }
  .rocket-plot { top: 118px; }
  .reel { height: 92px; font-size: 38px; }
  .wheel-wrap { width: 206px; height: 206px; }
  .wheel-label { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-74px); }
}
