/**
 * ===============================
 * STYLE.CSS - PORTES D'UNIVERS
 * ===============================
 */

:root {
  --year: "";
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Roboto, Arial, sans-serif;
  --ink: #f8efd9;
  --dark: #0b0a0d;
  --ivory: #f8efd9;
  --cream: #f7efd5;
  --gold: #d79b3a;
  --gold-soft: #f4d080;
  --bordeaux: #4d1118;
  --bordeaux-deep: #24070b;
  --mahogany: #34130d;
  --sky: #78c7df;
  --sky-deep: #24566b;
  --sun: #f3c84b;
  --green: #86b87a;
  --green-deep: #345d3d;
  --transition-fast: 180ms ease;
  --transition-base: 320ms ease;
  --transition-slow: 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-height: 74px;
  --container: min(1160px, 92vw);
  --focus: #f4d080;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--dark);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 30%, rgba(215, 155, 58, 0.18), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(120, 199, 223, 0.2), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(20, 10, 8, 0.95), rgba(11, 10, 13, 0.96) 60%);
  transition: background var(--transition-slow);
}

body.theme-spectacle::before {
  background:
    radial-gradient(circle at 50% 24%, rgba(244, 208, 128, 0.24), transparent 24%),
    radial-gradient(circle at 18% 42%, rgba(98, 22, 28, 0.65), transparent 34%),
    radial-gradient(circle at 82% 42%, rgba(52, 19, 13, 0.65), transparent 34%),
    linear-gradient(180deg, #1a0508 0%, #2b070d 48%, #120306 100%);
}

body.theme-kermesse::before {
  background:
    radial-gradient(circle at 76% 22%, rgba(243, 200, 75, 0.38), transparent 24%),
    radial-gradient(circle at 22% 24%, rgba(120, 199, 223, 0.42), transparent 31%),
    radial-gradient(circle at 54% 85%, rgba(134, 184, 122, 0.38), transparent 34%),
    linear-gradient(180deg, #78c7df 0%, #f7efd5 58%, #86b87a 100%);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 50ms ease;
    --transition-base: 80ms ease;
    --transition-slow: 120ms ease;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
}

p {
  margin: 0;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--ivory);
  background: rgba(8, 8, 11, 0.34);
  border-bottom: 1px solid rgba(248, 239, 217, 0.18);
  backdrop-filter: blur(18px);
}

.header-content {
  width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.header-title span {
  display: block;
  margin-top: 0.1rem;
  color: rgba(248, 239, 217, 0.76);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
}

.halo {
  position: fixed;
  width: 340px;
  height: 340px;
  z-index: 5;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity var(--transition-base);
  background: radial-gradient(circle, rgba(244, 208, 128, 0.28), transparent 64%);
}

body.theme-kermesse .halo {
  background: radial-gradient(circle, rgba(243, 200, 75, 0.34), rgba(120, 199, 223, 0.14) 44%, transparent 68%);
}

main {
  min-height: 100vh;
}

.portal-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(1.5rem, 4vh, 3.5rem)) 0 clamp(3rem, 7vh, 6rem);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(clamp(2rem, 5vh, 5rem), 1fr);
  align-content: start;
  row-gap: clamp(2.5rem, 6vh, 6rem);
  isolation: isolate;
  perspective: 1600px;
}

.portal-hero::before,
.portal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portal-hero::before {
  z-index: -3;
  background:
    radial-gradient(ellipse at 25% 45%, rgba(126, 28, 35, 0.72), transparent 34%),
    radial-gradient(ellipse at 76% 45%, rgba(120, 199, 223, 0.52), transparent 32%),
    radial-gradient(ellipse at 50% 82%, rgba(244, 208, 128, 0.18), transparent 30%),
    linear-gradient(180deg, #09090e 0%, #151019 48%, #08080c 100%);
}

.portal-hero::after {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at center bottom, rgba(0, 0, 0, 0.75), transparent 58%);
  background-size: 88px 88px, 88px 88px, 100% 100%;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 84%, transparent 100%);
  opacity: 0.7;
}

body.opening-spectacle .portal-hero::before {
  animation: theatreFlash 950ms ease both;
}

body.opening-kermesse .portal-hero::before {
  animation: festivalFlash 950ms ease both;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: var(--container);
  margin: 0 auto;
  text-align: center;
  animation: riseIn 780ms ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.42rem 0.85rem;
  margin-bottom: 0.62rem;
  border: 1px solid rgba(244, 208, 128, 0.36);
  border-radius: 999px;
  background: rgba(12, 10, 12, 0.38);
  color: var(--gold-soft);
  font-weight: 700;
  box-shadow: 0 0 30px rgba(244, 208, 128, 0.12);
}

.hero-content h1 {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--ivory);
  font-size: clamp(1.45rem, 2.55vw, 2.75rem);
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-shadow:
    0 0 22px rgba(244, 208, 128, 0.16),
    0 8px 40px rgba(0, 0, 0, 0.55);
}

.hero-content h1 span {
  display: block;
}

.hero-subtitle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.2rem;
  margin-top: 0.46rem;
  color: rgba(248, 239, 217, 0.88);
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.45vw, 1.26rem);
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.5);
}

.hero-hint {
  display: none;
  margin-top: 0.35rem;
  color: rgba(248, 239, 217, 0.68);
  font-size: 0.9rem;
}

.doorway-section {
  position: relative;
  z-index: 4;
  width: var(--container);
  margin: 0 auto;
  align-self: start;
}

.doorway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 7rem);
  align-items: end;
  perspective: 1800px;
}

.universe-door {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  transform-style: preserve-3d;
}

.door-shell {
  position: relative;
  width: min(clamp(260px, 26vw, 520px), clamp(270px, 34vh, 520px));
  height: clamp(380px, 48vh, 720px);
  aspect-ratio: 0.72;
  display: block;
  transform-style: preserve-3d;
  transition:
    transform var(--transition-slow),
    filter var(--transition-slow);
}

.universe-door:hover .door-shell,
.universe-door:focus-visible .door-shell {
  transform: translateY(-10px) rotateX(5deg) scale(1.018);
  filter: saturate(1.08);
}

