@font-face {
  font-family: "Shantell Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/shantell-sans-regular-400.ttf") format("truetype");
}

@font-face {
  font-family: "Shantell Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/shantell-sans-medium-500.ttf") format("truetype");
}

@font-face {
  font-family: "Shantell Sans";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/shantell-sans-italic-800.ttf") format("truetype");
}

@font-face {
  font-family: "Shantell Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/shantell-sans-extra-bold-800.ttf") format("truetype");
}

:root {
  --blue-950: #05214c;
  --blue-900: #07306f;
  --blue-800: #0c4696;
  --blue-700: #1161bf;
  --sky: #72d8ff;
  --sky-soft: #dff7ff;
  --gold: #f6a400;
  --gold-soft: #f6a400;
  --gold-deep: #db8400;
  --date-star-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M%2047.2%208.6%20Q%2050.0%200.0%2052.8%208.6%20L%2059.3%2028.8%20Q%2061.0%2034.0%2066.5%2034.0%20L%2089.0%2034.0%20Q%2098.0%2034.0%2090.7%2039.3%20L%2072.4%2052.7%20Q%2068.0%2056.0%2069.7%2061.2%20L%2077.2%2083.5%20Q%2080.0%2092.0%2072.5%2087.0%20L%2054.6%2075.1%20Q%2050.0%2072.0%2045.4%2075.1%20L%2027.5%2087.0%20Q%2020.0%2092.0%2022.8%2083.5%20L%2030.3%2061.2%20Q%2032.0%2056.0%2027.6%2052.7%20L%209.3%2039.3%20Q%202.0%2034.0%2011.0%2034.0%20L%2033.5%2034.0%20Q%2039.0%2034.0%2040.7%2028.8%20Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
  --page-blue: #bfefff;
  --page-blue-dark: #07306f;
  --cream: #fff8df;
  --white: #ffffff;
  --ink: #05214c;
  --muted: #50658a;
  --line: rgba(10, 55, 115, 0.16);
  --shadow: 0 22px 50px rgba(5, 33, 76, 0.16);
  --max: 1180px;
  --radius: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--blue-950);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Shantell Sans", ui-rounded, "Segoe UI Rounded", "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.65;
  background: linear-gradient(180deg, #dff7ff 0, var(--page-blue) 360px, var(--page-blue) 100%);
  overflow-x: hidden;
}

body.lights-off {
  background: linear-gradient(180deg, #041b42 0, var(--page-blue-dark) 360px, var(--page-blue-dark) 100%);
  color: #f7fbff;
}

body.leaderboard-page {
  display: flex;
  flex-direction: column;
}

body.leaderboard-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.leaderboard-page .game-page-section {
  flex: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(246, 164, 0, 0.86) 0 1px, transparent 1.8px);
  background-position: 0 0, 32px 44px;
  background-size: 92px 92px, 138px 138px;
  opacity: 0.32;
  animation: star-drift 38s linear infinite;
  pointer-events: none;
}

body.lights-off::before {
  opacity: 0.56;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.8rem 1.1rem;
  color: #071c42;
  border-radius: var(--radius);
  background: var(--gold-soft);
  font-weight: 400;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cursor-trail,
.button-spark-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.cursor-star,
.button-star {
  position: fixed;
  width: var(--size, 10px);
  height: var(--size, 10px);
  left: var(--x);
  top: var(--y);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  border-radius: 999px;
  background: var(--star-color, var(--gold-soft));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.22),
    0 0 14px var(--star-color, var(--gold-soft));
  opacity: 0;
}

.cursor-star::before,
.cursor-star::after,
.button-star::before,
.button-star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  height: 2px;
  border-radius: 999px;
  background: inherit;
  transform: translate(-50%, -50%);
}

.cursor-star::after,
.button-star::after {
  width: 2px;
  height: 220%;
}

.cursor-star {
  animation: cursor-pop 760ms ease-out forwards;
  background: transparent;
  box-shadow: none;
}

.button-star {
  animation: button-pop 680ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cursor-star::before,
.cursor-star::after {
  background: transparent;
  border-radius: inherit;
  transform: none;
}

.cursor-symbol-star::before,
.cursor-symbol-star::after {
  display: none;
}

.cursor-symbol-star {
  border-radius: 0;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
  box-shadow: 0 0 16px rgba(246, 164, 0, 0.46);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  min-height: 92px;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: rgba(223, 247, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

body.lights-off .site-header {
  background: rgba(5, 33, 76, 0.74);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-header.has-shadow {
  box-shadow: 0 14px 34px rgba(5, 33, 76, 0.12);
}

.brand {
  position: relative;
  display: inline-flex;
  width: 74px;
  height: 74px;
  order: 1;
}

.brand::after {
  content: none;
}

.brand img {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  justify-self: end;
  gap: 0.6rem;
  order: 3;
}

.site-nav {
  order: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

body.lights-off .site-nav {
  background: transparent;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  padding: 0.75rem 1rem;
  color: var(--blue-950);
  border-radius: 999px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

body.lights-off .site-nav a {
  color: #fff;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--blue-950);
  background: rgba(246, 164, 0, 0.26);
}

.nav-button,
.button,
.light-toggle,
.menu-toggle {
  -webkit-tap-highlight-color: transparent;
}

.nav-button {
  color: #fff !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 10px 22px rgba(246, 164, 0, 0.24);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.82rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
}

.light-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.66rem;
  min-height: 50px;
  padding: 0.34rem 0.58rem 0.34rem 0.45rem;
  color: var(--blue-950);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(223, 247, 255, 0.66));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75), 0 12px 24px rgba(6, 48, 111, 0.12);
  cursor: pointer;
  overflow: hidden;
}

body.lights-off .light-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(7, 48, 111, 0.3));
}

.light-toggle-icon {
  position: relative;
  width: 40px;
  height: 38px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: rgba(5, 33, 76, 0.08);
}

.light-toggle-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  width: 18px;
  height: 10px;
  border: 3px solid var(--blue-950);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

body.lights-off .light-toggle-icon::before {
  border-color: #fff;
}

.lamp-glow {
  position: absolute;
  inset: 8px 10px 5px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 242, 170, 0.92), rgba(246, 164, 0, 0.22) 56%, transparent 72%);
  animation: glow-breathe 2.5s ease-in-out infinite;
}

body.lights-off .lamp-glow {
  opacity: 0.25;
  filter: grayscale(0.5);
}

.lamp-top {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 23px;
  margin-top: 9px;
  border-radius: 6px 6px 9px 9px;
  background: var(--gold);
  border: 2px solid var(--blue-950);
  box-shadow: inset 0 -5px 0 rgba(5, 33, 76, 0.12);
}

.lamp-top::before {
  content: "";
  position: absolute;
  inset: 4px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

body.lights-off .lamp-top {
  border-color: #fff;
  background: rgba(246, 164, 0, 0.32);
}

.lamp-base {
  position: absolute;
  z-index: 1;
  bottom: 3px;
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue-950);
}

