/* Lernspaß – bewusst einfache CSS (läuft auch auf alten Tablets: kein flex-gap, keine neuen Selektoren) */
:root {
  --bg: #FFF7E6;
  --text: #3D2C5E;
  --weich: #6B5B8C;
  --karte: #FFFFFF;
  --lila: #7C5CFF;
  --gruen: #2FB45A;
  --blau: #339AF0;
  --schatten: rgba(61, 44, 94, 0.18);
  --f1: #FF6B6B; --f2: #FFA94D; --f3: #FCC419; --f4: #51CF66;
  --f5: #339AF0; --f6: #9775FA; --f7: #F783AC; --f8: #20C997;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}
button, input, select { font: inherit; color: inherit; }
button {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  padding: 0;
}
input, select { -webkit-user-select: text; user-select: text; }

#app { position: relative; min-height: 100vh; overflow: hidden; }

.seite {
  position: relative;
  min-height: 100vh;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  padding: 12px 16px 24px;
  padding-top: calc(12px + env(safe-area-inset-top));
}
.seite.start {
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  text-align: center;
}

/* ---------- Überschrift / Start ---------- */
.titel { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; margin-bottom: 16px; }
.titel h1 { font-size: 44px; margin: 0 0 0 12px; color: var(--lila); letter-spacing: 1px; }
.titel-bild { font-size: 64px; line-height: 1; }
.hinweis { font-size: 22px; color: var(--weich); margin: 8px 0 24px; }
.klein { font-size: 15px; color: var(--weich); }

/* ---------- Große Knöpfe ---------- */
.grossknopf {
  min-width: 120px; min-height: 96px;
  padding: 16px 28px;
  margin: 10px;
  border-radius: 28px;
  font-size: 44px;
  font-weight: bold;
  color: #fff;
  background: var(--lila);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
  -webkit-transition: -webkit-transform 0.08s; transition: transform 0.08s;
}
.grossknopf:active { -webkit-transform: translateY(5px); transform: translateY(5px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.grossknopf.gruen { background: var(--gruen); }
.grossknopf.blau { background: var(--blau); }
.grossknopf.breit { font-size: 26px; min-height: 88px; width: 100%; max-width: 480px; margin: 18px auto 8px; display: block; }

.rund {
  width: 80px; height: 80px;
  min-width: 80px;
  border-radius: 50%;
  background: var(--karte);
  font-size: 40px;
  line-height: 80px;
  text-align: center;
  box-shadow: 0 5px 0 var(--schatten);
}
.rund:active { -webkit-transform: translateY(3px); transform: translateY(3px); box-shadow: 0 2px 0 var(--schatten); }
.rund.aus { opacity: 0.35; }
.platzhalter { width: 80px; min-width: 80px; }

/* ---------- Profilwahl ---------- */
.profilliste { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; max-width: 960px; }
.profilkarte {
  width: 190px; min-height: 210px;
  margin: 12px;
  padding: 14px 10px;
  border-radius: 32px;
  color: #fff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.16);
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.profilkarte:active { -webkit-transform: translateY(5px); transform: translateY(5px); }
.profil-avatar { font-size: 88px; line-height: 1.1; }
.profil-avatar.klein { font-size: 40px; margin-right: 10px; vertical-align: middle; }
.profil-name { font-size: 28px; font-weight: bold; margin-top: 6px; word-break: break-word; }
.profil-sterne { font-size: 20px; margin-top: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 20px; padding: 2px 12px; }

.eltern-knopf {
  position: absolute; top: 12px; right: 12px;
  top: calc(12px + env(safe-area-inset-top));
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 28px; opacity: 0.55;
  background: rgba(255, 255, 255, 0.7);
}

/* Farbtöne für Karten/Kacheln */
.farbton-0, .farbe-1 .kachel-hg, .kachel.farbe-1 { background: var(--f1); }
.farbton-1, .kachel.farbe-2 { background: var(--f2); }
.farbton-2, .kachel.farbe-3 { background: var(--f3); }
.farbton-3, .kachel.farbe-4 { background: var(--f4); }
.farbton-4, .kachel.farbe-5 { background: var(--f5); }
.farbton-5, .kachel.farbe-6 { background: var(--f6); }
.farbton-6, .kachel.farbe-7 { background: var(--f7); }
.farbton-7, .kachel.farbe-8 { background: var(--f8); }

/* ---------- Menü ---------- */
.menukopf { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-bottom: 12px; }
.menukopf .avatar { font-size: 48px; }
.menukopf-text { margin-left: 14px; }
.menukopf-name { font-size: 30px; font-weight: bold; }
.menukopf-info { font-size: 20px; color: var(--weich); white-space: pre; }
.kacheln {
  -webkit-flex: 1; flex: 1;
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  -webkit-align-content: center; align-content: center;
  -webkit-justify-content: center; justify-content: center;
}
.kachel {
  width: 42vw; max-width: 300px; min-width: 150px;
  height: 34vw; max-height: 230px; min-height: 150px;
  margin: 10px;
  border-radius: 36px;
  color: #fff;
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.16);
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
@media (orientation: landscape) { .kachel { width: 27vw; height: 25vw; } }
.kachel:active { -webkit-transform: translateY(6px); transform: translateY(6px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16); }
.kachel-icon { font-size: 72px; line-height: 1.1; }
.kachel-titel { font-size: 24px; font-weight: bold; margin-top: 4px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.kachel-sterne { font-size: 18px; margin-top: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 18px; padding: 1px 10px; }

/* ---------- Spiel-Leiste ---------- */
.leiste { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; }
.leiste-mitte { -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.leiste-icon { font-size: 40px; margin: 0 8px; }
.leiste-titel { font-size: 26px; font-weight: bold; }
.sternzahl { font-size: 26px; font-weight: bold; margin: 0 10px; background: var(--karte); border-radius: 24px; padding: 4px 14px; box-shadow: 0 3px 0 var(--schatten); }
.sternzahl.hupf { -webkit-animation: hupf 0.5s; animation: hupf 0.5s; }
.punkte { margin: 0 8px; }
.punkt { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: rgba(61, 44, 94, 0.15); margin: 0 4px; vertical-align: middle; }
.punkt.voll { background: var(--f3); }
.punkt.jetzt { background: var(--lila); }

.flaeche {
  -webkit-flex: 1; flex: 1;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-justify-content: center; justify-content: center;
  position: relative;
}

/* ---------- Aufgabe ---------- */
.aufgabe {
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: space-around; justify-content: space-around;
  -webkit-flex: 1; flex: 1;
}
@media (orientation: landscape) {
  .aufgabe { -webkit-flex-direction: row; flex-direction: row; }
  .aufgabe .frage { -webkit-flex: 1; flex: 1; }
  .aufgabe .optionen { -webkit-flex: 1; flex: 1; }
}
.frage {
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  text-align: center;
  padding: 8px;
  min-height: 120px;
}
.optionen {
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  -webkit-align-content: center; align-content: center;
}
.option {
  width: 26vmin; height: 26vmin;
  min-width: 100px; min-height: 100px;
  max-width: 220px; max-height: 220px;
  margin: 10px;
  border-radius: 30px;
  background: var(--karte);
  border: 5px solid #EAE3FF;
  box-shadow: 0 8px 0 var(--schatten);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.08s; transition: opacity 0.3s, transform 0.08s;
}
.option:active { -webkit-transform: translateY(5px); transform: translateY(5px); box-shadow: 0 3px 0 var(--schatten); }
.option .bild { font-size: 15vmin; }
.option .svgbild { width: 80%; height: 80%; }
.opt-text { font-size: 11vmin; font-weight: bold; line-height: 1; }
.optionen.breit .option { width: auto; min-width: 42vmin; height: 18vmin; min-height: 96px; padding: 0 18px; }
.optionen.breit .opt-text { font-size: 7vmin; }
.option.richtig { border-color: var(--gruen); background: #E6FCEB; -webkit-animation: hupf 0.6s; animation: hupf 0.6s; }
.option.weg { opacity: 0.4; }
.option.tipp { -webkit-animation: puls 1.1s infinite; animation: puls 1.1s infinite; border-color: var(--f3); }
.wackeln { -webkit-animation: wackeln 0.45s; animation: wackeln 0.45s; }

.bild { display: inline-block; font-size: 22vmin; line-height: 1.1; }
.bild.gross { font-size: 30vmin; }
.bild.riesig { font-size: 34vmin; }
.svgbild { width: 30vmin; height: 30vmin; display: inline-block; }
.svgbild svg { width: 100%; height: 100%; display: block; }
.frage .svgbild { width: 36vmin; height: 36vmin; }
.farbwort { font-size: 13vmin; font-weight: bold; background: var(--karte); border-radius: 30px; padding: 10px 34px; box-shadow: 0 6px 0 var(--schatten); }

/* ---------- ABC ---------- */
.abc-raster { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; padding: 8px 0; }
.abc-taste {
  width: 88px; height: 88px; margin: 6px;
  border-radius: 24px; color: #fff;
  font-size: 50px; font-weight: bold;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.16);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.18);
}
.abc-taste:active { -webkit-transform: translateY(4px); transform: translateY(4px); }
.abc-taste.entdeckt { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.16), inset 0 0 0 5px rgba(255, 255, 255, 0.7); }
.abc-karte {
  position: fixed; left: 50%; top: 50%;
  width: 86vmin; max-width: 560px; min-height: 60vmin;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  background: var(--karte);
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(61, 44, 94, 0.35);
  text-align: center;
  padding: 20px;
  z-index: 10;
}
.abc-karte.versteckt { display: none; }
.abc-karte.rein { -webkit-animation: rein 0.35s; animation: rein 0.35s; }
.abc-gross { font-size: 20vmin; font-weight: bold; color: var(--lila); line-height: 1; }
.abc-gross .klein { font-size: 14vmin; color: var(--f2); margin-left: 4vmin; }
.abc-wort { font-size: 9vmin; font-weight: bold; margin-top: 6px; }
.abc-wort strong { color: var(--f1); }
.abc-karte .zu { position: absolute; right: -10px; top: -10px; }

/* ---------- Zählen ---------- */
.zaehlbox { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; max-width: 620px; background: var(--karte); border-radius: 30px; padding: 10px; box-shadow: 0 6px 0 var(--schatten); }
.zaehlding { position: relative; font-size: 11vmin; width: 15vmin; height: 15vmin; min-width: 80px; min-height: 80px; margin: 4px; line-height: 1; }
.zaehlding.gezaehlt { -webkit-animation: hupf 0.4s; animation: hupf 0.4s; }
.zaehlding.gezaehlt:after {
  content: attr(data-nr);
  position: absolute; right: 0; top: 0;
  background: var(--lila); color: #fff;
  font-size: 22px; font-weight: bold;
  width: 34px; height: 34px; line-height: 34px; border-radius: 50%;
}

/* ---------- Stufe 2 ---------- */
.buchstabe-gross { font-size: 34vmin; font-weight: bold; color: var(--lila); line-height: 1; background: var(--karte); border-radius: 40px; padding: 0 6vmin; box-shadow: 0 6px 0 var(--schatten); }
.ohr { font-size: 26vmin; -webkit-animation: puls 1.6s infinite; animation: puls 1.6s infinite; }
.zahlenstrahl { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.zs-zahl { font-size: 16vmin; font-weight: bold; background: var(--karte); border-radius: 26px; padding: 0 4vmin; margin: 0 2vmin; box-shadow: 0 6px 0 var(--schatten); min-width: 22vmin; text-align: center; }
.zs-zahl.frage-zeichen { color: var(--lila); }
.zs-pfeil { font-size: 9vmin; }
.menge { display: inline-block; max-width: 100%; text-align: center; line-height: 1; }
.menge-ding { display: inline-block; font-size: 7vmin; margin: 0.6vmin; }
.menge-ding.blass { opacity: 0.25; -webkit-filter: grayscale(1); filter: grayscale(1); }
.rechnung { text-align: center; }
.rechenbild { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; background: var(--karte); border-radius: 30px; padding: 2vmin 3vmin; box-shadow: 0 6px 0 var(--schatten); max-width: 92vw; }
.rechenbild .menge { max-width: 40vmin; }
.rz { font-size: 10vmin; font-weight: bold; color: var(--lila); margin: 0 2vmin; }
.rechentext { font-size: 11vmin; font-weight: bold; margin-top: 2vmin; }
.vergleich-frage { font-size: 9vmin; font-weight: bold; background: var(--karte); border-radius: 30px; padding: 1vmin 5vmin; box-shadow: 0 6px 0 var(--schatten); }
.optionen.gruppen .option { width: 40vmin; height: auto; min-height: 30vmin; max-width: 340px; max-height: none; padding: 2vmin; }
.optionen.gruppen .menge-ding { font-size: 7.5vmin; }

/* ---------- Stufe 3 ---------- */
.wortbau { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-around; justify-content: space-around; -webkit-flex: 1; flex: 1; }
.luecken, .kacheln-buchstaben { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; }
.luecke { width: 12vmin; height: 14vmin; min-width: 56px; min-height: 66px; margin: 1vmin; border-bottom: 6px solid var(--lila); font-size: 10vmin; font-weight: bold; text-align: center; line-height: 14vmin; color: var(--lila); }
.luecke.voll { -webkit-animation: hupf 0.4s; animation: hupf 0.4s; }
.bkachel { width: 15vmin; height: 15vmin; min-width: 80px; min-height: 80px; margin: 1.2vmin; border-radius: 22px; background: var(--f3); color: var(--text); font-size: 10vmin; font-weight: bold; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18); }
.bkachel:active { -webkit-transform: translateY(4px); transform: translateY(4px); }
.bkachel.benutzt { visibility: hidden; }
.bkachel.tipp { -webkit-animation: puls 1.1s infinite; animation: puls 1.1s infinite; background: var(--f4); }
.gross-rechnung { font-size: 14vmin; background: var(--karte); border-radius: 30px; padding: 2vmin 5vmin; box-shadow: 0 6px 0 var(--schatten); white-space: nowrap; }
.uhr { width: 46vmin; height: 46vmin; display: inline-block; }
.uhr svg { width: 100%; height: 100%; display: block; }

/* ---------- Nachmalen ---------- */
.malrahmen { background: var(--karte); border-radius: 30px; padding: 10px; box-shadow: 0 6px 0 var(--schatten); line-height: 0; }
.malflaeche { display: block; touch-action: none; -ms-touch-action: none; cursor: crosshair; }
.malknoepfe { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; margin: 12px; }
@media (orientation: landscape) { .malknoepfe { -webkit-flex-direction: column; flex-direction: column; } }
.malknoepfe .rund { margin: 10px; }
.malbild { font-size: 70px; margin: 6px 10px; }
.malbild.svgbild { width: 80px; height: 80px; }

/* ---------- Ende ---------- */
.ende { text-align: center; }
.ende-avatar { font-size: 120px; line-height: 1.1; -webkit-animation: hupf 1s; animation: hupf 1s; }
.ende-text { font-size: 48px; font-weight: bold; color: var(--lila); margin: 8px 0; }
.endsterne { font-size: 64px; min-height: 80px; }
.endstern { display: inline-block; -webkit-animation: rein 0.5s both; animation: rein 0.5s both; }
.knopfreihe { margin-top: 16px; }
.pause-mond { font-size: 140px; }

/* fliegende Sterne */
.flugstern {
  position: fixed; font-size: 54px; pointer-events: none; z-index: 20;
  -webkit-animation: flug 1.4s ease-out both; animation: flug 1.4s ease-out both;
}

/* ---------- Elternbereich ---------- */
.tor { -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.tor-frage { font-size: 26px; font-weight: bold; text-align: center; margin-bottom: 10px; }
.tor-anzeige { font-size: 48px; min-height: 64px; letter-spacing: 8px; margin-bottom: 10px; }
.tor-pad { width: 300px; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; }
.tor-taste { width: 84px; height: 84px; margin: 8px; border-radius: 50%; background: var(--karte); font-size: 34px; font-weight: bold; box-shadow: 0 5px 0 var(--schatten); }
.tor-taste.ok { background: var(--gruen); color: #fff; }
.textknopf { margin-top: 18px; color: var(--lila); text-decoration: underline; font-size: 18px; padding: 12px; }

.elterninhalt { max-width: 760px; width: 100%; margin: 0 auto; }
.abschnitt { background: var(--karte); border-radius: 24px; padding: 14px 18px; margin: 14px 0; box-shadow: 0 4px 0 var(--schatten); }
.abschnitt h2 { margin: 0 0 10px; font-size: 22px; }
.kindkarte { border: 3px solid #EAE3FF; border-radius: 20px; padding: 12px; margin-bottom: 14px; }
.kindkopf { font-size: 22px; margin-bottom: 6px; }
.feldname { font-weight: bold; margin: 10px 0 4px; font-size: 16px; color: var(--weich); }
.wahlreihe, .knopfzeile { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; }
.wahl, .kleinknopf { min-height: 56px; padding: 8px 16px; margin: 4px 8px 4px 0; border-radius: 16px; background: #F3EFFF; font-size: 17px; }
.wahl.an { background: var(--lila); color: #fff; font-weight: bold; }
.kleinknopf.gruen { background: var(--gruen); color: #fff; }
.kleinknopf.leise { background: #FFF0F0; color: #8a4b4b; }
.auswahl, .eingabe { min-height: 56px; padding: 8px 12px; border-radius: 14px; border: 2px solid #D9D0F5; background: #fff; font-size: 18px; margin: 4px 8px 4px 0; }
.eingabe.gross { width: 100%; font-size: 26px; }
.sterneliste { margin: 4px 0; padding-left: 22px; }
.sterneliste li { margin: 3px 0; }
.avatarwahl { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.avatar-option { width: 80px; height: 80px; margin: 5px; border-radius: 22px; font-size: 48px; background: #F3EFFF; border: 4px solid transparent; }
.avatar-option.an { border-color: var(--lila); background: #fff; }

/* ---------- Animationen ---------- */
@-webkit-keyframes hupf { 0% { -webkit-transform: scale(1); } 40% { -webkit-transform: scale(1.18); } 100% { -webkit-transform: scale(1); } }
@keyframes hupf { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@-webkit-keyframes wackeln { 0%, 100% { -webkit-transform: translateX(0); } 25% { -webkit-transform: translateX(-10px); } 75% { -webkit-transform: translateX(10px); } }
@keyframes wackeln { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
@-webkit-keyframes puls { 0%, 100% { -webkit-transform: scale(1); } 50% { -webkit-transform: scale(1.08); } }
@keyframes puls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@-webkit-keyframes rein { 0% { opacity: 0; -webkit-transform: translate(-50%, -50%) scale(0.6); } 100% { opacity: 1; -webkit-transform: translate(-50%, -50%) scale(1); } }
@keyframes rein { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.endstern { -webkit-animation-name: plopp; animation-name: plopp; }
@-webkit-keyframes plopp { 0% { opacity: 0; -webkit-transform: scale(0.3); } 70% { -webkit-transform: scale(1.25); } 100% { opacity: 1; -webkit-transform: scale(1); } }
@keyframes plopp { 0% { opacity: 0; transform: scale(0.3); } 70% { transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
@-webkit-keyframes flug { 0% { opacity: 0; -webkit-transform: translateY(0) scale(0.4); } 25% { opacity: 1; } 100% { opacity: 0; -webkit-transform: translateY(-38vh) scale(1.3) rotate(160deg); } }
@keyframes flug { 0% { opacity: 0; transform: translateY(0) scale(0.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-38vh) scale(1.3) rotate(160deg); } }

@media (prefers-reduced-motion: reduce) {
  .flugstern { display: none; }
  .option.tipp { -webkit-animation: none; animation: none; }
}

/* kleine Bildschirme (Handy) */
@media (max-width: 520px) {
  .titel h1 { font-size: 34px; }
  .profilkarte { width: 150px; min-height: 170px; margin: 8px; }
  .profil-avatar { font-size: 64px; }
  .abc-taste { width: 80px; height: 80px; font-size: 44px; margin: 4px; }
  .leiste-icon { display: none; }
}

/* ---------- Belohnungen ---------- */
.kachel.schatz { background: linear-gradient(135deg, #FFB703, #FB8500); }
.schatzliste { max-width: 760px; width: 100%; margin: 10px auto; }
.schatzkarte {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  background: var(--karte); border-radius: 28px; padding: 12px 16px; margin: 12px 0;
  box-shadow: 0 6px 0 var(--schatten); border: 4px solid transparent;
}
.schatzkarte.bereit { border-color: var(--gruen); -webkit-animation: puls 1.6s infinite; animation: puls 1.6s infinite; }
.schatz-bild { font-size: 72px; line-height: 1; margin-right: 14px; }
.schatz-text { -webkit-flex: 1; flex: 1; min-width: 0; }
.schatz-name { font-size: 26px; font-weight: bold; word-break: break-word; }
.schatz-preis { font-size: 20px; color: var(--weich); margin-top: 4px; }
.schatz-fehlt { font-size: 20px; font-weight: bold; color: var(--weich); margin-left: 10px; white-space: nowrap; }
.balken { height: 22px; border-radius: 11px; background: #EEE8FF; margin-top: 8px; overflow: hidden; }
.balken-voll { height: 100%; width: 0; border-radius: 11px; background: linear-gradient(90deg, var(--f3), var(--f2)); }
.schatzkarte.bereit .balken-voll { background: var(--gruen); }
.grossknopf.einloesen { min-width: 96px; margin: 0 0 0 10px; padding: 10px 18px; }
.belohnungszeile { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 6px 0; border-bottom: 1px solid #EEE8FF; }
.bz-bild { font-size: 36px; margin-right: 10px; }
.bz-name { -webkit-flex: 1; flex: 1; font-size: 18px; }
.belohnungszeile strong { margin: 0 10px; }
.avatar-option.klein { width: 60px; height: 60px; font-size: 34px; border-radius: 16px; margin: 4px; }
.familiencode { font-size: 30px; font-weight: bold; letter-spacing: 3px; font-family: "Courier New", monospace; background: #F3EFFF; border-radius: 16px; padding: 10px 16px; display: inline-block; margin: 6px 0; -webkit-user-select: text; user-select: text; }
@media (prefers-reduced-motion: reduce) { .schatzkarte.bereit { -webkit-animation: none; animation: none; } }

/* ---------- Versteckter Elternzugang (3 s halten) ---------- */
.geheim { position: relative; display: inline-block; -webkit-touch-callout: none; touch-action: none; }
.geheim:after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 120%; height: 120%; margin: -60% 0 0 -60%;
  border-radius: 50%; border: 6px solid var(--lila);
  opacity: 0; -webkit-transform: scale(0.3); transform: scale(0.3);
  pointer-events: none;
}
.geheim.halten:after { -webkit-animation: halten 3s linear forwards; animation: halten 3s linear forwards; }
@-webkit-keyframes halten { 0% { opacity: 0; -webkit-transform: scale(0.3); } 15% { opacity: 0; } 100% { opacity: 0.9; -webkit-transform: scale(1); } }
@keyframes halten { 0% { opacity: 0; transform: scale(0.3); } 15% { opacity: 0; } 100% { opacity: 0.9; transform: scale(1); } }