.door-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 52% 52% 9px 9px / 16% 16% 9px 9px;
  transform-style: preserve-3d;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(248, 239, 217, 0.22),
    inset 0 0 42px rgba(0, 0, 0, 0.45);
}

.door-frame::before {
  content: "";
  position: absolute;
  inset: 4.2%;
  z-index: 9;
  border: 1px solid rgba(248, 239, 217, 0.26);
  border-radius: 52% 52% 9px 9px / 16% 16% 9px 9px;
  pointer-events: none;
}

.door-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 14%, transparent 82%, rgba(0, 0, 0, 0.38)),
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(ellipse at center bottom, rgba(0, 0, 0, 0.42), transparent 46%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.door-glow,
.door-interior,
.door-leaf,
.door-centerline,
.door-threshold {
  position: absolute;
}

.door-glow {
  inset: 11% 12% 10%;
  z-index: 1;
  border-radius: 48% 48% 8px 8px / 14% 14% 8px 8px;
  opacity: 0.72;
  filter: blur(2px);
  transition: opacity var(--transition-base), transform var(--transition-slow);
}

.universe-door:hover .door-glow,
.universe-door.is-open .door-glow {
  opacity: 1;
  transform: scale(1.04);
}

.door-interior {
  inset: 10% 10% 8%;
  z-index: 2;
  border-radius: 48% 48% 8px 8px / 13% 13% 8px 8px;
  overflow: hidden;
}

.door-leaf {
  top: 10%;
  bottom: 8%;
  z-index: 6;
  width: 41.5%;
  border: 1px solid rgba(248, 239, 217, 0.18);
  backface-visibility: hidden;
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow);
}

.door-leaf-left {
  left: 10%;
  border-radius: 70% 4px 4px 8px / 10% 4px 4px 8px;
  transform-origin: left center;
}

.door-leaf-right {
  right: 10%;
  border-radius: 4px 70% 8px 4px / 4px 10% 8px 4px;
  transform-origin: right center;
}

.door-centerline {
  left: 50%;
  top: 12%;
  bottom: 10%;
  z-index: 7;
  width: 1px;
  background: rgba(248, 239, 217, 0.28);
  transform: translateX(-50%);
}

.door-threshold {
  left: 7%;
  right: 7%;
  bottom: 3%;
  z-index: 12;
  height: 7%;
  border-radius: 8px;
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.3);
}

.universe-door:hover .door-leaf-left,
.universe-door:focus-visible .door-leaf-left {
  transform: rotateY(-10deg);
}

.universe-door:hover .door-leaf-right,
.universe-door:focus-visible .door-leaf-right {
  transform: rotateY(10deg);
}

.universe-door.is-open .door-leaf-left {
  transform: rotateY(-76deg) translateX(-2%);
  box-shadow: 16px 0 28px rgba(0, 0, 0, 0.4);
}

.universe-door.is-open .door-leaf-right {
  transform: rotateY(76deg) translateX(2%);
  box-shadow: -16px 0 28px rgba(0, 0, 0, 0.4);
}

.universe-door.is-open .door-centerline {
  opacity: 0;
}

.door-spectacle .door-frame {
  background:
    radial-gradient(circle at 50% 6%, rgba(244, 208, 128, 0.24), transparent 24%),
    linear-gradient(180deg, #612027 0%, #4d1118 52%, #24070b 100%);
}

.door-spectacle .door-glow {
  background:
    radial-gradient(ellipse at 50% 64%, rgba(244, 208, 128, 0.84), transparent 28%),
    radial-gradient(ellipse at 50% 18%, rgba(215, 155, 58, 0.4), transparent 36%);
}

.door-spectacle .door-interior {
  background:
    radial-gradient(ellipse at 50% 64%, rgba(244, 208, 128, 0.72), transparent 26%),
    linear-gradient(180deg, #160406 0%, #421016 58%, #110305 100%);
}

.door-spectacle .door-interior::before {
  content: "";
  position: absolute;
  inset: 52% 8% 0;
  background:
    repeating-linear-gradient(12deg, rgba(244, 208, 128, 0.16) 0 10px, transparent 10px 22px),
    linear-gradient(180deg, rgba(84, 29, 12, 0.28), rgba(12, 3, 4, 0.94));
  transform: perspective(240px) rotateX(58deg);
  transform-origin: bottom;
}

.door-spectacle .door-leaf {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 8px, rgba(0, 0, 0, 0.12) 8px 18px),
    linear-gradient(160deg, #761d26 0%, #4d1118 48%, #23060b 100%);
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(244, 208, 128, 0.16);
}

.door-spectacle .door-threshold {
  background: linear-gradient(180deg, #b47a2a, #5a2d12);
}

.stage-beam {
  position: absolute;
  z-index: 0;
  top: 2%;
  width: 34%;
  height: 96%;
  opacity: 0.44;
  filter: blur(1px);
  background: linear-gradient(180deg, rgba(244, 208, 128, 0.52), transparent 68%);
  clip-path: polygon(44% 0, 58% 0, 100% 100%, 0 100%);
  transition: opacity var(--transition-base), transform var(--transition-slow);
}

.stage-beam-left {
  left: 13%;
  transform: rotate(13deg);
}

.stage-beam-right {
  right: 13%;
  transform: rotate(-13deg);
}

.universe-door:hover .stage-beam {
  opacity: 0.72;
}

.curtain {
  position: absolute;
  z-index: 5;
  top: 7%;
  bottom: 8%;
  width: 26%;
  border-radius: 50% 50% 8px 8px / 10% 10% 8px 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 7px, rgba(0, 0, 0, 0.14) 7px 17px),
    linear-gradient(180deg, #8a242d, #4d1118 72%, #1a0508);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.48);
  transition: transform var(--transition-slow);
}

.curtain-left {
  left: 5%;
}

.curtain-right {
  right: 5%;
}

.door-spectacle.is-open .curtain-left {
  transform: translateX(-46%) rotate(-3deg);
}

.door-spectacle.is-open .curtain-right {
  transform: translateX(46%) rotate(3deg);
}

.gold-dust {
  position: absolute;
  z-index: 14;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 208, 128, 0.9);
  box-shadow: 0 0 18px rgba(244, 208, 128, 0.8);
  animation: dustFloat 6s ease-in-out infinite;
}

.dust-one {
  left: 35%;
  top: 34%;
}

.dust-two {
  left: 62%;
  top: 43%;
  animation-delay: -2s;
}

.dust-three {
  left: 48%;
  top: 63%;
  animation-delay: -4s;
}

.door-character {
  position: absolute;
  z-index: 18;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.36));
  transition:
    transform var(--transition-slow),
    filter var(--transition-slow);
}

