/* Reset, letterboxed 1920×1080 stage, slide stacking */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--eerie); }
body { font-family: var(--font); color: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: none; }

#viewport { position: fixed; inset: 0; overflow: hidden; background: var(--eerie); }
#stage {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
}

.slide {
  position: absolute; inset: 0;
  width: 1920px; height: 1080px;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  visibility: hidden;
}
.slide.is-active { opacity: 1; pointer-events: auto; visibility: visible; }
.slide.is-leaving { visibility: visible; }

/* ---------- living world (js/world.js) — behind every slide ---------- */
.world { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; background: var(--eerie); }
.world-glow { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.world-glow-a { width: 2000px; height: 2000px; background: radial-gradient(closest-side, rgba(255, 119, 5, .55), rgba(255, 119, 5, .18) 45%, rgba(255, 119, 5, 0) 100%); }
.world-glow-b { width: 1800px; height: 1800px; background: radial-gradient(closest-side, rgba(255, 62, 102, .42), rgba(255, 62, 102, .12) 45%, rgba(255, 62, 102, 0) 100%); }
#world { position: absolute; inset: 0; width: 1920px; height: 1080px; opacity: .3; }
.world-floor { position: absolute; inset: 0; background: url(../img/social-story-bg.jpg) center bottom / 100% auto no-repeat; mix-blend-mode: screen; opacity: 0; }
.world-light {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(900px 600px at -6% 106%, rgba(255, 119, 5, .10), rgba(255, 119, 5, 0) 70%),
    radial-gradient(800px 560px at 106% -8%, rgba(255, 62, 102, .08), rgba(255, 62, 102, 0) 70%),
    var(--seasalt);
}
#stage > .slide { z-index: 1; }