body.lights-off .lamp-base {
  background: #fff;
}

.light-toggle-text {
  font-size: 0.86rem;
  font-weight: 400;
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 48px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

body.lights-off .menu-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  border-radius: 999px;
  background: var(--blue-950);
}

body.lights-off .menu-toggle span:not(.sr-only) {
  background: #fff;
}

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7rem 6vw 6rem;
  background:
    linear-gradient(180deg, rgba(32, 150, 210, 0.02), rgba(4, 33, 76, 0.1)),
    url("../img/laternenzug-hehler-hero.jpg") 100% top / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 38%, rgba(246, 164, 0, 0.18), transparent 24rem),
    radial-gradient(circle at 76% 28%, rgba(114, 216, 255, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(5, 33, 76, 0.12));
}

body.lights-off .hero::before {
  background:
    radial-gradient(circle at 22% 38%, rgba(246, 164, 0, 0.16), transparent 22rem),
    radial-gradient(circle at 76% 28%, rgba(114, 216, 255, 0.13), transparent 22rem),
    linear-gradient(180deg, rgba(3, 18, 45, 0.42), rgba(3, 18, 45, 0.84));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: clamp(280px, 34vh, 470px);
  background:
    linear-gradient(
      180deg,
      rgba(191, 239, 255, 0) 0%,
      rgba(191, 239, 255, 0.18) 22%,
      rgba(191, 239, 255, 0.52) 48%,
      rgba(191, 239, 255, 0.86) 72%,
      var(--page-blue) 100%
    );
  pointer-events: none;
}

body.lights-off .hero::after {
  background:
    linear-gradient(
      180deg,
      rgba(7, 48, 111, 0) 0%,
      rgba(7, 48, 111, 0.2) 22%,
      rgba(7, 48, 111, 0.58) 50%,
      rgba(7, 48, 111, 0.9) 76%,
      var(--page-blue-dark) 100%
    );
}

.soft-stars span {
  position: absolute;
  width: 112px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  transform: rotate(-24deg);
  opacity: 0;
  animation: meteor 9s ease-in-out infinite;
  filter: drop-shadow(0 4px 9px rgba(246, 164, 0, 0.32));
}

.soft-stars span::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 23px;
  height: 23px;
  background: linear-gradient(135deg, #fff6c4, var(--gold) 48%, var(--gold-deep));
  -webkit-mask: var(--date-star-mask) center / contain no-repeat;
  mask: var(--date-star-mask) center / contain no-repeat;
  transform: translateY(-50%);
}

.soft-stars span::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 164, 0, 0.75) 0%, rgba(255, 255, 255, 0.7) 46%, transparent 100%);
  box-shadow:
    0 -6px 0 -3px rgba(255, 255, 255, 0.28),
    0 6px 0 -3px rgba(246, 164, 0, 0.22);
  transform: translateY(-50%);
}

.soft-stars span:nth-child(1) {
  left: 15%;
  top: -8%;
}

.soft-stars span:nth-child(2) {
  left: 45%;
  top: -12%;
  animation-delay: 2.4s;
}

.soft-stars span:nth-child(3) {
  left: 78%;
  top: -10%;
  animation-delay: 4.2s;
}

.soft-stars span:nth-child(4) {
  left: 63%;
  top: -16%;
  animation-delay: 6.2s;
}

.soft-stars span:nth-child(5) {
  left: 27%;
  top: -14%;
  animation-delay: 7.5s;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 1.02rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: none;
}

.hero .eyebrow {
  margin-bottom: 0.85rem;
  color: var(--gold);
  font-size: 1.02rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: none;
}

.hero h1,
.section h2,
.game-copy h1,
.legal-page h1 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 800;
  font-style: italic;
}

.hero h1 {
  color: #fff;
  font-size: clamp(3.1rem, 9vw, 7.6rem);
  text-shadow: none;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: var(--gold);
}

body.lights-off .hero h1 {
  color: #fff;
}

body.lights-off .hero h1 span:last-child {
  color: var(--gold);
}

.hero-date {
  margin: 1.5rem 0 0;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2.05rem);
  font-weight: 400;
  text-shadow: none;
}

.hero-copy {
  max-width: 660px;
  margin: 0.95rem auto 0;
  color: #fff;
  font-size: clamp(1.14rem, 1.5vw, 1.24rem);
}

.hero-actions,
.button-row,
.center-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  overflow: hidden;
  padding: 0.95rem 1.55rem;
  border: 0;
  border-radius: var(--radius);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.button::before,
.site-nav a::before,
.light-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.button:hover,
.button:focus-visible,
.light-toggle:hover,
.light-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(5, 33, 76, 0.18);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button:hover::before,
.button:focus-visible::before,
.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.light-toggle:hover::before,
.light-toggle:focus-visible::before {
  transform: translateX(130%);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 14px 26px rgba(246, 164, 0, 0.23);
  text-shadow: none;
}

.button-secondary {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(7, 48, 111, 0.25);
  backdrop-filter: blur(12px);
}

.section .button-secondary,
.game-page .button-secondary {
  color: var(--blue-950);
  border-color: rgba(5, 33, 76, 0.2);
  background: rgba(255, 255, 255, 0.58);
}

body.lights-off .section .button-secondary,
body.lights-off .game-page .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  position: relative;
  z-index: 2;
  padding: 5.7rem 6vw;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section h2 {
  color: var(--blue-950);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

body.lights-off .section p,
body.lights-off .section time,
body.lights-off .contact-copy address,
body.lights-off .contact-copy a {
  color: #fff;
}

body.lights-off .section h2 {
  color: var(--gold);
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: auto;
  text-align: center;
}

.section-heading p,
.section p {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.25vw, 1.18rem);
}

.eyebrow,
.hero .eyebrow,
.section .eyebrow,
.section-heading .eyebrow,
.route-copy .eyebrow,
.donation-copy .eyebrow,
.contact-copy .eyebrow,
.legal-page .eyebrow,
.game-copy .eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold) !important;
  font-size: 1.02rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: none;
}

.hero .eyebrow,
.section-heading .eyebrow,
.legal-page .eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold) !important;
  font-size: 1.02rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: none;
}

body.lights-off .section-heading .eyebrow,
body.lights-off .legal-page .eyebrow,
body.lights-off .hero .eyebrow,
body.lights-off .section .eyebrow,
body.lights-off .route-copy .eyebrow,
body.lights-off .donation-copy .eyebrow,
body.lights-off .contact-copy .eyebrow,
body.lights-off .game-copy .eyebrow,
body.lights-off .trailer-copy .eyebrow {
  color: #fff !important;
}

.time-mark {
  font-weight: 500;
}

.program-layout,
.route-layout,
.song-layout,
.donation-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

.program-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  width: min(100%, 860px);
  margin: 0 auto;
}

.program-step {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 172px auto;
  gap: 1.2rem;
  align-content: start;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.program-step img {
  width: 160px;
  height: 160px;
  align-self: end;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(5, 33, 76, 0.16));
  animation: float-soft 6s ease-in-out infinite;
}

