:root {
  --bg:           #17110f;
  --panel:        rgba(33, 28, 26, 0.97);
  --panel-border: rgba(145, 51, 38, 0.45);
  --screen-glow:  rgba(225, 93, 59, 0.2);
  --gold:         #f0b562;
  --red:          #b83f2c;
  --cream:        #efe6da;
  --soft:         #9a8870;
  --radius:       16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: "Press Start 2P", cursive;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── Cabinet: single portrait column, centred ── */
.cabinet {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 520px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

/* ── HUD bar ── */
.hud-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--panel);
  border-bottom: 2px solid var(--panel-border);
  flex-shrink: 0;
  z-index: 1;
}

.logo-wrap {
  flex-shrink: 0;
  width: 62px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.una-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Source art is black-on-transparent — invert to cream for the dark HUD */
  filter: invert(0.93) sepia(0.08);
}

.game-title {
  flex-shrink: 0;
  font-size: 0.52rem;
  line-height: 1.5;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(240, 181, 98, 0.3);
}

.hud-stats {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(239, 230, 218, 0.06);
  border: 1px solid rgba(240, 181, 98, 0.16);
  min-width: 48px;
}

.stat-label {
  color: var(--soft);
  font-size: 0.38rem;
  letter-spacing: 0.06em;
}

.stat strong {
  color: var(--cream);
  font-size: 0.65rem;
}

/* ── Music toggle (subtle speaker icon in HUD) ── */
.music-toggle {
  appearance: none;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(240, 181, 98, 0.16);
  background: rgba(239, 230, 218, 0.06);
  color: var(--gold);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 80ms, color 80ms, transform 60ms;
}
.music-toggle:hover  { background: rgba(239, 230, 218, 0.12); }
.music-toggle:active { transform: scale(0.92); }

/* Default (music on): show waves, hide slash */
.music-toggle .snd-slash { display: none; }

/* Muted state: dim, hide waves, show slash */
.music-toggle.muted { color: var(--soft); }
.music-toggle.muted .snd-wave  { display: none; }
.music-toggle.muted .snd-slash { display: block; }

/* ── Screen shell — sized by canvas, relative for overlays ── */
.screen-shell {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
  background: #17110f;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Prevent browser copy/paste callout on double-tap */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Canvas: maintain 480:720 (2:3) ratio, never stretch ── */
canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 720;
  max-height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background:
    radial-gradient(circle at top, rgba(240, 181, 98, 0.1), transparent 35%),
    linear-gradient(180deg, #2b201d 0%, #17110f 100%);
  box-shadow: 0 0 40px var(--screen-glow);
}

/* ── Overlay sits inside screen-shell ── */
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  pointer-events: none;
  z-index: 3;
  transition: opacity 180ms ease;
  background: rgba(12, 8, 6, 0.55);
}

.overlay.hidden    { opacity: 0; }
.overlay.interactive { pointer-events: auto; }

/* ── Title logo ── */
.hero-logo {
  display: block;
  width: 90%;
  max-width: 360px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero-logo.hidden { display: none; }

/* ── Meal Over logo ── */
.meal-over-logo {
  display: block;
  width: 88%;
  max-width: 380px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.meal-over-logo.hidden { display: none; }

/* ── Title: Drop & Bounce entry → gold glow loop ── */
@keyframes title-drop-bounce {
  0%   { transform: translateY(-140px) scale(1.08); opacity: 0; }
  60%  { transform: translateY(10px)   scale(1.0);  opacity: 1; }
  76%  { transform: translateY(-7px); }
  88%  { transform: translateY(3px); }
  100% { transform: translateY(0);                  opacity: 1; }
}
@keyframes title-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(240,181,98,0.35)); }
  50%       { filter: drop-shadow(0 0 22px rgba(240,181,98,0.9)) drop-shadow(0 0 8px rgba(240,181,98,0.5)); }
}

