/* Cyber Pinball Overdrive — Responsive 16-Bit Arcade Cabinet Styles */
:root {
  --bg-deep: #050814;
  --bg-panel: rgba(12, 18, 38, 0.92);
  --border-neon: rgba(56, 189, 248, 0.34);
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --gold: #fbbf24;
  --emerald: #34d399;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --dmd-color: #fbbf24;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  overflow: hidden;
  background: radial-gradient(circle at 50% 15%, #121c3d 0%, #060916 62%, #03050c 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

#app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  max-width: 100vw;
  overflow: hidden;
}

/* Top Utility Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(7, 11, 24, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.22);
  flex-shrink: 0;
  z-index: 20;
}

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

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

.brand-title {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #f8fafc;
  white-space: nowrap;
}

.mode-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.16);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.45);
  white-space: nowrap;
}

.mode-pill.daily {
  background: rgba(251, 191, 36, 0.18);
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.55);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.credits-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.top-btn {
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s, background 0.14s, transform 0.12s;
}

.top-btn:hover {
  border-color: var(--cyan);
  background: rgba(51, 65, 85, 0.92);
  color: #fff;
}

.top-btn.icon-only {
  padding: 4px 7px;
}

/* Challenge Banner */
.challenge-banner {
  text-align: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fef3c7;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(236, 72, 153, 0.25), rgba(245, 158, 11, 0.22));
  border-bottom: 1px solid rgba(251, 191, 36, 0.4);
  flex-shrink: 0;
}

/* Main Cabinet Stage */
.cabinet-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  padding: 6px 10px 4px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}

.side-panel {
  width: 245px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  flex-shrink: 0;
}

.panel-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 18px rgba(0, 240, 255, 0.05);
}

.panel-heading {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding-bottom: 5px;
}

.mission-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #cbd5e1;
}

.mission-row:last-child {
  margin-bottom: 0;
}

.mission-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 5px;
  flex-shrink: 0;
}

.mission-tag.cyan { background: rgba(0, 240, 255, 0.16); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.45); }
.mission-tag.magenta { background: rgba(255, 43, 214, 0.16); color: #f472b6; border: 1px solid rgba(255, 43, 214, 0.45); }
.mission-tag.gold { background: rgba(251, 191, 36, 0.18); color: var(--gold); border: 1px solid rgba(251, 191, 36, 0.5); }

.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #cbd5e1;
  margin-bottom: 5px;
}

.key-row kbd {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
  color: #f8fafc;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-line strong {
  color: #f8fafc;
}

.daily-mod-name {
  font-size: 13px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.daily-mod-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  margin: 3px 0 9px;
}

.side-cta {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(234, 88, 12, 0.24));
  color: #fef3c7;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.side-cta:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.42), rgba(234, 88, 12, 0.42));
}

/* Center Cabinet Column */
.cabinet-center {
  flex: 1;
  min-width: 0;
  min-height: 0;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* Retro Dot-Matrix Display (DMD) Banner */
.dmd-bezel {
  width: 100%;
  background:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 4px 4px,
    linear-gradient(180deg, #0b0f1d 0%, #05070f 100%);
  border: 2px solid rgba(0, 240, 255, 0.45);
  border-radius: 10px;
  padding: 5px 9px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.16), inset 0 0 14px rgba(0, 0, 0, 0.85);
  flex-shrink: 0;
}

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

.dmd-stat {
  display: flex;
  flex-direction: column;
  min-width: 72px;
}

.dmd-stat.right {
  text-align: right;
}

.dmd-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
}

.dmd-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.dmd-val.score-val {
  color: var(--dmd-color);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.55);
}

.dmd-center-readout {
  flex: 1;
  min-width: 0;
  text-align: center;
  overflow: hidden;
}

.dmd-main {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--dmd-color);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dmd-sub {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dmd-status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.status-chip {
  font-family: ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-chip.cyan { background: rgba(0, 240, 255, 0.14); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.42); }
.status-chip.magenta { background: rgba(255, 43, 214, 0.14); color: #f472b6; border: 1px solid rgba(255, 43, 214, 0.45); }
.status-chip.emerald { background: rgba(52, 211, 153, 0.18); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.5); }
.status-chip.warn { background: rgba(239, 68, 68, 0.25); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.65); }

/* Canvas Container — crisp aspect-locked scaling */
.canvas-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#pinball-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  aspect-ratio: 480 / 840;
  border-radius: 14px;
  border: 2px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.18), 0 12px 32px rgba(0, 0, 0, 0.65);
  image-rendering: pixelated;
  background: #070b18;
  touch-action: none;
}

/* Tactile Controls Deck */
.controls-deck {
  display: grid;
  grid-template-columns: 1.3fr 0.78fr 0.95fr 1.3fr;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 5px 10px 6px;
  flex-shrink: 0;
  touch-action: none;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  border-radius: 11px;
  border: 1.5px solid rgba(148, 163, 184, 0.38);
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.6);
  transition: transform 0.06s, border-color 0.1s, background 0.1s;
}

.ctrl-btn:active,
.ctrl-btn.active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.flip-btn {
  border-color: rgba(0, 240, 255, 0.55);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.55), rgba(15, 23, 42, 0.95));
  color: #e0f2fe;
}

.flip-btn:active,
.flip-btn.active {
  background: linear-gradient(180deg, #06b6d4, #0284c7);
  color: #020617;
  border-color: #67e8f9;
}

.launch-btn {
  border-color: rgba(251, 191, 36, 0.6);
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.55), rgba(30, 20, 8, 0.95));
  color: #fef3c7;
}

.launch-btn.pulse {
  animation: launchPulse 1.1s ease-in-out infinite;
}

