/* ═══════════════════════════════════════════════
   Find Epstine — Stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --bg:      #07070a;
  --panel:   rgba(0,0,0,0.72);
  --border:  rgba(255,255,255,0.09);
  --text:    rgba(255,255,255,0.92);
  --muted:   rgba(255,255,255,0.50);
  --accent:  #e94560;
  --gold:    #f59e0b;
  --green:   #22c55e;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow: hidden;
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════
   START SCREEN
   ════════════════════════════════════════ */
.start-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #0d1b2e 0%, #05050a 68%);
  overflow: hidden;
}

/* animated dot-grid background */
.start-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: gridDrift 18s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 36px 36px; }
}

/* ── Start-screen nav bar ── */
.start-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  background: rgba(7,7,10,0.70);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.start-nav-brand {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
}
.start-nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.start-nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.start-nav-links a:hover,
.start-nav-links a.active { color: var(--text); }

.start-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 70px 20px 24px; /* extra top padding to clear the nav */
  max-width: 540px;
  width: 100%;
}

.start-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.45;
}

.start-title {
  margin: 0;
  font-size: clamp(54px, 13vw, 90px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  animation: titleBreath 3.5s ease-in-out infinite;
}
.start-accent {
  color: var(--accent);
  text-shadow: 0 0 48px rgba(233,69,96,0.55);
}
@keyframes titleBreath {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.88; }
}

.start-tagline {
  margin: 0;
  font-size: 14px;
  opacity: 0.60;
  line-height: 1.55;
}

/* controls box */
.start-how {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}
.how-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.how-or  { opacity: 0.45; font-size: 11px; }
.how-desc { opacity: 0.75; }
.how-desc em { font-style: normal; opacity: 0.55; }

kbd {
  font-family: monospace;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--text);
}

.ic-dot  { font-size: 14px; opacity: 0.85; }
.ic-pow  { font-size: 16px; color: var(--gold); }
.ic-exit {
  font-size: 10px;
  font-weight: 800;
  background: rgba(34,197,94,0.18);
  border: 1px solid rgba(34,197,94,0.35);
  color: #4ade80;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.06em;
}

.hs-line {
  margin: 0;
  font-size: 13px;
  color: var(--gold);
  opacity: 0.75;
  min-height: 18px;
}

/* ── Start screen CTA group ── */
.start-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.start-play-btn {
  width: 100%;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 14px 44px;
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  border-radius: 14px;
  animation: btnPulse 2.6s ease-in-out infinite;
  transition: transform 0.12s, opacity 0.12s;
}
.start-play-btn:hover  { transform: scale(1.02); opacity: 0.95; }
.start-play-btn:active { transform: scale(0.97); }
@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 0   0   rgba(233,69,96,0.00); }
  50%      { box-shadow: 0 0 28px 8px rgba(233,69,96,0.30); }
}

.start-inv-btn {
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  border-radius: 12px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.start-inv-btn:hover  { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.22); }
.start-inv-btn:active { transform: scale(0.97); }

.start-support-btn {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff5e3a 0%, #ff2600 100%);
  border-color: transparent;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255,80,40,0.30);
  transition: filter 0.15s, transform 0.1s;
}
.start-support-btn:hover  { filter: brightness(1.10); }
.start-support-btn:active { transform: scale(0.97); }

.start-sub {
  margin: 0;
  font-size: 11px;
  opacity: 0.30;
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.03); pointer-events: none; }
}


/* ════════════════════════════════════════
   HUD
   ════════════════════════════════════════ */
