/* ---------------------------------------------------------------------
   Interactive hero — full-bleed, edge-to-edge dark stage for a
   mouse-tracking sprite character. No copy, no chrome: the character
   *is* the hero. Self-contained: no external fonts or assets other
   than the sprite sheet.
--------------------------------------------------------------------- */

:root {
  --hero-bg-0: #0b0b0d;
  --hero-bg-1: #050506;
  --hero-accent-dim: rgba(255, 122, 217, 0.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
}

.hero {
  position: relative;
  width: 100%;   /* not 100vw — avoids overflow when embedded inside a
                    padded page container (e.g. a CMS content area) */
  height: 100vh;
  height: 100dvh; /* avoids mobile browser-chrome jump where supported */
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 122, 217, 0.08), transparent 60%),
    radial-gradient(ellipse 140% 90% at 50% 100%, var(--hero-bg-0) 0%, var(--hero-bg-1) 65%);
  isolation: isolate;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.is-ready {
  opacity: 1;
}

.hero::before {
  /* soft vignette so the full-bleed stage doesn't look flat */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 42%, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(90vw, 1100px);
  height: min(90vh, 1100px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--hero-accent-dim), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.hero canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .hero { transition-duration: 0.01ms !important; }
}
