/* ==============================================================================
   RETROGG.SPACE - DEEP SPACE CYBERPUNK STYLES
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg-void: #05070e;
  --bg-void-card: #0b0e1a;
  --bg-void-elevated: #12172a;
  --cyan-glow: #00f0ff;
  --magenta-glow: #ff007f;
  --amber-glow: #ffbe0b;
  --purple-deep: #7928ca;
  --text-main: #f3f6fc;
  --text-muted: #8e9bb8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 240, 255, 0.35);
  --font-body: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-pixel: 'Press Start 2P', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  background-color: var(--bg-void);
  min-height: 100vh;
}

/* Background Cosmic Canvas (Hardware-accelerated static CSS nebulae) */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.04) 0%, transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(255, 0, 127, 0.035) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(121, 40, 202, 0.04) 0%, transparent 45%),
    #05070e;
}

/* Scanline Overlay Effect (Lightened to preserve game brightness) */
.scanlines {
  position: relative;
}
.scanlines::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.08) 50%), linear-gradient(90deg, rgba(0, 240, 255, 0.02), rgba(255, 0, 127, 0.02));
  z-index: 20;
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
  opacity: 0.22;
}

#void-game-canvas {
  filter: brightness(1.22) contrast(1.08);
}

/* Neon Glow Utilities */
.neon-glow-cyan {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7), 0 0 25px rgba(0, 240, 255, 0.4);
}
.neon-glow-magenta {
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.7), 0 0 25px rgba(255, 0, 127, 0.4);
}
.neon-glow-amber {
  text-shadow: 0 0 10px rgba(255, 190, 11, 0.7), 0 0 25px rgba(255, 190, 11, 0.4);
}

.box-glow-cyan {
  box-shadow: 0 0 20px -3px rgba(0, 240, 255, 0.45), 0 0 40px -10px rgba(0, 240, 255, 0.2);
}
.box-glow-magenta {
  box-shadow: 0 0 20px -3px rgba(255, 0, 127, 0.45), 0 0 40px -10px rgba(255, 0, 127, 0.2);
}
.box-glow-card {
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(11, 14, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

/* Pixel Font Utility */
.font-arcade {
  font-family: var(--font-pixel);
  letter-spacing: 0.05em;
}

.font-mono-code {
  font-family: var(--font-mono);
}

/* Floating Spacecraft Animation in Hero */
@keyframes floatShip {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.floating-ship {
  animation: floatShip 5s ease-in-out infinite;
}

/* Thruster flame pulse */
@keyframes thrusterGlow {
  0% { opacity: 0.6; transform: scaleY(0.9); }
  50% { opacity: 1; transform: scaleY(1.2); filter: drop-shadow(0 0 12px #00f0ff); }
  100% { opacity: 0.6; transform: scaleY(0.9); }
}

.thruster-pulse {
  animation: thrusterGlow 0.8s ease-in-out infinite alternate;
}

/* Animated gradient border */
.gradient-border-wrap {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(255, 0, 127, 0.4), rgba(255, 190, 11, 0.2));
  padding: 1px;
  border-radius: 1rem;
}

/* Arcade Cabinet Styling for Embedded Game */
.arcade-cabinet-shell {
  background: radial-gradient(circle at 50% 20%, #161b2e 0%, #070912 85%);
  border: 2px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.15), inset 0 0 35px rgba(0, 0, 0, 0.8);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
}

.cabinet-bezel {
  background: #020408;
  border: 2px solid #1a2238;
  border-radius: 0.75rem;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.95);
  position: relative;
  overflow: hidden;
}

/* Marquee Header */
.marquee-sign {
  background: linear-gradient(90deg, #090c17, #131a30, #090c17);
  border-bottom: 2px solid rgba(0, 240, 255, 0.3);
  text-shadow: 0 0 12px #00f0ff, 0 0 25px #00f0ff;
}

/* Virtual Touchpad for Mobile Game */
.touch-control-surface {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05070e;
}
::-webkit-scrollbar-thumb {
  background: #1b233a;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* Radar & Telemetry HUD Animations */
@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.radar-ring-cw {
  transform-origin: center;
  animation: spinClockwise 20s linear infinite;
}

.radar-ring-ccw {
  transform-origin: center;
  animation: spinCounterClockwise 14s linear infinite;
}

.glow-filter-cyan {
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.7));
}

.glow-filter-magenta {
  filter: drop-shadow(0 0 15px rgba(255, 0, 127, 0.7));
}

/* Hollow Most Popular Badge with Stars Background */
.starry-hollow-badge {
  background: rgba(7, 12, 28, 0.85);
  border: 1.5px solid rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25), inset 0 0 12px rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-image: 
    radial-gradient(1px 1px at 12% 28%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 28% 70%, #00f0ff, transparent),
    radial-gradient(1px 1px at 50% 20%, #ffbe0b, transparent),
    radial-gradient(1.5px 1.5px at 72% 75%, #ffffff, transparent),
    radial-gradient(1px 1px at 88% 32%, #ff007f, transparent);
  background-size: 100% 100%;
  color: #00f0ff;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
}

.starry-hollow-badge:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.5), inset 0 0 16px rgba(0, 240, 255, 0.2);
}

