/* SV Langezwaag — the village gathers beneath a night sky. */
#svl-launch-overlay[hidden],
#svl-launch-banner[hidden] {
  display: none !important;
}

#svl-launch-overlay {
  --svl-launch-navy: var(--svl-deep, #0a1b68);
  --svl-launch-blue: var(--svl-primary, #102694);
  --svl-launch-green: var(--svl-accent, #75d69c);
  --svl-launch-gold: #ffd166;
  --svl-launch-duration: 30s;
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 110%, rgb(27 78 193 / 48%), transparent 52%),
    radial-gradient(ellipse at 50% 42%, #183ba6 0%, #102777 41%, #07154c 100%);
  color: #fff;
  isolation: isolate;
  opacity: 1;
  transition: opacity 260ms ease;
}

#svl-launch-overlay::before,
#svl-launch-overlay::after {
  position: fixed;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(94vw, 940px);
  aspect-ratio: 1;
  border: 1px solid rgb(201 224 255 / 14%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

#svl-launch-overlay::before {
  box-shadow:
    0 0 0 42px rgb(255 255 255 / 2.4%),
    0 0 0 106px rgb(118 166 255 / 4%),
    0 0 0 190px rgb(255 255 255 / 1.6%);
  animation: svl-launch-orbit 42s linear infinite;
}

#svl-launch-overlay::after {
  width: min(68vw, 650px);
  border-color: rgb(255 209 102 / 17%);
  box-shadow: 0 0 0 25px rgb(255 209 102 / 2%);
}

#svl-launch-overlay.svl-launch-is-closing {
  opacity: 0;
}

#svl-launch-overlay .svl-launch-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: 100%;
  overflow: auto;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid rgb(255 255 255 / 23%);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 4%)),
    rgb(7 21 76 / 78%);
  box-shadow: 0 35px 110px rgb(1 9 38 / 44%), inset 0 1px rgb(255 255 255 / 12%);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(16px);
  animation: svl-launch-arrive 680ms cubic-bezier(.16,.78,.24,1) both;
}

#svl-launch-overlay .svl-launch-panel::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 126px;
  height: 5px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #75d69c, #ffd166, #ff7a7a);
  content: "";
  transform: translateX(-50%);
}

#svl-launch-overlay .svl-launch-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(204px, 56%);
  max-height: 146px;
  margin: 0 auto 25px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgb(1 8 38 / 28%));
}

#svl-launch-overlay .svl-launch-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: inherit;
  object-fit: contain;
}

#svl-launch-overlay .svl-launch-kicker {
  margin: 0 0 13px;
  color: #a8edc2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

#svl-launch-overlay #svl-launch-title {
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--wp--preset--font-family--svl-heading, "Poppins"), "Segoe UI", sans-serif;
  font-size: clamp(37px, 7vw, 69px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.03;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 28px rgb(0 0 0 / 18%);
}

#svl-launch-overlay .svl-launch-copy {
  max-width: 510px;
  margin: 18px auto 30px;
  color: rgb(239 244 255 / 83%);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

#svl-launch-overlay #svl-launch-reveal,
#svl-launch-overlay #svl-launch-skip,
#svl-launch-overlay #svl-launch-sound,
#svl-launch-banner #svl-launch-replay,
#svl-launch-replay-footer {
  font: inherit;
  cursor: pointer;
}

#svl-launch-overlay #svl-launch-reveal {
  display: inline-flex;
  max-width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 15px 30px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 999px;
  background: linear-gradient(115deg, #a6edbd, #75d69c);
  box-shadow: 0 12px 34px rgb(4 14 64 / 35%), inset 0 1px rgb(255 255 255 / 70%);
  color: #0a1b68;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

#svl-launch-overlay #svl-launch-reveal::after {
  width: 20px;
  height: 2px;
  flex: 0 0 20px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

#svl-launch-overlay #svl-launch-reveal:hover:not(:disabled) {
  transform: translateY(-2px);
}

#svl-launch-overlay #svl-launch-reveal:disabled {
  opacity: .68;
  cursor: default;
}

#svl-launch-overlay #svl-launch-skip {
  display: block;
  max-width: 100%;
  margin: 15px auto 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: rgb(238 243 255 / 82%);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgb(238 243 255 / 45%);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

#svl-launch-overlay #svl-launch-sound:not([hidden]) {
  display: block;
  margin: 10px auto 0;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 999px;
  background: rgb(255 255 255 / 9%);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

#svl-launch-overlay #svl-launch-sound:hover {
  background: rgb(255 255 255 / 20%);
}

#svl-launch-overlay #svl-launch-skip:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

#svl-launch-overlay .svl-launch-status {
  max-width: 500px;
  margin: 20px auto 0;
  color: #d9e7ff;
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 650;
  line-height: 1.55;
  text-wrap: balance;
}

