/* ATHENA Weihnachtsgeschichte */

@font-face {
  font-family: "GT Walsheim";
  src: url("assets/fonts/gt-walsheim-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GT Walsheim";
  src: url("assets/fonts/gt-walsheim-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --green: #003b2a;
  --green-2: #0b4a36;
  --green-deep: #00261b;
  --cream: #f1eadc;
  --gold: #c9af77;
  --gold-deep: #9a7c3d;
  --red: #d91d2a;
  --ink: #13251e;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --font: "GT Walsheim", "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--green);
  background-image: radial-gradient(120% 85% at 50% 0%, #0a4a37 0%, var(--green) 48%, #002a1d 100%);
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  text-rendering: optimizeLegibility;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--green); }

.app { position: fixed; inset: 0; overflow: hidden; }

/* ---------- Himmel & Schnee ---------- */

.sky { position: absolute; inset: 0; pointer-events: none; }
.sky .dot {
  position: absolute; border-radius: 50%;
  background: var(--cream);
}
.sky .spark {
  position: absolute;
  background: var(--gold);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.sky .twinkle { animation: twinkle var(--t, 7s) ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: var(--o, .6); } 50% { opacity: calc(var(--o, .6) * .35); } }

.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

/* ---------- Fortschritt ---------- */

.progress {
  position: absolute; z-index: 5;
  top: calc(env(safe-area-inset-top) + 10px);
  left: 50%; width: 132px; height: 34px;
  transform: translate(-50%, -8px);
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.progress.is-visible { opacity: 1; transform: translate(-50%, 0); }
.progress line { stroke: var(--gold); stroke-width: 1.2; }
.progress circle {
  fill: transparent; stroke: var(--gold); stroke-width: 1.2;
  transition: fill .6s var(--ease), stroke .6s var(--ease);
}
.progress .orn.is-current circle { stroke: var(--cream); }
.progress .orn.is-done circle { fill: var(--red); stroke: var(--red); }
.progress .orn--gold.is-done circle { fill: var(--gold); stroke: var(--gold); }

/* ---------- Szenen ---------- */

.scene {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 58px) 20px calc(env(safe-area-inset-bottom) + 20px);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s linear .6s;
}
.scene.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .9s var(--ease) .2s, transform 1.1s var(--ease) .2s, visibility 0s;
}

.head {
  width: 100%; max-width: 440px; margin-inline: auto;
  text-align: center;
  flex: none;
}
.title {
  font-weight: 500;
  font-size: clamp(20px, 5.7vw, 27px);
  line-height: 1.28;
  letter-spacing: -.005em;
  text-wrap: balance;
  outline: none;
}
.hint {
  margin-top: 10px;
  min-height: 1.45em;
  color: var(--gold);
  font-size: clamp(15px, 4.2vw, 17px);
  text-wrap: balance;
  transition: opacity .45s var(--ease);
}
.hint.is-fading { opacity: 0; }

.stage {
  flex: 1 1 auto; min-height: 0; width: 100%;
  container-type: size;
  display: grid; place-items: center; place-content: center;
  position: relative;
  padding: 18px 0 10px;
}
.foot {
  flex: none; width: 100%; max-width: 440px;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}

/* Collapsible-Bereiche (für den Abschluss) */
.collapse {
  display: grid; grid-template-rows: 1fr; width: 100%;
  transition: grid-template-rows .9s var(--ease), opacity .6s var(--ease);
}
.collapse > div { min-height: 0; overflow: hidden; }
.collapse.is-collapsed { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }

/* ---------- Buttons ---------- */

.btn {
  appearance: none; border: 0; cursor: pointer;
  font: 500 15px/1 var(--font);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
  background: var(--cream);
  min-height: 54px; padding: 0 34px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  transition: transform .25s var(--ease), background .25s;
  touch-action: manipulation;
}
.btn:hover { background: #fff8ea; }
.btn:active { transform: scale(.97); }

.link-btn {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: 400 15px/1.3 var(--font);
  color: var(--cream); opacity: .78;
  padding: 14px 12px;
  min-height: 48px;
  text-decoration: underline;
  text-decoration-color: rgba(201, 175, 119, .7);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  touch-action: manipulation;
}
.link-btn:hover { opacity: 1; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }
.title:focus-visible { outline: none; }

/* ---------- Schlitten ---------- */

.sleigh { display: block; width: 100%; height: auto; overflow: visible; }
.sleigh .deer--1 { animation: deer 1.6s ease-in-out infinite; }
.sleigh .deer--2 { animation: deer 1.6s ease-in-out -.8s infinite; }
@keyframes deer { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2.5px; } }

/* ---------- 1 Start ---------- */

.scene--start { padding-top: calc(env(safe-area-inset-top) + 28px); }
.logo { display: block; color: var(--cream); }
.start__logo { width: 46px; flex: none; opacity: .95; }
.start__sky { flex: 1 1 auto; min-height: 0; width: 100%; position: relative; display: grid; place-items: center; }
.moon {
  width: min(66vw, 46vh, 300px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, rgba(241, 234, 220, .13), rgba(241, 234, 220, .05) 62%, rgba(241, 234, 220, .02));
  box-shadow: inset 0 0 0 1px rgba(201, 175, 119, .38), 0 0 90px 6px rgba(201, 175, 119, .08);
}
.fly {
  position: absolute; top: 50%; left: 50%;
  width: min(70vw, 320px);
  animation: fly-across 13s linear -5.2s infinite;
}
@keyframes fly-across {
  0%   { transform: translate(calc(-50% - 85vw), 10%) rotate(-3deg); }
  50%  { transform: translate(-50%, -45%) rotate(-5deg); }
  100% { transform: translate(calc(-50% + 85vw), -120%) rotate(-7deg); }
}
.start__text { flex: none; width: 100%; max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-bottom: 8px; }
.start__text h1 {
  font-weight: 500;
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.22;
  letter-spacing: -.01em;
  text-wrap: balance;
  outline: none;
}
.start__rule { display: flex; align-items: center; gap: 0; width: 110px; }
.start__rule::before, .start__rule::after { content: ""; flex: 1; height: 1px; background: var(--gold); }
.start__rule span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- 2 Sterne ---------- */

.board {
  position: relative;
  width: min(100cqw, 100cqh * .7692, 380px);
  aspect-ratio: 300 / 390;
}
.board { touch-action: none; cursor: crosshair; }
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rubber { stroke: var(--cream); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 5; opacity: 0; transition: opacity .2s; }
.rubber.is-on { opacity: .8; transition: none; }

/* Stern -> Sternschnuppe */
.board.is-lit.is-comet .star-fill, .board.is-lit.is-comet .star-glow { transform: scale(.04); opacity: 0; transition: transform .7s cubic-bezier(.6, 0, .4, 1), opacity .5s ease .25s; }
.board.is-comet .star-lines { opacity: 0; transition: opacity .4s; }
.board.is-comet .pt { opacity: 0; transition: opacity .3s; }
.comet {
  position: absolute; left: 50%; top: 44.87%;
  width: 0; height: 0;
  transform: rotate(14deg);
  pointer-events: none;
}
.comet__fly { position: absolute; left: 0; top: 0; opacity: 0; transform: scale(.3); transition: opacity .35s ease .35s, transform .5s var(--ease) .35s; }
.board.is-comet .comet__fly { opacity: 1; transform: none; }
.comet__head {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px;
  background: radial-gradient(circle, #fffbea 0 18%, rgba(255, 236, 190, .85) 30%, rgba(233, 205, 140, .25) 55%, rgba(233, 205, 140, 0) 72%);
  border-radius: 50%;
}
.comet__head::after {
  content: ""; position: absolute; inset: 3px;
  background: #fff8e4;
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
}
.comet__tail {
  position: absolute; right: 0; top: -2px;
  width: min(62vw, 280px); height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(201, 175, 119, 0), rgba(233, 205, 140, .55) 60%, rgba(255, 246, 220, .95));
  transform-origin: 100% 50%; transform: scaleX(0);
}
.board.is-shooting .comet__fly { animation: shoot 2s cubic-bezier(.55, 0, .75, .5) forwards; }
.board.is-shooting .comet__tail { animation: tail 2s ease-out forwards; }
@keyframes shoot { from { transform: translateX(0); } to { transform: translateX(150vw); } }
@keyframes tail { 0% { transform: scaleX(0); } 25% { transform: scaleX(1); } 100% { transform: scaleX(1.3); } }
.star-lines line { stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; transition: stroke-dashoffset .45s ease-out; }
.star-fill, .star-glow { opacity: 0; transform-box: fill-box; transform-origin: center; }
.star-fill { fill: url(#g-star); transition: opacity 1.2s var(--ease); }
.star-glow { fill: var(--gold); filter: url(#f-glow); transform: scale(.7); transition: opacity 1.6s var(--ease), transform 1.8s var(--ease); }
.board.is-lit .star-fill { opacity: .96; }
.board.is-lit .star-glow { opacity: .55; transform: scale(1.25); }
.board.is-lit .star-lines line { stroke: #ead39d; }

.pt {
  position: absolute;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  border: 0; padding: 0; background: none; color: inherit;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  touch-action: manipulation;
}
.pt::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0; transform: scale(.7);
  transition: opacity .4s, transform .4s var(--ease);
}
.pt.is-next::before { opacity: .55; transform: none; }
.pt.is-pulse::before { animation: ring 1.6s ease-in-out infinite; }
@keyframes ring { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .25; transform: scale(1.25); } }
.pt__star {
  width: 20px; height: 20px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transition: transform .45s var(--ease), background .45s;
}
.pt:hover .pt__star { transform: scale(1.15); }
.pt.is-done .pt__star { background: #fff2cf; transform: scale(1.45); }
.pt.is-pop .pt__star { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(2); } 100% { transform: scale(1.45); } }
.pt__num {
  position: absolute; left: 50%; top: 50%;
  transform: translate(calc(-50% + var(--lx)), calc(-50% + var(--ly)));
  font-size: 14px; font-weight: 500; line-height: 1;
  color: var(--cream);
  transition: opacity .4s;
}
.pt.is-done .pt__num { opacity: .4; }
.board.is-solved .pt { pointer-events: none; }
.board.is-solved .pt__num { opacity: 0; }
.board.is-lit .pt__star { opacity: 0; transition: opacity .8s; }

.wait-sleigh {
  width: min(44vw, 190px, 26vh);
  align-self: flex-start;
  margin-left: 2%;
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.wait-sleigh.is-flying { animation: fly-off 2.4s cubic-bezier(.45, 0, .7, .45) forwards; }
@keyframes fly-off {
  0%   { transform: none; }
  20%  { transform: translate(6vw, 1vh) rotate(2deg); }
  100% { transform: translate(120vw, -14vh) rotate(-4deg) scale(.75); }
}

/* ---------- 3 Schornstein ---------- */

.roof {
  position: relative;
  width: min(100cqw, 100cqh * .8571, 430px);
  aspect-ratio: 360 / 420;
}
.roof svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.lid { transform-origin: 180px 90px; transition: transform 1.1s var(--ease), opacity .8s var(--ease) .35s; }
.is-open .lid { transform: translate(150px, -34px) rotate(16deg); opacity: 0; }
.shackle { transition: transform .4s var(--ease); }
.is-unlocked .shackle { transform: translateY(-11px); }
.strap { transition: opacity .3s; }

.tag { transform-origin: 262px 118px; }
.is-hint .tag { animation: swing 1.8s ease-in-out 2; }
@keyframes swing { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-6deg); } 65% { transform: rotate(4deg); } }
.tag__glow { opacity: 0; transition: opacity .6s; }
.is-hint .tag__glow { opacity: 1; }

.santa-move { transform-box: view-box; }
.is-jumping .santa-move { animation: santa-jump 2.5s cubic-bezier(.4, 0, .3, 1) forwards; }
@keyframes santa-jump {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(0, 7px) scale(1.04, .94); }
  22%  { transform: translate(20px, -110px); }
  40%  { transform: translate(92px, -300px); }
  56%  { transform: translate(162px, -252px); }
  60%  { transform: translate(162px, -248px) scale(1.04, .95); }
  68%  { transform: translate(162px, -252px); }
  100% { transform: translate(162px, -86px); }
}

.puff circle { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-puff .puff circle { animation: puff 1.4s ease-out forwards; animation-delay: var(--d, 0s); }
@keyframes puff {
  0%   { opacity: 0; transform: translate(0, 6px) scale(.4); }
  25%  { opacity: .8; }
  100% { opacity: 0; transform: translate(var(--x, 0), -34px) scale(1.4); }
}

.dials { position: absolute; inset: 0; pointer-events: none; }
.dial {
  position: absolute;
  width: 15%; aspect-ratio: 1;
  border: 0; padding: 0; border-radius: 50%;
  cursor: pointer; pointer-events: auto;
  background: radial-gradient(circle at 50% 32%, #fffaf0 0%, #eee4cf 62%, #d8c9a6 100%);
  box-shadow: 0 0 0 2px var(--gold), 0 6px 14px -4px rgba(0, 0, 0, .55), inset 0 -3px 6px rgba(80, 60, 20, .18);
  transition: box-shadow .5s var(--ease), transform .2s var(--ease);
  touch-action: manipulation;
}
.dial::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.dial:active { transform: scale(.95); }
.dial__ring { position: absolute; inset: 0; transition: transform .5s var(--ease); }
.dial__ring svg { width: 100%; height: 100%; display: block; }
.dial__sym { position: absolute; inset: 19%; display: block; }
.dial__sym svg { width: 100%; height: 100%; display: block; }
.dial__sym.is-swap { animation: swap .42s var(--ease); }
@keyframes swap {
  0%   { transform: none; opacity: 1; }
  45%  { transform: scale(.55) rotate(70deg); opacity: 0; }
  55%  { transform: scale(.55) rotate(-70deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.dial.is-match { box-shadow: 0 0 0 2px var(--gold), 0 0 18px 3px rgba(233, 205, 140, .55), 0 6px 14px -4px rgba(0, 0, 0, .55), inset 0 -3px 6px rgba(80, 60, 20, .18); }
.is-solved .dial { pointer-events: none; }
.is-solved .dial { box-shadow: 0 0 0 2px #ead39d, 0 0 26px 6px rgba(233, 205, 140, .7), inset 0 -3px 6px rgba(80, 60, 20, .18); }

/* ---------- 4 Fenster ---------- */

.zoom > .ext, .zoom > .house { grid-area: 1 / 1; }
.ext {
  position: relative;
  width: min(122cqw, 100cqh * .8182, 470px);
  aspect-ratio: 360 / 440;
  transform-origin: 0 0;
  transition: transform 1.6s cubic-bezier(.65, 0, .3, 1), opacity .8s ease .75s;
  z-index: 1;
}
.ext svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Zoom: Fenster der Außenansicht -> Nahansicht (Faktor 206/52) */
.zoom.is-zoom .ext { transform: translate(-216.33%, -172.84%) scale(3.9615); opacity: 0; pointer-events: none; }
.zoom .house { transform-origin: 0 0; transform: translate(54.6%, 43.63%) scale(.25243); opacity: 0;
  transition: transform 1.6s cubic-bezier(.65, 0, .3, 1), opacity .7s ease .55s; }
.zoom.is-zoom .house { transform: none; opacity: 1; }
.door { transform-box: fill-box; transform-origin: 0% 50%; transition: transform .6s var(--ease); }
.is-door .door { transform: scaleX(.12); }
.ext-santa { transform-box: view-box; }
.is-out .ext-santa { animation: ext-walk 1.9s ease-in-out forwards; }
@keyframes ext-walk {
  0%   { transform: translate(0, 0); }
  18%  { transform: translate(0, 14px) scale(1.06); }
  30%  { transform: translate(18px, 10px) scale(1.06); }
  42%  { transform: translate(36px, 14px) scale(1.06); }
  54%  { transform: translate(54px, 10px) scale(1.06); }
  66%  { transform: translate(72px, 14px) scale(1.06); }
  76%  { transform: translate(84px, 14px) scale(1.06); opacity: 1; }
  86%  { transform: translate(88px, -10px) scale(1.06); opacity: 1; }
  100% { transform: translate(88px, 26px) scale(1.06); opacity: 0; }
}
.is-board .ext-santa { visibility: hidden; }
.sl-full { opacity: 0; }
.sl-empty, .sl-full { transition: opacity .25s ease; }
.is-board .sl-full { opacity: 1; }
.is-board .sl-empty { opacity: 0; }
.ext-sleigh { transform-box: view-box; }
.is-board .ext-sleigh { animation: settle .35s ease-out; }
@keyframes settle { 0%, 100% { transform: none; } 50% { transform: translateY(1.5px); } }
.is-takeoff .ext-sleigh { animation: takeoff 2.1s cubic-bezier(.5, 0, .7, .3) forwards; }
.is-takeoff .ext-sleigh__shadow { opacity: 0; transition: opacity .5s; }
@keyframes takeoff {
  0%   { transform: translate(0, 0); }
  18%  { transform: translate(14px, -6px) rotate(-3deg); }
  100% { transform: translate(380px, -300px) rotate(-14deg); }
}
.ext-sleigh { transform-origin: 262px 380px; }
.ext-smoke circle { opacity: .18; animation: smoke 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ext-smoke circle:nth-child(2) { animation-delay: -1.3s; }
.ext-smoke circle:nth-child(3) { animation-delay: -2.6s; }
@keyframes smoke { 0%, 100% { opacity: .1; transform: translateY(0) scale(.9); } 50% { opacity: .22; transform: translateY(-4px) scale(1.1); } }
.reveal-late { opacity: 0; transition: opacity .8s var(--ease); }
.is-close .reveal-late { opacity: 1; }
.scene:not(.is-close) .swipe-hint { animation: none; }
.scene:not(.is-close) .fog { pointer-events: none; }

.house {
  position: relative;
  width: min(122cqw, 100cqh * .8182, 470px);
  aspect-ratio: 360 / 440;
}
.house svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.glass {
  position: absolute;
  left: 24.444%; top: 31.364%; width: 51.111%; height: 57.727%;
  border-radius: 50% 50% 0 0 / 36.22% 36.22% 0 0;
  overflow: hidden;
  background: #efe5d0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
  isolation: isolate;
}
.glass__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0%;
  filter: contrast(1.02);
}
.glass__placeholder {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #e7dcc4 0 12px, #ddd0b3 12px 24px);
  color: var(--green); font: 500 14px/1.35 var(--font); letter-spacing: .08em; text-transform: uppercase;
}
.glass.no-photo .glass__placeholder { display: grid; }
.glass.no-photo .glass__photo, .glass.no-photo .hat { display: none; }
.glass__warm {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 30%, rgba(255, 214, 150, .16), rgba(255, 190, 120, .32));
  mix-blend-mode: multiply;
}
.glass__shade {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 10px 26px rgba(0, 0, 0, .28), inset 0 0 0 2px rgba(0, 0, 0, .18);
  border-radius: inherit;
}
.hat {
  position: absolute; pointer-events: none;
  transform: translate(-50%, -82%) rotate(var(--rot, -9deg));
  transform-origin: 50% 90%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25));
}
.house .hat svg { position: static; display: block; width: 100%; height: auto; }

.fog {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: grab;
  transition: opacity 1.1s var(--ease);
}
.fog:active { cursor: grabbing; }
.is-revealed .fog { opacity: 0; pointer-events: none; }

.swipe-hint {
  position: absolute; left: 50%; top: 52%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(0, 59, 42, .22);
  box-shadow: 0 0 0 1.5px rgba(0, 59, 42, .45);
  pointer-events: none;
  animation: swipe 2.2s ease-in-out .8s infinite;
  opacity: 0;
  transition: opacity .3s;
}
@keyframes swipe {
  0%   { transform: translateX(-130%); opacity: 0; }
  15%  { opacity: 1; }
  50%  { transform: translateX(130%); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(-130%); opacity: 0; }
}
.is-touched .swipe-hint, .is-revealed .swipe-hint { animation: none; opacity: 0; }

.bubble {
  position: absolute; left: 50%; top: 22.5%;
  background: var(--cream); color: var(--green);
  font: 500 clamp(15px, 4.4vw, 18px)/1.15 var(--font);
  padding: 11px 16px 12px;
  border-radius: 18px;
  white-space: nowrap;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(10px) scale(.6);
  transform-origin: 18% 120%;
  transition: opacity .35s var(--ease), transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.bubble::after {
  content: ""; position: absolute; left: 20%; bottom: -9px;
  width: 18px; height: 14px;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 10% 100%);
}
.is-bubble .bubble { opacity: 1; transform: none; }

.final { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 14px; gap: 14px; }
.final__text { font-size: clamp(16px, 4.5vw, 18px); line-height: 1.45; text-wrap: balance; max-width: 340px; }
.final__text strong { font-weight: 500; }
.final__logo { width: 38px; opacity: .9; }
.final .link-btn { margin-top: -4px; }

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .25s !important;
    transition-delay: 0s !important;
  }
  .fly { animation: none; transform: translate(-50%, -50%); }
  .wait-sleigh.is-flying { animation: none; opacity: 0; transition: opacity .3s !important; }
  .is-jumping .santa-move { animation: none; opacity: 0; transition: opacity .4s; }
  .swipe-hint { display: none; }
  .is-out .ext-santa { animation: none; opacity: 0; transition: opacity .4s; }
  .is-takeoff .ext-sleigh { animation: none; opacity: 0; transition: opacity .4s; }
  .board.is-shooting .comet__fly { animation: none; opacity: 0; }
  .scene { transform: none; }
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 760px) and (min-height: 640px) {
  .scene { padding-top: 74px; padding-bottom: 32px; }
  .progress { top: 22px; }
  .start__logo { width: 54px; }
}