.character-spectacle {
  left: -22%;
  top: -4%;
  height: 112%;
  transform: translateX(-2%) rotate(-1deg);
}

.door-spectacle:hover .character-spectacle,
.door-spectacle:focus-visible .character-spectacle {
  transform: translateX(1%) rotate(0deg);
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.42));
}

.door-kermesse .door-frame {
  background:
    radial-gradient(circle at 74% 18%, rgba(243, 200, 75, 0.82), transparent 18%),
    linear-gradient(180deg, #78c7df 0%, #f7efd5 62%, #86b87a 100%);
}

.door-kermesse .door-glow {
  background:
    radial-gradient(circle at 70% 22%, rgba(243, 200, 75, 0.62), transparent 20%),
    radial-gradient(ellipse at 50% 70%, rgba(134, 184, 122, 0.34), transparent 32%),
    linear-gradient(180deg, rgba(248, 239, 217, 0.62), rgba(120, 199, 223, 0.22));
}

.door-kermesse .door-interior {
  background:
    radial-gradient(circle at 72% 22%, rgba(243, 200, 75, 0.7), transparent 18%),
    linear-gradient(180deg, #8fd2e4 0%, #f7efd5 58%, #86b87a 100%);
}

.door-kermesse .door-interior::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -4%;
  height: 36%;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 24% 42%, rgba(52, 93, 61, 0.22), transparent 18%),
    radial-gradient(circle at 74% 58%, rgba(52, 93, 61, 0.22), transparent 20%),
    linear-gradient(180deg, #a8c985, #5f8f5f);
}

.door-kermesse .door-leaf {
  background:
    repeating-linear-gradient(90deg, rgba(52, 93, 61, 0.1) 0 12px, rgba(255, 255, 255, 0.18) 12px 24px),
    linear-gradient(160deg, #f7efd5 0%, #f3c84b 52%, #d59d35 100%);
  box-shadow:
    inset 0 0 24px rgba(116, 93, 33, 0.28),
    inset 0 0 0 1px rgba(52, 93, 61, 0.18);
}

.door-kermesse .door-threshold {
  background: linear-gradient(180deg, #f3c84b, #86b87a);
}

.festival-sun {
  position: absolute;
  z-index: 0;
  top: 9%;
  right: 17%;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 50px rgba(243, 200, 75, 0.78);
  animation: gentlePulse 4s ease-in-out infinite;
}

.festival-string {
  position: absolute;
  z-index: 13;
  left: 12%;
  right: 12%;
  top: 20%;
  height: 52px;
  border-top: 2px solid rgba(52, 93, 61, 0.44);
  transform: rotate(-5deg);
}

.festival-string i {
  position: absolute;
  top: -8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f8efd9;
  box-shadow: 0 0 18px rgba(248, 239, 217, 0.9);
}

.festival-string i:nth-child(1) { left: 2%; }
.festival-string i:nth-child(2) { left: 20%; background: var(--sun); }
.festival-string i:nth-child(3) { left: 39%; background: var(--sky); }
.festival-string i:nth-child(4) { left: 58%; background: var(--cream); }
.festival-string i:nth-child(5) { left: 76%; background: var(--green); }
.festival-string i:nth-child(6) { left: 94%; background: var(--sun); }

.festival-flags {
  position: absolute;
  z-index: 14;
  left: 13%;
  right: 13%;
  top: 30%;
  height: 52px;
  border-top: 2px solid rgba(36, 86, 107, 0.48);
  transform: rotate(4deg);
}

.festival-flags i {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 34px solid var(--sun);
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.18));
}

.festival-flags i:nth-child(1) { left: 5%; border-top-color: var(--cream); }
.festival-flags i:nth-child(2) { left: 25%; border-top-color: var(--green); }
.festival-flags i:nth-child(3) { left: 45%; border-top-color: var(--sun); }
.festival-flags i:nth-child(4) { left: 65%; border-top-color: var(--sky); }
.festival-flags i:nth-child(5) { left: 85%; border-top-color: var(--cream); }

.festival-light {
  position: absolute;
  z-index: 13;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 24px rgba(243, 200, 75, 0.82);
  animation: gentlePulse 3s ease-in-out infinite;
}

.light-one {
  left: 28%;
  top: 54%;
}

.light-two {
  left: 68%;
  top: 45%;
  animation-delay: -1s;
}

.light-three {
  left: 52%;
  top: 70%;
  animation-delay: -2s;
}

.character-kermesse {
  left: 50%;
  bottom: 77%;
  height: 37%;
  transform: translateX(-50%) rotate(-1deg);
  filter: drop-shadow(0 16px 18px rgba(36, 86, 107, 0.22));
}

.door-kermesse:hover .character-kermesse,
.door-kermesse:focus-visible .character-kermesse {
  transform: translateX(-50%) translateY(-4px) rotate(1deg);
  filter: drop-shadow(0 20px 24px rgba(36, 86, 107, 0.26));
}

.door-copy {
  position: absolute;
  left: 50%;
  bottom: clamp(0.78rem, 2.5vw, 1.2rem);
  z-index: 24;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  width: min(88%, 330px);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.58);
}

.door-label-short,
.door-place-short {
  display: none;
}

.door-place.door-place-short {
  display: none;
}

.door-date {
  display: inline-flex;
  min-height: 1.95rem;
  align-items: center;
  padding: 0.38rem 0.78rem;
  border: 1px solid rgba(248, 239, 217, 0.34);
  border-radius: 999px;
  background: rgba(8, 8, 11, 0.34);
  color: rgba(248, 239, 217, 0.88);
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  font-weight: 700;
}