.program-step:nth-child(2) img {
  animation-delay: -2s;
}

.program-step time,
.program-step h3,
.hexen-scene h3,
.section h3 {
  color: var(--blue-950);
}

.program-step h3,
.hexen-scene h3,
.section h3 {
  font-weight: 500;
  font-style: normal;
}

.program-step h3,
.hexen-scene h3 {
  color: var(--gold-deep);
}

.program-step time {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--blue-800);
  font-size: 1.45rem;
  font-weight: 500;
}

.program-step h3,
.hexen-scene h3 {
  margin: 0 0 0.45rem;
  font-size: 1.42rem;
  line-height: 1.2;
}

.program-step p,
.hexen-scene p {
  margin: 0;
}

.section-dates {
  background: transparent;
}

body.lights-off .section-dates {
  background: transparent;
}

.date-ribbon {
  position: relative;
  min-height: 320px;
  margin: 1rem auto 0;
}

.date-path {
  position: absolute;
  inset: 58px 0 0;
  width: 100%;
  height: 190px;
  overflow: visible;
}

.date-path path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
}

.date-path path + path {
  display: none;
}

.date-stop {
  --date-star-size: 156px;
  position: absolute;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  row-gap: 0.02rem;
  place-items: center;
  width: var(--date-star-size);
  height: var(--date-star-size);
  padding: 0.95rem;
  border-radius: 0;
  color: var(--blue-950);
  text-align: center;
  filter: drop-shadow(0 18px 28px rgba(246, 164, 0, 0.26));
}

.date-stop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-mask: var(--date-star-mask) center / contain no-repeat;
  mask: var(--date-star-mask) center / contain no-repeat;
}

.date-stop::after {
  content: "";
  position: absolute;
  right: calc(var(--date-star-size) * 0.18);
  top: calc(var(--date-star-size) * 0.18);
  width: calc(var(--date-star-size) * 0.095);
  height: calc(var(--date-star-size) * 0.095);
  background: rgba(255, 255, 255, 0.78);
  -webkit-mask: var(--date-star-mask) center / contain no-repeat;
  mask: var(--date-star-mask) center / contain no-repeat;
  opacity: 0.74;
}

.date-stop span,
.date-stop strong,
.date-stop small {
  position: relative;
  z-index: 1;
  display: block;
}

.date-stop span {
  margin: 0 0 -0.05rem;
  font-size: 0.96rem;
  line-height: 1;
  font-weight: 500;
}

.date-stop strong {
  font-size: 1.86rem;
  line-height: 0.9;
  font-weight: 800;
  font-style: italic;
  text-shadow: none;
}

.date-stop small {
  margin-top: -0.05rem;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 500;
}

.stop-one {
  left: 50%;
  top: -12px;
  transform: translateX(-50%) rotate(-3deg);
}

.stop-two {
  left: 7%;
  top: 106px;
  transform: rotate(6deg);
}

.stop-three {
  right: 7%;
  top: 108px;
  transform: rotate(8deg);
}

.date-stop.is-current {
  --date-star-size: 300px;
  padding: 1.35rem;
}

.date-stop.is-current span {
  font-size: 1.18rem;
}

.date-stop.is-current strong {
  font-size: 3rem;
}

.date-stop.is-current small {
  font-size: 1.02rem;
}

.date-note {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  color: var(--blue-950) !important;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  font-weight: 400;
  font-size: 1.08rem;
  text-align: center;
}

.section-heading .date-note {
  margin-top: 1rem;
}

.date-note time {
  font-weight: 500;
}

body.lights-off .date-note {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.section-route {
  background: transparent;
}

body.lights-off .section-route {
  background: transparent;
}

.route-copy p {
  max-width: 50ch;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.1vw, 1.1rem);
}

.route-copy .eyebrow {
  display: block;
  max-width: none;
  text-align: center;
}

.route-copy h2 .time-mark {
  color: #fff;
}

.route-visual {
  position: relative;
  min-height: auto;
  width: min(100%, 690px);
  margin: 0 auto;
}

.route-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 9% 2% 3% 4%;
  border-radius: 52% 48% 57% 43% / 40% 60% 42% 58%;
  background: rgba(7, 48, 111, 0.16);
  transform: rotate(-5deg);
  filter: drop-shadow(0 20px 34px rgba(5, 33, 76, 0.12));
}

body.lights-off .route-visual::before {
  background: rgba(255, 255, 255, 0.1);
}

.route-map {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 20px 32px rgba(5, 33, 76, 0.16));
}

.section-songs {
  background: transparent;
}

.lyrics-slider {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto;
  padding-inline: 4.1rem;
}

.lyrics-window {
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.lyrics-track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.lyrics-song {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1.45rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 36px;
  background:
    radial-gradient(circle at 92% 0%, rgba(246, 164, 0, 0.22), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(223, 247, 255, 0.58));
}

.lyrics-song::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 1.1rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 7px rgba(246, 164, 0, 0.14),
    0 0 26px rgba(246, 164, 0, 0.34);
}

.lyrics-slide[aria-hidden="true"] {
  visibility: hidden;
}

.lyrics-song h3 {
  margin: 0 0 1rem;
  color: var(--blue-950);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.1;
}

.lyrics-song .verse {
  margin: 0 0 1rem;
  color: var(--blue-950);
  font-size: 1.08rem;
  line-height: 1.58;
}

.lyrics-song .verse:last-child {
  margin-bottom: 0;
}

.lyrics-song strong {
  color: var(--gold);
  font-weight: 400;
}

.lyrics-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

body.lights-off .lyrics-song {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 92% 0%, rgba(246, 164, 0, 0.18), transparent 9rem),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

body.lights-off .lyrics-song .verse {
  color: #fff;
}

body.lights-off .lyrics-song h3 {
  color: #fff;
}

.slider-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 14px 28px rgba(246, 164, 0, 0.26);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.slider-dots button {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 33, 76, 0.24);
  cursor: pointer;
}

.slider-dots button[aria-current="true"] {
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(246, 164, 0, 0.14);
}

body.lights-off .slider-dots button {
  background: rgba(255, 255, 255, 0.32);
}

body.lights-off .slider-dots button[aria-current="true"] {
  background: var(--gold);
}

.lyrics-download {
  margin-top: 1.6rem;
}

.section-game {
  padding-top: 5.7rem;
  padding-bottom: 5.7rem;
}

.game-page-section h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.02;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.game-setup {
  display: grid;
  gap: 1.4rem;
}

.game-option-group {
  display: grid;
  gap: 0.8rem;
}

.game-option-group h2,
.game-option-group h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
}

