/* ============================================
   PRIMOFUNSANCTM — ASTRO COSMIC CORE
   Design System & Complete Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Base Colors */
  --bg-primary: #0b0c2f;
  --bg-secondary: #12142c;
  --bg-tertiary: #181a3a;

  /* Glass Surface */
  --glass-bg: rgba(255,255,255,0.05);
  --glass-bg-hover: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur: 18px;

  /* Accent Gradients */
  --gradient-red: linear-gradient(135deg, #f87171, #ef4444);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --gradient-green: linear-gradient(135deg, #22c55e, #4ade80);

  /* Accent Solids */
  --red: #f87171;
  --red-dark: #ef4444;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --green: #22c55e;
  --green-light: #4ade80;

  /* Glow Effects */
  --glow-red: rgba(248,113,113,0.35);
  --glow-purple: rgba(139,92,246,0.35);
  --glow-green: rgba(34,197,94,0.35);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --text-muted: #6b7280;

  /* Fonts */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-btn: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

img, svg {
  display: block;
  max-width: 100%;
}

ul { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Stars Background --- */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur) ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* --- Floating Planets --- */
.floating-planets {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.planet {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.planet-1 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 30% 30%, #a78bfa, #4c1d95);
  top: 15%;
  right: 8%;
  animation: floatPlanet1 20s ease-in-out infinite;
  opacity: 0.5;
}

.planet-2 {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, #f87171, #991b1b);
  top: 60%;
  left: 5%;
  animation: floatPlanet2 25s ease-in-out infinite;
  opacity: 0.4;
}

.planet-3 {
  width: 35px;
  height: 35px;
  background: radial-gradient(circle at 30% 30%, #4ade80, #166534);
  bottom: 20%;
  right: 15%;
  animation: floatPlanet3 18s ease-in-out infinite;
  opacity: 0.45;
}

.planet-4 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #92400e);
  top: 40%;
  left: 12%;
  animation: floatPlanet4 22s ease-in-out infinite;
  opacity: 0.35;
}

@keyframes floatPlanet1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-20px, 30px) rotate(5deg); }
  50% { transform: translate(15px, -20px) rotate(-3deg); }
  75% { transform: translate(-10px, -15px) rotate(7deg); }
}

@keyframes floatPlanet2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(25px, -20px); }
  66% { transform: translate(-15px, 25px); }
}

@keyframes floatPlanet3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -20px); }
}

@keyframes floatPlanet4 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, 15px); }
  66% { transform: translate(-25px, -10px); }
}

/* --- Cursor Trail --- */
#cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.cursor-spark {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkFade 0.6s ease-out forwards;
  z-index: 9999;
}

@keyframes sparkFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0) translateY(-20px); }
}

/* ============================================
   HEADER — ROCKET NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}

.header.scrolled {
  background: rgba(11, 12, 47, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 0 60px rgba(139, 92, 246, 0.08);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-rocket {
  animation: rocketBob 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--glow-purple));
}

@keyframes rocketBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
  position: relative;
  border: 1px solid transparent;
}

.nav-link .nav-icon {
  font-size: 0.85rem;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-color: var(--glass-border);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* CTA Play Now */
.cta-play-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--gradient-red);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px var(--glow-red);
  flex-shrink: 0;
}

.cta-play-now:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px var(--glow-red), 0 0 50px rgba(248, 113, 113, 0.2);
}

.cta-flame {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle, #fbbf24, #f97316, transparent);
  animation: flameFlicker 0.3s ease-in-out infinite alternate;
  transform: rotate(-45deg);
}

@keyframes flameFlicker {
  0% { opacity: 0.7; transform: rotate(-45deg) scale(0.9); }
  100% { opacity: 1; transform: rotate(-45deg) scale(1.1); }
}

.cta-play-now::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: ctaSheen 3s ease-in-out infinite;
}

