:root {
  --ink: #07080d;
  --duration: 8000ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  overflow: hidden;
  cursor: none;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  display: block;
}

.hud {
  position: fixed;
  inset: auto 0 0;
  z-index: 5;
  pointer-events: none;
}

.hud__bar {
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #3ee0e8, #ff4d8d);
}

.stage.is-playing .hud__bar {
  animation: fill var(--duration) linear infinite;
}

.hud__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.hud__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.28);
  pointer-events: auto;
  cursor: pointer;
}

.hud__dots button.is-on {
  background: #f4efe6;
}

@keyframes fill {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .hud__bar, .stage.is-playing .hud__bar { animation: none; width: 100%; }
}
