:root {
  --bg: #FFF6E9;
  --ink: #22303C;
  --muted: #6B7785;
  --line: #F0E3CF;
  --green: #2E9E6A;
  --green-d: #237A52;
  --sun: #FFC83D;
  --coral: #FF6B5B;
  --sky: #4D8DFF;
  --sky-d: #2F6AD6;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ---------- Startseite ---------- */
.top { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 10px; }
.logo { font-weight: 900; font-size: 28px; color: var(--green); letter-spacing: -.5px; display: block; line-height: 1; }
.tag { font-size: 13px; color: var(--muted); font-weight: 800; }
.stats { display: flex; gap: 8px; }
.pill { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 900; font-size: 15px; white-space: nowrap; }

.hero {
  position: relative; margin: 4px -16px 0; padding: 26px 24px 96px;
  background: linear-gradient(#BDE6FF, #E9F7FF); overflow: hidden; border-radius: 0 0 32px 32px;
}
.hero .hello { font-size: 36px; font-weight: 900; position: relative; }
.hero p { font-weight: 800; color: #3C556B; margin-top: 4px; position: relative; max-width: 70%; }
.hero .sun { position: absolute; right: 28px; top: 22px; width: 60px; height: 60px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 10px rgba(255,200,61,.25), 0 0 0 22px rgba(255,200,61,.12); }
.hero .mtn { position: absolute; left: 0; bottom: -1px; width: 100%; height: 96px; }

.path { list-style: none; padding: 30px 0 8px; position: relative; display: grid; gap: 20px; }
.path::before { content: ''; position: absolute; left: 50%; top: 60px; bottom: 50px; border-left: 4px dashed #E5D3B5; transform: translateX(-50%); }
.node { display: flex; position: relative; z-index: 1; }
.node.r { justify-content: flex-end; }
.node a { display: flex; align-items: center; gap: 12px; width: min(100%, 310px); }
.node.r a { flex-direction: row-reverse; text-align: right; }
.bubble {
  flex: none; width: 84px; height: 84px; border-radius: 50%; background: var(--c);
  display: grid; place-items: center; font-size: 40px; color: #fff; font-weight: 900;
  box-shadow: 0 6px 0 rgba(0,0,0,.2), inset 0 -6px 0 rgba(0,0,0,.08); border: 4px solid #fff;
  transition: transform .12s, box-shadow .12s;
}
.node a:active .bubble { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.label { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 10px 14px; display: grid; min-width: 0; }
.label b { font-size: 19px; line-height: 1.15; }
.label small { color: var(--muted); font-weight: 800; font-size: 14px; }
.stars { font-size: 15px; letter-spacing: 2px; margin-top: 2px; color: #E6D7C0; }
.stars .on { color: var(--sun); }

.foot { text-align: center; padding: 30px 0 8px; }
.parent-link { font-weight: 800; color: var(--muted); border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 10px 18px; display: inline-block; }

/* Begrüßung + zwei Türen */
.welcome { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 6px -16px 0; padding: 22px 16px 0; background: linear-gradient(#BDE6FF, #E9F7FF 85%, var(--bg)); border-radius: 0 0 32px 32px; min-height: 290px; }
.mascot { display: block; height: auto; }
.welcome .mascot { width: 168px; margin-bottom: -6px; }
.wave { transform-origin: 50% 90%; animation: sway 3s ease-in-out infinite; }
.jump { width: 150px; animation: hop .9s ease-in-out infinite; }
.speech { position: relative; align-self: center; background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 12px 16px; font-weight: 900; font-size: 24px; line-height: 1.1; box-shadow: 0 5px 0 var(--line); margin-bottom: 70px; }
.speech small { display: block; font-size: 15px; color: var(--muted); font-weight: 800; margin-top: 4px; }
.speech::before { content: ''; position: absolute; left: -12px; bottom: 18px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.doors { display: grid; gap: 16px; margin-top: 24px; }
.door { display: flex; align-items: center; gap: 16px; background: var(--c); color: #fff; border-radius: 26px; padding: 20px; box-shadow: 0 7px 0 var(--cd); transition: transform .1s, box-shadow .1s; }
.door:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--cd); }
.door-ico { width: 72px; height: 72px; flex: none; border-radius: 20px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 40px; }
.door b { display: block; font-size: 28px; font-weight: 900; line-height: 1.1; }
.door small { font-size: 16px; font-weight: 800; opacity: .9; }
.push { margin-left: auto; }
.sub-top + .hero { margin-top: 0; border-radius: 28px; margin-left: 0; margin-right: 0; }

/* Spiele */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.game { position: relative; background: #fff; border: 3px solid var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--line); padding: 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.game:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--line); }
.game-ico { width: 70px; height: 70px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-size: 36px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.12); margin-bottom: 4px; }
.game b { font-size: 18px; font-weight: 900; }
.game small { font-size: 13px; color: var(--muted); font-weight: 800; line-height: 1.3; }
.game.soon { opacity: .55; }
.badge { position: absolute; top: 10px; right: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; border-radius: 99px; padding: 3px 8px; }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.topic { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--line); border-left: 8px solid var(--c); border-radius: 18px; padding: 14px; box-shadow: 0 5px 0 var(--line); font-weight: 900; }
.topic span { font-size: 30px; }
.topic b { font-size: 16px; line-height: 1.2; }

/* Memory */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; perspective: 900px; }
.mcard { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform .45s; }
.mcard.flip { transform: rotateY(180deg); }
.mface { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; }
.mface.mback { background: var(--c); box-shadow: 0 5px 0 rgba(0,0,0,.18), inset 0 0 0 4px rgba(255,255,255,.35); }
.mface.mback img { width: 52%; opacity: .95; filter: drop-shadow(0 3px 0 rgba(0,0,0,.15)); }
.mface.mfront { background: #fff; border: 3px solid var(--line); transform: rotateY(180deg); box-shadow: 0 5px 0 var(--line); }
.mface.mfront .pic { font-size: 46px; }
.mface.mfront .pic.num { font-size: 44px; }
.mface.mfront .ce { font-size: 19px; font-weight: 900; text-align: center; line-height: 1.1; }
.mface.mfront small { font-size: 12px; color: var(--muted); font-weight: 800; }
.mcard.done { animation: popflip .4s; }
.mcard.done .mface.mfront { border-color: var(--green); background: #E6F7EE; box-shadow: 0 5px 0 var(--green); }
@keyframes popflip { 0% { transform: rotateY(180deg) scale(1); } 50% { transform: rotateY(180deg) scale(1.08); } 100% { transform: rotateY(180deg) scale(1); } }

.game .stars { margin-top: 2px; }
.sound-toggle { cursor: pointer; font-size: 16px; line-height: 1; }

/* ---------- Spiele: gemeinsame Teile ---------- */
.game-page { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: 20px; }
.game-page .sub-top { padding-bottom: 8px; }
.gbar { height: 14px; background: #EFE3D0; border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.gbar i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 99px; transition: width .4s; box-shadow: inset 0 -4px 0 rgba(0,0,0,.1); }
.ghint { text-align: center; font-weight: 800; color: var(--muted); font-size: 16px; line-height: 1.4; margin-bottom: 8px; }
.ghint small { display: block; font-size: 13px; }
.say-bubble {
  position: relative; align-self: center; background: #fff; border: 3px solid var(--line); border-radius: 22px;
  padding: 10px 22px; box-shadow: 0 5px 0 var(--line); text-align: center; display: flex; flex-direction: column; align-items: center;
}
.say-bubble .ce { font-size: 34px; font-weight: 900; line-height: 1.1; }
.say-bubble small { font-size: 15px; color: var(--muted); font-weight: 800; }
.say-bubble em { position: absolute; right: 10px; top: 4px; font-style: normal; font-weight: 900; color: var(--coral); font-size: 22px; }
.say-bubble.small .ce { font-size: 28px; }
.say-bubble.nope, .nope { animation: shake .4s; }
.tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: auto; padding-top: 14px; }
.food {
  aspect-ratio: 1; background: #fff; border: 3px solid var(--line); border-radius: 20px; box-shadow: 0 5px 0 var(--line);
  display: grid; place-items: center; touch-action: none; cursor: grab; transition: transform .35s cubic-bezier(.3,1.4,.5,1), opacity .35s;
  position: relative; z-index: 2;
}
.food .pic { font-size: 44px; pointer-events: none; }
.food.dragging { transition: none; z-index: 20; cursor: grabbing; box-shadow: 0 12px 20px rgba(0,0,0,.18); }
.food.eaten { opacity: 0; transition: transform .35s ease-in, opacity .35s .1s; }
.food:disabled { cursor: default; }

/* Füttern */
.feed-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; min-height: 300px;
  background: radial-gradient(70% 46px at 50% 100%, #BFE8CC 0 98%, transparent 100%) no-repeat bottom / 100% 60px; }
.feed-tur { width: 150px; transform-origin: 50% 100%; }
.feed-tur.chew { animation: chew .5s; }
.feed-tur.shake { animation: headshake .5s; }
@keyframes chew { 30% { transform: scaleY(.92) scaleX(1.05); } 60% { transform: scaleY(1.04) translateY(-8px); } }
@keyframes headshake { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }

/* Familienfoto */
.family .say-bubble { margin-bottom: 14px; }
.family .frame { margin: auto 0; }
.frame {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; border-radius: 18px;
  background: #FFF; border: 10px solid #C98B4E; box-shadow: inset 0 0 0 3px #E9B57D, 0 6px 0 #A06A35; transition: transform .4s;
}
.slot { aspect-ratio: 3 / 4; border-radius: 12px; background: #F4EEE4; border: 3px dashed #D9CBB4; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slot span { font-size: 22px; font-weight: 900; color: #CDBFA8; }
.slot.target { border-color: var(--sky); background: #EAF1FF; animation: glowbox 1.2s infinite; }
.slot.target span { color: var(--sky); }
.slot.filled { border-style: solid; border-color: #CDEFD9; background: #E6F7EE; animation: pop .4s; }
.slot .pic { font-size: 36px; }
.slot b { font-size: 12px; font-weight: 900; }
.frame.complete { transform: rotate(-2deg) scale(1.03); }
@keyframes glowbox { 50% { box-shadow: 0 0 0 6px rgba(77,141,255,.25); } }

/* Zählen */
.meadow { position: relative; height: 290px; border-radius: 26px; overflow: hidden; margin: 6px 0 16px;
  background: linear-gradient(#BDE6FF 0 22%, #9BD8A9 22% 100%); box-shadow: inset 0 -8px 0 rgba(0,0,0,.06); }
.critter { position: absolute; font-size: 40px; line-height: 1; width: 56px; height: 56px; display: grid; place-items: center; }
.critter i { position: absolute; top: -4px; right: -2px; min-width: 24px; height: 24px; border-radius: 99px; background: var(--sky); color: #fff; font-style: normal; font-weight: 900; font-size: 14px; display: grid; place-items: center; box-shadow: 0 2px 0 var(--sky-d); }
.critter.hop { animation: crhop .4s; }
@keyframes crhop { 40% { transform: translateY(-14px) scale(1.1); } }
.count-opts { margin-top: auto; }

/* Malen */
.paint .say-bubble { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 10px; align-items: baseline; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.paint .say-bubble .ce { font-size: 26px; }
.tap-now { flex-basis: 100%; font-size: 14px; color: var(--sky); font-weight: 900; }
.canvas-wrap { background: #fff; border: 3px solid var(--line); border-radius: 24px; padding: 8px; box-shadow: 0 6px 0 var(--line); }
.paint-svg { display: block; width: 100%; height: auto; }
.paint-svg [data-part] { fill: #F4EEE4; transition: fill .45s; cursor: pointer; }
.paint-svg .glow { animation: partglow 1s infinite; }
@keyframes partglow { 50% { fill: #FFE9A8; } }
.paint-svg.done { animation: pop .5s; }
.pots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: auto; padding-top: 16px; }
.pot { aspect-ratio: 1; border-radius: 50%; background: var(--pc); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--line), 0 5px 0 3px var(--line); transition: transform .15s; }
.pot.sel { transform: translateY(-8px) scale(1.12); box-shadow: 0 0 0 4px var(--ink), 0 8px 0 4px rgba(0,0,0,.15); }

/* Bergsprung */
.mountain {
  position: relative; flex: 1; min-height: 430px; border-radius: 28px; overflow: hidden;
  background:
    linear-gradient(170deg, transparent 0 55%, #7CC59B 55.2% 100%),
    linear-gradient(200deg, transparent 0 62%, #5DB083 62.2% 100%),
    linear-gradient(hsl(calc(205 - var(--alt) * 20), 80%, calc(84% - var(--alt) * 10%)), #EAF7FF);
  transition: background .6s;
}
.peak-flag { position: absolute; left: 50%; top: calc(-60px + var(--alt) * 80px); transform: translateX(-50%); font-size: 40px; transition: top .6s; }
.summit .peak-flag { top: 20px; animation: bounce 1s infinite; }
.climb-pic { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); padding: 8px 22px; border-radius: 22px; }
.climb-pic .pic { font-size: 56px; }
.climb-pic .pic.num { font-size: 52px; }
.rocks { position: absolute; left: 0; right: 0; top: 40%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 10px; transition: transform .35s, opacity .35s; }
.rocks.slide { transform: translateY(160px); opacity: 0; }
.rock {
  background: linear-gradient(#B9AFA3, #8F857A); color: #fff; border-radius: 40% 46% 18% 18% / 50% 50% 18% 18%;
  min-height: 82px; padding: 14px 6px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.18), 0 6px 0 #6F665D; transform: translateY(calc(var(--i) % 2 * 18px));
}
.rock .ce { font-size: 19px; font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.25); line-height: 1.1; text-align: center; }
.rock small { font-size: 12px; font-weight: 800; opacity: .9; }
.rock.ok { background: linear-gradient(#7FD6A4, #3DBE74); box-shadow: inset 0 -8px 0 rgba(0,0,0,.15), 0 6px 0 var(--green-d); }
.rock.crumble { animation: crumble .5s forwards; }
@keyframes crumble { 30% { transform: translateX(-6px) rotate(-4deg); } 60% { transform: translateX(6px) rotate(4deg); } 100% { transform: translateY(40px) scale(.7); opacity: 0; } }
.base-rock { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 170px; height: 150px; display: flex; justify-content: center;
  background: radial-gradient(ellipse at 50% 100%, #8F857A 0 60%, transparent 61%); }
.climber { width: 92px; height: auto; position: absolute; bottom: 38px; }
.climb .ghint { margin-top: 12px; }

@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes hop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Lektion ---------- */
.lesson { min-height: 100dvh; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 14px; padding: 18px 0 10px; }
.close { font-size: 22px; color: var(--muted); font-weight: 900; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }
.progress { flex: 1; height: 18px; background: #EFE3D0; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 99px; transition: width .4s; box-shadow: inset 0 -5px 0 rgba(0,0,0,.1); }
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0 24px; }
.hint { font-weight: 900; font-size: 22px; text-align: center; }

.card { background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: 20px; box-shadow: 0 6px 0 var(--line); }
.learn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px 26px; position: relative; }
.pic { font-size: 112px; line-height: 1.1; }
.pic.num { font-size: 104px; font-weight: 900; color: var(--c); line-height: 1; }
.learn .ce { font-size: 46px; font-weight: 900; text-align: center; line-height: 1.1; margin-top: 8px; }
.lat { font-size: 21px; color: var(--muted); font-weight: 800; }
.de { font-size: 15px; color: var(--muted); font-weight: 800; background: var(--bg); border-radius: 99px; padding: 4px 14px; margin-top: 8px; }

.speak {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sky); color: #fff; font-size: 28px;
  box-shadow: 0 5px 0 var(--sky-d); display: grid; place-items: center; transition: transform .1s;
}
.speak:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sky-d); }
.learn .speak { position: absolute; top: 16px; right: 16px; width: 58px; height: 58px; font-size: 24px; }
.speak.big { width: 128px; height: 128px; font-size: 54px; box-shadow: 0 8px 0 var(--sky-d); margin: 10px 0; }
.speak.muted { background: #CBD3DC; box-shadow: 0 5px 0 #A9B4C0; }
.nope { animation: shake .4s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; font-weight: 900; font-size: 20px;
  border-radius: 18px; padding: 16px 28px; box-shadow: 0 6px 0 var(--green-d); min-width: 200px;
  transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-d); }
.btn:disabled { opacity: .6; }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line); }
.go { width: 100%; margin-top: auto; }

.opts { display: grid; gap: 12px; width: 100%; }
.stage.center { justify-content: center; gap: 26px; padding-bottom: 60px; }
.opts.pics { grid-template-columns: repeat(3, 1fr); }
.opt { background: #fff; border: 3px solid var(--line); border-radius: 22px; box-shadow: 0 6px 0 var(--line); padding: 14px 8px; transition: transform .1s; }
.opt:active { transform: translateY(3px); }
.opts.pics .opt { aspect-ratio: 1; display: grid; place-items: center; }
.opts.pics .opt .pic { font-size: 62px; }
.opts.pics .opt .pic.num { font-size: 58px; }
.opts.words .opt { display: flex; flex-direction: column; align-items: center; padding: 16px; }
.opt .ce { font-size: 30px; font-weight: 900; }
.opt small { color: var(--muted); font-weight: 800; font-size: 15px; }
.opt.ok { border-color: var(--green); background: #E6F7EE; box-shadow: 0 6px 0 var(--green); animation: pop .35s; }
.opt.no { border-color: var(--coral); background: #FFECEA; animation: shake .4s; opacity: .5; }
.prompt { text-align: center; }
.prompt .ce { font-size: 46px; font-weight: 900; }
.card.mini { padding: 18px 44px; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.col { display: grid; gap: 10px; align-content: start; }
.tile {
  background: #fff; border: 3px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--line);
  min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px;
  transition: opacity .3s, transform .3s;
}
.tile .pic { font-size: 42px; }
.tile .pic.num { font-size: 40px; }
.tile .ce { font-size: 21px; font-weight: 900; line-height: 1.1; text-align: center; }
.tile small { font-size: 13px; color: var(--muted); font-weight: 800; }
.tile.sel { border-color: var(--sky); background: #EAF1FF; box-shadow: 0 5px 0 var(--sky); }
.tile.done { border-color: var(--green); background: #E6F7EE; box-shadow: none; opacity: .4; transform: scale(.95); pointer-events: none; }
.tile.no { border-color: var(--coral); animation: shake .4s; }

.finish { text-align: center; margin-top: 24px; display: grid; gap: 10px; justify-items: center; }
.trophy { font-size: 100px; animation: bounce 1.4s infinite; }
.finish h2 { font-size: 42px; font-weight: 900; color: var(--green); }
.finish p { font-weight: 800; font-size: 18px; }
.bigstars span { font-size: 54px; display: inline-block; filter: grayscale(1) opacity(.3); }
.bigstars span.on { filter: none; animation: pop .5s backwards; animation-delay: var(--d); }
.row-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 18px; }
.row-btns .btn { min-width: 150px; }

.toast {
  position: fixed; left: 50%; top: 20%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-weight: 900; font-size: 30px; padding: 12px 26px;
  border-radius: 20px; box-shadow: 0 6px 0 var(--green-d); animation: toast 1.2s forwards; z-index: 50; pointer-events: none; white-space: nowrap;
}
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 10px; height: 14px; border-radius: 2px; animation: fall linear forwards; }

@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -12px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,107,91,.25); } }
.pop { animation: pop .35s; }

/* ---------- Unterseiten ---------- */
.sub-top { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.back { width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; font-size: 20px; flex: none; }
.sub-top h1 { font-size: 26px; font-weight: 900; }
.page .card { margin-bottom: 16px; }
.page h2 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.page p { line-height: 1.5; font-weight: 700; }
.page p + p { margin-top: 8px; }
.page .card .btn { margin-top: 12px; }
.lead { margin-bottom: 16px; }
.muted { color: var(--muted); }

.abc { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
.letter {
  background: #fff; border: 3px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--line);
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.letter b { font-size: 28px; font-weight: 900; line-height: 1; }
.letter small { font-size: 12px; color: var(--muted); font-weight: 800; }
.letter.special { background: #FFF3D6; border-color: #FFD98A; box-shadow: 0 5px 0 #FFD98A; }
.letter:active { transform: translateY(3px); }
.sp-key { background: #FFF3D6; border: 2px solid #FFD98A; border-radius: 8px; padding: 0 6px; }

.gate .q { font-size: 40px; font-weight: 900; text-align: center; margin: 14px 0; }
.gate form { display: flex; gap: 10px; }
.gate input { flex: 1; min-width: 0; font: inherit; font-size: 26px; font-weight: 900; text-align: center; border: 3px solid var(--line); border-radius: 16px; padding: 10px; background: #fff; }
.gate .btn { min-width: 0; margin: 0; }
input.no { border-color: var(--coral); animation: shake .4s; }

.plist { list-style: none; padding: 0; display: grid; gap: 6px; margin-top: 10px; }
.plist li { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.switch { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 800; cursor: pointer; }
.switch input { width: 24px; height: 24px; accent-color: var(--green); flex: none; }

/* ---------- Studio ---------- */
.studio-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.count { font-weight: 900; font-size: 18px; }
.studio-bar .btn { min-width: 0; font-size: 16px; padding: 12px 18px; margin: 0; }
.srow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 2px solid var(--bg); }
.srow .w { flex: 1; min-width: 0; display: grid; }
.srow b { font-size: 20px; }
.srow.has b::after { content: ' ✓'; color: var(--green); }
.srow small { color: var(--muted); font-weight: 700; }
.srow .note { margin-top: 6px; font: inherit; font-size: 14px; border: 2px solid var(--line); border-radius: 10px; padding: 6px 8px; width: 100%; }
.act { display: flex; gap: 6px; flex: none; }
.act button { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); font-size: 18px; }
.srow .play { opacity: .3; pointer-events: none; }
.srow.has .play { opacity: 1; pointer-events: auto; }
.srow.recording .rec { background: var(--coral); color: #fff; animation: pulse 1s infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