/* ── Meal Over: Slide Down entry → red pulse loop ── */
@keyframes meal-slide-down {
  0%   { transform: translateY(-80px); opacity: 0; }
  60%  { transform: translateY(6px);   opacity: 1; }
  80%  { transform: translateY(-3px); }
  100% { transform: translateY(0);    opacity: 1; }
}
@keyframes meal-red-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(184,63,44,0.4)); }
  50%       { filter: drop-shadow(0 0 20px rgba(184,63,44,1)) drop-shadow(0 0 40px rgba(220,20,20,0.5)); }
}

.overlay h2 {
  color: var(--cream);
  font-size: clamp(1rem, 6vw, 1.6rem);
  line-height: 1.4;
}

.overlay p {
  color: var(--red);
  font-size: 0.6rem;
  line-height: 1.9;
  margin: 8px 0;
}

.play-to-win {
  color: var(--gold) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.12em;
  text-shadow: 0 0 14px rgba(240, 181, 98, 0.5);
}

.play-to-win.hidden { display: none; }

/* ── "Play Theme Song" CTA — top of start screen, just under the header ── */
.play-theme-btn {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: auto;          /* clickable even though .overlay is pointer-events:none */
  appearance: none;
  padding: 9px 16px;
  border-radius: 10px;
  border: 2px solid rgba(184, 63, 44, 0.65);
  background: rgba(18, 12, 10, 0.92);
  color: var(--red);
  font: inherit;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(184, 63, 44, 0.45);
  animation: theme-cta-pulse 1.8s ease-in-out infinite;
}
.play-theme-btn:active { transform: translateX(-50%) scale(0.95); }
.play-theme-btn.hidden { display: none; }

/* Hide whenever the overlay is hidden (gameplay / game over) so it never
   intercepts taps meant for the canvas. */
.overlay.hidden .play-theme-btn { display: none; }

@keyframes theme-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(184, 63, 44, 0); }
  50%       { box-shadow: 0 0 16px rgba(184, 63, 44, 0.5); }
}

.share-btn {
  appearance: none;
  margin-top: 4px;
  padding: 12px 20px;
  border: 2px solid rgba(240, 181, 98, 0.5);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240,181,98,0.2), rgba(184,63,44,0.12)), rgba(20,14,12,0.9);
  color: var(--gold);
  font: inherit;
  font-size: 0.6rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 100ms, transform 60ms;
}

.share-btn:active { transform: scale(0.96); }
.share-btn.hidden { display: none; }

/* ── Two-thumb mobile controls ── */
.mobile-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  padding-left: 28px;                /* push dpad away from the left edge */
  padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  background: var(--panel);
  border-top: 2px solid var(--panel-border);
  flex-shrink: 0;
}

/* Left side: d-pad cluster */
.dpad {
  display: flex;
  gap: 14px;                          /* breathing room between arrows */
}

/* ── Direction buttons — pixel art image ── */
/* The padding enlarges the touch hotzone on all sides without changing the
   visual art size (btn-img uses fixed px dimensions, not 100%). */
.dir-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 12px 16px;               /* 16px L/R extends tap zone beyond arrow art */
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dir-btn .btn-img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: filter 60ms, transform 60ms;
  flex-shrink: 0;
}

/* Option A — Sunken press */
.dir-btn:active .btn-img {
  filter: brightness(0.45);
  transform: scale(0.88) translateY(4px);
}

/* ── Fire button — pixel art image ── */
.fire-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  width: 96px;
  height: 96px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: block;
}

