/* ==========================================================================
   ASTEROIDS by Girassol Inteligência - Main Stylesheet
   Retro-Vector CRT Glow & Modern Glassmorphic Mobile-First Design
   ========================================================================== */

:root {
  --bg-space: #030712;
  --bg-panel: rgba(15, 23, 42, 0.78);
  --border-panel: rgba(255, 255, 255, 0.12);
  --primary-glow: #4ade80;
  --accent-sun: #fbbf24;
  --accent-blue: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --atari-blue: #00d8f6;
  --font-retro: 'Press Start 2P', monospace;
  --font-title: 'Orbitron', sans-serif;
  --font-ui: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-space);
  color: var(--text-main);
  font-family: var(--font-ui);
  position: fixed;
  touch-action: none;
}

#app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at center, #0b132b 0%, #030712 100%);
  overflow: hidden;
}

/* ==========================================================================
   Efeitos CRT & Scanlines
   ========================================================================== */
#crt-overlay.crt-active {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 40;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.28) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 4px, 6px 100%;
  opacity: 0.85;
}

#vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 41;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.85);
}

/* ==========================================================================
   Header & Identidade da Marca
   ========================================================================== */
#game-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.85) 0%, rgba(3, 7, 18, 0) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.brand-zone {
  display: flex;
  flex-direction: column;
}

.main-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px var(--primary-glow);
}

.sub-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent-sun);
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  color: var(--text-main);
  padding: 6px 12px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:active, .icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-glow);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}

/* ==========================================================================
   ESTÉTICA FÓSFORO CRT & CORES NEON VETORIAIS (P1 Verde, P3 Âmbar, Ciano)
   ========================================================================== */
.phosphor-glow-green {
  color: #4ade80 !important;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.9), 0 0 20px rgba(74, 222, 128, 0.6), 0 0 35px rgba(34, 197, 94, 0.4);
}

.phosphor-glow-amber {
  color: #fbbf24 !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.9), 0 0 20px rgba(251, 191, 36, 0.6), 0 0 35px rgba(245, 158, 11, 0.4);
}

.phosphor-glow-cyan {
  color: #38bdf8 !important;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.9), 0 0 20px rgba(56, 189, 248, 0.6), 0 0 35px rgba(14, 165, 233, 0.4);
}

.phosphor-panel {
  background: rgba(3, 7, 18, 0.9) !important;
  border: 2px solid #22c55e !important;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.35), inset 0 0 30px rgba(34, 197, 94, 0.08) !important;
  border-radius: 8px !important;
}

.phosphor-subpanel {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 1px solid #16a34a !important;
  border-radius: 6px !important;
}

.phosphor-frame-green {
  border: 2px solid #4ade80 !important;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.7), inset 0 0 10px rgba(74, 222, 128, 0.4);
  background: #022c22 !important;
  color: #4ade80 !important;
}

.phosphor-vector-icon {
  font-size: 1.6rem;
  color: #4ade80;
  text-shadow: 0 0 10px #4ade80;
}

/* Botões Neon Arcade */
.neon-btn {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.8);
  font-family: var(--font-retro);
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.neon-btn-green {
  border: 2px solid #4ade80;
  color: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.5), inset 0 0 10px rgba(74, 222, 128, 0.2);
}

.neon-btn-green:hover, .neon-btn-green:active {
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.9), inset 0 0 20px #86efac;
}

.neon-btn-huge {
  width: 100%;
  padding: 18px 24px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 3px;
  background: #052e16;
  border: 3px solid #4ade80;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.6), inset 0 0 20px rgba(74, 222, 128, 0.3);
  transition: all 0.15s ease;
}

.neon-btn-huge:hover, .neon-btn-huge:active {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(74, 222, 128, 1.0), inset 0 0 25px #ffffff;
}