.hud {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}
.hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hud-row2 {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hud-left { display: grid; gap: 2px; }

.brand {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.sub { font-size: 12px; opacity: 0.55; }

.hud-mid {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.stat { font-size: 13px; font-weight: 600; opacity: 0.88; }

.combo-hud strong { color: var(--gold); }

.timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  font-size: 13px;
}
.timer-label { opacity: 0.55; }
.timer-val   { font-weight: 900; }
.timer-urgent .timer-val {
  color: #f87171;
  animation: urgentFlash 0.55s ease-in-out infinite;
}
@keyframes urgentFlash { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.hud-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  opacity: 0.75;
  cursor: pointer;
}
.toggle:hover { opacity: 1; }
.toggle input { transform: scale(1.05); cursor: pointer; }

.btn {
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover   { background: rgba(255,255,255,0.11); }
.btn:active  { transform: translateY(1px); }
.btn.primary { background: rgba(255,255,255,0.13); font-weight: 800; }

.status {
  font-size: 13px;
  opacity: 0.82;
  max-width: 70ch;
}
.enemies {
  font-size: 12px;
  opacity: 0.55;
  text-align: right;
}


/* ════════════════════════════════════════
   STAGE
   ════════════════════════════════════════ */
.stage {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.canvas-wrap {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #07070a;
  box-shadow: 0 0 60px rgba(0,0,0,0.7) inset;
}

#game {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}


/* ════════════════════════════════════════
   D-PAD
   ════════════════════════════════════════ */
.dpad {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.dpad-grid {
  display: grid;
  grid-template-columns: 64px 64px 64px;
  grid-template-rows:    64px 64px 64px;
  gap: 10px;
  justify-content: center;
  user-select: none;
}
.dpad-btn {
  font-size: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.90);
  cursor: pointer;
  transition: background 0.1s, transform 0.08s;
}
.dpad-btn:hover  { background: rgba(255,255,255,0.11); }
.dpad-btn:active { transform: scale(0.92); background: rgba(255,255,255,0.15); }

.dpad-btn[data-dir="up"]    { grid-column: 2; grid-row: 1; }
.dpad-btn[data-dir="left"]  { grid-column: 1; grid-row: 2; }
.dpad-btn[data-dir="down"]  { grid-column: 2; grid-row: 3; }
.dpad-btn[data-dir="right"] { grid-column: 3; grid-row: 2; }

.hint {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.45;
  text-align: center;
}


/* ════════════════════════════════════════
   MODAL
   ════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.76);
  padding: 16px;
  z-index: 9999;
  backdrop-filter: blur(5px);
}
.modal-card {
  width: min(520px, 92vw);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12,12,18,0.96);
  box-shadow: 0 24px 80px rgba(0,0,0,0.75);
  padding: 24px;
  animation: modalIn 0.22s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.modal-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--gold);
}
.modal-text {
  font-size: 14px;
  opacity: 0.85;
  white-space: pre-line;
  margin-bottom: 16px;
  line-height: 1.65;
}
.modal-bonus {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.20);
  border-radius: 10px;
}
.mb-label { font-size: 13px; opacity: 0.70; }
.mb-val   { font-size: 18px; font-weight: 900; color: var(--gold); }


/* ════════════════════════════════════════
   KO-FI / DONATE
   ════════════════════════════════════════ */
.kofi-btn {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  background: rgba(255, 94, 58, 0.15);
  border-color: rgba(255, 94, 58, 0.35);
  color: #ff7a5a;
  border-radius: 12px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.kofi-btn:hover {
  background: rgba(255, 94, 58, 0.26);
  box-shadow: 0 0 18px rgba(255, 94, 58, 0.25);
  transform: scale(1.03);
}
.kofi-btn:active { transform: scale(0.97); }

/* Donate overlay */
.donate-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  padding: 16px;
}
.donate-card {
  position: relative;
  width: min(480px, 94vw);
  background: rgba(10,8,16,0.97);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.80);
  padding: 32px 28px 26px;
  text-align: center;
  animation: modalIn 0.22s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.donate-close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.40);
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s;
}
.donate-close:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); }

.donate-icon { font-size: 44px; line-height: 1; }
.donate-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #ff7a5a;
  letter-spacing: -0.01em;
}
.donate-desc {
  margin: 0;
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.65;
  max-width: 38ch;
}
.donate-list {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 13px;
  opacity: 0.80;
}
.donate-list li { display: flex; align-items: center; gap: 8px; }

.kofi-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 32px;
  background: #ff5e3a;
  border: none;
  border-radius: 14px;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(255,94,58,0.40);
  width: 100%;
  justify-content: center;
}
.kofi-link:hover  { background: #ff4520; box-shadow: 0 6px 28px rgba(255,94,58,0.55); transform: translateY(-1px); }
.kofi-link:active { transform: translateY(1px); }
.kofi-logo {
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,255,255,0.22);
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}

.donate-note {
  margin: 0;
  font-size: 11px;
  opacity: 0.35;
}

/* ════════════════════════════════════════
   VICTORY & LEADERBOARD OVERLAYS
   ════════════════════════════════════════ */
.eo-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  padding: 16px;
}

.eo-card {
  background: linear-gradient(160deg, #0d1117 0%, #07070a 100%);
  border: 1px solid rgba(245,158,11,0.30);
  border-radius: 20px;
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.70), 0 0 0 1px rgba(255,255,255,0.04);
}