.game-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(0.85rem, 2vw, 1.25rem);
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(246, 164, 0, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.game-stat {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 0.7rem;
  color: var(--blue-950);
  border: 2px solid rgba(5, 33, 76, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.game-stat > span {
  font-size: 0.92rem;
  line-height: 1.1;
}

.game-stat strong {
  color: var(--gold-deep);
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}

.game-choice-grid,
.game-character-grid {
  display: grid;
  gap: 0.7rem;
}

.game-choice-grid {
  grid-template-columns: 1fr;
}

.game-character-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.game-choice input {
  position: absolute;
  inset: 1rem auto auto 1rem;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.game-choice span {
  position: relative;
  display: grid;
  min-height: 76px;
  padding: 0.86rem 0.9rem 0.86rem 4.35rem;
  color: var(--blue-950);
  border: 2px solid rgba(5, 33, 76, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.52);
}

.game-choice span::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(5, 33, 76, 0.36);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 0.42rem #fff;
  transform: translateY(-50%);
}

.game-choice input:checked + span {
  border-color: rgba(246, 164, 0, 0.72);
  background: rgba(255, 248, 223, 0.82);
  box-shadow: 0 12px 24px rgba(246, 164, 0, 0.16);
}

.game-choice input:checked + span::before {
  border-color: var(--gold);
  background: var(--gold);
}

.game-choice input:focus-visible + span {
  outline: 4px solid rgba(246, 164, 0, 0.22);
  outline-offset: 3px;
}

.game-choice input:disabled + span {
  cursor: default;
  opacity: 0.74;
}

.game-choice strong {
  color: var(--blue-950);
  font-weight: 500;
  line-height: 1.2;
}

.game-choice small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.25;
}

.game-character-choice span {
  justify-items: center;
  min-height: 158px;
  padding: 1.1rem 0.85rem 0.85rem;
  text-align: center;
}

.game-character-choice span::before {
  top: 1.05rem;
  transform: none;
}

.game-character-choice img {
  width: min(100%, 118px);
  height: 96px;
  object-fit: contain;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 10px 14px rgba(5, 33, 76, 0.12));
}

.game-character-choice img.is-mirrored {
  transform: scaleX(-1);
}

.game-canvas-wrap {
  display: grid;
  gap: 0.7rem;
}

.game-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  border: 5px solid var(--blue-950);
  border-radius: 28px;
  background: var(--sky-soft);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45);
  cursor: crosshair;
  touch-action: none;
}

.game-status {
  min-height: 1.7em;
  margin: 0;
  color: var(--blue-950);
  font-size: 1rem;
  text-align: center;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.game-controls .button {
  min-width: 170px;
}

.score-save-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: start;
  margin-top: clamp(1rem, 3vw, 1.6rem);
}

.game-result-modal[hidden],
.game-result-form[hidden] {
  display: none;
}

.game-result-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(5, 33, 76, 0.48);
  backdrop-filter: blur(10px);
}

.game-result-card {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(100%, 520px);
  padding: clamp(1.25rem, 4vw, 2rem);
  color: var(--blue-950);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 0%, rgba(246, 164, 0, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 54px rgba(5, 33, 76, 0.24);
  text-align: center;
}

.game-result-card h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
}

.game-result-card h3 span,
.game-result-level strong {
  color: var(--gold-deep);
}

.game-result-level {
  margin: 0;
  color: var(--muted);
}

.game-result-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--blue-950);
  background: rgba(5, 33, 76, 0.08);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.game-result-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.game-result-form .button,
.game-result-form .form-status {
  justify-self: center;
}

.score-form-card,
.leaderboard-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background:
    radial-gradient(circle at 96% 0%, rgba(246, 164, 0, 0.15), transparent 10rem),
    rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.score-form-card h2,
.leaderboard-card h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.leaderboard-page-card {
  width: min(100%, 760px);
  margin: 0 auto;
}

.score-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

[data-leaderboard-page] .score-form {
  grid-template-columns: 1fr;
}

.score-form .button,
.score-form .form-status {
  grid-column: 1 / -1;
  justify-self: center;
}

.last-score-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.last-score-value {
  color: var(--gold-deep);
  font-weight: 800;
}

.leaderboard-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 54px;
  padding: 0.72rem 0.85rem;
  color: var(--blue-950);
  border: 2px solid rgba(5, 33, 76, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
}

.leaderboard-list li.is-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
  text-align: center;
}

.leaderboard-rank,
.leaderboard-points,
.leaderboard-level {
  color: var(--gold-deep);
  font-weight: 800;
}

.leaderboard-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.leaderboard-level {
  color: var(--blue-800);
  white-space: nowrap;
}

body.lights-off .game-page-section h1 {
  color: var(--gold);
}

body.lights-off .game-option-group h2,
body.lights-off .game-option-group h3,
body.lights-off .game-choice span,
body.lights-off .game-choice strong,
body.lights-off .game-status {
  color: #fff;
}

body.lights-off .game-choice small {
  color: rgba(255, 255, 255, 0.76);
}

body.lights-off .game-choice span,
body.lights-off .game-stat,
body.lights-off .game-panel,
body.lights-off .score-form-card,
body.lights-off .leaderboard-card,
body.lights-off .leaderboard-list li {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

body.lights-off .game-choice span::before {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.92);
}

body.lights-off .game-choice input:checked + span::before {
  border-color: var(--gold);
  background: var(--gold);
}

body.lights-off .score-form-card h2,
body.lights-off .leaderboard-card h2,
body.lights-off .leaderboard-list li {
  color: #fff;
}

body.lights-off .game-stat strong,
body.lights-off .game-result-card h3 span,
body.lights-off .game-result-level strong,
body.lights-off .last-score-value {
  color: #fff;
}

body.lights-off .last-score-note {
  color: rgba(255, 255, 255, 0.78);
}

body.lights-off .game-result-card {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 15% 0%, rgba(246, 164, 0, 0.18), transparent 12rem),
    rgba(5, 33, 76, 0.96);
}

body.lights-off .game-result-card h3,
body.lights-off .game-result-level,
body.lights-off .leaderboard-level {
  color: #fff;
}

body.lights-off .game-result-close {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

body.lights-off .game-choice input:checked + span {
  border-color: rgba(246, 164, 0, 0.78);
  background: rgba(246, 164, 0, 0.18);
}

body.lights-off .game-canvas-wrap canvas {
  border-color: rgba(255, 255, 255, 0.86);
  background: var(--blue-950);
}

.section-hexen {
  background: transparent;
}

body.lights-off .section-hexen {
  background: transparent;
}

.hexen-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.hexen-scene {
  text-align: center;
}

.hexen-scene img {
  height: 250px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 18px 28px rgba(5, 33, 76, 0.15));
  transition: transform 240ms ease;
}

.hexen-scene:hover img {
  transform: translateY(-5px) rotate(-1deg);
}

.hexen-scene p {
  max-width: 32ch;
  margin-inline: auto;
}

.section-donate {
  background: transparent;
}