.fire-btn .btn-img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ── Game Over / Lead Capture modal ── */
.lead-modal {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 12px 20px;
  background: rgba(8, 5, 4, 0.88);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lead-modal.hidden { display: none; }

.lead-card {
  width: 100%;
  max-width: 400px;
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(240, 181, 98, 0.34);
  background:
    radial-gradient(ellipse at top, rgba(184, 63, 44, 0.22), transparent 38%),
    rgba(22, 16, 14, 0.99);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 9px;
  /* Inconsolata for legibility — scoped to the card; rest of the game keeps
     the Press Start 2P arcade font. Buttons/inputs inherit via `font: inherit`. */
  font-family: "Inconsolata", monospace;
}

/* ── Meal Over logo inside the card ── */
.modal-meal-logo {
  display: block;
  width: 100%;
  margin: 0 auto 2px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── "The UNA Alliance Thanks You" — sized to span the Meal Over logo width ── */
.modal-alliance {
  text-align: center;
  color: var(--cream);
  /* Scales with viewport so it always spans ~the Meal Over width AND stays on
     one line down to small phones (nowrap). */
  font-size: clamp(1.05rem, 5.7vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  margin-top: -4px;  /* pull tagline closer to Meal Over logo */
}

/* Score strip removed — score/wave shown in HUD during play */

/* ── "You've Unlocked:" heading ── */
.modal-section-head {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: -2px;
}

/* ── Milestone checklist ── */
.ms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Checkbox visual */
.ms-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(239, 230, 218, 0.28);
  border-radius: 3px;
  display: grid;
  place-items: center;
  margin-top: 1px;  /* align with text cap-height at flex-start */
}

/* Checked state */
.ms-row.ms-checked .ms-box {
  border-color: #39ff14;
  background: rgba(57, 255, 20, 0.18);
}
.ms-row.ms-checked .ms-box::after {
  content: "✓";
  font-size: 11px;
  line-height: 1;
  color: #39ff14;
}

.ms-text {
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.ms-text strong { color: var(--cream); }
.ms-row.ms-checked .ms-text strong { color: #39ff14; }

/* Special (highest score) — gold checkbox tint */
.ms-row.ms-special .ms-box { border-color: rgba(240, 181, 98, 0.4); }
.ms-note {
  display: block;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0;
  line-height: 1.35;
}

/* Secret — red checkbox tint */
.ms-row.ms-secret .ms-box { border-color: rgba(184, 63, 44, 0.5); }
.ms-mystery {
  color: var(--red);
  font-size: inherit;  /* matches .ms-text */
  font-weight: 900;
  animation: mystery-pulse 2s ease-in-out infinite;
}
.ms-emoji {
  font-size: 1.5em;
  line-height: 1;
  vertical-align: -3px;
}
@keyframes mystery-pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; text-shadow: 0 0 8px rgba(184, 63, 44, 0.8); }
}

/* ── Form section ── */
.modal-form-head {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 2px;
}

.modal-form-note {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.lead-form { display: flex; flex-direction: column; gap: 8px; }
.lead-form.hidden { display: none; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field { display: grid; gap: 5px; }

.field span {
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.checkbox-field span {
  color: var(--soft);
  /* Scales down on narrow phones so the opt-in always stays on one line. */
  font-size: clamp(0.5rem, 2.65vw, 0.76rem);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.field input {
  width: 100%;
  border: 2px solid rgba(240, 181, 98, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(239, 230, 218, 0.05);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
}

.field input[type="date"] {
  color-scheme: dark;
  color: var(--soft);   /* softer than the bright cream of text inputs */
}

.field input:focus {
  outline: 2px solid rgba(240, 181, 98, 0.5);
  outline-offset: 2px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.lead-status {
  min-height: 1em;
  color: #ff5c42;   /* warning red — only populated on a failed submit */
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.submit-button {
  appearance: none;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  border: 2px solid rgba(240, 181, 98, 0.45);
  background: linear-gradient(
    180deg,
    rgba(240, 181, 98, 0.22),
    rgba(184, 63, 44, 0.14)
  ), rgba(39, 29, 26, 0.95);
  letter-spacing: 0.04em;
}
.submit-button:disabled { opacity: 0.6; cursor: wait; }
.submit-button:active { transform: scale(0.97); }

/* ── Returning player (profile remembered on this device) ── */
.returning-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0 2px;
}

.returning-wrap.hidden { display: none; }

.returning-status {
  color: #39ff14;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  min-height: 1em;
}

.not-you-btn {
  appearance: none;
  border: none;
  background: none;
  color: var(--soft);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 6px;
}
.not-you-btn:hover { color: var(--cream); }

/* Success message after form submit */
.lead-success {
  text-align: center;
  color: #39ff14;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  padding: 14px;
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 10px;
  background: rgba(57, 255, 20, 0.06);
}
.lead-success.hidden { display: none; }

/* ── Action buttons row (Share / Play Again / Leaderboard) ── */
.go-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 4px;  /* breathing room above the action row */
}

.go-btn {
  appearance: none;
  border-radius: 9px;
  padding: 10px 6px;
  color: var(--cream);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-align: center;
  border: 2px solid rgba(239, 230, 218, 0.16);
  background: rgba(239, 230, 218, 0.05);
  transition: background 80ms, transform 60ms;
}
.go-btn:active { transform: scale(0.95); }
.go-btn:disabled { opacity: 0.38; cursor: default; }

.go-share { border-color: rgba(240, 181, 98, 0.35); color: var(--gold); }
.go-play  { border-color: rgba(57, 255, 20, 0.35);  color: #39ff14; }

/* ── Leaderboard modal ── */
.board-modal {
  position: absolute;
  inset: 0;
  z-index: 6;               /* above the game-over modal */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 12px 20px;
  background: rgba(8, 5, 4, 0.92);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.board-modal.hidden { display: none; }

.board-card {
  width: 100%;
  max-width: 400px;
  padding: 18px 16px 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(240, 181, 98, 0.34);
  background:
    radial-gradient(ellipse at top, rgba(184, 63, 44, 0.22), transparent 38%),
    rgba(22, 16, 14, 0.99);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Inconsolata", monospace;
}

.board-title {
  text-align: center;
  color: var(--gold);
  font-family: "Press Start 2P", cursive;
  font-size: clamp(0.7rem, 3.6vw, 0.9rem);
  line-height: 1.5;
  text-shadow: 0 0 14px rgba(240, 181, 98, 0.4);
}

.board-sub {
  text-align: center;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.board-sub-note {
  display: block;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 3px;
}

.board-sub-note a,
.rules-line a {
  color: var(--gold);
  text-decoration: underline;
}

/* "No purchase necessary" + rules link under the lead form. Contest law wants
   this reachable from where the draw is offered, not buried. */
.rules-line {
  margin: 10px 0 0;
  text-align: center;
  color: var(--soft);
  font-family: "Inconsolata", monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.board-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.board-col {
  border: 1px solid rgba(239, 230, 218, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px 10px 12px;
}

.board-col-head {
  text-align: center;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(239, 230, 218, 0.12);
}

.board-col-month { color: #39ff14; }

.board-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.board-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(0.68rem, 2.9vw, 0.85rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.4;
}

.board-rank  { color: var(--soft); min-width: 2ch; text-align: right; }
.board-init  { letter-spacing: 0.08em; }
.board-score { margin-left: auto; color: var(--gold); }

/* The just-submitted player's rows glow green */
.board-row.board-you .board-init,
.board-row.board-you .board-score,
.board-row.board-you .board-rank {
  color: #39ff14;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.board-empty {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  padding: 8px 0;
}

.board-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

/* ── Footer: Uber Eats + socials — all items in one flat row, equal gaps ── */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(239, 230, 218, 0.1);
}

.ue-badge {
  display: flex;
  align-items: center;
}
.ue-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* social-row gap matches footer gap so all three items are evenly spaced */
.social-row {
  display: contents; /* dissolves wrapper — icons join footer flex directly */
}

.social-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(239, 230, 218, 0.07);
  border: 1px solid rgba(239, 230, 218, 0.14);
  color: var(--cream);
  text-decoration: none;
  transition: background 80ms, opacity 80ms;
}
.social-icon:hover { background: rgba(239, 230, 218, 0.14); opacity: 0.8; }

/* ── Desktop: a touch of breathing room ── */
@media (min-width: 560px) {
  .cabinet {
    padding: 12px 0;
    height: auto;
    min-height: 100dvh;
  }

  .hud-bar,
  .screen-shell,
  .mobile-controls {
    border-left:  2px solid var(--panel-border);
    border-right: 2px solid var(--panel-border);
  }

  .hud-bar {
    border-radius: var(--radius) var(--radius) 0 0;
    border-top: 2px solid var(--panel-border);
  }

  .mobile-controls {
    border-radius: 0 0 var(--radius) var(--radius);
    border-bottom: 2px solid var(--panel-border);
  }
}
