:root {
  --ink: #2b2250;
  --ink-soft: #6b6390;
  --paper: #ffffff;
  --bg1: #e9e4ff;
  --bg2: #fff3d9;
  --primary: #6c4cf5;
  --primary-dark: #5136d1;
  --good: #22b35e;
  --good-bg: #dcf8e7;
  --bad: #e8434f;
  --bad-bg: #ffe3e5;
  --warn: #ff9f1c;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(43, 34, 80, .12), 0 12px 30px rgba(43, 34, 80, .10);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 4px solid #ffc53d; outline-offset: 3px; }

.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .45; animation: float 18s ease-in-out infinite; }
.blobs i:nth-child(1) { width: 260px; height: 260px; background: #ffc53d; top: -80px; left: -60px; }
.blobs i:nth-child(2) { width: 200px; height: 200px; background: #ff5cc8; bottom: 8%; right: -60px; animation-delay: -5s; }
.blobs i:nth-child(3) { width: 140px; height: 140px; background: #2ec4b6; bottom: -40px; left: 20%; animation-delay: -9s; }
.blobs i:nth-child(4) { width: 110px; height: 110px; background: #3da5ff; top: 30%; right: 12%; animation-delay: -13s; }
@keyframes float { 50% { transform: translate(20px, 30px) scale(1.08); } }

#app {
  max-width: 980px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; width: 100%; height: 100%; }

/* ---------- algemeen ---------- */
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 6vw, 44px); }
h2 { font-size: clamp(22px, 4.5vw, 32px); }
p { line-height: 1.5; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.btn {
  border: 0;
  border-radius: 18px;
  padding: 14px 22px;
  font-size: 20px;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 0 var(--primary-dark);
  transition: transform .08s, box-shadow .08s;
  min-height: 56px;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--primary-dark); }
.btn.big { font-size: 24px; padding: 18px 34px; min-height: 68px; }
.btn.ghost { background: #fff; color: var(--primary); box-shadow: 0 5px 0 #d8d0ff; }
.btn.green { background: var(--good); box-shadow: 0 5px 0 #178746; }
.btn.orange { background: var(--warn); box-shadow: 0 5px 0 #d47c00; }
.btn.red { background: var(--bad); box-shadow: 0 5px 0 #b62632; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn {
  border: 0; background: #fff; border-radius: 16px; width: 52px; height: 52px; font-size: 24px;
  box-shadow: 0 4px 0 rgba(43, 34, 80, .12);
}

.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 800; font-size: 18px; box-shadow: 0 4px 0 rgba(43, 34, 80, .10);
}

/* ---------- home ---------- */
.hero { display: flex; align-items: center; gap: 16px; margin: 8px 0 22px; }
.mascot {
  width: 84px; height: 84px; flex: none; border-radius: 28px; display: grid; place-items: center; font-size: 52px;
  background: none; box-shadow: var(--shadow);
  animation: bob 3s ease-in-out infinite;
}
.mascot img { width: 100%; height: 100%; border-radius: inherit; display: block; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.mode {
  border: 0; text-align: left; border-radius: var(--radius); padding: 20px; color: #fff; min-height: 150px;
  display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .12s;
}
.mode:hover { transform: translateY(-3px) rotate(-.5deg); }
.mode:active { transform: translateY(2px); }
.mode .emoji { font-size: 44px; line-height: 1; }
.mode b { font-size: 24px; }
.mode span { font-size: 16px; opacity: .95; line-height: 1.35; }
.mode::after {
  content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); right: -40px; bottom: -50px;
}
.m-calm { background: linear-gradient(145deg, #2ec4b6, #1a9e93); }
.m-voice { background: linear-gradient(145deg, #ff5d73, #e83e5b); }
.m-juf { background: linear-gradient(145deg, #ff9f1c, #f07b00); }
.m-test { background: linear-gradient(145deg, #3da5ff, #2b7fe0); }
.m-stars { background: linear-gradient(145deg, #8b6cff, #6c4cf5); }
.m-hard { background: linear-gradient(145deg, #ff5cc8, #d93aa6); }

/* ---------- tafel-kiezer ---------- */
.tables { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tchip {
  border: 4px solid transparent; border-radius: 20px; padding: 10px 4px 8px; background: #fff;
  font-weight: 900; font-size: 30px; box-shadow: 0 4px 0 rgba(43, 34, 80, .12);
  display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative;
}
.tchip small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.tchip.on { color: #fff; border-color: rgba(255, 255, 255, .6); }
.tchip.on small { color: rgba(255, 255, 255, .9); }
.tchip .stars-mini { font-size: 12px; letter-spacing: -1px; min-height: 14px; }
.seg { display: inline-flex; background: #fff; border-radius: 16px; padding: 4px; box-shadow: 0 4px 0 rgba(43, 34, 80, .10); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 17px; min-height: 46px; }
.seg button.on { background: var(--primary); color: #fff; }

/* ---------- oefenen ---------- */
.progress { flex: 1; height: 18px; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .08); }
.progress > div { height: 100%; background: linear-gradient(90deg, #5cd65c, #2ec4b6); border-radius: 999px; transition: width .4s; }
.qcard { text-align: center; padding: 26px 16px; position: relative; }
.question {
  font-size: clamp(56px, 15vw, 110px); font-weight: 900; letter-spacing: -2px; line-height: 1.05;
  display: flex; justify-content: center; align-items: center; gap: .2em; flex-wrap: wrap;
}
.question .x { color: var(--ink-soft); font-size: .7em; }
.answer-box {
  min-width: 1.8em; padding: 0 .15em; border-radius: 18px; background: #f3f0ff; color: var(--primary);
  border: 4px dashed #cfc4ff;
}
.answer-box.filled { border-style: solid; }
.qcard.good .answer-box { background: var(--good-bg); color: var(--good); border-color: var(--good); }
.qcard.bad .answer-box { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.qcard.good { animation: pop .35s; }
.qcard.bad { animation: shake .4s; }
@keyframes pop { 40% { transform: scale(1.04); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.feedback { min-height: 64px; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 6px; }
.feedback.good { color: var(--good); }
.feedback.bad { color: var(--bad); }
.hint {
  background: #fff8dd; border: 3px solid #ffe08a; border-radius: 18px; padding: 12px 16px;
  font-size: 19px; text-align: left; line-height: 1.45;
}

.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
.pad button {
  border: 0; border-radius: 18px; background: #fff; font-size: 32px; font-weight: 900; min-height: 64px;
  box-shadow: 0 5px 0 rgba(43, 34, 80, .14);
}
.pad button:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(43, 34, 80, .14); }
.pad .ok { background: var(--good); color: #fff; box-shadow: 0 5px 0 #178746; }
.pad .del { background: #ffe3e5; color: var(--bad); }

.mic {
  width: 150px; height: 150px; border-radius: 50%; border: 0; font-size: 64px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff8a9a, #e83e5b); box-shadow: 0 8px 0 #b62632, 0 18px 40px rgba(232, 62, 91, .35);
  display: grid; place-items: center; margin: 4px auto; position: relative;
}
.mic.listening { animation: none; outline: calc(6px + var(--lvl, 0) * 34px) solid rgba(34, 179, 94, .28); outline-offset: 4px; transition: outline-width .08s; background: radial-gradient(circle at 35% 30%, #7ef0a0, #22b35e); box-shadow: 0 8px 0 #178746; }
.mic.speaking { background: radial-gradient(circle at 35% 30%, #b9a8ff, #6c4cf5); box-shadow: 0 8px 0 var(--primary-dark); }
@keyframes pulse { 0% { box-shadow: 0 8px 0 #178746, 0 0 0 0 rgba(34, 179, 94, .5); } 100% { box-shadow: 0 8px 0 #178746, 0 0 0 30px rgba(34, 179, 94, 0); } }
.heard { font-size: 18px; color: var(--ink-soft); min-height: 26px; text-align: center; }

/* ---------- juf vraagt ---------- */
.classroom { background: linear-gradient(#3d7a52, #2f6644); border: 10px solid #a0703c; border-radius: 22px; color: #fff; padding: 18px; position: relative; }
.classroom .juf { display: flex; align-items: flex-start; gap: 12px; }
.classroom .juf .face { font-size: 54px; line-height: 1; }
.bubble { background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 16px; font-size: 22px; font-weight: 800; position: relative; flex: 1; }
.bubble::before { content: ""; position: absolute; left: -10px; top: 18px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.kids { display: flex; justify-content: center; gap: clamp(4px, 2vw, 16px); font-size: clamp(30px, 7vw, 46px); margin-top: 14px; }
.kids span { display: inline-block; animation: look 4s ease-in-out infinite; }
.kids span:nth-child(2n) { animation-delay: -1.3s; }
.kids span:nth-child(3n) { animation-delay: -2.6s; }
@keyframes look { 50% { transform: translateY(-4px) rotate(5deg); } }
.timer { height: 14px; background: rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.timer > div { height: 100%; background: #ffc53d; width: 100%; }
.breathe { width: 180px; height: 180px; border-radius: 50%; margin: 10px auto; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #fff; background: radial-gradient(circle, #7ee0d6, #2ec4b6); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.7); } 50% { transform: scale(1); } }
.tips { display: grid; gap: 10px; }
.tips div { background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.tips b { font-size: 26px; }

/* ---------- toets (papier) ---------- */
.sheet {
  background:
    linear-gradient(90deg, transparent 54px, #ffb3b3 54px, #ffb3b3 56px, transparent 56px),
    repeating-linear-gradient(#fff 0 47px, #cfe3ff 47px 48px);
  border-radius: 14px; padding: 22px 18px 22px 70px; box-shadow: var(--shadow); position: relative;
}
.sheet.graded .sheet-head { padding-right: 112px; }
.sheet-head { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 18px; margin-bottom: 14px; font-weight: 700; }
.sheet-head u { text-decoration-style: dotted; }
.sums { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 26px; }
.sum { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; height: 48px; position: relative; }
.sum .n { width: 28px; font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.sum .s { min-width: 104px; }
.sum input {
  width: 84px; font: inherit; font-size: 26px; text-align: center; border: 0; border-bottom: 3px solid #9db8e6;
  background: transparent; color: #1f3fbf; font-family: "Comic Sans MS", "Chalkboard SE", ui-rounded, cursive; padding: 2px;
}
.sum input:focus { outline: none; border-bottom-color: var(--primary); background: #f3f0ff; border-radius: 8px 8px 0 0; }
.sum .mark { font-size: 30px; width: 30px; }
.sum.ok .mark { color: var(--good); }
.sum.no .mark { color: var(--bad); }
.sum.no input { color: #8a8aa0; text-decoration: line-through; }
.sum .fix { color: var(--bad); font-family: "Comic Sans MS", "Chalkboard SE", cursive; font-size: 24px; }
.grade {
  position: absolute; top: 12px; right: 16px; width: 104px; height: 104px; border: 5px solid var(--bad); border-radius: 50%;
  color: var(--bad); display: grid; place-items: center; font-size: 40px; font-weight: 900; transform: rotate(-12deg);
  font-family: "Comic Sans MS", "Chalkboard SE", cursive; background: rgba(255, 255, 255, .85);
  animation: stamp .5s cubic-bezier(.2, 2, .4, 1);
}
@keyframes stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } }

/* ---------- resultaat & voortgang ---------- */
.big-stars { font-size: clamp(54px, 14vw, 84px); letter-spacing: 4px; }
.mistakes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mistakes span { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 20px; }
.grid100 { display: grid; grid-template-columns: auto repeat(10, 1fr); gap: 4px; font-size: 13px; font-weight: 800; }
.grid100 div { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; }
.grid100 .h { color: var(--ink-soft); aspect-ratio: auto; }
.st-new { background: #eeeaf8; color: #b3abd0; }
.st-learning { background: #ffe9b3; color: #9a6a00; }
.st-good { background: #bff0cf; color: #157a3e; }
.st-bad { background: #ffcfd3; color: #b62632; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 5px; vertical-align: -3px; margin-right: 4px; }
.tprog { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tprog .card { padding: 14px; display: flex; align-items: center; gap: 12px; }
.ring { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ring b { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 20px; }
table.hist { width: 100%; border-collapse: collapse; font-size: 17px; }
table.hist td, table.hist th { padding: 8px 6px; text-align: left; border-bottom: 2px solid #f0ecff; }

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.field input[type=text] { font: inherit; font-size: 24px; padding: 12px 16px; border-radius: 16px; border: 3px solid #d8d0ff; min-height: 56px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; font-size: 18px; padding: 8px 0; }
.switch input { width: 28px; height: 28px; accent-color: var(--primary); }
.notice { background: #fff8dd; border-left: 6px solid #ffc53d; border-radius: 12px; padding: 12px 14px; font-size: 16px; }

.updbar {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 800; font-size: 17px; color: #fff;
  background: var(--primary); box-shadow: 0 5px 0 var(--primary-dark), 0 12px 30px rgba(43, 34, 80, .25); white-space: nowrap;
}
@media (max-width: 560px) {
  .tables { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .tchip { font-size: 24px; border-radius: 14px; }
  .mode { min-height: 120px; }
  .mic { width: 128px; height: 128px; font-size: 54px; }
  .sheet { padding-left: 62px; }
  .sheet { background: linear-gradient(90deg, transparent 46px, #ffb3b3 46px, #ffb3b3 48px, transparent 48px), repeating-linear-gradient(#fff 0 47px, #cfe3ff 47px 48px); }
  .grade { width: 80px; height: 80px; font-size: 30px; }
  .sheet.graded .sheet-head { padding-right: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =================== Opknapbeurt 2.0 =================== */
@font-face { font-family: 'Fredoka'; src: url('vendor/fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root { font-family: 'Fredoka', ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif; --gold1: #ffe27a; --gold2: #ffb300; }
body {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 230, 150, .7) 0, transparent 35%),
    radial-gradient(circle at 100% 30%, rgba(255, 170, 210, .45) 0, transparent 35%),
    linear-gradient(170deg, #efe9ff 0%, #ffeef6 55%, #fff4dc 100%);
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.3px; }
b, strong, .btn, .pill, .mode b, .tchip, .question, .pad button { font-weight: 600; }
.btn, .pad button, .seg button, .tchip, input { font-family: inherit; }

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky span {
  position: absolute; left: var(--x); top: var(--y); font-size: var(--s); color: var(--c); opacity: .16; font-weight: 700;
  transform: rotate(var(--r)); animation: drift var(--d) ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(18px, -26px) rotate(calc(var(--r) * -1)); } }

.pill.gold { background: linear-gradient(180deg, #fff7d1, #ffe27a); color: #7a5200; box-shadow: 0 4px 0 #e5b400; }
.avatar-chip { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 17px; font-weight: 600; box-shadow: 0 4px 0 rgba(43, 34, 80, .1); }
.avatar-chip .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #f1ecff; }

/* Uil */
.owl { display: block; flex: none; overflow: visible; }
.owl .pupils { transform-origin: 50px 48px; animation: blink 5s infinite; }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.owl-cheer { animation: cheer .6s ease-in-out 2; }
@keyframes cheer { 50% { transform: translateY(-10px) rotate(-4deg); } }
.owl-think { animation: tilt 1.2s ease-in-out; }
@keyframes tilt { 40% { transform: rotate(-8deg); } }
.owl-hero { width: 118px; height: 132px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(43, 34, 80, .18)); }
.owl-sm { width: 62px; height: 70px; }
.owl-lg { width: 130px; height: 146px; margin: 0 auto; }
.owl-xl { width: 150px; height: 168px; margin: 0 auto; }

.hero { align-items: flex-end; gap: 14px; }
.hero-txt { flex: 1; min-width: 0; }
.speech {
  margin-top: 10px; background: #fff; border-radius: 20px; padding: 12px 16px; font-size: 17px; line-height: 1.4; position: relative;
  box-shadow: 0 5px 0 rgba(43, 34, 80, .08), 0 12px 24px rgba(43, 34, 80, .08);
}
.speech::before { content: ""; position: absolute; left: -10px; bottom: 18px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.speech b { color: var(--primary); }

/* Modus-kaarten */
.modes { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.mode { min-height: 0; padding: 16px 16px 16px 14px; flex-direction: row; align-items: center; gap: 14px; border-radius: 26px; }
.mode::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, .16) 2px, transparent 2.6px) 0 0 / 18px 18px;
}
.mode::after { width: 170px; height: 170px; right: -60px; bottom: -80px; background: rgba(255, 255, 255, .14); }
.mode .ico {
  width: 66px; height: 66px; flex: none; border-radius: 22px; display: grid; place-items: center; font-size: 38px;
  background: rgba(255, 255, 255, .25); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08), 0 4px 10px rgba(0, 0, 0, .08); position: relative; z-index: 1;
}
.mode .mtxt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; position: relative; z-index: 1; }
.mode .mtxt b { font-size: 23px; }
.mode .mtxt span { font-size: 15.5px; opacity: .95; }
.mode .mtxt em { font-style: normal; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .28); border-radius: 999px; padding: 3px 10px; align-self: flex-start; margin-top: 4px; }
.mode .arrow { font-size: 38px; opacity: .8; position: relative; z-index: 1; line-height: 1; }
.m-games { background: linear-gradient(145deg, #00c2a8, #2b8cf0); }
.m-cabinet { background: linear-gradient(145deg, #b07a3c, #7a4a1c); }

/* Sterrenpad (voortgang) */
.path { flex: 1; display: flex; gap: 4px; align-items: center; min-width: 0; }
.path i { flex: 1; max-width: 26px; height: 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 2px 3px rgba(43, 34, 80, .12); }
.path i.ok { background: linear-gradient(180deg, var(--gold1), var(--gold2)); box-shadow: 0 2px 0 #d29500; }
.path i.no { background: #ffc2c8; }
.path i.now { background: #fff; box-shadow: 0 0 0 3px var(--primary); animation: nowp 1.2s ease-in-out infinite; }
@keyframes nowp { 50% { box-shadow: 0 0 0 6px rgba(108, 76, 245, .35); } }

.owlrow { display: flex; align-items: center; gap: 10px; position: relative; }
.bubble-fb {
  flex: 1; justify-content: flex-start; text-align: left; background: #fff; border-radius: 20px; padding: 10px 16px; min-height: 58px;
  font-size: 20px; position: relative; box-shadow: 0 4px 0 rgba(43, 34, 80, .08); color: var(--ink);
}
.bubble-fb::before { content: ""; position: absolute; left: -10px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.bubble-fb.good { color: var(--good); background: #eafff1; }
.bubble-fb.good::before { border-right-color: #eafff1; }
.bubble-fb.bad { color: var(--bad); background: #fff0f1; }
.bubble-fb.bad::before { border-right-color: #fff0f1; }
.combo {
  position: absolute; right: 6px; top: -22px; background: linear-gradient(180deg, #ffb347, #ff6a3c); color: #fff; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 0 #c94a1c; animation: combo .5s cubic-bezier(.2, 2, .4, 1);
}
@keyframes combo { from { transform: scale(0) rotate(-20deg); } }
.qcard { border-radius: 28px; }
.qcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 28px 28px 0 0; background: linear-gradient(90deg, #ff5d73, #ffc53d, #5cd65c, #3da5ff, #a64cf0); }

/* Regenboog-cijfers */
.pad button { font-size: 34px; border-radius: 20px; }
.pad [data-d="1"] { color: #ff5d73; box-shadow: 0 5px 0 #ff5d73; } .pad [data-d="2"] { color: #ff8a3d; box-shadow: 0 5px 0 #ff8a3d; }
.pad [data-d="3"] { color: #e0a000; box-shadow: 0 5px 0 #f5b400; } .pad [data-d="4"] { color: #3cb94a; box-shadow: 0 5px 0 #3cb94a; }
.pad [data-d="5"] { color: #17b3a6; box-shadow: 0 5px 0 #17b3a6; } .pad [data-d="6"] { color: #2f95f0; box-shadow: 0 5px 0 #2f95f0; }
.pad [data-d="7"] { color: #6c63ff; box-shadow: 0 5px 0 #6c63ff; } .pad [data-d="8"] { color: #a64cf0; box-shadow: 0 5px 0 #a64cf0; }
.pad [data-d="9"] { color: #f0479f; box-shadow: 0 5px 0 #f0479f; } .pad [data-d="0"] { color: #e0603a; box-shadow: 0 5px 0 #e0603a; }

/* Resultaat */
.big-stars { display: flex; justify-content: center; gap: 6px; font-size: clamp(60px, 16vw, 90px); line-height: 1; }
.big-stars span { color: #e6e1f5; }
.big-stars .won { color: #ffc400; text-shadow: 0 4px 0 #e09a00; animation: starpop .5s cubic-bezier(.2, 2, .4, 1) both; }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); opacity: 0; } }

/* Medailles */
.tcard { gap: 12px; }
.medal { width: 54px; height: 66px; flex: none; filter: drop-shadow(0 3px 3px rgba(43, 34, 80, .2)); }
.minibar { height: 8px; background: #f0ecff; border-radius: 999px; overflow: hidden; margin: 5px 0 3px; }
.minibar > div { height: 100%; border-radius: 999px; }

@media (max-width: 560px) {
  .owl-hero { width: 92px; height: 104px; }
  .hero h1 { font-size: 26px; }
  .speech { font-size: 15.5px; }
  .mode .ico { width: 58px; height: 58px; font-size: 32px; }
  .mode .mtxt b { font-size: 21px; }
}

/* =================== Spelers =================== */
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avbtn { border: 3px solid transparent; background: #f5f2ff; border-radius: 18px; font-size: 32px; aspect-ratio: 1; display: grid; place-items: center; }
.avbtn.on { border-color: var(--primary); background: #fff; box-shadow: 0 4px 0 #d8d0ff; transform: scale(1.06); }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; max-width: 720px; margin: 0 auto; }
.player {
  border: 0; background: #fff; border-radius: 26px; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--shadow); font-size: 20px; transition: transform .12s;
}
.player:active { transform: translateY(3px); }
.player .av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 50px; background: linear-gradient(145deg, #f1ecff, #ffe9f3); }
.player.last { outline: 4px solid #ffc53d; }
.player.add .av { background: #f5f5f5; font-size: 38px; }

/* =================== Prijzenkast (3D) =================== */
.cab-scene { perspective: 1100px; perspective-origin: 50% 30%; padding: 10px 4px 26px; touch-action: pan-y; }
.cabinet {
  --rx: 5deg; --ry: -7deg;
  position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out;
  max-width: 760px; margin: 0 auto; border-radius: 18px 18px 10px 10px; padding: 14px 14px 18px;
  background: linear-gradient(90deg, #6b3d14, #9b6230 18%, #a86c36 50%, #9b6230 82%, #6b3d14);
  box-shadow: 0 30px 40px -18px rgba(43, 34, 80, .55), inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -6px 0 rgba(0, 0, 0, .25);
}
/* zijwanden voor diepte */
.cabinet::before, .cabinet::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; background: linear-gradient(90deg, #4f2c0e, #7a4a1c);
  border-radius: 6px;
}
.cabinet::before { left: 0; transform-origin: left center; transform: rotateY(90deg); }
.cabinet::after { right: 0; transform-origin: right center; transform: rotateY(-90deg); }
.cab-crest { text-align: center; margin: -2px 0 10px; transform: translateZ(2px); }
.cab-crest span {
  display: inline-block; padding: 6px 18px; border-radius: 999px; font-weight: 700; color: #6b4100; font-size: 17px;
  background: linear-gradient(180deg, #fff3b0, #ffc61a 60%, #d99a00); box-shadow: 0 3px 0 #8a5a00, inset 0 1px 0 #fff;
}
.cab-inner {
  transform-style: preserve-3d; border-radius: 10px; padding: 10px 10px 4px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 240, 190, .35) 0, transparent 45%),
    radial-gradient(ellipse at 80% 0%, rgba(255, 240, 190, .35) 0, transparent 45%),
    linear-gradient(180deg, #3a2f66, #241d45);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(0, 0, 0, .25);
}
.shelf { transform-style: preserve-3d; position: relative; padding-top: 8px; }
.cups { display: grid; grid-template-columns: repeat(var(--per, 5), 1fr); gap: 6px; align-items: end; transform-style: preserve-3d; position: relative; z-index: 2; }
@media (max-width: 599px) { .cabinet { --ry: 0deg; --rx: 3deg; padding: 12px 8px 16px; } .cups { --per: 4; gap: 2px; } .cup-slot { height: 92px; padding: 0; min-width: 0; transform: translateZ(10px); } .cup3d { width: 62px; height: 82px; } }
.cup-slot {
  border: 0; background: none; padding: 0 4px; position: relative; transform-style: preserve-3d; transform: translateZ(18px);
  height: 118px; display: flex; align-items: flex-end; justify-content: center; cursor: pointer;
}
.cup-slot .shadow { position: absolute; bottom: -2px; left: 22%; right: 22%; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(3px); transform: translateZ(-1px); }
.cup3d { position: relative; width: 84px; height: 110px; transform-style: preserve-3d; }
.cup-layer { position: absolute; inset: 0; }
.cup-layer .cup { width: 100%; height: 100%; display: block; }
.cup-slot.won .cup3d { animation: idle 6s ease-in-out infinite; }
.cup-slot.won:nth-child(2n) .cup3d { animation-delay: -2s; }
.cup-slot.won:nth-child(3n) .cup3d { animation-delay: -4s; }
@keyframes idle { 50% { transform: rotateY(18deg); } }
.cup-slot.spin .cup3d { animation: spin .7s ease-in-out; }
@keyframes spin { to { transform: rotateY(360deg); } }
.cup-slot.locked .cup3d { opacity: .55; }
.cup-slot.won.tier-goud::before, .cup-slot.won.tier-diamant::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 6px; bottom: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 120, .35), transparent 65%); transform: translateZ(-8px);
}
.cup-slot.won.tier-diamant::before { background: radial-gradient(circle, rgba(140, 220, 255, .45), transparent 65%); }
.plank { height: 16px; position: relative; transform-style: preserve-3d; margin: 0 -10px 12px; }
.plank i {
  position: absolute; inset: 0; border-radius: 3px; display: block;
  background: linear-gradient(180deg, #c28a52, #8a5524); box-shadow: 0 8px 12px rgba(0, 0, 0, .45); transform: translateZ(26px);
}
.plank::before { /* bovenkant van de plank (glas/hout) */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52px; transform-origin: top center;
  transform: translateZ(26px) rotateX(90deg); background: linear-gradient(180deg, rgba(220, 240, 255, .35), rgba(255, 255, 255, .08));
}
.glass {
  position: absolute; inset: 52px 14px 14px; border-radius: 10px; pointer-events: none; transform: translateZ(40px);
  background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .05) 22%, transparent 23%, transparent 60%, rgba(255, 255, 255, .12) 61%, transparent 70%);
  border: 2px solid rgba(255, 255, 255, .15);
}
.cab-legend { position: relative; z-index: 5; margin-top: 18px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-weight: 600; }
.cab-legend i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -2px; margin-right: 5px; }
.cab-legend .tier-brons i { background: #d9894a; } .cab-legend .tier-zilver i { background: #b9c3cf; }
.cab-legend .tier-goud i { background: #ffc61a; } .cab-legend .tier-diamant i { background: #7fd9ff; }

/* Bekerfeest (venster) */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(30, 20, 60, .55); backdrop-filter: blur(4px); animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.modal-card {
  background: #fff; border-radius: 30px; padding: 26px 22px 22px; max-width: 420px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); position: relative; animation: popin .45s cubic-bezier(.2, 1.8, .4, 1);
}
@keyframes popin { from { transform: scale(.6); opacity: 0; } }
.modal-card .ribbon {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 8px 22px; border-radius: 999px; font-weight: 700; font-size: 19px; color: #fff;
  background: linear-gradient(180deg, #ff7a9c, #f0479f); box-shadow: 0 5px 0 #b82a74;
}
.spin-stage { perspective: 600px; width: 170px; height: 200px; display: grid; place-items: center; margin-top: 10px;
  background: radial-gradient(circle at 50% 55%, rgba(255, 214, 92, .55), transparent 62%); }
.spin-stage .cup3d { width: 150px; height: 196px; animation: spin360 3.2s linear infinite; }
@keyframes spin360 { to { transform: rotateY(360deg); } }
.tier-label { margin: 0; font-weight: 600; }
.modal-card.tier-brons .tier-label { color: #b8692c; } .modal-card.tier-zilver .tier-label { color: #6b7a8c; }
.modal-card.tier-goud .tier-label { color: #c48a00; } .modal-card.tier-diamant .tier-label { color: #2f74d0; }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; max-width: 92vw;
  background: #2b2250; color: #fff; padding: 12px 18px; border-radius: 16px; font-size: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: fadein .2s;
}

/* =================== Spelletjes =================== */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gcard { border-radius: 26px; padding: 18px; color: #fff; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.gcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .15) 2px, transparent 2.6px) 0 0 / 18px 18px; pointer-events: none; }
.g-balloon { background: linear-gradient(145deg, #ff7aa2, #ff5d73); }
.g-memory { background: linear-gradient(145deg, #8b6cff, #5a3fd6); }
.g-rocket { background: linear-gradient(145deg, #3da5ff, #2156c9); }
.gtop { display: flex; gap: 12px; align-items: center; position: relative; }
.gtop b { font-size: 23px; }
.gico { width: 62px; height: 62px; flex: none; display: grid; place-items: center; font-size: 36px; border-radius: 20px; background: rgba(255, 255, 255, .25); }
.gdesc { font-size: 15px; opacity: .95; }
.gcups { display: flex; align-items: flex-end; gap: 4px; position: relative; }
.mini-cup { width: 34px; height: 44px; } .mini-cup .cup { width: 100%; height: 100%; }
.mini-cup.off { opacity: .55; }
.gbest { margin-left: auto; font-weight: 600; background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.gcard .btn { position: relative; }
.timer-bar { flex: 1; height: 18px; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .08); }
.timer-bar > div { height: 100%; width: 100%; background: linear-gradient(90deg, #5cd65c, #2ec4b6); border-radius: 999px; }
.timer-bar > div.low { background: linear-gradient(90deg, #ff9f1c, #ff5d73); }
.gq { text-align: center; font-size: clamp(40px, 11vw, 64px); font-weight: 700; color: var(--ink); margin: 4px 0 10px; }
.gq.flash { animation: pop .35s; }
.won-cup { perspective: 600px; height: 170px; display: grid; place-items: center; }
.won-cup .cup3d { width: 120px; height: 160px; animation: spin360 4s linear infinite; }
.newrec { margin: 0; font-size: 22px; font-weight: 700; color: #f0479f; }

/* Ballonnen */
.balloon-sky {
  position: relative; height: min(62vh, 560px); border-radius: 26px; overflow: hidden; touch-action: manipulation;
  background: linear-gradient(180deg, #8fd3ff 0%, #c8ecff 60%, #e9fff0 100%); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .6), var(--shadow);
}
.cloud { position: absolute; width: 120px; height: 40px; background: #fff; border-radius: 999px; opacity: .9; animation: cloud 30s linear infinite; }
.cloud::before { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; background: #fff; left: 20px; top: -28px; }
.cloud.c1 { top: 12%; left: -130px; } .cloud.c2 { top: 45%; left: -130px; animation-delay: -15s; transform: scale(.7); }
@keyframes cloud { to { left: 110%; } }
.balloon {
  position: absolute; left: var(--x); bottom: -150px; width: 84px; height: 126px; border: 0; background: none; padding: 0;
  animation: rise var(--dur) linear forwards, sway 2.4s ease-in-out infinite alternate; touch-action: manipulation;
}
.balloon svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .15)); }
.balloon span { position: absolute; left: 0; right: 0; top: 34px; text-align: center; font-size: 30px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); pointer-events: none; }
@keyframes rise { to { bottom: 110%; } }
@keyframes sway { to { margin-left: var(--sway); } }
.balloon.pop { animation: burst .3s forwards; }
@keyframes burst { to { transform: scale(1.7); opacity: 0; } }
.balloon.wrong { animation: rise var(--dur) linear forwards, nope .45s; opacity: .4; }
@keyframes nope { 25%, 75% { margin-left: -10px; } 50% { margin-left: 10px; } }

/* Memory */
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 640px; margin: 0 auto; perspective: 900px; }
@media (max-width: 560px) { .memory { grid-template-columns: repeat(3, 1fr); } }
.mcard { border: 0; background: none; padding: 0; aspect-ratio: 3 / 4; position: relative; transform-style: preserve-3d; transition: transform .45s; }
.mcard.flip, .mcard.done { transform: rotateY(180deg); }
.mface { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; box-shadow: 0 5px 0 rgba(43, 34, 80, .15); }
.mface.back { background: linear-gradient(145deg, #8b6cff, #f0479f); }
.mface.back::before { content: ""; position: absolute; inset: 6px; border-radius: 13px; border: 2px dashed rgba(255, 255, 255, .45); }
.owl-card { width: 56%; height: auto; }
.mface.front { transform: rotateY(180deg); background: #fff; font-weight: 700; color: var(--tc); border: 4px solid var(--tc); }
.mface.front.sum { font-size: clamp(22px, 6vw, 32px); }
.mface.front.ans { font-size: clamp(32px, 9vw, 46px); background: #fffbea; }
.mcard.done .mface.front { background: #eafff1; border-color: var(--good); animation: glow 1s; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(34, 179, 94, .35); } }

/* Raketrace */
.space {
  --h: 0; position: relative; height: 230px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(180deg, color-mix(in srgb, #0b0830 calc(var(--h) * 100%), #6fc3ff), color-mix(in srgb, #2b1d6b calc(var(--h) * 100%), #d6f0ff));
  transition: background 1s;
}
.stars-bg { position: absolute; inset: -100% 0 0; opacity: calc(var(--h) * 1.2);
  background-image: radial-gradient(#fff 1.4px, transparent 1.6px), radial-gradient(#fff 1px, transparent 1.2px);
  background-size: 60px 60px, 37px 37px; background-position: 0 0, 18px 22px; animation: starfall 6s linear infinite; }
.space.boost .stars-bg { animation-duration: 1.2s; }
@keyframes starfall { to { transform: translateY(50%); } }
.rocket { position: absolute; left: 50%; bottom: 22px; width: 64px; height: 118px; margin-left: -32px; animation: hover 1.6s ease-in-out infinite; }
.rocket svg { width: 100%; height: 100%; }
.rocket .flame { transform-origin: 30px 80px; animation: flame .15s ease-in-out infinite alternate; }
@keyframes flame { to { transform: scaleY(1.25); } }
@keyframes hover { 50% { transform: translateY(-8px); } }
.space.boost .rocket { animation: boost .6s ease-out; }
@keyframes boost { 40% { transform: translateY(-40px); } }
.rocket.shake { animation: shake .4s; }
.alt { position: absolute; left: 12px; top: 10px; color: #fff; font-weight: 700; background: rgba(0, 0, 0, .25); padding: 4px 12px; border-radius: 999px; }
.sight { position: absolute; right: 14px; top: 40px; color: #fff; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.sight span { font-size: 54px; } .sight b { background: rgba(0, 0, 0, .3); padding: 2px 10px; border-radius: 999px; }
.sight.show { animation: sight 2.6s forwards; }
@keyframes sight { 15%, 75% { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(-30px); } to { opacity: 0; transform: translateY(60px); } }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 0 auto; }
.choice { border: 0; border-radius: 22px; min-height: 80px; font-size: 38px; font-weight: 700; color: #fff; }
.choice.c0 { background: #ff5d73; box-shadow: 0 6px 0 #c23a4f; } .choice.c1 { background: #ffb22c; box-shadow: 0 6px 0 #c98400; }
.choice.c2 { background: #2ec4b6; box-shadow: 0 6px 0 #1a8d83; } .choice.c3 { background: #6c63ff; box-shadow: 0 6px 0 #4a41d0; }
.choice:active { transform: translateY(4px); box-shadow: none; }
.choice.wrong { opacity: .35; animation: shake .4s; }

/* =================== Premium 2.1 =================== */
:root { --mc: #d8cfff; }
html { background: #3b22a0; }
.sky {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 170, 230, .45), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(90, 200, 255, .28), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 90%, rgba(255, 190, 90, .22), transparent 60%),
    linear-gradient(175deg, #2a1d78 0%, #4b2ab8 45%, #6d36c9 75%, #8a3fbf 100%);
  z-index: -3;
}
body { background: transparent; }
.ic { width: 1.3em; height: 1.3em; }
.btn .ic { width: 32px; height: 32px; vertical-align: -8px; margin-right: 4px; }
body::before { /* sterrenhemel */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, #fff, transparent), radial-gradient(1.2px 1.2px at 90px 120px, #fff, transparent),
    radial-gradient(1.8px 1.8px at 160px 60px, #fff, transparent), radial-gradient(1px 1px at 230px 170px, #fff, transparent),
    radial-gradient(1.4px 1.4px at 60px 200px, #fff, transparent), radial-gradient(1px 1px at 200px 250px, #fff, transparent);
  background-size: 260px 280px; animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .25; } }
#app { color: #fff; }
.muted { color: var(--mc); }
.card, .modal-card, .sheet, .player, .speech, .bubble-fb, .tcard, .avatar-chip, .pill, .seg, .tchip, .notice, .hint, .toast-light, .field input, .avbtn, .mistakes span {
  --mc: var(--ink-soft); color: var(--ink);
}
.lead { font-size: 18px; margin: -4px 0 14px; color: #efeaff; }
.sky span { color: #fff !important; opacity: .07; text-shadow: 0 0 20px rgba(255, 255, 255, .8); }

.card { border-radius: 26px; box-shadow: 0 8px 0 rgba(20, 8, 70, .25), 0 22px 40px rgba(10, 0, 50, .35); }
.btn {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .15); font-weight: 600; letter-spacing: .2px;
}
.btn.ghost { background-color: #fff; text-shadow: none; }

/* Navigatie */
.topbar { gap: 10px; flex-wrap: nowrap; }
.navbtn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; height: 52px; padding: 0 14px 0 8px; border-radius: 18px; flex: none;
  background: linear-gradient(180deg, #fff, #efeaff); color: var(--ink); font-weight: 600; font-size: 17px;
  box-shadow: 0 5px 0 rgba(20, 8, 70, .3), 0 10px 18px rgba(10, 0, 50, .25);
}
.navbtn .ic { width: 36px; height: 36px; }
.navbtn.round { padding: 0; width: 52px; justify-content: center; }
.navbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(20, 8, 70, .3); }
.tb-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: clamp(19px, 4.6vw, 28px); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.tb-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-ic { width: 38px; height: 38px; flex: none; }
h3 .tb-ic { width: 28px; height: 28px; vertical-align: -7px; }
.pill { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.pill-ic { width: 24px; height: 24px; }
.pill.gold { box-shadow: 0 4px 0 #c98f00, 0 8px 14px rgba(10, 0, 50, .25); }
.pill.fire { background: linear-gradient(180deg, #fff1e0, #ffd0a0); color: #a14a00; box-shadow: 0 4px 0 #e07a1c; }
.avatar-chip { box-shadow: 0 5px 0 rgba(20, 8, 70, .3); }
@media (max-width: 420px) { .navbtn span { display: none; } .navbtn { padding: 0; width: 52px; justify-content: center; } }

/* Held-banner */
.hero {
  position: relative; align-items: flex-end; padding: 18px 16px 16px; border-radius: 30px; margin: 4px 0 20px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); border: 1.5px solid rgba(255, 255, 255, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 40px rgba(10, 0, 50, .3); backdrop-filter: blur(6px);
}
.hero::before { content: ""; position: absolute; left: -40px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 120, .55), transparent 65%); }
.hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.hero .owl-hero { position: relative; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); }
.speech b { color: #6a48f0; }

/* Modus-kaarten */
.mode { border-radius: 28px; padding: 14px 16px 14px 14px; box-shadow: 0 7px 0 rgba(0, 0, 0, .22), 0 18px 30px rgba(10, 0, 50, .3); }
.mode::before { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 50%); }
.mode .ico {
  width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(180deg, #fff, #f1ecff);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .15), inset 0 -3px 0 rgba(43, 34, 80, .08);
}
.mode .ico .ic { width: 52px; height: 52px; }
.mode .mtxt b { font-size: 23px; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.mode .arrow { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; opacity: 1; }
.mode .arrow svg { width: 22px; height: 22px; }
.m-cabinet { background: linear-gradient(145deg, #ffb938, #e07b00); }
.m-stars { background: linear-gradient(145deg, #b07cff, #7b4cf0); }
.mode:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(0, 0, 0, .22); }

/* Spelletjes-kaarten */
.gcard { box-shadow: 0 7px 0 rgba(0, 0, 0, .22), 0 18px 30px rgba(10, 0, 50, .3); }
.gico { background: linear-gradient(180deg, #fff, #f1ecff); width: 68px; height: 68px; }
.gico .ic { width: 50px; height: 50px; }
.mini-cup { width: 40px; height: 50px; } .mini-cup img { width: 100%; height: 100%; object-fit: contain; }
.mini-cup.off { opacity: .7; }

/* Speler-kaarten */
.player .av .ic { width: 52px; height: 52px; }

/* Spellen: tekst op de hemel */
.gq { color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.timer-bar { box-shadow: 0 4px 0 rgba(20, 8, 70, .3); min-width: 40px; }

/* 3D-prijzenkast */
.cab3d-wrap { position: relative; margin: 0 -8px; min-height: 300px; display: grid; place-items: center; }
.cab3d { width: 100%; max-width: 760px; display: block; touch-action: pan-y; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .4)); }
.cab3d-loading { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; }
.cab-legend span { background: rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; }
.cups.flat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #2a1f55; border-radius: 20px; padding: 14px; width: 100%; }
.spin-stage { width: 220px; height: 240px; }
.spin3d { width: 100%; height: 100%; display: block; cursor: grab; }
.won-cup { width: 200px; height: 220px; margin: 0 auto; }

/* =================== Team Bonno 3.0 =================== */
.bonno { display: block; width: auto; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(10, 0, 50, .35)); user-select: none; -webkit-user-drag: none; }
.owl-sm.bonno { height: 96px; width: auto; }
.owl-lg.bonno { height: 210px; width: auto; margin: -10px auto 0; }
.owl-xl.bonno { height: 230px; width: auto; margin: 0 auto; }
.owl-cheer.bonno { animation: cheer .6s ease-in-out 2; transform-origin: bottom center; }
.btn.pink { background-color: #f0479f; box-shadow: 0 5px 0 #b82a74; }

/* Banner met de Wolkenbasis */
.banner {
  position: relative; height: 230px; border-radius: 30px; margin: 6px 0 18px; overflow: visible;
  box-shadow: 0 8px 0 rgba(20, 8, 70, .3), 0 22px 40px rgba(10, 0, 50, .35);
}
.banner-bg { position: absolute; inset: 0; border-radius: inherit; background: url(img/plek/wolkenbasis.webp) center 30% / cover; border: 4px solid #fff; }
.banner-bg::after { content: ""; position: absolute; inset: 0; border-radius: 26px; background: linear-gradient(180deg, transparent 45%, rgba(40, 20, 110, .55)); }
.logo {
  position: absolute; left: 16px; top: 12px; z-index: 2; font-weight: 700; font-size: clamp(38px, 11vw, 60px); line-height: .9; letter-spacing: -1px;
  transform: rotate(-4deg);
}
.logo span { display: inline-block; color: #ffd23f; -webkit-text-stroke: 7px #4a22b8; paint-order: stroke fill; text-shadow: 0 6px 0 #2a1278; }
.logo span + span { color: #fff; margin-left: 2px; }
.banner-bonno { position: absolute; right: 4px; bottom: -6px; height: 250px; z-index: 3; animation: bob 3.2s ease-in-out infinite; }
.banner-speech { position: absolute; left: 12px; bottom: 12px; right: 140px; z-index: 2; font-size: 15px; padding: 10px 14px; border-radius: 18px; }
.banner-speech::before { left: auto; right: -10px; bottom: 24px; border-right: 0; border-left: 10px solid #fff; border-right-color: transparent; }
.banner-speech b { color: #6a48f0; font-size: 17px; }

/* Niveaukaart */
.levelcard {
  width: 100%; display: flex; align-items: center; gap: 12px; border: 0; text-align: left; padding: 14px; border-radius: 26px; margin-bottom: 18px;
  background: linear-gradient(180deg, #fff, #f3efff); color: var(--ink); box-shadow: 0 7px 0 rgba(20, 8, 70, .3), 0 18px 30px rgba(10, 0, 50, .3);
}
.levelcard:active { transform: translateY(4px); }
.lvbadge {
  position: relative; flex: none; width: 64px; height: 70px; display: grid; place-items: center;
  background: var(--lc); clip-path: polygon(50% 0, 100% 18%, 100% 70%, 50% 100%, 0 70%, 0 18%);
}
.lvbadge::before { content: ""; position: absolute; inset: 5px; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 60%); clip-path: inherit; }
.lvbadge b { position: relative; color: #fff; font-size: 32px; font-weight: 700; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.lvbadge.crown { clip-path: none; background: none; }
.lvbadge.crown b { display: none; }
.lv-crown { width: 64px; height: 44px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3)); }
.lvbadge.small { width: 46px; height: 50px; } .lvbadge.small b { font-size: 22px; } .lvbadge.small .lv-crown { width: 46px; height: 32px; }
.lvbadge.big { width: 90px; height: 98px; position: absolute; right: 8px; bottom: 10px; } .lvbadge.big b { font-size: 44px; } .lvbadge.big .lv-crown { width: 96px; height: 64px; }
.lv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lv-txt small { color: var(--ink-soft); font-weight: 600; font-size: 13px; }
.lv-txt > b { font-size: 22px; }
.lv-bar { height: 12px; border-radius: 999px; background: #e9e3ff; overflow: hidden; box-shadow: inset 0 2px 3px rgba(43, 34, 80, .15); }
.lv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5cd65c, #ffd23f); }
.lv-todo { font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.lv-clock { flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.lv-clock .ic { width: 38px; height: 38px; } .lv-clock b { font-size: 22px; } .lv-clock small { font-size: 12px; color: var(--ink-soft); }

/* Missiekaarten */
.missions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mission {
  position: relative; border: 4px solid #fff; border-radius: 26px; padding: 0; height: 176px; overflow: hidden; text-align: left; color: #fff;
  box-shadow: 0 7px 0 rgba(20, 8, 70, .35), 0 16px 28px rgba(10, 0, 50, .35); transition: transform .12s; isolation: isolate;
}
.mission.wide { grid-column: 1 / -1; height: 190px; }
.mission:active { transform: translateY(5px) scale(.98); }
.mi-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transition: transform 6s ease-out; }
.mission:hover .mi-bg { transform: scale(1.08); }
.mi-rays { background: repeating-conic-gradient(from 0deg at 50% 60%, #ffcf3f 0 10deg, #ffb21e 10deg 20deg); }
.mi-medals .mi-rays { background: repeating-conic-gradient(from 0deg at 50% 60%, #b98cff 0 10deg, #9a6cf5 10deg 20deg); }
.mi-hard .mi-rays { background: repeating-conic-gradient(from 0deg at 50% 60%, #ff8aa0 0 10deg, #ff6a86 10deg 20deg); }
.mission::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(25, 10, 80, .75)); }
.mi-ico {
  position: absolute; left: 10px; top: 10px; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(180deg, #fff, #efeaff); box-shadow: 0 5px 0 rgba(20, 8, 70, .3);
}
.mi-ico .ic { width: 44px; height: 44px; }
.mi-label { position: absolute; left: 12px; right: 10px; bottom: 10px; display: flex; flex-direction: column; }
.mi-label b { font-size: 21px; line-height: 1.1; text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 12px rgba(0, 0, 0, .3); }
.mi-label small { font-size: 13.5px; font-weight: 600; opacity: .95; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.mi-chip { position: absolute; right: 8px; top: 10px; font-style: normal; font-weight: 700; font-size: 13px; color: #6b3d00; padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #fff6c4, #ffd23f); box-shadow: 0 3px 0 #c98f00; }
.mi-bonno { position: absolute; right: 6px; bottom: -6px; height: 200px; z-index: -1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.mi-games .mi-label { right: 140px; }
.mi-cup { position: absolute; right: 8px; top: 8px; width: 92px; height: 112px; z-index: -1; filter: drop-shadow(0 6px 8px rgba(120, 60, 0, .45)); }
.mi-cup img, .mi-cup svg { width: 100%; height: 100%; object-fit: contain; }
.board { position: absolute; left: 32%; top: 15%; width: 40%; text-align: center; font-size: 26px; font-weight: 700; color: #fff; font-family: inherit; transform: rotate(-2deg); opacity: .95; }

/* Niveau-ladder */
.lv-explain { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 15.5px; line-height: 1.45; }
.lv-explain img { height: 120px; flex: none; }
.goal { display: flex; gap: 12px; align-items: center; }
.goal > span .ic { width: 40px; height: 40px; }
.goal > div { flex: 1; }
.ladder { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; position: relative; }
.lvrow {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: #fff; color: var(--ink);
  box-shadow: 0 5px 0 rgba(20, 8, 70, .3); border-left: 8px solid var(--lc);
}
.lvrow.todo { opacity: .75; }
.lvrow.now { outline: 4px solid #ffd23f; transform: scale(1.02); padding-right: 92px; }
.lvr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lvr-txt b { font-size: 19px; } .lvr-txt small { color: var(--ink-soft); font-size: 13.5px; }
.lvr-need { font-weight: 600; }
.lvr-clock { display: flex; align-items: center; gap: 2px; font-weight: 700; flex: none; } .lvr-clock .ic { width: 26px; height: 26px; }
.lvr-bonno { position: absolute; right: 4px; bottom: 0; height: 120px; }
.lvrow.done::after { content: "✓"; position: absolute; left: -14px; top: -8px; width: 28px; height: 28px; border-radius: 50%; background: #22b35e; color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Niveau-omhoog-feest */
.levelup .lu-stage { position: relative; width: 240px; height: 230px; display: grid; place-items: end center; overflow: hidden; border-radius: 24px; }
.levelup .lu-stage img { height: 220px; position: relative; z-index: 1; }
.rays { position: absolute; inset: -60%; background: repeating-conic-gradient(#ffe27a 0 12deg, #fff6d0 12deg 24deg); animation: spin360 14s linear infinite; }
.levelup.royal { background: linear-gradient(180deg, #fff8dc, #fff); }
.levelup .ribbon { background: linear-gradient(180deg, #ffd23f, #f5a400); box-shadow: 0 5px 0 #b37b00; color: #5a3500; }

@media (max-width: 420px) {
  .banner { height: 210px; }
  .banner-bonno { height: 225px; right: -6px; }
  .banner-speech { right: 118px; font-size: 14px; }
  .mission { height: 160px; }
  .mi-label b { font-size: 19px; }
}
.gcard { border: 4px solid #fff; isolation: isolate; padding-top: 110px; }
.g-bg { position: absolute; inset: 0 0 auto 0; height: 170px; background-size: cover; background-position: center 35%; z-index: -1; }
.g-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--gfade, #ff5d73)); }
.g-balloon { --gfade: #ff5d73; } .g-memory { --gfade: #5a3fd6; } .g-rocket { --gfade: #2156c9; }
.gcard::before { z-index: -1; }
.gtop b { text-shadow: 0 2px 0 rgba(0, 0, 0, .3); font-size: 25px; }

/* =================== Rustige weergave (bijv. TOS) =================== */
.rustig-switch { align-items: flex-start; }
.rustig-switch span { display: flex; flex-direction: column; gap: 2px; }
.rustig-switch small { font-weight: 400; font-size: 14px; color: var(--ink-soft); line-height: 1.35; }
body.rustig *, body.rustig *::before, body.rustig *::after { animation: none !important; transition: none !important; }
body.rustig .sky, body.rustig::before { display: none; }
body.rustig { background: #ecebf5; }
html:has(body.rustig) { background: #ecebf5; }
body.rustig #app { color: var(--ink); font-size: 18px; }
body.rustig .muted { --mc: var(--ink-soft); }
body.rustig .tb-title, body.rustig .gq, body.rustig .lead, body.rustig .hero h1 { color: var(--ink); text-shadow: none; }
body.rustig .card, body.rustig .mission, body.rustig .levelcard, body.rustig .gcard, body.rustig .navbtn, body.rustig .lvrow { box-shadow: 0 2px 0 rgba(43, 34, 80, .15); }
/* Kaarten: één effen kleur, geen tekening erachter */
body.rustig .mi-bg, body.rustig .mi-bonno, body.rustig .mi-cup, body.rustig .board, body.rustig .g-bg, body.rustig .gcard::before { display: none; }
body.rustig .mission::after { display: none; }
body.rustig .mission { border: 3px solid #fff; height: 120px; }
body.rustig .mission.wide { height: 120px; }
body.rustig .mi-calm { background: #1a9e93; } body.rustig .mi-voice { background: #d93a55; } body.rustig .mi-juf { background: #e07000; }
body.rustig .mi-test { background: #2b7fe0; } body.rustig .mi-games { background: #6c4cf5; } body.rustig .mi-cabinet { background: #c47a00; }
body.rustig .mi-medals { background: #7b4cf0; } body.rustig .mi-hard { background: #c9306a; }
body.rustig .mi-label b { text-shadow: none; font-size: 22px; } body.rustig .mi-label small { text-shadow: none; font-size: 15px; }
body.rustig .mi-games .mi-label { right: 12px; }
body.rustig .gcard { padding-top: 18px; }
body.rustig .banner { height: auto; box-shadow: none; display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border-radius: 22px; }
body.rustig .banner-bg, body.rustig .logo { display: none; }
body.rustig .banner-bonno { position: static; height: 130px; order: -1; }
body.rustig .banner-speech { position: static; box-shadow: none; background: #f3f0ff; font-size: 17px; }
body.rustig .banner-speech::before { display: none; }
body.rustig .bonno { filter: none; }
body.rustig .question { font-size: clamp(54px, 15vw, 84px); }
body.rustig .qcard::before { display: none; }
body.rustig .pad button { color: var(--ink) !important; box-shadow: 0 4px 0 #cfc8e8 !important; }
body.rustig .classroom .kids { display: none; }
body.rustig .rays { display: none; }

/* Extra hulp: twee knoppen */
.helpers { display: flex; flex-direction: column; gap: 4px; border-top: 2px dashed #e4dcff; padding-top: 10px; }
.mi-say {
  position: absolute; right: 8px; bottom: 8px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  background: #fff; box-shadow: 0 4px 0 rgba(20, 8, 70, .3); z-index: 2;
}
body.taal .mi-label { right: 60px; }
body.taal .mi-chip { top: auto; bottom: 62px; }
.hear { font-size: 26px; flex: none; }
body.taal .bubble-fb { font-size: 22px; }

/* =================== Spelletjes 3.2 =================== */
.games-hero { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .25); border-radius: 24px; padding: 10px 14px; }
.games-hero img { height: 110px; flex: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.games-hero b { font-size: 19px; }
.gcard.locked { filter: grayscale(.85) brightness(.85); cursor: pointer; padding-top: 140px; }
.gcard.locked .glock small { font-size: 14px; }
.glock { position: absolute; left: 0; right: 0; top: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 2; text-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.glock .ic { width: 64px; height: 64px; }
.glock b { font-size: 20px; }
.gnew { position: absolute; right: 12px; top: 12px; z-index: 2; background: linear-gradient(180deg, #ff7a9c, #f0479f); color: #fff; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 0 #b82a74; animation: nowp 1.4s infinite; }
.g-tf { background: linear-gradient(145deg, #2ec4b6, #138a7f); } .g-tf { --gfade: #138a7f; }
.g-missing { background: linear-gradient(145deg, #ffb22c, #e07000); --gfade: #e07000; }
.g-stairs { background: linear-gradient(145deg, #7b8cff, #4a56d6); --gfade: #4a56d6; }
.g-sprint { background: linear-gradient(145deg, #ff5d73, #b8203d); --gfade: #b8203d; }
.gtitle { display: flex; align-items: center; gap: 8px; margin: -6px 0 8px; color: #fff; }
.glv { margin-left: auto; font-size: 14px; background: rgba(255, 255, 255, .2); padding: 4px 10px; border-radius: 999px; }

/* Bonno in de spellen */
.gbonno { position: absolute; right: 6px; bottom: 0; height: 150px; z-index: 3; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.gbonno.static { position: static; height: 110px; flex: none; }
.gbonno.hop { animation: hop .5s cubic-bezier(.3, 1.8, .5, 1); }
.gbonno.nope { animation: shake .4s; }
@keyframes hop { 40% { transform: translateY(-24px) scale(1.06); } }
.balloon-sky { background-size: cover; background-position: center bottom; }
.balloon-sky .balloon { z-index: 2; }

/* Memory */
.mem-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mem-head .speech { margin: 0; flex: 1; }
.mface.back { overflow: hidden; }
.mface.back img { width: 62%; height: auto; max-height: 88%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.memory.m16 { grid-template-columns: repeat(4, 1fr); }
.memory.m16 .mcard { aspect-ratio: 4 / 5; }

/* Bonno vliegt */
.space { height: 250px; }
.sky-base { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background-size: cover; background-position: center bottom; opacity: calc(1 - var(--h) * 1.6); transition: opacity 1s; }
.flyer { position: absolute; left: 50%; bottom: 14px; width: 96px; margin-left: -48px; z-index: 2; animation: hover 1.6s ease-in-out infinite; }
.flyer img { width: 100%; display: block; transform: rotate(-8deg); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); }
.trail { position: absolute; left: 30%; right: 30%; top: 80%; height: 90px; border-radius: 40px; background: linear-gradient(180deg, rgba(255, 220, 120, .8), rgba(255, 255, 255, 0)); filter: blur(4px); }
.space.boost .flyer { animation: boost .6s ease-out; }
.flyer.shake { animation: shake .4s; }
.sight { z-index: 3; }
.alt { z-index: 3; }

/* Keuzespellen */
.gscene { position: relative; height: 190px; border-radius: 26px; border: 4px solid #fff; background-size: cover; background-position: center; overflow: hidden; box-shadow: var(--shadow); }
.gscene .gbonno { height: 170px; }
.gq.big { font-size: clamp(36px, 10vw, 58px); margin: 12px 0; }
.tf-ans { color: #ffd23f; }
.hole { display: inline-block; min-width: 1.2em; padding: 0 .15em; border-radius: 14px; background: rgba(255, 255, 255, .2); border: 3px dashed #ffd23f; color: #ffd23f; }
.chalk { position: absolute; left: 30%; top: 22%; width: 40%; text-align: center; color: #fff; font-size: 26px; font-weight: 700; z-index: 2; }
.chalk .hole { border-color: #fff; color: #fff; font-size: .9em; }
.choices.six { grid-template-columns: repeat(3, 1fr); }
.choices.six .choice { min-height: 70px; font-size: 32px; }
.choices.two .choice { min-height: 96px; font-size: 30px; }
.choice.cyes { background: #22b35e; box-shadow: 0 6px 0 #178746; }
.choice.cno { background: #e8434f; box-shadow: 0 6px 0 #b62632; }

/* Tafeltrap */
.stairs { position: absolute; left: 8px; right: 120px; bottom: 6px; top: 8px; z-index: 1; }
.stairs i {
  position: absolute; left: calc(var(--j) * 10%); bottom: calc(var(--j) * 8.5%); width: 11%; height: 14%; border-radius: 6px;
  background: linear-gradient(180deg, #fff, #d9d2ff); box-shadow: 0 4px 0 #8a7fd0; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; color: #4a3fb0;
}
.stairs i.done { background: linear-gradient(180deg, #8cf08c, #25a845); color: #fff; box-shadow: 0 4px 0 #178746; }
.stairs i.now { background: linear-gradient(180deg, #fff6c4, #ffd23f); box-shadow: 0 4px 0 #c98f00, 0 0 0 3px #fff; }
.gscene:has(.stairs) .gbonno { height: 96px; right: auto; left: 8px; bottom: 30px; transition: left .4s ease-out, bottom .4s cubic-bezier(.3, 1.6, .5, 1); }
.stairs { right: 70px; }

/* Sprint */
.sprint-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sprint-top .qcard { flex: 1; padding: 16px 10px; }
.sprint-top .question { font-size: clamp(34px, 9vw, 54px); }
.answer-box.ok { background: var(--good-bg); color: var(--good); border-color: var(--good); }
.answer-box.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); animation: shake .4s; }

body.rustig .gscene, body.rustig .sky-base { background-image: none !important; background: #dfe9ff; }
body.rustig .balloon-sky { background-image: none !important; }
body.rustig .gtitle { color: var(--ink); }

/* =================== Prijzenkast met Bonno =================== */
.cab-hero { position: relative; display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 0; border-radius: 26px; overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(180deg, #ffcf3f, #f5a400); border: 4px solid #fff; box-shadow: 0 7px 0 rgba(20, 8, 70, .3); }
.cab-rays { position: absolute; inset: -80%; background: repeating-conic-gradient(rgba(255, 255, 255, .28) 0 10deg, transparent 10deg 20deg); animation: spin360 30s linear infinite; }
.cab-hero img { position: relative; height: 150px; flex: none; filter: drop-shadow(0 8px 8px rgba(120, 60, 0, .4)); }
.cab-hero .speech { position: relative; margin: 0 0 14px; flex: 1; font-size: 16px; }
.hint-next { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.hint-next b { color: #c47a00; }
.cab-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cab-tabs button { display: flex; align-items: center; gap: 6px; border: 0; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, .15); color: #fff; font-weight: 600; font-size: 16px; }
.cab-tabs button .ic { width: 30px; height: 30px; flex: none; }
.cab-tabs button em { margin-left: auto; font-style: normal; background: rgba(0, 0, 0, .2); padding: 2px 8px; border-radius: 999px; font-size: 13px; }
.cab-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 5px 0 rgba(20, 8, 70, .3); }
.cab-tabs button.on em { background: #ffe27a; color: #6b4100; }
.spin-wrap { position: relative; }
.spin-bonno { position: absolute; left: -64px; bottom: 0; height: 150px; animation: hop 1.2s ease-in-out infinite; }
body.rustig .cab-rays { display: none; }
body.rustig .spin-bonno { animation: none; }

/* =================== Opstartscherm =================== */
.splash { position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(120% 80% at 50% 20%, #8f6bff 0%, #4a2bc4 45%, #2a1d78 100%); color: #fff; padding: max(8vh, env(safe-area-inset-top)) 20px max(5vh, env(safe-area-inset-bottom)); }
.sp-rays { position: absolute; left: 50%; top: 40%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(rgba(255, 255, 255, .09) 0 8deg, transparent 8deg 16deg); animation: spin360 40s linear infinite; }
.sp-base { position: absolute; left: -10%; right: -10%; bottom: -2%; height: 42%; background-size: cover; background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); animation: spRise 1.2s cubic-bezier(.2, .9, .3, 1) both; }
.sp-stars i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: twinkle 2.4s ease-in-out infinite; }
.sp-stars i:nth-child(1) { left: 8%; top: 12%; } .sp-stars i:nth-child(2) { left: 22%; top: 30%; animation-delay: .4s; } .sp-stars i:nth-child(3) { left: 86%; top: 10%; animation-delay: .8s; }
.sp-stars i:nth-child(4) { left: 74%; top: 34%; animation-delay: 1.2s; } .sp-stars i:nth-child(5) { left: 50%; top: 6%; animation-delay: .2s; } .sp-stars i:nth-child(6) { left: 92%; top: 46%; animation-delay: 1.6s; }
.sp-stars i:nth-child(7) { left: 5%; top: 50%; animation-delay: 1s; } .sp-stars i:nth-child(8) { left: 36%; top: 18%; animation-delay: 2s; } .sp-stars i:nth-child(9) { left: 64%; top: 20%; animation-delay: .6s; }
.sp-stars i:nth-child(10) { left: 14%; top: 64%; animation-delay: 1.4s; } .sp-stars i:nth-child(11) { left: 82%; top: 60%; animation-delay: .3s; } .sp-stars i:nth-child(12) { left: 44%; top: 40%; animation-delay: 1.8s; }
.sp-stars i:nth-child(13) { left: 60%; top: 52%; animation-delay: .9s; } .sp-stars i:nth-child(14) { left: 28%; top: 46%; animation-delay: 2.2s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.sp-logo { position: relative; font-size: clamp(56px, 17vw, 96px); animation: spPop .9s .2s cubic-bezier(.3, 1.6, .5, 1) both; }
.sp-sub { position: relative; font-size: 20px; font-weight: 600; margin-top: 4px; text-shadow: 0 2px 6px rgba(0, 0, 0, .3); animation: spFade .6s .7s both; }
.sp-bonno { position: relative; width: min(52vw, 240px); margin-top: 3vh; animation: spFly 1.3s .3s cubic-bezier(.2, .9, .3, 1.15) both; }
.sp-bonno img { width: 100%; display: block; position: relative; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .35)); animation: hover 1.8s 1.6s ease-in-out infinite; }
.sp-bonno .trail { height: 140px; top: 70%; }
.sp-bottom { position: relative; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: spFade .6s 1.1s both; }
.sp-hi { background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px; font-size: 19px; box-shadow: 0 6px 0 rgba(20, 8, 70, .3); }
.sp-btn { animation: nowp 1.4s 1.8s infinite; min-width: 260px; }
.splash.away { animation: spAway .6s ease-in forwards; pointer-events: none; }
.splash.away .sp-bonno { animation: spUp .6s ease-in forwards; }
@keyframes spRise { from { transform: translateY(60%); } }
@keyframes spPop { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
@keyframes spFade { from { opacity: 0; transform: translateY(20px); } }
@keyframes spFly { from { transform: translate(-70vw, 40vh) rotate(-30deg) scale(.5); opacity: 0; } }
@keyframes spUp { to { transform: translateY(-120vh); } }
@keyframes spAway { 60% { opacity: 1; } to { opacity: 0; } }
body.rustig .splash *, body.rustig .splash { animation: none !important; }
body.rustig .sp-rays, body.rustig .sp-stars, body.rustig .trail { display: none; }

/* =================== Wie gaat er oefenen =================== */
.who-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; gap: 10px; margin: 2vh 0 18px; padding: 14px 14px 0; border-radius: 28px;
  background: linear-gradient(180deg, #7b5cff, #4a2bc4); border: 4px solid #fff; box-shadow: 0 7px 0 rgba(20, 8, 70, .3); }
.who-hero img { position: relative; height: 170px; flex: none; animation: hover 2s ease-in-out infinite; }
.who-hero .speech { position: relative; flex: 1; margin: 0 0 18px; font-size: 18px; }
body.rustig .who-hero img { animation: none; }

/* =================== Hoofdmenu =================== */
.banner-bonno { animation: hover 2.2s ease-in-out infinite; }
.daily { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 14px 10px 6px; border: 4px solid #fff; border-radius: 26px; text-align: left; color: #4a2a00; cursor: pointer;
  background: linear-gradient(135deg, #fff3b0, #ffc61a 60%, #ff9f1a); box-shadow: 0 7px 0 #c98000, 0 12px 24px rgba(20, 8, 70, .3); overflow: visible; }
.daily img { height: 104px; margin: -24px 0 -10px; flex: none; filter: drop-shadow(0 6px 6px rgba(120, 60, 0, .35)); animation: hop 2.4s ease-in-out infinite; }
.daily .d-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.daily small { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #9a5a00; }
.daily b { font-size: 21px; line-height: 1.1; }
.daily .d-txt > span { font-size: 15px; line-height: 1.3; }
.daily .d-go { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #22b35e; color: #fff; font-size: 20px; box-shadow: 0 4px 0 #178746; }
.daily:active { transform: translateY(4px); box-shadow: 0 3px 0 #c98000; }
.mi-peek { position: absolute; right: -6px; bottom: 34px; height: 92px; z-index: 1; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); transform: rotate(-6deg); }
.mi-juf .mi-peek { right: -4px; }
body.rustig .daily img, body.rustig .banner-bonno { animation: none; }
.sp-sub { margin-top: 22px; }

/* =================== Oefenschermen met Bonno =================== */
.play-scene { position: relative; display: flex; align-items: flex-end; gap: 6px; min-height: 132px; padding: 12px 6px 0 12px; border-radius: 24px; border: 4px solid #fff;
  background-size: cover; background-position: center 70%; box-shadow: 0 6px 0 rgba(20, 8, 70, .25); overflow: hidden; }
.play-scene .bubble-fb { position: relative; flex: 1; align-self: center; margin: 0 0 8px; background: #fff; border-radius: 20px; padding: 10px 14px; box-shadow: 0 4px 0 rgba(20, 8, 70, .15); }
.play-scene .bubble-fb::after { content: ''; position: absolute; right: -10px; bottom: 18px; border: 10px solid transparent; border-left-color: #fff; border-right: 0; }
.play-scene .bubble-fb.good { background: #e3fbe8; } .play-scene .bubble-fb.good::after { border-left-color: #e3fbe8; }
.play-scene .bubble-fb.bad { background: #fff1e0; } .play-scene .bubble-fb.bad::after { border-left-color: #fff1e0; }
.play-bonno { height: 128px; width: auto; flex: none; margin-bottom: -4px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.play-bonno.owl-cheer, .play-bonno.owl-jump { animation: hop .55s cubic-bezier(.3, 1.8, .5, 1); }
.play-bonno.owl-think { animation: shake .4s; }
.play-scene .hear { position: absolute; left: 10px; top: 10px; }
.play-scene .combo { position: absolute; right: 8px; top: 8px; }
.setup-hero { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 0; border-radius: 26px; border: 4px solid #fff; background-size: cover; background-position: center; overflow: hidden; box-shadow: 0 7px 0 rgba(20, 8, 70, .3); }
.setup-bonno { height: 150px; width: auto; flex: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.setup-hero .speech { flex: 1; margin: 0 0 14px; font-size: 17px; }
.setup-hero .speech small { color: var(--ink-soft); }
.breathe-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.breathe-bonno { height: 150px; width: auto; animation: breathe 8s ease-in-out infinite; }
.sheet-tip { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tip-bonno { height: 70px; width: auto; flex: none; }
.res-stage { position: relative; overflow: hidden; width: calc(100% + 32px); margin: -16px -16px 0; height: 210px; border-radius: 26px 26px 0 0; background-size: cover; background-position: center 30%; display: flex; justify-content: center; align-items: flex-end; }
.res-stage .cab-rays { inset: -60%; }
.res-bonno { position: relative; height: 190px; width: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); animation: hop 1.2s ease-in-out infinite; }
body.rustig .play-scene, body.rustig .setup-hero, body.rustig .res-stage { background-image: none !important; background: #e9e4ff; }
body.rustig .play-bonno, body.rustig .res-bonno, body.rustig .breathe-bonno { animation: none; }

/* =================== Heldkeuze en Lettie-thema =================== */
.heropick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 6px; }
.heropick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px 12px; border-radius: 22px; border: 4px solid transparent; cursor: pointer; color: #fff; font: inherit;
  box-shadow: 0 5px 0 rgba(20, 8, 70, .25); opacity: .75; transition: transform .15s, opacity .15s; }
.heropick .hp-bonno { background: linear-gradient(180deg, #8f6bff, #5136d1); }
.heropick .hp-lettie { background: linear-gradient(180deg, #5ab8ff, #1f4fb8); }
.heropick button.on { opacity: 1; border-color: #ffd23f; transform: scale(1.04); }
.heropick img { height: 110px; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .3)); }
.heropick b { font-size: 20px; }
.heropick small { font-size: 13px; opacity: .9; }

html:has(body.hero-lettie) { background: #12306f; }
body.hero-lettie { --primary: #2f7cf0; --primary-dark: #1d58c0; --mc: #d2e6ff; }
body.hero-lettie .sky {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(140, 220, 255, .45), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(120, 240, 255, .25), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 90%, rgba(255, 170, 80, .22), transparent 60%),
    linear-gradient(175deg, #0f1f55 0%, #1c3f9e 45%, #2766c9 75%, #2f8fd8 100%);
}
body.hero-lettie .lead { color: #e3f1ff; }
body.hero-lettie .splash { background: radial-gradient(120% 80% at 50% 20%, #5ab8ff 0%, #1f4fb8 45%, #0f1f55 100%); }
body.hero-lettie .who-hero { background: linear-gradient(180deg, #4fa8ff, #1f4fb8); }
body.hero-lettie .heropick .hp-lettie.on { border-color: #ffb347; }
body.hero-lettie .logo span:last-child { color: #fff; }
body.hero-lettie .btn:not(.green):not(.orange):not(.red):not(.ghost):not(.pink) { background-color: var(--primary); }
body.hero-lettie .trail { background: linear-gradient(180deg, rgba(140, 220, 255, .9), rgba(255, 255, 255, 0)); }
body.hero-lettie.rustig, html:has(body.hero-lettie.rustig) { background: #e8f0fb; }

/* =================== Back-up en delen =================== */
.backup { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: #f3f0ff; }
body.hero-lettie .backup { background: #eaf3ff; }
.bk-remind { font-size: 15px; padding: 10px 16px; }
.opseg { margin-top: 10px; }
.opseg button { font-size: 16px; }

/* =================== Overzicht voor ouders =================== */
.pt-players { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-players button { border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; background: rgba(255, 255, 255, .2); color: #fff; }
.pt-players button.on { background: #fff; color: var(--ink); }
.pt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pt-tile { background: #f3f0ff; border-radius: 16px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
body.hero-lettie .pt-tile { background: #eaf3ff; }
.pt-tile b { font-size: 22px; } .pt-tile small { font-size: 12px; color: var(--ink-soft); }
.pt-advice p { margin: 0; line-height: 1.45; }
.pt-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 150px; align-items: end; }
.pt-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.pt-bar { width: 100%; max-width: 22px; min-height: 2px; border-radius: 6px 6px 2px 2px; overflow: hidden; display: flex; flex-direction: column-reverse; background: #ece8f7; }
.pt-bar i, .pt-key i { display: block; }
.pt-bar .ok, .pt-key .ok { background: #22b35e; } .pt-bar .no, .pt-key .no { background: #ff8a5c; }
.pt-n { font-size: 11px; color: var(--ink-soft); min-height: 13px; }
.pt-day small { font-size: 11px; color: var(--ink-soft); }
.pt-key { display: flex; gap: 14px; font-size: 13px; color: var(--ink-soft); }
.pt-key span { display: flex; align-items: center; gap: 5px; } .pt-key i { width: 12px; height: 12px; border-radius: 3px; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pt-table th { text-align: left; font-size: 13px; color: var(--ink-soft); font-weight: 600; padding: 4px; }
.pt-table td { padding: 6px 4px; border-top: 1px solid #eee9fb; }
.pt-table td:nth-child(2) { width: 34%; } .pt-table td:nth-child(2) small { font-size: 12px; color: var(--ink-soft); }
.pt-table .slow { color: #d9480f; font-weight: 700; }
.pt-grades { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-grades div { display: flex; flex-direction: column; align-items: center; background: #f3f0ff; border-radius: 14px; padding: 8px 12px; }
.pt-grades b { font-size: 20px; } .pt-grades small { font-size: 12px; color: var(--ink-soft); }
.mistakes small { opacity: .6; font-size: .75em; }

/* =================== Tafeltrucs =================== */
.mi-tips .mi-rays { background: repeating-conic-gradient(from 0deg at 50% 60%, #ffd86b 0 10deg, #ffc23d 10deg 20deg); }
.mi-album .mi-rays { background: repeating-conic-gradient(from 0deg at 50% 60%, #ff9bd0 0 10deg, #f46bb5 10deg 20deg); }
.dots { display: flex; flex-direction: column; gap: 3px; margin: 10px auto 2px; width: max-content; }
.dots .dr { display: flex; gap: 3px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.dots-cap { display: block; text-align: center; color: var(--ink-soft); font-size: 13px; }
.hint .dots i { width: 11px; height: 11px; }
.truc-hero { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 0; border-radius: 26px; border: 4px solid #fff; background: linear-gradient(180deg, #fff6c4, #ffd23f); box-shadow: 0 7px 0 rgba(20, 8, 70, .3); }
.truc-hero-img { height: 140px; width: auto; flex: none; }
.truc-hero .speech { flex: 1; margin: 0 0 14px; font-size: 18px; }
.truc-sum { font-size: clamp(40px, 12vw, 64px); font-weight: 700; }
.truc-uitleg { font-size: 20px; margin: 0; }
.truc-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.truc-a button { width: 44px; height: 44px; border-radius: 14px; border: 0; font: inherit; font-weight: 700; font-size: 18px; background: #f1ecff; color: var(--ink); }
.truc-a button.on { background: var(--primary); color: #fff; }
.jumps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.jumps span { text-align: center; padding: 8px 0; border-radius: 12px; font-weight: 700; font-size: 20px; background: #f6f3ff; color: var(--c); }
.jumps span.on { background: var(--c); color: #fff; transform: scale(1.08); }

/* =================== Stickerboek =================== */
.album-hero { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 0; border-radius: 26px; border: 4px solid #fff; margin-bottom: 14px;
  background: linear-gradient(180deg, #ffb3dc, #f46bb5); box-shadow: 0 7px 0 rgba(20, 8, 70, .3); }
.album-hero-img { height: 140px; width: auto; flex: none; }
.album-hero .speech { flex: 1; margin: 0 0 14px; font-size: 17px; }
.album-page { background: #fffaf0; color: var(--ink); border-radius: 24px; padding: 14px; margin-bottom: 16px; box-shadow: 0 8px 0 rgba(20, 8, 70, .25);
  background-image: radial-gradient(#f0e6d2 1px, transparent 1px); background-size: 14px 14px; }
.album-page h3 { margin: 0; } .album-page p { margin: 2px 0 10px; font-size: 14px; }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.album-grid.glim { grid-template-columns: repeat(4, 1fr); }
.slot { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; color: var(--ink); cursor: pointer; }
.slot small { font-size: 12px; line-height: 1.2; text-align: center; color: var(--ink-soft); }
.slot .empty { width: 100%; aspect-ratio: 1; border-radius: 20px; border: 3px dashed #d9cdb5; display: grid; place-items: center; font-size: 30px; color: #cbbd9f; font-weight: 700; }
.sticker { position: relative; width: 100%; aspect-ratio: 1; border-radius: 22px; background: #fff; border: 5px solid #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .25); transform: rotate(var(--r, 0deg)); }
.sticker.team { background: radial-gradient(circle at 50% 40%, #fff, #e9e1ff); }
.sticker.team img { height: 92%; object-fit: contain; }
.sticker.plek img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.sticker.glim { background: conic-gradient(from 0deg, #ffd6f0, #c6f0ff, #fff3b0, #d9ffd6, #ffd6f0); border-radius: 50%; }
.sticker.glim::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .8) 45%, transparent 60%); background-size: 250% 100%; animation: holo 3s linear infinite; }
@keyframes holo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.st-em { font-size: 36px; }
.sticker.big { width: 200px; margin: 0 auto; --r: -3deg; }
.sticker.big .st-em { font-size: 96px; }
.pack { width: 200px; height: 200px; margin: 8px auto; perspective: 800px; cursor: pointer; }
.pack-in { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; }
.pack.open .pack-in { transform: rotateY(180deg); }
.pack-front, .pack-back { position: absolute; inset: 0; backface-visibility: hidden; }
.pack-front { border-radius: 24px; background: linear-gradient(135deg, #ff7ac2, #8b6cff); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 22px; animation: wiggle 1.2s ease-in-out infinite; }
.pack-hero { height: 130px; width: auto; }
.pack-back { transform: rotateY(180deg); width: 200px; }
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
body.rustig .sticker.glim::after, body.rustig .pack-front { animation: none; }
.album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.album-grid.glim { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sticker.team img { width: auto; height: auto; max-width: 88%; max-height: 90%; }
.sticker.plek img { position: absolute; inset: 0; }
.slot .sticker, .slot .empty { width: 100%; }
.sticker.team img { position: absolute; inset: 6%; width: 88%; height: 88%; max-width: none; max-height: none; object-fit: contain; }
.album-page .muted { color: var(--ink-soft); }

/* =================== Dagdoel =================== */
.goalcard { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 24px; padding: 12px 14px; margin-bottom: 14px; box-shadow: 0 7px 0 rgba(20, 8, 70, .25); }
.goalcard .ring { width: 76px; height: 76px; flex: none; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #ece8f7; stroke-width: 9; }
.ring-fg { fill: none; stroke: #22b35e; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .8s; }
.goalcard.done .ring-fg { stroke: #ffc61a; }
.ring-txt { position: absolute; left: 14px; width: 76px; text-align: center; font-size: 26px; line-height: 1; }
.ring-txt b { font-size: 24px; } .ring-txt small { font-size: 13px; color: var(--ink-soft); }
.gc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-mid > b { font-size: 18px; } .gc-mid > small { font-size: 13px; color: var(--ink-soft); }
.week { display: flex; gap: 4px; margin-top: 6px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.wd i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: #ece8f7; }
.wd.hit i { background: #22b35e; } .wd.some i { background: #ffd27a; } .wd.miss i { background: #f3f0fa; }
.wd.now i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.wd small { font-size: 10px; color: var(--ink-soft); }
.gc-fire { flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.gc-fire .ic { width: 42px; height: 42px; } .gc-fire b { font-size: 22px; color: #f2711c; } .gc-fire small { font-size: 11px; color: var(--ink-soft); }
.gc-fire.off { filter: grayscale(1); opacity: .5; }
.goal-badge { position: absolute; right: 18%; top: 10%; font-size: 54px; animation: hop 1.2s ease-in-out infinite; }
body.rustig .goal-badge { animation: none; }