.door-copy strong {
  max-width: 11ch;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.25vw, 2rem);
  line-height: 1.05;
}

.door-kermesse .door-copy strong {
  max-width: 9.5ch;
}

.door-place {
  display: grid;
  gap: 0.06rem;
  max-width: 24ch;
  color: rgba(248, 239, 217, 0.76);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 650;
  line-height: 1.25;
}

.door-kermesse .door-date {
  border-color: rgba(36, 86, 107, 0.26);
  background: rgba(248, 239, 217, 0.72);
  color: var(--sky-deep);
  text-shadow: none;
}

.door-kermesse .door-copy strong,
.door-kermesse .door-place {
  color: var(--sky-deep);
  text-shadow: 0 2px 12px rgba(248, 239, 217, 0.7);
}

.ambient-particle,
.universe-particle,
.opening-burst {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
}

.ambient-particle {
  background: rgba(244, 208, 128, 0.72);
  box-shadow: 0 0 16px rgba(244, 208, 128, 0.52);
  animation: ambientFloat var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

body.theme-kermesse .ambient-particle {
  background: rgba(248, 239, 217, 0.8);
  box-shadow: 0 0 16px rgba(243, 200, 75, 0.48);
}

.opening-burst {
  background: var(--gold-soft);
  box-shadow: 0 0 24px rgba(244, 208, 128, 0.85);
  animation: burstOut 1.25s ease-out forwards;
}

.opening-burst-kermesse {
  background: var(--sun);
  box-shadow: 0 0 24px rgba(243, 200, 75, 0.86);
}

.event-content {
  display: none;
  position: relative;
  overflow: hidden;
}

.event-content.active {
  display: block;
}

.world-section {
  position: relative;
  min-height: 100vh;
  padding: clamp(6rem, 10vw, 8rem) 0;
  overflow: hidden;
  isolation: isolate;
}

.world-section::before,
.world-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.world-spectacle {
  color: var(--ivory);
  background: #1a0508;
}

.world-spectacle::before {
  background:
    radial-gradient(ellipse at 50% 5%, rgba(244, 208, 128, 0.28), transparent 28%),
    radial-gradient(ellipse at 18% 42%, rgba(113, 31, 39, 0.56), transparent 30%),
    radial-gradient(ellipse at 84% 42%, rgba(80, 25, 16, 0.56), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 14px, rgba(0, 0, 0, 0.08) 14px 34px),
    linear-gradient(180deg, #22060a 0%, #3b0d13 48%, #120305 100%);
}

.world-spectacle::after {
  z-index: -2;
  background:
    radial-gradient(ellipse at center bottom, rgba(215, 155, 58, 0.18), transparent 42%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.42) 100%);
}

.world-kermesse {
  color: var(--sky-deep);
  background: var(--cream);
}

.world-kermesse::before {
  background:
    radial-gradient(circle at 82% 9%, rgba(243, 200, 75, 0.34), transparent 19%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.48), transparent 20%),
    radial-gradient(ellipse at 50% 88%, rgba(134, 184, 122, 0.38), transparent 34%),
    linear-gradient(180deg, #92d7ea 0%, #edf8ef 40%, #f7efd5 68%, #98c383 100%);
}

.world-kermesse::after {
  z-index: -2;
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(255, 255, 255, 0.2) 18% 19%, transparent 19% 100%),
    linear-gradient(240deg, transparent 0 16%, rgba(255, 255, 255, 0.18) 16% 17%, transparent 17% 100%);
  opacity: 0.76;
}

.world-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.world-atmosphere-kermesse {
  z-index: -1;
  opacity: 0.95;
}

.world-curtain {
  position: absolute;
  z-index: 0;
  top: -4%;
  bottom: -4%;
  width: 18vw;
  min-width: 150px;
  opacity: 0.86;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 8px, rgba(0, 0, 0, 0.14) 8px 20px),
    linear-gradient(180deg, #6f1d25, #26070b 74%);
  filter: drop-shadow(0 0 34px rgba(0, 0, 0, 0.46));
}

.world-curtain-left {
  left: -4vw;
}

.world-curtain-right {
  right: -4vw;
}

.stage-spotlight {
  position: absolute;
  top: -10%;
  left: var(--spotlight-left, 50%);
  z-index: 1;
  width: var(--spotlight-width, clamp(220px, 24vw, 440px));
  height: 112vh;
  transform-origin: 50% 0;
  opacity: 0.32;
  filter: blur(3px);
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 235, 176, 0.72), rgba(244, 208, 128, 0.36) 28%, transparent 64%),
    linear-gradient(180deg, rgba(244, 208, 128, 0.5), rgba(215, 155, 58, 0.16) 52%, transparent 78%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  animation: spotlightSweep var(--spotlight-duration, 8s) ease-in-out infinite;
}

.stage-spotlight.is-left {
  --spotlight-left: 20%;
  --spotlight-duration: 8.5s;
  --spotlight-start-x: -5vw;
  --spotlight-mid-x: 4vw;
  --spotlight-start-rotate: 13deg;
  --spotlight-mid-rotate: 4deg;
  animation-delay: -1.5s;
}

.stage-spotlight.is-right {
  --spotlight-left: 58%;
  --spotlight-duration: 9s;
  --spotlight-start-x: 5vw;
  --spotlight-mid-x: -4vw;
  --spotlight-start-rotate: -13deg;
  --spotlight-mid-rotate: -4deg;
  animation-delay: -4s;
}

.stage-spotlight.is-center-left {
  --spotlight-left: 34%;
  --spotlight-width: clamp(190px, 18vw, 360px);
  --spotlight-duration: 10.5s;
  --spotlight-start-x: -2vw;
  --spotlight-mid-x: 3vw;
  --spotlight-start-rotate: 7deg;
  --spotlight-mid-rotate: -3deg;
  opacity: 0.24;
  animation-delay: -6s;
}

.stage-spotlight.is-center-right {
  --spotlight-left: 48%;
  --spotlight-width: clamp(190px, 18vw, 360px);
  --spotlight-duration: 11s;
  --spotlight-start-x: 2vw;
  --spotlight-mid-x: -3vw;
  --spotlight-start-rotate: -7deg;
  --spotlight-mid-rotate: 3deg;
  opacity: 0.24;
  animation-delay: -2.5s;
}