.eo-card-lb {
  max-width: 480px;
}

.eo-badge {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(245,158,11,0.55));
}

.eo-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: center;
}

.eo-subtitle {
  margin: -8px 0 0;
  font-size: 13px;
  opacity: 0.45;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Score row */
.eo-scores {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}
.eo-score-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  gap: 4px;
}
.eo-score-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.08);
}
.eo-score-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.45;
  text-transform: uppercase;
}
.eo-score-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.eo-score-best { color: var(--gold); }

/* 3-letter tag */
.eo-tag-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.eo-tag-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.50;
}
.eo-tag-input {
  width: 120px;
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  font-family: monospace;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(245,158,11,0.45);
  border-radius: 10px;
  color: var(--gold);
  padding: 8px 12px;
  outline: none;
  caret-color: var(--gold);
  transition: border-color 0.2s, background 0.2s;
}
.eo-tag-input:focus {
  border-color: var(--gold);
  background: rgba(245,158,11,0.08);
}
.eo-tag-input::placeholder { opacity: 0.25; }

/* Buttons */
.eo-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.eo-btns-lb {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.eo-submit {
  width: 100%;
  font-size: 15px;
  padding: 13px 18px;
}

.eo-kofi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5e3a 0%, #ff2600 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(255,80,40,0.35);
}
.eo-kofi:hover  { filter: brightness(1.12); transform: translateY(-1px); }
.eo-kofi:active { transform: translateY(1px); filter: brightness(0.95); }

/* Leaderboard table */
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lb-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.lb-table tr:last-child { border-bottom: none; }
.lb-table td { padding: 7px 6px; }
.lb-rank { width: 36px; font-size: 18px; text-align: center; }
.lb-name {
  font-family: monospace;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.15em;
  color: var(--text);
}
.lb-pts  { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold); }
.lb-date { text-align: right; font-size: 11px; opacity: 0.35; padding-left: 10px; }
.lb-top .lb-name { color: var(--gold); }
.lb-empty {
  text-align: center;
  opacity: 0.35;
  font-size: 13px;
  padding: 24px 0;
}

/* Rank badge + evidence stat (victory & leaderboard) */
.eo-rank-badge {
  margin: -10px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.eo-evidence-stat {
  margin: 0;
  font-size: 12px;
  opacity: 0.50;
  letter-spacing: 0.04em;
}

/* Share section */
.lb-share {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lb-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.45;
  margin: 0;
}
.lb-share-caption {
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.30);
  border-radius: 8px;
  padding: 10px 12px;
  user-select: all;
  cursor: text;
}
.lb-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  flex: 1;
  min-width: 90px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.share-x {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.share-wa {
  background: #25d366;
  color: #fff;
  border-color: transparent;
}
.share-fb {
  background: #1877f2;
  color: #fff;
  border-color: transparent;
}
.share-copy {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.14);
}
.share-btn:hover  { filter: brightness(1.15); }
.share-btn:active { transform: scale(0.96); }

@media (max-width: 480px) {
  .eo-card { padding: 24px 16px 20px; gap: 14px; }
  .eo-badge { font-size: 40px; }
  .eo-title { font-size: 18px; }
  .eo-score-val { font-size: 22px; }
  .eo-btns-lb { flex-direction: column; }
  .lb-date { display: none; }
}

/* ════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════ */
.hidden { display: none !important; }

/* ── Pizza D-pad centre button ── */
.dpad-pizza {
  grid-column: 2;
  grid-row: 2;
  font-size: 20px;
  background: rgba(249,115,22,0.14);
  border-color: rgba(249,115,22,0.38);
  transition: background 0.1s, transform 0.08s;
}
.dpad-pizza:hover  { background: rgba(249,115,22,0.28); }
.dpad-pizza:active { transform: scale(0.88); background: rgba(249,115,22,0.40); }

@media (max-width: 520px) {
  .stage       { padding: 8px; }
  .dpad-grid   { gap: 8px; }
  .btn         { padding: 6px 9px; font-size: 12px; }
  .start-title { font-size: 52px; }
  .dpad-btn    { font-size: 20px; border-radius: 12px; }
  .hud         { padding: 6px 8px; }
  .hud-right   { gap: 6px; }
  /* Hide toggle labels on very small screens, keep checkboxes */
  .hud-right .toggle span { font-size: 11px; }
}
