/* Kompis Lerninsel – Lernspiel Klasse 1 bis 3 */
.sp-root { position: relative; max-width: 1060px; margin: 0 auto; scroll-margin-top: 84px; }
.sp-root:not(.is-ready) { min-height: 560px; border-radius: 28px; background: linear-gradient(#8fd3ff, #c9ecff 60%, #4fc3f7 60%); }
.sp-kompi-src { display: none; }
.sp-stage {
  --ink: #1a2140; --paper: #fffdf7;
  position: relative; overflow: hidden; border-radius: 28px; background: #e8f7ff;
  aspect-ratio: 16 / 10.4; min-height: 560px; max-height: 88vh; width: 100%;
  box-shadow: 0 0 0 3px var(--ink), 0 10px 0 3px var(--ink), 0 30px 60px -20px rgba(26,33,64,.45);
  font-family: "Atkinson", system-ui, sans-serif; color: var(--ink); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sp-root:fullscreen .sp-stage, .sp-root:-webkit-full-screen .sp-stage { max-height: 100vh; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.sp-root:fullscreen { max-width: none; background: #e8f7ff; }

/* Kopfzeile */
.sp-hud { position: absolute; z-index: 6; left: 14px; right: 14px; top: 12px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.sp-hud > *, .sp-hud-r > * { pointer-events: auto; }
.sp-hud-r { margin-left: auto; display: flex; gap: 8px; }
.sp-hbtn { width: 46px; height: 46px; border-radius: 16px; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 2.5px var(--ink), 0 4px 0 2.5px var(--ink); transition: transform .12s; }
.sp-hbtn svg { width: 24px; height: 24px; }
.sp-hbtn:active { transform: translateY(3px); box-shadow: 0 0 0 2.5px var(--ink), 0 1px 0 2.5px var(--ink); }
.sp-hbtn[aria-pressed="false"] { background: #eef0f6; color: #8a93ad; }
.sp-total { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px 0 10px; border-radius: 16px; background: #fff; font: 800 1.35rem "Bricolage", sans-serif;
  box-shadow: 0 0 0 2.5px var(--ink), 0 4px 0 2.5px var(--ink); }
.sp-total .sp-star { width: 28px; height: 28px; }
.sp-total.bump { animation: spBump .45s cubic-bezier(.3,1.8,.5,1); }
.sp-gradepill, .sp-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .98rem "Bricolage", sans-serif; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.sp-gradepill button { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .82rem; cursor: pointer; }
.sp-progress { display: inline-flex; gap: 7px; padding: 0 12px; height: 38px; align-items: center; border-radius: 999px; background: #fff; box-shadow: 0 0 0 2.5px var(--ink); }
.sp-progress i { width: 14px; height: 14px; border-radius: 50%; background: #dfe3ee; transition: background .3s, transform .3s; }
.sp-progress i.done { background: #27ae73; }
.sp-progress i.now { background: #ffc23d; transform: scale(1.35); box-shadow: 0 0 0 3px rgba(255,194,61,.35); }

/* Sterne */
.sp-star path { fill: #ffc23d; stroke: #e19b00; stroke-width: 1.3; stroke-linejoin: round; }
.sp-star.off path { fill: #e3e7f0; stroke: #c7cddc; }
.sp-star.pop { animation: spStarPop .6s cubic-bezier(.3,1.8,.5,1) both; }
.sp-star.pop.d1 { animation-delay: .18s; } .sp-star.pop.d2 { animation-delay: .36s; }

/* Ansichten */
.sp-view { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
.sp-view > .sp-in { animation: spIn .45s cubic-bezier(.2,.9,.3,1.15) both; }
.sp-view.is-task, .sp-view.is-end, .sp-view.is-start, .sp-view.is-limit, .sp-view.is-break, .sp-view.is-album, .sp-view.is-levels {
  background: radial-gradient(circle at 20% 0, rgba(255,255,255,.9), transparent 60%), linear-gradient(160deg, #fff8e6, #e9f5ff 55%, #f3ecff);
}
.sp-view.is-task::before, .sp-view.is-levels::before, .sp-view.is-end::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(60,120,240,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(60,120,240,.08) 1px, transparent 1px); background-size: 26px 26px; }

/* Kompi + Sprechblase */
.sp-kompi { position: absolute; z-index: 5; left: 14px; bottom: 8px; width: clamp(92px, 13vw, 140px); pointer-events: none; filter: drop-shadow(0 8px 10px rgba(26,33,64,.2)); }
.sp-kompi svg { width: 100%; height: auto; display: block; }
.sp-kompi.jump { animation: spJump .7s cubic-bezier(.3,1.6,.5,1); }
.sp-bubble { position: absolute; z-index: 5; left: calc(clamp(92px, 13vw, 140px) + 22px); bottom: clamp(56px, 8vw, 86px); max-width: min(430px, 52%);
  padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: #fff; font: 600 1.02rem/1.35 "Playpen", "Atkinson", sans-serif; color: var(--ink);
  box-shadow: 0 0 0 2.5px var(--ink), 0 5px 0 2.5px var(--ink); pointer-events: none; }
.sp-bubble:empty { display: none; }
.sp-bubble.pop { animation: spBubble .4s cubic-bezier(.3,1.7,.5,1); }
.sp-bubble b { color: #3c78f0; }

/* Start */
.sp-start, .sp-end, .sp-limit, .sp-break, .sp-album { position: relative; min-height: 100%; padding: 76px 22px 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.sp-start h3, .sp-end h3, .sp-limit h3, .sp-break h3, .sp-album h3, .sp-lv-head h3 { margin: 0; font: 800 clamp(1.8rem, 4.2vw, 2.7rem)/1.05 "Bricolage", sans-serif; letter-spacing: -.02em; }
.sp-start p, .sp-end p, .sp-limit p, .sp-break p { margin: 0; font-size: 1.15rem; max-width: 44ch; }
.sp-small { font-size: .95rem !important; color: #5b6480; }
.sp-grades { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.sp-grade { width: 128px; height: 140px; border: 0; border-radius: 28px; cursor: pointer; display: grid; place-content: center; gap: 2px; color: #fff; font-family: "Bricolage", sans-serif;
  box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px var(--ink); transition: transform .15s; }
.sp-grade:nth-child(1) { background: linear-gradient(160deg, #ff8a80, #ef5350); } .sp-grade:nth-child(2) { background: linear-gradient(160deg, #82b1ff, #3c78f0); } .sp-grade:nth-child(3) { background: linear-gradient(160deg, #69f0ae, #27ae73); }
.sp-grade b { font-size: 3.6rem; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.15); } .sp-grade span { font-weight: 700; font-size: 1.05rem; }
.sp-grade:hover { transform: translateY(-4px) rotate(-2deg); } .sp-grade:active { transform: translateY(5px); box-shadow: 0 0 0 3px var(--ink), 0 3px 0 3px var(--ink); }

/* Karte */
.sp-map { position: absolute; inset: 0; }
.sp-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sp-cloud { animation: spCloud 40s linear infinite; } .sp-cloud.c2 { animation-duration: 56s; animation-delay: -20s; }
.sp-sunglow { animation: spGlow 4s ease-in-out infinite; transform-origin: 905px 70px; }
.sp-wave { animation: spWave 4s ease-in-out infinite; }
.sp-path { animation: spDash 30s linear infinite; }
.sp-palm .sp-leaves { animation: spSway 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.sp-floaty { animation: spFloat 4s ease-in-out infinite; }
.sp-fruit { animation: spFruit 3s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: 50% 0; }
.sp-boat { animation: spBoat 9s ease-in-out infinite; }
.sp-fishjump { animation: spFish 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.sp-light { animation: spLight 2.4s ease-in-out infinite; }
.sp-tick { animation: spTick 8s steps(12) infinite; transform-box: view-box; transform-origin: 50px 92px; }
.sp-station { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; z-index: 2; animation: spDrop .6s cubic-bezier(.3,1.6,.5,1) both; animation-delay: var(--d); }
.sp-st-label { display: grid; gap: 2px; justify-items: center; min-width: 128px; padding: 8px 12px 9px; border-radius: 18px; background: #fff; text-align: center;
  box-shadow: 0 0 0 2.5px var(--ink), 0 5px 0 2.5px var(--c); transition: transform .15s; }
.sp-st-label b { font: 800 1rem/1.1 "Bricolage", sans-serif; } .sp-st-label small { font-size: .78rem; color: #5b6480; }
.sp-st-label em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--c); }
.sp-st-bar { width: 96px; height: 7px; border-radius: 9px; background: #eceff6; overflow: hidden; margin-top: 3px; } .sp-st-bar i { display: block; height: 100%; background: var(--c); border-radius: 9px; }
.sp-station:hover .sp-st-label, .sp-station:focus-visible .sp-st-label { transform: translateY(-4px) scale(1.05); }
.sp-station.crown .sp-st-label::before { content: "👑"; position: absolute; top: -18px; font-size: 1.4rem; }

/* Levelpfad */
.sp-levels { position: relative; padding: 76px 20px 160px; max-width: 760px; margin: 0 auto; }
.sp-lv-head { text-align: center; margin-bottom: 14px; } .sp-lv-head p { margin: 6px 0 0; color: #5b6480; font-weight: 700; }
.sp-lv-path { position: relative; display: grid; gap: 12px; }
.sp-lv { --off: 0px; position: relative; display: flex; align-items: center; gap: 14px; width: min(440px, 100%); padding: 10px 16px 10px 10px; border: 0; border-radius: 22px; background: #fff; text-align: left; cursor: pointer;
  box-shadow: 0 0 0 2.5px var(--ink), 0 5px 0 2.5px var(--ink); transition: transform .15s; animation: spIn .45s both; animation-delay: calc(var(--i) * 40ms); }
.sp-lv:nth-child(4n+1) { justify-self: start; } .sp-lv:nth-child(4n+2) { justify-self: center; margin-left: 12%; } .sp-lv:nth-child(4n+3) { justify-self: end; } .sp-lv:nth-child(4n) { justify-self: center; margin-right: 12%; }
.sp-lv-n { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 1.5rem "Bricolage", sans-serif; background: #e9ecf4; color: #9aa3ba; }
.sp-lv-n svg { width: 24px; height: 24px; }
.sp-lv.open .sp-lv-n { background: var(--c); color: #fff; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.sp-lv-t { display: grid; gap: 3px; } .sp-lv-t b { font: 700 1.06rem/1.15 "Bricolage", sans-serif; } .sp-lv-t i { display: flex; gap: 2px; } .sp-lv-t i .sp-star { width: 20px; height: 20px; }
.sp-lv-t small { font-weight: 700; color: #8a63e8; font-size: .8rem; }
.sp-lv:not(.open) { cursor: default; } .sp-lv:not(.open):not(.paid) .sp-lv-t b { color: #9aa3ba; }
.sp-lv.paid { background: #faf7ff; cursor: pointer; } .sp-lv.paid .sp-lv-n { background: #efe8ff; color: #8a63e8; }
.sp-lv.open:hover { transform: translateY(-3px); }
.sp-lv.next { box-shadow: 0 0 0 3px var(--c), 0 6px 0 3px var(--ink), 0 0 0 9px color-mix(in srgb, var(--c) 22%, transparent); }
.sp-lv.next .sp-lv-n { animation: spPulse 1.6s ease-in-out infinite; }
.sp-lv.shake { animation: spShake .4s; }

/* Aufgabe */
.sp-task { position: relative; min-height: 100%; padding: 72px clamp(14px, 3vw, 34px) 150px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sp-task-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sp-say { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--c); box-shadow: 0 0 0 2.5px var(--ink), 0 3px 0 2.5px var(--ink); }
.sp-say svg { width: 24px; height: 24px; }
.sp-q { font: 800 clamp(1.6rem, 4.6vw, 2.8rem)/1.15 "Bricolage", sans-serif; text-align: center; letter-spacing: -.01em; max-width: 26ch; }
.sp-q b { color: var(--c); }
.sp-gap { display: inline-grid; place-items: center; min-width: 1.5em; padding: 0 .2em; border-radius: 12px; background: #fff3c4; color: #b07800; box-shadow: inset 0 0 0 3px #ffc23d; animation: spPulse 1.6s ease-in-out infinite; }
.sp-vis { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 24px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 2px rgba(26,33,64,.08); max-width: 100%; }
.sp-vis.glow { box-shadow: 0 0 0 4px #ffc23d, 0 0 30px rgba(255,194,61,.6); }
.sp-hint { max-width: 560px; padding: 10px 16px; border-radius: 16px; background: #fff8db; border: 2px dashed #e0b23a; font: 600 1.02rem/1.4 "Playpen", sans-serif; animation: spIn .35s both; }
.sp-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); width: min(640px, 100%); margin-top: 6px; }
.sp-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(460px, 100%); }
.sp-opt { min-height: 82px; border: 0; border-radius: 24px; background: #fff; cursor: pointer; padding: 10px 8px; font: 800 clamp(1.3rem, 3.4vw, 2rem)/1.1 "Bricolage", sans-serif; color: var(--ink);
  box-shadow: 0 0 0 3px var(--ink), 0 7px 0 3px var(--ink); transition: transform .12s, background .2s; overflow-wrap: anywhere; }
.sp-opts.big .sp-opt { font-size: clamp(2rem, 6vw, 3.2rem); min-height: 100px; }
.sp-opt.pic { display: grid; place-items: center; }
.sp-opt:hover { transform: translateY(-3px); } .sp-opt:active { transform: translateY(5px); box-shadow: 0 0 0 3px var(--ink), 0 2px 0 3px var(--ink); }
.sp-opt.right { background: #27ae73; color: #fff; animation: spRight .55s cubic-bezier(.3,1.8,.5,1); }
.sp-opt.wrong { background: #f3f4f8; color: #b8bfd0; box-shadow: 0 0 0 3px #c9cfdd; animation: spShake .4s; cursor: default; transform: none; }
.sp-opt.pulse { animation: spPulse 1.2s ease-in-out infinite; }

/* Bilder und Rechenhilfen */
.sp-img { width: 90px; height: 90px; } .sp-img.big { width: clamp(110px, 18vw, 150px); height: clamp(110px, 18vw, 150px); animation: spFloat 3s ease-in-out infinite; }
.sp-pic { display: grid; justify-items: center; gap: 6px; } .sp-pic.duo { display: flex; gap: 6px; }
.sp-mini { width: 34px; height: 34px; display: block; }
.sp-basket { display: flex; flex-wrap: wrap; gap: 2px; max-width: 200px; justify-content: center; padding: 8px; border-radius: 0 0 40px 40px; border: 4px solid #c58b4f; border-top: 0; background: #fff6e5; }
.sp-apple { animation: spDrop .5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: var(--d); }
.sp-apple.green svg circle:first-child { fill: #8bc34a; }
.sp-apple.gone { opacity: .3; filter: grayscale(1); position: relative; } .sp-apple.gone::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 4px; background: #ef5350; transform: rotate(-35deg); border-radius: 3px; }
.sp-op { font: 800 2.4rem "Bricolage", sans-serif; }
.sp-tenframe { display: flex; gap: 12px; align-items: flex-end; }
.sp-hund { display: grid; grid-template-columns: repeat(3, 38px); gap: 5px; } .sp-hund u { width: 38px; height: 38px; background: repeating-linear-gradient(90deg, #ef5350 0 3.6px, #ff8a80 3.6px 3.8px), #ef5350; border-radius: 3px; box-shadow: inset 0 0 0 2px #b71c1c; }
.sp-tens { display: flex; gap: 5px; } .sp-tens b { width: 12px; height: 110px; border-radius: 4px; background: repeating-linear-gradient(#3c78f0 0 10px, #82b1ff 10px 11px); box-shadow: inset 0 0 0 2px #1d4ed8; }
.sp-ones { display: grid; grid-template-columns: repeat(2, 14px); gap: 4px; } .sp-ones i { width: 14px; height: 14px; border-radius: 3px; background: #ffc23d; box-shadow: inset 0 0 0 2px #e19b00; }
.sp-balloons { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; justify-content: center; max-width: 520px; }
.sp-bal { position: relative; width: 34px; height: 42px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), transparent 35%), var(--c); animation: spFloat 2.6s ease-in-out infinite; animation-delay: var(--d); margin-bottom: 26px; }
.sp-bal::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 26px; background: #5b6480; }
.sp-mirror { width: 4px; height: 70px; border-radius: 4px; background: repeating-linear-gradient(#1a2140 0 8px, transparent 8px 14px); margin: 0 6px 26px; }
.sp-groups { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 560px; }
.sp-groups span { display: flex; flex-wrap: wrap; gap: 4px; max-width: 74px; padding: 7px; border-radius: 50%; background: #f3ecff; box-shadow: inset 0 0 0 2px #cdb8ff; justify-content: center; align-items: center; min-width: 46px; min-height: 46px; }
.sp-groups i, .sp-towers i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.sp-count { display: flex; flex-wrap: wrap; gap: 6px; max-width: 260px; justify-content: center; } .sp-count .sp-mini { width: 40px; height: 40px; animation: spDrop .5s both; }
.sp-dice { display: grid; grid-template-columns: repeat(3, 22px); gap: 8px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink); }
.sp-dice i { width: 22px; height: 22px; border-radius: 50%; } .sp-dice i.on { background: var(--ink); }
.sp-line { width: min(520px, 86vw); height: auto; } .sp-line text { font: 700 14px "Atkinson", sans-serif; fill: var(--ink); }
.sp-clock { width: clamp(170px, 26vw, 230px); height: auto; filter: drop-shadow(0 8px 10px rgba(26,33,64,.2)); } .sp-clock text { font: 800 19px "Bricolage", sans-serif; fill: var(--ink); }
.sp-coins { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.sp-coin { --s: 1; width: calc(62px * var(--s)); height: calc(62px * var(--s)); border-radius: 50%; display: grid; place-content: center; text-align: center; font: 800 calc(1.25rem * var(--s)) / 1 "Bricolage", sans-serif; color: #5a3d00;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd54f 45%, #e0a800); box-shadow: inset 0 0 0 4px rgba(0,0,0,.12), 0 4px 0 rgba(26,33,64,.25); animation: spDrop .45s both; }
.sp-coin small { font-size: .58em; display: block; }
.sp-coin.euro { background: radial-gradient(circle at 50% 50%, #ffe082 0 44%, #cfd8dc 46% 100%); box-shadow: inset 0 0 0 3px #90a4ae, 0 4px 0 rgba(26,33,64,.25); }
.sp-coin.copper { background: radial-gradient(circle at 35% 30%, #ffd2b0, #e08a4c 50%, #a5532b); color: #4a1f05; }
.sp-note-money { display: inline-grid; place-items: center; width: 116px; height: 64px; border-radius: 8px; font: 800 1.5rem "Bricolage", sans-serif; color: #1a2140; box-shadow: inset 0 0 0 3px rgba(0,0,0,.1), 0 4px 0 rgba(26,33,64,.25); animation: spDrop .45s both;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7); }
.sp-note-money.v1000 { background: linear-gradient(135deg, #ffcdd2, #ef9a9a); } .sp-note-money.v2000 { background: linear-gradient(135deg, #bbdefb, #90caf9); }
.sp-compare { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; } .sp-compare > span { font: 700 1rem "Playpen", sans-serif; color: #5b6480; }
.sp-compare .sp-coins { padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 2px rgba(26,33,64,.12); max-width: 260px; }
.sp-shop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sp-item { display: grid; justify-items: center; gap: 6px; padding: 12px 14px 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 2.5px var(--ink), 0 4px 0 2.5px var(--ink); }
.sp-item .sp-mini { width: 58px; height: 58px; } .sp-item b { padding: 3px 10px; border-radius: 999px; background: #ff8b3b; color: #fff; font: 800 1rem "Bricolage", sans-serif; }
.sp-syl { margin: 0; font: 800 clamp(1.8rem, 5vw, 2.6rem) "Bricolage", sans-serif; letter-spacing: .02em; cursor: pointer; }
.sp-syl span { display: inline-block; transition: transform .2s, color .2s; } .sp-syl span.hit { color: #27ae73; transform: translateY(-8px) scale(1.15); }
.sp-syl em { font-style: normal; color: #b8bfd0; margin: 0 .15em; }
.sp-note { margin: 0; font: 600 1rem "Playpen", sans-serif; color: #5b6480; }
.sp-shape { width: 80px; height: 80px; } .sp-shape.big { width: clamp(120px, 18vw, 160px); height: clamp(120px, 18vw, 160px); animation: spFloat 3s ease-in-out infinite; } .sp-shape.sm { width: 52px; height: 52px; } .sp-shape.opt { width: 62px; height: 62px; }
.sp-pattern { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; } .sp-pattern .sp-gap { width: 52px; height: 52px; font: 800 1.8rem "Bricolage", sans-serif; }
.sp-pattern.wrap { max-width: 420px; }
.sp-grid { display: grid; grid-template-columns: repeat(var(--w), 34px); gap: 3px; padding: 6px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 2px #c7cddc; }
.sp-grid i { width: 34px; height: 34px; border-radius: 4px; background: #eef1f7; } .sp-grid i.on { background: #ee5fa0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.sp-towers { display: flex; gap: 14px; align-items: flex-end; } .sp-towers span { display: flex; flex-direction: column-reverse; gap: 4px; } .sp-towers i { width: 34px; height: 22px; border-radius: 5px; }
.sp-towers .sp-gap { width: 46px; height: 46px; font: 800 1.6rem "Bricolage", sans-serif; display: grid; }
.sp-cubes { width: 220px; height: auto; }
.sp-mirrorbox { display: flex; align-items: center; gap: 16px; } .sp-mirrorline { width: 6px; height: 150px; border-radius: 6px; background: linear-gradient(#bde3ff, #6ec6ff); box-shadow: 0 0 12px #9fd8ff; }

/* Ende */
.sp-endstars { display: flex; gap: 10px; } .sp-endstars .sp-star { width: clamp(64px, 11vw, 96px); height: clamp(64px, 11vw, 96px); }
.sp-endstars .sp-star:nth-child(2) { transform: translateY(-16px); }
.sp-unlocked { display: inline-block; text-align: center; max-width: 92%; gap: 8px; padding: 10px 16px; border-radius: 16px; background: #e8f8ef; color: #186b45; font-weight: 700; animation: spIn .5s .6s both; }
.sp-unlocked svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.sp-newsticker { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 2.5px var(--ink), 0 5px 0 2.5px #ffc23d; animation: spSticker .8s .5s cubic-bezier(.3,1.6,.5,1) both; }
.sp-newsticker svg { width: 70px; height: 70px; padding: 6px; border-radius: 18px; background: #fff8e6; }
.sp-endbtns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 0 26px; border: 0; border-radius: 20px; background: #27ae73; color: #fff; cursor: pointer; text-decoration: none;
  font: 800 1.2rem "Bricolage", sans-serif; box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink); transition: transform .12s; }
.sp-btn:hover { transform: translateY(-3px); } .sp-btn:active { transform: translateY(4px); box-shadow: 0 0 0 3px var(--ink), 0 2px 0 3px var(--ink); }
.sp-btn.ghost { background: #fff; color: var(--ink); } .sp-btn[disabled] { background: #dfe3ee; color: #7d86a3; cursor: default; transform: none; }

/* Schnuppern, Pause, Album */
.sp-limit-box { display: grid; gap: 8px; justify-items: center; max-width: 460px; padding: 18px 20px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 3px #8a63e8, 0 7px 0 3px #8a63e8; }
.sp-limit-box b { font: 800 1.3rem "Bricolage", sans-serif; } .sp-limit-box span { color: #5b6480; } .sp-limit-box .sp-btn { background: #8a63e8; }
.sp-chest { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: #efe8ff; color: #8a63e8; animation: spFloat 2.4s ease-in-out infinite; } .sp-chest svg { width: 42px; height: 42px; }
.sp-breath { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: #e3f6ec; } .sp-breath span { width: 70px; height: 70px; border-radius: 50%; background: #27ae73; animation: spBreath 7s ease-in-out infinite; }
.sp-break-step { font: 700 1.3rem "Playpen", sans-serif !important; min-height: 2.6em; }
.sp-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; width: min(760px, 100%); }
.sp-sticker { aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; align-content: center; gap: 2px; background: rgba(255,255,255,.6); border: 3px dashed #c7cddc; }
.sp-sticker.has { background: #fff; border: 0; box-shadow: 0 0 0 2.5px var(--ink), 0 5px 0 2.5px var(--ink); transform: rotate(var(--r)); }
.sp-sticker svg { width: 62%; height: auto; } .sp-sticker span { font-size: .78rem; font-weight: 700; } .sp-sticker b { font: 800 1.6rem "Bricolage", sans-serif; color: #c7cddc; }
.sp-album h3 small { font-size: .5em; color: #5b6480; display: block; margin-top: 6px; }
.sp-album { justify-content: flex-start; }

/* Effekte */
.sp-fx { position: absolute; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
.sp-spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; animation: spSpark .75s ease-out forwards; }
.sp-fly { position: absolute; width: 40px; height: 40px; animation: spFly .82s cubic-bezier(.5,-.3,.6,1) forwards; } .sp-fly svg { width: 100%; height: 100%; }
.sp-conf { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: spConf 2s ease-in forwards; }

@keyframes spIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes spDrop { from { opacity: 0; transform: translate(-50%, -80%) scale(.6); } }
.sp-apple, .sp-coin, .sp-note-money, .sp-count .sp-mini { animation-name: spPop; }
@keyframes spPop { from { opacity: 0; transform: scale(.4) translateY(-10px); } }
@keyframes spJump { 30% { transform: translateY(-26px) rotate(-6deg); } 60% { transform: translateY(0) rotate(3deg); } 80% { transform: translateY(-8px); } }
@keyframes spBubble { from { opacity: 0; transform: scale(.7) translateY(10px); transform-origin: 0 100%; } }
@keyframes spBump { 40% { transform: scale(1.22); } }
@keyframes spStarPop { 0% { transform: scale(0) rotate(-120deg); } 70% { transform: scale(1.25) rotate(10deg); } }
@keyframes spRight { 40% { transform: scale(1.12) rotate(-3deg); } }
@keyframes spShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes spPulse { 50% { transform: scale(1.08); } }
@keyframes spFloat { 50% { transform: translateY(-8px); } }
@keyframes spCloud { from { transform: translateX(-260px); } to { transform: translateX(1100px); } }
@keyframes spGlow { 50% { transform: scale(1.15); opacity: .4; } }
@keyframes spWave { 50% { transform: translateX(-25px); } }
@keyframes spDash { to { stroke-dashoffset: -480; } }
@keyframes spSway { 50% { transform: rotate(5deg); } }
@keyframes spFruit { 50% { transform: rotate(6deg); } }
@keyframes spBoat { 50% { transform: translate(40px, -4px) rotate(-2deg); } }
@keyframes spFish { 0%, 70%, 100% { transform: translateY(40px); opacity: 0; } 78% { opacity: 1; } 85% { transform: translateY(-30px) rotate(-30deg); opacity: 1; } 92% { transform: translateY(20px) rotate(40deg); opacity: 0; } }
@keyframes spLight { 50% { fill: #fff59d; } }
@keyframes spTick { to { transform: rotate(360deg); } }
@keyframes spSpark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes spFly { 0% { transform: scale(1); } 30% { transform: translate(calc(var(--tx) * .2), -40px) scale(1.4); } 100% { transform: translate(var(--tx), var(--ty)) scale(.5); opacity: .6; } }
@keyframes spConf { to { transform: translateY(110vh) rotate(var(--r)); } }
@keyframes spBreath { 0%, 100% { transform: scale(.6); } 50% { transform: scale(1.9); } }
@keyframes spSticker { from { opacity: 0; transform: scale(.3) rotate(-25deg); } }

/* Handy */
@media (max-width: 700px) {
  .sp-stage { aspect-ratio: auto; height: min(88vh, 780px); min-height: 600px; border-radius: 22px; }
  .sp-hud { left: 10px; right: 10px; top: 10px; gap: 6px; }
  .sp-hbtn { width: 38px; height: 38px; border-radius: 12px; } .sp-hbtn svg { width: 20px; height: 20px; }
  .sp-total { height: 38px; padding: 0 10px 0 6px; font-size: 1.05rem; border-radius: 12px; } .sp-total .sp-star { width: 22px; height: 22px; }
  .sp-hide-sm, .sp-hud > .sp-chip, .sp-gradepill { display: none; }
  .sp-hud-r { gap: 5px; } .sp-stage:not(.on-map) .sp-hud-r [data-act="album"] { display: none; }
  .sp-progress { height: 30px; gap: 5px; padding: 0 9px; } .sp-progress i { width: 10px; height: 10px; }
  .sp-end, .sp-limit, .sp-break, .sp-album, .sp-start { padding-bottom: 200px; gap: 10px; }
  .sp-endstars .sp-star { width: 58px; height: 58px; } .sp-endstars .sp-star:nth-child(2) { transform: translateY(-10px); }
  .sp-end p { font-size: 1rem; } .sp-unlocked { font-size: .92rem; padding: 8px 12px; } .sp-newsticker svg { width: 52px; height: 52px; }
  .sp-btn { min-height: 52px; font-size: 1.05rem; padding: 0 18px; }
  .sp-map { position: relative; min-height: 100%; display: flex; flex-direction: column; gap: 9px; padding: 66px 14px 170px; }
  .sp-map-svg { position: fixed; position: absolute; height: 100%; }
  .sp-station { position: relative; left: auto; top: auto; transform: none; animation-name: spIn; }
  .sp-st-label { grid-template-columns: 1fr auto; justify-items: start; text-align: left; align-items: center; column-gap: 10px; width: 100%; padding: 9px 14px; }
  .sp-st-label b { font-size: 1.02rem; } .sp-st-label small { grid-column: 1; } .sp-st-label em { grid-column: 2; grid-row: 1 / span 2; font-size: .9rem; }
  .sp-st-bar { grid-column: 1 / -1; width: 100%; }
  .sp-station.crown .sp-st-label::before { top: -10px; right: 10px; }
  .sp-bubble { left: 104px; right: 10px; bottom: 54px; max-width: none; font-size: .95rem; padding: 10px 12px; }
  .sp-kompi { width: 92px; left: 8px; }
  .sp-opts { grid-template-columns: 1fr; gap: 10px; } .sp-opts.big { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sp-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-opt { min-height: 64px; } .sp-opts.big .sp-opt { min-height: 82px; }
  .sp-task { padding-top: 64px; padding-bottom: 170px; gap: 10px; }
  .sp-lv:nth-child(n) { justify-self: stretch; margin: 0; width: 100%; }
  .sp-grade { width: 96px; height: 110px; } .sp-grade b { font-size: 2.8rem; }
  .sp-tens b { height: 88px; }
}
@media (prefers-reduced-motion: reduce) { .sp-stage *, .sp-stage *::before { animation: none !important; transition: none !important; } }
