:root {
  --bg-deep: #060d1b;
  --bg-panel: #0d1a2f;
  --bg-card: rgba(11, 22, 42, 0.94);
  --border-steel: rgba(125, 165, 214, 0.28);
  --border-gold: rgba(245, 185, 66, 0.55);
  --text-main: #f3f7ff;
  --text-muted: #93acc9;
  --accent-cyan: #38bdf8;
  --accent-gold: #fbbf24;
  --accent-crimson: #f43f5e;
  --accent-emerald: #34d399;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #102544 0%, #060d1b 70%);
  color: var(--text-main);
  font-family: 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

/* Top HUD Bar */
.hud-bar {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(14, 27, 48, 0.96), rgba(8, 16, 32, 0.94));
  border-bottom: 1px solid var(--border-steel);
  flex-shrink: 0;
  z-index: 20;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.hud-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(6, 13, 27, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.05;
}

.hud-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hud-pill strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hud-score strong { color: #ffffff; }
.hud-chain strong { color: var(--accent-cyan); }
.hud-medals strong { color: var(--accent-gold); }
.hud-lives strong { color: #7dd3fc; font-size: 12px; letter-spacing: 1px; }
.hud-power strong { color: #fb923c; }
.hud-mission strong { color: #a7f3d0; font-size: 11px; }

.hud-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border-steel);
  background: rgba(18, 35, 62, 0.9);
  color: var(--text-main);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.hud-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(30, 58, 95, 0.95);
  transform: translateY(-1px);
}

/* Main Stage & Arcade Cabinet */
.stage-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  gap: 5px;
  overflow: hidden;
}

.cabinet-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 2 / 3;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 2px solid rgba(148, 184, 232, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #07192f;
  overflow: hidden;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: crosshair;
  touch-action: none;
}

/* Boss HUD */
.boss-hud {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 12;
  background: rgba(9, 16, 30, 0.86);
  border: 1px solid rgba(244, 63, 94, 0.65);
  border-radius: 8px;
  padding: 5px 8px;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.25);
}

.boss-hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.boss-name { color: #fecdd3; }
.boss-phase { color: var(--accent-gold); }

.boss-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.boss-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316, #fbbf24);
  transition: width 0.08s linear;
}

.boss-turrets-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

.turret-pip {
  flex: 1;
  text-align: center;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(51, 65, 85, 0.45);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.turret-pip.active {
  background: rgba(244, 63, 94, 0.24);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.6);
}

.turret-pip.core.active {
  background: rgba(251, 191, 36, 0.22);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.6);
}

/* Warning Banner */
.warning-banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  z-index: 15;
  background: rgba(153, 27, 27, 0.92);
  border-top: 2px solid #fbbf24;
  border-bottom: 2px solid #fbbf24;
  padding: 10px 8px;
  text-align: center;
  pointer-events: none;
  animation: warnPulse 0.4s infinite alternate;
}

@keyframes warnPulse {
  from { background: rgba(153, 27, 27, 0.92); transform: scale(1); }
  to { background: rgba(220, 38, 38, 0.96); transform: scale(1.015); }
}

.warning-stripe {
  height: 4px;
  background: repeating-linear-gradient(45deg, #fbbf24 0 10px, #111827 10px 20px);
  margin: 2px 0;
}

.warning-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fef08a;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.warning-sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-top: 2px;
}

.challenge-banner {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent-gold);
  color: #fef08a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

/* Controls Dock */
.controls-dock {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1.45fr 1.15fr 0.8fr;
  gap: 6px;
  flex-shrink: 0;
}

.ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1.5px solid var(--border-steel);
  background: linear-gradient(180deg, rgba(22, 41, 74, 0.95), rgba(11, 22, 43, 0.95));
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  min-height: 44px;
}

.ctrl-btn:active, .ctrl-btn.active {
  transform: scale(0.97);
}

.ctrl-bomb {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(180deg, rgba(120, 40, 20, 0.9), rgba(66, 18, 12, 0.94));
}