#svl-launch-overlay .svl-launch-fireworks {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#svl-launch-overlay.svl-launch-celebrating {
  --svl-launch-celebration-glow: rgb(29 72 183 / 40%);
  background:
    radial-gradient(ellipse at 50% 53%, var(--svl-launch-celebration-glow), transparent 57%),
    radial-gradient(ellipse at 50% 110%, rgb(35 85 209 / 45%), transparent 50%),
    linear-gradient(145deg, #07154a, #102b83 55%, #08194e);
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-panel {
  width: min(100%, 1100px);
  overflow: visible;
  padding: clamp(22px, 4vh, 44px) clamp(18px, 5vw, 60px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: svl-launch-stage-arrive 900ms cubic-bezier(.16,.78,.24,1) both;
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-panel::before {
  display: none;
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-logo {
  width: min(640px, 84vw);
  max-height: min(43vh, 350px);
  margin-bottom: clamp(18px, 3vh, 32px);
  filter: drop-shadow(0 22px 35px rgb(0 0 0 / 36%));
  animation: svl-launch-emblem-arrive 1150ms cubic-bezier(.15,.78,.18,1) both;
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-logo img {
  max-height: min(43vh, 350px);
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-kicker {
  color: #ffe2a0;
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: .24em;
}

#svl-launch-overlay.svl-launch-celebrating #svl-launch-title {
  max-width: 900px;
  font-size: clamp(37px, 7.6vw, 78px);
  text-shadow: 0 5px 34px rgb(3 8 42 / 45%);
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-copy,
#svl-launch-overlay.svl-launch-celebrating #svl-launch-reveal {
  display: none;
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-status {
  margin-top: clamp(18px, 3vh, 31px);
  color: #fff2ce;
  font-size: clamp(14px, 2vw, 19px);
  text-shadow: 0 2px 15px rgb(0 0 0 / 42%);
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-panel::after {
  position: absolute;
  right: clamp(18px, 9vw, 100px);
  bottom: 0;
  left: clamp(18px, 9vw, 100px);
  height: 3px;
  border-radius: 99px;
  background: rgb(255 255 255 / 22%);
  content: "";
  transform: scaleX(1);
  transform-origin: left;
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-panel {
  --svl-launch-bar: 1;
}

#svl-launch-overlay.svl-launch-celebrating .svl-launch-panel::after {
  animation: svl-launch-countdown var(--svl-launch-duration) linear both;
}

#svl-launch-overlay :focus-visible,
#svl-launch-banner :focus-visible,
#svl-launch-replay-footer:focus-visible {
  outline: 3px solid #ffe08a;
  outline-offset: 4px;
}

#svl-launch-banner {
  position: relative;
  z-index: 70;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 18px;
  background: var(--svl-deep, #0a1b68);
  color: #fff;
  text-align: center;
}

#svl-launch-banner > span {
  max-width: 900px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

#svl-launch-banner #svl-launch-replay,
#svl-launch-replay-footer {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 750;
  transition: background-color 160ms ease, color 160ms ease;
}

#svl-launch-banner #svl-launch-replay:hover,
#svl-launch-replay-footer:hover {
  background: var(--svl-launch-green);
  color: var(--svl-launch-navy);
}

#svl-launch-replay-footer {
  border-color: var(--svl-line, #dce3e4);
  color: var(--svl-launch-blue);
}

.svl-launch-replay-wrap {
  padding: 16px 20px;
  text-align: center;
}

@keyframes svl-launch-arrive {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes svl-launch-stage-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes svl-launch-emblem-arrive {
  from { opacity: 0; transform: translateY(34px) scale(.46); }
  68% { opacity: 1; transform: translateY(-5px) scale(1.035); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes svl-launch-countdown {
  to { transform: scaleX(0); }
}

@keyframes svl-launch-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 520px) {
  #svl-launch-overlay {
    padding-right: 12px;
    padding-left: 12px;
  }

  #svl-launch-overlay .svl-launch-panel {
    width: 100%;
    padding: 30px 21px 25px;
    border-radius: 25px;
  }

  #svl-launch-overlay .svl-launch-logo {
    width: min(190px, 64%);
    max-height: 130px;
    margin-bottom: 18px;
  }

  #svl-launch-overlay .svl-launch-copy {
    margin-block: 14px 23px;
  }

  #svl-launch-overlay #svl-launch-reveal {
    width: min(100%, 360px);
    min-height: 56px;
    padding-inline: 18px;
  }

  #svl-launch-overlay.svl-launch-celebrating .svl-launch-panel {
    padding: 20px 10px;
  }

  #svl-launch-overlay.svl-launch-celebrating .svl-launch-logo {
    width: min(92vw, 520px);
    max-height: min(38vh, 260px);
    margin-bottom: 16px;
  }

  #svl-launch-overlay.svl-launch-celebrating .svl-launch-logo img {
    max-height: min(38vh, 260px);
  }

  #svl-launch-overlay.svl-launch-celebrating #svl-launch-title {
    font-size: clamp(32px, 9.5vw, 54px);
  }

  #svl-launch-overlay.svl-launch-celebrating .svl-launch-kicker {
    letter-spacing: .15em;
  }

  #svl-launch-banner {
    flex-wrap: wrap;
    gap: 5px 10px;
    padding-inline: 12px;
  }
}

@media (max-height: 580px) and (min-width: 521px) {
  #svl-launch-overlay { padding-block: 12px; }
  #svl-launch-overlay .svl-launch-panel { padding-block: 25px; }
  #svl-launch-overlay .svl-launch-logo { width: 150px; max-height: 90px; margin-bottom: 12px; }
  #svl-launch-overlay .svl-launch-copy { margin-block: 10px 18px; }
  #svl-launch-overlay.svl-launch-celebrating .svl-launch-logo,
  #svl-launch-overlay.svl-launch-celebrating .svl-launch-logo img { max-height: 35vh; }
}

@media (prefers-reduced-motion: reduce) {
  #svl-launch-overlay,
  #svl-launch-overlay *,
  #svl-launch-overlay *::before,
  #svl-launch-overlay *::after,
  #svl-launch-banner,
  #svl-launch-banner *,
  #svl-launch-replay-footer {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  #svl-launch-overlay,
  #svl-launch-banner,
  #svl-launch-replay-footer {
    display: none !important;
  }
}
