:root {
  --yellow: #ffe55e;
  --purple: #5a2fe8;
  --pink: #ff5fa2;
  --ink: #1d1534;
  --light: #fff6d6;
  --shadow: rgba(30, 12, 74, 0.25);
}

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

body {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(255, 229, 94, 0.55), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(90, 47, 232, 0.35), transparent 45%),
    radial-gradient(circle at 70% 85%, rgba(255, 95, 162, 0.35), transparent 50%),
    #fff9ea;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 2.5rem;
  position: relative;
  overflow-x: hidden;
}

.background-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 229, 94, 0.25), rgba(90, 47, 232, 0.12), rgba(255, 95, 162, 0.18));
  z-index: 0;
  pointer-events: none;
}

.sparkles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(90, 47, 232, 0.18) 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 95, 162, 0.2) 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 229, 94, 0.3) 2px, transparent 2px);
  background-size: 120px 120px, 160px 160px, 200px 200px;
  background-position: 0 0, 40px 30px, 80px 60px;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.topbar {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.back-link {
  text-decoration: none;
  color: var(--purple);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px var(--shadow);
  width: fit-content;
}

.title-wrap {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.75rem;
  color: rgba(29, 21, 52, 0.65);
}

h1 {
  font-family: "Parisienne", "Rubik Moonrocks", "Trebuchet MS", sans-serif;
  font-size: clamp(2.6rem, 4vw + 1rem, 4.4rem);
  color: var(--purple);
  margin-top: 0.25rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow: 0 8px 18px rgba(90, 47, 232, 0.25);
}

.slide-counter {
  text-align: right;
  font-weight: 700;
  color: var(--pink);
}

.deck {
  width: min(100%, 980px);
  margin-top: 1.5rem;
  z-index: 1;
}

.slide {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  min-height: 420px;
  box-shadow: 0 18px 40px var(--shadow);
  border: 2px solid rgba(90, 47, 232, 0.15);
  display: none;
  animation: slideIn 0.6s ease;
}

.slide.active {
  display: block;
}

.slide-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slide h2 {
  font-size: clamp(1.6rem, 2.3vw + 1rem, 2.6rem);
  color: var(--purple);
}

.lead {
  font-size: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  width: fit-content;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(255, 229, 94, 0.35);
}

.highlight-box {
  background: rgba(255, 95, 162, 0.2);
  border: 2px dashed rgba(255, 95, 162, 0.5);
  padding: 0.8rem 1rem;
  border-radius: 18px;
  width: fit-content;
  font-weight: 600;
}

.agenda {
  list-style: none;
  counter-reset: agenda;
  display: grid;
  gap: 0.6rem;
}

.agenda li {
  counter-increment: agenda;
  background: rgba(255, 229, 94, 0.25);
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  font-weight: 600;
}

.agenda li::before {
  content: counter(agenda) ".";
  margin-right: 0.6rem;
  color: var(--purple);
  font-weight: 700;
}

.reasons,
.sources {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.reasons li,
.sources li {
  background: rgba(90, 47, 232, 0.08);
  border-radius: 16px;
  padding: 0.6rem 0.9rem;
  border-left: 4px solid var(--pink);
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 280px);
  gap: 1.2rem;
  align-items: center;
}

.intro-points {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.intro-points li {
  background: rgba(255, 229, 94, 0.3);
  border-radius: 16px;
  padding: 0.7rem 1rem;
  border-left: 4px solid var(--purple);
}

.intro-photo {
  margin: 0;
  display: flex;
  justify-content: center;
}

.intro-photo img {
  width: 100%;
  max-width: 240px;
  border-radius: 22px;
  border: 3px solid rgba(255, 95, 162, 0.35);
  box-shadow: 0 14px 28px rgba(90, 47, 232, 0.22);
  object-fit: cover;
}

.cover-photo {
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 0.6rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 95, 162, 0.18), rgba(255, 229, 94, 0.18));
  box-shadow: 0 16px 30px rgba(90, 47, 232, 0.15);
}

.cover-photo img {
  width: min(100%, 460px);
  border-radius: 28px;
  border: 2px solid rgba(255, 95, 162, 0.35);
  box-shadow: 0 24px 46px rgba(90, 47, 232, 0.22);
  object-fit: cover;
}

.question {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink);
}

.film-link {
  width: fit-content;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 229, 94, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(255, 229, 94, 0.35);
}

.film-link:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.stickers {
  display: flex;
  gap: 0.6rem;
  font-size: 1.7rem;
}

.thanks {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple);
}

.closing-photo {
  margin: 0;
  display: flex;
  justify-content: center;
}

.closing-photo img {
  width: min(100%, 320px);
  border-radius: 24px;
  border: 2px solid rgba(90, 47, 232, 0.2);
  box-shadow: 0 16px 28px rgba(90, 47, 232, 0.2);
  object-fit: cover;
}

.controls {
  margin-top: 1.5rem;
  width: min(100%, 980px);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.nav-button {
  border: none;
  background: var(--purple);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(90, 47, 232, 0.25);
}

.nav-button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

.progress {
  flex: 1;
  height: 10px;
  background: rgba(90, 47, 232, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  z-index: 1;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(90, 47, 232, 0.25);
  cursor: pointer;
}

.dot.is-active {
  background: var(--pink);
  transform: scale(1.2);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .slide-counter {
    text-align: center;
  }

  .controls {
    flex-direction: column;
  }

  .nav-button {
    width: 100%;
  }

  .intro-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-photo img {
    max-width: 220px;
  }
}