@keyframes ctaSheen {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.open {
  pointer-events: all;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.mobile-close-btn:hover {
  color: var(--red);
  border-color: var(--red);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
  border: 1px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.mobile-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}

/* ============================================
   HERO — ROCKET LAUNCH ADVENTURE
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-gradient-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero-gradient-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulseGlow 10s ease-in-out infinite 2s;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.5; }
}

.hero-asteroids {
  position: absolute;
  width: 100%;
  height: 100%;
}

.asteroid {
  position: absolute;
  border-radius: 40% 60% 50% 50%;
  background: linear-gradient(135deg, #374151, #1f2937);
  opacity: 0.4;
}

.asteroid-1 {
  width: 20px;
  height: 16px;
  top: 25%;
  left: 20%;
  animation: floatPlanet1 15s linear infinite;
}

.asteroid-2 {
  width: 14px;
  height: 12px;
  top: 60%;
  right: 25%;
  animation: floatPlanet2 12s linear infinite;
}

.asteroid-3 {
  width: 10px;
  height: 8px;
  top: 40%;
  left: 60%;
  animation: floatPlanet3 18s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow-green); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.gradient-text-red {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

.hero-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

/* Rocket Area */
.hero-rocket-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
  animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.rocket-platform {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rocket-ship {
  position: relative;
  transition: transform 1.5s var(--ease-out);
  filter: drop-shadow(0 0 20px var(--glow-purple));
}

.rocket-ship.launched {
  transform: translateY(-600px) scale(0.3);
}

.rocket-ship.launched .rocket-flame {
  opacity: 1;
  transform: scaleY(2.5);
}

.rocket-flame {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) scaleY(0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: all 0.5s var(--ease-out);
}

.flame {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.flame-core {
  width: 16px;
  height: 40px;
  background: linear-gradient(to bottom, #fef3c7, #fbbf24);
  animation: flameAnimate 0.15s ease-in-out infinite alternate;
}

.flame-mid {
  width: 28px;
  height: 50px;
  background: linear-gradient(to bottom, #fbbf24, #f97316);
  margin-top: -20px;
  animation: flameAnimate 0.2s ease-in-out infinite alternate;
  opacity: 0.8;
}

.flame-outer {
  width: 36px;
  height: 55px;
  background: linear-gradient(to bottom, #f97316, #ef4444, transparent);
  margin-top: -25px;
  animation: flameAnimate 0.18s ease-in-out infinite alternate;
  opacity: 0.6;
}

@keyframes flameAnimate {
  0% { transform: scaleX(0.9) scaleY(0.95); }
  100% { transform: scaleX(1.1) scaleY(1.05); }
}

.rocket-smoke {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
}

.smoke-puff {
  position: absolute;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
  animation: smokePuff 1.5s ease-out forwards;
}

@keyframes smokePuff {
  0% {
    opacity: 0.6;
    transform: scale(0.3) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(3) translateY(20px);
  }
}

.launch-btn {
  margin-top: 30px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-purple);
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 20px var(--glow-purple);
  transition: all 0.3s var(--ease-out);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.launch-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 35px var(--glow-purple);
}

.launch-btn:active {
  transform: translateY(0) scale(0.97);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-red);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 35px var(--glow-red), 0 0 60px rgba(248, 113, 113, 0.15);
}

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

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.05);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.9rem;
}

.btn-rocket-icon {
  width: 18px;
  height: 18px;
}

/* ============================================
   GAME SECTION
   ============================================ */
.game-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.game-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.game-card-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, var(--red), var(--purple), var(--green), var(--red));
  background-size: 300% 300%;
  animation: borderGlow 6s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.game-card-inner {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 12px;
}

.game-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.game-dot.red { background: #ef4444; }
.game-dot.purple { background: #8b5cf6; }
.game-dot.green { background: #22c55e; }

.game-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

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

.game-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
}

.game-action-btn:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 62.5%;
  background: #000;
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-secondary);
  z-index: 5;
  transition: opacity 0.5s;
}

.game-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.game-loading p {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.game-info-bar {
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--glass-border);
}

.game-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}

/* Game floating stars */
.game-floating-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.gf-star {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.3;
  animation: starFloat 10s ease-in-out infinite;
}

.gf-star-1 { top: 10%; left: 5%; animation-delay: 0s; color: var(--red); }
.gf-star-2 { top: 30%; right: 3%; animation-delay: 2s; color: #fbbf24; }
.gf-star-3 { bottom: 20%; left: 8%; animation-delay: 4s; color: var(--green); }
.gf-star-4 { bottom: 10%; right: 6%; animation-delay: 6s; color: var(--purple-light); }

@keyframes starFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-15px) rotate(180deg); opacity: 0.6; }
}