.donation-layout {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.donation-copy {
  width: min(100%, 780px);
  margin: 0 auto;
  text-align: center;
}

.paypal-form {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

.qr-panel {
  margin: 0;
  text-align: center;
}

.qr-panel img {
  width: min(100%, 210px);
  margin: 0 auto 0.8rem;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.qr-panel figcaption {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 400;
}

body.lights-off .section-donate p,
body.lights-off .qr-panel figcaption {
  color: rgba(255, 255, 255, 0.78);
}

.contact-layout {
  align-items: start;
}

.contact-copy address {
  color: var(--blue-950);
  font-style: normal;
  font-weight: 400;
}

.contact-copy {
  width: min(100%, 760px);
  margin: 0 auto;
}

.contact-copy a {
  color: var(--blue-900);
  font-weight: 400;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.35rem;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  width: min(100%, 820px);
  margin: 0 auto;
  text-align: left;
}

body.lights-off .contact-form {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row-wide,
.form-note,
.form-status {
  grid-column: 1 / -1;
}

.contact-form .button {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  min-width: 190px;
  padding-inline: 1.65rem;
}

label {
  color: var(--blue-950);
  font-weight: 400;
}

body.lights-off label {
  color: #fff;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(5, 33, 76, 0.2);
  border-radius: 22px;
  padding: 0.9rem 1.25rem;
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 3.35rem;
  background-color: rgba(255, 255, 255, 0.82);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L7 7L12 2' fill='none' stroke='%2305214c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1.65rem center;
  background-repeat: no-repeat;
  background-size: 14px 9px;
}

body.lights-off input,
body.lights-off textarea,
body.lights-off select {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.18);
}

body.lights-off select {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L7 7L12 2' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1.65rem center;
  background-repeat: no-repeat;
  background-size: 14px 9px;
}

body.lights-off select option {
  color: #111;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 164, 0, 0.15);
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status:not(:empty) {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.62);
}

.form-status.is-success {
  color: #064526;
  background: rgba(156, 239, 186, 0.72);
}

.form-status.is-error {
  color: #631a1a;
  background: rgba(255, 199, 199, 0.78);
}

body.lights-off .form-note,
body.lights-off .form-status {
  color: rgba(255, 255, 255, 0.72);
}

body.lights-off .form-status:not(:empty) {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

body.lights-off .form-status.is-success {
  color: #dfffe9;
  background: rgba(48, 156, 91, 0.35);
}

body.lights-off .form-status.is-error {
  color: #ffe4e4;
  background: rgba(189, 52, 52, 0.34);
}

.honeypot {
  display: none;
}

.footer-train {
  position: relative;
  z-index: 2;
  padding: 0 6vw 1.8rem;
  background: transparent;
}

.footer-train img {
  width: min(100%, 920px);
  margin: 0 auto;
  filter: drop-shadow(0 18px 26px rgba(5, 33, 76, 0.16));
}

.cookie-banner {
  position: fixed;
  z-index: 160;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(calc(100% - 2rem), 720px);
  padding: 1rem;
  color: var(--blue-950);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(246, 164, 0, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 48px rgba(5, 33, 76, 0.2);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.35;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: flex-end;
}

.cookie-banner-actions a {
  color: var(--blue-950);
  font-weight: 500;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.cookie-banner .button {
  min-height: 44px;
  padding: 0.72rem 1.2rem;
  font-size: 0.98rem;
}

body.lights-off .cookie-banner {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(246, 164, 0, 0.18), transparent 12rem),
    rgba(5, 33, 76, 0.96);
}

body.lights-off .cookie-banner p {
  color: rgba(255, 255, 255, 0.76);
}

body.lights-off .cookie-banner-actions a {
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 120;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 14px 26px rgba(246, 164, 0, 0.28);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  transform: rotate(-90deg);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  padding: 3.1rem 6vw;
  color: #fff;
  background: var(--blue-950);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer-left {
  justify-self: end;
}

.footer-logo {
  justify-self: center;
}

.footer-center {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}

.footer-inner img {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner > nav:not(.footer-legal) {
  justify-self: start;
  justify-content: flex-start;
}

.footer-inner .footer-legal {
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.footer-inner a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 400;
  transition: color 180ms ease, text-decoration-color 180ms ease, transform 180ms ease;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
  transform: translateY(-1px);
}

.legal-page {
  padding: 4rem 6vw 5rem;
}

.legal-inner {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 2rem;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.legal-page h1 {
  color: var(--blue-950);
}

body.lights-off .legal-page h1,
body.lights-off .game-copy h1 {
  color: var(--gold);
}

.legal-inner h2,
.legal-inner h3 {
  margin-top: 2rem;
  color: var(--blue-950);
  font-weight: 500;
  font-style: normal;
}

.legal-inner a {
  color: var(--blue-900);
  font-weight: 400;
}

.reveal-section {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.game-launch {
  margin-top: 2.35rem;
}

.door-game-page {
  position: relative;
  z-index: 2;
  padding: clamp(2.4rem, 5vw, 4.6rem) 5vw 5rem;
}

.door-game-shell,
.game-trailer {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.door-game-shell {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.door-game-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: end;
}

.game-copy {
  max-width: 760px;
}

.game-copy h1 {
  color: var(--blue-950);
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.game-copy p:not(.eyebrow),
.trailer-copy p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
}

.door-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.7rem;
  align-items: stretch;
}

.door-scoreboard > div {
  min-width: 126px;
  padding: 0.8rem 0.95rem;
  color: var(--blue-950);
  border: 3px solid rgba(5, 33, 76, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.68);
}

.door-scoreboard span {
  display: block;
  font-size: 0.86rem;
  line-height: 1.1;
}

.door-scoreboard strong {
  display: block;
  color: var(--gold-deep);
  font-size: 2rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}

.door-scoreboard .button {
  min-height: auto;
  padding: 0.8rem 1rem;
}

.door-game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(280px, 0.48fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: start;
}

.door-stage-panel,
.door-side-panel,
.game-trailer {
  border: 3px solid rgba(5, 33, 76, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.door-stage-panel {
  display: grid;
  gap: 0.85rem;
  padding: clamp(0.72rem, 1.4vw, 1rem);
}

.door-stage {
  --player-x: 8%;
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 5px solid var(--blue-950);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #c9f3ff 0%, #f7fdff 52%, #a9e6b9 53%, #78c982 100%);
  isolation: isolate;
  touch-action: none;
}

.door-stage::before {
  content: "";
  position: absolute;
  inset: auto -5% 24%;
  height: 20%;
  border-top: 4px solid rgba(5, 33, 76, 0.22);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.66) 0 24px, transparent 26px),
    radial-gradient(circle at 58% 8%, rgba(255, 255, 255, 0.5) 0 20px, transparent 22px);
  opacity: 0.78;
}

.door-sky span {
  position: absolute;
  top: var(--top, 8%);
  left: var(--left, 12%);
  width: 34px;
  height: 34px;
  background: #fff08a;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 13px rgba(246, 164, 0, 0.42));
  animation: float-soft 5s ease-in-out infinite;
}

.door-sky span:nth-child(2) {
  --top: 14%;
  --left: 42%;
  width: 24px;
  height: 24px;
  animation-delay: -1s;
}

.door-sky span:nth-child(3) {
  --top: 9%;
  --left: 72%;
  width: 30px;
  height: 30px;
  animation-delay: -2s;
}

.door-sky span:nth-child(4) {
  --top: 26%;
  --left: 86%;
  width: 20px;
  height: 20px;
  animation-delay: -3s;
}

.door-road {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -24px;
  z-index: 3;
  height: 142px;
  border-top: 5px solid var(--blue-950);
  border-radius: 55% 48% 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 255, 255, 0.42) 54px 86px),
    #f1d39c;
  transform: rotate(-1deg);
}

.door-house {
  --house-color: #ffcd33;
  --roof-color: #e95a9c;
  position: absolute;
  bottom: 120px;
  left: var(--house-left);
  z-index: 2;
  width: clamp(74px, 9.8vw, 116px);
  height: clamp(92px, 12vw, 142px);
  padding: 0;
  border: 5px solid var(--blue-950);
  border-radius: 8px;
  background: var(--house-color);
  box-shadow: 0 14px 0 rgba(5, 33, 76, 0.08);
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform 180ms ease, filter 180ms ease;
}

.door-house:hover,
.door-house:focus-visible,
.door-house.is-near {
  transform: translateX(-50%) translateY(-5px);
  filter: drop-shadow(0 12px 16px rgba(246, 164, 0, 0.28));
}

.door-house.is-solved {
  --house-color: #6fe49b;
}

.door-house.is-slammed {
  --house-color: #b9c5d6;
  filter: grayscale(0.25);
}

.house-one {
  --house-left: 10%;
  --house-color: #ffdc5f;
  --roof-color: #e9558f;
}

.house-two {
  --house-left: 25%;
  --house-color: #66d49a;
  --roof-color: #ff9f1c;
}

.house-three {
  --house-left: 41%;
  --house-color: #8bd8ff;
  --roof-color: #f6a400;
}

.house-four {
  --house-left: 58%;
  --house-color: #f7a4ce;
  --roof-color: #0c8f5e;
}

.house-five {
  --house-left: 74%;
  --house-color: #fff08a;
  --roof-color: #1161bf;
}

.house-six {
  --house-left: 90%;
  --house-color: #ffb36a;
  --roof-color: #8c2f9c;
}

.house-roof {
  position: absolute;
  left: 50%;
  top: -48%;
  width: 118%;
  height: 58%;
  background: var(--blue-950);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.house-roof::before {
  content: "";
  position: absolute;
  inset: 8px 8px 5px;
  background: var(--roof-color);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.house-window {
  position: absolute;
  left: 14%;
  top: 24%;
  width: 27%;
  aspect-ratio: 1;
  border: 4px solid var(--blue-950);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 45%, var(--blue-950) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, var(--blue-950) 45% 55%, transparent 55%),
    #fff8df;
}

.house-door {
  position: absolute;
  right: 13%;
  bottom: -5px;
  width: 38%;
  height: 56%;
  border: 4px solid var(--blue-950);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #8b4b22;
  transform-origin: right center;
}

.house-door::after {
  content: "";
  position: absolute;
  left: 16%;
  top: 44%;
  width: 8px;
  height: 8px;
  border: 3px solid var(--blue-950);
  border-radius: 50%;
  background: var(--gold);
}

.door-house.is-solved .house-door {
  background: #0c8f5e;
}

.door-house.is-slammed .house-door,
.door-house.is-slamming .house-door {
  animation: door-slam 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.house-bell {
  position: absolute;
  right: 5%;
  top: 46%;
  width: 18px;
  height: 18px;
  border: 3px solid var(--blue-950);
  border-radius: 50%;
  background: var(--gold);
}

.door-house.is-near .house-bell {
  animation: ring-pulse 720ms ease-in-out infinite;
}

.door-player {
  position: absolute;
  left: var(--player-x);
  bottom: 46px;
  z-index: 5;
  width: clamp(112px, 15vw, 164px);
  transform: translateX(-50%);
  transition: left 120ms linear;
  pointer-events: none;
}

.door-player img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 14px rgba(5, 33, 76, 0.2));
}

.door-player.is-walking img {
  animation: player-walk 430ms ease-in-out infinite;
}

.door-player.is-facing-left img {
  transform: scaleX(-1);
}

.candy-burst {
  position: absolute;
  left: var(--burst-x, 50%);
  bottom: 120px;
  z-index: 7;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.candy-burst span {
  position: absolute;
  width: 18px;
  height: 13px;
  border: 3px solid var(--blue-950);
  border-radius: 8px;
  background: var(--candy-color, #f6a400);
  animation: candy-pop 760ms ease-out forwards;
}

.screen-candy-flood {
  position: fixed;
  inset: 0;
  z-index: 360;
  overflow: hidden;
  pointer-events: none;
}

.screen-candy-flood span {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, -12%);
  width: var(--w, 22px);
  height: var(--h, 15px);
  border: 3px solid var(--blue-950);
  border-radius: 8px;
  background: var(--candy-color, #f6a400);
  box-shadow: 0 5px 0 rgba(5, 33, 76, 0.12);
  animation: candy-rain var(--duration, 3.4s) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.screen-candy-flood span::before,
.screen-candy-flood span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: inherit;
  border: 2px solid var(--blue-950);
  transform: translateY(-50%) rotate(45deg);
}

.screen-candy-flood span::before {
  left: -7px;
}

.screen-candy-flood span::after {
  right: -7px;
}

.door-trailer-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(5, 33, 76, 0.58);
  backdrop-filter: blur(5px);
}

.door-trailer-overlay[hidden] {
  display: none;
}

.door-trailer-card {
  width: min(92%, 620px);
  min-height: 230px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.45rem);
  border: 5px solid var(--blue-950);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 240, 138, 0.72), transparent 5rem),
    #fff8df;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.door-trailer-card img {
  width: min(100%, 460px);
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(5, 33, 76, 0.18));
}

.door-trailer-overlay.is-playing .door-trailer-card img {
  animation: trailer-mini-ride 5s ease-in-out both;
}

.door-trailer-card p {
  min-height: 2.4em;
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
}

.door-controls {
  display: grid;
  grid-template-columns: 54px minmax(150px, 220px) 54px;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.round-control,
.challenge-close {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 12px 22px rgba(246, 164, 0, 0.25);
  cursor: pointer;
}

.round-control span {
  display: block;
  font-size: 2.4rem;
  line-height: 0.8;
}

.doorbell-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.58;
}

.door-status {
  min-height: 1.6em;
  margin: 0;
  color: var(--blue-950);
  text-align: center;
}

.door-side-panel {
  display: grid;
  gap: 1.15rem;
  padding: 1rem;
}

.door-option-group {
  display: grid;
  gap: 0.75rem;
}

.door-option-group h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.24rem;
  font-weight: 500;
  line-height: 1.15;
}

.door-character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.door-character-card {
  position: relative;
  cursor: pointer;
}

.door-character-card input {
  position: absolute;
  inset: 0.55rem auto auto 0.55rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
}

.door-character-card span {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  min-height: 122px;
  padding: 0.65rem 0.45rem 0.55rem;
  color: var(--blue-950);
  border: 3px solid rgba(5, 33, 76, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.door-character-card input:checked + span {
  border-color: rgba(246, 164, 0, 0.82);
  background: rgba(255, 248, 223, 0.86);
}

.door-character-card input:focus-visible + span,
.fragment-options button:focus-visible,
.door-house:focus-visible,
.round-control:focus-visible,
.challenge-close:focus-visible {
  outline: 4px solid rgba(246, 164, 0, 0.25);
  outline-offset: 3px;
}

.door-character-card img {
  width: 82px;
  height: 74px;
  object-fit: contain;
}

.door-character-card strong {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
}

.song-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.song-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.65rem;
  color: var(--blue-950);
  border: 2px solid rgba(5, 33, 76, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.1;
}

.door-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.door-progress li {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0.3rem;
  color: var(--blue-950);
  border: 2px solid rgba(5, 33, 76, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  text-align: center;
}

.door-progress li.is-solved {
  color: #05214c;
  background: #9cefba;
}

.door-progress li.is-slammed {
  color: #05214c;
  background: #d9e1eb;
  text-decoration: line-through;
}

.song-challenge {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 33, 76, 0.56);
  backdrop-filter: blur(10px);
}

.song-challenge[hidden] {
  display: none;
}

.song-challenge-dialog {
  width: min(100%, 720px);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 5px solid var(--blue-950);
  border-radius: 8px;
  background:
    radial-gradient(circle at 95% 5%, rgba(246, 164, 0, 0.22), transparent 9rem),
    #fff8df;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.song-challenge-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
}

.song-challenge-head .eyebrow,
.trailer-copy .eyebrow,
.game-copy .eyebrow {
  color: var(--gold) !important;
}

.song-challenge h2 {
  grid-column: 1;
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
}

.challenge-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.song-prompt {
  margin: 1.1rem 0 1rem;
  color: var(--blue-950);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.fragment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.fragment-options button {
  min-height: 74px;
  padding: 0.75rem 0.9rem;
  color: var(--blue-950);
  border: 3px solid var(--blue-950);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 0 rgba(5, 33, 76, 0.12);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.fragment-options button:hover {
  transform: translateY(-2px);
  background: #fff3bd;
  box-shadow: 0 9px 0 rgba(5, 33, 76, 0.12);
}

.fragment-options button.is-correct {
  background: #9cefba;
}

.fragment-options button.is-wrong {
  background: #ffc7c7;
}

.fragment-result {
  min-height: 1.5em;
  margin: 1rem 0 0;
  color: var(--blue-950);
  font-weight: 500;
}

.game-trailer {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.trailer-copy h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
}

.trailer-screen {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 5px solid var(--blue-950);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 240, 138, 0.78) 0 42px, transparent 44px),
    linear-gradient(180deg, #0c4696 0%, #72d8ff 64%, #91d784 65% 100%);
}

.trailer-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 2px, transparent 2.4px),
    radial-gradient(circle, rgba(246, 164, 0, 0.86) 0 2px, transparent 2.4px);
  background-size: 82px 82px, 118px 118px;
  background-position: 0 0, 40px 28px;
  opacity: 0.62;
}

.trailer-train {
  position: absolute;
  left: -18%;
  bottom: 28px;
  z-index: 2;
  width: min(140%, 860px);
  max-width: none;
  filter: drop-shadow(0 18px 18px rgba(5, 33, 76, 0.2));
}

.trailer-screen.is-playing .trailer-train {
  animation: trailer-ride 8s ease-in-out both;
}

.trailer-house-row span {
  position: absolute;
  bottom: 54px;
  width: 72px;
  height: 74px;
  border: 4px solid var(--blue-950);
  border-radius: 8px;
  background: #fff08a;
}

.trailer-house-row span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -24px;
  width: 52px;
  height: 52px;
  border: 4px solid var(--blue-950);
  border-right: 0;
  border-bottom: 0;
  border-radius: 8px 0 0 0;
  background: #e9558f;
  transform: translateX(-50%) rotate(45deg);
}

.trailer-house-row span:nth-child(1) {
  left: 8%;
}

.trailer-house-row span:nth-child(2) {
  right: 22%;
  background: #66d49a;
}

.trailer-house-row span:nth-child(3) {
  right: 7%;
  background: #ffb36a;
}

.trailer-screen p {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  z-index: 4;
  width: min(92%, 620px);
  margin: 0;
  padding: 0.75rem 0.95rem;
  color: #fff;
  border-radius: 8px;
  background: rgba(5, 33, 76, 0.72);
  text-align: center;
  transform: translateX(-50%);
}

body.lights-off .game-copy p:not(.eyebrow),
body.lights-off .trailer-copy p:not(.eyebrow),
body.lights-off .door-status {
  color: rgba(255, 255, 255, 0.82);
}

body.lights-off .door-stage-panel,
body.lights-off .door-side-panel,
body.lights-off .game-trailer,
body.lights-off .door-scoreboard > div {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

body.lights-off .door-stage {
  background:
    linear-gradient(180deg, #05214c 0%, #0c4696 52%, #376844 53%, #1d4b35 100%);
  border-color: rgba(255, 255, 255, 0.88);
}

body.lights-off .door-scoreboard > div,
body.lights-off .door-option-group h2,
body.lights-off .door-character-card span,
body.lights-off .door-character-card strong,
body.lights-off .song-chip-list span,
body.lights-off .door-progress li,
body.lights-off .trailer-copy h2 {
  color: #fff;
}

body.lights-off .door-character-card span,
body.lights-off .song-chip-list span,
body.lights-off .door-progress li {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

body.lights-off .door-character-card input:checked + span {
  color: var(--blue-950);
  border-color: rgba(246, 164, 0, 0.82);
  background: rgba(255, 248, 223, 0.9);
}

@keyframes player-walk {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

@keyframes door-slam {
  0% {
    transform: rotateY(0);
  }
  48% {
    transform: rotateY(-58deg);
  }
  100% {
    transform: rotateY(0);
  }
}

@keyframes candy-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.35) rotate(0);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, -92px)) scale(1) rotate(170deg);
  }
}

@keyframes candy-rain {
  0% {
    opacity: 0;
    transform: translate3d(0, -18vh, 0) rotate(0deg) scale(0.7);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--drift, 0px), 116vh, 0) rotate(var(--spin, 260deg)) scale(1);
  }
}

