:root {
  --sky1: #5ec8f8;
  --sky2: #a5e3ff;
  --sun: #ffd166;
  --ink: #1d2b3a;
  --muted: #5b6b7c;
  --card: #ffffff;
  --line: #e3ebf3;
  --blue: #2f80ed;
  --green: #27ae60;
  --red: #eb5757;
  --orange: #f2994a;
  --purple: #9b51e0;
  --yellow: #f2c94c;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(29, 43, 58, 0.08), 0 10px 24px rgba(29, 43, 58, 0.12);
  --font: 'Avenir Next', 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, #fff4d6 100%) fixed;
  font-size: 18px;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}
textarea, input { -webkit-user-select: text; user-select: text; font-family: var(--font); }
button { font-family: var(--font); color: inherit; cursor: pointer; touch-action: manipulation; border: none; background: none; font-size: inherit; }
button:disabled { opacity: 0.45; cursor: default; }
h1, h2, h3, h4 { margin: 0.3em 0; line-height: 1.2; font-weight: 800; }
p { line-height: 1.45; }
.hidden { display: none !important; }
.small { font-size: 0.85rem; color: var(--muted); }
#app { min-height: 100vh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.screen { max-width: 1180px; margin: 0 auto; padding: 14px 16px 40px; animation: fadein 0.35s ease; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1000; width: 100vw; height: 100vh; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  background: #fff; border-radius: 16px; padding: 14px 22px; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 4px 0 #c9d6e3; transition: transform 0.08s; min-height: 54px;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9d6e3; }
.btn.primary { background: linear-gradient(180deg, #ffb347, #ff8c1a); color: #fff; box-shadow: 0 4px 0 #c76a0c; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.btn.primary:active { box-shadow: 0 1px 0 #c76a0c; }
.btn.ghost { background: rgba(255, 255, 255, 0.75); }
.btn.danger { background: #ffe1e1; color: #b42318; box-shadow: 0 4px 0 #f3b4b4; }
.btn.big { font-size: 1.35rem; padding: 18px 34px; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; background: #fff; font-size: 1.4rem; font-weight: 800; box-shadow: 0 3px 0 #c9d6e3; flex: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; margin: 16px 0 6px; }

/* ---------- Kopfleiste ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.avatar-btn { display: flex; align-items: center; gap: 8px; background: #fff; padding: 6px 16px 6px 6px; border-radius: 40px; box-shadow: var(--shadow); font-weight: 800; }
.avatar-btn .av { font-size: 2rem; width: 48px; height: 48px; display: grid; place-items: center; background: #fff4d6; border-radius: 50%; }
.tb-stats { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill { background: #fff; border-radius: 30px; padding: 10px 16px; font-weight: 800; box-shadow: 0 3px 0 #c9d6e3; }
.net { font-size: 0.8rem; font-weight: 700; padding: 6px 10px; border-radius: 20px; background: rgba(255,255,255,.6); }
.net.on { background: #d9f7e5; color: #11743b; }

/* ---------- Karte ---------- */
.map-wrap { position: relative; }
.map {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 62vh; min-height: 340px; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, #fff6b0 0 6%, transparent 7%),
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.7) 0 6%, transparent 7%),
    radial-gradient(ellipse at 26% 32%, rgba(255,255,255,.7) 0 5%, transparent 6%),
    radial-gradient(ellipse at 70% 75%, rgba(255,255,255,.55) 0 7%, transparent 8%),
    linear-gradient(160deg, #4fb3e8 0%, #7fd1f5 40%, #9be3c7 75%, #f9e29c 100%);
  box-shadow: var(--shadow);
}
.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.station-pin {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #fff; border-radius: 22px; padding: 10px 12px 8px; min-width: 112px; box-shadow: 0 5px 0 var(--c), 0 10px 18px rgba(0,0,0,.18);
  animation: bob 3s ease-in-out infinite; border: 3px solid var(--c);
}
.station-pin:nth-child(2n) { animation-delay: -1.2s; }
.station-pin.locked { filter: grayscale(0.9); opacity: 0.8; animation: none; }
.station-pin .pin-emoji { font-size: 2.2rem; line-height: 1; }
.station-pin .pin-name { font-weight: 800; font-size: 0.95rem; }
.station-pin .pin-thema { font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.station-pin .pin-ring { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--green) calc(var(--p) * 1%), #e5edf4 0); }
.station-pin .pin-stamp { position: absolute; top: -10px; right: -10px; font-size: 1.4rem; }
.station-pin.stamped { border-style: double; }
.plane-on-map { position: absolute; font-size: 2.4rem; transform: translate(-30%, -140%) rotate(-12deg); pointer-events: none; animation: fly 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
@keyframes bob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -56%); } }
@keyframes fly { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }

.dock { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.dock-btn { background: #fff; border-radius: 20px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: var(--shadow); }
.dock-btn .db-e { font-size: 2rem; }
.dock-btn small { color: var(--muted); font-size: 0.78rem; }
.dock-btn.dim { opacity: 0.6; }
.missions { background: rgba(255,255,255,.85); border-radius: 20px; padding: 12px 16px; margin-top: 14px; box-shadow: var(--shadow); }
.mission { display: grid; grid-template-columns: 28px 1fr 120px 64px; align-items: center; gap: 8px; padding: 4px 0; font-weight: 600; }
.mission.done .mt { text-decoration: line-through; color: var(--muted); }
.mbar { height: 10px; border-radius: 10px; background: #e5edf4; overflow: hidden; }
.mbar > div { height: 100%; background: linear-gradient(90deg, #6fcf97, #27ae60); border-radius: 10px; transition: width 0.6s; }
.mr { font-weight: 800; font-size: 0.9rem; }

/* ---------- Station ---------- */
.station-head { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border-top: 8px solid var(--c); }
.station-head .sh-emoji { font-size: 3.6rem; }
.station-head h2 { color: var(--c); margin: 0; }
.station-head p { margin: 4px 0 0; }
.station-head > div:nth-child(3) { flex: 1; }
.station-skills { background: rgba(255,255,255,.85); border-radius: var(--radius); padding: 10px 16px; margin: 12px 0; }
.skillbar { display: grid; grid-template-columns: 30px minmax(110px, 1.2fr) 2fr 52px 30px; align-items: center; gap: 8px; padding: 5px 0; font-weight: 700; font-size: 0.95rem; }
.skillbar .sb-e { font-size: 1.3rem; }
.sb-track { position: relative; height: 16px; background: #e5edf4; border-radius: 10px; overflow: hidden; }
.sb-fill { height: 100%; border-radius: 10px; transition: width 0.8s cubic-bezier(.2,.9,.3,1.2); }
.sb-fill.l1, .sb-fill.l2 { background: linear-gradient(90deg, #ffb347, #ff8c1a); }
.sb-fill.l3 { background: linear-gradient(90deg, #f2c94c, #e2b007); }
.sb-fill.l4 { background: linear-gradient(90deg, #6fcf97, #27ae60); }
.sb-fill.l5 { background: linear-gradient(90deg, #56ccf2, #2f80ed); }
.sb-goal { position: absolute; left: 90%; top: 0; bottom: 0; width: 2px; background: rgba(29,43,58,.35); }
.sb-val { text-align: right; font-weight: 800; }
.skillbar.big { font-size: 1rem; }
.trend { grid-column: 2 / -1; font-size: 0.8rem; font-weight: 800; margin-top: -4px; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }

.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 12px 0; }
.act-card { background: #fff; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; box-shadow: var(--shadow); transition: transform 0.12s; }
.act-card:active { transform: scale(0.97); }
.act-card .act-emoji { font-size: 3.2rem; animation: wiggle 4s ease-in-out infinite; }
.act-card b { font-size: 1.15rem; }
.act-card small { color: var(--muted); }
.act-stars span { color: #d6dee6; font-size: 1.6rem; }
.act-stars span.on { color: #f5b301; text-shadow: 0 2px 0 #c58f00; }
@keyframes wiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-8deg); } 96% { transform: rotate(8deg); } }
.pass-btn { width: 100%; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; align-items: center; text-align: left; background: linear-gradient(135deg, #2f3c7e, #4b5cc4); color: #fff; border-radius: var(--radius); padding: 14px 20px; box-shadow: 0 5px 0 #1e275a; margin: 6px 0 12px; }
.pass-btn span { grid-row: span 2; font-size: 2.6rem; }
.pass-btn b { font-size: 1.25rem; }
.pass-btn small { opacity: 0.85; }
.pass-btn.done { background: linear-gradient(135deg, #1e8449, #27ae60); box-shadow: 0 5px 0 #145a32; }

/* ---------- Runde ---------- */
.round-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.round-title { font-weight: 800; font-size: 1.2rem; background: #fff; padding: 10px 18px; border-radius: 30px; box-shadow: 0 3px 0 #c9d6e3; }
.pdots { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.pd { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.7); border: 2px solid #fff; }
.pd.cur { background: var(--yellow); transform: scale(1.25); }
.pd.ok { background: var(--green); }
.pd.no { background: var(--red); }
.combo { font-weight: 800; color: #d35400; min-width: 10px; }
.combo.bump, .money.bump { animation: bump 0.4s; }
.money { background: #fff; border-radius: 30px; padding: 8px 14px; font-weight: 800; box-shadow: 0 3px 0 #c9d6e3; }
@keyframes bump { 50% { transform: scale(1.3); } }
.stage { position: relative; }
.task-card { background: #fff; border-radius: 28px; padding: 20px; box-shadow: var(--shadow); min-height: 300px; }
.task-card.enter { animation: pop-in 0.35s cubic-bezier(.2,.9,.3,1.3); }
.task-card.shake { animation: shake 0.4s; }
@keyframes pop-in { from { transform: scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.prompt { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; font-size: 1.25rem; font-weight: 700; margin: 6px 0 16px; line-height: 1.45; }
.speak { font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; background: #eaf6ff; flex: none; box-shadow: 0 3px 0 #b8dcf5; }
.speak:active { transform: scale(0.92); }
.word { color: var(--blue); font-size: 1.15em; letter-spacing: 0.02em; }
.big-letter { font-size: 3.4rem; color: var(--purple); display: inline-block; padding: 0 12px; background: #f6efff; border-radius: 16px; margin: 0 6px; }
.options { display: grid; gap: 12px; }
.options.grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.options.list { grid-template-columns: 1fr; }
.opt { background: #f4f8fc; border: 3px solid #dfe9f3; border-radius: 18px; padding: 16px; font-size: 1.15rem; font-weight: 700; min-height: 64px; transition: transform 0.1s, background 0.2s; text-align: center; }
.options.list .opt { text-align: left; }
.opt:active { transform: scale(0.97); }
.opt.right { background: #d9f7e5; border-color: var(--green); animation: bump 0.4s; }
.opt.wrong { background: #ffe1e1; border-color: var(--red); animation: shake 0.4s; }
.opt.locked { pointer-events: none; }
.visual { display: flex; justify-content: center; margin-bottom: 8px; }
.tier { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tier-emoji { font-size: 5rem; animation: bob2 2s ease-in-out infinite; }
.tier-emoji.small { font-size: 2.6rem; }
.tier-falsch { font-size: 1.6rem; font-weight: 800; color: var(--red); text-decoration: wavy underline; }
@keyframes bob2 { 50% { transform: translateY(-6px) rotate(-4deg); } }
.gapword { font-size: 2.6rem; font-weight: 800; letter-spacing: 0.04em; display: flex; align-items: center; gap: 12px; }
.gap { display: inline-block; min-width: 1.4em; border-bottom: 5px solid var(--orange); color: var(--orange); text-align: center; }
.hat-sentence { font-size: 1.4rem; background: #fff8e1; padding: 14px 20px; border-radius: 16px; font-weight: 700; }
.hat-sentence mark { background: #ffd0d0; padding: 0 6px; border-radius: 6px; }
.rocket-build { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.rocket-build .part { background: #fff0f0; border: 3px dashed var(--red); border-radius: 18px; padding: 10px 18px; font-weight: 800; font-size: 1.2rem; display: flex; flex-direction: column; align-items: center; }
.rocket-build .part span { font-size: 3rem; }
.plus { font-size: 2.4rem; font-weight: 800; color: var(--muted); }
.rocket-fly { position: absolute; left: 50%; bottom: 20px; font-size: 4rem; animation: launch 1.8s ease-in forwards; pointer-events: none; z-index: 5; }
@keyframes launch { 0% { transform: translate(-50%, 0) rotate(-45deg); } 20% { transform: translate(-50%, 6px) rotate(-45deg); } 100% { transform: translate(30%, -900px) rotate(-45deg); opacity: 0.8; } }
.icecream { display: flex; align-items: center; gap: 10px; }
.icecream .cone { background: linear-gradient(180deg, #f6d08a, #d9a24a); padding: 14px 20px; border-radius: 12px 12px 40px 40px; font-weight: 800; font-size: 1.4rem; color: #5a3b0a; }
.icecream .scoop { width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ff9ff3 45%, #f368e0); display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; animation: bob2 2s infinite; }
.alone { font-size: 2.6rem; font-weight: 800; background: #f4f8fc; padding: 10px 30px; border-radius: 20px; }

/* Malen (Wort-Detektiv) */
.brushes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.brush { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 30px; background: #f4f8fc; border: 3px solid transparent; font-weight: 800; }
.brush .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.brush.on { border-color: var(--c); background: #fff; transform: scale(1.08); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile { width: 58px; height: 70px; border-radius: 14px; background: #f4f8fc; border: 3px solid #dfe9f3; font-size: 2.1rem; font-weight: 800; transition: background 0.2s, transform 0.1s; }
.tile.filled { color: #fff; border-color: rgba(0,0,0,.08); text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.tile:active { transform: scale(0.92); }
.tile.bad { outline: 4px solid var(--red); animation: shake 0.4s; }
.tile.good { outline: 3px solid #fff; }

/* Silben */
.clap-area { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.drum { width: 170px; height: 170px; border-radius: 50%; font-size: 4.5rem; background: radial-gradient(circle at 40% 35%, #fff3c4, #ffc94d 60%, #e8a300); box-shadow: 0 8px 0 #b37d00, 0 14px 24px rgba(0,0,0,.2); }
.drum.hit { animation: hit 0.18s; }
@keyframes hit { 50% { transform: scale(0.9) translateY(6px); box-shadow: 0 2px 0 #b37d00; } }
.clap-count { font-size: 4rem; font-weight: 800; color: var(--orange); text-align: center; }
.clap-dots { display: flex; gap: 4px; flex-wrap: wrap; max-width: 260px; justify-content: center; font-size: 1.6rem; }
.silben-show { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.syl { padding: 10px 18px; border-radius: 16px; background: #f4f8fc; font-size: 1.8rem; font-weight: 800; transition: all 0.3s; }
.syl.lit { background: linear-gradient(180deg, #c084fc, #9b51e0); color: #fff; transform: translateY(-6px); box-shadow: 0 6px 14px rgba(155, 81, 224, .4); }
.cutword { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 2.6rem; font-weight: 800; margin: 20px 0; }
.cutl { padding: 0 1px; }
.gap-btn { width: 30px; height: 70px; border-radius: 10px; position: relative; margin: 0 1px; }
.gap-btn::after { content: ''; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 3px; transform: translateX(-50%); background: #e3ebf3; border-radius: 3px; }
.gap-btn.on::after { background: var(--purple); width: 6px; top: 0; bottom: 0; box-shadow: 0 0 12px #c084fc; }
.gap-btn.should::after { background: var(--green); width: 6px; top: 0; bottom: 0; }
.gap-btn.bad::after { background: var(--red); width: 6px; top: 0; bottom: 0; }

/* Bausteine */
.morphs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.morph { min-width: 90px; padding: 14px 18px; border-radius: 18px; background: #f4f8fc; border: 3px solid #dfe9f3; display: flex; flex-direction: column; align-items: center; font-size: 1.8rem; font-weight: 800; transition: background 0.2s; }
.morph small { font-size: 0.8rem; font-weight: 700; opacity: 0.85; }
.morph.filled { color: #fff; border-color: transparent; }
.morph.good { outline: 4px solid var(--green); }
.morph.bad { outline: 4px solid var(--red); animation: shake 0.4s; color: #fff; }
.morph.target { box-shadow: 0 0 0 4px var(--yellow); }
.legend { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.legend span { color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 20px; font-size: 0.9rem; }
.info { text-align: center; font-weight: 700; margin: 8px 0; min-height: 1.4em; }

/* Reihenfolge */
.cards { display: grid; gap: 8px; }
.card { background: #f4f8fc; border: 3px dashed #c9d6e3; border-radius: 14px; padding: 12px 16px; text-align: left; font-size: 1.05rem; font-weight: 600; }
.ordered { padding-left: 28px; margin: 0 0 14px; min-height: 40px; }
.ordered li { background: #eaf6ff; border-radius: 14px; padding: 10px 14px; margin: 6px 0; font-weight: 600; }
.ordered li.good { background: #d9f7e5; }
.ordered li.bad { background: #ffe1e1; }
.ordered .tag { display: block; font-size: 0.75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }

/* Wer ist es */
.desc-card { background: #fffbea; border-left: 6px solid var(--yellow); border-radius: 14px; padding: 14px 18px; font-size: 1.12rem; line-height: 1.55; margin-bottom: 14px; -webkit-user-select: text; user-select: text; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.who { background: linear-gradient(180deg, #eaf6ff, #fff); border-radius: 20px; border: 4px solid transparent; padding: 6px; display: flex; justify-content: center; }
.who svg { width: 100%; height: auto; max-height: 260px; }
.who.right { border-color: var(--green); background: #d9f7e5; }
.who.wrong { border-color: var(--red); animation: shake 0.4s; }
.truth { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.truth .fig { background: linear-gradient(180deg, #eaf6ff, #fff); border-radius: 22px; padding: 6px; }
.statement { font-size: 1.4rem; font-weight: 800; max-width: 420px; display: flex; align-items: center; gap: 10px; background: #fffbea; padding: 16px; border-radius: 18px; }
.answer { flex: 1; min-width: 260px; font-size: 1.6rem; padding: 14px 18px; border-radius: 16px; border: 3px solid #dfe9f3; }
.answer.right { border-color: var(--green); background: #d9f7e5; }
.answer.wrong { border-color: var(--red); background: #ffe1e1; }

/* Wort-Labor */
.labor-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin-bottom: 10px; }
.labor-table { border: 3px solid #f3b4b4; border-radius: 18px; overflow: hidden; }
.lrow { display: grid; grid-template-columns: 210px 1fr; border-bottom: 2px solid #f8d6d6; }
.lrow:last-child { border-bottom: none; }
.lhead { padding: 12px; font-weight: 800; background: #fff6f6; display: flex; align-items: center; font-size: 0.98rem; }
.lctrl { padding: 8px; }
.lres { grid-column: 1 / -1; padding: 0 12px; font-weight: 800; font-size: 0.95rem; }
.lres:empty { display: none; }
.lrow.good .lres { color: var(--green); padding: 6px 12px; }
.lrow.bad { background: #fff3f3; }
.lrow.bad .lres { color: #b42318; padding: 6px 12px; }
.lrow.good { background: #f2fdf6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; background: #f4f8fc; border: 2px solid #dfe9f3; font-weight: 800; font-size: 1.05rem; }
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip.none.on { background: var(--muted); border-color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepval { font-size: 1.8rem; min-width: 40px; text-align: center; }

/* Feedback */
.feedback { position: sticky; bottom: 10px; margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 22px; box-shadow: var(--shadow); animation: slide-up 0.3s cubic-bezier(.2,.9,.3,1.3); z-index: 10; }
.feedback.ok { background: #d9f7e5; border: 3px solid var(--green); }
.feedback.no { background: #fff4d6; border: 3px solid var(--orange); }
.fb-icon { font-size: 2.6rem; }
.fb-text { flex: 1; font-size: 1.05rem; }
.fb-text b { font-size: 1.3rem; }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 120px); background: #1d2b3a; color: #fff; padding: 14px 22px; border-radius: 18px; font-weight: 700; z-index: 900; max-width: min(90vw, 620px); text-align: center; transition: transform 0.35s cubic-bezier(.2,.9,.3,1.3); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.show { transform: translate(-50%, 0); }

/* Auswertung */
.summary { background: #fff; border-radius: 28px; padding: 24px; box-shadow: var(--shadow); text-align: center; animation: pop-in 0.4s; }
.stars { font-size: 4.2rem; display: flex; justify-content: center; gap: 10px; }
.star { color: #e3ebf3; transform: scale(0.6); transition: transform 0.4s cubic-bezier(.2,.9,.3,1.6); }
.star.pop { transform: scale(1); }
.star.on.pop { color: #f5b301; text-shadow: 0 4px 0 #c58f00; }
.sumline { font-size: 1.2rem; font-weight: 700; }
.money-earned { color: #11743b; }
.changes { max-width: 720px; margin: 10px auto; text-align: left; }
.change { display: grid; grid-template-columns: minmax(120px, 1.3fr) 2fr 100px 62px 30px; align-items: center; gap: 8px; padding: 6px 0; font-weight: 700; font-size: 0.95rem; }
.cbar { position: relative; height: 16px; background: #e5edf4; border-radius: 10px; overflow: hidden; }
.cfill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; }
.cfill.from { background: #b8c7d6; z-index: 1; }
.cfill.to { background: linear-gradient(90deg, #6fcf97, #27ae60); animation: grow 1.2s ease; }
@keyframes grow { from { width: 0 !important; } }
.cdiff { font-weight: 800; }
.cdiff.up { color: var(--green); }
.cdiff.down { color: var(--red); }
.mistakes { text-align: left; max-width: 720px; margin: 10px auto; background: #fff8e1; border-radius: 16px; padding: 10px 16px; }
.mistakes summary { font-weight: 800; }

/* Arcade */
.arcade { position: relative; height: 56vh; min-height: 360px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.arcade.rain { background: linear-gradient(180deg, #1b2a6b 0%, #3b4fb8 60%, #7f8ff0 100%); }
.arcade.swamp { background: linear-gradient(180deg, #9be3c7 0%, #4caf7d 55%, #2e7d5b 100%); }
.city-decor .skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background:
  linear-gradient(90deg, transparent 0 4%, #111a40 4% 12%, transparent 12% 15%, #18245a 15% 22%, transparent 22% 24%, #0d1433 24% 33%, transparent 33% 36%, #18245a 36% 44%, transparent 44% 46%, #111a40 46% 58%, transparent 58% 61%, #0d1433 61% 70%, transparent 70% 72%, #18245a 72% 83%, transparent 83% 86%, #111a40 86% 96%, transparent 96%);
  -webkit-mask: linear-gradient(180deg, transparent 0 0%, #000 0); }
.city-decor .skyline::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#ffe58a 1.4px, transparent 1.6px); background-size: 14px 18px; opacity: 0.6; }
.swamp-decor .gator { position: absolute; left: 1%; top: 36%; font-size: 5rem; transform: scaleX(-1); transition: transform 0.2s; }
.swamp-decor .gator.chomp { animation: chomp 0.5s; }
@keyframes chomp { 30% { transform: scaleX(-1.3) scaleY(1.3); } 60% { transform: scaleX(-0.9); } }
.swamp-decor .reeds { position: absolute; bottom: 4px; left: 0; right: 0; font-size: 2.4rem; letter-spacing: 1.6rem; white-space: nowrap; opacity: 0.8; }
.arcade-score { position: absolute; right: 18px; top: 12px; font-size: 2.4rem; font-weight: 800; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.falling { position: absolute; left: 50%; top: 0; transform: translateX(-50%); background: #fff8c6; color: #1d2b3a; font-size: 2.6rem; font-weight: 800; padding: 10px 22px; border-radius: 18px; box-shadow: 0 6px 0 #d4b200, 0 10px 18px rgba(0,0,0,.3); white-space: nowrap; }
.swamp .falling { font-size: 1.6rem; background: #fff; box-shadow: 0 6px 0 #8d6e63; transform: translate(-50%, -50%); }
.swamp .falling::before { content: '🪵 '; }
.falling.caught { animation: caught 0.45s forwards; }
.falling.missed { animation: missed 1.6s forwards; background: #ffd0d0; }
@keyframes caught { to { transform: translateX(-50%) scale(1.6); opacity: 0; } }
@keyframes missed { 0% { filter: none; } 20% { transform: translateX(-50%) rotate(-8deg); } 40% { transform: translateX(-50%) rotate(8deg); } 100% { opacity: 0; } }
.bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.bin { background: var(--c); color: #fff; border-radius: 20px; min-height: 86px; font-size: 1.25rem; font-weight: 800; box-shadow: 0 6px 0 rgba(0,0,0,.25); text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.bin:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }

/* Willkommen */
.welcome { background: #fff; border-radius: 28px; padding: 26px; box-shadow: var(--shadow); text-align: center; max-width: 760px; margin: 20px auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.welcome h1 { font-size: 2.2rem; color: #ff8c1a; }
.lead { font-size: 1.15rem; }
.plane-anim { font-size: 4rem; animation: fly2 3s ease-in-out infinite; }
@keyframes fly2 { 0%, 100% { transform: translateX(-30px) rotate(-8deg); } 50% { transform: translateX(30px) rotate(6deg) translateY(-10px); } }
.pico { display: flex; align-items: center; gap: 10px; font-size: 3rem; }
.bubble { font-size: 1.05rem; background: #eaf6ff; padding: 12px 16px; border-radius: 18px 18px 18px 4px; font-weight: 700; }
.name-input { font-size: 1.5rem; padding: 14px 18px; border-radius: 16px; border: 3px solid #dfe9f3; text-align: center; width: min(100%, 360px); }
.name-input.small { width: 90px; font-size: 1.1rem; padding: 8px; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.av-pick { font-size: 2.2rem; width: 62px; height: 62px; border-radius: 50%; background: #f4f8fc; border: 3px solid transparent; }
.av-pick.on { border-color: var(--orange); background: #fff4d6; transform: scale(1.1); }
.reward-goal { background: #fff4d6; border-radius: 18px; padding: 12px 18px; width: 100%; max-width: 560px; margin: 10px auto; text-align: center; }
.reward-goal .mbar { margin: 8px 0 4px; }

/* Stempel */
.stamp-anim { margin: 14px auto; width: 210px; height: 210px; border-radius: 50%; border: 8px double var(--c); color: var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-14deg); animation: stamp 0.6s 0.8s cubic-bezier(.2,.9,.3,1.4) both; background: rgba(255,255,255,.9); }
.stamp-anim span { font-size: 3.6rem; }
.stamp-anim b { font-size: 1.2rem; letter-spacing: 0.1em; }
@keyframes stamp { from { transform: scale(3) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-14deg); opacity: 1; } }
.pass-fail { background: #fff8e1; border-radius: 16px; padding: 10px 16px; }

/* Diagramme */
.chart { max-width: 640px; margin: 10px auto; }
.line-chart { width: 100%; height: auto; }
.line-chart .ln { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .area { fill: rgba(47, 128, 237, 0.15); }
.line-chart .pt { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.line-chart .pt-t { font-size: 10px; font-weight: 800; fill: var(--ink); font-family: var(--font); }
.line-chart .goal { stroke: var(--green); stroke-dasharray: 4 4; stroke-width: 1.5; }
.line-chart .goal-t { font-size: 9px; fill: var(--green); font-weight: 800; font-family: var(--font); }

/* Schreib-Studio */
.studio-menu { background: rgba(255,255,255,.85); border-radius: var(--radius); padding: 16px; }
.studio { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
.studio-main, .studio-side { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.studio-side { align-self: start; position: sticky; top: 10px; }
.write-task { display: flex; gap: 14px; align-items: center; background: #f4f8fc; border-radius: 18px; padding: 10px; margin-bottom: 10px; }
.write-task .fig { background: linear-gradient(180deg, #eaf6ff, #fff); border-radius: 18px; flex: none; }
.idea-dice { font-size: 4rem; }
.idea { font-weight: 800; color: var(--purple); }
.plan { margin: 8px 0; }
.plan summary { font-weight: 800; cursor: pointer; padding: 6px 0; }
.notes { width: 100%; min-height: 90px; border-radius: 14px; border: 2px dashed #c9d6e3; padding: 10px; font-size: 1rem; }
.mic.rec { background: #ffe1e1; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(235, 87, 87, .25); } }
.wbar { height: 14px; background: #e5edf4; border-radius: 10px; overflow: hidden; margin-top: 8px; }
.wbar-fill { height: 100%; background: linear-gradient(90deg, #ffb347, #ff8c1a); transition: width 0.4s; }
.wbar-fill.done { background: linear-gradient(90deg, #6fcf97, #27ae60); }
.wstats { display: flex; justify-content: space-between; font-weight: 800; margin: 6px 0; }
.hatlbl.warn { color: var(--red); animation: bump 0.4s; }
.writing { width: 100%; min-height: 420px; font-size: 1.25rem; line-height: 2.1rem; padding: 6px 14px; border-radius: 16px; border: 3px solid #dfe9f3;
  background: repeating-linear-gradient(180deg, #fff 0 calc(2.1rem - 1px), #cfe3f7 calc(2.1rem - 1px) 2.1rem); background-attachment: local; resize: vertical; }
.writing:focus { outline: none; border-color: var(--blue); }
.lupe { background: #fffbea; border-radius: 16px; padding: 12px; margin-top: 10px; }
.lupe-text { line-height: 1.8; font-size: 1.1rem; -webkit-user-select: text; user-select: text; }
.hl-hat { background: #ffc9c9; border-radius: 4px; padding: 0 3px; }
.hl-past { background: #ffe29a; border-radius: 4px; padding: 0 3px; }
.checklist { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.checklist li { padding: 4px 0; color: var(--muted); }
.checklist li.ok { color: #11743b; font-weight: 700; }
.checklist.big li { font-size: 1rem; color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--line); }
.checklist .tip { font-size: 0.9rem; color: #9a5b00; margin-left: 28px; }
.wordhelp p { font-size: 0.9rem; color: var(--muted); }
.timer { font-weight: 800; font-size: 1.3rem; background: #fff; padding: 8px 16px; border-radius: 20px; }
.timer.warn { color: var(--red); animation: bump 1s infinite; }
.result-wrap { display: flex; flex-direction: column; gap: 14px; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.res-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.sample-row { display: flex; gap: 12px; align-items: center; }
.ai-wait { background: #f4f8fc; border-radius: 14px; padding: 14px; font-weight: 700; }
.fb-stars { font-size: 2rem; color: #f5b301; }
.fb-lob { font-size: 1.1rem; font-weight: 700; }
.fb-aufbau { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 700; margin: 8px 0; }
.fb-aufbau span.ok { color: #11743b; }
.fehler { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.fehler td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fehler .falsch { color: #b42318; text-decoration: line-through; font-weight: 700; }
.fehler .richtig { color: #11743b; font-weight: 800; }
.fehler .erkl { color: var(--muted); font-size: 0.88rem; }
.better .orig { color: var(--muted); text-decoration: line-through; }
.better .new { font-weight: 800; color: #11743b; }
.texts { display: grid; gap: 8px; }
.text-item { background: #fff; border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 80px; gap: 8px; text-align: left; font-weight: 700; box-shadow: var(--shadow); }
.empty { text-align: center; background: #fff; border-radius: 16px; padding: 20px; }

/* Coach */
.coach { background: rgba(255,255,255,.9); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.coach-intro { text-align: center; }
.big-emoji { font-size: 5rem; }
.coach-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.coach-mode { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.coach-mode .cm-e { font-size: 3rem; }
.coach-live { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.coach-left { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.coach-avatar { font-size: 6rem; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, #fff, #cfeeff); display: grid; place-items: center; transition: box-shadow 0.2s; }
.coach-avatar.speaking { animation: speak 0.8s infinite; }
@keyframes speak { 50% { box-shadow: 0 0 0 16px rgba(47,128,237,.2), 0 0 0 32px rgba(47,128,237,.1); transform: scale(1.04); } }
.coach-status { font-weight: 800; text-align: center; }
.coach-coins { font-weight: 800; font-size: 1.3rem; }
.coach-word { font-size: 2.6rem; font-weight: 800; color: var(--blue); background: #fff; padding: 10px 24px; border-radius: 18px; box-shadow: var(--shadow); animation: pop-in 0.3s; }
.coach-log { background: #f4f8fc; border-radius: 18px; padding: 12px; height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.cl { padding: 10px 14px; border-radius: 16px; max-width: 85%; font-size: 1.05rem; line-height: 1.4; }
.cl.ai { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.cl.me { background: #d9f7e5; align-self: flex-end; border-bottom-right-radius: 4px; }
.coach-offline { text-align: center; }
.coach-tip { font-size: 0.9rem; color: var(--muted); margin: 8px 4px 0; }
.error { color: #b42318; font-weight: 700; }

/* Postkarten */
.modal { position: fixed; inset: 0; background: rgba(15, 30, 50, 0.55); display: grid; place-items: center; z-index: 800; padding: 16px; animation: fadein 0.2s; }
.postcard { background: #fffdf5; border-radius: 24px; padding: 22px 26px; max-width: 640px; width: 100%; position: relative; border: 6px solid var(--c); box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: pop-in 0.35s; max-height: 90vh; overflow-y: auto; }
.postcard ul { padding-left: 20px; }
.postcard li { margin: 8px 0; font-size: 1.08rem; line-height: 1.45; }
.pc-stamp { position: absolute; right: 16px; top: 14px; font-size: 2.6rem; border: 3px dashed var(--c); border-radius: 10px; padding: 4px 8px; transform: rotate(8deg); }
.postcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pc-mini { background: #fffdf5; border: 5px solid var(--c); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.pc-mini span { font-size: 3rem; }
.pc-mini.locked { filter: grayscale(1); opacity: 0.6; }

/* Reisepass */
.passport { background: linear-gradient(135deg, #1f2f6b, #33449a); border-radius: 26px; padding: 18px; color: #fff; box-shadow: var(--shadow); }
.pp-cover { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pp-av { font-size: 3rem; background: #fff; border-radius: 50%; width: 76px; height: 76px; display: grid; place-items: center; }
.pp-cover b { font-size: 1.4rem; display: block; }
.pp-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; background: #fdf8ec; border-radius: 18px; padding: 16px; }
.pp-slot { height: 170px; border-radius: 14px; border: 2px dashed #d7cbb0; display: grid; place-items: center; color: #b6a888; }
.pp-empty { display: flex; flex-direction: column; align-items: center; opacity: 0.6; filter: grayscale(1); }
.pp-empty span { font-size: 2.4rem; }
.pp-stamp { color: var(--c); border: 5px double var(--c); border-radius: 50%; width: 150px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-12deg); text-align: center; }
.pp-stamp span { font-size: 2.6rem; }
.pp-stamp b { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.pp-stamp small { font-size: 0.7rem; }
.passport .reward-goal { color: var(--ink); }

/* Shop */
.shelf-title { font-weight: 800; margin: 4px 0; }
.shelf { background: linear-gradient(180deg, #fff 70%, #e7c48f 70%, #c99a5a 100%); border-radius: 18px; padding: 12px; min-height: 90px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; margin-bottom: 14px; box-shadow: var(--shadow); }
.shelf-item { font-size: 2.6rem; animation: bob2 3s ease-in-out infinite; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shop-item { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow); }
.shop-item .si-e { font-size: 2.8rem; }
.shop-item.owned { background: #d9f7e5; }
.shop-item.locked { opacity: 0.55; }

/* Fortschritt */
.progress, .parent { display: flex; flex-direction: column; gap: 4px; }
.barometer { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; margin-bottom: 12px; }
.bm-title { font-weight: 800; font-size: 1.3rem; }
.bm-scale { display: flex; justify-content: space-between; max-width: 520px; margin: 10px auto 4px; }
.bm-g { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; background: #f4f8fc; color: var(--muted); }
.bm-g.on { background: var(--orange); color: #fff; transform: scale(1.2); box-shadow: 0 4px 12px rgba(242,153,74,.5); }
.bm-track { position: relative; height: 22px; max-width: 520px; margin: 8px auto; background: linear-gradient(90deg, #ffd0d0, #ffe29a, #d9f7e5, #bfe3ff); border-radius: 12px; overflow: visible; }
.bm-fill { height: 100%; border-radius: 12px; background: linear-gradient(90deg, #ff8c1a, #27ae60); opacity: 0.85; transition: width 1s; }
.bm-mark { position: absolute; top: -24px; transform: translateX(-50%); font-size: 0.8rem; font-weight: 800; color: var(--green); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat { background: #fff; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow); }
.stat span { font-size: 1.6rem; }
.stat b { font-size: 1.5rem; }
.stat small { color: var(--muted); }
.legend-lv { font-size: 0.85rem; color: var(--muted); text-align: center; padding: 8px; }
.days { width: 100%; border-collapse: collapse; }
.days th, .days td { padding: 6px; border-bottom: 1px solid var(--line); text-align: center; }
.ptext { border-bottom: 1px solid var(--line); padding: 8px 0; }
.ptext summary { font-weight: 700; cursor: pointer; }
.ptext-body { white-space: pre-wrap; background: #f4f8fc; padding: 10px; border-radius: 12px; -webkit-user-select: text; user-select: text; }
.eltern { background: #fff4d6; padding: 10px; border-radius: 12px; }
.toggle { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 700; }
.toggle input { width: 26px; height: 26px; }
.person { display: block; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .studio-side { position: static; }
  .res-grid { grid-template-columns: 1fr; }
  .coach-live { grid-template-columns: 1fr; }
  .coach-log { height: 36vh; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .lrow { grid-template-columns: 1fr; }
  .lhead { padding: 8px 12px; }
  .station-pin { min-width: 84px; padding: 6px 8px; }
  .station-pin .pin-emoji { font-size: 1.6rem; }
  .station-pin .pin-thema { display: none; }
  .map { aspect-ratio: 3 / 4; max-height: none; }
  .change { grid-template-columns: 1fr 1fr 74px 50px 24px; font-size: 0.82rem; }
  .skillbar { grid-template-columns: 26px 1fr 1fr 44px 24px; font-size: 0.85rem; }
  .mission { grid-template-columns: 24px 1fr 70px 56px; font-size: 0.9rem; }
  .text-item { grid-template-columns: 1fr 1fr; }
  .tile { width: 46px; height: 58px; font-size: 1.7rem; }
  .cutword { font-size: 2rem; }
  .gap-btn { width: 22px; height: 56px; }
}
@media (orientation: portrait) and (min-width: 700px) {
  .map { aspect-ratio: 4 / 3; max-height: 52vh; }
}

/* PIN-Login */
.pin-box { background: #fff; border-radius: 28px; padding: 24px; box-shadow: var(--shadow); text-align: center; max-width: 420px; margin: 24px auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pin-box.shake { animation: shake 0.4s; }
.pin-box.ok { animation: bump 0.4s; }
.pin-dots { display: flex; gap: 16px; margin: 6px 0; }
.pin-dots span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #c9d6e3; transition: background 0.15s; }
.pin-dots span.on { background: var(--orange); border-color: var(--orange); }
.pin-msg { margin: 0; min-height: 1.4em; font-weight: 700; color: var(--muted); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; margin-top: 6px; }
.pin-key { height: 76px; border-radius: 22px; background: #f4f8fc; font-size: 2rem; font-weight: 800; box-shadow: 0 4px 0 #c9d6e3; }
.pin-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9d6e3; }

/* Dollar-Ausgleich */
.bonus-banner { width: 100%; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; align-items: center; text-align: left; background: linear-gradient(135deg, #ffd166, #ff9f43); color: #4a2a00; border-radius: var(--radius); padding: 12px 18px; box-shadow: 0 5px 0 #c76a0c; margin-bottom: 12px; animation: glow 2.4s ease-in-out infinite; }
.bonus-banner span { grid-row: span 2; font-size: 2.4rem; }
.bonus-banner b { font-size: 1.15rem; }
@keyframes glow { 50% { box-shadow: 0 5px 0 #c76a0c, 0 0 24px rgba(255, 190, 70, .8); } }
.act-card { position: relative; }
.act-pay { position: absolute; top: 10px; right: 10px; font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.act-pay.bonus { background: #ffd166; color: #4a2a00; animation: bump 1.6s infinite; }
.act-pay.low { background: #eef2f6; color: var(--muted); }
.payf { font-weight: 800; padding: 6px 12px; border-radius: 20px; font-size: 0.9rem; }
.payf.up { background: #ffd166; color: #4a2a00; }
.payf.down { background: #eef2f6; color: var(--muted); }
.paynote { font-size: 0.92rem; color: var(--muted); margin-top: 4px; }
.paytip { background: #fff4d6; border-radius: 16px; padding: 10px 14px; margin: 12px auto; max-width: 620px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* Endgame-Shop */
.rank-badge { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #2f3c7e, #6a4bc4); color: #fff; border-radius: var(--radius); padding: 12px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.rank-badge span { font-size: 2.6rem; }
.rank-badge b { font-size: 1.3rem; display: block; }
.rank-badge small { opacity: 0.85; }
.goal-box { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 12px 18px; margin-bottom: 12px; box-shadow: var(--shadow); font-weight: 700; }
.goal-box > div { flex: 1; }
.goal-box .mbar { height: 14px; margin: 6px 0 2px; }
.goal-e { font-size: 2.8rem; animation: bob2 2s ease-in-out infinite; }
.goal-line { font-weight: 800; margin: 8px 0; color: #7a4a00; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.tab { background: rgba(255,255,255,.7); border-radius: 30px; padding: 12px 18px; font-weight: 800; box-shadow: 0 3px 0 #c9d6e3; }
.tab.on { background: #fff; color: var(--orange); box-shadow: 0 3px 0 var(--orange); }
.shop-item.gold, .shelf-item.gold { background: linear-gradient(135deg, #fff6c9, #ffd54a); box-shadow: 0 0 0 3px #e6b800, var(--shadow); }
.shop-item.diamond, .shelf-item.diamond { background: linear-gradient(135deg, #e8fbff, #a8e9ff, #d9c8ff); box-shadow: 0 0 0 3px #7cc8ff, 0 0 18px rgba(124, 200, 255, .8); }
.shelf-item.gold, .shelf-item.diamond { border-radius: 14px; padding: 2px 4px; }
.big-goal { display: block; margin-top: 4px; color: #6a4bc4; font-weight: 800; }

/* ---------- Handy ---------- */
@media (max-width: 700px) {
  .screen { padding: 10px 12px 32px; }
  .map { aspect-ratio: auto; height: 640px; min-height: 0; }
  .station-pin { min-width: 120px; }
  .station-pin .pin-name { font-size: 0.9rem; }
  .plane-on-map { font-size: 1.8rem; }
  .round-head { gap: 8px; }
  .round-title { font-size: 1rem; padding: 8px 14px; flex: 1; text-align: center; }
  .pdots { order: 10; flex: 1 1 100%; gap: 4px; }
  .pd { width: 11px; height: 11px; border-width: 1.5px; }
  .money { padding: 6px 10px; }
  .task-card { padding: 14px; border-radius: 22px; }
  .prompt { font-size: 1.08rem; }
  .big-letter { font-size: 2.6rem; }
  .opt { font-size: 1.02rem; padding: 12px; min-height: 54px; }
  .options.grid { grid-template-columns: repeat(2, 1fr); }
  .arcade { height: 50vh; min-height: 300px; }
  .falling { font-size: 2rem; }
  .bins { grid-template-columns: repeat(2, 1fr); }
  .bin { min-height: 64px; font-size: 1.05rem; }
  .station-head { flex-wrap: wrap; padding: 10px; gap: 8px; }
  .station-head .sh-emoji { font-size: 2.4rem; }
  .station-head > div:nth-child(3) { flex: 1 1 60%; }
  .station-head p { font-size: 0.92rem; }
  .write-task { flex-direction: column; text-align: center; }
  .write-task .fig svg { width: 150px; height: auto; }
  .writing { min-height: 320px; font-size: 1.1rem; }
  .drum { width: 130px; height: 130px; font-size: 3.4rem; }
  .who svg { max-height: 200px; }
  .truth .fig svg { width: 150px; height: auto; }
  .statement { font-size: 1.15rem; }
  .gapword { font-size: 2rem; }
  .tier-emoji { font-size: 4rem; }
  .rocket-build .part span { font-size: 2.2rem; }
  .morph { min-width: 70px; padding: 10px 12px; font-size: 1.4rem; }
  .pin-pad { grid-template-columns: repeat(3, 76px); }
  .coach-avatar { width: 120px; height: 120px; font-size: 4rem; }
  .welcome { padding: 18px; }
  .welcome h1 { font-size: 1.7rem; }
  .stars { font-size: 3.2rem; }
  .summary { padding: 16px; }
  .shop { grid-template-columns: repeat(2, 1fr); }
  .rank-badge b { font-size: 1.1rem; }
  .goal-e { font-size: 2.2rem; }
  .dock { grid-template-columns: repeat(3, 1fr); }
  .dock-btn b { font-size: 0.88rem; }
  .bonus-banner b { font-size: 1rem; }
}

/* =================== Welten =================== */
.world-pill { background: linear-gradient(135deg, #fff, #f1e9ff); }
.welcome.worlds { max-width: 980px; }
.world-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; width: 100%; }
.world-card { border-radius: 26px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #fff; box-shadow: var(--shadow); transition: transform 0.12s; }
.world-card:active { transform: scale(0.97); }
.world-card.deutsch { background: linear-gradient(160deg, #4fb3e8, #7fd1f5 60%, #f9e29c); color: var(--ink); }
.world-card.mathe { background: radial-gradient(circle at 30% 20%, #6a4bc4, #2a1b5e 70%); }
.world-card .wc-e { font-size: 4.2rem; animation: bob2 2.4s ease-in-out infinite; }
.world-card b { font-size: 1.5rem; }
.world-card .wc-prog { width: 100%; }
.world-card .mbar { background: rgba(255,255,255,.4); height: 12px; margin: 6px 0 2px; }
.world-card small { opacity: .9; }

/* =================== Mathe-Band: Bühne & Karte =================== */
.map.mathe {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 230, 120, .35) 0 10%, transparent 30%),
    radial-gradient(ellipse at 80% 0%, rgba(255, 120, 200, .35) 0 10%, transparent 30%),
    radial-gradient(ellipse at 50% 100%, rgba(80, 200, 255, .35) 0 15%, transparent 45%),
    linear-gradient(180deg, #1b1446 0%, #3a2580 55%, #5b3aa8 100%);
}
.map.mathe .route path { stroke: rgba(255, 220, 120, .9); }
.map.mathe .station-pin { background: #1f1747; color: #fff; }
.map.mathe .station-pin .pin-thema { color: #d7ccff; }
.band-stage { background: linear-gradient(180deg, #2a1b5e, #120c2e); border-radius: 22px; padding: 12px 14px 14px; margin-bottom: 12px; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.band-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% -10%, rgba(255,230,120,.35), transparent 40%), radial-gradient(ellipse at 80% -10%, rgba(255,120,200,.35), transparent 40%); pointer-events: none; }
.bs-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; position: relative; }
.bs-floor { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; border-bottom: 6px solid #8d6e63; padding-bottom: 6px; position: relative; }
.bs-member { display: flex; flex-direction: column; align-items: center; min-width: 74px; }
.bs-member span { font-size: 2.2rem; animation: dance 1.2s ease-in-out infinite; }
.bs-member:nth-child(2n) span { animation-delay: -0.6s; }
.bs-member small { font-size: 0.68rem; opacity: 0.9; text-align: center; }
.bs-member.vacant span { animation: none; opacity: 0.35; filter: grayscale(1); }
.bs-member.me span { font-size: 2.6rem; }
.band-stage.big .bs-member span { font-size: 3rem; }
@keyframes dance { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
.band-hint { background: #f1e9ff; border-radius: 16px; padding: 10px 14px; font-weight: 700; text-align: center; }
.stamp-anim.record, .pp-stamp.record { border-radius: 50%; background: radial-gradient(circle, #ffe680 0 18%, #2d2d2d 19% 22%, #ffd700 23% 100%); color: #3a2a00; border-color: #c9a400; }
.passport.mathe { background: linear-gradient(135deg, #2a1b5e, #5b3aa8); }

/* =================== Mathe-Aufgaben =================== */
.mnum { font-size: 1.25em; color: var(--blue); letter-spacing: 0.02em; white-space: nowrap; }
.munits { font-size: 1.2em; color: var(--purple); letter-spacing: 0.04em; }
.mroman { font-size: 1.35em; color: #b0610a; letter-spacing: 0.08em; font-family: Georgia, 'Times New Roman', serif; }

/* Klavier-Ziffernblock */
.kp { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 6px; }
.kp-display { min-width: 260px; min-height: 64px; padding: 10px 20px; border-radius: 18px; background: #12123a; color: #7dffb3; font-size: 2.2rem; font-weight: 800; font-family: 'SF Mono', Menlo, monospace; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: inset 0 3px 10px rgba(0,0,0,.5); flex-wrap: wrap; }
.kp-display.empty .kp-val::before { content: '…'; opacity: 0.4; }
.kp-display.right { background: #0f5132; color: #fff; }
.kp-display.wrong { background: #6b1414; color: #fff; }
.kp-unit { font-size: 1.2rem; opacity: 0.8; }
.kp-sol { width: 100%; text-align: center; font-size: 1rem; color: #ffd6d6; }
.piano { display: grid; grid-template-columns: repeat(3, 84px); gap: 8px; }
.pkey { height: 70px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #fff 0%, #f1f1f1 85%, #dcdcdc 100%); border: 2px solid #c9c9c9; font-size: 1.8rem; font-weight: 800; box-shadow: 0 5px 0 #b5b5b5; }
.pkey:active { transform: translateY(4px); box-shadow: 0 1px 0 #b5b5b5; background: #ffe9a8; }
.pkey.del { background: linear-gradient(180deg, #3a3a3a, #1d1d1d); color: #fff; border-color: #111; box-shadow: 0 5px 0 #000; }
.pkey.ok { background: linear-gradient(180deg, #6fcf97, #27ae60); color: #fff; border-color: #1e8449; box-shadow: 0 5px 0 #145a32; }
.piano.locked, .kp .piano.locked { opacity: 0.5; pointer-events: none; }

/* Mischpult */
.desk-wrap { background: linear-gradient(180deg, #2b2b3a, #1a1a24); border-radius: 22px; padding: 12px; box-shadow: inset 0 2px 12px rgba(0,0,0,.6); overflow-x: auto; }
.desk-led { font-family: 'SF Mono', Menlo, monospace; font-size: 2rem; font-weight: 800; color: #7dffb3; text-align: center; background: #0b0b14; border-radius: 12px; padding: 6px; margin-bottom: 10px; letter-spacing: 0.05em; }
.desk { display: flex; gap: 6px; justify-content: center; min-width: max-content; }
.fcol { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 52px; padding: 6px 2px; border-radius: 12px; background: rgba(255,255,255,.04); }
.fcol.on { background: rgba(255,255,255,.1); }
.fcol.good { box-shadow: 0 0 0 3px #27ae60; }
.fcol.bad { box-shadow: 0 0 0 3px #eb5757; }
.fhead { color: var(--c); font-weight: 800; font-size: 0.95rem; }
.fbtn { width: 44px; height: 34px; border-radius: 10px; background: #3b3b52; color: #fff; font-size: 0.9rem; }
.fbtn:active { background: var(--c); }
.ftrack { position: relative; width: 14px; height: 150px; border-radius: 8px; background: #0b0b14; touch-action: none; cursor: pointer; }
.fknob { position: absolute; left: 50%; bottom: 0; width: 40px; height: 22px; transform: translate(-50%, 50%); border-radius: 6px; background: linear-gradient(180deg, #fafafa, #9a9a9a); border-top: 3px solid var(--c); box-shadow: 0 3px 6px rgba(0,0,0,.5); transition: bottom 0.12s; pointer-events: none; }
.fdigit { color: #fff; font-weight: 800; font-size: 1.5rem; font-family: 'SF Mono', Menlo, monospace; }

/* Zerlegen */
.decomp { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: 1.2rem; margin: 10px 0 16px; }
.dbox { width: 46px; height: 52px; border-radius: 12px; border: 3px solid #c9d6e3; background: #fff; font-size: 1.6rem; font-weight: 800; }
.dbox.cur { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,153,74,.25); }
.dbox.good { border-color: var(--green); background: #d9f7e5; }
.dbox.bad { border-color: var(--red); background: #ffe1e1; font-size: 1rem; width: auto; padding: 0 6px; }
.dfac { font-weight: 700; color: var(--muted); }
.dop { font-weight: 800; color: var(--purple); }

/* Falscher Ton */
.notes-list { display: grid; gap: 8px; }
.note-stmt { display: flex; align-items: center; gap: 10px; text-align: left; background: #f6f3ff; border: 3px solid #e3dcff; border-radius: 16px; padding: 10px 12px; font-size: 1.05rem; font-weight: 600; }
.note-stmt span:nth-child(2) { flex: 1; }
.note-stmt .nicon { font-size: 1.6rem; color: #b8a8ef; }
.note-stmt.on { background: #e6dcff; border-color: var(--purple); }
.note-stmt.on .nicon { color: var(--purple); }
.note-stmt.should { background: #d9f7e5; border-color: var(--green); }
.note-stmt.shouldnot { opacity: 0.8; }
.note-stmt.bad { outline: 4px solid var(--red); }
.note-stmt .speak { width: 40px; height: 40px; font-size: 1.1rem; }
.chips.big .chip { min-width: 64px; height: 56px; font-size: 1.25rem; }
.chip.good { background: #d9f7e5; border-color: var(--green); }
.chip.muted { opacity: 0.6; }
.chip.bad { outline: 3px solid var(--red); }

/* Runden-Zahlenstrahl */
.rline { position: relative; height: 150px; margin: 10px 60px 4px; }
.rbar { position: absolute; left: 0; right: 0; top: 80px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, #2f80ed, #9b51e0, #eb5757); }
.rmid { position: absolute; top: 66px; height: 36px; border-left: 3px dashed #888; }
.rmid small { position: absolute; top: 40px; left: -30px; width: 60px; text-align: center; font-size: 0.8rem; color: var(--muted); }
.rend { position: absolute; top: 100px; transform: translateX(-50%); padding: 8px 14px; border-radius: 14px; background: #fff; border: 3px solid #c9d6e3; font-weight: 800; font-size: 1.15rem; box-shadow: var(--shadow); }
.rend.left { left: 0; }
.rend.right { left: 100%; }
.rend.good { border-color: var(--green); background: #d9f7e5; }
.rend.bad { border-color: var(--red); background: #ffe1e1; }
.rnote { position: absolute; top: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 1.8rem; animation: bob2 2s infinite; }
.rnote b { font-size: 1rem; background: #fff8c6; padding: 2px 8px; border-radius: 10px; }

/* Tonleiter */
.staff { min-height: 120px; display: flex; align-items: flex-end; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 8px; border-radius: 18px; background: repeating-linear-gradient(180deg, #fff 0 18px, #d7d7e8 18px 20px); margin-bottom: 8px; }
.snote { display: flex; flex-direction: column; align-items: center; margin-bottom: calc(var(--i) * 6px); background: #fff; border-radius: 14px; padding: 4px 10px; box-shadow: var(--shadow); animation: pop-in 0.25s; }
.snote span { font-size: 1.6rem; color: var(--purple); }
.snote.good { background: #d9f7e5; }
.snote.bad { background: #ffe1e1; }
.sword { text-align: center; font-size: 1.8rem; font-weight: 800; letter-spacing: 0.3em; color: var(--purple); min-height: 2.2rem; margin: 6px 0; }
.sol-label { text-align: center; font-weight: 800; color: var(--muted); }

/* Zahlenstrahl */
.nline-wrap { background: #fff; border-radius: 18px; padding: 8px; touch-action: none; user-select: none; }
.nline { width: 100%; height: auto; display: block; }
.nl-axis { stroke: #1d2b3a; stroke-width: 3; }
.nl-arrow { fill: #1d2b3a; }
.nl-tick { stroke: #1d2b3a; stroke-width: 2; }
.nl-tick.big { stroke-width: 3.5; }
.nl-num { font-size: 22px; font-weight: 800; fill: #1d2b3a; font-family: var(--font); }
.nl-mark { font-size: 30px; fill: #eb5757; font-weight: 800; }
.nl-mark.good { fill: #27ae60; }
.nl-pickt { font-size: 40px; }

/* Römer-Baukasten */
.roman-disp { min-height: 70px; text-align: center; font-family: Georgia, 'Times New Roman', serif; font-size: 2.8rem; font-weight: 800; letter-spacing: 0.1em; color: #7a4a00; background: #fff4d6; border-radius: 18px; padding: 6px; border: 3px solid #f2c94c; }
.roman-disp.good { background: #d9f7e5; border-color: var(--green); }
.roman-disp.bad { background: #ffe1e1; border-color: var(--red); }
.roman-live { text-align: center; font-weight: 800; color: var(--muted); min-height: 1.4em; margin: 4px 0; }
.roman-tiles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rtile { width: 70px; height: 78px; border-radius: 12px; background: linear-gradient(180deg, #f5e6c8, #d9bf8c); border: 2px solid #b8975a; box-shadow: 0 5px 0 #8f7340; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rtile b { font-family: Georgia, serif; font-size: 2rem; color: #4a2e00; }
.rtile small { font-size: 0.75rem; color: #6b4b14; }
.rtile:active { transform: translateY(4px); box-shadow: 0 1px 0 #8f7340; }
.rtile.del { background: #3a3a3a; color: #fff; font-size: 1.6rem; border-color: #111; box-shadow: 0 5px 0 #000; }
.clock { display: block; margin: 0 auto; }

/* Quader */
.cuboid-wrap, .cuboid-static { display: flex; justify-content: center; }
.cuboid { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.cuboid-static .cuboid { max-width: 300px; }
.cface { fill: rgba(86, 204, 242, .08); stroke: none; }
.cface.hl { fill: rgba(242, 201, 76, .45); }
.sel-face .cface { cursor: pointer; }
.sel-face .cface:hover { fill: rgba(86, 204, 242, .25); }
.cface.picked { fill: rgba(155, 81, 224, .45); }
.cface.should { fill: rgba(39, 174, 96, .45); }
.cface.wrongpick { fill: rgba(235, 87, 87, .5); }
.cedge { stroke: #1d2b3a; stroke-width: 4; stroke-linecap: round; }
.cedge.dashed { stroke-dasharray: 9 8; stroke-width: 3; }
.cedge.hl { stroke: #f2994a; stroke-width: 8; }
.cedge.picked { stroke: #9b51e0; stroke-width: 9; }
.cedge.should { stroke: #27ae60; stroke-width: 9; }
.cedge.wrongpick { stroke: #eb5757; stroke-width: 9; }
.chit { stroke: transparent; stroke-width: 30; cursor: pointer; }
.sel-face .chit, .sel-corner .chit { pointer-events: none; }
.ccorner { fill: #1d2b3a; }
.sel-corner .ccorner { fill: #fff; stroke: #1d2b3a; stroke-width: 3; cursor: pointer; }
.ccorner.hl { fill: #f2994a; r: 9; }
.ccorner.picked { fill: #9b51e0; }
.ccorner.should { fill: #27ae60; }
.ccorner.wrongpick { fill: #eb5757; }
.clabel { font-size: 22px; font-weight: 800; fill: #1d2b3a; font-family: var(--font); pointer-events: none; }
.cdim { font-size: 15px; font-weight: 700; fill: #6a4bc4; font-family: var(--font); }

/* Songtext */
.cloze-text { font-size: 1.15rem; line-height: 2.4; background: #fffdf5; border-radius: 18px; padding: 12px 16px; border: 3px dashed #f2c94c; }
.cgap { display: inline-block; min-width: 90px; padding: 0 8px; margin: 0 3px; border-radius: 10px; background: #fff; border: 2px solid #c9d6e3; font-weight: 800; color: var(--muted); line-height: 1.8; }
.cgap.cur { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,153,74,.3); }
.cgap.filled { color: var(--ink); background: #f1e9ff; }
.cgap.good { background: #d9f7e5; border-color: var(--green); }
.cgap.bad { background: #ffe1e1; border-color: var(--red); }

/* Beat-Arcade */
.arcade.beat, .arcade.stage { background: linear-gradient(180deg, #120c2e 0%, #2a1b5e 60%, #5b3aa8 100%); }
.beat-decor .spot { position: absolute; top: -40px; width: 160px; height: 420px; background: linear-gradient(180deg, rgba(255,255,200,.35), transparent); transform-origin: top center; animation: sweep 4s ease-in-out infinite; filter: blur(6px); }
.beat-decor .s1 { left: 10%; }
.beat-decor .s2 { left: 45%; animation-delay: -1.3s; background: linear-gradient(180deg, rgba(255,140,220,.35), transparent); }
.beat-decor .s3 { left: 75%; animation-delay: -2.6s; background: linear-gradient(180deg, rgba(120,220,255,.35), transparent); }
@keyframes sweep { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
.beat-line { position: absolute; left: 0; right: 0; top: 86%; height: 6px; background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1); box-shadow: 0 0 18px #feca57; }
.speakers { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 14px; font-size: 2.4rem; }
.falling { white-space: pre-line; text-align: center; }
.falling .fsub { display: block; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.bins.dyn .bin { font-size: 1.35rem; }

/* =================== Frage-Knopf =================== */
.ask-fab { position: fixed; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 850; display: flex; align-items: center; gap: 6px; padding: 12px 18px 12px 14px; border-radius: 40px; background: linear-gradient(135deg, #ff9f43, #ff6b6b); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 6px 0 #c0392b, 0 12px 24px rgba(0,0,0,.25); animation: askpulse 3s ease-in-out infinite; }
.ask-fab span { font-size: 1.7rem; }
.ask-fab:active { transform: translateY(4px); box-shadow: 0 2px 0 #c0392b; }
@keyframes askpulse { 0%, 85%, 100% { transform: scale(1); } 90% { transform: scale(1.08); } }
.ask-modal { z-index: 900; align-items: end; }
.ask-panel { background: #fff; border-radius: 24px; width: min(680px, 100%); max-height: 86vh; display: flex; flex-direction: column; gap: 8px; padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: slide-up 0.3s; }
.ask-head { display: flex; align-items: center; gap: 10px; }
.ask-head > div { flex: 1; }
.ask-head small { display: block; color: var(--muted); font-size: 0.85rem; }
.ask-mascot { font-size: 2.6rem; }
.ask-log { flex: 1; min-height: 140px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; background: #f4f8fc; border-radius: 16px; padding: 10px; }
.ask-row { display: flex; gap: 8px; align-items: stretch; }
.ask-input { flex: 1; font-size: 1.1rem; border-radius: 14px; border: 3px solid #dfe9f3; padding: 8px 12px; resize: none; }
.ask-note { color: var(--muted); text-align: center; }
.ask-chips { justify-content: center; }
.ask-chips .chip { height: auto; padding: 8px 12px; font-size: 0.92rem; }
.summary, .task-card, .studio-main { margin-bottom: 70px; }

@media (max-width: 700px) {
  .map.mathe { height: 900px; }
  .piano { grid-template-columns: repeat(3, 72px); }
  .pkey { height: 60px; }
  .kp-display { font-size: 1.7rem; min-width: 220px; }
  .fcol { width: 44px; }
  .ftrack { height: 120px; }
  .rline { margin: 10px 40px 4px; }
  .rtile { width: 56px; height: 66px; }
  .rtile b { font-size: 1.6rem; }
  .ask-fab { padding: 10px 14px 10px 10px; font-size: 1rem; }
  .ask-fab b { display: none; }
  .bs-member { min-width: 56px; }
  .bs-member span { font-size: 1.7rem; }
}

/* Frage-Knopf als Sprachgespräch */
.ask-voice { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ask-voice-avatar { font-size: 3.6rem; width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle, #fff, #ffe1c9); display: grid; place-items: center; }
.ask-voice-avatar.speaking { animation: speak 0.8s infinite; }
.ask-voice .coach-word { font-size: 1.8rem; }
.ask-fab.live { background: linear-gradient(135deg, #27ae60, #1abc9c); box-shadow: 0 6px 0 #1e8449, 0 0 0 0 rgba(39,174,96,.6), 0 12px 24px rgba(0,0,0,.25); animation: livepulse 1.8s ease-in-out infinite; }
.ask-fab.live.muted { background: linear-gradient(135deg, #7f8c8d, #95a5a6); box-shadow: 0 6px 0 #5d6d6e; animation: none; }
@keyframes livepulse { 50% { box-shadow: 0 6px 0 #1e8449, 0 0 0 12px rgba(39,174,96,.18), 0 12px 24px rgba(0,0,0,.25); } }
.ask-panel .row { margin: 4px 0; }

/* =================== Bio-Mission: Weltraum =================== */
.world-card.bio { background: radial-gradient(circle at 75% 20%, #2d6a8a, #0b1d3a 70%); }
.map.bio {
  background:
    radial-gradient(circle at 85% 18%, #8fd3ff 0 5%, #3a7bd5 6% 9%, transparent 10%),
    radial-gradient(circle at 12% 85%, #7ee0a4 0 6%, #2e8b57 7% 10%, transparent 11%),
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 12%, #fff, transparent),
    radial-gradient(2px 2px at 40% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 75% 55%, #fff, transparent),
    radial-gradient(2px 2px at 90% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 8% 50%, #fff, transparent),
    linear-gradient(180deg, #050b24 0%, #0f2350 55%, #1c3f7a 100%);
}
.map.bio .route path { stroke: rgba(140, 255, 200, .9); }
.map.bio .station-pin { background: #0d1c40; color: #fff; }
.map.bio .station-pin .pin-thema { color: #a8f0d0; }
.band-stage.crew { background: linear-gradient(180deg, #0f2350, #050b24); }
.band-stage.crew::before { background: radial-gradient(ellipse at 50% -20%, rgba(140,255,200,.35), transparent 50%); }
.band-stage.crew .bs-floor { border-bottom-color: #4a6fa5; }
.stamp-anim.medal, .pp-stamp.medal { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c2, #ffd23f 45%, #d49b00 100%); color: #4a3300; border-color: #b8860b; }
.passport.bio { background: linear-gradient(135deg, #0b1d3a, #2d6a8a); }

.arcade.space { background: linear-gradient(180deg, #050b24 0%, #0f2350 60%, #1c3f7a 100%); }
.space-decor .stars { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 10% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 30% 60%, #fff, transparent), radial-gradient(2px 2px at 70% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 50% 85%, #fff, transparent), radial-gradient(2px 2px at 92% 12%, #fff, transparent); animation: twinkle 3s ease-in-out infinite; }
.space-decor .planet { position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8fd3ff, #2f80ed 60%, #173d7a); box-shadow: 0 0 40px rgba(120, 200, 255, .5); }
.space-decor .ufo { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); font-size: 2.6rem; animation: bob2 2.4s ease-in-out infinite; }
.space-decor .beam { position: absolute; left: 50%; top: 44px; width: 220px; height: 85%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(140,255,200,.35), rgba(140,255,200,0)); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
@keyframes twinkle { 50% { opacity: .5; } }
.space .falling { font-size: 1.9rem; background: #e9fff4; box-shadow: 0 6px 0 #27ae60, 0 0 24px rgba(140,255,200,.6); white-space: normal; max-width: 92%; }

/* Bio-Aufgaben */
.big-e { font-size: 3.2rem; line-height: 1.2; display: inline-block; }
.read-card { background: #eef8ff; border-left: 6px solid #56ccf2; border-radius: 14px; padding: 12px 14px; font-size: 1.02rem; line-height: 1.5; text-align: left; margin-bottom: 10px; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.match-col { display: grid; gap: 8px; align-content: start; }
.match-item { background: #f4f8fc; border: 3px solid #dfe9f3; border-radius: 16px; padding: 12px 10px; font-size: 1.1rem; font-weight: 700; min-height: 54px; }
.match-item.on { border-color: var(--blue); background: #eaf3ff; transform: scale(1.03); }
.match-item.ok { background: var(--c); border-color: var(--c); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.match-item.shake { animation: shake 0.4s; border-color: var(--red); }
.center { text-align: center; }
.spell-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0; padding: 10px; border-radius: 18px; background: #0f2350; }
.spell-slots.good { background: #1f8a4c; }
.spell-slots.bad { background: #a33; }
.spell-slot { width: 42px; height: 52px; border-radius: 10px; background: rgba(255,255,255,.12); border: 2px dashed rgba(255,255,255,.5); color: #fff; font-size: 1.6rem; font-weight: 800; }
.spell-slot.filled { background: #fff; color: #0f2350; border: 2px solid #fff; }
.spell-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.spell-letter { width: 52px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c8f5e0); border: 3px solid #27ae60; font-size: 1.6rem; font-weight: 800; color: #0f2350; box-shadow: 0 4px 0 #1f8a4c; }
.spell-letter.used { opacity: 0.2; box-shadow: none; }
.bpic-wrap { max-width: 420px; margin: 8px auto; }
.bpic { width: 100%; height: auto; display: block; }
.bpic.skeleton { max-height: 420px; }
.bpic-wrap [data-part], .visual .bpic [data-part] { cursor: pointer; transition: filter .2s; }
.bpic .mark, .bpic [data-part].good { filter: drop-shadow(0 0 6px #ffd23f) drop-shadow(0 0 10px #ffd23f) brightness(1.15); }
.bpic .mark path, .bpic .mark rect:not([fill="transparent"]), .bpic .mark circle, .bpic .mark ellipse { fill: #ffe066; }
.bpic [data-part].good path, .bpic [data-part].good rect:not([fill="transparent"]), .bpic [data-part].good circle, .bpic [data-part].good ellipse { fill: #6fe39a; }
.bpic [data-part].bad path, .bpic [data-part].bad rect:not([fill="transparent"]), .bpic [data-part].bad circle, .bpic [data-part].bad ellipse { fill: #ff8a8a; }
.visual .bpic { max-width: 320px; margin: 0 auto; }
.gap-sentence { font-size: 1.3rem; line-height: 2.4; font-weight: 600; text-align: center; margin: 12px 0; }
.gap { display: inline-block; min-width: 92px; height: 44px; margin: 0 4px; padding: 0 10px; border-radius: 12px; border: 3px dashed #9bb3cc; background: #f4f8fc; font-size: 1.15rem; font-weight: 800; vertical-align: middle; }
.gap.active { border-color: var(--blue); background: #eaf3ff; box-shadow: 0 0 0 4px rgba(47,128,237,.15); }
.gap.filled { border-style: solid; border-color: var(--purple); background: #f3ebff; color: var(--purple); }
.gap.good { border-color: var(--green); background: #d9f7e5; color: #146c3a; }
.gap.bad { border-color: var(--red); background: #ffe1e1; color: #b42318; }
.gap-bank { justify-content: center; }
.chip.used { opacity: 0.3; }
@media (max-width: 700px) {
  .map.bio { height: 900px; }
  .space .falling { font-size: 1.4rem; }
  .match-item { font-size: 0.95rem; padding: 10px 6px; }
  .gap-sentence { font-size: 1.1rem; }
  .spell-slot { width: 32px; height: 44px; font-size: 1.3rem; }
  .spell-letter { width: 44px; height: 48px; font-size: 1.35rem; }
}
.bpic-wrap:has(.dog) { max-width: 560px; }
/* Bio: selbst schreiben */
.task-card > .big-e { display: block; text-align: center; margin: 4px 0; }
.bpic-wrap.small { max-width: 300px; }
.bpic-wrap.small:has(.dog) { max-width: 440px; }
.bpic-wrap.small [data-part] { cursor: default; }
.write-row { flex-wrap: wrap; justify-content: center; }
.write-in { max-width: 520px; text-align: center; font-weight: 700; letter-spacing: .04em; }
.write-in.shake { animation: shake 0.4s; border-color: var(--red); }
.umlaut-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; }
.ukey { min-width: 46px; height: 46px; border-radius: 12px; border: 2px solid #c9d8e8; background: #f4f8fc; font-size: 1.3rem; font-weight: 800; color: #0f2350; }
.ukey:active { background: #dbe9f8; }
.listen-row { justify-content: center; }
.btn.listen { background: #56ccf2; color: #0f2350; font-weight: 800; }
.write-result { text-align: center; }
.write-tipp { font-weight: 800; color: #b45309; margin: 8px 0 4px; }
.diff { display: inline-grid; gap: 4px; margin: 6px auto; padding: 10px 14px; border-radius: 14px; background: #f7f9fc; }
.diff-row { display: flex; align-items: center; gap: 1px; font-size: 1.6rem; font-weight: 800; font-family: ui-rounded, system-ui, sans-serif; }
.diff-lbl { font-size: .85rem; font-weight: 700; color: #6b7a90; width: 64px; text-align: right; margin-right: 8px; }
.dl { min-width: .5em; text-align: center; }
.dl.bad { color: #c0262d; text-decoration: line-through; text-decoration-thickness: 3px; }
.dl.gap { color: #c0262d; }
.dl.fix { color: #146c3a; background: #c8f5d8; border-radius: 6px; }
.copy-lbl { font-weight: 700; margin: 10px 0 2px; }
.copy-word { font-size: 2rem; font-weight: 900; letter-spacing: .06em; color: #0f2350; }
.gap-in { height: 44px; margin: 0 4px; padding: 0 8px; border-radius: 12px; border: 3px dashed #9bb3cc; background: #f4f8fc; font-size: 1.15rem; font-weight: 800; text-align: center; vertical-align: middle; min-width: 4ch; max-width: 90%; }
.gap-in:focus { outline: none; border-style: solid; border-color: var(--blue); background: #eaf3ff; }
.gap-sentence.typed .gap { line-height: 38px; }
@media (max-width: 700px) {
  .diff-row { font-size: 1.25rem; }
  .copy-word { font-size: 1.6rem; }
  .ukey { min-width: 40px; height: 42px; }
}
.bpic-wrap.small .bpic.skeleton { max-height: 300px; }

/* ===== Backstage-Konditorei: Runden-Profi & schriftlich subtrahieren ===== */
.rprompt { font-size: 1.25rem; line-height: 1.5; }
.rbig { font-size: 2.3rem; font-weight: 900; letter-spacing: .02em; white-space: nowrap; color: #6a1b4d; }
.hz { color: #e8590c; background: #fff0e0; border-radius: 6px; padding: 0 2px; }
.rnum { max-width: 320px; font-size: 2rem; text-align: center; font-weight: 800; letter-spacing: .04em; }
.rrow { justify-content: center; flex-wrap: wrap; align-items: center; }
.rsmall { max-width: 190px; min-width: 140px; font-size: 1.6rem; text-align: center; font-weight: 800; }
.rfb { margin: 10px auto; max-width: 680px; border-radius: 16px; padding: 0; font-size: 1.1rem; line-height: 1.45; }
.rfb.warn { background: #fff4e6; border: 3px solid #ffb366; padding: 12px 16px; }
.rfb.good { background: #e3f9ec; border: 3px solid #6fd39a; padding: 12px 16px; }
.rfb .small { margin-top: 4px; font-weight: 700; color: #b45309; }
.rline { max-width: 680px; margin: 6px auto; }
.rline-svg { width: 100%; height: auto; display: block; touch-action: none; }
.rl-band { fill: #c8f5d8; stroke: #6fd39a; stroke-width: 2; }
.rl-bandlbl { font: 800 15px system-ui, sans-serif; fill: #146c3a; text-anchor: middle; }
.rl-axis { stroke: #33465c; stroke-width: 3; stroke-linecap: round; }
.rl-tick { stroke: #33465c; stroke-width: 1.5; }
.rl-tick.big { stroke-width: 3; }
.rl-lbl { font: 600 12px system-ui, sans-serif; fill: #5b6b7c; text-anchor: middle; }
.rl-lbl.big { font: 800 14px system-ui, sans-serif; fill: #1d2b3a; }
.rl-mark { stroke: #2f80ed; stroke-width: 3; }
.rl-mark.ok { stroke: #27ae60; } .rl-mark.bad { stroke: #f08c00; stroke-dasharray: 4 3; }
.rl-marklbl { font: 800 13px system-ui, sans-serif; fill: #2f80ed; text-anchor: middle; }
.rl-marklbl.ok { fill: #146c3a; } .rl-marklbl.bad { fill: #b45309; }
.rl-arrow { fill: none; stroke: #e8590c; stroke-width: 3; stroke-dasharray: 6 4; }
.rl-target { fill: #e8590c; }
.rl-ptr { fill: #6a1b4d; }
.rslider { max-width: 700px; margin: 0 auto; text-align: center; }
.rs-num { font-size: 2.6rem; font-weight: 900; color: #1d2b3a; }
.rs-res { font-size: 1.15rem; margin-top: 6px; min-height: 1.6em; }
.rs-range { width: 100%; height: 44px; accent-color: #e8590c; }
.rs-range::-webkit-slider-thumb { width: 36px; height: 36px; }
.rs-btns { justify-content: center; gap: 8px; }
.rs-step { min-width: 64px; min-height: 48px; font-weight: 800; }
.rf-btns { justify-content: center; gap: 16px; margin: 14px 0; }
.btn.rf { min-width: 170px; min-height: 60px; font-size: 1.3rem; font-weight: 800; }
.btn.rf.yes { background: #e3f9ec; border: 3px solid #6fd39a; }
.btn.rf.no { background: #fff4e6; border: 3px solid #ffb366; }
.rkarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 620px; margin: 12px auto; }
.rkarte { background: #fff7fb; border: 3px solid #f7c6dc; border-radius: 18px; padding: 10px; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 1.5rem; font-weight: 800; }
.rkarte .rk-e { font-size: 1.6rem; }
.rkarte.on { background: #ffe0ef; border-color: #e64980; transform: scale(1.04); box-shadow: 0 4px 0 #c2255c; }
.rkarte.good { background: #d9f7e5; border-color: var(--green); }
.rkarte.bad { background: #fff0e0; border-color: #f08c00; }
.rkarte.missed { border: 3px dashed var(--green); }
.rkarte.none { opacity: .55; }
.rundi { display: flex; gap: 10px; align-items: flex-start; max-width: 720px; margin: 8px auto; text-align: left; }
.rundi-e { font-size: 2.6rem; line-height: 1; }
.rundi-say { background: #fff; border: 3px solid #f7c6dc; border-radius: 18px; padding: 10px 14px; font-size: 1.12rem; line-height: 1.45; min-height: 1.5em; flex: 1; position: relative; }
.rundi-say:empty { display: none; }
.rundi.warn .rundi-say { border-color: #ffb366; background: #fff8ee; }
.rundi.good .rundi-say { border-color: #6fd39a; background: #f0fcf4; }
.rundi.pop .rundi-say { animation: pop-in .3s; }
/* Rechenraster */
.colwidget { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: flex-start; margin: 10px 0; }
.colcalc { display: inline-flex; flex-direction: column; background: repeating-linear-gradient(0deg, #fff, #fff 55px, #eef3fb 55px, #eef3fb 56px); border: 3px solid #d7e3f2; border-radius: 18px; padding: 10px 14px; --cw: 58px; }
.colcalc.wide { --cw: 50px; }
.cs-row { display: flex; align-items: center; }
.cs-op { width: 36px; font-size: 2rem; font-weight: 900; color: #6a1b4d; text-align: center; }
.cs-op.small { font-size: .8rem; color: #8a98aa; }
.cs-c { width: var(--cw); text-align: center; font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #1d2b3a; border-radius: 10px; transition: background .2s; }
.cs-row.head .cs-c { font-size: .85rem; font-weight: 800; }
.cs-c.pl.p0 { color: #2f80ed; } .cs-c.pl.p1 { color: #27ae60; } .cs-c.pl.p2 { color: #eb5757; } .cs-c.pl.p3 { color: #9b51e0; } .cs-c.pl.p4 { color: #f2994a; } .cs-c.pl.p5 { color: #1abc9c; }
.cs-c.act { background: #fff3bf; }
.cs-row.car { min-height: 28px; }
.cs-line { height: 4px; background: #1d2b3a; border-radius: 2px; margin: 4px 0 6px 36px; }
.cs-cell { width: calc(var(--cw) - 8px); height: 60px; border: 3px dashed #9bb3cc; border-radius: 12px; background: #f8fbff; text-align: center; font-size: 2rem; font-weight: 800; color: #1d2b3a; padding: 0; caret-color: transparent; }
.cs-cell.car { height: 30px; width: 30px; font-size: 1rem; border-width: 2px; border-radius: 8px; margin-left: calc(var(--cw) - 40px); color: #e8590c; }
.cs-cell:disabled { background: transparent; border-color: transparent; opacity: 1; -webkit-text-fill-color: currentColor; }
.cs-cell.active { border-style: solid; border-color: var(--blue); background: #eaf3ff; box-shadow: 0 0 0 4px rgba(47,128,237,.18); }
.cs-cell.good { color: #146c3a; }
.cs-cell.bad { border-color: #f08c00 !important; background: #fff0e0 !important; }
.cs-cell.helped { color: #9b51e0; }
.cs-cell.set { color: #e8590c; font-weight: 900; }
.cs-cell.shake { animation: shake .4s; }
.colcalc.static { background: #fffdf5; }
.colcalc.static .cs-c { height: 52px; line-height: 52px; }
.cs-ctrl { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.cs-keys { display: grid; grid-template-columns: repeat(3, 60px); gap: 8px; }
.cs-key { height: 56px; border-radius: 14px; border: 2px solid #c9d8e8; background: #fff; font-size: 1.6rem; font-weight: 800; color: #1d2b3a; box-shadow: 0 3px 0 #c9d6e3; }
.cs-key:active { transform: translateY(2px); box-shadow: none; }
.cs-key.del { grid-column: span 2; font-size: 1.3rem; }
.cs-keys.locked { opacity: .35; pointer-events: none; }
.cs-side { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.cs-skip { font-weight: 800; }
.probe-head { font-weight: 900; font-size: 1.2rem; margin-top: 10px; text-align: center; color: #6a1b4d; }
.probe-hint { text-align: center; font-weight: 700; color: #5b6b7c; }
.ts-text { display: flex; gap: 10px; align-items: flex-start; background: #fff7fb; border: 3px solid #f7c6dc; border-radius: 18px; padding: 12px 16px; font-size: 1.2rem; line-height: 1.5; max-width: 720px; margin: 0 auto 8px; text-align: left; }
.ts-e { font-size: 1.8rem; }
.ts-setup { text-align: center; }
.ts-q { font-weight: 800; }
.ts-row { justify-content: center; align-items: center; }
.ts-op { font-size: 2rem; font-weight: 900; }
.ts-answer { margin: 10px auto; max-width: 640px; background: #e3f9ec; border-radius: 14px; padding: 10px 14px; font-size: 1.2rem; font-weight: 700; text-align: center; }
/* Lektionen */
.lesson { max-width: 900px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.ls-title { text-align: center; margin: 4px 0; color: #6a1b4d; }
.ls-dots { display: flex; gap: 6px; margin-left: auto; }
.ls-dots span { width: 12px; height: 12px; border-radius: 50%; background: #dfe9f3; }
.ls-dots span.done { background: #6fd39a; } .ls-dots span.on { background: #e64980; transform: scale(1.3); }
.ls-box { margin: 8px 0; text-align: center; }
.ls-nav { justify-content: space-between; margin-top: 10px; }
.ls-big { font-size: 1.7rem; font-weight: 800; margin: 8px 0; }
.ls-text { font-size: 1.12rem; line-height: 1.5; }
.ls-rule { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.ls-rule > div { border-radius: 16px; padding: 10px 18px; font-size: 1.5rem; font-weight: 900; display: flex; flex-direction: column; }
.ls-rule small { font-size: 1rem; }
.ls-rule .down { background: #e7f1ff; color: #1c5db8; } .ls-rule .up { background: #fff0e0; color: #c2410c; }
.ls-merk { font-size: 1.35rem; font-weight: 900; color: #6a1b4d; background: #fff7fb; border-radius: 14px; padding: 8px 12px; }
.hidden2 { visibility: hidden; }
.btn.big2 { font-size: 1.8rem; font-weight: 900; min-width: 130px; min-height: 64px; }
.btn.big2.right { background: #d9f7e5; border-color: var(--green); } .btn.big2.wrong { background: #fff0e0; }
.ls-trick { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 1.3rem; font-weight: 800; }
.ls-trick > div { background: #fff7fb; border: 3px solid #f7c6dc; border-radius: 16px; padding: 8px 14px; }
.btn.wait { opacity: .45; }
.btn.pulse { animation: rpulse 1.2s ease-in-out 3; }
@keyframes rpulse { 50% { transform: scale(1.07); } }
.sw-pick { justify-content: center; align-items: center; flex-wrap: wrap; }
.sw-t { font-size: 1.6rem; min-width: 110px; text-align: center; }
.rm-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.rm-type { background: #f8fbff; border: 3px solid #dfe9f3; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 110px; }
.rm-type.on { border-color: #e64980; background: #fff0f6; box-shadow: 0 4px 0 #c2255c; }
.rm-type small { color: #5b6b7c; text-align: center; }
.rm-e { font-size: 1.8rem; }
.rm-levels { justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.badge { background: #f3f5f8; border-radius: 16px; padding: 8px 12px; display: flex; flex-direction: column; align-items: center; min-width: 150px; max-width: 200px; opacity: .7; }
.badge span { font-size: 1.8rem; } .badge small { color: #5b6b7c; text-align: center; font-size: .8rem; }
.badge.has { background: #fff8db; border: 3px solid #f2c94c; opacity: 1; }
/* Urkunde */
.uk-card { background: #fff; border-radius: 24px; padding: 16px; max-width: 720px; width: 100%; max-height: 92vh; overflow-y: auto; }
.urkunde { border: 10px double #d4a017; border-radius: 16px; padding: 24px; text-align: center; background: linear-gradient(180deg, #fffdf2, #fff6dd); }
.urkunde h1 { font-size: 2.6rem; margin: 4px 0; color: #6a1b4d; letter-spacing: .08em; }
.urkunde h2 { margin: 0 0 12px; color: #e64980; font-size: 1.8rem; }
.uk-top { font-size: 2.2rem; }
.uk-text { font-size: 1.15rem; margin: 6px 0; }
.uk-name { font-size: 2.4rem; font-weight: 900; font-family: 'Brush Script MT', cursive, system-ui; color: #1d2b3a; border-bottom: 2px solid #d4a017; display: inline-block; padding: 0 30px; margin: 6px 0; }
.uk-stars { font-size: 2.4rem; color: #f2b705; letter-spacing: .15em; }
.uk-foot { display: flex; justify-content: space-between; margin-top: 18px; font-weight: 700; color: #5b6b7c; }
.uk-btns { justify-content: center; margin-top: 12px; }
@media print {
  body.printing-urkunde > *:not(.urkunde-modal) { display: none !important; }
  body.printing-urkunde .urkunde-modal { position: static; background: none; padding: 0; display: block; }
  body.printing-urkunde .uk-card { box-shadow: none; max-height: none; overflow: visible; padding: 0; }
  body.printing-urkunde .uk-btns { display: none; }
  body.printing-urkunde .urkunde { margin: 0; min-height: 250mm; display: flex; flex-direction: column; justify-content: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 15mm; }
}
@media (max-width: 700px) {
  .rbig { font-size: 1.8rem; }
  .rkarten { grid-template-columns: repeat(2, 1fr); }
  .colcalc { --cw: 44px; padding: 8px; }
  .colcalc.wide { --cw: 40px; }
  .cs-c { font-size: 1.7rem; }
  .cs-cell { height: 50px; font-size: 1.6rem; }
  .cs-op { width: 26px; font-size: 1.5rem; }
  .cs-line { margin-left: 26px; }
  .cs-keys { grid-template-columns: repeat(5, 52px); }
  .cs-key.del { grid-column: span 5; }
  .cs-side { flex-direction: row; flex-wrap: wrap; min-width: 0; justify-content: center; }
  .rs-num { font-size: 2rem; }
  .btn.rf { min-width: 130px; }
  .uk-name { font-size: 1.8rem; }
}
.rundi:has(.rundi-say:empty) { display: none; }
@media (max-width: 700px) { .cs-keys { grid-template-columns: repeat(5, 52px); } .cs-key.del { grid-column: span 5; } }

/* ---------- „Alles gecheckt?" (Mathe-Ich-kann-Liste mit Meister-Stufen) ---------- */
.pass-btn.mc-btn { background: linear-gradient(135deg, #0f9b8e, #27ae60); box-shadow: 0 5px 0 #0b6b52; }
.mc { max-width: 900px; margin: 0 auto; }
.mc-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mc-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(#27ae60 calc(var(--p) * 1%), #e5edf4 0); }
.mc-ring b { font-size: 1.7rem; line-height: 1; }
.mc-ring small { color: #5b6b7a; }
.mc-hero-txt { flex: 1 1 260px; }
.mc-hero-txt h3 { margin: 0 0 8px; }
.mc-rank { background: #f4f8fc; border-radius: 14px; padding: 10px 12px; }
.mc-rank-top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.mc-rank-top b { display: block; font-size: 1.1rem; }
.mc-rank-top small { color: #5b6b7a; }
.mc-rank-e { font-size: 2rem; }
.mc-rank .mbar { margin-bottom: 4px; }
.mc-rank .mbar > div { background: linear-gradient(90deg, #f2c94c, #f2994a); }
.mc-today { color: #1e8449; font-weight: 700; margin: 8px 0 0; }
.mc-next { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-group h3 small { font-weight: 400; color: #7a8a99; }
.mc-group.extra { background: #fff7fb; }
.mc-row { width: 100%; display: grid; grid-template-columns: 36px 1fr auto; grid-template-areas: "st tx act" "st meta act"; gap: 2px 10px; align-items: center; text-align: left; background: #f7fafd; border: 2px solid #e3ebf3; border-radius: 14px; padding: 10px 12px; margin: 6px 0; color: inherit; font: inherit; }
.mc-row:active { transform: scale(0.99); }
.mc-row.done { background: #effaf3; border-color: #bfe8cf; }
.mc-row.wob { background: #fff6e8; border-color: #f6c98a; }
.mc-state { grid-area: st; font-size: 1.6rem; text-align: center; }
.mc-text { grid-area: tx; font-weight: 600; }
.mc-meta { grid-area: meta; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mc-act { grid-area: act; font-size: 0.85rem; font-weight: 700; color: #2f3c7e; background: #fff; border-radius: 20px; padding: 6px 10px; box-shadow: 0 2px 0 #d5dfe9; max-width: 190px; text-align: center; }
.mc-row.wob .mc-act { color: #a85a00; }
.mc-medals span { font-size: 1.05rem; opacity: 0.2; filter: grayscale(1); }
.mc-medals span.on { opacity: 1; filter: none; }
.mc-dots { display: inline-flex; gap: 3px; }
.mc-dots span { width: 10px; height: 10px; border-radius: 50%; background: #ccd6e0; }
.mc-dots span.ok { background: #27ae60; }
.mc-dots span.mid { background: #f2c94c; }
.mc-dots span.no { background: #eb5757; }
.mc-best { color: #5b6b7a; }
.mc-legend p { margin: 4px 0; }
.mc-result { text-align: center; }
.mc-stage { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 3rem; margin: 6px 0; }
.mc-stage .mc-arrow { font-size: 1.6rem; color: #7a8a99; }
.mc-stage.up .mc-to { animation: mcpop 0.9s ease-out 0.4s both; }
@keyframes mcpop { 0% { transform: scale(0.2) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.5) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.mc-bonus { font-weight: 700; color: #1e8449; }
.mc-rankup { font-weight: 800; font-size: 1.2rem; color: #b8860b; }
.mc-result .mc-rank { text-align: left; max-width: 420px; margin: 8px auto; }
.mc-result .row { justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
  .mc-row { grid-template-columns: 30px 1fr; grid-template-areas: "st tx" "st meta" "act act"; }
  .mc-act { max-width: none; }
  .mc-ring { width: 96px; height: 96px; }
}

/* =================== Ballon-Weltreise (Geografie) =================== */
.world-card.geo { background: linear-gradient(170deg, #ff9a8b 0%, #ffc98b 38%, #8fd3ff 72%, #4fa3e0 100%); color: #1d2b3a; }
.map.geo {
  background:
    radial-gradient(ellipse 120px 34px at 18% 30%, rgba(255,255,255,.95), transparent 70%),
    radial-gradient(ellipse 150px 40px at 70% 22%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(ellipse 130px 36px at 40% 70%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(ellipse 110px 30px at 88% 78%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(circle at 92% 8%, #fff4b3 0 4%, #ffd23f 5% 7%, transparent 8%),
    linear-gradient(180deg, #7cc8f5 0%, #b5e2fb 55%, #dff2c8 82%, #9fd38a 100%);
}
.map.geo .route path { stroke: rgba(235, 87, 87, .85); }
.map.geo .station-pin { background: #fff; }
.geo-countdown { background: #fff4d6; border: 2px dashed #f2994a; border-radius: 16px; padding: 10px 14px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.band-stage.balloon { background: linear-gradient(180deg, #5db7ee, #9fd8fb 60%, #d9f2c4); color: #1d2b3a; }
.band-stage.balloon .bs-title { color: #1d2b3a; }
.band-stage.balloon .bs-floor { border-bottom-color: #6aa84f; }
.band-stage.balloon .bs-member small { color: #1d2b3a; }
.balloon-art { display: flex; flex-direction: column; align-items: center; margin: 4px 0 8px; }
.b-envelope { width: 92px; height: 100px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; display: flex; overflow: hidden; box-shadow: inset -12px -8px 0 rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.15); background: #fff; }
.b-envelope i { flex: 1; transition: background .6s; }
.band-stage.big .b-envelope { width: 170px; height: 184px; }
.b-ropes { width: 64px; height: 26px; border-left: 2px solid #7a5230; border-right: 2px solid #7a5230; clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }
.b-basket { background: repeating-linear-gradient(90deg, #b07a43 0 8px, #9a6534 8px 16px); border-radius: 6px 6px 12px 12px; padding: 4px 12px; font-size: 1.6rem; display: flex; gap: 6px; box-shadow: 0 4px 0 #6b4423; }
.b-count { display: block; text-align: center; margin-top: 4px; font-weight: 700; }
.stamp-anim.flag, .pp-stamp.flag { border-radius: 18px; background: linear-gradient(135deg, #fff, #ffe6e6); border-style: solid; }
.passport.geo { background: linear-gradient(135deg, #4fa3e0, #ffc98b); }

/* Ballon-Arcade */
.arcade.sky { background: linear-gradient(180deg, #5db7ee 0%, #a9dcfb 60%, #e3f6d2 100%); }
.sky-decor .cloud { position: absolute; font-size: 3.4rem; opacity: .9; animation: drift 14s linear infinite; }
.sky-decor .c1 { top: 12%; left: -10%; }
.sky-decor .c2 { top: 42%; left: -20%; animation-duration: 19s; animation-delay: -6s; font-size: 2.6rem; }
.sky-decor .c3 { top: 70%; left: -15%; animation-duration: 23s; animation-delay: -12s; }
.sky-decor .sky-balloon { position: absolute; right: 8px; bottom: 10px; font-size: 3rem; animation: bob2 2.6s ease-in-out infinite; }
.sky-decor .sky-owl { position: absolute; left: 10px; bottom: 10px; font-size: 2.4rem; animation: bob2 3s ease-in-out infinite; }
@keyframes drift { to { transform: translateX(130vw); } }
.sky .falling { font-size: 1.7rem; background: #fff; box-shadow: 0 6px 0 #4fa3e0, 0 10px 18px rgba(0,0,0,.2); white-space: normal; max-width: 92%; }

/* Uhr beim Probe-Test */
.round-clock { font-weight: 900; font-variant-numeric: tabular-nums; background: #eef6ff; border-radius: 12px; padding: 6px 10px; }
.round-clock.low { background: #fff1c2; }
.round-clock.over { background: #ffd9d9; color: #b42318; animation: pulse-bg 1s infinite; }
@keyframes pulse-bg { 50% { opacity: .65; } }

/* Grafiken allgemein */
.gvis { display: flex; justify-content: center; margin: 6px auto 10px; max-width: 100%; position: relative; }
.gvis svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.windrose-wrap { max-width: 340px; }
.windrose .wr-ring { fill: #f6f1e4; stroke: #c9b98a; stroke-width: 3; }
.windrose .wr-inner { fill: #fffdf6; stroke: #e0d3b6; stroke-width: 2; pointer-events: none; }
.windrose .wr-wedge { fill: transparent; cursor: pointer; transition: fill .15s; }
.windrose .wr-wedge:hover { fill: rgba(47,128,237,.12); }
.windrose .wr-wedge.mark { fill: rgba(255,210,63,.55); }
.windrose .wr-wedge.good { fill: rgba(39,174,96,.45); }
.windrose .wr-wedge.bad { fill: rgba(235,87,87,.4); }
.windrose .wr-t { font-weight: 900; font-size: 17px; fill: #1d2b3a; }
.windrose .wr-t.main { font-size: 22px; }
.windrose .wr-t.small { font-size: 11px; fill: #4a5d72; }
.einnorden-wrap { max-width: 320px; }
.en-row { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 0 auto 8px; font-size: 1.4rem; }
.en-slider { flex: 1; accent-color: var(--blue); height: 36px; }
.gridnav-wrap, .raster-wrap { max-width: 470px; }
.gridnav .gn-cell { fill: #eef7e6; stroke: #cfe3bf; stroke-width: 1.5; cursor: pointer; }
.gridnav .gn-cell.mark { fill: #fff1b3; }
.gridnav .gn-cell.good { fill: #9be3b3; }
.gridnav .gn-cell.bad { fill: #ffb3b3; }
.gridnav .gn-dir { font-weight: 900; font-size: 20px; fill: #eb5757; }
.options.dirgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.options.dirgrid .opt { font-size: 0.95rem; padding: 10px 6px; min-height: 52px; }
.raster .rs-cell { fill: transparent; stroke: rgba(29,43,58,.35); stroke-width: 1.2; cursor: pointer; }
.raster .rs-cell:hover { fill: rgba(47,128,237,.08); }
.raster .rs-cell.mark { fill: rgba(255,210,63,.45); }
.raster .rs-cell.good { fill: rgba(39,174,96,.45); }
.raster .rs-cell.bad { fill: rgba(235,87,87,.4); }
.raster .rs-lbl { font-weight: 900; font-size: 20px; fill: #9b51e0; }
.raster .rs-name { font-size: 9.5px; font-weight: 700; fill: #4a5d72; }
.raster .rs-hl text:first-child { filter: drop-shadow(0 0 6px #ffd23f) drop-shadow(0 0 4px #ffd23f); }
.cellpick-box { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0; }
.cellpick-box small { font-weight: 800; color: var(--muted); }
.cellpick { justify-content: center; }
.cellpick .chip.on { background: #9b51e0; color: #fff; border-color: #7b3bc0; }
.cell-show { font-size: 2rem; font-weight: 900; color: #9b51e0; background: #f3ebff; border-radius: 14px; padding: 2px 18px; }
.hidden-pick { display: none; }
.battle-status { text-align: center; font-weight: 800; background: #f3ebff; border-radius: 14px; padding: 8px 12px; margin-bottom: 6px; min-height: 2.4em; }
.register { background: #fffdf3; border: 2px solid #e9dfb8; border-radius: 14px; padding: 8px 14px; max-width: 360px; margin: 0 auto 10px; }
.register b { display: block; margin-bottom: 4px; }
.reg-row { display: flex; gap: 6px; align-items: baseline; font-size: 1rem; }
.reg-row .reg-dots { flex: 1; border-bottom: 2px dotted #c9b98a; }
.ruler-wrap { max-width: 640px; }
.ruler-g { cursor: grab; }
.ruler-steps { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.prompt.small { font-size: 1.05rem; margin: 4px 0 8px; }
.kp-go { margin-top: 8px; }
.shop-item-big { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 1.2rem; margin-bottom: 6px; }
.price-tag { background: #ffd23f; border-radius: 10px; padding: 4px 12px; font-weight: 900; transform: rotate(-4deg); }
.paid-tag { background: #d9f7e5; border-radius: 10px; padding: 4px 12px; font-weight: 800; }
.tray-box { background: #f6efd9; border-radius: 18px; padding: 8px 12px; margin: 6px 0 10px; text-align: center; }
.tray { min-height: 70px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; border-radius: 14px; padding: 6px; }
.tray.good { background: #d9f7e5; }
.tray.bad { background: #ffe1e1; }
.tray-empty { color: var(--muted); font-weight: 700; }
.wallet { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.money-btn { background: none; border: none; padding: 2px; border-radius: 10px; }
.money-btn:active { transform: scale(.92); }
.chartbuild { max-width: 520px; touch-action: none; }
.chartbuild svg, .ruler-wrap svg { touch-action: none; }
.chart.build .cb-bar { fill: #2f80ed; }
.chart.build .cb-bar.good { fill: #27ae60; }
.chart.build .cb-bar.bad { fill: #eb5757; }
.chart.build .cb-hit { cursor: ns-resize; }
.gtable { border-collapse: collapse; margin: 0 auto 8px; font-size: .95rem; }
.gtable th, .gtable td { border: 2px solid #dfe9f3; padding: 6px 10px; text-align: center; }
.gtable th { background: #eef6ff; }
.chart .ch-title { font-weight: 900; font-size: 14px; }
.chart .ch-grid { stroke: #e3ebf3; stroke-width: 1; }
.chart .ch-ax { font-size: 11px; fill: #5b6b7c; }
.chart .ch-val { font-size: 12px; font-weight: 800; fill: #1d2b3a; }
.chart .ch-lbl { font-size: 11px; fill: #1d2b3a; font-weight: 700; }
.chart .ch-pie { font-size: 13px; font-weight: 900; fill: #fff; }
.budget-pool { justify-content: center; margin-bottom: 10px; }
.budget-pool .chip { height: auto; min-height: 46px; padding: 6px 12px; }
.budget-pool .chip.on { background: var(--blue); color: #fff; }
.budget-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.budget-col { background: #f4f8fc; border: 3px dashed #c9d6e3; border-radius: 16px; padding: 8px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.budget-col b { font-size: .9rem; }
.budget-it { background: #fff; border-radius: 10px; padding: 6px 8px; font-weight: 700; font-size: .9rem; box-shadow: 0 2px 0 #dfe9f3; }
.budget-it.good { background: #d9f7e5; }
.budget-it.bad { background: #ffe1e1; outline: 2px solid var(--red); }
.budget-sums { display: flex; flex-direction: column; align-items: center; }
.gpick { justify-content: center; }
.gpick .chip, .bausteine .chip { height: auto; min-height: 46px; padding: 8px 12px; text-align: left; }
.gpick .chip.on, .bausteine .chip.on { background: var(--blue); color: #fff; }
.fakeshop { background: #fff; border: 3px solid #dfe9f3; border-radius: 18px; overflow: hidden; margin-bottom: 10px; }
.fs-bar { background: #eef1f5; padding: 8px 12px; font-family: Menlo, monospace; font-size: .9rem; }
.fs-hero { background: linear-gradient(90deg, #ff6b6b, #ffb347); color: #fff; padding: 14px; display: flex; align-items: center; gap: 12px; font-size: 1.2rem; }
.fs-prod { font-size: 2.4rem; }
.fs-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; padding: 10px; }
.fs-part { background: #f9fbfd; border: 3px solid #e3ebf3; border-radius: 12px; padding: 10px; font-weight: 700; text-align: left; }
.fs-part.on { border-color: var(--orange); background: #fff4e6; }
.fs-part.warn { border-color: var(--red); background: #ffe9e9; }
.fs-part.safe { border-color: var(--green); background: #e8f9ef; }
.fs-part.bad { box-shadow: 0 0 0 3px #1d2b3a; }
.fs-why { display: block; font-weight: 600; margin-top: 4px; color: #4a5d72; }
.wordtap { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.wordtap.card { background: #fffdf3; border: 2px solid #e9dfb8; border-radius: 14px; padding: 12px; }
.wt-title { width: 100%; text-align: left; }
.wt-word { background: #fff; border: 2px solid #e3ebf3; border-radius: 10px; padding: 6px 10px; font-weight: 700; }
.wt-word.on { background: #fff1c2; border-color: var(--orange); }
.wt-word.good { background: #d9f7e5; border-color: var(--green); }
.wt-word.bad { outline: 3px solid var(--red); }
.berg-wrap { max-width: 520px; }
.berg .berg-lbl { font-size: 11px; font-weight: 800; fill: #6b4423; }
.berg .berg-side { font-weight: 900; font-size: 18px; fill: #eb5757; }
.berg .berg-ring { cursor: pointer; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.pal { display: flex; align-items: center; gap: 6px; background: #fff; border: 3px solid #e3ebf3; border-radius: 12px; padding: 6px 10px; font-weight: 700; }
.pal i { width: 24px; height: 24px; border-radius: 6px; background: var(--c); border: 1px solid rgba(0,0,0,.2); }
.pal.on { border-color: var(--blue); transform: scale(1.06); }
.hoehen-leg { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-size: .95rem; font-weight: 700; margin: 4px 0 8px; }
.hoehen-leg span { display: flex; align-items: center; gap: 6px; }
.hoehen-leg i { width: 22px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.2); }
.sig-big { display: flex; justify-content: center; background: #f6f1e4; border-radius: 16px; padding: 14px 24px; }
.insel { max-width: 640px; }

/* Stumme Karten */
.gmap-wrap { max-width: 880px; }
.gmap-wrap svg { border-radius: 18px; background: #bfe3f7; }
.gmap .m-sea, .gmap .m-sphere { fill: #bfe3f7; }
.gmap.welt { background: transparent !important; }
.gmap .m-sphere { stroke: #9cc7e2; stroke-width: 1.5; }
.gmap .m-land { fill: #efe6cf; stroke: #a89870; stroke-width: .6; }
.gmap .m-borders { fill: none; stroke: rgba(120,100,60,.35); stroke-width: .5; }
.gmap .m-cont { fill: #efe6cf; stroke: #fff; stroke-width: 1.2; cursor: pointer; }
.gmap .m-cont.c-asien { fill: #f4c96b; } .gmap .m-cont.c-afrika { fill: #f2a35e; } .gmap .m-cont.c-nordamerika { fill: #e8806a; } .gmap .m-cont.c-suedamerika { fill: #5fb59a; }
.gmap .m-cont.c-antarktis { fill: #f4f6f8; } .gmap .m-cont.c-europa { fill: #ef6f6f; } .gmap .m-cont.c-australien { fill: #b98ad6; }
.gmap .m-ocean { fill: transparent; cursor: pointer; }
.gmap .m-reg { fill: transparent; stroke: none; cursor: pointer; }
.gmap .m-aeq { fill: none; stroke: #eb5757; stroke-width: 1; stroke-dasharray: 6 5; }
.gmap .m-line { fill: none; stroke: #8a5a2b; stroke-width: 3; stroke-linecap: round; }
.gmap .m-line.hl { stroke: #eb5757; stroke-width: 4; }
.gmap .mark { fill: #ffd23f !important; stroke: #d49b00; stroke-width: 1.5; }
.gmap .m-ocean.mark { fill: rgba(47,128,237,.55) !important; }
.gmap .good { fill: rgba(39,174,96,.75) !important; stroke: #1e8449; stroke-width: 1.5; }
.gmap .m-ocean.good { fill: rgba(39,174,96,.45) !important; }
.gmap .bad { fill: rgba(235,87,87,.7) !important; }
.gmap .hint { fill: rgba(255,210,63,.7) !important; }
.gmap .flash-bad { fill: rgba(235,87,87,.7) !important; }
.gmap .m-lbl { font-weight: 900; font-size: 15px; fill: #1d2b3a; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 4px; pointer-events: none; }
.gmap.europa .m-lbl { font-size: 12px; }
.gmap .m-lbl.small { font-size: 9px; }
.gmap .m-lbl.good { fill: #146c3a; }
.gmap .m-lbl.bad { fill: #b42318; }
.gmap .m-lasso { fill: rgba(155,81,224,.15); stroke: #9b51e0; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.show-types .t-insel { fill: rgba(86,204,242,.55); stroke: #2d9cdb; stroke-width: .8; }
.show-types .t-halb { fill: rgba(111,207,151,.55); stroke: #27ae60; stroke-width: .8; }
.type-leg { display: flex; gap: 14px; justify-content: center; font-weight: 800; }
.type-leg .ti { color: #2d9cdb; } .type-leg .th { color: #27ae60; }
.zp-wrap { max-width: 340px; }
.zp-zone { position: absolute; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; justify-content: center; cursor: pointer; padding: 6px; border-radius: 50%; }
.zp-zone small { width: 100%; text-align: center; font-weight: 800; color: #4a5d72; }
.zp-zone.center { left: 30%; top: 30%; width: 40%; height: 40%; padding-top: 14%; }
.zp-zone.ring { left: 0; top: 0; width: 100%; height: 26%; border-radius: 50% 50% 0 0; }
.zp-tag { background: #fff; border: 2px solid #c9d6e3; border-radius: 10px; padding: 2px 8px; font-weight: 800; font-size: .85rem; }
.zp-tag.good { border-color: var(--green); background: #d9f7e5; }
.zp-tag.bad { border-color: var(--red); background: #ffe1e1; }
.chips .chip.used { opacity: .3; }
.circle-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 10px 0; }
.circ-opt { position: relative; background: none; border: none; font-size: 1.2rem; font-weight: 800; padding: 14px 18px; }
.circ-opt.circled::after, .circ-opt.should::after { content: ''; position: absolute; inset: -2px -8px; border: 4px solid #2f80ed; border-radius: 50% 46% 52% 48% / 55% 50% 50% 45%; transform: rotate(-4deg); animation: pop-in .3s; }
.circ-opt.right::after { border-color: var(--green); }
.circ-opt.wrong::after { border-color: var(--red); }
.circ-opt.should::after { border-color: var(--green); border-style: dashed; }

/* Erklär-Trainer */
.erkl-frage { background: #fffdf3; border-left: 6px solid #f2994a; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.15rem; }
.erkl-frage b { flex: 1; min-width: 200px; }
.ef-nr { background: #f2994a; color: #fff; border-radius: 10px; padding: 2px 10px; font-weight: 800; font-size: .85rem; }
.erkl-input { width: 100%; font: inherit; font-size: 1.15rem; border: 3px solid #dfe9f3; border-radius: 16px; padding: 12px; resize: vertical; -webkit-user-select: text; user-select: text; background: #fff; }
.erkl-status { text-align: center; font-weight: 800; color: var(--muted); margin: 6px 0; }
.kern-list { background: #f4f8fc; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.kern { display: flex; gap: 8px; align-items: baseline; }
.kern.hit { color: #146c3a; font-weight: 700; }
.kern.miss { color: #4a5d72; }
.kern .must { background: #ffe1e1; color: #b42318; border-radius: 6px; padding: 0 6px; font-weight: 800; }
.ai-lob { background: #d9f7e5; border-radius: 12px; padding: 8px 12px; }
.ai-tipp { background: #fff4d6; border-radius: 12px; padding: 8px 12px; }
.ai-rs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.rs-fix { background: #fff; border: 2px solid #e3ebf3; border-radius: 8px; padding: 2px 8px; }
details.muster { background: #eef6ff; border-radius: 12px; padding: 8px 12px; margin-top: 6px; }
details.muster summary { font-weight: 800; cursor: pointer; }
.answer-build { min-height: 90px; background: #f4f8fc; border: 3px dashed #c9d6e3; border-radius: 16px; padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin-bottom: 10px; }
.ab-empty { color: var(--muted); font-weight: 700; }
.ab-part { background: #fff; border: 2px solid #9bb3cc; border-radius: 12px; padding: 6px 10px; font-weight: 700; text-align: left; }
.ab-part.good { border-color: var(--green); background: #d9f7e5; }
.ab-part.bad { border-color: var(--red); background: #ffe1e1; text-decoration: line-through; }
.bausteine { justify-content: center; }
.chip.missed { border-color: var(--green); border-style: dashed; }

/* Lektionen mit Olli */
.glesson { max-width: 900px; margin: 0 auto; }
.olli { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 12px; }
.olli-e { font-size: 3rem; animation: bob2 2.8s ease-in-out infinite; }
.olli-bubble { background: #fff; border-radius: 18px; padding: 12px 16px; font-weight: 700; font-size: 1.1rem; line-height: 1.45; box-shadow: var(--shadow); position: relative; flex: 1; }
.olli-bubble::before { content: ''; position: absolute; left: -10px; top: 18px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.lesson-body { background: #fff; border-radius: 24px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.lesson-info { text-align: center; font-weight: 800; font-size: 1.1rem; min-height: 1.5em; }
.btn.gpulse { animation: pulse-btn 1s ease-in-out 3; }
@keyframes pulse-btn { 50% { transform: scale(1.06); } }
.map-frame { position: relative; height: 240px; max-width: 420px; margin: 10px auto; background: #f6efd9; border: 3px solid #c9b98a; border-radius: 16px; font-weight: 900; }
.map-frame span { position: absolute; }
.mf-n { top: 8px; left: 50%; transform: translateX(-50%); color: #eb5757; }
.mf-s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.mf-w { left: 10px; top: 50%; transform: translateY(-50%); }
.mf-o { right: 10px; top: 50%; transform: translateY(-50%); }
.mf-mid { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; }
.zero-box { display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 3rem; font-weight: 900; margin: 12px 0; flex-wrap: wrap; }
.zero { background: #fff; border: 3px solid #dfe9f3; border-radius: 12px; min-width: 54px; font-size: 2.6rem; font-weight: 900; }
.zero.next { border-color: var(--orange); animation: pulse-btn 1.2s infinite; }
.zero.struck { opacity: .35; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 5px; }
.zero-gap { width: 10px; }
.zero-unit { margin-left: 10px; color: var(--blue); }
.scale-demo { flex-direction: column; align-items: center; }
.scale-view { width: 100%; max-width: 480px; height: 260px; overflow: hidden; display: grid; place-items: center; background: #f7f1e3; border-radius: 16px; }
.scale-inner { width: 100%; transition: transform .5s; }
.scale-label { font-weight: 900; margin-top: 6px; }
.calc-steps { display: flex; flex-direction: column; gap: 6px; align-items: center; margin: 8px 0; }
.calc-step { background: #eef6ff; border-radius: 12px; padding: 8px 14px; font-weight: 800; font-size: 1.15rem; animation: pop-in .3s; }
.haus { max-width: 520px; margin: 0 auto 8px; }
.haus-dach { background: #c0392b; color: #fff; font-weight: 900; text-align: center; padding: 26px 10px 8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); font-size: .95rem; }
.haus-wand { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #f6e7c8; padding: 6px; border: 3px solid #c9a26b; border-top: 0; }
.haus-raum { background: #fff; border-radius: 8px; padding: 4px; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: .72rem; }
.haus-raum span { font-size: 1.3rem; }
.haus-raum small { font-weight: 900; color: #c0392b; font-size: .8rem; }
.haus-raum.mark { background: #fff1b3; outline: 3px solid #f2c94c; }
.planet100 { display: flex; flex-direction: column; align-items: center; }
.p100 { display: grid; grid-template-columns: repeat(10, 22px); gap: 3px; }
.p100 i { width: 22px; height: 22px; border-radius: 5px; }
.p100 i.w { background: #2f80ed; }
.p100 i.l { background: #6fcf97; }
.p100-leg { margin-top: 6px; font-weight: 800; display: flex; gap: 6px; align-items: center; }
.p100-leg span { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.p100-leg span.w { background: #2f80ed; } .p100-leg span.l { background: #6fcf97; }
.story-card { background: #fff7e6; border-radius: 16px; padding: 10px 14px; text-align: center; font-size: 1.1rem; }
.probe-res { text-align: center; }
.probe-note { display: inline-flex; flex-direction: column; align-items: center; background: #fff4d6; border: 4px solid #f2994a; border-radius: 50%; width: 110px; height: 110px; justify-content: center; margin-bottom: 6px; }
.probe-note b { font-size: 3rem; line-height: 1; }
@media (max-width: 700px) {
  .map.geo { height: 1000px; }
  .budget-cols { grid-template-columns: 1fr; }
  .options.dirgrid { grid-template-columns: repeat(2, 1fr); }
  .haus-wand { grid-template-columns: repeat(3, 1fr); }
  .p100 { grid-template-columns: repeat(10, 16px); }
  .p100 i { width: 16px; height: 16px; }
  .zero { min-width: 40px; font-size: 2rem; }
}
/* Ballon-Weltreise: Feinschliff */
.map.geo { aspect-ratio: auto; height: 680px; max-height: none; }
.visual svg.gmap, .visual svg.chart, .visual svg.insel, .visual svg.berg, .visual svg.sonne, .visual svg.sig { width: 100%; max-width: 560px; max-height: 52vh; height: auto; }
.visual svg.sonne { max-width: 400px; }
.visual svg.berg { max-width: 460px; }
.visual svg.insel { max-width: 600px; }
.visual svg.chart { max-width: 520px; }
.gmap-wrap svg { max-height: 68vh; }
.gmap path { vector-effect: non-scaling-stroke; }
.gmap .m-cont { stroke-width: 2; }
.windrose-wrap svg, .einnorden-wrap svg { max-height: 46vh; }
@media (max-width: 700px) { .map.geo { height: 1000px; } }
.map.geo .station-pin { width: 172px; }
@media (max-width: 700px) { .map.geo .station-pin { width: 150px; } }

/* ---------- Ballon-Weltreise: Lern-Häppchen (zuerst lernen, dann üben) ---------- */
.pass-btn.lern-pfad { background: linear-gradient(135deg, #f2994a, #f2c94c); box-shadow: 0 5px 0 #b36b1f; color: #3a2400; position: relative; animation: lernglow 2.4s ease-in-out infinite; }
@keyframes lernglow { 50% { filter: brightness(1.08); box-shadow: 0 5px 0 #b36b1f, 0 0 0 6px rgba(242,201,76,.45); } }
.pass-btn.lern-pfad.done { background: linear-gradient(135deg, #1e8449, #27ae60); box-shadow: 0 5px 0 #145a32; color: #fff; animation: none; }
.lern-pfad .lp-bar { grid-column: 2; grid-row: auto; font-size: 0; height: 10px; border-radius: 6px; background: rgba(255,255,255,.55); overflow: hidden; margin-top: 6px; }
.lern-pfad .lp-bar i { display: block; height: 100%; background: #27ae60; border-radius: 6px; }
.station-pin .pin-lern { position: absolute; top: -10px; left: -8px; font-size: 1.15rem; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); opacity: .75; }
.station-pin .pin-lern.on { opacity: 1; }
.act-card.lern-card.first { border: 4px solid #f2994a; background: #fff8ec; animation: lernglow2 2.4s ease-in-out infinite; }
@keyframes lernglow2 { 50% { box-shadow: var(--shadow), 0 0 0 6px rgba(242,153,74,.35); } }
.act-card.lern-card.ok { border: 3px solid #b7e4c7; }
.act-pay.lern-badge { background: #ffd166; color: #4a2a00; }
.lern-card.ok .act-pay.lern-badge { background: #d9f7e5; color: #146c3a; }
.glesson.lern .lesson-body { min-height: 120px; }
.lern-words { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 0 0 10px; }
.lern-words .lw-t { font-weight: 800; color: var(--muted); font-size: .95rem; }
.lern-words .lw { background: #fff; border: 2px solid #2f80ed; color: #1d4f9c; border-radius: 12px; padding: 4px 12px; font-size: 1.15rem; letter-spacing: .02em; }
.lern-flip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.lern-flip.many { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.lf-card { min-height: 150px; border-radius: 20px; border: 3px solid #dfe9f3; background: linear-gradient(160deg, #eaf4ff, #fff); padding: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; font-weight: 700; box-shadow: 0 4px 0 #c9d6e3; transition: transform .2s; }
.lf-card:active { transform: scale(.97); }
.lf-card .lf-front, .lf-card .lf-back { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lf-card .lf-back { display: none; }
.lf-card.on { background: #fffdf2; border-color: #f2c94c; animation: pop-in .3s; }
.lf-card.on .lf-front { display: none; }
.lf-card.on .lf-back { display: flex; }
.lf-card .lf-e { font-size: 2.6rem; }
.lf-card .lf-vis svg { width: 100%; max-height: 120px; }
.lf-card .lf-back span { font-size: 1.02rem; line-height: 1.4; }
.lf-card .lf-back b { color: #b35c00; }
.lern-sort-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; font-size: 1.3rem; min-height: 120px; justify-content: center; }
.lern-sort-item.shake { animation: shake .4s; }
.lern-sort-item .lsi-e { font-size: 3.6rem; animation: bob2 2.4s ease-in-out infinite; }
.lern-bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.lern-bin { background: #f4f8fc; border: 3px solid #dfe9f3; border-radius: 18px; padding: 18px 10px; font-size: 1.15rem; font-weight: 800; box-shadow: 0 4px 0 #c9d6e3; }
.lern-bin:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9d6e3; }
.lern-sort-done { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 10px; font-size: 1.5rem; min-height: 1.6em; }
.lern-gap { font-size: 1.35rem; font-weight: 700; line-height: 2.1; text-align: center; margin: 6px 0 14px; }
.lg-slot { display: inline-block; min-width: 90px; border-bottom: 3px dashed #9bb3cc; padding: 0 8px; margin: 0 4px; color: #9bb3cc; text-align: center; }
.lg-slot.next { background: #fff4c2; border-bottom-color: #f2994a; border-radius: 8px 8px 0 0; }
.lg-slot.ok { color: #146c3a; border-bottom: 3px solid #27ae60; font-weight: 900; animation: bump .4s; }
.lern-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lern-chip { background: #fff; border: 3px solid #2f80ed; color: #1d4f9c; border-radius: 30px; padding: 10px 18px; font-size: 1.2rem; font-weight: 800; box-shadow: 0 3px 0 #9cc0f5; }
.lern-chip.used { opacity: .25; }
.lern-chip.shake { animation: shake .4s; border-color: var(--red); }
.lern-q-nr { text-align: center; color: var(--muted); font-weight: 800; }
.lern-quiz-done { text-align: center; font-size: 1.3rem; font-weight: 800; }
.lern-test { background: #f3f0ff; border: 3px solid #9b51e0; border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.lern-test small { font-weight: 800; color: #6b2fb3; }
.lern-test .lt-q { font-size: 1.2rem; font-weight: 800; margin: 6px 0 0; line-height: 1.45; }
.lern-answer { background: #effaf3; border: 3px solid #27ae60; border-radius: 18px; padding: 12px 16px; margin-top: 10px; animation: pop-in .3s; }
.lern-answer p { font-size: 1.12rem; line-height: 1.55; margin: 6px 0 0; }
.lern-answer.hidden-ans { display: none; }
.glesson.lern > .btn.primary, .lesson-body > .btn.primary { display: block; margin: 0 auto; }
.dichte-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dichte-box { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.dichte-box .db-sq { width: 130px; height: 130px; border: 3px solid #1d2b3a; border-radius: 6px; background: #f7f1e3; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 8px; }
.dichte-box .db-sq i { width: 10px; height: 10px; border-radius: 50%; background: #eb5757; }
.lern-money { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lern-money .lm-plus { font-size: 2rem; font-weight: 900; }
.lern-done { text-align: center; }
.lern-done .ld-big { font-size: 5rem; animation: bob2 2s ease-in-out infinite; }
.lern-done .ld-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 12px; }
.lern-done .ld-btns .btn { width: min(460px, 100%); }
.postcard.learn-first { --c: #f2994a; text-align: center; }
.postcard.learn-first p { font-size: 1.12rem; line-height: 1.5; }
@media (max-width: 700px) {
  .lern-gap { font-size: 1.15rem; }
  .lg-slot { min-width: 64px; }
  .dichte-box .db-sq { width: 96px; height: 96px; gap: 3px; padding: 5px; }
  .dichte-box .db-sq i { width: 8px; height: 8px; }
}
.dichte-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
