/* ============================================================
   ZAZIN — Cover Page Stylesheet
   Estructura escalable: assets/css/cover.css
   ============================================================ */

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

/* ── VARIABLES ── */
:root {
  --bg:          #050510;
  --purple:      #8f3ed9;
  --purple-glow: rgba(143, 62, 217, 0.5);
  --gold:        #f0b429;
  --white:       #ffffff;

  /* Fuentes */
  --font-display: 'Science Gothic', 'Orbitron', 'Russo One', sans-serif;
  --font-body:    'Geometria', 'Rajdhani', sans-serif;
}

/* ── BASE ── */
html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow: hidden; /* solo la cover ocupa pantalla completa */
}

/* ── PRELOADER ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-ring {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(143, 62, 217, 0.18);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── FIREFLIES CANVAS ── */
#firefly-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── GAME COVER ── */
.game-cover {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Vídeo de fondo */
.game-cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.45) 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.45) 82%,
    transparent 100%
  );
}

/* Overlay de gradientes */
.game-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5, 5, 16, 0.52) 70%, var(--bg) 100%),
    radial-gradient(circle at 50% 44%, rgba(143, 62, 217, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(0,0,0,0.42), rgba(0,0,0,0.10) 42%, rgba(0,0,0,0.58) 72%, var(--bg));
  pointer-events: none;
}

/* Línea de scroll hint */
.game-cover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: 1px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.82),
    rgba(143, 62, 217, 0.86),
    transparent
  );
  box-shadow: 0 0 16px var(--purple-glow);
  transform: translateX(-50%);
  animation: scrollHint 1.8s ease-in-out infinite;
  pointer-events: none;
}

/* Fallback sin vídeo */
.game-cover.no-video {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(143, 62, 217, 0.35) 0%, transparent 60%),
    linear-gradient(160deg, #0a0520 0%, #050510 60%, #0d0820 100%);
}

/* ── CONTENIDO (aparece tras el vídeo) ── */
.game-cover-content {
  position: relative;
  z-index: 3;
  width: min(920px, calc(100% - 32px));
  padding-top: 72px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.game-cover.is-ended .game-cover-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Título */
.game-cover-content h2 {
  margin: 0 0 26px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 82px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 24px rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.86);
}

/* Botón */
.game-cover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 50px;
  padding: 13px 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 18px rgba(255, 255, 255, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.game-cover-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 26px rgba(255, 255, 255, 0.28),
    0 14px 30px rgba(0, 0, 0, 0.38);
}

/* ── KEYFRAMES ── */
@keyframes scrollHint {
  0%, 100% { opacity: 0.42; transform: translate(-50%, 0); }
  50%       { opacity: 1;    transform: translate(-50%, 10px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .game-cover-content {
    padding-top: 40px;
  }
  .game-cover-btn {
    min-width: 160px;
    font-size: 11px;
  }
}

/* ============================================================
   AQUÍ PUEDES AÑADIR SECCIONES NUEVAS AL ESCALAR
   Ejemplo: .hero { ... }  .about { ... }  .roadmap { ... }
   ============================================================ */