@keyframes trailer-ride {
  0% {
    transform: translateX(-22%);
  }
  45% {
    transform: translateX(7%);
  }
  100% {
    transform: translateX(30%);
  }
}

@keyframes trailer-mini-ride {
  0% {
    transform: translateX(-18%) scale(0.9);
  }
  45% {
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(18%) scale(0.96);
  }
}

@media (max-width: 1040px) {
  .door-game-head,
  .door-game-grid,
  .game-trailer {
    grid-template-columns: 1fr;
  }

  .door-scoreboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .door-stage {
    min-height: 390px;
  }
}

@media (max-width: 700px) {
  .door-game-page {
    padding-inline: 1rem;
  }

  .door-game-head {
    text-align: center;
  }

  .door-scoreboard {
    grid-template-columns: 1fr 1fr;
  }

  .door-scoreboard .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .door-stage {
    min-height: 330px;
  }

  .door-house {
    width: 48px;
    height: 68px;
    bottom: 104px;
    border-width: 3px;
  }

  .house-roof {
    top: -40%;
    height: 48%;
  }

  .house-roof::before {
    inset: 5px 5px 3px;
  }

  .house-window {
    border-width: 2px;
  }

  .house-door {
    border-width: 2px;
  }

  .house-bell {
    width: 11px;
    height: 11px;
    border-width: 2px;
  }

  .door-player {
    width: 105px;
    bottom: 42px;
  }

  .door-controls {
    grid-template-columns: 50px minmax(130px, 1fr) 50px;
  }

  .round-control {
    width: 50px;
    height: 50px;
  }

  .door-character-grid,
  .fragment-options {
    grid-template-columns: 1fr;
  }

  .door-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trailer-screen {
    min-height: 260px;
  }

  .trailer-train {
    width: 760px;
  }
}

