:root {
  --nacht: #0a1330;
  --nacht2: #14245a;
  --blatt: #12215a;
  --gold: #f2c14e;
  --gold2: #ffe6a3;
  --creme: #fff6e0;
  --tinte: #3a2a12;
  --gruen: #3f9b6c;
  --rot: #c8443c;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html { background: var(--nacht); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--creme);
  background:
    radial-gradient(120% 60% at 50% 0%, #1d3378 0%, transparent 60%),
    radial-gradient(80% 50% at 80% 100%, #2a1f52 0%, transparent 70%),
    linear-gradient(#0a1330, #0d1a45 60%, #0a1330);
  background-attachment: fixed;
  overflow-x: hidden;
}
body.modal-offen { overflow: hidden; }
button { font-family: inherit; color: inherit; cursor: pointer; }

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- Lichterkette ---------- */
#garland { position: absolute; top: 0; left: 0; right: 0; height: 70px; z-index: 2; pointer-events: none; }
#garland svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lampe {
  position: absolute;
  width: 11px; height: 15px;
  margin: 2px 0 0 -5.5px;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: radial-gradient(circle at 38% 30%, #fff 0%, var(--farbe) 48%, color-mix(in srgb, var(--farbe) 70%, #000) 100%);
  animation: leuchten var(--dauer) ease-in-out var(--start) infinite;
}
.lampe::before {
  content: ''; position: absolute; left: 3px; top: -4px; width: 5px; height: 5px;
  border-radius: 1.5px; background: #1f3a30;
}
@keyframes leuchten {
  0%, 100% {
    filter: brightness(.72) saturate(.9);
    box-shadow: 0 0 5px 1px color-mix(in srgb, var(--farbe) 55%, transparent);
  }
  50% {
    filter: brightness(1.3) saturate(1.15);
    box-shadow:
      0 0 14px 4px color-mix(in srgb, var(--farbe) 85%, transparent),
      0 0 38px 14px color-mix(in srgb, var(--farbe) 38%, transparent);
  }
}

/* ---------- Kopf ---------- */
.kopf { position: relative; z-index: 3; text-align: center; padding: 86px 18px 6px; }
.kicker {
  margin: 0 0 4px; font-size: .72rem; font-weight: 800; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}
h1, h2 { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.05; }
h1 {
  font-size: clamp(2.5rem, 11vw, 3.6rem);
  color: var(--gold2);
  text-shadow: 0 2px 18px rgba(242, 193, 78, .35);
}
h2 { font-size: 2rem; color: var(--gold2); }
.countdown {
  display: inline-block; margin: 14px 0 0; padding: 7px 16px; border-radius: 99px;
  font-size: .9rem; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(242, 193, 78, .3);
}
.countdown:empty { display: none; }
.fuss { position: relative; z-index: 3; text-align: center; padding: 8px 0 34px; font-size: .75rem; opacity: .5; }

/* ---------- Türchen ---------- */
.grid {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 520px; margin: 0 auto; padding: 20px 16px 24px;
}
.tuer {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; background: none;
  perspective: 520px;
  animation: tuer-rein .6s cubic-bezier(.2, .9, .3, 1) both;
  animation-delay: calc(var(--i) * 32ms);
}
@keyframes tuer-rein { from { opacity: 0; transform: translateY(16px) scale(.92); } }
.innen, .fluegel { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; }
.innen {
  font-size: 1.5rem;
  background: radial-gradient(circle at 50% 45%, #ffe9b0 0%, #e7a83c 38%, #6b3c12 100%);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .55);
}
.fluegel {
  transform-origin: left center;
  transition: transform .75s cubic-bezier(.3, .85, .3, 1), filter .75s;
  background: linear-gradient(145deg, #223a80, #14255c 55%, #101d4a);
  border: 1.5px solid rgba(242, 193, 78, .6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.fluegel::after {
  content: ''; position: absolute; right: 9%; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold);
}
.zahl { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 7.5vw, 2.2rem); color: var(--gold2); }
.tuer.gesperrt .fluegel { border-color: rgba(255, 255, 255, .13); background: linear-gradient(145deg, #1a2a5e, #111d49); }
.tuer.gesperrt .fluegel::after { background: rgba(255, 255, 255, .25); box-shadow: none; }
.tuer.gesperrt .zahl { color: rgba(255, 246, 224, .38); }
.tuer.auf .fluegel { transform: rotateY(-76deg); filter: brightness(.7); }
.tuer.heute:not(.auf) .fluegel { animation: heute 2.2s ease-in-out infinite; }
@keyframes heute {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 193, 78, .0), 0 6px 16px rgba(0, 0, 0, .35); }
  50% { box-shadow: 0 0 22px 5px rgba(242, 193, 78, .65), 0 6px 16px rgba(0, 0, 0, .35); }
}
.wackel { animation: wackel .42s; }
@keyframes wackel {
  20% { transform: translateX(-6px) rotate(-2deg); } 40% { transform: translateX(6px) rotate(2deg); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}

/* ---------- Ton, Hinweis, Konfetti ---------- */
.ton {
  position: fixed; top: 12px; left: 12px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; line-height: 1;
  border: 1px solid rgba(242, 193, 78, .4); background: rgba(10, 19, 48, .7); backdrop-filter: blur(6px);
}
.ton.aus { opacity: .6; }
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 90; max-width: 86vw;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  padding: 10px 18px; border-radius: 99px; text-align: center; font-weight: 600; font-size: .92rem;
  background: var(--creme); color: var(--tinte); box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
}
.toast.da { opacity: 1; transform: translate(-50%, 0); }
.konfetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.konfetti span { position: absolute; top: -36px; animation: fall var(--dauer) linear var(--start) both; }
@keyframes fall {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  85% { opacity: 1; }
  to { transform: translate(var(--dx), 112vh) rotate(540deg); opacity: 0; }
}
body.vorschau::after {
  content: 'Vorschau'; position: fixed; left: 12px; bottom: 12px; z-index: 60;
  padding: 5px 11px; border-radius: 99px; font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  background: var(--rot); color: #fff;
}

/* ---------- Fenster ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; display: flex; padding: 10px;
  background: rgba(4, 8, 24, .78); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .3s; overflow-y: auto;
}
.modal.da { opacity: 1; }
.blatt {
  position: relative; width: min(540px, 100%); margin: auto;
  padding: 26px 18px 26px; border-radius: 24px; text-align: center;
  background: linear-gradient(170deg, #1a2f72, var(--blatt) 45%, #0d1840);
  border: 1px solid rgba(242, 193, 78, .4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  transform: translateY(26px) scale(.96); transition: transform .4s cubic-bezier(.2, 1, .3, 1);
}
.modal.da .blatt { transform: none; }
.zu {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .1); font-size: 1rem;
}
.intro { margin: 8px auto 0; max-width: 34ch; font-size: .95rem; opacity: .85; }
.spiel { margin-top: 18px; user-select: none; -webkit-user-select: none; }
.spiel input { user-select: text; -webkit-user-select: text; }
.danach {
  margin-top: 20px; padding: 16px 18px; border-radius: 16px;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.25; color: var(--gold2);
  background: rgba(242, 193, 78, .1); border: 1px solid rgba(242, 193, 78, .45);
  animation: rein .7s cubic-bezier(.2, 1, .3, 1) both;
}
.fehler { padding: 30px 0; opacity: .8; }
@keyframes rein { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.rein { animation: rein .5s cubic-bezier(.2, 1, .3, 1) both; }

/* ---------- Gemeinsame Bausteine ---------- */
.knopf {
  padding: 11px 22px; border-radius: 99px; border: 0; font-weight: 800; font-size: .95rem;
  background: linear-gradient(180deg, #ffe08a, var(--gold)); color: #3a2706;
  box-shadow: 0 4px 14px rgba(242, 193, 78, .3); transition: transform .12s, opacity .2s;
}
.knopf:active { transform: scale(.95); }
.knopf:disabled { opacity: .4; }
.knopf.leise { background: transparent; color: var(--gold2); box-shadow: inset 0 0 0 1.5px rgba(242, 193, 78, .55); }
.zeile { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.zeile.mitte { justify-content: center; }
.eingabe {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; font: inherit; font-size: 1rem;
  color: var(--creme); background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .22); outline: none;
}
.eingabe:focus { border-color: var(--gold); }
.eingabe.ja { border-color: var(--gruen); }
.eingabe.nein { border-color: var(--rot); }
.punkte { display: flex; gap: 7px; justify-content: center; margin-bottom: 14px; }
.punkte i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background .3s, transform .3s; }
.punkte i.an { background: var(--gold); transform: scale(1.2); }
.punkte i.aus { background: var(--rot); }
.zaehler { margin: 12px 0 0; font-size: .88rem; opacity: .8; }
.aufloesung { margin: 12px auto 0; max-width: 36ch; min-height: 1.4em; font-size: .98rem; }
.geheim {
  margin: 16px 0 0; font-family: var(--serif); font-weight: 700; font-size: 2.1rem; line-height: 1.1; color: var(--gold2);
  animation: rein .9s cubic-bezier(.2, 1, .3, 1) both;
}

/* ---------- 1 Rubbellos ---------- */
.rubbel {
  position: relative; min-height: 230px; display: grid; place-items: center; overflow: hidden;
  padding: 26px 22px; border-radius: 18px; background: var(--creme); color: var(--tinte);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.rubbel-text { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.3; }
.rubbel-schicht { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; transition: opacity .9s; }
.rubbel-schicht.weg { opacity: 0; pointer-events: none; }

/* ---------- 2 Puzzle ---------- */
.puzzle {
  display: grid; grid-auto-rows: 1fr; gap: 3px; width: min(100%, 330px); margin: 0 auto;
  transition: gap .5s; border-radius: 12px; overflow: hidden;
}
.teil {
  padding: 0; border: 0; border-radius: 5px; background-repeat: no-repeat;
  transition: transform .15s, border-radius .5s, box-shadow .15s;
}
.teil.gewaehlt { transform: scale(.9); box-shadow: 0 0 0 3px var(--gold); z-index: 1; position: relative; }
.puzzle.geloest { gap: 0; box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(242, 193, 78, .5); }
.puzzle.geloest .teil { border-radius: 0; }

/* ---------- 3 Emoji ---------- */
.emoji-gross { font-size: 3.3rem; letter-spacing: .08em; margin: 10px 0 6px; }
.muster { margin: 8px 0 0; font-size: 1.25rem; font-weight: 800; letter-spacing: .12em; color: var(--gold2); min-height: 1.6em; word-break: break-word; }

/* ---------- 4 Memory ---------- */
.memory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; width: min(100%, 330px); margin: 0 auto; }
.mkarte { aspect-ratio: 1; padding: 0; border: 0; background: none; perspective: 600px; }
.mk-innen { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .9, .3, 1); }
.mkarte.auf .mk-innen { transform: rotateY(180deg); }
.mk-rueck, .mk-vorn { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mk-rueck {
  display: grid; place-items: center; font-size: 1.7rem; color: var(--gold);
  background: linear-gradient(145deg, #25408c, #14255c); border: 1.5px solid rgba(242, 193, 78, .55);
}
.mk-vorn { transform: rotateY(180deg); background-size: cover; background-position: center; }
.mkarte.paar .mk-vorn { box-shadow: 0 0 0 2.5px var(--gold), 0 0 18px rgba(242, 193, 78, .6); }
.mkarte.paar { animation: pop .45s; }
@keyframes pop { 50% { transform: scale(1.08); } }

/* ---------- 5 Wordle ---------- */
.wordle { display: grid; gap: 6px; justify-content: center; }
.wreihe { display: grid; grid-template-columns: repeat(var(--len), 48px); gap: 6px; }
.wfeld {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 9px;
  font-weight: 800; font-size: 1.5rem; border: 2px solid rgba(255, 255, 255, .22);
}
.wfeld.voll { border-color: rgba(242, 193, 78, .7); }
.wfeld.dreh { animation: dreh .5s both; }
@keyframes dreh { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.wfeld.ja, .taste.ja { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.wfeld.fast, .taste.fast { background: #d9a441; border-color: #d9a441; color: #2a1c05; }
.wfeld.nein, .taste.nein { background: #232d52; border-color: #232d52; color: rgba(255, 255, 255, .55); }
.tastatur { margin-top: 12px; }
.treihe { display: flex; justify-content: center; gap: 4px; margin-bottom: 5px; }
.taste {
  flex: 1; max-width: 34px; height: 46px; padding: 0; border: 0; border-radius: 7px;
  font-weight: 800; font-size: .95rem; background: #3a4a8a; transition: background .3s;
}
.taste.breit { flex: 1.6; max-width: 52px; font-size: 1.1rem; }

/* ---------- 6 Fangen ---------- */
.fang-text { margin: 0 0 12px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; }
.fang-wort {
  display: inline-block; margin: 2px 3px; padding: 0 5px; border-radius: 7px;
  color: transparent; background: rgba(255, 255, 255, .14); transition: color .4s, background .4s, transform .4s;
}
.fang-wort.da { color: var(--gold2); background: transparent; transform: scale(1.05); }
.fang-feld {
  display: block; width: 100%; height: 44dvh; max-height: 380px; min-height: 260px; border-radius: 18px; touch-action: none;
  background: linear-gradient(#081030, #162a63); border: 1px solid rgba(242, 193, 78, .3);
}

/* ---------- 7 Wer hat's gesagt ---------- */
.zitat {
  margin: 10px 0 6px; min-height: 130px; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1.2;
}
.knopf.wahl { min-width: 120px; }
.knopf.wahl.ja { background: var(--gruen); color: #fff; }
.knopf.wahl.nein { background: var(--rot); color: #fff; }

/* ---------- 8 Zoom ---------- */
.zoom-rahmen {
  width: min(100%, 310px); aspect-ratio: 3 / 4; margin: 0 auto; overflow: hidden; border-radius: 18px;
  border: 2px solid rgba(242, 193, 78, .6); background: #081030;
}
.zoom-bild { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.3, .9, .3, 1); }

/* ---------- 9 Weihnachtskarte ---------- */
.karte-buehne { position: relative; height: 390px; display: grid; place-items: center; perspective: 1100px; }
.karte-sterne { position: absolute; inset: 0; }
.karte-sterne i { position: absolute; font-style: normal; color: var(--gold); animation: funkeln 3s ease-in-out var(--start) infinite; }
@keyframes funkeln { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
.wkarte {
  width: 236px; height: 330px; padding: 0; border: 0; background: none; transform-style: preserve-3d;
  animation: wirbel 1.9s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes wirbel {
  from { opacity: 0; transform: translateY(-130%) rotateY(1080deg) rotateZ(-25deg) scale(.25); }
  60% { opacity: 1; }
  to { transform: none; }
}
.wk-innen {
  position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.3, .9, .3, 1);
  animation: schweben 4s ease-in-out 2s infinite;
}
@keyframes schweben { 50% { translate: 0 -8px; } }
.wkarte.gedreht .wk-innen { transform: rotateY(180deg); }
.wk-seite {
  position: absolute; inset: 0; border-radius: 18px; padding: 26px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.wk-vorn {
  color: var(--gold2); background: linear-gradient(160deg, #a8222d, #6c0f1b);
  border: 2px solid var(--gold); outline: 1px solid rgba(242, 193, 78, .55); outline-offset: -9px;
}
.wk-stern { font-size: 2.2rem; color: var(--gold); animation: funkeln 2.4s ease-in-out infinite; }
.wk-titel { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.wk-zweig { letter-spacing: .4em; opacity: .8; }
.wk-hinten { transform: rotateY(180deg); background: var(--creme); color: var(--tinte); border: 2px solid var(--gold); }
.wk-text { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; font-weight: 700; }
.wk-zusatz { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: #a8222d; }
.wk-sig { font-size: .85rem; opacity: .7; margin-top: 8px; }

/* ---------- 10 Wo war das ---------- */
.wo-foto { display: block; max-width: 100%; max-height: 22dvh; margin: 0 auto; border-radius: 14px; border: 2px solid rgba(242, 193, 78, .5); }
.wo-karte { height: 33dvh; min-height: 230px; margin-top: 12px; border-radius: 16px; overflow: hidden; isolation: isolate; background: #a9c9e8; }
.wo-pin { display: block; width: 30px; line-height: 30px; font-size: 26px; text-align: center; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.wo-pin.ziel { color: #e2333f; animation: pop .5s; }

/* ---------- 11 Zeitstrahl ---------- */
.zeitstrahl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.zkarte {
  position: relative; width: calc(33.333% - 6px); padding: 0; overflow: hidden; border-radius: 12px;
  border: 2.5px solid transparent; background: #081030; transition: transform .15s, border-color .2s;
}
.zkarte img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.zk-nr {
  position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--gold); color: #3a2706;
}
.zk-label { display: block; min-height: 1.5em; padding: 3px 2px; font-size: .7rem; font-weight: 600; }
.zk-label:empty { display: none; }
.zkarte.gewaehlt { border-color: var(--gold); transform: scale(.94); }
.zkarte.richtig { border-color: var(--gruen); }
.zkarte.falsch { border-color: var(--rot); }

/* ---------- 12 Wortgitter ---------- */
.wgitter {
  display: grid; grid-template-columns: repeat(var(--g), 1fr); gap: 2px; width: min(100%, 350px); margin: 0 auto;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.wz {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px;
  font-weight: 800; font-size: .95rem; background: rgba(255, 255, 255, .07); transition: background .15s;
}
.wz.gefunden { background: rgba(63, 155, 108, .75); }
.wz.wahl { background: rgba(242, 193, 78, .8); color: #3a2706; }
.wliste { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; margin: 14px 0 0; padding: 0; list-style: none; }
.wliste li { padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; border: 1px solid rgba(242, 193, 78, .5); transition: opacity .3s; }
.wliste li.weg { text-decoration: line-through; opacity: .4; }

/* ---------- 13 Zahlenschloss ---------- */
.schloss { position: relative; width: 90px; height: 112px; margin: 4px auto 18px; }
.kasten {
  position: absolute; left: 0; bottom: 0; width: 90px; height: 68px; border-radius: 14px;
  background: linear-gradient(160deg, #ffe08a, #d39a2c); box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  display: grid; place-items: center;
}
.loch { width: 14px; height: 14px; border-radius: 50%; background: #4a3208; box-shadow: 0 12px 0 -4px #4a3208; }
.buegel {
  position: absolute; left: 17px; top: 0; width: 56px; height: 62px;
  border: 10px solid #cfd3de; border-bottom: 0; border-radius: 28px 28px 0 0;
  transform-origin: 91% 100%; transition: transform .8s cubic-bezier(.3, 1.4, .4, 1);
}
.schloss.offen .buegel { transform: translateY(-12px) rotate(32deg); }
.schloss.offen .kasten { animation: heute 1.6s ease-in-out infinite; }
.fragen { display: grid; gap: 10px; }
.frage {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: .93rem;
}
.eingabe.zahl { flex: 0 0 68px; text-align: center; font-weight: 800; font-size: 1.15rem; padding: 9px 6px; }

/* ---------- 14 Umarmung ---------- */
.buehne {
  position: relative; height: 250px; overflow: hidden; border-radius: 18px;
  background: radial-gradient(60% 60% at 50% 100%, #2b4290 0%, transparent 70%), linear-gradient(#081030, #132358);
  border: 1px solid rgba(242, 193, 78, .3);
}
.boden { position: absolute; left: -10%; right: -10%; bottom: -14px; height: 44px; border-radius: 50%; background: #eaf0ff; }
.laeufer { position: absolute; left: 50%; bottom: 16px; width: 96px; height: 184px; margin-left: -48px; }
.laeufer.er { transform: translateX(-70vw); }
.laeufer.sie { transform: translateX(70vw) scaleX(-1); }
.buehne.lauf .er { animation: lauf-er 2.5s cubic-bezier(.35, 0, .5, 1) forwards; }
.buehne.lauf .sie { animation: lauf-sie 2.5s cubic-bezier(.35, 0, .5, 1) forwards; }
@keyframes lauf-er { from { transform: translateX(-70vw); } to { transform: translateX(-27px); } }
@keyframes lauf-sie { from { transform: translateX(70vw) scaleX(-1); } to { transform: translateX(27px) scaleX(-1); } }
.figur { display: block; width: 100%; height: 100%; overflow: visible; transition: transform .5s cubic-bezier(.3, 1.4, .4, 1); }
.figur g { transform-box: fill-box; transform-origin: 50% 6%; transition: transform .45s cubic-bezier(.3, 1.3, .4, 1); }
.figur .kopf { transform-origin: 50% 100%; }
.buehne.lauf:not(.umarmt) .figur { animation: huepf .3s ease-in-out infinite alternate; }
.buehne.lauf:not(.umarmt) .bein.vorn, .buehne.lauf:not(.umarmt) .arm.hinten { animation: schritt .3s ease-in-out infinite alternate; }
.buehne.lauf:not(.umarmt) .bein.hinten, .buehne.lauf:not(.umarmt) .arm.vorn { animation: schritt .3s ease-in-out infinite alternate-reverse; }
@keyframes huepf { to { transform: translateY(-7px); } }
@keyframes schritt { from { transform: rotate(30deg); } to { transform: rotate(-30deg); } }
.buehne.umarmt .figur { transform: translateX(7px) rotate(5deg); }
.buehne.umarmt .arm.vorn { transform: rotate(-68deg); }
.buehne.umarmt .arm.hinten { transform: rotate(-52deg); }
.buehne.umarmt .kopf { transform: rotate(9deg); }
.herzen { position: absolute; left: 50%; bottom: 150px; }
.herzen span { position: absolute; left: 0; top: 0; opacity: 0; animation: steig var(--dauer) ease-out var(--start) both; }
@keyframes steig {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.3); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -170px) scale(1.2); }
}
.umarm-foto {
  display: block; width: min(250px, 78%); margin: 18px auto 4px; border-radius: 6px;
  border: 8px solid var(--creme); border-bottom-width: 26px; rotate: -2.5deg;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5); animation: rein 1s cubic-bezier(.2, 1, .3, 1) .3s both;
}

/* ---------- 15–23 Gutschein ---------- */
.ticket-buehne { display: grid; place-items: center; padding: 12px 0 6px; perspective: 900px; }
.ticket {
  position: relative; width: min(320px, 100%); padding: 26px 24px 16px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  border: 0; border-radius: 20px; color: var(--tinte);
  background: linear-gradient(150deg, #fffaf0, #f7e2ad 70%, #ecc978);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(184, 134, 43, .55);
  animation: ticket-rein 1s cubic-bezier(.2, 1.25, .3, 1) both;
}
@keyframes ticket-rein { from { opacity: 0; transform: translateY(70px) rotateX(75deg) scale(.6); } }
.ticket::before, .ticket::after {
  content: ''; position: absolute; bottom: 44px; width: 26px; height: 26px; border-radius: 50%; background: #12215a;
  box-shadow: inset 0 0 0 2px rgba(184, 134, 43, .55);
}
.ticket::before { left: -13px; }
.ticket::after { right: -13px; }
.t-glanz {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%);
  transform: translateX(-120%); animation: glanz 3.6s ease-in-out 1.1s infinite;
}
@keyframes glanz { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.t-icon { font-size: 3.3rem; line-height: 1.1; animation: wippen 2.4s ease-in-out infinite; }
@keyframes wippen { 50% { transform: translateY(-7px) rotate(-6deg); } }
.t-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: #9a7421; }
.t-titel { font-family: var(--serif); font-weight: 700; font-size: 1.85rem; line-height: 1.08; }
.t-text { font-size: .95rem; line-height: 1.4; max-width: 28ch; }
.t-fuss { width: 100%; margin-top: 16px; padding-top: 11px; border-top: 2px dashed rgba(154, 116, 33, .5); font-size: .66rem; font-weight: 600; color: #7c5d1b; }
.ticket.funkel { animation: funkel .6s; }
@keyframes funkel { 30% { transform: scale(1.05) rotate(-2deg); } 60% { transform: scale(1.03) rotate(2deg); } }

/* ---------- 24 Geschenk ---------- */
.geschenk-buehne { height: 250px; display: grid; place-items: center; }
.geschenk { position: relative; width: 170px; height: 180px; padding: 0; border: 0; background: none; animation: rein .8s cubic-bezier(.2, 1.3, .3, 1) both; }
.g-kiste {
  position: absolute; left: 12px; right: 12px; bottom: 0; height: 112px; border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, transparent 41%, var(--gold) 41% 59%, transparent 59%), linear-gradient(#b3202c, #7f101d);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}
.g-deckel {
  position: absolute; left: 0; right: 0; top: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(90deg, transparent 42%, var(--gold) 42% 58%, transparent 58%), linear-gradient(#d53340, #a81c29);
  transition: transform .9s cubic-bezier(.3, 1.2, .4, 1), opacity .9s; z-index: 2;
}
.g-schleife::before { content: '🎀'; position: absolute; left: 50%; top: -34px; translate: -50% 0; font-size: 44px; line-height: 1; }
.g-licht { position: absolute; left: 50%; bottom: 100px; width: 6px; height: 6px; border-radius: 50%; opacity: 0; transition: opacity .6s, box-shadow .9s; }
.geschenk.s1 { animation: wackel .42s; }
.geschenk.s2 { animation: wackel .42s 2; }
.geschenk.offen .g-deckel { transform: translate(70px, -150px) rotate(48deg); opacity: 0; }
.geschenk.offen .g-licht { opacity: 1; box-shadow: 0 0 90px 70px rgba(255, 221, 130, .75); }

@media (max-width: 360px) {
  .wreihe { grid-template-columns: repeat(var(--len), 42px); }
  .wfeld { width: 42px; height: 42px; }
  .grid { gap: 9px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