/* ============================================
   FEATURES SECTION — COSMIC CARDS
   ============================================ */
.features-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-hover);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.feature-card-large {
  grid-column: span 2;
}

.feature-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease-out);
}

.feature-icon-wrap.red-glow {
  box-shadow: 0 0 30px var(--glow-red);
}

.feature-icon-wrap.purple-glow {
  box-shadow: 0 0 30px var(--glow-purple);
}

.feature-icon-wrap.green-glow {
  box-shadow: 0 0 30px var(--glow-green);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   LEGAL BANNER
   ============================================ */
.legal-banner {
  position: relative;
  padding: 80px 0;
  z-index: 1;
}

.legal-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 40px rgba(248, 113, 113, 0.08);
}

.legal-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-links a {
  font-size: 0.85rem;
  color: var(--purple-light);
  font-weight: 500;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 100px;
  background: rgba(0,0,0,0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-links-group h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s, padding-left 0.3s;
}

.footer-links-group a:hover {
  color: var(--purple-light);
  padding-left: 4px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--red);
  margin-bottom: 12px;
  box-shadow: 0 0 20px var(--glow-red);
}

.age-number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red);
}

.footer-small {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  max-width: 600px;
  margin: 0 auto 8px !important;
  line-height: 1.5;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.modal-overlay[hidden] {
  display: flex;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-spring);
  box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 60px var(--glow-purple);
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transition: all 0.3s;
}

.modal-close:hover {
  color: var(--red);
  border-color: var(--red);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--gradient-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.how-step h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  line-height: 1.5;
}

/* ============================================
   PAGE SYSTEM (Sub-pages)
   ============================================ */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.page-content {
  padding: 0 0 120px;
  position: relative;
  z-index: 1;
}

.content-container {
  max-width: 800px;
}

.content-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-card a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-card a:hover {
  color: var(--text-primary);
}

.legal-page ul {
  padding-left: 20px;
  margin: 12px 0;
  list-style: disc;
}

.legal-page li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 20px var(--glow-purple);
  background: rgba(255,255,255,0.06);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10L6 8z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  align-self: flex-start;
  border: none;
}

.form-success {
  padding: 16px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
}

.form-success p {
  color: var(--green-light) !important;
  font-size: 0.95rem;
  margin: 0 !important;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background: rgba(11, 12, 47, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav {
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}

.bottom-nav-item.active {
  color: var(--purple-light);
}

.bottom-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.bottom-label {
  font-family: var(--font-display);
  letter-spacing: 0.3px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ============================================
   FULLSCREEN GAME
   ============================================ */
.game-iframe-wrapper.fullscreen-active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding-top: 0;
  z-index: 5000;
  background: #000;
}

.game-iframe-wrapper.fullscreen-active .game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card-large {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .cta-play-now:not(.mobile-cta) {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-rocket-area {
    min-height: 300px;
  }

  .game-section,
  .features-section {
    padding: 80px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-large {
    grid-column: span 1;
  }

  .game-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-card {
    flex-direction: column;
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer {
    padding-bottom: 120px;
  }

  .content-card {
    padding: 28px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .page-content {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.9rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.85rem;
  }

  .rocket-ship svg {
    width: 80px;
    height: auto;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .modal-card {
    padding: 28px 20px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}