.stage-dust {
  position: absolute;
  z-index: 2;
  left: var(--dust-x);
  top: var(--dust-y);
  width: var(--dust-size, 5px);
  height: var(--dust-size, 5px);
  border-radius: 50%;
  background: rgba(244, 208, 128, 0.86);
  box-shadow: 0 0 16px rgba(244, 208, 128, 0.78);
  opacity: 0.55;
  animation: stageDustFloat var(--dust-duration, 9s) ease-in-out infinite;
  animation-delay: var(--dust-delay, 0s);
}

.mote-one { --dust-x: 31%; --dust-y: 22%; --dust-size: 4px; --dust-duration: 9s; --dust-delay: -1s; }
.mote-two { --dust-x: 44%; --dust-y: 34%; --dust-size: 6px; --dust-duration: 11s; --dust-delay: -5s; }
.mote-three { --dust-x: 55%; --dust-y: 26%; --dust-size: 4px; --dust-duration: 10s; --dust-delay: -3s; }
.mote-four { --dust-x: 66%; --dust-y: 45%; --dust-size: 5px; --dust-duration: 12s; --dust-delay: -7s; }
.mote-five { --dust-x: 25%; --dust-y: 58%; --dust-size: 3px; --dust-duration: 8s; --dust-delay: -2s; }
.mote-six { --dust-x: 72%; --dust-y: 64%; --dust-size: 4px; --dust-duration: 9.5s; --dust-delay: -6s; }
.mote-seven { --dust-x: 38%; --dust-y: 72%; --dust-size: 5px; --dust-duration: 12.5s; --dust-delay: -4s; }
.mote-eight { --dust-x: 58%; --dust-y: 80%; --dust-size: 3px; --dust-duration: 10.8s; --dust-delay: -8s; }

.world-stage-floor {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: -10%;
  height: 38%;
  background:
    repeating-linear-gradient(12deg, rgba(244, 208, 128, 0.1) 0 14px, transparent 14px 32px),
    radial-gradient(ellipse at center top, rgba(244, 208, 128, 0.16), transparent 56%);
  transform: perspective(500px) rotateX(58deg);
  transform-origin: bottom;
}

.world-sky-glow {
  position: absolute;
  z-index: 0;
  inset: -12% -8% auto;
  height: 42%;
  background:
    radial-gradient(circle at 74% 28%, rgba(243, 200, 75, 0.45), transparent 18%),
    radial-gradient(circle at 26% 46%, rgba(255, 255, 255, 0.42), transparent 22%);
  animation: gentlePulse 5s ease-in-out infinite;
}

.kermesse-bunting {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.24;
  transform-origin: center;
  filter: drop-shadow(0 8px 14px rgba(36, 86, 107, 0.08));
}

.bunting-top {
  top: clamp(0.25rem, 0.9vw, 0.85rem);
  left: -7%;
  right: -7%;
  height: clamp(42px, 5vw, 62px);
  border-top: 2px solid rgba(36, 86, 107, 0.2);
  transform: rotate(-1.2deg);
}

.bunting-left,
.bunting-right {
  top: 22%;
  width: clamp(120px, 12vw, 180px);
  height: 30%;
  border-top: 2px solid rgba(36, 86, 107, 0.16);
  opacity: 0.18;
}

.bunting-left {
  left: -9%;
  transform: rotate(68deg);
}

.bunting-right {
  right: -9%;
  transform: rotate(-68deg);
}

.kermesse-bunting::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 180deg at 50% 0, rgba(243, 200, 75, 0.7) 0 24%, transparent 0 100%) 7% 0 / 64px 40px repeat-x,
    conic-gradient(from 180deg at 50% 0, rgba(134, 184, 122, 0.62) 0 24%, transparent 0 100%) 19% 0 / 70px 44px repeat-x,
    conic-gradient(from 180deg at 50% 0, rgba(248, 239, 217, 0.74) 0 24%, transparent 0 100%) 31% 0 / 68px 42px repeat-x;
}

.bubble-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.soap-bubble {
  position: absolute;
  z-index: 1;
  width: var(--bubble-size, 74px);
  height: var(--bubble-size, 74px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92) 0 7%, transparent 8%),
    radial-gradient(circle at 72% 76%, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.1), transparent 56%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(120, 199, 223, 0.24), rgba(244, 208, 128, 0.14));
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.36),
    inset -8px -10px 18px rgba(120, 199, 223, 0.08),
    0 0 24px rgba(120, 199, 223, 0.26);
  animation: bubbleFloat var(--bubble-duration, 14s) ease-in-out infinite;
  animation-delay: var(--bubble-delay, 0s);
}