@keyframes star-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-92px, 92px, 0);
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes meteor {
  0% {
    opacity: 0;
    transform: translate3d(12vw, -9vh, 0) rotate(-24deg) scale(0.82);
  }
  10% {
    opacity: 0.72;
  }
  23% {
    opacity: 0;
    transform: translate3d(-11vw, 21vh, 0) rotate(-24deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-11vw, 21vh, 0) rotate(-24deg) scale(1);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(2deg);
  }
}

@keyframes cursor-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
  18% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.92) rotate(90deg);
  }
}

@keyframes button-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.98) rotate(120deg);
  }
}

@media (max-width: 1040px) {
  .site-header {
    display: flex;
    justify-content: space-between;
  }

  .header-actions {
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
  }

  .site-nav {
    position: absolute;
    z-index: 40;
    order: 3;
    inset: 82px 1rem auto;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 30px;
    background: rgba(223, 247, 255, 0.96);
    box-shadow: 0 22px 48px rgba(5, 33, 76, 0.18);
    backdrop-filter: blur(14px);
  }

  body.lights-off .site-nav {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(5, 33, 76, 0.94);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  }

  .site-nav.is-static {
    position: static;
    display: flex;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .program-layout,
  .route-layout,
  .donation-layout,
  .contact-layout,
  .game-layout,
  .score-save-panel {
    grid-template-columns: 1fr;
  }

  .game-option-group h2,
  .game-option-group h3 {
    text-align: center;
  }

  .game-setup {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .route-visual {
    min-height: auto;
  }

  .hexen-scenes {
    grid-template-columns: 1fr;
  }

  .hexen-scene {
    max-width: 520px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-inner nav {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 78px;
    padding-inline: 1rem;
  }

  .brand,
  .brand img {
    width: 62px;
    height: 62px;
  }

  .light-toggle {
    width: 46px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .light-toggle-text {
    display: none;
  }

  .site-nav {
    inset: 78px 1rem auto;
  }

  .hero {
    min-height: calc(100vh - 78px);
    padding-top: 6rem;
    background:
      linear-gradient(180deg, rgba(32, 150, 210, 0.02), rgba(4, 33, 76, 0.1)),
      url("../img/laternenzug-hehler-hero.jpg") 64% center / auto 118% no-repeat;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.15rem);
  }

  .hero h1 span:first-child {
    max-width: 7.2ch;
    margin-inline: auto;
  }

  .hero h1 span:last-child {
    max-width: 8.8ch;
    margin-inline: auto;
  }

  .hero-date {
    font-size: 1.18rem;
  }

  .hero-copy {
    max-width: 29ch;
  }

  .hero-actions,
  .button-row,
  .center-action {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .cookie-banner {
    right: 1rem;
    bottom: 1rem;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .cookie-banner-actions {
    justify-content: space-between;
  }

  .cookie-banner .button {
    width: auto;
  }

  .section-game {
    padding-inline: 1rem;
  }

  .game-panel {
    border-radius: 28px;
  }

  .game-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-stat {
    min-height: 64px;
  }

  .game-canvas-wrap canvas {
    border-width: 4px;
    border-radius: 22px;
  }

  .game-choice:not(.game-character-choice) input {
    inset: 1.38rem auto auto 1.35rem;
  }

  .game-choice:not(.game-character-choice) span {
    min-height: 86px;
    padding-left: 5.85rem;
  }

  .game-choice:not(.game-character-choice) span::before {
    left: 1.35rem;
    width: 2.55rem;
    height: 2.55rem;
    border-width: 4px;
    box-shadow: inset 0 0 0 0.56rem #fff;
  }

  .game-choice:not(.game-character-choice) small {
    display: block;
    margin-top: 0.15rem;
  }

  .game-result-modal {
    align-items: start;
    padding-top: max(1.25rem, env(safe-area-inset-top));
  }

  .game-result-card {
    max-height: calc(100dvh - 2.5rem);
    overflow-y: auto;
    border-radius: 28px;
  }

  .game-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .game-character-grid {
    grid-template-columns: 1fr;
  }

  .score-form {
    grid-template-columns: 1fr;
  }

  .leaderboard-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .leaderboard-level,
  .leaderboard-points {
    grid-column: 2;
    justify-self: start;
  }

  .header-contact {
    min-height: 44px;
    padding: 0.72rem 0.86rem;
  }

  .contact-form .button {
    width: min(100%, 220px);
  }

  .program-step,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .program-steps {
    grid-template-columns: 1fr;
  }

  .program-step {
    text-align: center;
  }

  .program-step img {
    justify-self: center;
  }

  .lyrics-slider {
    padding-inline: 0;
  }

  .slider-control {
    top: auto;
    bottom: -0.3rem;
    width: 46px;
    height: 46px;
    font-size: 1.7rem;
    transform: none;
  }

  .slider-prev {
    left: 0;
  }

  .slider-next {
    right: 0;
  }

  .slider-dots {
    min-height: 46px;
    align-items: center;
    padding-inline: 3.3rem;
  }

  .lyrics-song {
    padding: 1.25rem;
    border-radius: 28px;
  }

  .lyrics-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .date-ribbon {
    display: grid;
    min-height: auto;
    gap: 1.2rem;
    place-items: center;
  }

  .date-ribbon::before {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 50%;
    width: 5px;
    border-radius: 999px;
    background: var(--gold);
    transform: translateX(-50%);
  }

  .date-path {
    display: none;
  }

  .date-stop {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
  }

  .route-visual {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-section {
    opacity: 1;
    transform: none;
  }
}
