* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#intro-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000000;
}

/* ---- Fase 1: carousel layer ---- */
#carousel-canvas,
#carousel-css-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#carousel-css-fallback {
  overflow: hidden;
  background: #000;
}

.sync-css-carousel-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}

/* ---- Black overlay used to cross-fade the carousel to a pure-black stage ---- */
#black-overlay {
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0;
  pointer-events: none;
}

/* ---- Hero logo (Fase 1 + Fase 2 + Fase 3) ---- */
#hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(90px, 14vw, 160px);
  height: auto;
  transform: translate(-50%, -50%);
  fill: #ffffff;
  z-index: 2;
}

/* ---- "2026" title card (Fase 3) ---- */
#number-2026 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  z-index: 3;
}

/* ---- Final lockup: logo + "Streak" (Fase 4) ---- */
#final-reveal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 3;
}

#final-logo {
  width: clamp(70px, 8vw, 110px);
  height: auto;
  fill: #ffffff;
}

#final-text {
  font-size: clamp(28px, 6vw, 60px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* ---- Playback controls (optional, bottom-right) ---- */
#controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

#controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}

#controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
  #final-reveal {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero-logo,
  #number-2026,
  #final-logo,
  #final-text,
  .sync-css-carousel-layer {
    transition-duration: 0.01ms !important;
  }
}
