/* Ice Rush: theme tokens for the shared WildGame HUD (wg-hud.css) and the
   scene layout around it. The bar spans the full viewport width under the
   cabinet; the cabinet is sized from the space the bar leaves. */
.wg-hud {
  --wg-bg: rgba(5, 24, 40, .48);
  --wg-bg-solid: rgba(5, 24, 40, .93);
  --wg-surface: linear-gradient(180deg, rgba(211, 242, 255, .08), rgba(12, 40, 61, .04));
  --wg-backdrop: blur(4px) saturate(135%);
  --wg-control-backdrop: blur(18px) saturate(140%);
  --wg-chip: rgba(207, 235, 250, .13);
  --wg-surface-shadow: 0 -8px 28px rgba(3, 17, 31, .12);
  --wg-line: rgba(192, 228, 249, .025);
  --wg-edge: linear-gradient(90deg, rgba(211, 242, 255, .02), rgba(232, 250, 255, .18) 32%, rgba(255, 255, 255, .24) 50%, rgba(232, 250, 255, .18) 68%, rgba(211, 242, 255, .02));
  --wg-accent: #ffcf4a;
  --wg-accent-ink: #241800;
  --wg-accent-dark: #8a5f12;
  --wg-spin: #d63447;
  --wg-spin-dark: #701b2d;
  --wg-font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.app {
  --hud-space: 104px;
  flex-direction: column; justify-content: flex-start; align-items: stretch;
  padding: 0;
}
.app > .cabinet {
  margin: auto;
  padding-top: max(8px, env(safe-area-inset-top));
  width: min(1120px, 86vw, calc((100dvh - var(--hud-space) - 26px) / .65));
}
.app > .wg-hud { flex: none; }

@media (max-aspect-ratio: 4/5), (max-width: 864px) and (min-height: 541px) {
  .app { --hud-space: 232px; }
}
@media (max-aspect-ratio: 4/5), (max-width: 680px) and (min-height: 541px) {
  .app > .cabinet { width: min(calc(100% - 14px), calc((100dvh - var(--hud-space) - 18px) / .97)); }
}
@media (max-height: 540px) and (min-aspect-ratio: 4/5) {
  .app { --hud-space: 70px; }
  .app > .cabinet { padding-top: 4px; width: min(80vw, calc((100dvh - var(--hud-space) - 12px) / .63)); }
}
#autoOptions { grid-template-columns: repeat(4, 1fr); }
