:root {
  --bg-deep: #050612;
  --bg-panel: rgba(10, 13, 30, 0.86);
  --border-subtle: rgba(120, 160, 255, 0.16);
  --border-glow: rgba(0, 240, 255, 0.35);
  --cyan: #00f0ff;
  --magenta: #ff2a85;
  --amber: #ffd166;
  --text-main: #eef4ff;
  --text-muted: #8b99be;
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html,
body {
  height: 100%;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 20% 15%, rgba(0, 240, 255, 0.08), transparent 42%),
    radial-gradient(circle at 80% 85%, rgba(255, 42, 133, 0.09), transparent 45%);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

/* Header */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 20, 44, 0.75);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s, color 0.2s, opacity 0.2s;
}

.icon-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
}

.icon-btn.active-toggle {
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
}

.icon-btn.muted-toggle {
  opacity: 0.55;
  color: var(--text-muted);
}

/* Main Stage */
.stage-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.canvas-frame {
  position: relative;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.26);
  background: #060818;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 36px rgba(0, 240, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

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

/* HUD */
.hud {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.hud-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-sector {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: rgba(5, 8, 22, 0.68);
  border: 1px solid rgba(0, 240, 255, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(6px);
}

.dash-meter-wrap {
  width: 164px;
  background: rgba(5, 8, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}

.dash-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.dash-ready {
  color: var(--cyan);
  font-weight: 700;
}

.dash-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #6df7ff);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.75);
  transition: width 0.06s linear;
}

.dash-bar-fill.charging {
  background: linear-gradient(90deg, #5267a3, #7a98e6);
  box-shadow: none;
}

.hud-center {
  display: flex;
  justify-content: center;
}

.combo-badge {
  background: rgba(255, 42, 133, 0.16);
  border: 1px solid rgba(255, 42, 133, 0.55);
  border-radius: 12px;
  padding: 6px 16px 8px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 22px rgba(255, 42, 133, 0.28);
  animation: popIn 0.18s ease-out;
}

@keyframes popIn {
  from {
    transform: scale(0.84);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#comboValue {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--amber);
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.6);
  line-height: 1.1;
}

.combo-timer-track {
  margin-top: 4px;
  width: 66px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.combo-timer-fill {
  height: 100%;
  width: 100%;
  background: var(--amber);
  transition: width 0.06s linear;
}

.hud-right {
  display: flex;
  gap: 14px;
  background: rgba(5, 8, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 7px 14px;
  backdrop-filter: blur(6px);
}

.score-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.score-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.score-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.score-value.muted {
  color: var(--cyan);
  opacity: 0.85;
}

/* Overlays */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 6, 18, 0.56);
  backdrop-filter: blur(6px);
  z-index: 10;
  animation: fadeIn 0.2s ease-out;
}

#leaderboardOverlay {
  z-index: 20;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.overlay-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-panel);
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 18px;
  padding: 22px 26px;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.compact-card {
  max-width: 360px;
}

.gameover-card {
  max-width: 580px;
  padding: 20px 24px;
}

.leaderboard-card {
  max-width: 580px;
  padding: 20px 24px;
  text-align: left;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 5px;
}

.eyebrow.danger {
  color: var(--magenta);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.95rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}

.hero-title span {
  color: var(--magenta);
  text-shadow: 0 0 26px rgba(255, 42, 133, 0.55);
}

.overlay-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.board-title {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.hero-sub {
  margin: 8px auto 12px;
  max-width: 460px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.hero-sub strong {
  color: var(--amber);
}

.menu-callsign-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
  max-width: 360px;
}

.menu-callsign-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  white-space: nowrap;
}

.menu-callsign-input {
  text-align: center;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 16px;
  text-align: left;
}

.control-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.key-group {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 5px;
  padding: 1px 6px;
}

.menu-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.menu-best {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.menu-best strong {
  color: var(--amber);
}

/* Buttons */
.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  border-radius: 11px;
  padding: 11px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  border: none;
  color: #050814;
  background: linear-gradient(135deg, var(--cyan), #4cf8ff);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.65);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  border-color: var(--magenta);
  color: #fff;
  background: rgba(255, 42, 133, 0.14);
  transform: translateY(-2px);
}

/* Game Over Stats */
.new-best-banner {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #090b16;
  background: linear-gradient(90deg, var(--amber), #ff9f43);
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-box.primary-stat {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.primary-stat .stat-value {
  color: var(--cyan);
}

/* Game Over Leaderboard Submit */
.board-submit {
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.board-submit-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 8px;
}

.rank-pill {
  background: rgba(255, 209, 102, 0.16);
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.board-submit-row {
  display: flex;
  gap: 8px;
}

.callsign-input {
  flex: 1;
  background: rgba(5, 8, 22, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.callsign-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.btn-save {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #090b16;
  background: linear-gradient(135deg, var(--amber), #ffaa4c);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.45);
}

.board-saved-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 255, 178, 0.08);
  border: 1px solid rgba(0, 255, 178, 0.35);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #5efce8;
}

.link-btn {
  background: none;
  border: none;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: underline;
}

.champ-editor {
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.14);
}

.champ-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 8px;
}

.champ-msg-input {
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}

.champ-feedback {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #5efce8;
  text-align: left;
}

.champion-banner {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(255, 159, 67, 0.06));
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.14);
}

.champion-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.champion-crown {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.champion-crown strong {
  color: #fff;
}

.champion-banner-quote {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff8dc;
  line-height: 1.35;
  word-break: break-word;
}

.champion-banner-quote.empty-quote {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
  font-size: 0.8rem;
}

.hint-text {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Leaderboard Table Overlay */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.board-pb-pill {
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.32);
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
}

.board-pb-pill span {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.board-pb-pill strong {
  font-size: 1rem;
  color: var(--amber);
}

.board-table-wrap {
  max-height: 238px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(5, 8, 22, 0.65);
  margin-bottom: 12px;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.board-table thead th {
  position: sticky;
  top: 0;
  background: #0b1026;
  color: var(--text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.board-table th:nth-child(3),
.board-table th:nth-child(4),
.board-table th:nth-child(5),
.board-table td:nth-child(3),
.board-table td:nth-child(4),
.board-table td:nth-child(5) {
  text-align: right;
}

.board-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--text-main);
}

.board-table tbody tr:last-child td {
  border-bottom: none;
}

.board-table tbody tr.player-row {
  background: rgba(0, 240, 255, 0.1);
}

.board-table tbody tr.player-row td:nth-child(2) {
  color: var(--cyan);
  font-weight: 700;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.rank-1 {
  color: #090b16;
  background: linear-gradient(135deg, #ffe066, #ffae34);
}

.rank-2 {
  color: #090b16;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
}

.rank-3 {
  color: #090b16;
  background: linear-gradient(135deg, #f3a683, #cd6133);
}

.you-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 4px;
  color: #050814;
  background: var(--cyan);
  font-weight: 700;
  vertical-align: middle;
}

.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  background: var(--text-muted);
}

.status-dot.online {
  background: #00ffb2;
  box-shadow: 0 0 8px #00ffb2;
}

.board-empty {
  padding: 26px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.text-action-btn {
  background: none;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 6px 10px;
  transition: background 0.15s, border-color 0.15s;
}

.text-action-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
}

.text-danger-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 6px 4px;
  transition: color 0.15s;
}

.text-danger-btn:hover {
  color: var(--magenta);
}

/* Touch Controls */
.touch-controls {
  display: none;
  width: 100%;
  max-width: 520px;
  gap: 10px;
}

.touch-btn {
  flex: 1;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 20, 44, 0.85);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  touch-action: manipulation;
}

.touch-btn.touch-primary {
  flex: 1.5;
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.14);
  color: var(--cyan);
}

.touch-btn.touch-accent {
  border-color: rgba(255, 42, 133, 0.45);
  background: rgba(255, 42, 133, 0.14);
  color: #ff6ea9;
}

/* Footer */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.bottom-bar strong {
  color: var(--amber);
  font-weight: 600;
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.75;
}

@media (hover: none) and (pointer: coarse), (max-width: 760px) {
  .touch-controls {
    display: flex;
  }

  .overlay-card {
    padding: 16px 14px;
  }

  .controls-grid {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hud {
    padding: 10px 12px;
  }

  .dash-meter-wrap {
    width: 132px;
  }

  .score-value {
    font-size: 1rem;
  }
}