.ctrl-bomb.ready {
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.ctrl-form {
  border-color: rgba(56, 189, 248, 0.5);
}

.ctrl-focus.active {
  border-color: var(--accent-emerald);
  background: linear-gradient(180deg, rgba(16, 78, 66, 0.92), rgba(9, 44, 38, 0.95));
}

.ctrl-top {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ctrl-top strong {
  color: var(--accent-gold);
}

.ctrl-form .ctrl-top strong {
  color: var(--accent-cyan);
}

.ctrl-sub {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.ctrl-meter {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 2px;
}

.ctrl-meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fef08a);
  transition: width 0.1s linear;
}

/* Overlays & Cards */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(4, 9, 19, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.card {
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1.5px solid var(--border-steel);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-badge, .postrun-badge {
  align-self: center;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 2px 9px;
  border-radius: 999px;
}

.game-title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 3px 0 #1e3a5f, 0 0 18px rgba(56, 189, 248, 0.45);
}

.game-title span {
  color: var(--accent-gold);
}

.game-sub {
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #7dd3fc;
}

.medal-bank-pill {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 1px 8px;
}

/* Fighter Selection */
.fighter-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fighter-card {
  width: 100%;
  text-align: left;
  background: rgba(15, 30, 56, 0.86);
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.1s ease;
}

.fighter-card:hover {
  border-color: rgba(56, 189, 248, 0.65);
}

.fighter-card.selected {
  border-color: var(--accent-gold);
  background: linear-gradient(90deg, rgba(30, 58, 95, 0.95), rgba(18, 36, 66, 0.95));
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.fighter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.fighter-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.fighter-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 4px;
}

.fighter-tag.balanced { background: rgba(56, 189, 248, 0.22); color: #7dd3fc; }
.fighter-tag.speed { background: rgba(52, 211, 153, 0.22); color: #6ee7b7; }
.fighter-tag.heavy { background: rgba(251, 146, 60, 0.24); color: #fdba74; }

.fighter-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Mission Selector */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.mission-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 3px;
  border-radius: 8px;
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 29, 54, 0.85);
  color: var(--text-main);
  cursor: pointer;
  min-height: 48px;
  transition: border-color 0.12s ease, transform 0.1s ease;
}

.mission-btn.selected {
  border-color: var(--accent-cyan);
  background: rgba(24, 58, 96, 0.95);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.mission-btn.locked {
  opacity: 0.48;
  cursor: not-allowed;
}

.m-num {
  font-size: 11px;
  font-weight: 900;
}

.m-short {
  font-size: 8.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.m-stars {
  font-size: 9px;
  color: var(--accent-gold);
  margin-top: 1px;
}

/* Buttons */
.action-row {
  display: flex;
  gap: 6px;
}

.btn {
  flex: 1;
  border: 1.5px solid transparent;
  border-radius: 9px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: transform 0.1s ease, filter 0.12s ease;
}

.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg {
  font-size: 13.5px;
  padding: 10px 12px;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 11px;
  flex: 0 0 auto;
}

.btn-primary {
  background: linear-gradient(180deg, #0284c7, #0369a1);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-daily {
  background: linear-gradient(180deg, #b45309, #92400e);
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.daily-top { font-size: 11.5px; }
.daily-sub { font-size: 9px; font-weight: 700; color: #fef3c7; }

.btn-secondary {
  background: linear-gradient(180deg, #334155, #1e293b);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn-amber {
  background: linear-gradient(180deg, #d97706, #b45309);
  border-color: #fbbf24;
}

.btn-share {
  background: linear-gradient(180deg, #059669, #047857);
  border-color: #34d399;
}

.btn-ghost {
  background: rgba(15, 29, 54, 0.85);
  border-color: var(--border-steel);
  color: #dbeafe;
  padding: 7px 8px;
  font-size: 11px;
  flex-direction: row;
  gap: 4px;
  white-space: nowrap;
}

.controls-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  font-size: 10px;
  color: var(--text-muted);
  padding-top: 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.controls-hint strong { color: #e2e8f0; }

/* Post-Run View */
.postrun-title {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.rank-stars {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.stat-box {
  background: rgba(15, 29, 54, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-box span {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.stat-box strong {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}

.cliffhanger-box {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fef3c7;
  text-align: center;
  line-height: 1.3;
}

.lb-submit-row {
  display: flex;
  gap: 6px;
}

.callsign-input {
  flex: 1;
  min-width: 0;
  background: rgba(6, 13, 27, 0.9);
  border: 1.5px solid var(--border-steel);
  border-radius: 8px;
  padding: 6px 9px;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.callsign-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.lb-submit-msg {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  color: var(--accent-emerald);
}

.share-preview {
  margin: 0;
  padding: 7px 9px;
  background: rgba(6, 13, 27, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: #a7f3d0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Modals (Hangar & Leaderboard) */
.modal-card, .lb-card {
  gap: 10px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 8px;
}

.modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.modal-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.hangar-wallet {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-steel);
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.hangar-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hangar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(15, 29, 54, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9px;
  padding: 8px 10px;
}

.hangar-info {
  min-width: 0;
  flex: 1;
}

.hangar-name {
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
}

.hangar-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hangar-pips {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.pip {
  width: 14px;
  height: 5px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.25);
}

.pip.filled {
  background: var(--accent-gold);
}

.hangar-buy {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--accent-gold);
  background: linear-gradient(180deg, #b45309, #92400e);
  color: #fffbeb;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.hangar-buy:disabled {
  opacity: 0.45;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.7);
  cursor: not-allowed;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 120px;
}

.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 29, 54, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
}

.lb-rank {
  width: 24px;
  font-weight: 900;
  color: var(--accent-gold);
}

.lb-name {
  flex: 1;
  font-weight: 800;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.lb-score {
  font-weight: 900;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.lb-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  padding: 24px 10px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 8px;
}

.hangar-records {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Footer */
.footer-bar {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
  background: rgba(6, 12, 24, 0.94);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 20;
}

.footer-brand {
  font-weight: 800;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-meta {
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

/* Mobile Responsive Tightening (390x844 zero horizontal overflow) */
@media (max-width: 520px) {
  .hud-bar {
    padding: 4px 6px;
    gap: 3px;
  }
  .hud-group {
    gap: 3px;
  }
  .hud-pill {
    padding: 2px 5px;
  }
  .hud-lbl {
    font-size: 8px;
  }
  .hud-pill strong {
    font-size: 11px;
  }
  .hud-mission {
    display: none;
  }
  .hud-btn {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }
  .stage-wrap {
    padding: 3px 5px;
    gap: 4px;
  }
  .cabinet-frame {
    border-radius: 8px;
  }
  .ctrl-btn {
    padding: 5px 4px;
    min-height: 40px;
  }
  .ctrl-top {
    font-size: 10px;
  }
  .ctrl-sub {
    font-size: 8px;
  }
  .card {
    padding: 10px 10px;
    gap: 6px;
  }
  .game-title {
    font-size: 23px;
  }
  .fighter-card {
    padding: 5px 7px;
  }
  .fighter-name {
    font-size: 11px;
  }
  .fighter-desc {
    font-size: 9.5px;
  }
  .mission-btn {
    min-height: 42px;
    padding: 4px 2px;
  }
  .btn {
    padding: 7px 6px;
    font-size: 11px;
  }
  .footer-bar {
    padding: 4px 8px;
    font-size: 10px;
  }
  .footer-meta {
    display: none;
  }
}
