/* Full-screen Hundreder. Original charcoal, silver and warm gold palette. */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #141416;
  --raised: #1c1c1f;
  --stroke: #ffffff12;
  --text: #ededf0;
  --muted: #919199;
  --faint: #55555d;
  --gold: #d9b25c;
  --gold-light: #edcf8c;
  --display: "Unbounded", system-ui, sans-serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 38%, #ffffff04, transparent 65%), var(--bg);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  transition:
    background 0.16s,
    border-color 0.16s,
    color 0.16s,
    opacity 0.16s;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button,
input {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.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;
}
.app {
  height: 100dvh;
  width: 100%;
  padding: 0 24px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 66px;
  border-bottom: 1px solid var(--stroke);
  padding: 0 5px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 17px;
}
.logo {
  font: 800 16px var(--display);
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, #9696a0, #fff 50%, #9696a0);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-left: 17px;
  border-left: 1px solid #ffffff17;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.exact-pill {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.exact-pill strong {
  font: 600 12px var(--display);
  letter-spacing: 0;
  color: var(--gold);
}
.utility-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: var(--muted);
  padding: 0 5px;
}
.utility-button:hover {
  color: var(--text);
}
.utility-button .icon {
  height: 15px;
  width: 15px;
}
.balance-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-pill {
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--gold);
  background: #d9b25c10;
  border: 1px solid #d9b25c35;
  border-radius: 4px;
  padding: 5px 7px;
}
.balance {
  font: 600 18px var(--display);
  letter-spacing: -0.7px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.topup {
  min-height: 36px;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 700;
  border: 0;
  background: var(--gold);
  color: var(--bg);
  border-radius: 5px;
}
main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.game-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 12px;
}
.stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 16px 26px 0;
  overflow: hidden;
}
.glow-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, #fff03, transparent 70%);
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 18px;
  gap: 20px;
}
.stage-wordmark {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--faint);
}
.round-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}
.round-state > i {
  height: 4px;
  width: 4px;
  background: #92929c;
  border-radius: 50%;
}
.revealing .round-state > i {
  background: var(--gold);
  animation: status-pulse 0.8s ease infinite;
}
.numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  width: 100%;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding: 10px 4vw 0;
}
.num-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 10px;
}
.num-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 2.5px;
}
.num {
  display: block;
  position: relative;
  font-family: var(--display);
  font-size: clamp(76px, 18vh, 220px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  min-width: 1.6em;
  will-change: transform;
}
.num.player {
  color: #9a9aa4;
}
.num.casino {
  color: #f2f2f5;
}
.num.is-masked {
  color: transparent !important;
}
.num.is-masked::after {
  content: "—";
  position: absolute;
  inset: 0;
  color: #414147;
  font-family: var(--ui);
  font-weight: 400;
  letter-spacing: 0;
}
.focus-row {
  flex: 0 0 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
}
.distance-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.7px;
}
.focus {
  display: flex;
  align-items: center;
  gap: 14px;
}
.focus-label {
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--muted);
}
.focus-value {
  font-family: var(--display);
  font-size: clamp(48px, 7.5vh, 92px);
  font-weight: 600;
  letter-spacing: -1.5px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.focus-value.bump {
  animation: focus-bump 0.25s ease-out;
}
.focus[class*="leap-"] .focus-value {
  animation: result-rise 0.55s ease-out;
}
.picker-area {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 auto;
  max-width: none;
}
.picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 56px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #74747e;
}
.picker-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pick-step {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid #ffffff13;
  border-radius: 10px;
  color: #bcbcc5;
  background: #ffffff03;
  font-size: 20px;
}
.pick-step:hover:not(:disabled) {
  background: #ffffff0a;
  border-color: #ffffff2b;
}
.ruler-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 105px;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
}
.ruler {
  display: block;
  width: 100%;
  height: 105px;
  touch-action: pan-y;
  cursor: grab;
}
.indicator {
  position: absolute;
  left: 50%;
  top: 13px;
  bottom: 7px;
  width: 2px;
  border-radius: 2px;
  background: #d0d0d8;
  transform: translateX(-50%);
  pointer-events: none;
}
.indicator::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  width: 8px;
  height: 5px;
  background: #d0d0d8;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7%;
  pointer-events: none;
}
.fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.fade-right {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 33px;
  margin-bottom: 0;
}
.mini-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--muted);
}
.mult-block,
.win-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}
.mult,
.win-amount {
  font: 600 12px var(--display);
  font-variant-numeric: tabular-nums;
}
.win-banner {
  justify-content: flex-end;
}
.win-text {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.5px;
}
.win-banner.visible .win-amount {
  color: var(--gold);
}
.win-banner.win-small .win-amount {
  color: #bebec8;
}
.picker-hint {
  font-size: 9px;
  color: #686874;
  letter-spacing: 0.3px;
  margin: 0;
}
.num.impact {
  animation: number-land 0.45s ease-out;
}
.stage.flash-win::after,
.stage.flash-jackpot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid #d9b25c30;
  animation: flash-fade 0.8s ease-out forwards;
}
.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}
.confetti {
  position: absolute;
  width: 5px;
  height: 8px;
  border-radius: 2px;
}
.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.95fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  flex: 0 0 108px;
  background: #ffffff09;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 15px 22px;
}
.bet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bet-display {
  font-size: 10px;
  color: #bebec6;
  font-variant-numeric: tabular-nums;
}
.custom-row {
  height: 45px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ffffff18;
  border-radius: 8px;
  background: #09090a;
  padding: 3px;
}
.step-btn {
  width: 38px;
  align-self: stretch;
  flex-shrink: 0;
  border: 0;
  border-radius: 5px;
  background: #ffffff06;
  color: #aaaab4;
  font-size: 20px;
}
.step-btn:hover:not(:disabled) {
  background: #ffffff13;
  color: var(--text);
}
.input-currency {
  font-size: 14px;
  color: #666670;
  margin-left: 5px;
}
.custom-input {
  width: 100%;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 500 17px var(--ui);
  text-align: center;
  color: var(--text);
  padding: 3px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.custom-input::-webkit-inner-spin-button,
.custom-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quick-section > .mini-label {
  display: block;
  margin-bottom: 8px;
}
.chip-row {
  display: flex;
  gap: 7px;
}
.chip {
  flex: 1;
  min-width: 0;
  min-height: 45px;
  border: 1px solid #ffffff10;
  border-radius: 7px;
  color: #91919c;
  background: #ffffff06;
  font-size: 11px;
  font-weight: 500;
  padding: 5px;
}
.chip:hover:not(:disabled) {
  background: #ffffff09;
  border-color: #ffffff28;
  color: #dddde4;
}
.chip.active {
  color: var(--gold);
  border-color: #d9b25c50;
  background: #d9b25c0b;
}
.play-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
}
.play {
  width: 100%;
  min-height: 48px;
  letter-spacing: 1.8px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #e0bd72;
  border-radius: 9px;
  background: linear-gradient(130deg, #e1c482, #cfa44f);
  color: #19150c;
  box-shadow: 0 3px 14px #d9b25c12;
}
.play:hover:not(:disabled) {
  background: linear-gradient(130deg, #eed59b, #dfbb6b);
}
.play:active:not(:disabled) {
  transform: translateY(1px);
}
.keyboard-note {
  font-size: 8px;
  color: #7c7c85;
  margin: 0;
  min-height: 10px;
  text-align: center;
}
.sound-panel {
  padding: 0 14px;
  border-left: 1px solid var(--stroke);
  border-right: 1px solid var(--stroke);
}
.sound-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}
.sound-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: var(--muted);
  font-size: 10px;
}
.sound-toggle .icon {
  width: 15px;
  height: 15px;
}
.sound-toggle:hover {
  color: var(--gold);
}
.sound-off {
  display: none;
}
.sound-toggle[aria-pressed="false"] .sound-waves {
  display: none;
}
.sound-toggle[aria-pressed="false"] .sound-off {
  display: block;
}
#sound-volume {
  display: block;
  width: 100%;
  height: 22px;
  accent-color: #c5c5ce;
  cursor: pointer;
  margin: 3px 0 0;
}
.fair {
  flex: 0 0 auto;
  margin-top: 7px;
  border-bottom: 1px solid #ffffff0a;
}
.fair-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0 8px;
}
.fair-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: #80808a;
}
.fair-title .icon {
  height: 14px;
  width: 14px;
  color: #9a9aa4;
}
.fair-toggle-end {
  font-size: 9px;
  color: #777781;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fair-chevron {
  font-size: 17px;
  transition: transform 0.2s;
}
.fair-toggle[aria-expanded="true"] .fair-chevron {
  transform: rotate(180deg);
}
.fair-panel {
  border-top: 1px solid var(--stroke);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  background: #101012;
  border-radius: 10px;
}
.fair-note {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0;
}
.fair-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.fair-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.fair-value {
  font-size: 11px;
  color: #c5c5ce;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.fair-seed-row {
  display: flex;
  gap: 8px;
}
.fair-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #ffffff23;
  border-radius: 5px;
  background: #080809;
  color: var(--text);
  font: 12px monospace;
  padding: 10px;
}
.fair-btn {
  min-height: 44px;
  border: 1px solid #ffffff23;
  border-radius: 5px;
  background: #1b1b1f;
  color: #d2d2db;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 10px 16px;
}
.fair-btn:hover:not(:disabled) {
  border-color: #d9b25c80;
}
.fair-btn.wide {
  align-self: end;
}
.fair-result {
  grid-column: 1/-1;
  border: 1px solid #ffffff23;
  border-radius: 5px;
  padding: 14px;
  overflow-wrap: anywhere;
  font: 11px/1.8 monospace;
}
.fair-result.ok {
  color: #a6d3ae;
  border-color: #a6d3ae55;
}
.fair-result.bad {
  color: #e1a0a0;
  border-color: #e1a0a055;
}
.app.fair-open {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}
.app.fair-open .game-shell {
  min-height: calc(100dvh - 150px);
}
.app.fair-open .stage {
  min-height: 400px;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 25px;
  font-size: 8px;
  letter-spacing: 0.5px;
  color: #64646f;
  padding: 0 7px;
  gap: 15px;
}
.error-banner {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  max-width: min(90vw, 480px);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  background: #2b2225;
  border: 1px solid #966672;
  color: #ffe1e4;
  padding: 15px 21px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 12px 40px #0008;
}
.error-banner.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: 85dvh;
  border: 1px solid #ffffff25;
  border-radius: 16px;
  padding: 24px;
  background: #141416;
  color: var(--text);
  box-shadow: 0 30px 90px #0008;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(8px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: #1e1e22;
  color: #c1c1cb;
  font-size: 24px;
}
.icon-button:hover {
  background: #303035;
}
dialog h2 {
  font-family: var(--ui);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 12px 0 25px;
}
.help-steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  display: grid;
  gap: 20px;
}
.help-steps li {
  counter-increment: steps;
  position: relative;
  padding-left: 39px;
}
.help-steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font: 14px var(--ui);
  color: var(--gold);
}
.help-steps strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.help-steps span {
  display: block;
  font-size: 11px;
  color: #a6a6b0;
  line-height: 1.8;
}
.payout-reference {
  margin-top: 25px;
}
.payout-reference h3 {
  font-size: 11px;
  font-weight: 500;
  color: #ccc;
}
.dialog-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  margin: 20px 0 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 10px;
  background: #ffffff03;
  border-top: 1px solid #ffffff0b;
  border-bottom: 1px solid #ffffff0b;
}
td {
  font-size: 11px;
  padding: 12px 10px;
  border-bottom: 1px solid #ffffff08;
  color: #bfbfc9;
}
th:last-child,
td:last-child {
  text-align: right;
}
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.history-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.history-heading .icon {
  color: var(--muted);
  width: 16px;
  height: 16px;
}
.history-heading h2 > span {
  background: #ffffff09;
  border: 1px solid #ffffff12;
  color: #b7b7c3;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  margin-left: 2px;
}
.session-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.history-scroll {
  overflow-x: auto;
}
.history-table {
  min-width: 510px;
}
.history-table .positive {
  color: var(--gold);
}
.history-table .negative {
  color: #d99d9d;
}
.history-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 25px 0;
}
.empty-symbol {
  color: var(--gold);
  font-size: 23px;
}
.history-empty strong {
  font-size: 11px;
  font-weight: 500;
  color: #b2b2bc;
}
.history-empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.empty-dots {
  display: none;
}
.balance.credited {
  animation: balance-credited 0.6s ease-out;
}
@keyframes focus-bump {
  50% {
    transform: translateY(-2px);
  }
}
@keyframes result-rise {
  0% {
    transform: translateY(6px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes number-land {
  30% {
    transform: scale(1.045);
  }
}
@keyframes flash-fade {
  to {
    opacity: 0;
  }
}
@keyframes status-pulse {
  50% {
    opacity: 0.35;
  }
}
@keyframes balance-credited {
  40% {
    color: #f5dc99;
    text-shadow: 0 0 14px #d9b25c77;
  }
}
@media (min-width: 1600px) {
  .app {
    padding-left: 36px;
    padding-right: 36px;
  }
  .topbar {
    flex-basis: 78px;
  }
  .num {
    font-size: clamp(160px, 24vh, 300px);
  }
  .stage {
    padding-left: 45px;
    padding-right: 45px;
  }
  .controls {
    gap: 48px;
    flex-basis: 120px;
    padding: 20px 32px;
  }
  .focus-value {
    font-size: clamp(68px, 8vh, 110px);
  }
  .ruler-wrap,
  .ruler {
    height: 120px;
  }
  .focus-row {
    flex-basis: 120px;
  }
  .numbers {
    padding-left: 7vw;
    padding-right: 7vw;
  }
}
@media (max-width: 1100px) {
  .app {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    gap: 18px;
  }
  .brand {
    gap: 10px;
  }
  .tag {
    padding-left: 10px;
  }
  .header-tools {
    gap: 13px;
  }
  .utility-button span {
    display: none;
  }
  .exact-pill {
    font-size: 8px;
  }
  .controls {
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.95fr) minmax(0, 1fr);
    padding: 14px 16px;
  }
  .sound-panel {
    padding: 0 9px;
  }
  .sound-toggle {
    font-size: 0;
  }
  .sound-toggle .icon {
    height: 16px;
    width: 16px;
  }
  .stage {
    padding-left: 15px;
    padding-right: 15px;
  }
  .num {
    font-size: clamp(80px, 18vh, 180px);
  }
  .numbers {
    padding-left: 0;
    padding-right: 0;
  }
  .picker-hint {
    font-size: 8px;
  }
  .focus-value {
    font-size: 52px;
  }
  .num-label {
    font-size: 10px;
  }
}
@media (max-width: 820px) {
  .controls {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.95fr) minmax(0, 1fr);
    gap: 16px;
  }
  .sound-panel {
    display: none;
  }
  .header-tools {
    gap: 10px;
  }
  .exact-pill {
    display: none;
  }
  .balance {
    font-size: 15px;
  }
  .logo {
    font-size: 14px;
  }
  .tag {
    font-size: 8px;
  }
  .num {
    font-size: clamp(75px, 16vw, 150px);
  }
}
@media (max-width: 600px) {
  .app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding: 0 12px calc(9px + env(safe-area-inset-bottom));
  }
  .topbar {
    flex-basis: 62px;
    gap: 12px;
    padding: 0;
  }
  .logo {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .tag {
    border: 0;
    padding: 0;
    font-size: 8px;
  }
  .header-tools {
    gap: 7px;
    margin-left: auto;
  }
  .utility-button {
    padding: 0;
    min-width: 30px;
    justify-content: center;
  }
  .utility-button .icon {
    width: 16px;
    height: 16px;
  }
  .balance-block {
    gap: 7px;
  }
  .demo-pill {
    font-size: 7px;
    padding: 4px;
  }
  .balance {
    font-size: 13px;
    letter-spacing: -0.7px;
  }
  .game-shell {
    gap: 10px;
  }
  .stage {
    padding: 15px 2px 0;
    min-height: 390px;
    flex: 1;
  }
  .stage-top {
    flex-basis: 14px;
  }
  .stage-wordmark {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .round-state {
    font-size: 8px;
  }
  .numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    padding-top: 18px;
    flex: 1;
    min-height: 145px;
  }
  .num {
    font-size: clamp(52px, 18vw, 108px);
    letter-spacing: -0.09em;
    line-height: 1.2;
  }
  .num-label {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .num-block {
    gap: 7px;
  }
  .focus-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-basis: 92px;
    margin: 0 0 12px;
  }
  .distance-label {
    position: static;
    transform: none;
    font-size: 8px;
    height: 11px;
  }
  .focus {
    gap: 10px;
  }
  .focus-label {
    font-size: 11px;
    letter-spacing: 1.2px;
  }
  .focus-value {
    font-size: clamp(34px, 9.5vw, 52px);
  }
  .picker-heading {
    margin: 0 43px;
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .picker-controls {
    gap: 4px;
  }
  .pick-step {
    width: 40px;
    height: 44px;
    font-size: 18px;
  }
  .ruler-wrap,
  .ruler {
    height: 82px;
  }
  .result-row {
    min-height: 31px;
    gap: 8px;
  }
  .mini-label {
    font-size: 8px;
  }
  .mult-block,
  .win-banner {
    min-width: 0;
    gap: 6px;
  }
  .mult,
  .win-amount {
    font-size: 10px;
  }
  .win-text {
    font-size: 7px;
  }
  .picker-hint {
    display: none;
  }
  .controls {
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
    flex: 0 0 auto;
    padding: 14px;
    border-radius: 12px;
  }
  .bet-section {
    grid-column: 1;
    grid-row: 1;
  }
  .play-section {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 0;
    align-self: end;
    gap: 0;
  }
  .play {
    min-height: 46px;
    font-size: 12px;
  }
  .keyboard-note {
    display: none;
  }
  .quick-section {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }
  .quick-section > .mini-label {
    display: none;
  }
  .chip {
    min-height: 40px;
    font-size: 10px;
  }
  .custom-row {
    height: 46px;
  }
  .step-btn {
    width: 33px;
  }
  .custom-input {
    font-size: 15px;
  }
  .input-currency {
    font-size: 11px;
    margin-left: 0;
  }
  .sound-panel {
    display: block;
    grid-column: 1/-1;
    grid-row: 3;
    border: 0;
    border-top: 1px solid #ffffff0e;
    padding: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .sound-heading {
    gap: 12px;
    min-width: 135px;
  }
  .sound-toggle {
    font-size: 9px;
    min-height: 36px;
  }
  #sound-volume {
    flex: 1;
    margin: 0;
    min-width: 0;
    height: 26px;
  }
  .fair-toggle {
    min-height: 39px;
    padding: 0 2px;
  }
  .fair-title {
    font-size: 8px;
  }
  .fair-title .icon {
    height: 13px;
    width: 13px;
  }
  .fair-toggle-end {
    font-size: 0;
    gap: 0;
  }
  .fair-chevron {
    font-size: 16px;
  }
  .fair-panel {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .fair-note {
    font-size: 11px;
  }
  .footer {
    flex-basis: 30px;
    font-size: 7px;
    letter-spacing: 0;
    padding: 0;
  }
  .footer > span:first-child {
    font-size: 7px;
  }
  .footer > span:last-child {
    display: none;
  }
  .app.fair-open .game-shell {
    min-height: 0;
  }
  .app.fair-open .stage {
    min-height: 390px;
  }
  dialog {
    padding: 20px;
  }
  .help-steps span {
    font-size: 11px;
  }
}
@media (max-height: 620px) and (min-width: 601px) {
  .app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .stage {
    min-height: 375px;
  }
  .num {
    font-size: 105px;
  }
  .topbar {
    flex-basis: 58px;
  }
  .controls {
    flex-basis: 96px;
  }
  .focus-row {
    flex-basis: 78px;
  }
  .ruler-wrap,
  .ruler {
    height: 82px;
  }
  .app.fair-open .stage {
    min-height: 375px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .confetti-layer {
    display: none;
  }
}

/* Sound stays available behind a quiet header control. */
.sound-settings {
  position: relative;
  z-index: 20;
}
.sound-settings summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 44px;
  cursor: pointer;
  color: var(--muted);
}
.sound-settings summary::-webkit-details-marker {
  display: none;
}
.sound-settings summary .icon {
  width: 15px;
  height: 15px;
}
.sound-settings summary:hover,
.sound-settings[open] summary {
  color: var(--gold);
}
.sound-settings summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.sound-settings .sound-panel {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 235px;
  display: block;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  background: #1a1a1e;
  box-shadow: 0 12px 30px #0008;
}
.sound-settings:not([open]) .sound-panel {
  display: none;
}
.sound-settings .sound-toggle {
  font-size: 11px;
  min-height: 36px;
}
.sound-settings .sound-heading {
  min-width: 0;
  gap: 10px;
}
.sound-settings #sound-volume {
  width: 100%;
  max-width: none;
  margin: 3px 0 0;
  height: 26px;
}
@media (max-width: 600px) {
  .header-tools {
    gap: 2px;
  }
  .sound-settings summary {
    width: 28px;
  }
  .utility-button {
    min-width: 28px;
  }
  .sound-settings .sound-panel {
    right: -90px;
  }
  .controls {
    gap: 12px;
  }
  .play-section {
    width: 100%;
    max-width: 360px;
    justify-self: center;
  }
  .quick-section {
    min-width: 0;
  }
  .quick-section .chip-row {
    gap: 4px;
  }
  .quick-section .chip {
    font-size: 9px;
    padding: 3px;
    min-height: 46px;
  }
}
@media (max-width: 360px) {
  .topbar {
    gap: 8px;
  }
  .demo-pill {
    display: none;
  }
}
