/* KokoWorlds Create — one warm, bright look for a reading app in classrooms (light by design). */
:root {
  /* "Bilderbuch-Sonne": warm cream ground, night-violet ink, sun / lagoon / tangerine / grape accents */
  --paper: #FFF7E8;        /* page ground */
  --card: #ffffff;
  --ink: #2A1E5C;          /* text: deep night violet */
  --soft: #5D5478;         /* secondary text (4.5:1 on cream) */
  --line: #EFE3CC;
  --leaf: #FF7A3D;         /* tangerine: highlights, progress */
  --leaf-ink: #B6430F;
  --sky: #4B32C3;          /* links */
  --mint: #0E8F82;         /* success */
  --rose: #D64545;         /* error */
  --sun: #FFC83D;          /* stars, highlights */
  --grape: #5B3FD9;        /* main buttons (white text 6:1) */
  --grape-dark: #3A27A0;
  --teal: #14B8A6;
  --display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --read: 'Andika', 'Segoe UI', system-ui, sans-serif;      /* Andika: designed for beginning readers */
  --r: 28px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 17px/1.5 var(--read); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0 0 .4em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(26px, 5vw, 36px); } h2 { font-size: 24px; } h3 { font-size: 19px; }
a { color: var(--sky); }
.muted { color: var(--soft); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

/* bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
       padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px; background: #fffdf9e8; backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { font: 600 20px var(--display); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand b { color: var(--leaf); font-weight: 600; }
.brand .dot { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--leaf), var(--sun), var(--mint), var(--sky), var(--leaf)); }
nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
nav a { font: 500 15px var(--display); color: var(--soft); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
nav a.on { background: #fdebd6; color: var(--leaf-ink); }
.who { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.who span { font-weight: 700; }

main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }

/* buttons & inputs */
button, .btn { font: 600 17px var(--display); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; text-decoration: none;
  background: var(--leaf); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
button.alt, .btn.alt { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
button.big { font-size: 22px; padding: 18px 34px; min-height: 64px; }
button.link { background: none; color: var(--sky); padding: 4px; min-height: 0; font: 500 15px var(--display); }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
input, textarea, select { display: block; width: 100%; margin-top: 6px; font: 18px var(--read); padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; color: var(--ink); }
textarea { resize: vertical; min-height: 90px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1; }
.card { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: 0 1px 0 var(--line), 0 10px 30px #8a5a1a10; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pill { display: inline-block; font: 500 13px var(--display); padding: 3px 10px; border-radius: 999px; background: #f3ece1; color: var(--soft); }
.pill.ok { background: #e2f4ea; color: var(--mint); } .pill.warn { background: #fff1d6; color: var(--leaf-ink); } .pill.bad { background: #fbe4e4; color: var(--rose); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 500 13px var(--display); color: var(--soft); text-transform: uppercase; letter-spacing: .4px; }
.scroll { overflow-x: auto; }

/* login */
.login { max-width: 460px; margin: 6vh auto 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button { flex: 1; }
.err { color: var(--rose); min-height: 22px; font-size: 15px; }
.secret { display: flex; gap: 10px; } .secret input { flex: 1; }

/* book tiles */
.tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.tile img, .tile .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #f6efe3; display: grid; place-items: center; font: 600 40px var(--display); color: #e2d2b8; }
.hero-cta { text-align: center; padding: 40px 20px; }
.hero-cta .art { font-size: 64px; }

/* wizard */
.steps { display: flex; gap: 6px; margin-bottom: 18px; } .steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); } .steps i.on { background: var(--leaf); }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: 8px 0 18px; }
.choice { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); border-radius: 14px; padding: 12px 10px; min-height: 56px; font-size: 16px; }
.choice[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--leaf); background: #fff6ea; }
.heroimg { width: min(320px, 100%); aspect-ratio: 1; border-radius: 20px; object-fit: cover; background: #f6efe3; display: block; }

/* reader */
.reader { max-width: 760px; margin: 0 auto; }
.pagepic { width: 100%; aspect-ratio: 1; border-radius: 22px; object-fit: cover; background: #f6efe3; display: block; box-shadow: 0 14px 40px #6b3d0a22; }
.ptext { font: 26px/1.6 var(--read); margin: 18px 4px; }
.ptext .w { cursor: pointer; border-radius: 6px; padding: 0 2px; }
.ptext .w:hover, .ptext .w.sel { background: var(--sun); }
.ptext .w.gl { text-decoration: underline dotted var(--leaf) 2px; text-underline-offset: 5px; }
.syl .s1 { color: #1f5fa0; } .syl .s2 { color: #c2410c; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.progressbar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 10px 0 18px; } .progressbar i { display: block; height: 100%; background: var(--leaf); }
.stars { font-size: 28px; color: var(--sun); letter-spacing: 2px; }
.q { margin-top: 18px; } .q .opts { display: grid; gap: 10px; margin-top: 10px; }
.q .opts button { justify-content: flex-start; text-align: left; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); font: 20px var(--read); }
.q .opts button.right { box-shadow: inset 0 0 0 3px var(--mint); background: #eefaf3; } .q .opts button.wrong { box-shadow: inset 0 0 0 3px var(--rose); background: #fdf0f0; }
.journey { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.journey span { font: 500 14px var(--display); padding: 6px 12px; border-radius: 999px; background: #f3ece1; color: var(--soft); }
.journey span.on { background: var(--leaf); color: #fff; } .journey span.done { background: #e2f4ea; color: var(--mint); }

/* scene player */
.stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 22px; background: #000; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 2.6s cubic-bezier(.45,.05,.25,1); }
.cam img { width: 100%; height: 100%; display: block; }
.ring { position: absolute; border: 4px solid var(--sky); border-radius: 50%; box-shadow: 0 0 24px var(--sky); opacity: 0; transition: opacity .4s; pointer-events: none; }
.ring.show { opacity: 1; }
canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sub { min-height: 3em; text-align: center; font: 24px/1.4 var(--read); margin: 12px 0; }
.sub span { opacity: .15; transition: opacity .2s; } .sub span.on { opacity: 1; }

/* read aloud */
.mic { width: 132px; height: 132px; border-radius: 50%; font-size: 52px; background: var(--leaf); margin: 10px auto; display: grid; place-items: center; }
.mic.rec { background: var(--rose); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px #d6454522; } }
.words { font: 24px/1.8 var(--read); } .words span { padding: 1px 4px; border-radius: 6px; }
.words .ok { background: #e2f4ea; } .words .unclear { background: #fff1d6; } .words .wrong, .words .skipped { background: #fbe4e4; text-decoration: underline wavy var(--rose); }
.words .added { color: var(--soft); font-size: 18px; font-style: italic; }
.big-num { font: 600 44px var(--display); } .stat { text-align: center; }

/* word popover */
.pop { position: fixed; z-index: 30; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(520px, calc(100% - 32px)); background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: 0 18px 60px #0003; }
.pop h3 { font-size: 26px; margin: 0; } .pop .tr { font-size: 22px; color: var(--sky); margin: 4px 0; }
.toast { position: fixed; z-index: 40; left: 50%; top: 18px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 15px; max-width: calc(100% - 32px); }

/* login cards (print) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lcard { border: 2px dashed var(--leaf); border-radius: 16px; padding: 14px; background: #fff; break-inside: avoid; }
.lcard b { font: 600 22px var(--display); display: block; } .lcard .code { font: 600 20px var(--display); letter-spacing: 3px; color: var(--leaf-ink); }
.lcard .sw { font-size: 20px; }
@media print { .bar, .noprint { display: none !important; } body { background: #fff; } main { padding: 0; } .lcard { border-color: #999; } }

/* games */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); border-radius: 12px; padding: 10px 14px; font: 18px var(--read); min-height: 48px; }
.chip.sel { box-shadow: inset 0 0 0 3px var(--sky); } .chip.done { box-shadow: inset 0 0 0 3px var(--mint); background: #eefaf3; }
.order li { margin: 8px 0; }
@media (prefers-reduced-motion: reduce) { .cam { transition: none; } .mic.rec { animation: none; } }
@media (max-width: 560px) { .ptext { font-size: 22px; } body { font-size: 16px; } }

/* ── book types ─────────────────────────────────────────────────────────── */
.kinds { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kind { flex-direction: column; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); border-radius: 20px; padding: 22px 16px; min-height: 190px; text-align: center; gap: 6px; }
.kind b { font-size: 22px; } .kind.on, .kind:hover { box-shadow: inset 0 0 0 3px var(--leaf); background: #fff6ea; }
.comic { position: relative; overflow: hidden; } .comic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.comic .bubble { position: absolute; width: 46%; background: #fffffff2; border: 2px solid #222; border-radius: 14px; padding: 4px 8px;
  font: 15px/1.3 var(--read); color: #111; box-shadow: 2px 2px 0 #0002; }
.comic .q0 { left: 2%; top: 2%; } .comic .q1 { left: 52%; top: 2%; } .comic .q2 { left: 2%; top: 52%; } .comic .q3 { left: 52%; top: 52%; }
.comic .cap { display: block; background: #fff4c2; margin: -4px -8px 3px; padding: 2px 8px; border-radius: 12px 12px 0 0; font-size: 13px; }
.fact { background: #eaf4ff; border-left: 6px solid var(--sky); border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-size: 19px; }
.colourer { position: fixed; inset: 0; z-index: 50; background: #0007; display: grid; place-items: center; padding: 12px; overflow: auto; }
.colourer .card { width: min(720px, 100%); }
.colourer canvas { width: 100%; aspect-ratio: 1; border-radius: 14px; background: #fff; touch-action: manipulation; cursor: crosshair; display: block; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.palette button { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px #0002; }
.palette button.on { box-shadow: 0 0 0 4px var(--ink); }

/* ── games ──────────────────────────────────────────────────────────────── */
.detpic { position: relative; max-width: 520px; cursor: crosshair; } .detpic img { width: 100%; border-radius: 16px; display: block; }
.detpic .ring { border-radius: 14px; }
.det { border-top: 1px solid var(--line); padding: 10px 0; }
#lsText .w.found { background: #e2f4ea; } #lsText .w.sel { background: #fbe4e4; }
.memory { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.mem { aspect-ratio: 1; background: var(--leaf); color: transparent; border-radius: 16px; font: 20px var(--read); padding: 6px; min-height: 0; }
.mem.up { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); } .mem.done { background: #eefaf3; color: var(--ink); box-shadow: inset 0 0 0 3px var(--mint); }
.mem span { font-size: 22px; } .cube { font: 600 24px var(--display); min-width: 52px; }
.sayBox { margin-top: 10px; font: 22px/1.6 var(--read); background: #fffdf5; border-radius: 14px; padding: 10px 14px; box-shadow: inset 0 0 0 2px var(--line); width: 100%; }
.sayBox span.on { background: var(--sun); border-radius: 6px; }

/* ── mystery & smartboard ───────────────────────────────────────────────── */
.clue { background: #fff6d9; border: 3px dashed var(--leaf); border-radius: 16px; padding: 14px 16px; font-size: 21px; margin-top: 14px; }
body.board .bar { display: none; } body.board main { max-width: 1500px; }
.board-clues { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 22px; }
.bclue { background: #fff; border-radius: 18px; padding: 14px; text-align: center; box-shadow: inset 0 0 0 3px var(--line); min-height: 220px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.bclue img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; } .bclue p { font-size: 21px; margin: 4px 0; }
.bclue.open { box-shadow: inset 0 0 0 4px var(--mint); animation: flip .5s; } @keyframes flip { from { transform: rotateY(90deg); } }
.q-mark { font: 600 80px var(--display); color: #e2d2b8; }
.suspects { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 16px 0; }
.suspect { flex-direction: column; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 3px var(--line); border-radius: 18px; padding: 12px; font-size: 22px; }
.suspect img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; } .suspect:hover { box-shadow: inset 0 0 0 4px var(--leaf); }
.shake { animation: shake .5s; } @keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
canvas.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ── stars: wardrobe, stickers, author card ─────────────────────────────── */
.herodress { position: relative; flex: none; container-type: inline-size; } .herodress img { width: 100%; height: 100%; object-fit: cover; border-radius: 22%; }
.wear { position: absolute; line-height: 1; filter: drop-shadow(0 2px 2px #0003); font-size: 30cqw; }
.wear.head { top: -6%; left: 50%; transform: translateX(-50%); } .wear.face { top: 22%; left: 50%; transform: translateX(-50%); font-size: 22cqw; }
.wear.left { bottom: 18%; left: -4%; } .wear.pet { bottom: -4%; right: -6%; } .wear.badge { top: 2%; right: 0; font-size: 20cqw; } .wear.badge2 { top: 30%; left: -6%; font-size: 22cqw; }
.wardrobe { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.witem { flex-direction: column; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); border-radius: 16px; padding: 10px; gap: 2px; }
.witem.on { box-shadow: inset 0 0 0 3px var(--mint); background: #eefaf3; }
.stickers { display: flex; flex-wrap: wrap; gap: 14px; }
.sticker { width: 120px; text-align: center; } .sticker img, .sticker span { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 4px 14px #0002; display: grid; place-items: center; margin: 0 auto; }
.sticker.locked span { background: #eee; color: #bbb; font: 600 40px var(--display); } .sticker b { display: block; margin-top: 4px; }
.idcard { max-width: 560px; border-radius: 20px; padding: 18px 22px; background: linear-gradient(135deg, #fff6ea, #eaf4ff); border: 3px solid var(--leaf); }
.idtop { font: 600 15px var(--display); color: var(--leaf-ink); margin-bottom: 10px; } .idname { font: 600 30px var(--display); }
.report table { margin: 8px 0 16px; } .report h2 { margin-top: 18px; }

/* ── print version of a book ────────────────────────────────────────────── */
.book-print .printpage { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 18px; text-align: center; box-shadow: 0 1px 0 var(--line); position: relative; }
.book-print .printpage > img, .book-print .pimg { width: min(560px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; margin: 0 auto; }
.book-print .cover h1 { font-size: 40px; margin-top: 18px; } .book-print .by { font: 500 22px var(--display); color: var(--leaf-ink); }
.book-print .ptxt { font: 24px/1.6 var(--read); max-width: 620px; margin: 16px auto 0; text-align: left; }
.book-print .pno { position: absolute; bottom: 10px; right: 16px; color: var(--soft); font-size: 14px; }
.book-print .chapter h2 { font-size: 40px; padding: 120px 0; } .book-print .imprint { text-align: left; }
@media print {
  .book-print .printpage { break-after: page; box-shadow: none; border-radius: 0; margin: 0; padding: 10mm 0; }
  .book-print.coloring .printpage > img { width: 100%; }
  .report textarea { border: 1px solid #999; } .idcard { break-inside: avoid; }
}

/* ── accessibility (settings "Aa", remembered per device) ───────────────── */
html[data-font="lexend"] { --read: 'Lexend', 'Segoe UI', system-ui, sans-serif; }
html[data-font="opendyslexic"] { --read: 'OpenDyslexic', 'Segoe UI', system-ui, sans-serif; }
html[data-size="l"] body { font-size: 20px; } html[data-size="l"] .ptext { font-size: 32px; }
html[data-size="xl"] body { font-size: 22px; } html[data-size="xl"] .ptext { font-size: 38px; }
html[data-spacing="wide"] .ptext, html[data-spacing="wide"] .sayBox { line-height: 2.1; letter-spacing: .06em; word-spacing: .25em; }
html[data-contrast="high"] { --paper: #ffffff; --ink: #000000; --soft: #1f1f1f; --line: #000000; --leaf: #b34700; --sky: #0047b3; --mint: #006b3c; }
html[data-contrast="high"] .ptext { background: #fff; color: #000; }
html[data-contrast="high"] .ptext .w:hover, html[data-contrast="high"] .ptext .w.sel { background: #ffe600; }
@media (max-width: 560px) { .comic .bubble { font-size: 12px; } .kind { min-height: 150px; } }

/* ── mystery game: code word, printable task cards ─────────────────────── */
.codeword { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.codeword span { position: relative; width: 74px; height: 86px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 3px var(--line);
  display: grid; place-items: center; font: 600 52px var(--display); color: var(--leaf-ink); }
.codeword span.on { box-shadow: inset 0 0 0 4px var(--mint); background: #eefaf3; animation: flip .5s; }
.codeword i { position: absolute; bottom: 3px; right: 7px; font: 500 13px var(--display); color: var(--soft); font-style: normal; }
.clue .letter { margin-top: 8px; font-size: 20px; } .clue .letter b { font: 600 34px var(--display); color: var(--leaf-ink); padding: 0 8px; }
.rcards { display: grid; gap: 16px; }
.rcard { background: #fff; border: 2px dashed var(--leaf); border-radius: 16px; padding: 18px 20px; }
.rcard img { width: 220px; float: right; margin: 0 0 8px 12px; border-radius: 12px; }
.rcard .rtext { font: 21px/1.6 var(--read); } .rcard .rletter { clear: both; margin-top: 12px; font-size: 17px; }
.rcard .box { display: inline-block; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 8px; vertical-align: middle; }
@media print { .rcard { break-inside: avoid; break-after: page; border-color: #999; } .rcard.key { break-after: auto; } }

/* legal pages + footer */
.legal { max-width: 820px; } .legal table { margin: 8px 0 14px; } .legal td, .legal th { vertical-align: top; }
footer.foot { text-align: center; font-size: 13px; color: var(--soft); padding: 10px 16px 26px; } footer.foot a { color: var(--soft); }
body.board footer.foot { display: none; }

/* ═══ design "Bilderbuch-Sonne" (canvas: KokoWorlds Create – Kinder-Design) ═══ */
button, .btn { background: var(--grape); color: #fff; box-shadow: 0 5px 0 var(--grape-dark); transition: transform .08s, box-shadow .08s; }
button:active:not(:disabled), .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--grape-dark); }
button.alt, .btn.alt { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #E8DCC4; }
button.alt:active, .btn.alt:active { transform: none; }
button.link { box-shadow: none; color: var(--sky); }
button.big, .btn.big { box-shadow: 0 6px 0 var(--grape-dark); }
.chip, .choice, .kind, .witem, .suspect, .mem, .q .opts button, .palette button, .codeword span { transition: none; }
.chip:active, .choice:active { transform: none; }
.chip, .choice, .q .opts button, .kind, .witem, .suspect { box-shadow: inset 0 0 0 2px #E8DCC4; }
.mem { box-shadow: none; }
.card { border-radius: var(--r); box-shadow: 0 3px 0 #F0E2C4; }
.bar { background: #ffffffee; border-bottom: 2px solid #F0E2C4; }
.brand .dot { width: 38px; height: 38px; border-radius: 12px; background: var(--sun); box-shadow: 0 3px 0 #E0A21A; display: grid; place-items: center; }
.brand .dot::after { content: ''; width: 20px; height: 16px; border: 3px solid var(--ink); border-radius: 3px 3px 4px 4px; box-sizing: border-box; }
.brand b { color: #E0611F; }
nav a { font-weight: 600; color: var(--ink); padding: 9px 16px; min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
nav a.on { background: var(--sun); color: var(--ink); }
.stars { display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: var(--sun); border-radius: 999px; padding: 4px 14px; font: 700 20px var(--display); letter-spacing: 0; }
.journey span { font-weight: 600; background: #F4EEE3; color: var(--soft); }
.journey span.on { background: var(--grape); color: #fff; }
.journey span.done { background: #DDF6F2; color: #0B6F64; }
.progressbar { background: #EFE3CC; height: 10px; } .progressbar i { background: var(--leaf); }
.pagepic { border-radius: 26px; border: 6px solid #fff; box-sizing: border-box; box-shadow: 0 14px 34px #2A1E5C26; }
.ptext .w:hover, .ptext .w.sel { background: var(--sun); }
.choice[aria-pressed="true"], .kind.on, .kind:hover { box-shadow: inset 0 0 0 4px var(--sun); background: #FFF1C9; }
.steps i.on { background: var(--leaf); }
.tile img, .tile .ph { border-radius: 20px; }
.pill { font-weight: 600; } .pill.ok { background: #DDF6F2; color: #0B6F64; } .pill.warn { background: #FFF1C9; color: #8A5A00; }
.hero-cta { background: linear-gradient(#fff, #fff) padding-box; border: 4px dashed var(--sun); }
.mic { background: var(--grape); box-shadow: 0 7px 0 var(--grape-dark); color: #fff; }
.mic.rec { background: var(--rose); box-shadow: 0 7px 0 #9E2C2C; }
.login { border-top: 10px solid var(--sun); }
.login h1 span { color: #E0611F !important; }
.tabs button { box-shadow: none; }
.tabs button.alt { box-shadow: inset 0 0 0 2px #E8DCC4; }
.clue { border-color: var(--leaf); background: #FFF1C9; }
.fact { background: #EEE8FF; border-left-color: var(--grape); }
.toast { background: var(--ink); border-radius: 16px; }
.pop { border-radius: 24px; }
input, textarea, select { border-radius: 14px; }
input:focus, textarea:focus, select:focus { border-color: var(--grape); outline: none; }
a { color: var(--sky); }
html[data-contrast="high"] button, html[data-contrast="high"] .btn { box-shadow: none; }

/* child home: three colourful cards in a row (rätsel · homework · reading tree) */
.row3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: stretch; }
.row3 > .card h2 { font-size: 23px; }
.card.violet { background: #3B2A8F; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.card.violet p { color: #E6E0FF; margin: 0; font-size: 17px; }
.card.teal { background: #DDF6F2; color: #0B4F48; }
.btn.sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 #C99418; align-self: flex-start; }
