/* English Star – K-Pop-Bühnenlook (eigenes Design) */
:root {
  --bg: #120a2e; --bg2: #1c1145; --card: rgba(255,255,255,.07); --card2: rgba(255,255,255,.12);
  --line: rgba(255,255,255,.14); --text: #f7f3ff; --muted: #b9addf; --pink: #ff4fd8; --violet: #8b5cf6;
  --cyan: #22d3ee; --gold: #ffd166; --ok: #34e3a0; --warn: #ffb347; --bad: #ff6b8b;
  --grad: linear-gradient(135deg, #ff4fd8 0%, #8b5cf6 55%, #22d3ee 100%);
  --radius: 22px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Nachtbuehne: Mond, Sterne, schwenkende Scheinwerfer, Lightstick-Publikum */
#bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(60vmax 40vmax at 82% 8%, rgba(255,240,200,.16), transparent 60%),
              radial-gradient(120% 80% at 50% 0%, #2a1466 0%, var(--bg) 62%); }
#bg::before { content: ""; position: absolute; right: 9vw; top: 6vh; width: 70px; height: 70px; border-radius: 50%;
  box-shadow: -14px 6px 0 0 #ffe9b8; filter: drop-shadow(0 0 18px rgba(255,233,184,.7)); transform: rotate(-20deg); }
#bg::after { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 46%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 50%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 58%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }
#bg span { position: absolute; top: -10vh; width: 26vmax; height: 120vh; transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,0) 85%); filter: blur(6px);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); mix-blend-mode: screen; animation: sweep 9s ease-in-out infinite alternate; }
#bg span:nth-child(1) { left: -2vmax; background: linear-gradient(to bottom, rgba(255,79,216,.45), transparent 85%); }
#bg span:nth-child(2) { left: 38%; animation-duration: 11s; animation-delay: -4s; }
#bg span:nth-child(3) { right: -2vmax; background: linear-gradient(to bottom, rgba(34,211,238,.4), transparent 85%); animation-delay: -7s; }
@keyframes sweep { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
.crowd { position: fixed; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; opacity: .7; pointer-events: none;
  background: url("/static/img/crowd.svg") repeat-x bottom / 120px 60px; animation: wave 2.4s ease-in-out infinite alternate; }
.crowd.back { height: 150px; opacity: .35; background-size: 90px 45px; animation-delay: -1.2s; filter: blur(1px); }
@keyframes wave { to { background-position-y: calc(100% - 6px); } }
body.parent .crowd { display: none; }
/* Buehnenbanner auf der Startseite */
.stage { position: relative; margin: 4px -16px 6px; height: 150px; background: url("/static/img/stage.svg") no-repeat center bottom / contain; }
.stage .eq { position: absolute; bottom: 22px; display: flex; gap: 3px; align-items: flex-end; height: 40px; }
.stage .eq.l { left: 18px; } .stage .eq.r { right: 18px; }
.stage .eq i { width: 5px; border-radius: 3px; background: var(--grad); animation: eq 1s ease-in-out infinite alternate; }
.stage .eq i:nth-child(2) { animation-delay: -.3s; } .stage .eq i:nth-child(3) { animation-delay: -.6s; } .stage .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 6px; } to { height: 38px; } }
.hangul { font-weight: 900; letter-spacing: .02em; }
/* koreanisches Ornamentband (eigenes Muster) */
.ornament { height: 10px; margin: 8px 0 14px; border-radius: 6px; opacity: .8;
  background: repeating-linear-gradient(90deg, #ff4fd8 0 10px, #ffd166 10px 14px, #22d3ee 14px 24px, #8b5cf6 24px 28px, #34e3a0 28px 38px, #8b5cf6 38px 42px); }
.ghost-card { display: flex; gap: 12px; align-items: center; }
.ghost-card .ghosts { font-size: 1.9rem; letter-spacing: -6px; animation: bob 2s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-5px); } }
.shield { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.fig-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.fig-strip.inline { margin-bottom: 12px; }
.fig { margin: 0; flex: 0 0 auto; max-width: 82%; scroll-snap-align: start; cursor: zoom-in; }
.fig img { display: block; height: 190px; max-width: 100%; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,.25); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.fig-strip.inline .fig img { height: 160px; }
.fig figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; max-width: 280px; }
.pages-strip { display: flex; gap: 10px; overflow-x: auto; margin-top: 10px; scroll-snap-type: x mandatory; }
.pages-strip img { height: 220px; border-radius: 14px; flex: 0 0 auto; scroll-snap-align: start; border: 2px solid var(--line); cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); overflow: auto; -webkit-overflow-scrolling: touch; text-align: center; touch-action: pinch-zoom pan-x pan-y; }
.zoom img { width: 100%; max-width: 1100px; height: auto; margin-top: calc(10px + var(--safe-t)); }
.zoom-hint { position: fixed; bottom: calc(14px + var(--safe-b)); left: 0; right: 0; color: #fff; font-size: .85rem; opacity: .8; }
.combo { position: fixed; top: calc(70px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 60; font-weight: 900; font-size: 1.6rem;
  background: var(--grad); color: #fff; padding: 8px 18px; border-radius: 999px; box-shadow: 0 8px 30px rgba(255,79,216,.6); animation: comboPop 1.4s ease forwards; pointer-events: none; }
@keyframes comboPop { 0% { transform: translateX(-50%) scale(.3); opacity: 0; } 20% { transform: translateX(-50%) scale(1.15); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(-50%) translateY(-30px); opacity: 0; } }
/* Tour */
.tour-shade { position: fixed; inset: 0; z-index: 80; background: transparent; }
.tour-ring { position: fixed; z-index: 81; border-radius: 22px; border: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(8,4,24,.62), 0 0 24px var(--pink); pointer-events: none; transition: all .3s; }
.tour-bubble { position: fixed; left: 50%; transform: translateX(-50%); width: min(92vw, 440px); z-index: 82; background: #fff; color: #2b1166;
  border-radius: 22px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.tour-bubble p { font-size: 1.05rem; }
.tour-bubble .btn-ghost { color: #6d28d9; border-color: #e9e3fb; }
.tour-bubble .muted { color: #7a70a0; }
.help-btn { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 1.2rem; }
/* Photocards */
.badge { background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); aspect-ratio: 5 / 7; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.badge:not(.locked)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, rgba(34,211,238,.25) 55%, transparent 70%); animation: holo 4s linear infinite; }
@keyframes holo { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { #bg span, .pulse, .shine { animation: none !important; } }

#app { max-width: 760px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(100px + var(--safe-b)); min-height: 100vh; }
.boot { display: grid; place-items: center; min-height: 70vh; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 900; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 800; }
p { margin: .3em 0 .8em; }
a { color: var(--cyan); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glow-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card.tap { cursor: pointer; transition: transform .15s ease, background .2s; }
.card.tap:active { transform: scale(.98); background: var(--card2); }
.hero { position: relative; overflow: hidden; border: none; background: var(--grad); color: #fff; box-shadow: 0 12px 40px rgba(255,79,216,.35); }
.hero::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  animation: shine 5s ease-in-out infinite; }
.hero > * { position: relative; z-index: 1; }
@keyframes shine { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.hero .label { text-transform: uppercase; font-size: .78rem; font-weight: 900; letter-spacing: .12em; opacity: .9; }
.hero .title { font-size: 1.5rem; font-weight: 900; margin: 4px 0; }

button, .btn { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 14px 22px; min-height: 52px;
  cursor: pointer; color: #fff; background: var(--card2); border: 1px solid var(--line); transition: transform .12s, filter .2s, opacity .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button:active, .btn:active { transform: scale(.96); }
button:disabled { opacity: .45; cursor: default; }
.btn-main { background: var(--grad); border: none; box-shadow: 0 8px 24px rgba(139,92,246,.45); }
.btn-white { background: #fff; color: #3b1478; border: none; }
.btn-ok { background: linear-gradient(135deg, #22d3a0, #22d3ee); border: none; }
.btn-ghost { background: transparent; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.icon-btn { width: 52px; padding: 0; flex: 0 0 52px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--card2); font-size: .85rem; font-weight: 800; }
.pill.ok { background: rgba(52,227,160,.2); color: #8ff5cc; }
.pill.warn { background: rgba(255,179,71,.2); color: #ffd39c; }
.pill.bad { background: rgba(255,107,139,.2); color: #ffb3c4; }
.pill.info { background: rgba(34,211,238,.18); color: #a5f3fc; }

input, textarea, select { font: inherit; font-size: 18px; color: var(--text); background: rgba(0,0,0,.28); border: 2px solid var(--line);
  border-radius: 16px; padding: 13px 15px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.25); }
textarea { min-height: 92px; resize: vertical; }
label { display: block; font-weight: 800; margin: 10px 0 6px; font-size: .92rem; color: var(--muted); }
select option { color: #111; }

/* Navigation unten (einhaendig) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(18,10,46,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar nav { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; color: var(--muted);
  text-decoration: none; font-size: .72rem; font-weight: 800; min-height: 54px; justify-content: center; }
.tabbar a .ic { font-size: 1.45rem; line-height: 1; }
.tabbar a.on { color: #fff; background: rgba(139,92,246,.28); }

.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.topbar h1, .topbar h2 { margin: 0; flex: 1; }
.back { width: 46px; min-height: 46px; padding: 0; border-radius: 50%; }

/* Fortschritt */
.bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 14px rgba(255,79,216,.6); }
.lightstick { display: flex; gap: 4px; }
.lightstick i { flex: 1; height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); transition: background .3s, box-shadow .3s; }
.lightstick i.done { background: var(--grad); box-shadow: 0 0 10px rgba(34,211,238,.6); }
.lightstick i.miss { background: rgba(255,179,71,.65); }
.lightstick i.now { background: rgba(255,255,255,.45); }
.ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 86px;
  background: conic-gradient(var(--pink) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.ring > div { width: 68px; height: 68px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { text-align: center; padding: 12px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.45rem; font-weight: 900; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.skill { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.skill:last-child { border-bottom: 0; }
.skill .bar { grid-column: 1 / -1; height: 8px; }
.lvl-sure { color: var(--ok); } .lvl-practice { color: var(--gold); } .lvl-started { color: var(--cyan); } .lvl-new { color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.stars .off { color: rgba(255,255,255,.2); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--muted); }
.day.on { background: var(--grad); color: #fff; box-shadow: 0 0 12px rgba(255,79,216,.45); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 12px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: .78rem; font-weight: 800; }
.badge .b-ic { font-size: 1.9rem; display: block; margin-bottom: 4px; }
.badge.locked { opacity: .35; filter: grayscale(1); }

/* Uebungen */
.ex-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ex-head .lightstick { flex: 1; }
.prompt { font-weight: 800; color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.task-text { font-size: 1.32rem; font-weight: 800; margin: 4px 0 16px; line-height: 1.35; }
.gapword { display: inline-block; min-width: 70px; border-bottom: 3px solid var(--cyan); margin: 0 4px; }
.options { display: grid; gap: 10px; }
.option { text-align: left; justify-content: flex-start; padding: 16px 18px; border-radius: 18px; font-weight: 700; font-size: 1.05rem; min-height: 58px; background: rgba(255,255,255,.08); }
.option.sel { border-color: var(--violet); background: rgba(139,92,246,.3); box-shadow: 0 0 0 3px rgba(139,92,246,.35); }
.option.right { border-color: var(--ok); background: rgba(52,227,160,.22); }
.option.wrong { border-color: var(--bad); background: rgba(255,107,139,.2); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { padding: 10px 14px; min-height: 46px; border-radius: 14px; background: rgba(255,255,255,.12); font-weight: 800; font-size: 1.02rem; }
.tile.used { opacity: .25; pointer-events: none; }
.answer-zone { min-height: 64px; border: 2px dashed var(--line); border-radius: 18px; padding: 10px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.answer-zone:empty::before { content: attr(data-empty); color: var(--muted); font-size: .92rem; }
.seq-item { display: flex; gap: 10px; align-items: center; text-align: left; justify-content: flex-start; width: 100%; border-radius: 16px; padding: 12px 14px; }
.seq-item .num { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: .9rem; }
.cloze { font-size: 1.12rem; line-height: 2.3; }
.cloze .slot { display: inline-block; min-width: 92px; padding: 0 10px; min-height: 38px; line-height: 34px; border-radius: 12px; border: 2px dashed var(--cyan);
  background: rgba(34,211,238,.08); cursor: pointer; vertical-align: middle; font-weight: 800; text-align: center; }
.cloze .slot.active { border-style: solid; box-shadow: 0 0 0 4px rgba(34,211,238,.3); }
.cloze .slot.right { border-color: var(--ok); background: rgba(52,227,160,.18); }
.cloze .slot.wrong { border-color: var(--bad); background: rgba(255,107,139,.18); }
.inputrow { display: flex; gap: 10px; align-items: flex-start; }
.inputrow textarea, .inputrow input { flex: 1; }
.mic { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; font-size: 1.5rem; padding: 0; background: var(--grad); border: none; }
.mic.live { animation: pulse 1.1s ease-in-out infinite; background: linear-gradient(135deg, #ff4f7b, #ff4fd8); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,79,216,.6); } 50% { box-shadow: 0 0 0 16px rgba(255,79,216,0); } }
.speech-note { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.feedback { margin-top: 16px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.feedback.correct { background: rgba(52,227,160,.16); border-color: rgba(52,227,160,.5); }
.feedback.almost { background: rgba(255,209,102,.14); border-color: rgba(255,209,102,.5); }
.feedback.wrong { background: rgba(255,107,139,.14); border-color: rgba(255,107,139,.5); }
.feedback.pending { background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.45); }
.feedback .fb-title { font-weight: 900; font-size: 1.2rem; margin-bottom: 4px; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.sticky-actions { position: sticky; bottom: calc(10px + var(--safe-b)); margin-top: 16px; display: grid; gap: 10px; z-index: 5; }
.explain-box { background: rgba(0,0,0,.2); border-radius: 18px; padding: 14px 16px; margin: 10px 0; }
.example { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.example:last-child { border: 0; }
.example .en { font-weight: 800; }
.reading p { font-size: 1.12rem; line-height: 1.65; margin: 0 0 14px; }
.reading { font-family: Georgia, "Iowan Old Style", serif; }
.reading p:first-letter { font-weight: 900; }
.origin-ai { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(34,211,238,.18); color: #a5f3fc; font-weight: 800; }

#toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 50;
  background: #fff; color: #2b1166; padding: 12px 18px; border-radius: 16px; font-weight: 800; box-shadow: var(--shadow); transition: .3s; max-width: 90vw; text-align: center; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--pink); animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .3; } }
.big-stars { font-size: 3.4rem; letter-spacing: 6px; text-align: center; }
.big-stars span { display: inline-block; animation: starpop .5s cubic-bezier(.2,1.6,.4,1) backwards; }
.big-stars span:nth-child(2) { animation-delay: .25s; } .big-stars span:nth-child(3) { animation-delay: .5s; }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } }
.login-wrap { min-height: 78vh; display: grid; place-items: center; }
.logo { font-size: 2.6rem; font-weight: 900; text-align: center; margin-bottom: 4px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 14px auto; }
.pinpad button { font-size: 1.5rem; min-height: 64px; border-radius: 20px; }
.pindots { display: flex; justify-content: center; gap: 12px; margin: 10px 0; }
.pindots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.18); }
.pindots i.on { background: var(--grad); box-shadow: 0 0 10px var(--pink); }
.reward { display: flex; gap: 12px; align-items: center; }
.reward .gift { font-size: 2.2rem; }

/* Elternbereich: ruhiger, gut am Desktop */
body.parent { background: #f4f2fb; color: #1d1636; font-size: 16px; }
body.parent #bg { display: none; }
body.parent #app { max-width: 1180px; padding-bottom: 60px; }
body.parent .card { background: #fff; border-color: #e6e1f5; box-shadow: 0 4px 18px rgba(40,20,90,.07); backdrop-filter: none; }
body.parent .muted { color: #6f6890; }
body.parent input, body.parent textarea, body.parent select { background: #fff; color: #1d1636; border-color: #d9d3ee; font-size: 16px; }
body.parent label { color: #4d4570; }
body.parent button, body.parent .btn { color: #2b1166; background: #efeafd; border-color: #ded6fa; min-height: 44px; padding: 10px 16px; }
body.parent .btn-main { background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; border: none; }
body.parent .btn-ok { background: #16a34a; color: #fff; }
body.parent .btn-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
body.parent .pill { background: #efeafd; color: #3b1478; }
body.parent .pill.ok { background: #dcfce7; color: #166534; } body.parent .pill.warn { background: #fef3c7; color: #92400e; }
body.parent .pill.bad { background: #fee2e2; color: #991b1b; } body.parent .pill.info { background: #e0f2fe; color: #075985; }
body.parent a { color: #6d28d9; }
.pnav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; padding: 10px; background: #fff; border-radius: 18px; border: 1px solid #e6e1f5; }
.pnav a { padding: 8px 14px; border-radius: 12px; text-decoration: none; font-weight: 800; color: #4d4570; }
.pnav a.on { background: #efeafd; color: #3b1478; }
.pnav .brand { font-weight: 900; margin-right: 10px; color: #6d28d9; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { border: 1px solid #e6e1f5; border-radius: 14px; overflow: hidden; background: #faf9ff; }
.thumb img { width: 100%; height: 170px; object-fit: cover; display: block; background: #eee; }
.thumb .tb { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; align-items: center; }
.thumb .tb button { min-height: 34px; padding: 4px 9px; font-size: .85rem; }
.thumb.removed { opacity: .4; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee9fb; vertical-align: top; font-size: .93rem; }
th { color: #6f6890; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.item { border: 1px solid #ece7fb; border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff; }
.item.removed { opacity: .45; }
.item.flagged { border-color: #fbbf24; background: #fffbeb; }
.item .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.item .fields input, .item .fields textarea { padding: 8px 10px; border-radius: 10px; }
.item .fields label { margin: 4px 0 2px; font-size: .78rem; }
.ex-edit { border: 1px solid #ece7fb; border-radius: 14px; padding: 12px; margin-bottom: 12px; background: #fcfbff; }
.ex-edit textarea { min-height: 60px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.terminal { background: #120a2e; color: #d6ccff; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; padding: 12px; border-radius: 12px; white-space: pre-wrap; max-height: 240px; overflow: auto; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } h1 { font-size: 1.6rem; } }
@media (max-width: 360px) { body { font-size: 16px; } .task-text { font-size: 1.15rem; } .stats { gap: 6px; } }
/* Assistent und Elternbereich am Handy */
.wiz { max-width: 560px; margin: 0 auto; }
.wiz-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.wiz-steps span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #efeafd; color: #6f6890; }
.wiz-steps span.on { background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; }
.wiz-steps span.done { background: #dcfce7; color: #166534; }
.wiz-help { background: #f6f3ff; border-radius: 14px; padding: 12px 14px; color: #3b2a6b; }
body.parent .wiz-big { min-height: 60px; font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
body.parent .chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: .92rem; background: #f3efff; }
@media (max-width: 760px) {
  .pnav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pnav a, .pnav .brand { white-space: nowrap; }
  body.parent #app { padding-left: 10px; padding-right: 10px; }
  body.parent table { display: block; overflow-x: auto; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
}
/* Photocards */
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pc { padding: 0; border: 0; background: none; min-height: 0; border-radius: 12px; aspect-ratio: 5 / 7; overflow: hidden; position: relative; }
.pc img { width: 100%; height: 100%; display: block; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.pc.locked { background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 10px, rgba(255,255,255,.03) 10px 20px); border: 2px dashed rgba(255,255,255,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.pc.locked span { font-size: 2rem; font-weight: 900; }
.pc.locked small { font-size: .65rem; padding: 0 4px; text-align: center; }
.card-reveal { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pc-big { width: min(70vw, 320px) !important; margin: 0 !important; border-radius: 22px; animation: cardIn .8s cubic-bezier(.2,1.4,.4,1); box-shadow: 0 0 60px rgba(255,79,216,.6); }
@keyframes cardIn { from { transform: rotateY(180deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.reveal-title { color: #fff; font-weight: 900; font-size: 1.4rem; margin-bottom: 14px; }
.reveal-desc { color: #fff; margin-top: 14px; padding: 0 20px; }
.fig-inline { margin: 6px 0 14px; }
.fig-inline .fig { max-width: 100%; }
.fig-inline .fig img { width: 100%; height: auto; max-height: 340px; object-fit: contain; background: rgba(0,0,0,.2); }
/* Eltern: Lernfortschritt */
.stats-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.stats-p .card { margin: 0 !important; padding: 12px 14px; }
.stat-p b { font-size: 1.15rem; }
.daybars { display: flex; gap: 6px; align-items: flex-end; height: 140px; }
.daybar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; font-size: .7rem; color: #6f6890; }
.daybar > i { width: 100%; background: #e9e3fb; border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.daybar > i > i { width: 100%; background: linear-gradient(#34d399, #10b981); }

.lvl-learned { color: #a5b4fc; }

/* Lernkarte fuer neue Woerter */
.learncard { text-align: center; padding: 6px 0; }
.lc-main { font-size: 2.1rem; font-weight: 900; margin: 12px 0 4px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.lc-arrow { color: var(--muted); font-size: 1.6rem; }
.lc-past { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.learncard .explain-box { text-align: left; margin-top: 12px; }
.learncard .en { font-weight: 800; }

/* Nachhilfe-Coach */
.coach { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(139,92,246,.22), rgba(34,211,238,.14)); border: 1px solid rgba(167,139,250,.45); animation: pop .35s; }
.coach-head { font-weight: 900; margin-bottom: 6px; }
.coach .quote { font-family: Georgia, serif; font-size: 1.05rem; }
.coach-ex { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* Woerter im Text antippen */
.gloss { text-decoration: underline dotted rgba(34,211,238,.8); text-underline-offset: 4px; cursor: help; }
.gloss-pop { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px; padding: 2px 10px; border-radius: 12px; background: #fff; color: #2b1166;
  font-family: var(--font); font-size: .9rem; box-shadow: 0 6px 18px rgba(0,0,0,.35); animation: pop .25s; }
.gloss-pop .btn-small { min-height: 28px; padding: 0 6px; color: #2b1166; }

/* Generalprobe – Klassenarbeits-Look */
.exam-paper { background: #fffef8; color: #1f2a44; border-radius: 10px; padding: 18px 18px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(59,130,246,.12) 31px 32px); font-family: Georgia, "Iowan Old Style", serif; }
.exam-paper .muted { color: #5b6478; }
.exam-paper h2, .exam-paper h3 { font-family: var(--font); color: #1f2a44; }
.exam-paper .reading p { color: #1f2a44; }
.exam-head { border: 2px solid #1f2a44; border-radius: 6px; font-family: var(--font); font-size: .85rem; }
.exam-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #c8cfdc; }
.exam-row:last-child { border-bottom: 0; }
.hand { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; }
.red { color: #dc2626; } .green { color: #15803d; }
.teacher { color: #dc2626; font-size: 1.08rem; line-height: 1.5; margin: 14px 0; }
.grade-stamp { width: 120px; height: 120px; margin: 16px auto 8px; border: 5px solid #dc2626; border-radius: 50%; display: grid; place-items: center;
  color: #dc2626; transform: rotate(-12deg); animation: stamp .6s cubic-bezier(.2,1.6,.4,1); font-family: "Segoe Print", "Bradley Hand", cursive; }
.grade-stamp .g { font-size: 3.4rem; font-weight: 900; line-height: 1; }
.grade-stamp .gt { font-size: .85rem; margin-top: -18px; }
@keyframes stamp { from { transform: scale(2.4) rotate(-30deg); opacity: 0; } }
.exam-table { margin-top: 10px; font-family: var(--font); }
.exam-table td { color: #1f2a44; border-bottom: 1px solid #e5e7eb; }
.corr { padding: 10px 0; border-bottom: 1px dashed #c8cfdc; font-family: var(--font); color: #1f2a44; }
.corr .strike { text-decoration: line-through; text-decoration-color: #dc2626; }
.exam-saved { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.1); font-weight: 800; }
.exam-paper .fig figcaption { color: #5b6478; }

/* Pausen */
.break-emoji { font-size: 3.4rem; line-height: 1; margin: 6px 0 4px; animation: floaty 3s ease-in-out infinite; }
.break-clock { font-size: 3rem; font-weight: 900; letter-spacing: 2px; margin: 14px 0 6px; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #ff4fd8, #34d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(-4deg); } }

.improved-banner { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; font-weight: 800; text-align: center; color: #fff;
  background: linear-gradient(90deg, #ff4fd8, #8b5cf6, #34d4ff); box-shadow: 0 6px 20px rgba(139,92,246,.4); animation: stamp .6s cubic-bezier(.2,1.6,.4,1); }

/* Wort-Blitz */
.game-hud { display: flex; justify-content: space-between; gap: 6px; margin: 6px 0 10px; font-size: .9rem; }
.game-hud span { background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 10px; }
.game-hud .g-combo b { color: #ffd166; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pair-grid > div { display: flex; flex-direction: column; gap: 10px; }
.ptile { position: relative; min-height: 54px; padding: 10px 8px; border-radius: 16px; font-weight: 800; font-size: 1rem; line-height: 1.2;
  background: rgba(255,255,255,.1); color: inherit; border: 2px solid rgba(255,255,255,.18); transition: transform .15s, opacity .3s; }
.ptile.sel { border-color: #ff4fd8; box-shadow: 0 0 16px rgba(255,79,216,.6); transform: scale(1.03); }
.ptile.matched { background: linear-gradient(90deg, rgba(52,227,160,.35), rgba(34,211,238,.35)); border-color: #34e3a0; opacity: .55; }
.ptile.shake { animation: shake .4s; border-color: #ff6b6b; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.float-pts { position: absolute; right: 8px; top: -6px; color: #ffd166; font-weight: 900; animation: floatup .9s ease-out forwards; pointer-events: none; }
@keyframes floatup { to { transform: translateY(-28px); opacity: 0; } }
.blitz-word { font-size: 2rem; font-weight: 900; margin: 14px 0; }
.blitz-input { font-size: 1.3rem; text-align: center; }

/* Spielhalle */
.arcade-card, .game-card .row { display: flex; align-items: center; gap: 12px; }
.game-icon { font-size: 2.4rem; line-height: 1; }
.arcade-head .tickets { font-size: 2.4rem; letter-spacing: 4px; }
.arcade-offer { margin-top: 8px; background: linear-gradient(90deg, #ffd166, #ff4fd8); color: #2a0b3d; font-weight: 900; border: 0; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-2deg); } 90% { transform: rotate(2deg); } 95% { transform: rotate(-1deg); } }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; font-weight: 900; z-index: 5;
  color: #fff; text-shadow: 0 0 30px #ff4fd8; animation: stamp .5s; }
.pop-field { position: relative; height: 62vh; min-height: 380px; overflow: hidden; border-radius: 22px;
  background: radial-gradient(circle at 50% 110%, rgba(139,92,246,.45), rgba(20,8,40,.4) 60%); border: 1px solid rgba(255,255,255,.12); touch-action: manipulation; }
.ghost-btn { position: absolute; bottom: -80px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px;
  padding: 6px 10px 10px; border-radius: 26px 26px 14px 14px; border: 2px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.14); color: #fff; font-weight: 900; font-size: 1.05rem; -webkit-tap-highlight-color: transparent; }
.ghost-btn .gh { font-size: 1.8rem; line-height: 1; }
.ghost-btn.popped { animation: popout .45s forwards; border-color: #34e3a0; background: rgba(52,227,160,.35); }
.ghost-btn.trap { border-color: #ff6b6b; background: rgba(255,107,107,.35); animation: shake .4s; font-size: .9rem; }
@keyframes popout { to { transform: scale(1.7); opacity: 0; } }
.beat-stage { position: relative; min-height: 62vh; border-radius: 22px; padding: 16px 12px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at 50% 35%, rgba(52,212,255,.25), rgba(20,8,40,.4) 65%); border: 1px solid rgba(255,255,255,.12); }
.beat-stage.pulse { animation: bpulse .3s ease-out; }
@keyframes bpulse { from { box-shadow: 0 0 0 0 rgba(255,79,216,.45) inset; } to { box-shadow: 0 0 0 18px rgba(255,79,216,0) inset; } }
.beat-stage.fever { background: radial-gradient(circle at 50% 35%, rgba(255,79,216,.45), rgba(255,209,102,.18) 45%, rgba(20,8,40,.5) 75%); }
.fever-tag { text-align: center; font-weight: 900; color: #ffd166; letter-spacing: 2px; }
.beat-center { position: relative; height: 190px; display: grid; place-items: center; }
.beat-ring { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 4px solid #ff4fd8; box-shadow: 0 0 22px #ff4fd8; }
.beat-word { font-size: 2.6rem; font-weight: 900; z-index: 1; }
.judge { text-align: center; min-height: 1.6em; font-weight: 900; font-size: 1.25rem; opacity: 0; }
.judge.show { opacity: 1; animation: stamp .35s; }
.judge.perfect { color: #ffd166; } .judge.great { color: #34e3a0; } .judge.miss { color: #ff9b9b; font-size: 1rem; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lane { min-height: 70px; border-radius: 18px; font-size: 1.15rem; font-weight: 900; color: #fff; border: 2px solid rgba(255,255,255,.25);
  background: linear-gradient(180deg, rgba(139,92,246,.55), rgba(255,79,216,.35)); -webkit-tap-highlight-color: transparent; }
.lane.right { border-color: #34e3a0; background: rgba(52,227,160,.45); }

/* Spielhalle-Katalog + Mechaniken */
.chip-row { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; -webkit-overflow-scrolling: touch; }
.chip { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.chip.on { background: linear-gradient(90deg, #ff4fd8, #8b5cf6); color: #fff; border-color: transparent; }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.game-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 18px; min-height: 104px; }
.game-tile .gi { font-size: 2rem; } .game-tile .gn { font-weight: 900; font-size: .95rem; } .game-tile .gb { font-size: .75rem; opacity: .8; }
.game-tile.played { border-color: rgba(255,209,102,.6); }
.game-body { position: relative; }
.beat-word.long { font-size: 1.15rem; padding: 0 12px; text-align: center; line-height: 1.35; }
.mem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mcard { position: relative; min-height: 86px; border-radius: 14px; font-weight: 800; font-size: .9rem; padding: 6px; transition: transform .25s;
  background: linear-gradient(135deg, #8b5cf6, #ff4fd8); color: #fff; border: 0; }
.mcard .front { display: none; } .mcard .back { font-size: 1.8rem; }
.mcard.open, .mcard.done { background: rgba(255,255,255,.92); color: #2a0b3d; transform: rotateY(360deg); }
.mcard.open .front, .mcard.done .front { display: block; } .mcard.open .back, .mcard.done .back { display: none; }
.mcard.done { background: rgba(52,227,160,.9); }
.build-line { min-height: 60px; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-radius: 14px; border: 2px dashed rgba(255,255,255,.25); }
.build-line.good { border-color: #34e3a0; background: rgba(52,227,160,.15); } .build-line.bad { border-color: #ff6b6b; }
.tile.in { background: rgba(139,92,246,.45); }
.swipe-card { margin: 14px auto; min-height: 150px; display: grid; place-items: center; text-align: center; padding: 18px; border-radius: 22px;
  font-size: 1.35rem; font-weight: 900; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25); touch-action: pan-y; user-select: none; }
.swipe-card.in { animation: stamp .3s; } .swipe-card.out-r { transform: translateX(120%) rotate(12deg); transition: .2s; } .swipe-card.out-l { transform: translateX(-120%) rotate(-12deg); transition: .2s; }
.swipe-btn { min-height: 64px; font-size: 1.15rem; font-weight: 900; border-radius: 18px; }
.swipe-btn.yes { background: rgba(52,227,160,.35); } .swipe-btn.no { background: rgba(255,107,107,.35); }
.ana-hint { font-size: 1.15rem; font-weight: 800; margin: 4px 0 10px; }
.ana-slots, .spot-word { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ana-slots.good, .spot-word.good { filter: drop-shadow(0 0 8px #34e3a0); } .ana-slots.shake { animation: shake .4s; }
.slot-ch { min-width: 26px; padding: 4px 2px; border-bottom: 3px solid rgba(255,255,255,.6); font-size: 1.5rem; font-weight: 900; text-align: center; }
.slot-ch.fixed { border-bottom-color: transparent; }
.tile.big { font-size: 1.3rem; min-width: 46px; }
.lamps { font-size: 1.5rem; letter-spacing: 2px; }
.keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.key { min-height: 44px; border-radius: 10px; font-weight: 900; font-size: 1.1rem; padding: 0; }
.key.hit { background: rgba(52,227,160,.5); } .key.miss { background: rgba(255,107,107,.35); opacity: .6; }
.ladder { text-align: center; font-weight: 900; color: #ffd166; margin-bottom: 8px; }
.quiz-q { font-size: 1.25rem; font-weight: 900; line-height: 1.4; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt { text-align: left; min-height: 54px; border-radius: 999px; padding: 10px 18px; font-size: 1.05rem; }
.quiz-opt.right { background: rgba(52,227,160,.5); border-color: #34e3a0; } .quiz-opt.wrong { background: rgba(255,107,107,.45); }
.quiz-opt .pub { float: right; color: #ffd166; font-weight: 900; }

.arcade-banner { background: linear-gradient(110deg, rgba(255,79,216,.35), rgba(139,92,246,.35), rgba(52,212,255,.3)); border-color: rgba(255,209,102,.5); }
.arcade-banner h3 { margin: 0 0 2px; }

.howto-steps { margin: 6px 0 10px; padding-left: 22px; line-height: 1.5; }
.howto-steps li { margin: 6px 0; }
.howto-ex { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; }
.howto-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.game-tile[disabled] { opacity: .5; }

.mastered-box { border-color: rgba(255,209,102,.6); background: linear-gradient(110deg, rgba(255,209,102,.18), rgba(255,79,216,.12)); }

/* Bildergeschichte */
.pstory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.pstory-grid.one { grid-template-columns: 1fr; }
.pstory { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #fff; }
.pstory img { display: block; width: 100%; height: auto; }
.pstory .pnum { position: absolute; left: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; color: #fff; background: linear-gradient(135deg, #ff4fd8, #8b5cf6); box-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* Faecher */
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.subject-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 20px; min-height: 120px; text-align: center; }
.subject-tile .si { font-size: 2.2rem; line-height: 1; } .subject-tile .sn { font-weight: 900; }
.subject-tile .bar { width: 80%; }
.stage-path { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.stage-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.06); cursor: pointer; }
.stage-row.open { border: 2px solid var(--pink); box-shadow: 0 0 14px rgba(255,79,216,.35); }
.stage-row.done { opacity: .9; } .stage-row.locked { opacity: .5; }
.stage-no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--grad); color: #fff; flex: 0 0 34px; }
.stage-icon { font-size: 1.3rem; }

/* Weltraum-Thema (Elia) – eigenes Design: Sternen-Akademie, Planeten, Sternschnuppen */
html[data-theme="space"] { --bg: #050a1f; --bg2: #0b1433; --pink: #ff9d3d; --violet: #3b82f6; --cyan: #38e1ff; --gold: #ffd166;
  --grad: linear-gradient(135deg, #ff9d3d 0%, #3b82f6 55%, #38e1ff 100%); --muted: #a9b8de; }
html[data-theme="space"] #bg { background: radial-gradient(40vmax 30vmax at 85% 12%, rgba(56,225,255,.16), transparent 60%),
  radial-gradient(50vmax 40vmax at 10% 90%, rgba(255,157,61,.14), transparent 60%), radial-gradient(120% 80% at 50% 0%, #10204f 0%, var(--bg) 65%); }
html[data-theme="space"] #bg::before { right: 6vw; top: 22vh; width: 64px; height: 64px; border-radius: 50%; transform: rotate(-18deg);
  background: radial-gradient(circle at 35% 35%, #ffcf8a, #ff8a3d 55%, #a8461a); box-shadow: 0 0 40px rgba(255,157,61,.45);
  outline: 6px solid rgba(255,210,150,.35); outline-offset: 10px; border: none; filter: none; }
html[data-theme="space"] #bg::after { opacity: .85; animation-duration: 2.5s; }
html[data-theme="space"] #bg span { width: 2px; height: 120px; top: -140px; clip-path: none; filter: none; mix-blend-mode: normal;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); animation: shoot 5s linear infinite; }
html[data-theme="space"] #bg span:nth-child(1) { left: 20%; animation-delay: -1s; } html[data-theme="space"] #bg span:nth-child(2) { left: 55%; animation-delay: -3s; }
html[data-theme="space"] #bg span:nth-child(3) { left: 80%; animation-delay: -4.2s; right: auto; }
@keyframes shoot { from { transform: translate(0, 0) rotate(25deg); opacity: 0; } 10% { opacity: 1; } to { transform: translate(-40vw, 120vh) rotate(25deg); opacity: 0; } }
html[data-theme="space"] .crowd, html[data-theme="space"] .stage { display: none; }
html[data-theme="space"] .stage-row.open { box-shadow: 0 0 14px rgba(56,225,255,.45); border-color: var(--cyan); }
html[data-theme="space"] .glow-text { text-shadow: 0 0 18px rgba(56,225,255,.6); }
