/* ═══════════════════════════════════════════════
   SKYLIFE RP — AAA IMMERSIVE WEBGL EXPERIENCE
   HUD · Cyberpunk · Motion
══════════════════════════════════════════════ */

:root {
  --c-bg: #000000;
  --c-brand: #00e080;
  --c-brand-glow: rgba(0, 224, 128, 0.4);
  --c-brand-dim: rgba(0, 224, 128, 0.1);
  --c-text: #ffffff;
  --c-muted: rgba(255, 255, 255, 0.5);
  
  --font-hud: 'Rajdhani', sans-serif;
  --font-display: 'Orbitron', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html, body {
  width: 100%; height: 100vh;
  overflow: hidden; /* No scrolling in AAA start screen */
  background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-hud);
  cursor: crosshair;
}

a { text-decoration: none; color: inherit; }

/* ── 1. BACKGROUND CANVAS & OVERLAYS ── */
#ambient-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

/* Custom Cursor Flashlight */
#cursor-glow {
  position: absolute; top: 0; left: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--c-brand-dim) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* CRT Scanlines */
.crt-overlay {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 3px, 3px 100%;
  opacity: 0.4;
}

/* ── 2. HUD CONTAINER (Layer 10) ── */
.hud-container {
  position: relative; z-index: 10;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3vh 4vw;
  pointer-events: none; /* Let pointer events pass to children */
}
.hud-container > * { pointer-events: auto; }

/* ── HEADER ── */
.hud-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  animation: hudFadeIn 1s ease-out forwards;
}
.hud-brand {
  display: flex; align-items: center; gap: 12px;
}
.status-dot {
  width: 8px; height: 8px; background: var(--c-brand); border-radius: 50%;
  box-shadow: 0 0 10px var(--c-brand);
}
.blink { animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.glitch-text {
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.2em;
  color: var(--c-brand); text-transform: uppercase;
}

.hud-stats { display: flex; gap: 24px; }
.stat-box { display: flex; flex-direction: column; align-items: flex-end; }
.stat-box .lbl { font-size: 10px; color: var(--c-brand); letter-spacing: 0.2em; }
.stat-box .val { font-size: 18px; font-weight: 600; font-family: var(--font-display); letter-spacing: 0.1em; }
.stat-box small { font-size: 10px; color: var(--c-muted); }

/* ── MAIN MENU ── */
.hud-main {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.title-container {
  text-align: center; margin-bottom: 6vh;
  transform-style: preserve-3d;
}
.aaa-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 900; line-height: 0.8; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.1);
  background: url('/assets/hero-main.jpg') center/cover; /* Text clipping */
  -webkit-background-clip: text;
  position: relative;
  text-shadow: 0 0 40px rgba(0, 224, 128, 0.2);
  transform: translateZ(30px);
}
.aaa-subtitle {
  font-size: clamp(14px, 2vw, 24px); letter-spacing: 0.5em;
  color: var(--c-brand); margin-top: 10px; font-weight: 600;
  text-shadow: 0 0 10px var(--c-brand-glow);
  transform: translateZ(15px);
}

.menu-container {
  display: flex; flex-direction: column; gap: 16px; align-items: center; width: 100%; max-width: 400px;
}

/* Menu Buttons */
.menu-btn {
  position: relative; display: block; width: 100%; text-align: center;
  padding: 16px; background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all 0.3s;
  overflow: hidden;
  transform-style: preserve-3d;
}
.menu-btn .btn-text {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em; transition: 0.3s;
}
.menu-btn .btn-decorator {
  position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: var(--c-brand); opacity: 0; transition: 0.3s;
}

.menu-btn:hover {
  background: rgba(0,224,128,0.1); border-color: var(--c-brand);
  transform: scale(1.05) translateZ(20px);
  box-shadow: 0 0 20px var(--c-brand-glow);
}
.menu-btn:hover .btn-text { color: var(--c-brand); text-shadow: 0 0 8px var(--c-brand); }
.menu-btn:hover .btn-decorator { opacity: 1; }

.primary-btn { border-color: rgba(0,224,128,0.4); }
.primary-btn .btn-text { color: var(--c-brand); }

/* ── FOOTER ── */
.hud-footer {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--c-muted); letter-spacing: 0.1em;
  font-family: var(--font-mono);
  animation: hudFadeIn 1s ease-out 0.5s forwards; opacity: 0;
}

/* Animations */
@keyframes hudFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hud-stats { display: none; }
  .hud-header { justify-content: center; }
  .aaa-title { -webkit-text-stroke: 1px rgba(255,255,255,0.2); }
}