.bubble-one { --bubble-size: clamp(76px, 7vw, 126px); --bubble-duration: 17s; --bubble-delay: -1s; left: 5%; top: 52%; }
.bubble-two { --bubble-size: clamp(46px, 4.2vw, 78px); --bubble-duration: 13s; --bubble-delay: -5s; left: 14%; top: 18%; }
.bubble-three { --bubble-size: clamp(58px, 5vw, 92px); --bubble-duration: 16s; --bubble-delay: -9s; left: 3%; top: 70%; }
.bubble-four { --bubble-size: clamp(32px, 3vw, 54px); --bubble-duration: 12s; --bubble-delay: -3s; left: 91%; top: 32%; }
.bubble-five { --bubble-size: clamp(92px, 8vw, 148px); --bubble-duration: 19s; --bubble-delay: -7s; left: 84%; top: 48%; }
.bubble-six { --bubble-size: clamp(36px, 3.4vw, 62px); --bubble-duration: 14s; --bubble-delay: -11s; left: 86%; top: 14%; }
.bubble-seven { --bubble-size: clamp(50px, 4.5vw, 84px); --bubble-duration: 15s; --bubble-delay: -6s; left: 7%; top: 34%; }
.bubble-eight { --bubble-size: clamp(28px, 2.6vw, 46px); --bubble-duration: 11s; --bubble-delay: -4s; left: 93%; top: 64%; }
.bubble-nine { --bubble-size: clamp(64px, 5.6vw, 104px); --bubble-duration: 18s; --bubble-delay: -12s; left: 89%; top: 76%; }
.bubble-ten { --bubble-size: clamp(34px, 3.2vw, 58px); --bubble-duration: 13.5s; --bubble-delay: -8s; left: 8%; top: 82%; }
.bubble-eleven { --bubble-size: clamp(108px, 9vw, 166px); --bubble-duration: 21s; --bubble-delay: -14s; left: 42%; top: 2%; }
.bubble-twelve { --bubble-size: clamp(30px, 2.8vw, 50px); --bubble-duration: 12.5s; --bubble-delay: -2s; left: 54%; top: 88%; }
.bubble-thirteen { --bubble-size: clamp(44px, 4vw, 74px); --bubble-duration: 15.5s; --bubble-delay: -10s; left: 15%; top: 58%; }
.bubble-fourteen { --bubble-size: clamp(38px, 3.6vw, 68px); --bubble-duration: 14.5s; --bubble-delay: -13s; left: 78%; top: 8%; }
.bubble-fifteen { --bubble-size: clamp(70px, 6vw, 116px); --bubble-duration: 18.5s; --bubble-delay: -16s; left: 22%; top: 88%; }
.bubble-sixteen { --bubble-size: clamp(42px, 3.8vw, 72px); --bubble-duration: 16.5s; --bubble-delay: -15s; left: 74%; top: 84%; }

.soft-confetti {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 18px;
  border-radius: 2px;
  opacity: 0.14;
  background: var(--sun);
  animation: confettiDrift 14s ease-in-out infinite;
}

.confetti-one {
  left: 12%;
  top: 28%;
}

.confetti-two {
  left: 28%;
  top: 68%;
  background: var(--green);
  animation-delay: -4s;
}

.confetti-three {
  left: 72%;
  top: 24%;
  background: var(--cream);
  animation-delay: -7s;
}

.confetti-four {
  left: 86%;
  top: 78%;
  background: var(--sky);
  animation-delay: -10s;
}

.confetti-five {
  left: 44%;
  top: 84%;
  background: var(--sun);
  animation-delay: -2s;
}

.inflatable-game {
  position: absolute;
  z-index: 2;
  right: max(-9vw, -130px);
  bottom: 9%;
  width: clamp(190px, 23vw, 380px);
  height: clamp(150px, 18vw, 300px);
  opacity: 0.22;
  filter: drop-shadow(0 26px 26px rgba(36, 86, 107, 0.18));
  animation: inflatableBreathe 7s ease-in-out infinite;
}

.inflatable-game span {
  position: absolute;
  display: block;
}

.inflatable-arch {
  left: 13%;
  right: 13%;
  top: 6%;
  height: 58%;
  border-radius: 999px 999px 18px 18px;
  border: clamp(16px, 2.2vw, 32px) solid rgba(243, 200, 75, 0.86);
  border-bottom: 0;
  box-shadow: inset 0 0 0 10px rgba(120, 199, 223, 0.36);
}

.inflatable-tower {
  bottom: 18%;
  width: 28%;
  height: 58%;
  border-radius: 28% 28% 12px 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, rgba(120, 199, 223, 0.92), rgba(134, 184, 122, 0.86));
}

.tower-left {
  left: 0;
}

.tower-right {
  right: 0;
}

.inflatable-base {
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 28%;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(134, 184, 122, 0.9), rgba(243, 200, 75, 0.86), rgba(120, 199, 223, 0.82));
}

.world-lawn {
  position: absolute;
  z-index: 0;
  left: -8%;
  right: -8%;
  bottom: -8%;
  height: 28%;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(52, 93, 61, 0.18), transparent 14%),
    radial-gradient(circle at 72% 42%, rgba(52, 93, 61, 0.2), transparent 16%),
    linear-gradient(180deg, #acd18a, #5f915e);
}

.world-container {
  position: relative;
  z-index: 5;
  width: var(--container);
  margin: 0 auto;
}

.world-kermesse .world-container {
  z-index: 5;
}

.world-entrance {
  max-width: 820px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.world-kermesse .world-entrance {
  position: relative;
  padding: clamp(1rem, 2.3vw, 1.7rem);
  isolation: isolate;
}

.world-kermesse .world-entrance::before {
  content: "";
  position: absolute;
  inset: clamp(-0.65rem, -1.2vw, -0.35rem);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.55), transparent 46%),
    rgba(247, 239, 213, 0.8);
  box-shadow:
    0 18px 42px rgba(36, 86, 107, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px);
}

.world-kermesse .world-entrance > * {
  position: relative;
  z-index: 1;
}

.world-kicker,
.panel-kicker,
.section-heading span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  color: var(--gold-soft);
  font-weight: 800;
}

.world-kermesse .world-kicker,
.world-kermesse .panel-kicker,
.world-kermesse .section-heading span {
  color: var(--green-deep);
}

.world-entrance h2 {
  margin: 0.5rem auto 1rem;
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.world-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.44rem 0.9rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 208, 128, 0.34);
  color: rgba(248, 239, 217, 0.9);
  background: rgba(7, 4, 5, 0.32);
}

.world-kermesse .world-badge {
  border-color: rgba(52, 93, 61, 0.24);
  color: var(--sky-deep);
  background: rgba(248, 239, 217, 0.9);
}

.world-intro {
  max-width: 660px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.event-meta div {
  min-width: 170px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(248, 239, 217, 0.18);
  border-radius: 8px;
  background: rgba(8, 5, 6, 0.22);
}

.world-kermesse .event-meta div {
  border-color: rgba(36, 86, 107, 0.18);
  background: rgba(248, 239, 217, 0.9);
}

.event-meta dt {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-soft);
}

.world-kermesse .event-meta dt {
  color: var(--green-deep);
}

.event-meta dd {
  margin: 0.18rem 0 0;
  font-weight: 700;
}