.neon-btn-cyan {
  border: 1.5px solid #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.neon-btn-amber {
  border: 1.5px solid #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.neon-pill-btn {
  flex: 1;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 8px;
  font-family: var(--font-retro);
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.neon-pill-amber {
  border: 1.5px solid #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.neon-pill-amber:hover {
  background: rgba(251, 191, 36, 0.25);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
}

.neon-pill-red {
  border: 1.5px solid #ef4444;
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.neon-pill-red:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

.neon-pill-cyan {
  border: 1.5px solid #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.neon-pill-cyan:hover {
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
}

.neon-badge-cyan {
  font-family: var(--font-retro);
  font-size: 0.6rem;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 1.5px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   HUD
   ========================================================================== */
#game-hud {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  padding: 4px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 45;
  pointer-events: none;
  font-family: var(--font-retro);
}

.hud-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.hud-value {
  font-size: 1rem;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 8px var(--primary-glow);
}

.hud-subvalue {
  font-size: 0.55rem;
  color: var(--accent-blue);
  margin-top: 4px;
}

.hud-wave {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-sun);
  letter-spacing: 2px;
  padding: 2px 10px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 20px;
}

.hud-lives-container {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.hud-life-icon {
  width: 14px;
  height: 18px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ==========================================================================
   Canvas Wrapper
   ========================================================================== */
#canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Banner do Modo 100% Atari Puro */
.atari-pure-mode-banner {
  background: rgba(3, 7, 18, 0.95);
  border: 2px solid #22c55e;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
  margin-bottom: 8px;
}

.pure-badge {
  font-family: var(--font-retro);
  font-size: 0.55rem;
  color: var(--accent-sun);
  background: rgba(251, 191, 36, 0.15);
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 4px;
}

.pure-banner-info strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.pure-banner-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}
.atari-box-theme {
  background: radial-gradient(circle at center, rgba(185, 28, 28, 0.4) 0%, rgba(3, 7, 18, 0.95) 100%);
  padding: 12px;
  overflow-y: auto;
}

.atari-box-container {
  max-width: 500px;
  width: 100%;
  background: #991b1b; /* Vermelho clássico da capa Atari VCS */
  border: 4px solid #7f1d1d;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(220, 38, 38, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Topo da Caixa */
.atari-vcs-topbar {
  padding: 12px 14px 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #fef2f2;
}

.atari-vcs-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.atari-symbol-logo {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}

.atari-multilingual {
  display: flex;
  flex-direction: column;
  font-size: 0.45rem;
  font-family: var(--font-retro);
  opacity: 0.85;
  line-height: 1.3;
}

.atari-big-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 2px 2px 0px #000;
  line-height: 1;
}

/* Janela de Arte Central */
.atari-box-art-window {
  margin: 4px 10px;
  background: radial-gradient(circle at center, #1e1b4b 0%, #050810 100%);
  border: 3px solid #000;
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.atari-retro-title {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 5px;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px var(--primary-glow);
  margin-bottom: 2px;
}

.atari-byline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 1px;
}

.girassol-gold {
  color: var(--accent-sun);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* Slot do Cartucho / Preview */
.atari-cartridge-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 14px;
}

.pilot-atari-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.pilot-atari-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.atari-prog-contents {
  font-family: var(--font-retro);
  font-size: 0.48rem;
  color: var(--atari-blue);
  letter-spacing: 0.5px;
}

/* Switches Metálicos do Console Atari 2600 */
.atari-console-switches {
  background: linear-gradient(180deg, #1c1917 0%, #292524 50%, #0c0a09 100%);
  border-top: 2px solid #44403c;
  border-bottom: 2px solid #44403c;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switch-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.switch-label {
  font-family: var(--font-retro);
  font-size: 0.5rem;
  color: #a8a29e;
  letter-spacing: 0.5px;
}

.switch-sub {
  font-family: var(--font-title);
  font-size: 0.65rem;
  color: #22c55e;
  font-weight: 700;
}

.metal-switch {
  width: 14px;
  height: 22px;
  background: linear-gradient(90deg, #78716c 0%, #d6d3d1 50%, #57534e 100%);
  border-radius: 2px;
  border: 1px solid #1c1917;
  box-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.metal-switch.active {
  transform: rotate(-15deg);
}

/* Botões de Ação do Menu */
.atari-action-buttons {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #7f1d1d;
}

.atari-big-start-btn {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border: 2px solid #fca5a5;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.4);
  transition: all 0.15s ease;
}

.atari-big-start-btn:active, .atari-big-start-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
}

.atari-secondary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.atari-cartridge-btn {
  padding: 10px 4px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #f8fafc;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.atari-cartridge-btn.tribute-red {
  border-color: #ef4444;
  color: #fca5a5;
}

.atari-cartridge-btn:active, .atari-cartridge-btn:hover {
  background: #1f2937;
  border-color: var(--accent-sun);
}

/* Rodapé */
.atari-box-footer {
  padding: 8px 14px 10px 14px;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.55rem;
  font-family: var(--font-retro);
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-align: center;
}

.atari-box-footer .special-feature {
  color: #fef08a;
}
.game-overlay, .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-panel);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(74, 222, 128, 0.1);
}

.overlay-card {
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.atari-badge {
  font-family: var(--font-retro);
  font-size: 0.55rem;
  color: var(--atari-blue);
  background: rgba(0, 216, 246, 0.12);
  border: 1px solid rgba(0, 216, 246, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.logo-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px var(--primary-glow);
  line-height: 1;
}

.byline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.brand-glow {
  color: var(--accent-sun);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

/* Preview do Piloto */
.pilot-preview-container {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-panel);
  border-radius: 12px;
  padding: 10px 16px;
  width: 100%;
  margin: 4px 0;
}

.pilot-avatar-frame {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary-glow);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  overflow: hidden;
  background: #111827;
  flex-shrink: 0;
}

.pilot-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pilot-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.pilot-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.ship-type {
  font-size: 0.78rem;
  color: var(--accent-blue);
}

/* Botões Retrô */
.menu-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.retro-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.primary-btn {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  border-color: #86efac;
}

.primary-btn:active, .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.7);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-panel);
  color: #f8fafc;
}

.secondary-btn:active, .secondary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-blue);
}

