@font-face { font-family: 'Andika'; src: url(../fonts/andika-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Andika'; src: url(../fonts/andika-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url(../fonts/fredoka.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --bg: #fff6e6; --bg2: #ffeccc; --card: #fffdf8; --ink: #2d1f14; --ink2: #6b5643; --line: #ecd9b8;
  --gold: #ffb627; --gold-d: #d98a00; --sun: #ffd54a; --sky: #4c9bd6; --leaf: #4fa45d; --rose: #e2564a; --plum: #5a4785; --night: #1d1530;
  --r: 22px; --sh: 0 6px 0 rgba(120, 80, 20, .12), 0 12px 30px rgba(120, 80, 20, .12);
  --ui: 'Fredoka', 'Nunito', system-ui, sans-serif; --read: 'Andika', 'Fredoka', system-ui, sans-serif;
  --read-size: 1.55rem; --tap: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html[data-font="l"] { --read-size: 1.85rem; }
html[data-font="xl"] { --read-size: 2.2rem; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--ui); color: var(--ink); background: radial-gradient(120% 80% at 50% 0%, #fffaf0 0%, var(--bg) 55%, var(--bg2) 100%) fixed; font-size: 18px; line-height: 1.4; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible { outline: 4px solid var(--sky); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
img { max-width: 100%; }
#app { min-height: 100dvh; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; }
.screen.enter { animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.scroll { flex: 1; overflow-y: auto; padding: 12px clamp(12px, 3vw, 32px) 130px; }
.muted { color: var(--ink2); } .small { font-size: .85em; } .center { text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 12px 0; } .row.center { justify-content: center; }
.kicker { font-weight: 600; color: var(--gold-d); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin: 0 0 4px; }

/* ---------- Buttons ---------- */
.btn { border: 0; border-radius: 999px; min-height: var(--tap); padding: 10px 26px; font-weight: 600; font-size: 1.1rem; background: #fff; box-shadow: 0 4px 0 #e4cfa8; transition: transform .08s, box-shadow .08s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #e4cfa8; }
.btn.primary { background: linear-gradient(#ffc93c, var(--gold)); box-shadow: 0 5px 0 var(--gold-d); color: #3b2300; }
.btn.primary:active { box-shadow: 0 2px 0 var(--gold-d); }
.btn.gold { background: linear-gradient(#fff1a8, #ffd54a); box-shadow: 0 5px 0 #d9a400; }
.btn.ghost { background: #fffaf1; box-shadow: 0 4px 0 #ecd9b8, inset 0 0 0 2px #ecd9b8; }
.btn.danger { background: #ffe1dc; box-shadow: 0 4px 0 #e9a296; color: #8a2216; }
.btn.big { min-height: 68px; font-size: 1.25rem; padding: 12px 32px; }
.btn.huge { min-height: 76px; font-size: 1.45rem; padding: 14px 40px; }
.btn.small { min-height: 44px; padding: 6px 16px; font-size: .95rem; }
.btn.on, .btn[aria-pressed="true"] { background: #fff2c2; box-shadow: 0 4px 0 #e4b440, inset 0 0 0 3px var(--gold); }
.btn-round { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 0 #e4cfa8; font-size: 1.5rem; display: inline-grid; place-items: center; }
.btn-round.back { width: auto; padding: 0 18px 0 12px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center; font-weight: 600; font-size: 1.05rem; }
.btn-round.back span:first-child { font-size: 2rem; line-height: 1; margin-top: -4px; }
.btn-speak { border: 0; width: 52px; height: 52px; border-radius: 50%; background: #e9f4ff; box-shadow: 0 3px 0 #b9d6f0; font-size: 1.4rem; flex: none; }
.link { background: none; border: 0; color: var(--ink2); text-decoration: underline; padding: 14px; font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 2px; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; box-shadow: 0 3px 0 #ecd9b8; white-space: nowrap; }
.pill.combo { background: #fff2c2; } .pill.combo.hot { background: linear-gradient(90deg, #ffd54a, #ff9a3c); animation: hot 1s infinite alternate; }
@keyframes hot { to { transform: scale(1.08); } }
.sparks-count.bump { animation: bump .35s; } @keyframes bump { 50% { transform: scale(1.25); } }
.seg { display: inline-flex; gap: 6px; background: #f6e6c8; padding: 5px; border-radius: 999px; }
.seg.wrap { flex-wrap: wrap; border-radius: 22px; }
.seg button { border: 0; background: transparent; border-radius: 999px; min-height: 48px; padding: 6px 16px; font-weight: 600; font-size: 1rem; }
.seg button.on { background: #fff; box-shadow: 0 3px 0 #e4cfa8; }
.seg.small button { min-height: 44px; padding: 4px 12px; font-size: 1.2rem; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) clamp(10px, 2vw, 22px) 10px; background: linear-gradient(var(--bg) 70%, transparent); }
.tb-title { text-align: center; font-weight: 600; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title small { color: var(--ink2); font-weight: 500; }
.tb-right { display: flex; gap: 8px; align-items: center; }

/* ---------- Lumi ---------- */
.lumi { position: fixed; left: max(10px, env(safe-area-inset-left)); bottom: calc(10px + var(--safe-b)); z-index: 60; display: flex; align-items: flex-end; gap: 0; pointer-events: none; flex-direction: row-reverse; justify-content: flex-end; }
.lumi[hidden] { display: none; }
.lumi-body { pointer-events: auto; width: 96px; height: 96px; border: 0; background: none; padding: 0; animation: float 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(255, 170, 0, .35)); }
.lumi-svg { width: 100%; height: 100%; overflow: visible; }
.lumi-svg .wing { transform-box: fill-box; transform-origin: 80% 60%; animation: flap .22s ease-in-out infinite alternate; }
.lumi-svg .wr { transform-origin: 20% 60%; }
.lumi-svg .lumi-glow { animation: glow 2s ease-in-out infinite alternate; transform-origin: 60px 84px; }
.lumi-svg .lumi-eyes { transform-origin: 60px 48px; animation: blink 4.5s infinite; }
.lumi-svg.rainbow .lumi-tail, .lumi-svg.rainbow .lumi-glow { animation: hue 3s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes flap { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
@keyframes glow { from { opacity: .65; transform: scale(.92); } to { opacity: 1; transform: scale(1.08); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.lumi.bounce .lumi-body { animation: lbounce .6s ease, float 3.2s 0.6s ease-in-out infinite; }
.lumi.wiggle .lumi-body { animation: wig .5s; }
@keyframes lbounce { 30% { transform: translateY(-22px) scale(1.06); } 60% { transform: translateY(0) scale(.96); } }
@keyframes wig { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.lumi-bubble { pointer-events: auto; position: relative; background: #fff; border-radius: 22px; padding: 12px 16px; margin: 0 0 54px 4px; max-width: min(420px, 62vw); box-shadow: var(--sh); font-size: 1.08rem; display: flex; gap: 10px; align-items: center; animation: pop .25s ease; }
.lumi-bubble::before { content: ''; position: absolute; left: -10px; bottom: 16px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.lumi-bubble[hidden] { display: none; }
.lumi-text { margin: 0; }
.lumi-play { border: 0; background: #e9f4ff; border-radius: 50%; width: 42px; height: 42px; flex: none; font-size: 1.1rem; }
.lumi-play[hidden] { display: none; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
body[data-route="erwachsene"] .lumi { display: none; }

/* ---------- Silben ---------- */
.syl-farbe .s0 { color: #1d5fc2; } .syl-farbe .s1 { color: #cf2f2a; }
.syl-boegen .s { position: relative; display: inline-block; padding: 0 .02em .12em; }
.syl-boegen .s::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -.02em; height: .3em; border: .09em solid #3b78c9; border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.syl-boegen .s1::after { border-color: #d0453f; }
.chip .syl-farbe .s0, .choice .syl-farbe .s0 { color: #1d5fc2; }

/* ---------- Profile / Start ---------- */
.brand { text-align: center; padding: max(28px, env(safe-area-inset-top)) 16px 4px; }
.brand h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 700; color: var(--gold-d); text-shadow: 0 3px 0 #fff, 0 8px 24px rgba(255, 170, 0, .35); }
.brand .plus { color: var(--sky); margin-left: 4px; }
.brand p { margin: 6px 0 0; font-size: 1.15rem; color: var(--ink2); }
.profiles { align-items: center; padding-bottom: 140px; }
.profiles h2 { margin: 26px 0 14px; font-size: 1.6rem; }
.who { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 0 16px; max-width: 1000px; }
.who-card { border: 0; background: var(--card); border-radius: 28px; padding: 16px 18px 14px; width: 170px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .12s; }
.who-card:active { transform: scale(.96); }
.who-card b { font-size: 1.2rem; } .who-card small { color: var(--ink2); }
.who-av { width: 120px; height: 120px; display: block; }
.who-av.plus { display: grid; place-items: center; font-size: 4rem; color: var(--gold-d); background: #fff2c2; border-radius: 50%; }
.avatar-svg { width: 100%; height: 100%; display: block; }
.newprof .np-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px clamp(12px, 3vw, 32px) 140px; max-width: 1100px; margin: 0 auto; width: 100%; }
.np-card { background: var(--card); border-radius: 28px; padding: 18px 22px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 8px; }
.np-av { width: 150px; height: 150px; align-self: center; }
.lbl { font-weight: 600; margin-top: 6px; display: block; }
.name-in, .code-in { font: inherit; font-size: 1.4rem; padding: 12px 18px; border-radius: 18px; border: 3px solid var(--line); background: #fff; min-height: 60px; width: 100%; max-width: 380px; }
.name-in.wrong, .gate-out.wrong { animation: shake .4s; border-color: var(--rose); }
.code-in { text-transform: uppercase; letter-spacing: .08em; max-width: 260px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.sw.on { box-shadow: 0 0 0 4px var(--gold); transform: scale(1.08); }
.level-pick { display: grid; gap: 10px; }
.lv-card { border: 0; background: #fff8ea; border-radius: 20px; padding: 12px 16px; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; text-align: left; box-shadow: inset 0 0 0 3px var(--line); column-gap: 10px; }
.lv-card.on { background: #fff2c2; box-shadow: inset 0 0 0 4px var(--gold); }
.lv-ico { grid-row: span 2; font-size: 2.4rem; align-self: center; text-align: center; }
.lv-card small { color: var(--ink2); }
.code-box { margin: 10px 0; background: #f7efe0; border-radius: 18px; padding: 10px 14px; }
.code-box summary { font-weight: 600; min-height: 40px; display: flex; align-items: center; cursor: pointer; }
.np-card .btn.huge { margin-top: auto; }

/* ---------- Home ---------- */
.home-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) clamp(12px, 3vw, 32px) 6px; }
.me { display: flex; align-items: center; gap: 12px; border: 0; background: var(--card); border-radius: 999px; padding: 6px 22px 6px 6px; box-shadow: var(--sh); text-align: left; }
.me-av { width: 72px; height: 72px; display: block; }
.me-txt { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.me-txt b { font-size: 1.3rem; } .rank { font-size: .95rem; color: var(--ink2); }
.xpbar, .album-bar, .mini-bar { display: block; height: 10px; background: #f1e1c2; border-radius: 99px; overflow: hidden; position: relative; }
.xpbar i, .album-bar i, .mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd54a, #ff9a3c); border-radius: 99px; transition: width .8s; }
.home-pills { display: flex; gap: 10px; align-items: center; }
.pill.flame b { color: #d9480f; }
.home-main { flex: 1; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto 1fr; gap: 18px; padding: 10px clamp(12px, 3vw, 32px) 120px; max-width: 1280px; width: 100%; margin: 0 auto; }
.hero { grid-row: span 2; position: relative; border-radius: 30px; overflow: hidden; min-height: 380px; background-size: cover; background-position: center; box-shadow: var(--sh); display: flex; align-items: flex-end; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 40, 0) 30%, rgba(20, 12, 40, .78) 100%); }
.hero-txt { position: relative; padding: 26px 30px 30px; color: #fff; }
.hero-txt .kicker { color: var(--sun); }
.hero-txt h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); text-shadow: 0 3px 12px rgba(0, 0, 0, .4); }
.hero-txt p { margin: 6px 0 18px; font-size: 1.15rem; opacity: .95; }
.today { background: var(--card); border-radius: 28px; padding: 18px; box-shadow: var(--sh); display: flex; gap: 18px; align-items: center; }
.goal-ring { --f: 0; width: 112px; height: 112px; border-radius: 50%; flex: none; background: conic-gradient(var(--gold) calc(var(--f) * 360deg), #f3e3c4 0); display: grid; place-items: center; }
.goal-inner { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; align-content: center; }
.goal-inner b { font-size: 1.5rem; } .goal-inner small { color: var(--ink2); font-size: .8rem; margin-top: -4px; }
.today-txt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.week { display: flex; gap: 6px; flex-wrap: wrap; }
.wd { display: flex; flex-direction: column; align-items: center; font-size: .8rem; color: var(--ink2); width: 38px; padding: 4px 0; border-radius: 12px; background: #faf1df; }
.wd i { font-style: normal; font-size: 1.15rem; height: 24px; } .wd.on { background: #fff0cf; color: #b34700; } .wd.today { box-shadow: inset 0 0 0 2px var(--gold); }
.chest-btn { animation: hot .8s infinite alternate; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.tile { border: 0; background: var(--card); border-radius: 24px; padding: 14px 8px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; min-height: 118px; justify-content: center; transition: transform .1s; }
.tile:active { transform: scale(.96); }
.tile-ico { font-size: 2.6rem; line-height: 1; } .tile-lbl { font-weight: 600; font-size: 1.02rem; text-align: center; }
.tile-extra { position: absolute; top: 8px; right: 10px; background: #fff2c2; border-radius: 99px; padding: 1px 9px; font-size: .85rem; font-weight: 600; }
.home-foot { text-align: center; padding-bottom: calc(12px + var(--safe-b)); margin-top: -110px; position: relative; z-index: 2; }

/* ---------- Karte ---------- */
.map { height: 100dvh; overflow: hidden; }
.map-outer { flex: 1; display: grid; place-items: center; padding: 0 10px 10px; min-height: 0; }
.map-wrap { position: relative; width: min(100%, calc((100dvh - 92px) * var(--ar, 1.7778))); max-height: calc(100dvh - 92px); border-radius: 30px; overflow: hidden; box-shadow: var(--sh); background: #fff4dc; }
.map-wrap.land { --ar: 1.7778; } .map-wrap.port { --ar: .5625; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lit-path { stroke-dasharray: 4000; animation: draw 2.4s ease both; } @keyframes draw { from { stroke-dashoffset: 4000; } to { stroke-dashoffset: 0; } }
.node { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; width: clamp(80px, 9vw, 120px); z-index: 2; }
.map-wrap.port .node { width: clamp(76px, 15vw, 116px); }
.node-pic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 5px 0 #d8bf92, 0 8px 18px rgba(0, 0, 0, .18); background: #ddd; display: block; }
.node-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.node.done .node-pic { border-color: var(--sun); box-shadow: 0 5px 0 var(--gold-d), 0 0 26px rgba(255, 190, 40, .8); }
.node.locked .node-pic img { filter: grayscale(1) brightness(.85); opacity: .6; }
.lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; }
.node.current .node-pic { animation: pulse 1.6s infinite; border-color: #fff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 5px 0 #d8bf92, 0 0 0 0 rgba(255, 182, 39, .8); } 50% { box-shadow: 0 5px 0 #d8bf92, 0 0 0 16px rgba(255, 182, 39, 0); } }
.node-num { position: absolute; top: -6px; left: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--plum); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 3px 0 #3a2c5a; }
.node.done .node-num { background: var(--gold-d); box-shadow: 0 3px 0 #9c6400; }
.node-lbl { margin-top: 6px; background: rgba(255, 253, 248, .95); border-radius: 99px; padding: 2px 10px; font-weight: 600; font-size: .92rem; white-space: nowrap; box-shadow: 0 2px 0 #ecd9b8; }
.node-stars { font-size: 1.05rem; letter-spacing: 1px; margin-top: 1px; text-shadow: 0 1px 0 #fff; }
.node-crown { position: absolute; top: -18px; right: -14px; font-size: 1.7rem; filter: grayscale(1); opacity: .45; }
.node-crown.on { filter: none; opacity: 1; animation: float 2.4s infinite; }
.node.wrong { animation: shake .4s; }
.map-me { position: absolute; z-index: 3; transform: translate(-115%, -95%); pointer-events: none; display: flex; align-items: flex-end; }
.mm-av { width: clamp(46px, 5vw, 64px); height: clamp(46px, 5vw, 64px); display: block; animation: hop 1.8s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); }
.mm-lumi { width: clamp(36px, 4vw, 52px); height: clamp(36px, 4vw, 52px); display: block; margin-left: -10px; margin-bottom: 30px; animation: float 2.4s infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px); } }
.star { color: #e3cfa6; } .star.on { color: #ffb627; text-shadow: 0 0 6px rgba(255, 180, 0, .6); }

/* ---------- Station ---------- */
.chapter-screen { position: relative; min-height: 100dvh; }
.scene-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.scene-img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(1.1) brightness(.85); transform: scale(1.1); transition: filter .6s; }
.scene-bg.clear .scene-img { filter: none; transform: scale(1.02); animation: kb 30s ease-in-out infinite alternate; }
@keyframes kb { to { transform: scale(1.1) translate(-1%, -1%); } }
.scene-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 246, 230, .1), rgba(255, 246, 230, .35)); }
.chapter-screen .topbar { background: linear-gradient(rgba(29, 21, 48, .55), transparent); color: #fff; }
.chapter-screen .tb-title small { color: #ffe6a8; }
.pips { display: flex; gap: 6px; justify-content: center; padding: 0 14px 8px; }
.pip { width: 26px; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .45); }
.pip.on { background: var(--sun); } .pip.now { background: #fff; width: 40px; box-shadow: 0 0 10px #fff; }
.stage { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 6px clamp(10px, 2.5vw, 28px) 130px; }
.game-card { width: 100%; max-width: 980px; background: rgba(255, 253, 248, .97); border-radius: 30px; padding: clamp(16px, 2.4vw, 28px); box-shadow: 0 10px 40px rgba(20, 10, 0, .3); position: relative; animation: cardin .45s cubic-bezier(.2, 1.3, .5, 1) both; }
@keyframes cardin { from { transform: translateY(26px) scale(.97); opacity: 0; } }
.game-card.done { animation: none; }
.game-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.game-badge { background: #fff2c2; color: #7a4a00; border-radius: 99px; padding: 6px 14px; font-weight: 600; white-space: nowrap; }
.game-hint { margin: 0; flex: 1; min-width: 200px; font-size: 1.12rem; color: var(--ink2); }
.read-big { font-family: var(--read); font-size: calc(var(--read-size) * 1.05); line-height: 1.55; margin: 6px 0 14px; }
.done-burst { position: absolute; inset: 0; border-radius: 30px; background: rgba(255, 250, 235, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; animation: pop .3s; z-index: 5; }
.done-burst span { font-size: 3.6rem; letter-spacing: 6px; } .done-burst b { font-size: 2rem; color: var(--gold-d); }
.cheer { position: fixed; left: 50%; top: 32%; transform: translate(-50%, -50%); font-size: 2.2rem; font-weight: 700; color: #fff; background: linear-gradient(90deg, #ff9a3c, #ffd54a); padding: 10px 24px; border-radius: 99px; box-shadow: var(--sh); animation: cheer 1.1s ease forwards; z-index: 80; pointer-events: none; white-space: nowrap; }
@keyframes cheer { 0% { transform: translate(-50%, -30%) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -90%) scale(1); opacity: 0; } }
.fly-spark { position: fixed; z-index: 90; font-size: 1.6rem; pointer-events: none; }

/* Chips */
.chip { font-family: var(--read); font-size: var(--read-size); border: 0; background: #fff; border-radius: 18px; padding: 10px 18px; min-height: var(--tap); min-width: 60px; box-shadow: 0 4px 0 #dcc49a, inset 0 0 0 2px #eedcb8; transition: transform .1s, opacity .25s; line-height: 1.2; }
.chip.word:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #dcc49a, inset 0 0 0 2px #eedcb8; }
.chip.big { font-size: calc(var(--read-size) * 1.08); }
.chip.sel { background: #e9f4ff; box-shadow: 0 4px 0 #8fbbe6, inset 0 0 0 3px var(--sky); transform: translateY(-3px); }
.chip.gone { opacity: 0; pointer-events: none; transform: scale(.6); }
.chip.done { background: #fff6d6; box-shadow: 0 3px 0 #e4b440; padding: 8px 14px; min-height: 52px; }
.chip.fresh { animation: pop .3s; }
.wrong { animation: shake .42s; } .chip.wrong { background: #ffe4df; box-shadow: 0 4px 0 #e9a296; }
@keyframes shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.next { animation: nextglow 1s ease-in-out infinite alternate !important; outline: 4px solid #ffc93c; outline-offset: 3px; }
@keyframes nextglow { from { box-shadow: 0 0 0 0 rgba(255, 190, 40, .9); } to { box-shadow: 0 0 22px 8px rgba(255, 190, 40, .9); } }
.faded { opacity: .38; }
.sentence-well { min-height: 82px; border-radius: 22px; background: #f9f0de; box-shadow: inset 0 3px 0 #efdcb6; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.sentence-well .muted { font-size: 1.05rem; padding-left: 6px; }
.sentence-well.complete { background: #fff2c2; box-shadow: inset 0 0 0 3px var(--gold), 0 0 26px rgba(255, 190, 40, .6); }
.chip-field { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip-field.mode-blasen, .chip-field.mode-regen { position: relative; height: clamp(260px, 38vh, 360px); display: block; border-radius: 22px; background: linear-gradient(#eef7ff, #fdf8ee); overflow: hidden; }
.chip-field.mode-blasen.short { height: 210px; }
.mode-blasen .chip { position: absolute; border-radius: 999px; animation: bob 3.4s ease-in-out infinite alternate; background: radial-gradient(circle at 30% 25%, #fff, #e6f3ff); box-shadow: 0 4px 0 #a9cdf0, inset 0 0 0 2px #cfe5fb; }
@keyframes bob { from { transform: translate(0, 0); } to { transform: translate(14px, -16px); } }
.mode-regen .chip { position: absolute; top: -70px; animation: rain 9s linear infinite; background: linear-gradient(#fffbe6, #fff2c2); box-shadow: 0 4px 0 #e4b440; }
@keyframes rain { from { transform: translateY(0); } to { transform: translateY(calc(clamp(260px, 38vh, 360px) + 80px)); } }
.mode-regen:hover .chip, .mode-regen:active .chip { animation-play-state: paused; }
html.calm .mode-blasen .chip, html.calm .mode-regen .chip { animation: none; }


/* Wort-Bild */
.wb-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: start; }
.wb-words { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.wb-words.pulse { animation: shake .4s; }
.wb-pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pic-card { border: 0; background: #fff; border-radius: 24px; min-height: 140px; box-shadow: 0 5px 0 #dcc49a, inset 0 0 0 2px #eedcb8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; position: relative; }
.pic-card.matched { background: #eaf8e6; box-shadow: 0 5px 0 #8fcf86, inset 0 0 0 3px var(--leaf); }
.pic-card.matched::after { content: '✔'; position: absolute; top: 8px; right: 12px; color: var(--leaf); font-size: 1.5rem; font-weight: 700; }
.pic-emoji { font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; }
.pic-svg { width: clamp(64px, 8vw, 90px); display: inline-block; } .pic-svg .shape { width: 100%; height: auto; display: block; }
.pic-label { font-family: var(--read); font-size: var(--read-size); font-weight: 700; min-height: 1em; }
.sb-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pic-card.scene { min-height: 150px; }
.pic-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
.pic-card.scene .pic-emoji { font-size: clamp(2rem, 4vw, 2.8rem); } .pic-card.scene .pic-svg { width: clamp(44px, 5vw, 60px); }

/* Lücke */
.gap-sent { font-size: calc(var(--read-size) * 1.15); }
.gap-slot { display: inline-block; min-width: 4.2em; text-align: center; border-bottom: 4px dashed var(--gold); margin: 0 .2em; color: var(--ink2); }
.gap-slot.filled { border-bottom: 4px solid var(--leaf); color: var(--ink); background: #eaf8e6; border-radius: 10px 10px 0 0; padding: 0 .2em; animation: pop .3s; }

/* Silben */
.silben-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.silben-word { font-family: var(--read); font-size: calc(var(--read-size) * 2.2); font-weight: 700; padding: 8px 30px 20px; background: #fff; border-radius: 26px; box-shadow: 0 5px 0 #dcc49a; letter-spacing: .02em; }
.silben-word.solved { background: #eaf8e6; box-shadow: 0 5px 0 #8fcf86; }
.syl-arcs { display: inline-flex; gap: .06em; }
.arc { position: relative; padding: 0 .05em; } .arc::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: -.18em; height: .32em; border: .08em solid #3b78c9; border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.arc.s0 { color: #1d5fc2; } .arc.s1 { color: #cf2f2a; } .arc.s1::after { border-color: #d0453f; }
.silben-word.hint .arc::after { opacity: .5; }
.clap-dots { display: flex; gap: 10px; min-height: 34px; }
.clap-dot { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffb627); box-shadow: 0 0 12px rgba(255, 182, 39, .8); animation: pop .2s; }
.clap-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.btn-clap { border: 0; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7d6, #ffd54a); box-shadow: 0 7px 0 #d9a400; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; }
.btn-clap .hand { font-size: 3.4rem; line-height: 1; } .btn-clap.pop { animation: clap .2s; } @keyframes clap { 50% { transform: scale(.9); } }
.num-row { display: flex; gap: 12px; } .num-btn { width: 64px; height: 64px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 #dcc49a; font-size: 1.6rem; font-weight: 700; }
.dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; } .dot { width: 14px; height: 14px; border-radius: 50%; background: #ead7b2; } .dot.on { background: var(--gold); } .dot.now { background: #fff; box-shadow: 0 0 0 3px var(--gold); }
.syl-slots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.syl-slot { min-width: 110px; min-height: 76px; border-radius: 20px; border: 3px dashed #e0c48e; display: grid; place-items: center; font-family: var(--read); font-size: calc(var(--read-size) * 1.3); font-weight: 700; padding: 0 12px; }
.syl-slot.filled { border-style: solid; background: #fff; animation: pop .25s; } .syl-slot.s0 { color: #1d5fc2; border-color: #9fc0ea; } .syl-slot.s1 { color: #cf2f2a; border-color: #eba7a2; }
.syl-slots.solved .syl-slot { background: #eaf8e6; }
.syl-tray { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.syl-card { border: 0; font-family: var(--read); font-size: calc(var(--read-size) * 1.2); padding: 10px 22px; min-height: 70px; min-width: 90px; border-radius: 20px; background: #fffaf0; box-shadow: 0 5px 0 #dcc49a, inset 0 0 0 2px #eedcb8; }
.syl-card.gone { opacity: 0; transform: scale(.5); pointer-events: none; transition: .2s; }

/* Detektiv */
.det-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.det-text { background: #fbf4e6; border-radius: 22px; padding: 14px 18px; font-family: var(--read); font-size: var(--read-size); line-height: 1.6; max-height: 58vh; overflow-y: auto; box-shadow: inset 0 0 0 2px #efdcb6; }
.det-sent { all: unset; display: inline; border-radius: 8px; padding: 2px 3px; transition: background .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.det-text.proof-mode .det-sent { cursor: pointer; background: rgba(76, 155, 214, .1); box-shadow: 0 2px 0 rgba(76, 155, 214, .5); }
.det-text.proof-mode .det-sent:hover { background: rgba(76, 155, 214, .22); }
.det-sent.proof { background: #fff0a8 !important; box-shadow: 0 0 0 3px #ffd54a !important; }
.det-sent.bad { background: #ffe0da !important; }
.det-sent.next { outline: 3px solid #ffc93c; }
.stamp { display: inline-block; margin-left: 6px; animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1); font-size: .85em; }
@keyframes stamp { from { transform: scale(3) rotate(-20deg); opacity: 0; } }
.det-qhead { display: flex; gap: 10px; align-items: flex-start; }
.det-icon { font-size: 2.2rem; } .det-question { font-family: var(--read); font-weight: 700; font-size: calc(var(--read-size) * 1.05); margin: 0; flex: 1; line-height: 1.35; }
.choices { display: grid; gap: 12px; margin-top: 14px; }
.choice { font-family: var(--read); font-size: var(--read-size); text-align: left; border: 0; background: #fff; border-radius: 20px; padding: 14px 18px; min-height: 66px; box-shadow: 0 4px 0 #dcc49a, inset 0 0 0 2px #eedcb8; line-height: 1.3; }
.choice:active:not(:disabled) { transform: translateY(3px); }
.choice.ok { background: #eaf8e6; box-shadow: 0 4px 0 #8fcf86, inset 0 0 0 3px var(--leaf); }
.choice.wrong { background: #ffe4df; }
.proof-tip { background: #e9f4ff; border-radius: 16px; padding: 10px 14px; margin: 14px 0 0; font-weight: 600; animation: pop .3s; }

/* Blitz */
.blitz-box { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.blitz-screen { width: min(640px, 100%); height: 170px; border-radius: 26px; background: radial-gradient(circle at 50% 40%, #3b2f6b, #1d1530); display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; box-shadow: inset 0 0 0 4px #ffd54a55; }
.blitz-ready { font-size: 4rem; font-weight: 700; color: var(--sun); }
.blitz-word { position: absolute; font-family: var(--read); font-size: calc(var(--read-size) * 1.9); font-weight: 700; color: #fff; text-shadow: 0 0 22px #ffd54a; animation: pop .12s; text-align: center; padding: 0 16px; }
.blitz-opts { grid-template-columns: repeat(2, 1fr); width: min(720px, 100%); }
.blitz-opts .choice { text-align: center; font-size: calc(var(--read-size) * 1.1); }
.blitz-opts[hidden] { display: none; }

/* Flunker */
.flunker-box { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.flunker-box.lock { pointer-events: none; }
.fl-stage { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 820px; }
.fl-lumi { width: 140px; height: 140px; flex: none; animation: float 3s infinite; }
.fl-lumi.blush { animation: wig .5s; }
.fl-bubble { flex: 1; background: #fff; border-radius: 28px; padding: 16px 24px; box-shadow: var(--sh); position: relative; }
.fl-bubble::before { content: ''; position: absolute; left: -16px; top: 50%; border: 16px solid transparent; border-right-color: #fff; border-left: 0; transform: translateY(-50%); }
.fl-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.ok-btn { background: #eaf8e6; box-shadow: 0 5px 0 #8fcf86; color: #1d5c25; min-width: 210px; }
.no-btn { background: #ffe9e4; box-shadow: 0 5px 0 #eaa597; color: #8a2216; min-width: 210px; }
.ok-btn.ok, .no-btn.ok { outline: 4px solid var(--gold); }

/* Ordnen */
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.order-line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.order-slot { display: flex; align-items: center; gap: 10px; min-height: 64px; border-radius: 18px; border: 3px dashed #e0c48e; padding: 6px 12px; font-family: var(--read); font-size: calc(var(--read-size) * .92); }
.order-slot .num { width: 38px; height: 38px; border-radius: 50%; background: #f1e1c2; display: grid; place-items: center; font-family: var(--ui); font-weight: 700; flex: none; }
.order-slot.filled { border-style: solid; border-color: var(--leaf); background: #f2fbef; animation: pop .25s; } .order-slot.filled .num { background: var(--leaf); color: #fff; }
.order-pool { display: flex; flex-direction: column; gap: 10px; }
.order-card { font-family: var(--read); font-size: calc(var(--read-size) * .92); text-align: left; border: 0; background: #fff; border-radius: 18px; padding: 12px 16px; min-height: 64px; box-shadow: 0 4px 0 #dcc49a, inset 0 0 0 2px #eedcb8; line-height: 1.3; }
.order-card.gone { opacity: 0; height: 0; min-height: 0; padding: 0; margin: -5px 0; overflow: hidden; transition: .3s; }

/* Malen / Ziehen */
.studio { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: stretch; }
.board { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; background: linear-gradient(#e6f3ff 0 55%, #e3f2d3 55%); box-shadow: inset 0 0 0 3px #e3d2b0; overflow: hidden; }
.region { position: absolute; transform: translate(-50%, -50%); width: clamp(84px, 13%, 130px); aspect-ratio: 1; border: 0; background: rgba(255, 255, 255, .5); border-radius: 22px; padding: 6px; }
.region .shape { width: 100%; height: 100%; display: block; }
.board.armed .region:not(.painted) { box-shadow: 0 0 0 3px rgba(76, 155, 214, .5); }
.region.painted { background: transparent; animation: pop .3s; }
.paint-tray, .place-tray { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.pot { border: 0; background: #fff; border-radius: 18px; padding: 8px 14px 8px 8px; display: flex; align-items: center; gap: 10px; min-height: 58px; box-shadow: 0 4px 0 #dcc49a; font-family: var(--read); font-size: calc(var(--read-size) * .85); min-width: 140px; }
.pot.sel { box-shadow: 0 4px 0 var(--gold-d), inset 0 0 0 4px var(--gold); transform: translateX(-4px); }
.swatch { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .15); flex: none; }
.slot { position: absolute; transform: translate(-50%, -50%); width: clamp(96px, 15%, 140px); aspect-ratio: 1; border-radius: 50%; border: 4px dashed #c7a46a; background: rgba(255, 255, 255, .55); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slot .shape { width: 62%; height: auto; }
.slot-name { font-family: var(--read); font-weight: 700; font-size: calc(var(--read-size) * .8); }
.slot.filled { border-style: solid; border-color: var(--leaf); background: rgba(234, 248, 230, .85); animation: pop .3s; }
.token { border: 0; width: 96px; height: 96px; border-radius: 24px; background: #fff; box-shadow: 0 4px 0 #dcc49a; padding: 10px; touch-action: none; }
.token .shape { width: 100%; height: 100%; display: block; pointer-events: none; }
.token.sel { box-shadow: 0 4px 0 var(--gold-d), inset 0 0 0 4px var(--gold); }
.token.gone { visibility: hidden; }
.place-tray { flex-direction: column; }
.drag-ghost { position: fixed; width: 96px; height: 96px; transform: translate(-50%, -50%) scale(1.1); pointer-events: none; z-index: 100; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .3)); }
.drag-ghost .shape { width: 100%; height: 100%; }

/* Lesen */
.read-stage { align-items: stretch; gap: 20px; max-width: 1300px; margin: 0 auto; width: 100%; }
.read-pic { flex: 1 1 42%; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); max-height: calc(100dvh - 210px); position: sticky; top: 90px; }
.read-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.read-card { flex: 1 1 58%; background: rgba(255, 253, 248, .98); border-radius: 30px; padding: clamp(18px, 2.6vw, 30px); box-shadow: 0 10px 40px rgba(20, 10, 0, .3); display: flex; flex-direction: column; gap: 14px; animation: cardin .45s both; }
.read-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 8px 0 2px; }
.read-head p { margin: 0; }
.read-text { font-family: var(--read); font-size: calc(var(--read-size) * 1.08); line-height: 1.85; }
.read-text .sent { border-radius: 10px; padding: 2px 2px; transition: background .2s; }
.read-text .sent.cur { background: #fff4c4; }
.read-text .w { border-radius: 8px; transition: background .12s, box-shadow .12s; }
.read-text .w.lit { background: #ffe066; box-shadow: 0 0 0 3px #ffe066; }
.read-text .w.read { color: inherit; opacity: .8; }
.read-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.read-card .btn.big { align-self: flex-end; }

/* Schatz */
.treasure-stage { position: fixed; inset: 0; padding: 0; }
.orb-field { position: absolute; inset: 0; }
.orb { position: absolute; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; border: 0; background: radial-gradient(circle, #fffbe0 0%, #ffd54a 35%, rgba(255, 200, 40, .2) 60%, transparent 70%); animation: orb 1.5s ease-in-out infinite alternate; }
@keyframes orb { from { transform: translate(-50%, -50%) scale(.85); opacity: .7; } to { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } }
.orb.got { animation: got .6s forwards; pointer-events: none; }
@keyframes got { to { transform: translate(-50%, -260%) scale(2); opacity: 0; } }
.treasure-panel { position: absolute; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); background: rgba(255, 253, 248, .95); border-radius: 26px; padding: 16px 26px; text-align: center; box-shadow: var(--sh); max-width: 90vw; }
.treasure-panel h2 { font-size: 1.6rem; margin: 8px 0 4px; } .treasure-count { margin: 0; font-weight: 600; color: var(--gold-d); font-size: 1.2rem; }

/* Abschluss */
.finale { background: rgba(255, 253, 248, .97); border-radius: 34px; padding: clamp(20px, 3vw, 36px); max-width: 860px; width: 100%; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); animation: cardin .5s both; }
.finale h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 4px 0; }
.big-stars { font-size: clamp(3.4rem, 8vw, 5rem); letter-spacing: 10px; margin: 6px 0; }
.bstar { color: #e9d9b8; display: inline-block; } .bstar.on { color: #ffb627; animation: starpop .5s cubic-bezier(.2, 1.8, .4, 1); text-shadow: 0 0 18px rgba(255, 180, 0, .8); }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } }
.finale-row { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 5vw, 60px); margin: 18px 0; flex-wrap: wrap; }
.finale-row > div:first-child { display: flex; flex-direction: column; align-items: center; }
.sticker-reveal { width: 150px; height: 150px; perspective: 600px; }
.sticker-inner { position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; }
.sticker-reveal.flip .sticker-inner { transform: rotateY(180deg); }
.sticker-back, .sticker-front { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.sticker-back { background: repeating-linear-gradient(45deg, #ffd54a 0 12px, #ffc22e 12px 24px); font-size: 3rem; font-weight: 700; color: #fff; box-shadow: 0 6px 0 var(--gold-d); }
.sticker-front { transform: rotateY(180deg); background: radial-gradient(circle at 30% 25%, #fff, #fff4d6); border: 6px solid #fff; box-shadow: 0 6px 0 #e4cfa8, 0 0 0 4px #f3d48a, 0 10px 30px rgba(255, 180, 0, .5); }
.sticker-reveal.gold .sticker-front { background: radial-gradient(circle at 30% 25%, #fffbe0, #ffd54a); box-shadow: 0 6px 0 var(--gold-d), 0 0 0 4px #ffb627, 0 0 40px rgba(255, 180, 0, .9); }
.sticker-emoji { font-size: 4.6rem; }
.finale-stats p { font-size: 1.2rem; margin: 6px 0; } .finale-stats b { font-size: 1.6rem; color: var(--gold-d); }
.crown-pop { font-size: 1.8rem !important; font-weight: 700; color: var(--gold-d); animation: starpop .6s; }
.finale-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Modals / Toasts */
.modal-back { position: fixed; inset: 0; z-index: 70; background: rgba(29, 21, 48, .55); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.modal-back.in { opacity: 1; } .modal-back.out { opacity: 0; }
.modal { background: var(--card); border-radius: 32px; padding: clamp(20px, 3vw, 34px); max-width: 560px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); text-align: center; max-height: 90dvh; overflow-y: auto; }
.modal-back.in .modal { animation: cardin .4s cubic-bezier(.2, 1.4, .5, 1); }
.rate h2, .celebrate h2, .suggest h2 { font-size: 1.8rem; margin: 6px 0 14px; }
.rate-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rate-btn { border: 0; background: #fff; border-radius: 22px; padding: 14px 8px; box-shadow: 0 5px 0 #dcc49a, inset 0 0 0 2px #eedcb8; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 1.02rem; }
.rate-btn .e { font-size: 3rem; }
.badge-big { font-size: 5.5rem; margin: 6px 0; animation: starpop .6s cubic-bezier(.2, 1.8, .4, 1); }
.badge-big.glow { filter: drop-shadow(0 0 20px rgba(255, 190, 40, .9)); }
.big-emoji { font-size: 4.5rem; }
.chest { border: 0; background: none; font-size: 7rem; animation: hot .7s infinite alternate; }
.chest.open { animation: chestopen .6s forwards; } @keyframes chestopen { 40% { transform: scale(1.3) rotate(-8deg); } 100% { transform: scale(.6); opacity: .4; } }
.chest-prize { min-height: 20px; } .sticker-mini { font-size: 3rem; } .sticker-mini.big { font-size: 5rem; animation: starpop .6s; } .big-num { font-size: 1.8rem; font-weight: 700; color: var(--gold-d); }
.toasts { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { background: #fff; border-radius: 18px; padding: 12px 20px; box-shadow: var(--sh); font-size: 1.05rem; animation: pop .3s; transition: opacity .4s, transform .4s; }
.toast.gold { background: linear-gradient(90deg, #fff5c8, #ffe58a); } .toast.out { opacity: 0; transform: translateY(-10px); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 92; pointer-events: none; }

/* Album / Abzeichen / Pass / Garderobe / Training */
.album-bar { height: 14px; max-width: 700px; margin: 0 auto 14px; }
.album-page { background: var(--card); border-radius: 28px; padding: 18px 22px; box-shadow: var(--sh); max-width: 1100px; margin: 0 auto 18px; }
.album-page h2 { font-size: 1.5rem; } .album-page > p { margin: 4px 0 14px; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.stk { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.stk-face { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: #f2e6cf; color: #c9b38a; font-weight: 700; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .08); border: 3px dashed #dcc49a; }
.stk.have .stk-face { background: radial-gradient(circle at 30% 25%, #fff, #fff4d6); border: 5px solid #fff; box-shadow: 0 4px 0 #e4cfa8, 0 0 0 3px #f3d48a; font-size: 3rem; color: inherit; transform: rotate(-4deg); }
.stk.have.gold .stk-face { background: radial-gradient(circle at 30% 25%, #fffbe0, #ffd54a); box-shadow: 0 4px 0 var(--gold-d), 0 0 0 3px #ffb627, 0 0 18px rgba(255, 180, 0, .7); }
.stk small { font-size: .85rem; color: var(--ink2); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; max-width: 1150px; margin: 0 auto; }
.badge { background: var(--card); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; box-shadow: var(--sh); }
.badge-ico { font-size: 3.2rem; filter: grayscale(1); opacity: .4; }
.badge.got { background: linear-gradient(#fffdf6, #fff3cf); } .badge.got .badge-ico { filter: none; opacity: 1; }
.badge small { color: var(--ink2); } .badge-date { color: var(--leaf); font-weight: 600; font-size: .9rem; }
.mini-bar { width: 100%; height: 18px; } .mini-bar em { position: absolute; inset: 0; font-style: normal; font-size: .78rem; font-weight: 600; display: grid; place-items: center; }
.passport { max-width: 900px; margin: 0 auto; background: #fffdf6; border-radius: 30px; padding: clamp(18px, 3vw, 34px); box-shadow: var(--sh); border: 3px solid #f0dcb4; }
.pp-head { display: flex; gap: 18px; align-items: center; border-bottom: 3px dotted #e8d2a8; padding-bottom: 14px; margin-bottom: 14px; }
.pp-av { width: 120px; height: 120px; flex: none; } .pp-head h1 { font-size: 2.2rem; } .pp-head p { margin: 4px 0; }
.pp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.pp-stat { background: #fff4d9; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pp-stat b { font-size: 1.5rem; color: var(--gold-d); } .pp-stat small { color: var(--ink2); }
.passport h2 { font-size: 1.35rem; margin: 18px 0 10px; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.stamp-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stamp-ring { width: 84px; height: 84px; border-radius: 50%; border: 4px dashed #dcc49a; display: grid; place-items: center; font-size: 1.6rem; color: #c9b38a; font-weight: 700; }
.stamp-box.done .stamp-ring { border: 5px double #d9480f; color: inherit; font-size: 2.4rem; transform: rotate(-8deg); background: #fff1e6; }
.stamp-box small { color: var(--ink2); font-size: .8rem; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 8px; } .pp-badge { background: #fff4d9; border-radius: 99px; padding: 6px 12px; font-weight: 600; }
.pp-code code { background: #f3ecdf; padding: 4px 8px; border-radius: 8px; font-size: 1.05rem; }
.pp-sign { margin-top: 26px; color: var(--ink2); }
.gd-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 20px; padding: 10px clamp(12px, 3vw, 32px) 130px; max-width: 1200px; margin: 0 auto; width: 100%; }
.gd-prev { position: relative; align-self: start; position: sticky; top: 90px; background: var(--card); border-radius: 30px; padding: 20px; box-shadow: var(--sh); }
.gd-av { width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 1; }
.gd-lumi { position: absolute; right: 8px; top: 6px; width: 96px; height: 96px; animation: float 3s infinite; }
.gd-panel { background: var(--card); border-radius: 30px; padding: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 10px; }
.tabs { align-self: flex-start; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.shop-item { border: 0; background: #fff; border-radius: 22px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 4px 0 #dcc49a, inset 0 0 0 2px #eedcb8; }
.shop-item.on { box-shadow: 0 4px 0 var(--gold-d), inset 0 0 0 4px var(--gold); background: #fff8dc; }
.shop-item:not(.own) .shop-thumb { filter: saturate(.6); opacity: .85; }
.shop-thumb { width: 96px; height: 96px; display: block; }
.shop-item small { font-weight: 600; color: var(--gold-d); }
.train-main { max-width: 1100px; margin: 0 auto; width: 100%; }
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 16px; }
.train-card { border: 0; background: var(--card); border-radius: 26px; padding: 22px 14px; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.train-card b { font-size: 1.3rem; } .train-card small { color: var(--ink2); }
.training .game-card { margin: 0 auto; }

/* Erwachsene */
.grown-main { max-width: 1000px; margin: 0 auto; width: 100%; }
.gate { background: var(--card); border-radius: 30px; padding: 24px; box-shadow: var(--sh); max-width: 420px; margin: 20px auto; text-align: center; }
.gate p { font-size: 1.3rem; } .gate-out { font-size: 2.2rem; font-weight: 700; background: #fff4d9; border-radius: 16px; padding: 8px; margin: 10px auto; width: 160px; border: 3px solid transparent; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { border: 0; background: #fff; border-radius: 18px; min-height: 64px; font-size: 1.5rem; font-weight: 600; box-shadow: 0 4px 0 #dcc49a; } .key.ok { background: var(--gold); box-shadow: 0 4px 0 var(--gold-d); }
.grown-body { background: var(--card); border-radius: 26px; padding: 18px 22px; box-shadow: var(--sh); margin-top: 14px; }
.opt { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 2px dotted #eadbbd; flex-wrap: wrap; }
.opt-l { display: flex; flex-direction: column; max-width: 420px; } .opt-l small { color: var(--ink2); }
.lv-explain p { margin: 6px 0; font-size: .95rem; color: var(--ink2); } .lv-explain p.on { color: var(--ink); background: #fff4d9; border-radius: 12px; padding: 6px 10px; }
.syl-demo { font-family: var(--read); font-size: 1.7rem; margin: 6px 0 10px; }
.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .98rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #efe2c8; } .tbl th { color: var(--ink2); font-weight: 600; }
.hard { margin: 6px 0 14px; padding-left: 20px; } .hard li { margin: 4px 0; }
.info h3 { margin: 16px 0 6px; } .info p, .info li { line-height: 1.5; }
.grown h3 { font-size: 1.2rem; margin-top: 16px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1000px) and (orientation: portrait), (max-width: 760px) {
  .home-main { grid-template-columns: 1fr; }
  .hero { grid-row: auto; min-height: 300px; }
  .read-stage { flex-direction: column; }
  .read-pic { position: relative; top: 0; max-height: 30vh; flex: none; }
  .read-pic img { max-height: 30vh; }
  .det-grid, .order-grid { grid-template-columns: 1fr; }
  .det-text { max-height: 34vh; }
  .newprof .np-grid { grid-template-columns: 1fr; }
  .gd-grid { grid-template-columns: 1fr; } .gd-prev { position: relative; top: 0; } .gd-av { max-width: 200px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; } :root { --read-size: 1.3rem; --tap: 54px; }
  html[data-font="l"] { --read-size: 1.55rem; } html[data-font="xl"] { --read-size: 1.8rem; }
  .btn-round.back .lbl { display: none; } .btn-round.back { padding: 0 14px; }
  .tb-title { font-size: 1rem; } .tb-title small { display: none; }
  .lumi-body { width: 70px; height: 70px; } .lumi-bubble { font-size: .98rem; margin-bottom: 38px; max-width: 70vw; }
  .me { padding-right: 12px; } .me-av { width: 56px; height: 56px; } .me-txt { min-width: 0; } .me-txt b { font-size: 1.1rem; } .rank { font-size: .8rem; }
  .home-pills .pill { padding: 6px 10px; } .home-pills .btn-round { width: 48px; height: 48px; }
  .home-top { flex-wrap: wrap; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; } .tile { min-height: 96px; } .tile-ico { font-size: 2.1rem; } .tile-lbl { font-size: .88rem; }
  .today { flex-direction: column; align-items: flex-start; } .goal-ring { width: 92px; height: 92px; } .goal-inner { width: 70px; height: 70px; }
  .hero-txt { padding: 18px; } .btn.huge { min-height: 64px; font-size: 1.25rem; padding: 10px 28px; }
  .wb-grid { grid-template-columns: 1fr; } .wb-words { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .pic-card { min-height: 110px; } .sb-opts { grid-template-columns: 1fr; } .pic-card.scene { min-height: 90px; }
  .studio { grid-template-columns: 1fr; } .paint-tray, .place-tray { flex-direction: row; flex-wrap: wrap; justify-content: center; } .pot { min-width: 0; }
  .board { aspect-ratio: 4 / 3; } .region { width: 22%; } .slot { width: 25%; }
  .token { width: 78px; height: 78px; }
  .fl-stage { flex-direction: column; } .fl-lumi { width: 100px; height: 100px; } .fl-bubble::before { display: none; }
  .ok-btn, .no-btn { min-width: 140px; }
  .blitz-opts { grid-template-columns: 1fr; } .blitz-screen { height: 130px; }
  .silben-word { padding: 6px 18px 18px; } .btn-clap { width: 112px; height: 112px; } .btn-clap .hand { font-size: 2.6rem; }
  .syl-slot { min-width: 80px; min-height: 64px; } .syl-card { min-width: 70px; min-height: 60px; padding: 8px 16px; }
  .rate-row { grid-template-columns: 1fr; } .rate-btn { flex-direction: row; justify-content: center; } .rate-btn .e { font-size: 2rem; }
  .node-lbl { font-size: .72rem; padding: 1px 6px; } .node-num { width: 26px; height: 26px; font-size: .85rem; } .node-stars { font-size: .85rem; } .node-crown { font-size: 1.2rem; top: -12px; right: -8px; }
  .map-wrap { border-radius: 20px; }
  .who-card { width: 140px; } .who-av { width: 96px; height: 96px; }
  .pp-head { flex-direction: column; text-align: center; }
  .scroll, .stage { padding-bottom: 110px; }
  .det-sent { line-height: 1.6; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .lumi-body { width: 64px; height: 64px; }
  .read-pic { max-height: calc(100dvh - 150px); }
}
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
@media (prefers-reduced-motion: reduce) { .mode-blasen .chip, .mode-regen .chip, .lumi-body, .orb { animation: none !important; } }
@media print {
  body { background: #fff; } .topbar, .lumi, .toasts, .home-foot { display: none !important; }
  .scroll { padding: 0; overflow: visible; } .passport { box-shadow: none; border: 2px solid #ccc; }
  .screen { min-height: 0; }
}
html.calm .chip-field.mode-blasen, html.calm .chip-field.mode-regen { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; height: auto; background: none; overflow: visible; }
html.calm .mode-blasen .chip, html.calm .mode-regen .chip { position: static; animation: none !important; transform: none; }
[hidden] { display: none !important; }
.chapter-screen .topbar .btn-round, .chapter-screen .topbar .pill { color: var(--ink); }
.week { flex-wrap: nowrap; gap: 5px; } .wd { flex: 1 1 0; width: auto; min-width: 28px; max-width: 46px; }
.today-txt { flex: 1; min-width: 0; }
.lumi[data-mode="home"] { left: auto; right: max(10px, env(safe-area-inset-right)); flex-direction: row; justify-content: flex-end; }
.lumi[data-mode="home"] .lumi-bubble { margin: 0 4px 54px 0; }
.lumi[data-mode="home"] .lumi-bubble::before { left: auto; right: -10px; border: 10px solid transparent; border-left-color: #fff; border-right: 0; }
html { background-color: var(--bg); }
@media (max-width: 1000px) and (orientation: portrait), (max-width: 760px) { .home-main { grid-template-rows: none; align-content: start; } }
.chest-btn { animation: chestglow 1s ease-in-out infinite alternate; }
@keyframes chestglow { from { box-shadow: 0 5px 0 #c99a00, 0 0 0 0 rgba(255, 190, 40, .0); } to { box-shadow: 0 5px 0 #c99a00, 0 0 22px 6px rgba(255, 190, 40, .75); } }
.map-me { flex-direction: row-reverse; }
.mm-lumi { margin-left: 0; margin-right: -8px; }
.w { white-space: nowrap; }
@media (max-width: 600px) {
  .treasure-panel { bottom: calc(96px + var(--safe-b)); padding: 10px 18px; }
  .treasure-panel h2 { font-size: 1.15rem; margin: 6px 0 2px; }
}
.map-wrap.port .map-me { transform: translate(28%, -105%); flex-direction: row; } .map-wrap.port .mm-lumi { margin-right: 0; margin-left: -8px; }

/* Leselicht + Tempo als Gruppe */
.pacer-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 22px; background: #fff8ea; border: 2px dashed #ecd3a4; }
.pacer-lbl { font-weight: 700; font-size: .95rem; color: #7a5a2a; }
.seg.pacer-speed button { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; padding: 4px 12px; }
.seg.pacer-speed .sp-lbl { font-size: .72rem; font-weight: 600; color: #7a5a2a; }
/* Stumm-Schalter (Klänge + Stimmen) */
.mute-toggle { position: fixed; right: max(10px, env(safe-area-inset-right)); bottom: calc(12px + var(--safe-b, 0px)); z-index: 61; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(255, 252, 240, .92); box-shadow: 0 4px 14px rgba(29, 21, 48, .25); font-size: 1.35rem; display: grid; place-items: center; cursor: pointer; padding: 0; }
.mute-toggle.off { background: rgba(230, 226, 240, .95); opacity: .85; }
.mute-toggle:focus-visible { outline: 3px solid #f5b83d; outline-offset: 2px; }
body[data-route="erwachsene"] .mute-toggle { display: none; }
@media print { .mute-toggle { display: none !important; } }
body:has(.lumi[data-mode="home"]:not([hidden])) .mute-toggle { right: auto; left: max(10px, env(safe-area-inset-left)); }
@media (max-width: 600px) { .mute-toggle { width: 40px; height: 40px; font-size: 1.1rem; opacity: .9; } }

/* Review 2026-10-19: Zurück-Knopf bleibt auf dem Handy ein volles Tippziel */
.btn-round.back { min-width: 48px; flex-shrink: 0; }