.launch-btn:active,
.launch-btn.active {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #020617;
}

.nudge-btn {
  border-color: rgba(244, 114, 182, 0.5);
  background: linear-gradient(180deg, rgba(131, 24, 67, 0.5), rgba(20, 12, 32, 0.95));
  color: #fbcfe8;
  font-size: 11px;
}

@keyframes launchPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.55), 0 3px 0 rgba(0, 0, 0, 0.6); }
  50% { box-shadow: 0 0 14px 2px rgba(251, 191, 36, 0.75), 0 3px 0 rgba(0, 0, 0, 0.6); }
}

/* Docked Footer Bar (for studio-bar.js) */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  padding-bottom: max(5px, env(safe-area-inset-bottom));
  background: rgba(5, 8, 20, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 11px;
  color: #64748b;
  flex-shrink: 0;
  min-height: 34px;
}

.footer-note {
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fixed Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 6, 16, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  max-height: 90dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, #101935 0%, #090e20 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.42);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 32px rgba(0, 240, 255, 0.16);
  text-align: center;
}

.modal-wide {
  max-width: 560px;
  text-align: left;
}

.modal-kicker {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.modal-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #00f0ff, #f8fafc, #ff2bd6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #cbd5e1;
}

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

.ov-stat-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ov-stat-k {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.ov-stat-v {
  font-family: ui-monospace, monospace;
  font-size: 18px;
  font-weight: 900;
}

.gold { color: var(--gold); }
.cyan { color: var(--cyan); }
.magenta { color: #f472b6; }
.emerald { color: var(--emerald); }

.ov-progress {
  margin-bottom: 12px;
  text-align: left;
}

.ov-credits-earned {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
  margin-bottom: 6px;
}

.ov-badges-earned {
  font-size: 12px;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 7px;
  text-align: center;
}

.cliffhanger-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 9px;
  padding: 7px 10px;
}

.cliffhanger-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 5px;
}

.cliffhanger-bar {
  height: 6px;
  background: rgba(51, 65, 85, 0.8);
  border-radius: 999px;
  overflow: hidden;
}

.cliffhanger-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 0.3s ease;
}

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

.lb-submit-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.lb-submit-status {
  font-size: 11.5px;
  color: var(--emerald);
  margin-bottom: 8px;
}

.ov-challenge-result {
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}

.modal-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-sub-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.btn-primary, .btn-accent, .btn-secondary, .btn-ghost {
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid transparent;
  transition: transform 0.12s, filter 0.12s;
}

.btn-primary:hover, .btn-accent:hover, .btn-secondary:hover, .btn-ghost:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #ffffff;
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #ffffff;
  border-color: rgba(253, 224, 71, 0.45);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.92);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
  padding: 8px 12px;
  font-size: 12px;
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.28);
  padding: 7px 11px;
  font-size: 12px;
}

.share-feedback {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  margin-top: 4px;
}

/* Garage & Leaderboard Modals */
.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-h2 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 900;
  color: #f8fafc;
}

.modal-meta-line {
  font-size: 12px;
  color: #94a3b8;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.garage-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.tab-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.tab-btn.active {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--cyan);
  color: #f8fafc;
}

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

.theme-card, .badge-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 11px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-card.equipped {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
}

.theme-swatch-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.theme-name {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.theme-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
  flex: 1;
}

.theme-action-btn {
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.35);
  color: #e0f2fe;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.theme-action-btn.locked {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(180, 83, 9, 0.25);
  color: var(--gold);
}

.theme-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.badge-card.unlocked {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(6, 78, 59, 0.22);
}

.badge-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
}

.badge-desc {
  font-size: 11px;
  color: #94a3b8;
}

.daily-rule-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(236, 72, 153, 0.16));
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
}

.daily-rule-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--gold);
}

.daily-rule-desc {
  font-size: 11.5px;
  color: #e2e8f0;
  margin-top: 2px;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  max-height: 240px;
  overflow-y: auto;
}

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

.lb-rank {
  font-weight: 900;
  color: var(--cyan);
  width: 28px;
}

.lb-name {
  flex: 1;
  font-weight: 700;
  color: #f8fafc;
}

.lb-score {
  font-family: ui-monospace, monospace;
  font-weight: 900;
  color: var(--gold);
}

.lb-empty {
  text-align: center;
  padding: 18px 8px;
  font-size: 12.5px;
  color: #94a3b8;
}

/* Responsive Breakpoints (Mobile 390x844 — 0px horizontal overflow!) */
@media (max-width: 920px) {
  .side-panel {
    display: none;
  }
  .cabinet-stage {
    padding: 4px 6px 3px;
  }
}

@media (max-width: 520px) {
  .top-bar {
    padding: 5px 8px;
    gap: 4px;
  }
  .brand-title {
    font-size: 11.5px;
    letter-spacing: 0.04em;
  }
  .mode-pill {
    display: none;
  }
  .top-btn {
    padding: 4px 7px;
    font-size: 11px;
  }
  .credits-pill {
    padding: 3px 6px;
    font-size: 11px;
  }
  .dmd-bezel {
    padding: 4px 7px;
  }
  .dmd-val {
    font-size: 12.5px;
  }
  .dmd-main {
    font-size: 11.5px;
  }
  .dmd-sub {
    font-size: 9.5px;
  }
  .controls-deck {
    gap: 6px;
    padding: 4px 8px 5px;
  }
  .ctrl-btn {
    height: 42px;
    font-size: 11.5px;
  }
  .footer-note {
    font-size: 10px;
  }
  .garage-grid {
    grid-template-columns: 1fr;
  }
  .modal-cta-row {
    grid-template-columns: 1fr;
  }
}
