:root {
  --bg: #0b0f14;
  --panel: #121821;
  --panel-2: #18202b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2f6;
  --muted: #8b97a7;
  --accent: #9dff7a;
  --accent-ink: #0d2a10;
  --accent-hi: #b1ff95; --accent-lo: #7ecc62; --accent-edge: #477337;
  --accent-glow: rgba(157, 255, 122, 0.25); --accent-ring: rgba(157, 255, 122, 0.22); --accent-tint: #283b34;
  --cash: #ffc94a;
  --danger: #ff5d6c;
  --radius: 16px;
  color-scheme: dark;
}

body[data-path="water"] {
  --accent: #7fe3ff; --accent-ink: #062a3a;
  --accent-hi: #99e9ff; --accent-lo: #66b6cc; --accent-edge: #396673;
  --accent-glow: rgba(127, 227, 255, 0.25); --accent-ring: rgba(127, 227, 255, 0.22); --accent-tint: #243744;
}
body[data-path="fire"] {
  --accent: #ffb347; --accent-ink: #3a1a00;
  --accent-hi: #ffc26c; --accent-lo: #cc8f39; --accent-edge: #735120;
  --accent-glow: rgba(255, 179, 71, 0.25); --accent-ring: rgba(255, 179, 71, 0.22); --accent-tint: #34322e;
}
body[data-path="storm"] {
  --accent: #b9a8ff; --accent-ink: #1c1240;
  --accent-hi: #c7b9ff; --accent-lo: #9486cc; --accent-edge: #534c73;
  --accent-glow: rgba(185, 168, 255, 0.25); --accent-ring: rgba(185, 168, 255, 0.22); --accent-tint: #2b3044;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app {
  max-width: 1180px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: grid;
  gap: 12px;
}

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand h1 { margin: 0; font-size: 20px; letter-spacing: -0.02em; line-height: 1; font-weight: 800; }
.brand p { margin: 3px 0 0; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.balance {
  display: grid; text-align: right; padding: 6px 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.balance span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.balance strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { background: var(--panel-2); }
#soundBtn .off { display: none; }
#soundBtn[data-muted="true"] .on { display: none; }
#soundBtn[data-muted="true"] .off { display: inline; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* stage */
.stage {
  position: relative;
  height: clamp(300px, 52vh, 560px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #071016;
  border: 1px solid var(--line);
  touch-action: manipulation;
}
.stage canvas { display: block; }
.hud {
  position: absolute; inset: 12px 12px auto 12px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  pointer-events: none;
}
.hud-main {
  display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px;
  background: rgba(6, 9, 14, 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hud-label { font-size: 11px; color: #c3cdd8; text-transform: uppercase; letter-spacing: 0.08em; }
.hud-mult { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.hud-win { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; min-height: 1em; }
.hud-next {
  padding: 8px 12px; border-radius: 12px; font-size: 12px; text-align: right;
  background: rgba(6, 9, 14, 0.8); color: #c3cdd8;
}
.hud-next:empty { display: none; }
.hud-next b { color: var(--text); }

.result {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  /* max-content: at left 50% the box would otherwise shrink to half the stage and wrap longer languages */
  width: max-content; max-width: calc(100% - 24px);
  display: grid; gap: 4px; text-align: center; padding: 16px 26px; border-radius: 18px;
  background: rgba(6, 9, 14, 0.82); border: 1px solid var(--line);
  animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}
.result[hidden] { display: none; }
.result strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.result span { font-size: 14px; color: var(--muted); }
.result.win strong { color: var(--cash); }
.result.lose strong { color: var(--danger); }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0.7); opacity: 0; } }

.loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #071016; color: var(--muted); font-size: 14px;
}
.loading[hidden] { display: none; }

/* progress track */
.track {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: clamp(2px, 0.6vw, 4px);
  padding: 6px 10px; border-radius: 999px;
  width: min(calc(100% - 24px), calc(var(--hops, 20) * 11px + 20px));
  background: rgba(6, 9, 14, 0.55); pointer-events: none; max-width: calc(100% - 24px);
}
.track i {
  flex: 1 1 0; min-width: 3px; max-width: 7px; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.18);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.track i.done { background: var(--accent); }
.track i.now { background: var(--accent); transform: scale(1.6); box-shadow: 0 0 10px var(--accent); }
.track i.next { background: rgba(255, 255, 255, 0.55); }
.track i.max { background: var(--cash); opacity: 0.7; }
.track i.max.done, .track i.max.now { opacity: 1; }

/* big win */
.bigwin {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 200, 70, 0.28), rgba(4, 6, 12, 0.72) 60%);
  text-align: center; cursor: pointer; z-index: 3;
  animation: fadein 0.25s ease-out;
}
.bigwin[hidden] { display: none; }
.bigwin-tier {
  font-size: clamp(30px, 7vw, 56px); font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6c2, #ffc94a 45%, #e08a12);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #7a4300) drop-shadow(0 0 24px rgba(255, 190, 60, 0.6));
  animation: tierpop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.bigwin.mega .bigwin-tier { background-image: linear-gradient(180deg, #ffffff, #9ef7ff 45%, #3aa6ff); filter: drop-shadow(0 4px 0 #0a3a7a) drop-shadow(0 0 26px rgba(90, 200, 255, 0.7)); }
.bigwin.epic .bigwin-tier { background-image: linear-gradient(180deg, #ffffff, #ffb3f2 40%, #b04dff); filter: drop-shadow(0 4px 0 #3a0a6a) drop-shadow(0 0 30px rgba(220, 120, 255, 0.8)); }
.bigwin-amount { font-size: clamp(30px, 6vw, 48px); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4); }
.bigwin-mult { font-size: 16px; font-weight: 800; color: var(--cash); }
.bigwin-hint { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 6px; }
@keyframes tierpop { from { transform: scale(0.3) rotate(-6deg); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* intro */
.intro {
  position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center;
  gap: 10px; text-align: center; overflow-y: auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 35%, rgba(79, 191, 69, 0.25), rgba(4, 8, 10, 0.9) 70%);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.intro[hidden] { display: none; }
.intro-mark { width: 84px; height: 84px; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.intro h2 { margin: 0; font-size: clamp(34px, 7vw, 54px); font-weight: 900; letter-spacing: -0.03em; }
.intro p { margin: 0; color: #c9d4df; font-size: 15px; }
.intro ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.intro li { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #dfe7ef; }
.intro .btn { min-width: 220px; padding: 0 28px; animation: pulse 1.8s ease-in-out infinite; }
.intro-foot { font-size: 11px; color: var(--muted); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px var(--accent-ring); } }

/* session / responsible gambling strip */
.session-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  font-size: 12px; color: #b7c2cf; padding: 0 4px;
}
.session-strip a { color: inherit; }
#session { font-variant-numeric: tabular-nums; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }

/* history */
.history { display: flex; align-items: center; gap: 10px; min-height: 30px; overflow: hidden; }
.history-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; flex: none; }
.history ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.history ol::-webkit-scrollbar { display: none; }
.history li {
  flex: none; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; background: var(--panel); border: 1px solid var(--line);
}
.history li.win { color: var(--cash); }
.history li.lose { color: var(--danger); }

/* controls */
.controls {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
.control {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.control > label, .control .label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); min-height: 1em; }
.hint.error { color: var(--danger); }
.link-btn { margin-top: 4px; padding: 4px 0; background: none; border: 0; color: var(--text); font-size: 12px; text-decoration: underline; cursor: pointer; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.path-btn {
  display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s;
  grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center;
}
.path-btn .icon { grid-row: span 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.path-btn .icon svg { width: 20px; height: 20px; fill: currentColor; }
.path-btn[data-path="forest"] .icon { color: #9dff7a; }
.path-btn[data-path="water"] .icon { color: #7fe3ff; }
.path-btn[data-path="fire"] .icon { color: #ffb347; }
.path-btn[data-path="storm"] .icon { color: #b9a8ff; }
.path-btn .name { font-weight: 800; font-size: 14px; }
.path-btn .meta { font-size: 11px; color: var(--muted); }
.path-btn .max { font-size: 12px; font-weight: 700; color: var(--cash); font-variant-numeric: tabular-nums; }
.path-btn[aria-checked="true"] { border-color: var(--accent); background: var(--accent-tint); }
.path-btn[aria-checked="true"] .meta { color: #c3cdd8; }
.path-btn:disabled { opacity: 0.55; }

.bet-row { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; }
.step { height: 44px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 800; }
.bet-field {
  display: flex; align-items: center; gap: 4px; padding: 0 12px; height: 44px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
}
.bet-field span { flex: none; color: var(--muted); }
.bet-field.symbol-after span { order: 1; } /* locales that write the sign after the amount (1,00 €) */
.bet-field.symbol-after input { text-align: right; } /* keeps the amount next to its sign */
/* signs of two or more characters (R$, US$, KWD) are set smaller so the amount fits the narrow desktop column */
.bet-field.symbol-long { padding: 0 10px; }
.bet-field.symbol-long span { font-size: 12px; font-weight: 700; }
.bet-field.symbol-long input { font-size: 16px; }
.bet-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.bet-field input { width: 100%; background: none; border: 0; outline: none; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips button {
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--line);
}
.chips button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.step:disabled, .chips button:disabled, select:disabled, .bet-field input:disabled { opacity: 0.55; }
.bet-field:has(input:disabled) { opacity: 0.55; }

select {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
}

.actions { display: grid; gap: 8px; align-content: center; }
.btn {
  height: 56px; border-radius: 14px; border: 0; font-size: 17px; font-weight: 800; letter-spacing: 0.01em;
  transition: transform 0.08s, filter 0.2s, opacity 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-lo));
  color: var(--accent-ink);
  box-shadow: 0 6px 0 var(--accent-edge), 0 10px 24px var(--accent-glow);
}
.btn-cash {
  background: linear-gradient(180deg, #ffe39a, var(--cash) 55%, #d99a12);
  color: #3a2600;
  box-shadow: 0 6px 0 #8a5a00, 0 10px 24px rgba(255, 201, 74, 0.25);
}
.btn-primary:active:not(:disabled), .btn-cash:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4); }
.btn-cash:not(:disabled) { animation: cashglow 1.6s ease-in-out infinite; }
@keyframes cashglow { 50% { box-shadow: 0 6px 0 #8a5a00, 0 0 0 6px rgba(255, 201, 74, 0.25), 0 10px 30px rgba(255, 201, 74, 0.35); } }
.btn-ghost { background: var(--panel-2); border: 1px solid var(--line); height: 44px; font-size: 14px; }
.btn:disabled { opacity: 0.4; }
.btn-small { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.btn .sub { display: block; font-size: 12px; font-weight: 700; opacity: 0.75; }

.footer { display: grid; gap: 4px; text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0 8px; }
.footer a { color: inherit; }
#session { font-variant-numeric: tabular-nums; color: #b7c2cf; }

/* dialogs */
dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0;
  border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.dialog { padding: 18px 20px 22px; display: grid; gap: 12px; }
.dialog header { display: flex; justify-content: space-between; align-items: center; }
.dialog h2 { margin: 0; font-size: 20px; }
.dialog h3 { margin: 6px 0 0; font-size: 15px; }
.rules-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: #d6dde6; }
.small { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.fair-grid { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 0; }
.fair-grid dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; }
.fair-grid dd { margin: 0; }
code, .verify-out { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.seed-row { display: flex; gap: 8px; }
.seed-row input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.verify tr.warn td { white-space: normal; color: #f3d0d4; }
.verify td:nth-child(3) { white-space: normal; } /* the result wraps, so Verify stays in view on phones */
.verify-label { color: var(--muted); }
@media (max-width: 560px) { .verify-out .verify-label { display: block; } } /* value under its label on phones */
@media (max-width: 400px) { .verify th, .verify td { padding: 8px 5px; } .verify .btn-small { padding: 0 10px; } }
.verify-out { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; white-space: pre-wrap; margin: 0; }
/* demo-only language / currency switch in the rules dialog */
.demo-settings[hidden] { display: none; }
.demo-settings { margin: 0; padding: 12px 14px 14px; border: 1px dashed var(--line); border-radius: 12px; display: grid; gap: 10px; }
.demo-settings legend { padding: 0 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-row label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.demo-settings .hint { margin: 0; }
@media (max-width: 420px) { .demo-row { grid-template-columns: 1fr; } }
.ok { color: #7dffa0; }
.bad { color: var(--danger); }

@media (min-width: 760px) {
  .controls { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .controls .paths { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .controls .actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .stage { height: clamp(360px, 58vh, 560px); }
}

@media (min-width: 1100px) {
  .controls { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .controls .paths { grid-column: auto; grid-template-columns: repeat(2, 1fr); }
  .controls .actions { grid-column: auto; grid-template-columns: 1fr; }
  .bet-row { grid-template-columns: 36px 1fr 36px; gap: 6px; } /* room for long amounts (KWD 10.000) */
}

/* Wide but short: the actions move to the fixed bar, so the grid only needs three columns. */
@media (min-width: 1100px) and (max-height: 540px) {
  .controls { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Phones, tablets and short (landscape) screens: Play / Hop / Cash out live in a bar fixed to the
   bottom of the viewport, so they are always reachable together with the game. Selectors use
   ".controls .actions" so they win over the wide-layout rules above. */
@media (max-width: 1099px), (max-height: 540px) {
  html { scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  html.refill { scroll-padding-bottom: calc(174px + env(safe-area-inset-bottom)); }
  .app { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  html.refill .app { padding-bottom: calc(166px + env(safe-area-inset-bottom)); }
  .controls .actions {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    max-width: 1148px;
    margin: 0 auto;
    z-index: 20;
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
    background: rgba(18, 24, 33, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
    padding: 10px;
  }
  .controls .actions .btn-ghost { grid-column: 1 / -1; }
}

@media (max-width: 759px) {
  .stage { height: clamp(260px, 44vh, 420px); }
}

/* Short screens: size the stage from the space really visible above the fixed bar. */
@media (max-height: 540px) {
  .stage { height: max(150px, calc(100vh - 190px)); height: max(150px, calc(100svh - 190px)); }
}

/* On short screens Refill joins the same row, so the bar never grows over the stage. */
@media (max-height: 540px) {
  html.refill .controls .actions { grid-template-columns: 1fr 1fr 1fr; }
  html.refill .controls .actions .btn-ghost { grid-column: auto; height: 56px; font-size: 13px; }
  html.refill .app { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  html.refill { scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
}

/* Very short screens: the hop track would cover the pads; the HUD and announcements still show progress. */
@media (max-height: 420px) {
  .track { display: none; }
}

@media (max-width: 420px) {
  .brand h1 { font-size: 17px; white-space: nowrap; }
  .brand-mark { width: 34px; height: 34px; }
  .brand p { display: none; }
  .balance { padding: 4px 10px; }
  .hud-mult { font-size: 24px; }
  .hud-next { font-size: 11px; }
}

@media (max-width: 400px) {
  .brand > div {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .topbar-right { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .result, .intro-mark, .intro .btn, .btn-cash, .bigwin, .bigwin-tier { animation: none !important; }
}