.world-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.world-kermesse .program-board,
.world-kermesse .side-panels {
  position: relative;
  z-index: 3;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h3,
.world-panel h3 {
  margin-top: 0.2rem;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
}

.program-list {
  display: grid;
  gap: 0.9rem;
}

.program-item {
  display: grid;
  grid-template-columns: minmax(96px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border: 1px solid rgba(244, 208, 128, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 208, 128, 0.12), transparent 32%),
    rgba(9, 4, 5, 0.34);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
}

.world-kermesse .program-item {
  border-color: rgba(36, 86, 107, 0.16);
  background:
    linear-gradient(90deg, rgba(243, 200, 75, 0.18), transparent 34%),
    rgba(248, 239, 217, 0.88);
  box-shadow: 0 18px 32px rgba(36, 86, 107, 0.12);
}

.program-time {
  color: var(--gold-soft);
  font-weight: 900;
  font-size: 1.02rem;
}

.world-kermesse .program-time {
  color: var(--green-deep);
}

.program-item h4 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.program-item p,
.world-panel p {
  color: rgba(248, 239, 217, 0.78);
}

.world-kermesse .program-item p,
.world-kermesse .world-panel p {
  color: rgba(36, 86, 107, 0.78);
}

.side-panels {
  display: grid;
  gap: 1rem;
}

.world-panel {
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid rgba(248, 239, 217, 0.18);
  border-radius: 8px;
  background: rgba(8, 4, 5, 0.34);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
}

.world-kermesse .world-panel {
  border-color: rgba(36, 86, 107, 0.16);
  background: rgba(248, 239, 217, 0.9);
  box-shadow: 0 18px 32px rgba(36, 86, 107, 0.12);
}

.world-panel p + p {
  margin-top: 0.7rem;
}

.practical-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.2rem;
}

.practical-list div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(248, 239, 217, 0.16);
}

.world-kermesse .practical-list div {
  border-bottom-color: rgba(36, 86, 107, 0.16);
}

.practical-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.practical-list dt {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.world-kermesse .practical-list dt {
  color: var(--green-deep);
}

.practical-list dd {
  margin-top: 0.18rem;
  color: rgba(248, 239, 217, 0.88);
  font-weight: 700;
}

.world-kermesse .practical-list dd {
  color: var(--sky-deep);
}

.route-button {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  padding: 0.82rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(244, 208, 128, 0.52);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #f4d080 0%, #d79b3a 55%, #9c5d18 100%);
  color: #1b0905;
  font-weight: 900;
  text-decoration: none;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(244, 208, 128, 0.18);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    filter var(--transition-base);
}

.route-button::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -24%;
  width: 34%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transition: transform var(--transition-slow);
}

.route-button:hover,
.route-button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.38),
    0 0 38px rgba(244, 208, 128, 0.28);
}

.route-button:hover::before,
.route-button:focus-visible::before {
  transform: translateX(390%) rotate(18deg);
}

.route-icon {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
}

.world-kermesse .route-button {
  border-color: rgba(52, 93, 61, 0.34);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(135deg, #f3c84b 0%, #e8d868 42%, #86b87a 100%);
  color: #214757;
  box-shadow:
    0 16px 34px rgba(36, 86, 107, 0.18),
    0 0 30px rgba(243, 200, 75, 0.22);
}

.universe-particle {
  z-index: 1;
  opacity: 0.72;
  animation: universeFloat var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.universe-particle-spectacle {
  z-index: 2;
  background: rgba(244, 208, 128, 0.82);
  box-shadow: 0 0 18px rgba(244, 208, 128, 0.62);
}

.universe-particle-kermesse {
  z-index: 1;
  background: rgba(243, 200, 75, 0.82);
  box-shadow: 0 0 18px rgba(243, 200, 75, 0.58);
}

@media (prefers-reduced-motion: reduce) {
  .stage-spotlight,
  .stage-dust,
  .soap-bubble {
    animation: none !important;
  }

  .stage-spotlight {
    opacity: 0.22;
  }

  .soap-bubble {
    opacity: 0.24;
  }
}

footer {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3rem) 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 0, rgba(244, 208, 128, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(11, 10, 13, 0.94), #060608);
  border-top: 1px solid rgba(248, 239, 217, 0.18);
  text-align: center;
}

body.theme-spectacle footer {
  background:
    radial-gradient(circle at 50% 0, rgba(244, 208, 128, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(43, 7, 13, 0.96), #120305);
  border-top-color: rgba(244, 208, 128, 0.24);
}

body.theme-kermesse footer {
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 0, rgba(243, 200, 75, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(36, 86, 107, 0.94), #183947);
  border-top-color: rgba(248, 239, 217, 0.28);
}

.footer-content {
  width: var(--container);
  margin: 0 auto;
}

.footer-signature {
  display: grid;
  gap: 0.48rem;
  justify-items: center;
  margin: 0;
  color: var(--ivory);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  font-weight: 650;
  line-height: 1.55;
}

.footer-copyright,
.footer-credit {
  display: block;
}

.footer-credit {
  color: #f3e5c5;
}

.footer-signature a {
  position: relative;
  display: inline-flex;
  color: var(--gold-soft);
  font-weight: 850;
  text-decoration: none;
  transition:
    color var(--transition-base),
    transform var(--transition-base),
    text-shadow var(--transition-base);
}

.footer-signature a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0.18);
  transform-origin: center;
  opacity: 0.75;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.footer-signature a:hover,
.footer-signature a:focus-visible {
  color: #ffe4a0;
  transform: translateY(-1px);
  text-shadow: 0 0 18px rgba(244, 208, 128, 0.34);
}

.footer-signature a:hover::after,
.footer-signature a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

body.theme-kermesse .footer-signature a {
  color: #f3c84b;
}

body.theme-kermesse .footer-signature a:hover,
body.theme-kermesse .footer-signature a:focus-visible {
  color: #fff0a8;
  text-shadow: 0 0 18px rgba(243, 200, 75, 0.34);
}

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

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dustFloat {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-18px);
  }
}

@keyframes gentlePulse {
  0%,
  100% {
    opacity: 0.76;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes bubbleFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 42px, 0) scale(0.84) rotate(0deg);
  }
  15% {
    opacity: 0.68;
  }
  50% {
    opacity: 0.54;
    transform: translate3d(18px, -72px, 0) scale(1) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(-12px, -172px, 0) scale(1.12) rotate(-10deg);
  }
}

@keyframes spotlightSweep {
  0%,
  100% {
    opacity: 0.24;
    filter: blur(2px);
    transform: translateX(var(--spotlight-start-x, -4vw)) rotate(var(--spotlight-start-rotate, -10deg)) scaleX(0.72);
  }
  50% {
    opacity: 0.5;
    filter: blur(5px);
    transform: translateX(var(--spotlight-mid-x, 4vw)) rotate(var(--spotlight-mid-rotate, 8deg)) scaleX(1.16);
  }
}

@keyframes stageDustFloat {
  0%,
  100% {
    opacity: 0.2;
    transform: translate3d(0, 0, 0) scale(0.8);
  }
  45% {
    opacity: 0.78;
    transform: translate3d(12px, -36px, 0) scale(1.1);
  }
  70% {
    opacity: 0.48;
    transform: translate3d(-8px, -58px, 0) scale(0.95);
  }
}

@keyframes confettiDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(12px, -28px, 0) rotate(18deg);
  }
}