.tribute-btn {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25) 0%, rgba(185, 28, 28, 0.45) 100%);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fee2e2;
}

.tribute-btn:active, .tribute-btn:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.4) 0%, rgba(185, 28, 28, 0.65) 100%);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  border-color: #f87171;
}

/* Modal Tribute */
.atari-header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-retro);
  font-size: 0.62rem;
  color: var(--atari-blue);
  letter-spacing: 1px;
}

.atari-logo-symbol {
  color: #ef4444;
  font-weight: 900;
  font-size: 0.8rem;
}

.tribute-cover-section {
  text-align: center;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.cartridge-badge {
  font-family: var(--font-retro);
  font-size: 0.55rem;
  color: var(--accent-sun);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tribute-headline {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.tribute-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tribute-curiosities-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curiosity-item {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-sun);
  border-radius: 4px 8px 8px 4px;
  padding: 10px 14px;
}

.curiosity-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  display: block;
  margin-bottom: 3px;
}

.curiosity-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.big-start {
  padding: 16px 24px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ==========================================================================
   HALL OF FAME // PLACAR DE RECORDES ESTILO ARCADE
   ========================================================================== */
.arcade-hall-card {
  max-width: 540px !important;
  width: 100%;
  padding: 20px 24px;
}

.gameover-title {
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: 4px;
  margin-bottom: 2px;
}

.final-score-text {
  font-family: var(--font-retro);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.arcade-entry-zone {
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px dashed #4ade80;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
  text-align: center;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.arcade-congrats {
  font-family: var(--font-retro);
  font-size: 0.65rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.initials-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.arcade-initials-field {
  width: 100px;
  height: 44px;
  background: #022c22;
  border: 2px solid #4ade80;
  border-radius: 4px;
  color: #4ade80;
  font-family: var(--font-retro);
  font-size: 1.4rem;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.arcade-initials-field:focus {
  border-color: #86efac;
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.8);
}

.arcade-leaderboard-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  border: 1.5px solid #22c55e;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

.leaderboard-title {
  font-family: var(--font-retro);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 45px 70px 1fr 70px;
  font-family: var(--font-retro);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.arcade-scores-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 45px 70px 1fr 70px;
  font-family: var(--font-retro);
  font-size: 0.72rem;
  padding: 4px 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
  align-items: center;
}

.leaderboard-row.top-rank-1 {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.rank-num {
  color: var(--text-muted);
}

.gameover-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.discrete-pill-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--text-muted);
  padding: 8px 10px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.discrete-pill-btn:active, .discrete-pill-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: var(--primary-glow);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
  transform: translateY(-1px);
}

.pill-icon {
  font-size: 0.95rem;
}

.text-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px;
}

.small-btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  width: auto;
}

.quick-controls-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ==========================================================================
   Modais
   ========================================================================== */
.modal-card {
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-panel);
}

.modal-header h2 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: #ffffff;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-panel);
  background: rgba(0, 0, 0, 0.2);
  scrollbar-width: none;
}

.tab-btn {
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--primary-glow);
  border-bottom-color: var(--primary-glow);
  background: rgba(74, 222, 128, 0.08);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.tab-pane.active {
  display: flex;
}

.tab-pane h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--accent-sun);
  margin-top: 4px;
}

.setting-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.separator {
  border: none;
  border-top: 1px solid var(--border-panel);
  margin: 8px 0;
}

/* Upload e Avatares */
.avatar-upload-zone {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-circle-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed var(--primary-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  background: #111827;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-circle-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-input-hidden {
  display: none;
}

.presets-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.preset-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-panel);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
}

.preset-avatar-btn.active, .preset-avatar-btn:hover {
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.15);
}

.asteroid-photos-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 50px;
  margin-top: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
}

.asteroid-photo-item {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-sun);
}

.asteroid-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asteroid-photo-item .remove-photo {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(239, 68, 68, 0.85);
  color: white;
  border: none;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
}

/* Grids de Modelos */
.ship-models-grid, .asteroid-styles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.model-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-panel);
  border-radius: 10px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.model-card.active, .model-card:hover {
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.08);
}

.model-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.style-icon {
  font-size: 2rem;
}

/* Paleta de Cores */
.color-picker-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.color-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px var(--c);
}

.color-dot.active {
  border-color: #ffffff;
  transform: scale(1.15);
}

/* Toggles */
.toggle-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-glow);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.retro-select {
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--border-panel);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-panel);
}

.hidden {
  display: none !important;
}

/* Responsividade Mobile Específica */
@media (max-width: 600px) {
  .logo-title {
    font-size: 1.9rem;
    letter-spacing: 4px;
  }
  .desktop-hint {
    display: none;
  }
  .btn-text {
    display: none;
  }
  .ship-models-grid {
    grid-template-columns: 1fr;
  }
}
