*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  overflow: hidden;
}

button,
a {
  font-family: inherit;
}

/* =========================================================
   STAR WARS-ACHTIGE CRAWL (geen officiële wordmark)
   ========================================================= */

.galaxy {
  background: #000;
  color: #ffe81f;
  font-family: "Pathway Gothic One", "News Cycle", "News Gothic MT", sans-serif;
}

#stars,
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#fx {
  z-index: 8;
}

.skip-btn,
.mute-btn {
  position: fixed;
  top: 16px;
  z-index: 20;
  appearance: none;
  border: 1px solid rgba(255, 232, 31, 0.45);
  background: rgba(0, 0, 0, 0.55);
  color: #ffe81f;
  font-family: "Pathway Gothic One", "News Cycle", sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.skip-btn { right: 16px; }
.mute-btn { left: 16px; }

.skip-btn:hover,
.skip-btn:focus-visible,
.mute-btn:hover,
.mute-btn:focus-visible,
.pause-btn:hover,
.pause-btn:focus-visible {
  background: rgba(255, 232, 31, 0.12);
}

.crawl-controls {
  position: fixed;
  right: 16px;
  top: 72px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 232, 31, 0.45);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #ffe81f;
  font-family: "Pathway Gothic One", "News Cycle", sans-serif;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pause-btn {
  appearance: none;
  border: 1px solid rgba(255, 232, 31, 0.45);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 88px;
}

.speed-label {
  font-size: 0.62rem;
  opacity: 0.85;
}

.speed-slider {
  width: 92px;
  height: 18px;
  accent-color: #ffe81f;
  cursor: pointer;
}

.speed-value {
  font-size: 0.78rem;
}

.start-screen {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 72px 24px;
}

.start-kicker {
  margin: 0 0 8px;
  max-width: 16em;
  color: #4bd5ee;
  font-family: "News Cycle", "News Gothic MT", sans-serif;
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.start-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 42px;
  font-family: "Bebas Neue", "Pathway Gothic One", sans-serif;
  font-weight: 400;
  line-height: 0.72;
  text-transform: uppercase;
  color: #ffe81f;
  transform: perspective(460px) rotateX(34deg);
  text-shadow:
    0 2px 0 #b39800,
    0 5px 0 #6a5800,
    0 18px 36px rgba(0, 0, 0, 0.55);
}

.start-logo span:first-child {
  font-size: clamp(5rem, 22vw, 11rem);
  letter-spacing: 0.12em;
}

.start-logo span:last-child {
  font-size: clamp(2.6rem, 11vw, 5.6rem);
  letter-spacing: 0.22em;
}

.start-btn {
  appearance: none;
  border: 1px solid #ffe81f;
  background: transparent;
  color: #ffe81f;
  font-family: "Pathway Gothic One", "News Cycle", sans-serif;
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding: 12px 36px;
  border-radius: 0;
  cursor: pointer;
}

.start-btn:hover,
.start-btn:focus-visible {
  transform: scale(1.04);
}

.long-ago {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  font-family: "News Cycle", "News Gothic MT", sans-serif;
  font-size: clamp(1.2rem, 3.8vw, 1.7rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #4bd5ee;
  font-weight: 400;
}

body[data-scene="intro"] .long-ago {
  animation: intro-fade 5s ease forwards;
}

@keyframes intro-fade {
  0% { opacity: 0; }
  18% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; }
}

.crawl-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.crawl-stage.is-dragging {
  cursor: grabbing;
}

.crawl-stage[hidden],
.reveal[hidden],
.long-ago[hidden],
.skip-btn[hidden],
.mute-btn[hidden],
.start-screen[hidden],
.secret-star[hidden],
.crawl-controls[hidden],
.wait-screen[hidden],
.girl-link[hidden] {
  display: none !important;
}

.crawl-fade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(#000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
}

.crawl-perspective {
  position: absolute;
  inset: 0;
  perspective: 640px;
  perspective-origin: 50% 40%;
  overflow: hidden;
}

/* Gekanteld vlak = schermhoogte. Gecentreerd, milde rotateX zodat
   de eerste regels midden-onder lang leesbaar blijven. */
.crawl {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(88vw, 780px);
  height: 100%;
  transform: translateX(-50%) rotateX(15deg);
  transform-origin: 50% 100%;
}

.crawl-inner {
  width: 100%;
  text-align: justify;
  text-align-last: center;
  font-family: "Pathway Gothic One", "News Cycle", sans-serif;
  font-size: clamp(1.55rem, 5.2vw, 2.5rem);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: 0.04em;
  word-spacing: 0.08em;
  color: #ffe81f;
  will-change: transform;
}

.crawl-inner.is-crawling {
  animation-name: crawl-fly;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.crawl-inner p {
  margin: 0 0 1.35em;
}

.crawl-episode {
  text-align: center !important;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  margin-bottom: 0.35em !important;
}

.crawl-title {
  margin: 0 0 0.45em;
  text-align: center;
  font-family: "Bebas Neue", "Pathway Gothic One", sans-serif;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 0.78;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.crawl-rule {
  border: 0;
  height: 3px;
  background: #ffe81f;
  width: 42%;
  margin: 0 auto 1.4em;
}

.crawl-end {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95em;
}

.crawl-shot {
  margin: 0.5em auto 1.8em;
  width: 100%;
}

.crawl-shot figcaption {
  margin-top: 0.45em;
  font-size: 0.72em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe81f;
}

.crawl-foto {
  display: grid;
  place-items: center;
  width: min(72%, 280px);
  aspect-ratio: 4 / 3;
  margin: 0.4em auto 1.6em;
  border-radius: 14px;
  border: 2px solid rgba(255, 214, 90, 0.7);
  box-shadow: 0 0 18px rgba(255, 232, 31, 0.18);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    repeating-linear-gradient(
      45deg,
      #1a1a22 0 8px,
      #121218 8px 16px
    );
  overflow: hidden;
}

.crawl-foto span {
  font-size: 0.78em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 232, 31, 0.72);
}

.crawl-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.crawl-foto--wide {
  width: min(88%, 420px);
  aspect-ratio: 16 / 9;
}

.crawl-foto--portrait {
  width: min(58%, 240px);
  aspect-ratio: 3 / 4;
}

.crawl-shot .crawl-foto--wide,
.crawl-shot .crawl-foto--portrait {
  margin: 0 auto;
}

.crawl-foto--portrait img {
  object-position: center 18%;
}

/* Start lager: eerste regels verschijnen midden-onder, groot en leesbaar. */
@keyframes crawl-fly {
  from { transform: translateY(58vh); }
  to { transform: translateY(-100%); }
}

/* —— Wachten op de echo —— */

.wait-screen {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 72px 24px;
}

.wait-kicker {
  margin: 0 0 12px;
  color: #4bd5ee;
  font-family: "News Cycle", "News Gothic MT", sans-serif;
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wait-title {
  margin: 0 0 18px;
  font-family: "Bebas Neue", "Pathway Gothic One", sans-serif;
  font-size: clamp(4.2rem, 16vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe81f;
  transform: perspective(460px) rotateX(24deg);
  text-shadow:
    0 2px 0 #b39800,
    0 5px 0 #6a5800,
    0 18px 36px rgba(0, 0, 0, 0.55);
}

.wait-lead {
  margin: 0 0 36px;
  max-width: 18em;
  color: #4bd5ee;
  font-family: "News Cycle", "News Gothic MT", sans-serif;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

/* —— Mini-Jedi reveal —— */

.reveal {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 72px 24px 40px;
  animation: reveal-in 0.9s ease;
}

.reveal-kicker {
  margin: 0 0 10px;
  color: #4bd5ee;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-family: "Pathway Gothic One", "News Cycle", sans-serif;
}

.saber {
  width: min(220px, 55vw);
  height: 8px;
  margin: 8px 0 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 8px #9ee7ff,
    0 0 18px #4bd5ee,
    0 0 36px #1d7ec9;
}

.reveal-title {
  margin: 0;
  font-family: "Bebas Neue", "Pathway Gothic One", sans-serif;
  font-size: clamp(3rem, 12vw, 5.4rem);
  line-height: 0.85;
  color: #ffe81f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  text-shadow: 0 0 28px rgba(255, 232, 31, 0.35);
}

.reveal-sub {
  margin: 14px 0 8px;
  font-family: "Pathway Gothic One", "News Cycle", sans-serif;
  font-size: clamp(1.3rem, 4vw, 1.85rem);
  color: #4bd5ee;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.reveal-note {
  max-width: 26em;
  margin: 0 0 16px;
  color: #ffe81f;
  font-family: "Pathway Gothic One", "News Cycle", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.reveal-fotos {
  display: grid;
  gap: 12px;
  width: min(92vw, 520px);
  margin: 8px 0 16px;
}

.reveal-foto {
  width: 100%;
  margin: 0;
  border: 2px solid rgba(255, 232, 31, 0.55);
  box-shadow: 0 0 28px rgba(255, 232, 31, 0.18);
  overflow: hidden;
}

@media (min-width: 900px) {
  .reveal-fotos {
    width: min(94vw, 980px);
    grid-template-columns: 1fr 1fr;
  }
}

.reveal-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 20%;
}

.girl-btn {
  display: none;
}

.girl-link {
  position: fixed;
  left: 14px;
  bottom: 12px;
  z-index: 20;
  color: rgba(207, 200, 176, 0.22);
  font-family: "Pathway Gothic One", "News Cycle", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.girl-link:hover,
.girl-link:focus-visible {
  color: rgba(255, 232, 31, 0.55);
}

/* Verborgen hit-area — geen label, geen hint op de pagina */
.secret-star {
  position: fixed;
  left: 6px;
  bottom: 6px;
  z-index: 12;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: default;
  opacity: 0.14;
  appearance: none;
}

.secret-star::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 10px auto 0;
  background: #cfc8b0;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.secret-star[hidden] {
  display: none !important;
}

@keyframes reveal-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   MEISJESPAGINA — andere wereld
   ========================================================= */

.girl-page {
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Nunito", system-ui, sans-serif;
  color: #5a1833;
  background:
    radial-gradient(900px 500px at 10% 0%, #ffe0ef 0%, transparent 55%),
    radial-gradient(800px 500px at 100% 10%, #ff9fc4 0%, transparent 50%),
    linear-gradient(165deg, #ff4d8d 0%, #ff8fb8 45%, #ffd6ea 100%);
}

.girl-page #fx {
  z-index: 6;
}

.glitter {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #ffe9f4 1.4px, transparent 1.4px),
    radial-gradient(circle, #ffd36b 1px, transparent 1px);
  background-size: 48px 48px, 72px 72px, 36px 36px;
  background-position: 0 0, 18px 22px, 30px 8px;
  opacity: 0.55;
  animation: sparkle 2.4s linear infinite;
}

@keyframes sparkle {
  from { background-position: 0 0, 18px 22px, 30px 8px; }
  to { background-position: 0 48px, 18px 94px, 30px 44px; }
}

.bows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.bow {
  position: absolute;
  font-size: clamp(2rem, 7vw, 3.4rem);
  animation: bow-float 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(90, 24, 51, 0.18));
}

.b-1 { top: 8%; left: 6%; }
.b-2 { top: 14%; right: 8%; animation-delay: -1s; }
.b-3 { bottom: 18%; left: 10%; animation-delay: -2s; }
.b-4 { bottom: 12%; right: 12%; animation-delay: -0.6s; }
.b-5 { top: 42%; left: 3%; font-size: 2rem; animation-delay: -1.8s; }
.b-6 { top: 48%; right: 4%; font-size: 2.2rem; animation-delay: -2.4s; }

@keyframes bow-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(10deg); }
}

.balloons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.balloon {
  position: absolute;
  width: 68px;
  height: 86px;
  border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
  animation: float 6s ease-in-out infinite;
}

.balloon::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 24px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  top: 14px;
  left: 12px;
  transform: rotate(-18deg);
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 12px;
  height: 10px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%);
  filter: brightness(0.85);
}

.balloon .string {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 80px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
}

.balloon.pink { background: #ff4d8d; left: 12%; top: 22%; }
.balloon.blush { background: #ffb6d9; left: 78%; top: 16%; animation-delay: -1.2s; }
.balloon.white { background: #fff; left: 22%; bottom: 8%; animation-delay: -2s; }
.balloon.gold { background: #f3c96b; right: 16%; bottom: 10%; left: auto; animation-delay: -0.7s; }
.balloon.hot { background: #e83278; left: 48%; top: 6%; width: 50px; height: 64px; animation-delay: -2.6s; }
.balloon.late { background: #ff7eb3; left: 62%; bottom: 22%; animation-delay: -3.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(5deg); }
}

.girl-card {
  position: relative;
  z-index: 4;
  width: min(640px, calc(100% - 32px));
  margin: 72px auto 80px;
  padding: 44px 28px 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 232, 242, 0.94));
  border: 3px solid #fff;
  border-radius: 32px;
  box-shadow:
    0 24px 60px rgba(140, 20, 70, 0.28),
    0 0 0 8px rgba(255, 182, 217, 0.35);
}

.girl-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 77, 141, 0.14);
  color: #c2185b;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.girl-emoji {
  font-size: 2rem;
  letter-spacing: 0.2em;
  margin: 4px 0 8px;
}

.girl-card h1 {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: #c2185b;
  text-shadow: 2px 3px 0 #ffd6ea;
}

.girl-lead {
  margin: 0 auto 10px;
  max-width: 28em;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #7a2a4c;
}

.back-galaxy {
  display: inline-block;
  margin-top: 22px;
  color: #5a1833;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px dotted rgba(90, 24, 51, 0.4);
}

.back-galaxy:hover {
  border-bottom-style: solid;
}

@media (max-width: 700px) {
  .crawl-foto--wide {
    width: min(92%, 360px);
  }

  .crawl-foto--portrait {
    width: min(62%, 200px);
  }

  .balloon.white,
  .balloon.late {
    display: none;
  }

  .skip-btn,
  .mute-btn {
    top: 10px;
    font-size: 0.72rem;
    padding: 8px 12px;
  }

  .skip-btn { right: 10px; }
  .mute-btn { left: 10px; }

  .crawl-controls {
    display: none;
  }
}

@media (pointer: coarse) and (max-width: 1100px) {
  .crawl-controls {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .long-ago,
  .reveal,
  .bow,
  .balloon,
  .glitter,
  .start-btn {
    animation: none;
  }

  .long-ago {
    opacity: 1;
  }
}