@keyframes inflatableBreathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-8px, -6px, 0) scale(1.015);
  }
}

@keyframes ambientFloat {
  0%,
  100% {
    opacity: 0.25;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.88;
    transform: translate3d(24px, -36px, 0);
  }
}

@keyframes burstOut {
  from {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(0.6);
  }
  to {
    opacity: 0;
    transform: translate3d(var(--tx), var(--ty), 0) scale(1.4);
  }
}

@keyframes universeFloat {
  0%,
  100% {
    opacity: 0.18;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.72;
    transform: translate3d(18px, -52px, 0);
  }
}

@keyframes theatreFlash {
  0% {
    filter: brightness(1);
  }
  45% {
    filter: brightness(1.55) saturate(1.2);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes festivalFlash {
  0% {
    filter: brightness(1);
  }
  45% {
    filter: brightness(1.4) saturate(1.16);
  }
  100% {
    filter: brightness(1);
  }
}

@media (max-width: 980px) {
  .portal-hero {
    padding-top: calc(var(--header-height) + clamp(1.8rem, 4vh, 3rem));
    row-gap: clamp(2.2rem, 5vh, 4.5rem);
  }

  .world-layout {
    grid-template-columns: 1fr;
  }

  .door-shell {
    width: min(clamp(240px, 34vw, 430px), clamp(250px, 32vh, 430px));
    height: clamp(360px, 46vh, 610px);
  }

  .bunting-left,
  .bunting-right {
    top: 26%;
    opacity: 0.12;
  }

  .inflatable-game {
    right: -18vw;
    opacity: 0.16;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(calc(100% - 1.5rem), 1160px);
  }

  .header-content {
    min-height: 64px;
  }

  .portal-hero {
    min-height: auto;
    padding: calc(var(--header-height) + clamp(2rem, 8vh, 5rem)) 0 clamp(4rem, 10vh, 6rem);
    grid-template-rows: auto auto;
    row-gap: clamp(2.2rem, 7vh, 4.75rem);
  }

  .hero-content {
    margin-bottom: 0;
  }

  .hero-eyebrow {
    min-height: 2.1rem;
    font-size: 0.86rem;
  }

  .hero-content h1 {
    font-size: clamp(1.28rem, 5.6vw, 1.55rem);
  }

  .hero-subtitle {
    display: grid;
    gap: 0.16rem;
  }

  .hero-hint {
    display: none;
  }

  .doorway-grid {
    grid-template-columns: 1fr;
    gap: clamp(3.2rem, 10vh, 6rem);
    max-width: 430px;
    margin: 0 auto;
  }

  .door-shell {
    width: min(86vw, 360px);
    height: clamp(360px, 58vh, 520px);
  }

  .door-copy {
    bottom: clamp(1.15rem, 4vh, 2rem);
    gap: 0.2rem;
    width: min(84%, 280px);
  }

  .door-label-full,
  .door-place-full {
    display: none;
  }

  .door-label-short {
    display: inline;
  }

  .door-place.door-place-short {
    display: grid;
  }

  .door-date {
    min-height: 1.72rem;
    padding: 0.3rem 0.66rem;
    font-size: 0.84rem;
  }

  .door-copy strong {
    font-size: clamp(1.28rem, 7.2vw, 1.72rem);
    max-width: 12ch;
  }

  .door-place {
    font-size: 0.84rem;
    line-height: 1.18;
  }

  .door-kermesse .door-copy strong {
    max-width: 11ch;
  }

  .character-spectacle {
    left: -22%;
    top: 1%;
    height: 102%;
  }

  .character-kermesse {
    bottom: 78%;
    height: 28%;
  }

  .world-section {
    padding: 4.5rem 0;
  }

  .bunting-top {
    top: 0.4rem;
    height: 40px;
    opacity: 0.16;
  }

  .bunting-left,
  .bunting-right {
    display: none;
  }

  .soap-bubble {
    border-color: rgba(255, 255, 255, 0.58);
  }

  .soft-confetti {
    opacity: 0.09;
  }

  .inflatable-game {
    right: -34vw;
    bottom: 4%;
    width: clamp(180px, 48vw, 260px);
    height: clamp(140px, 38vw, 210px);
    opacity: 0.12;
  }

  .world-kermesse .world-entrance {
    padding: 1rem 0.85rem;
  }

  .world-kermesse .world-entrance::before {
    inset: -0.45rem -0.2rem;
  }

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

  .event-meta {
    display: grid;
  }

  .route-button {
    min-height: 3.75rem;
    font-size: 1rem;
  }

  .route-icon {
    width: 1.6rem;
    height: 1.6rem;
  }

  footer {
    padding: clamp(2.75rem, 8vh, 4rem) 0;
  }

  .footer-signature {
    gap: 0.62rem;
    font-size: 1rem;
  }

  .footer-credit {
    max-width: 28ch;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 1.34rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .door-shell {
    width: min(88vw, 340px);
    height: clamp(365px, 62vh, 500px);
  }

  .world-entrance h2 {
    font-size: 2rem;
  }
}
