/* Slova i brojevi. Direction A, "Papirna igraonica" (paper playroom), chosen by Sani on 2026-10-17. */

/* Nunito (SIL Open Font License, fonts/OFL-nunito.txt), one variable file cut to the characters the site uses
   by ops/font-subset.py. "optional" never swaps after the first paint, so the page cannot jump. */
@font-face { font-family: "Nunito"; src: url(fonts/nunito.woff2?v=1) format("woff2"); font-weight: 200 1000; font-style: normal; font-display: optional; }

:root {
  --bg: #FBF4E6; --surface: #FFFDF8; --surface-2: #FFF3DF; --ink: #22304A; --ink-soft: #4A5770; --line: #E7D6B5;
  --numbers: #C93D27; --on-numbers: #fff; --numbers-soft: #FBE0D6; --numbers-text: #B3361F;
  --sounds: #137A70; --on-sounds: #fff; --sounds-soft: #D3EEE8; --sounds-text: #0F6B62; --sounds-bright: #3CC1B1;
  --songs: #F4B23A; --on-songs: #22304A; --songs-soft: #FCEBC4; --songs-text: #8A5A00;
  --font-head: "Nunito", ui-rounded, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head-weight: 850; --head-track: -0.02em;
  --radius: 26px; --pill: 999px; --tilt: 1;
  --shadow: 0 5px 0 rgba(34, 48, 74, .13); --shadow-lift: 0 9px 0 rgba(34, 48, 74, .14);
  --btn-lip: 0 5px 0 rgba(0, 0, 0, .24);
  --card-border: 2px solid var(--line);
  --pattern: radial-gradient(circle at 1px 1px, rgba(34, 48, 74, .075) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
  --scene-blob: #FCE6BA; --scene-sun: #F4B23A; --scene-hill: #A9D68C; --field-bg: #F7EBD3;
  --bug: #E1483B; --mascot-ink: #22304A; --bird: #2BA597; --bird-dark: #1B7F74; --belly: #FCE9C6; --wave: #F4B23A;
  --logo-bg: #22304A; --focus: #2F6FE4;
  color-scheme: light;
}

/* Area colour shortcuts: every component inside an area reads --c, --c-on, --c-soft, --c-text. */
.area-numbers, .act-numbers, .door-numbers { --c: var(--numbers); --c-on: var(--on-numbers); --c-soft: var(--numbers-soft); --c-text: var(--numbers-text); }
.area-sounds, .act-sounds, .door-sounds { --c: var(--sounds); --c-on: var(--on-sounds); --c-soft: var(--sounds-soft); --c-text: var(--sounds-text); }
.area-songs, .act-songs, .door-songs { --c: var(--songs); --c-on: var(--on-songs); --c-soft: var(--songs-soft); --c-text: var(--songs-text); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); background-image: var(--pattern); color: var(--ink); font: 400 18px/1.55 var(--font-body); overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.12; margin: 0; }
p { margin: 0; }
button { font-family: var(--font-body); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 60; background: var(--surface); padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }

/* Mascots and logo take their colours from the active direction. */
.m-bug { fill: var(--bug); } .m-ink { fill: var(--mascot-ink); } .m-ink-line { stroke: var(--mascot-ink); }
.m-bird { fill: var(--bird); } .m-bird-dark { fill: var(--bird-dark); } .m-belly { fill: var(--belly); } .m-wave { stroke: var(--wave); }
.lg-bg { fill: var(--logo-bg); } .lg-1 { fill: var(--numbers); } .lg-2 { fill: var(--songs); } .lg-3 { fill: var(--sounds-bright); }

/* Header */
.top { padding: 18px 0 8px; }
.top-in { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 48px; }
.brand-mark svg { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 25px; letter-spacing: var(--head-track); white-space: nowrap; }
.brand-name i { font-style: normal; color: var(--numbers-text); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 10px 14px; border-radius: var(--pill); text-decoration: none; font-weight: 750; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--surface-2); }
.tools { display: flex; align-items: center; gap: 10px; }
.sound-btn { display: inline-flex; align-items: center; gap: 8px; border: var(--card-border); background: var(--surface); color: var(--ink); border-radius: var(--pill); padding: 0 14px 0 10px; min-height: 44px; font: 750 15px var(--font-body); cursor: pointer; }
.sound-btn .ico svg { width: 22px; height: 22px; }
.sound-btn .off, .sound-btn[aria-pressed="false"] .on { display: none; }
.sound-btn[aria-pressed="false"] .off { display: block; }
.langs { display: flex; border: var(--card-border); border-radius: var(--pill); overflow: hidden; background: var(--surface); }
.lang { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 10px; font-weight: 850; font-size: 14px; text-decoration: none; }
.lang.current { background: var(--ink); color: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: var(--pill); border: 0; font: 800 18px/1.1 var(--font-body); text-decoration: none; cursor: pointer; box-shadow: var(--btn-lip); transition: transform .12s ease, box-shadow .12s ease; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.btn-numbers { background: var(--numbers); color: var(--on-numbers); }
.btn-sounds { background: var(--sounds); color: var(--on-sounds); }
.btn-songs { background: var(--songs); color: var(--on-songs); }
.btn-plain { background: var(--surface-2); color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding: 26px 0 18px; }
.eyebrow { display: inline-block; font-weight: 850; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; background: var(--songs); color: var(--on-songs); padding: 7px 14px; border-radius: var(--pill); transform: rotate(calc(-2deg * var(--tilt))); }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); margin: 18px 0 16px; }
.hero h1 span { display: block; font-size: .46em; color: var(--ink-soft); margin-top: 10px; letter-spacing: 0; font-weight: 700; }
.lead { font-size: 20px; max-width: 32em; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.scene { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / .86; justify-self: end; }
.scene-blob { position: absolute; inset: 6% 2% 8% 6%; background: var(--scene-blob); border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; }
.scene-blob { box-shadow: var(--shadow); }
.scene-sun { position: absolute; width: 21%; aspect-ratio: 1; border-radius: 50%; background: var(--scene-sun); top: 3%; right: 9%; }
.scene-hill { position: absolute; left: 6%; right: 2%; bottom: 8%; height: 30%; background: var(--scene-hill); border-radius: 50% 50% 34px 34px / 70% 70% 34px 34px; }
.scene-digit { position: absolute; font: 900 clamp(34px, 5vw, 64px)/1 var(--font-head); text-shadow: 0 4px 0 rgba(0, 0, 0, .12); pointer-events: none; }
.d1 { top: 12%; left: 12%; color: var(--numbers); transform: rotate(-12deg); }
.d2 { top: 4%; left: 36%; color: var(--songs); transform: rotate(8deg); }
.d3 { top: 18%; left: 52%; color: var(--sounds-bright); transform: rotate(-6deg); }
.scene-leaf { position: absolute; width: 34%; left: 9%; bottom: 7%; transform: rotate(-18deg); }
.friend { position: absolute; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
.friend svg { width: 100%; height: auto; }
.friend-bug { width: 35%; left: 14%; bottom: 15%; animation: bob 4s ease-in-out infinite; }
.friend-bird { width: 33%; right: 10%; top: 26%; animation: bob 4.6s ease-in-out -1.5s infinite; }
.bird-waves { position: absolute; width: 22%; right: -16%; top: 30%; opacity: 0; }
.friend-bird.talking .bird-waves { opacity: 1; animation: waves .7s ease-in-out infinite alternate; }
.friend.talking > svg { animation: talk .5s ease-in-out 3; }
.bubble-mini { position: absolute; top: -12%; left: 50%; transform: translateX(-50%) rotate(calc(-3deg * var(--tilt))); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 6px 12px; font-weight: 850; font-size: 15px; box-shadow: var(--shadow); white-space: nowrap; }
.friend-bird .bubble-mini { top: -18%; transform: translateX(-50%) rotate(calc(3deg * var(--tilt))); }
.scene-caption { position: absolute; left: 4%; right: 4%; bottom: -4px; text-align: center; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 10px 14px; font-weight: 800; font-size: 17px; line-height: 1.35; }
.scene-caption:empty { display: none; }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.door { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--surface); border: var(--card-border); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); transform: rotate(calc(var(--r, 0deg) * var(--tilt))); transition: transform .15s ease; }
.door:nth-child(1) { --r: -1deg; } .door:nth-child(2) { --r: .7deg; } .door:nth-child(3) { --r: -.5deg; }
.door:hover { transform: translateY(-3px) rotate(calc(var(--r, 0deg) * var(--tilt))); }
.door-art { flex: 0 0 76px; height: 76px; border-radius: calc(var(--radius) - 6px); background: var(--c-soft); display: grid; place-items: center; padding: 8px; }
.door-art svg { width: 100%; height: 100%; }
.door-art, .card-art, .song-art, .area-badge, .act-badge { color: var(--ink); }
.door-text { display: grid; gap: 3px; }
.door strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 23px; line-height: 1.15; }
.door-text > span { color: var(--ink-soft); font-size: 16px; line-height: 1.4; }
.door small { font-weight: 800; font-size: 13px; color: var(--c-text); }

/* Number strip */
.strip { position: relative; margin-top: 46px; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: var(--card-border); }
.strip-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.strip h2 { font-size: clamp(26px, 3.2vw, 38px); }
.strip-head p { color: var(--ink-soft); margin-top: 6px; max-width: 36em; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--pill); padding: 4px; }
.seg button { border: 0; background: none; padding: 0 18px; border-radius: var(--pill); font: 800 16px var(--font-body); color: var(--ink); cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.strip-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 22px; align-items: center; }
.nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.num { aspect-ratio: 1; border-radius: calc(var(--radius) - 4px); border: 0; font: 900 clamp(28px, 4vw, 46px)/1 var(--font-head); background: var(--numbers-soft); color: var(--numbers-text); cursor: pointer; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .07); transition: transform .12s ease; }
.num:nth-child(3n+2) { background: var(--songs-soft); color: var(--songs-text); }
.num:nth-child(3n) { background: var(--sounds-soft); color: var(--sounds-text); }
.num:hover { transform: translateY(-3px); }
.num.on { background: var(--numbers); color: var(--on-numbers); transform: translateY(-3px); }
.num.teen { display: none; }
.nums[data-range-now="20"] .num.teen { display: block; }
.num-panel { background: var(--surface-2); border-radius: var(--radius); padding: 20px; text-align: center; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.num-big { font: 900 92px/1 var(--font-head); color: var(--numbers-text); }
.num-word { font-weight: 850; font-size: 22px; }
.frames { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.frame { display: grid; grid-template-columns: repeat(5, 26px); grid-auto-rows: 26px; gap: 5px; padding: 6px; border-radius: 10px; background: var(--surface); border: 2px solid var(--line); }
.frame i { border-radius: 50%; border: 2px dashed var(--line); }
.frame i.on { background: var(--numbers); border: 0; animation: pop .3s ease-out both; animation-delay: calc(var(--i, 0) * 90ms); }

/* Ages and cards */
.ages { margin-top: 58px; text-align: center; }
.ages h2 { font-size: clamp(26px, 3.2vw, 38px); }
.ages > p { color: var(--ink-soft); margin: 8px auto 0; max-width: 40em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.chip { border: var(--card-border); background: var(--surface); border-radius: var(--pill); padding: 0 18px; font: 800 16px var(--font-body); color: var(--ink); cursor: pointer; min-height: 48px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ages-result { font-weight: 750; color: var(--ink-soft); min-height: 1.6em; margin-top: 12px; font-size: 16px; }
.area { margin-top: 54px; scroll-margin-top: 16px; }
.area-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.area-badge { flex: 0 0 66px; height: 66px; border-radius: calc(var(--radius) - 6px); display: grid; place-items: center; padding: 7px; background: var(--c-soft); }
.area-badge svg { width: 100%; height: 100%; }
.area-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.area-head p { margin-top: 6px; color: var(--ink-soft); max-width: 46em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { position: relative; background: var(--surface); border: var(--card-border); border-radius: var(--radius); padding: 14px 16px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; transform: rotate(calc(var(--r, 0deg) * var(--tilt))); transition: transform .15s ease; }
.card:nth-child(4n+1) { --r: -.8deg; } .card:nth-child(4n+2) { --r: .5deg; } .card:nth-child(4n+3) { --r: -.3deg; } .card:nth-child(4n) { --r: .8deg; }
.card.ready:hover { transform: translateY(-4px) rotate(calc(var(--r, 0deg) * var(--tilt))); }
.card.planned { border-style: dashed; box-shadow: none; }
.card[hidden] { display: none; }
.card-art { height: 124px; border-radius: calc(var(--radius) - 10px); background: var(--c-soft); display: grid; place-items: center; margin-bottom: 14px; }
.card-art svg { height: 92px; width: 92px; }
.card h3 { font-size: 21px; }
.card p { margin-top: 6px; font-size: 16px; color: var(--ink-soft); line-height: 1.45; }
.card .card-meta { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.age { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 850; border-radius: var(--pill); padding: 6px 12px; background: var(--surface-2); color: var(--ink-soft); }
.tag svg { width: 13px; height: 13px; }
.card.ready .tag { background: var(--c); color: var(--c-on); }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Song */
.song-card { position: relative; margin-top: 22px; background: var(--surface); border: var(--card-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; max-width: 780px; }
.song-head { display: flex; gap: 14px; align-items: center; }
.song-art { flex: 0 0 64px; height: 64px; border-radius: calc(var(--radius) - 8px); background: var(--songs-soft); padding: 8px; }
.song-head h3 { font-size: 26px; }
.song-note { color: var(--ink-soft); font-size: 16px; font-weight: 700; }
.lyrics { font: var(--head-weight) clamp(20px, 2.6vw, 27px)/1.55 var(--font-head); }
.lyric-line { display: block; }
.w { border-radius: 8px; padding: 0 3px; transition: background .12s ease, color .12s ease; }
.w.on { background: var(--songs); color: var(--on-songs); }
.song-btn { justify-self: start; }
.song-btn .stop, .song-btn.playing .play { display: none; }
.song-btn.playing .stop { display: block; }

/* Parents */
.parents { margin-top: 62px; scroll-margin-top: 16px; }
.parents h2 { font-size: clamp(28px, 3.6vw, 42px); }
.parent-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.point { border-radius: var(--radius); padding: 22px; }
.point-1 { background: var(--numbers-soft); } .point-2 { background: var(--songs-soft); } .point-3 { background: var(--sounds-soft); }
.point h3 { font-size: 21px; }
.point p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

/* Footer */
.foot { margin-top: 72px; padding: 30px 0 48px; border-top: 2px dashed var(--line); }
.foot-in { display: grid; gap: 6px; font-size: 16px; color: var(--ink-soft); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: var(--head-weight); color: var(--ink); font-size: 20px; }
.foot-brand svg { width: 32px; height: 32px; }
.proto { font-size: 13px; }

/* Activity pages */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 750; color: var(--ink-soft); margin: 4px 0 10px; }
.crumbs a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.act-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.act-title { display: flex; gap: 16px; align-items: center; }
.act-badge { flex: 0 0 78px; height: 78px; border-radius: calc(var(--radius) - 4px); background: var(--c-soft); padding: 8px; }
.act-badge svg { width: 100%; height: 100%; }
.act h1 { font-size: clamp(32px, 4.4vw, 50px); }
.act-title p { margin-top: 6px; color: var(--ink-soft); max-width: 32em; }
.levels { display: flex; gap: 6px; background: var(--surface); padding: 6px; border-radius: calc(var(--radius) - 4px); border: var(--card-border); }
.levels button { border: 0; background: none; border-radius: calc(var(--radius) - 10px); padding: 6px 16px; min-height: 58px; min-width: 88px; cursor: pointer; color: var(--ink); display: grid; justify-items: center; align-content: center; gap: 2px; line-height: 1.1; }
.levels strong { font-size: 18px; font-weight: 850; }
.levels small { font-size: 12px; color: var(--ink-soft); font-weight: 750; }
.levels button[aria-pressed="true"] { background: var(--c); color: var(--c-on); }
.levels button[aria-pressed="true"] small { color: inherit; }
.stage { position: relative; background: var(--surface); border: var(--card-border); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lift); padding: 20px; min-height: 540px; overflow: hidden; }
.stage-cover, .end-screen { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; background: var(--surface); }
.cover-mascot { width: 150px; animation: bob 4s ease-in-out infinite; }
.stage-cover p { font-size: 21px; font-weight: 750; max-width: 22em; }
.btn-go { min-height: 70px; font-size: 25px; padding: 0 38px; }
.btn-go svg { width: 26px; height: 26px; }
.noscript { padding: 40px; text-align: center; font-weight: 750; }

.game-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.progress { display: flex; gap: 8px; }
.progress i { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); display: grid; place-items: center; }
.progress i.now { border-color: var(--c); border-width: 3px; }
.progress i.done { background: var(--songs); border-color: var(--songs); }
.progress i.done::after { content: ""; width: 12px; height: 7px; border: solid var(--on-songs); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.voice-note { font-size: 13px; color: var(--ink-soft); font-weight: 750; max-width: 24em; }
.replay { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--pill); background: var(--surface-2); padding: 0 16px; min-height: 48px; font: 800 16px var(--font-body); color: var(--ink); cursor: pointer; }
.replay svg { width: 20px; height: 20px; }
.guide { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.guide-mascot { flex: 0 0 78px; width: 78px; }
.bubble { position: relative; flex: 1; background: var(--c-soft); border-radius: 20px; padding: 14px 18px; font: var(--head-weight) clamp(19px, 2.3vw, 25px)/1.3 var(--font-head); min-height: 62px; display: flex; align-items: center; }
.bubble::before { content: ""; position: absolute; left: -11px; top: 50%; margin-top: -11px; border: 11px solid transparent; border-right-color: var(--c-soft); border-left: 0; }
.big-count { flex: 0 0 auto; min-width: 88px; height: 88px; border-radius: 24px; background: var(--c); color: var(--c-on); font: 900 60px/88px var(--font-head); text-align: center; padding: 0 12px; }
.big-count:empty { visibility: hidden; }
.bump { animation: bump .35s ease-out; }

.field { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 14px; padding: 18px; border-radius: calc(var(--radius) - 4px); background: var(--field-bg); min-height: 210px; align-content: center; justify-items: center; }
.thing { position: relative; width: min(100%, 112px); aspect-ratio: 1; border: 0; background: none; padding: 6px; cursor: pointer; transform: rotate(var(--r, 0deg)); transition: transform .2s ease, opacity .2s ease; }
.thing svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .12)); }
.thing:hover { transform: rotate(var(--r, 0deg)) scale(1.07); }
.thing.done { transform: rotate(var(--r, 0deg)) scale(.86); cursor: default; }
.thing.done svg { opacity: .45; }
.thing .badge { position: absolute; top: -6px; right: -6px; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: var(--c-on); font: 900 23px/40px var(--font-head); box-shadow: 0 3px 0 rgba(0, 0, 0, .18); animation: pop .25s ease-out; }
.thing.hint, .slot.hint { animation: hint .55s ease-in-out; }
.tray { display: grid; grid-template-columns: repeat(var(--slots, 5), 58px); gap: 10px; justify-content: center; margin: 18px auto 0; }
.slot { width: 58px; height: 58px; border-radius: 16px; border: 2px dashed var(--line); display: grid; place-items: center; position: relative; background: var(--surface); }
.slot.full { border: 2px solid var(--c); background: var(--c-soft); }
.slot svg { width: 42px; height: 42px; animation: pop .25s ease-out; }
.slot b { position: absolute; bottom: -10px; right: -8px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--ink); color: var(--bg); font: 850 14px/24px var(--font-body); text-align: center; padding: 0 5px; }
.choices { display: flex; gap: 16px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.choices[hidden] { display: none; }
.choice { width: 116px; height: 116px; border-radius: 30px; border: 0; background: var(--surface-2); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08), 0 0 0 3px var(--line); font: 900 66px/1 var(--font-head); color: var(--ink); cursor: pointer; transition: transform .12s ease; }
.choice:hover { transform: translateY(-3px); }
.choice.right { background: var(--c); color: var(--c-on); box-shadow: none; animation: bump .4s ease-out; }
.choice.wrong { animation: shake .4s ease-in-out; }

.sound-row { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 4px 0 18px; }
.sound-tile { display: flex; align-items: center; gap: 14px; border: 0; border-radius: calc(var(--radius) + 2px); background: var(--c); color: var(--c-on); padding: 10px 26px 10px 20px; font: 900 58px/1 var(--font-head); cursor: pointer; box-shadow: var(--btn-lip); min-height: 92px; letter-spacing: .02em; }
.sound-tile svg { width: 32px; height: 32px; }
.sound-tile.hidden-letter .letter { display: none; }
.pics { display: grid; grid-template-columns: repeat(var(--cards, 3), minmax(0, 1fr)); gap: 16px; max-width: 860px; margin: 0 auto; }
.pic { position: relative; }
.pic-pick { width: 100%; border: 0; padding: 14px 12px 12px; border-radius: calc(var(--radius) - 2px); background: var(--surface-2); box-shadow: inset 0 0 0 3px var(--line), 0 5px 0 rgba(0, 0, 0, .07); cursor: pointer; display: grid; justify-items: center; gap: 6px; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease; }
.pic-pick:hover { transform: translateY(-3px); }
.pic-art { width: min(100%, 150px); aspect-ratio: 1; }
.pic-art svg { width: 100%; height: 100%; }
.pic-word { font: var(--head-weight) 22px/1.2 var(--font-head); min-height: 1.3em; visibility: hidden; }
.pic-word b { color: var(--c-text); }
.pic.revealed .pic-word { visibility: visible; }
.pic.naming .pic-pick { box-shadow: inset 0 0 0 4px var(--songs), 0 5px 0 rgba(0, 0, 0, .07); transform: translateY(-4px); }
.pic.right .pic-pick { box-shadow: inset 0 0 0 5px var(--c); background: var(--c-soft); animation: bump .4s ease-out; }
.pic.wrong .pic-pick { animation: shake .4s ease-in-out; opacity: .55; cursor: default; }
.ear { position: absolute; top: 8px; right: 8px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.ear svg { width: 22px; height: 22px; }

.end-screen h2 { font-size: clamp(32px, 4.4vw, 48px); }
.end-screen p { font-size: 19px; color: var(--ink-soft); font-weight: 700; }
.end-mascot { width: 130px; animation: bob 3s ease-in-out infinite; }
.end-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -24px; width: 12px; height: 18px; border-radius: 3px; animation: fall 2.6s ease-in forwards; }

.parents-box { margin-top: 22px; background: var(--surface); border: var(--card-border); border-radius: var(--radius); padding: 2px 20px; }
.parents-box summary { cursor: pointer; font-weight: 850; font-size: 18px; padding: 14px 0; min-height: 48px; }
.parents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 4px 0 20px; }
.parents-grid h2 { font-size: 19px; }
.parents-grid p { font-size: 16px; color: var(--ink-soft); margin-top: 6px; }
.more { margin-top: 42px; }
.more > h2 { font-size: 30px; margin-bottom: 16px; }
.missing { text-align: center; padding: 60px 0; display: grid; justify-items: center; gap: 18px; }
.missing-art { width: 140px; }

.btn-go-again { background: var(--c); color: var(--c-on); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* Oblici brojeva: tracing board */
.trace-area { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: center; }
.trace-board { background: var(--field-bg); border-radius: calc(var(--radius) - 4px); display: grid; place-items: center; padding: 12px; touch-action: none; }
.trace-board svg { width: min(100%, 290px); height: auto; touch-action: none; cursor: crosshair; user-select: none; }
.trace-guide { fill: none; stroke: #E6D5B4; stroke-width: 40; stroke-linecap: round; stroke-linejoin: round; }
.trace-dash { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 1 11; stroke-linecap: round; }
.trace-ink { fill: none; stroke: var(--c); stroke-width: 28; stroke-linecap: round; stroke-linejoin: round; }
.trace-demo { fill: none; stroke: var(--songs); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.trace-start { fill: #3E9B4F; stroke: #fff; stroke-width: 4; animation: beacon 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.trace-pen { fill: var(--songs); stroke: #fff; stroke-width: 3; opacity: 0; pointer-events: none; }
.trace-board.drawing .trace-pen { opacity: 1; }
.trace-board.traced { animation: bump .45s ease-out; }
.trace-side { display: grid; gap: 14px; justify-items: center; text-align: center; }
.trace-dots { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; min-height: 26px; max-width: 200px; }
.trace-dots i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); animation: pop .3s ease-out both; }
.trace-shape { font: var(--head-weight) 21px/1.3 var(--font-head); min-height: 2.6em; }

/* Više ili manje */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; }
.cmp-side { position: relative; border: 0; border-radius: calc(var(--radius) - 4px); background: var(--field-bg); padding: 18px 12px; min-height: 230px; cursor: pointer; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 3px transparent; transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease; }
.cmp-side:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 3px var(--line); }
.cmp-items { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 64px)); gap: 6px; justify-content: center; }
.cmp-item svg { width: 100%; height: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .1)); }
.cmp-numeral { font: 900 clamp(80px, 12vw, 130px)/1 var(--font-head); color: var(--c-text); }
.cmp-count { position: absolute; top: 10px; left: 10px; min-width: 40px; height: 40px; border-radius: 20px; padding: 0 8px; background: var(--ink); color: var(--bg); font: 900 22px/40px var(--font-head); text-align: center; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .2s ease; }
.compare.counted .cmp-count { opacity: 1; transform: scale(1); }
.cmp-or { align-self: center; font: 900 34px/1 var(--font-head); color: var(--ink-soft); }
.cmp-side.right { box-shadow: inset 0 0 0 5px var(--c); background: var(--c-soft); animation: bump .4s ease-out; }
.cmp-side.wrong { animation: shake .4s ease-in-out; opacity: .55; }

/* Brojevi do 20: two ten frames */
.teen-frames { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.tframe { position: relative; background: var(--field-bg); border-radius: 18px; padding: 14px; }
.tframe-grid { display: grid; grid-template-columns: repeat(5, 46px); grid-auto-rows: 46px; gap: 8px; }
.tcell { border-radius: 50%; border: 3px dashed var(--line); display: grid; place-items: center; font: 900 17px/1 var(--font-head); color: var(--on-songs); }
.tframe-ten .tcell.on { background: var(--numbers); border: 0; }
.tframe-more .tcell.on { background: var(--songs); border: 0; cursor: pointer; }
.tframe-more .tcell.counted { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--songs); }
.tframe-more .tcell.hint { animation: hint .5s ease-in-out; }
.tframe-label { position: absolute; top: -12px; left: -10px; min-width: 42px; height: 42px; border-radius: 21px; background: var(--ink); color: var(--bg); font: 900 22px/42px var(--font-head); text-align: center; }
.teen-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.teen-tools:empty { display: none; }
.tframe-more.right { box-shadow: 0 0 0 5px var(--c); }
.act .stage .tframe-more:has(.tcell:not(.on)) { cursor: pointer; }

/* Rime */
.rhyme-target { display: flex; justify-content: center; margin-bottom: 16px; }
.rhyme-target .pic { width: min(100%, 230px); }
.pic-target .pic-pick { cursor: default; background: var(--c-soft); }
.pic-target .pic-pick:hover { transform: none; }

/* Plješći slogove */
.syl-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.syl-card { display: grid; justify-items: center; gap: 10px; }
.syl-picture { border: 0; border-radius: calc(var(--radius) - 2px); background: var(--field-bg); padding: 16px; width: min(100%, 240px); aspect-ratio: 1; cursor: pointer; }
.syl-picture svg { width: 100%; height: 100%; }
.syl-word { font: var(--head-weight) 30px/1.2 var(--font-head); min-height: 1.3em; visibility: hidden; display: flex; gap: 6px; align-items: center; }
.syl-word.shown { visibility: visible; }
.syl-dot { color: var(--ink-soft); }
.syl-part { border-radius: 10px; padding: 0 4px; }
.syl-part.now { background: var(--songs); color: var(--on-songs); }
.syl-play { display: grid; justify-items: center; gap: 16px; }
.syl-beats { display: flex; gap: 10px; min-height: 30px; }
.syl-beats i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); animation: pop .25s ease-out; }
.syl-beats i.now { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--songs); }
.syl-drum { border: 0; background: var(--c-soft); border-radius: 50%; width: 170px; height: 170px; padding: 22px; cursor: pointer; box-shadow: var(--btn-lip); }
.syl-drum:active { transform: translateY(4px); box-shadow: none; }
.syl-drum svg { width: 100%; height: 100%; }
.syl-tools { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Visoko i nisko */
.pitch-area { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: center; max-width: 820px; margin: 0 auto; }
.pitch-choice { border: 0; border-radius: calc(var(--radius) - 2px); background: var(--field-bg); padding: 16px 12px 14px; cursor: pointer; display: grid; justify-items: center; gap: 8px; color: var(--ink); transition: transform .15s ease; }
.pitch-choice:hover { transform: translateY(-3px); }
.pitch-art { width: min(100%, 170px); aspect-ratio: 1; display: block; }
.pitch-art svg { width: 100%; height: 100%; }
.pitch-label { font: var(--head-weight) 24px/1.1 var(--font-head); }
.pitch-high .pitch-label { color: var(--sounds-text); }
.pitch-low .pitch-label { color: var(--numbers-text); }
.pitch-choice.singing .pitch-art { animation: sing .3s ease-in-out infinite alternate; }
.pitch-choice.right { box-shadow: inset 0 0 0 5px var(--c); background: var(--c-soft); }
.pitch-choice.wrong { animation: shake .4s ease-in-out; }
.pitch-play { border: 0; width: 120px; height: 120px; border-radius: 50%; background: var(--c); color: var(--c-on); padding: 24px; cursor: pointer; box-shadow: var(--btn-lip); }
.pitch-play svg { width: 100%; height: 100%; }
.pitch-play svg path:first-child { fill: var(--c-on); }
.pitch-play svg path + path { stroke: var(--c-on); fill: none; }

/* Koliko ih je */
.howmany { position: relative; margin: 0 auto; border-radius: calc(var(--radius) - 4px); background: var(--field-bg); }
.howmany.scatter { width: 100%; max-width: 760px; aspect-ratio: 16 / 8; }
.scatter-item { position: absolute; width: clamp(48px, 11%, 84px); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.scatter-item svg { width: 100%; height: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .1)); }
.count-badge { position: absolute; top: -8px; right: -8px; min-width: 30px; height: 30px; border-radius: 15px; background: var(--c); color: var(--c-on); font: 900 17px/30px var(--font-head); text-align: center; animation: pop .25s ease-out; }
.howmany.dice-board { width: 230px; height: 230px; display: grid; place-items: center; }
.dice-face { width: 180px; height: 180px; border-radius: 30px; background: #FFFDF8; box-shadow: inset 0 0 0 4px var(--ink), 0 6px 0 rgba(0, 0, 0, .12); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 18px; gap: 6px; }
.dice-face i { border-radius: 50%; position: relative; }
.dice-face i.pip { background: var(--ink); }
.dice-face i.pip .count-badge { top: -12px; right: -12px; }
.dice-cover { position: absolute; inset: 0; border-radius: inherit; background: var(--c); color: var(--c-on); font: 900 110px/230px var(--font-head); text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.howmany.covered .dice-cover { opacity: 1; }
.choices.waiting { opacity: .35; pointer-events: none; }

/* Nahrani zeku */
.feed-area { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.feed-pile-box { background: var(--field-bg); border-radius: calc(var(--radius) - 4px); padding: 14px; }
.feed-label { font-weight: 850; font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }
.feed-pile, .feed-plate { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.carrot { border: 0; background: none; width: 62px; height: 62px; padding: 4px; cursor: pointer; transform: rotate(var(--r, 0deg)); transition: transform .15s ease; }
.carrot:hover { transform: rotate(var(--r, 0deg)) scale(1.1); }
.carrot svg { width: 100%; height: 100%; }
.carrot.on-plate { animation: pop .25s ease-out; }
.feed-side { display: grid; justify-items: center; gap: 10px; }
.feed-bunny { width: 150px; }
.feed-bunny.eating { animation: munch .3s ease-in-out 4; }
.feed-plate { min-height: 86px; width: 100%; max-width: 330px; padding: 12px; border-radius: 50%; background: #FFFDF8; box-shadow: inset 0 0 0 6px #E9E2D2, 0 5px 0 rgba(0, 0, 0, .08); align-content: center; }
.feed-plate:empty::after { content: ""; width: 40px; height: 40px; }

/* Brojevni voz */
.train-track { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 18px 14px 26px; border-radius: calc(var(--radius) - 4px); background: var(--field-bg) linear-gradient(transparent calc(100% - 14px), #C9B28C calc(100% - 14px), #C9B28C calc(100% - 10px), transparent calc(100% - 10px)); }
.train-track.leaving { animation: depart 1.3s ease-in forwards; }
.loco { width: 96px; flex: none; }
.loco svg { width: 100%; height: auto; }
.wagon, .wagon-slot { position: relative; width: 64px; height: 54px; border-radius: 10px; flex: none; display: grid; place-items: center; font: 900 28px/1 var(--font-head); margin-bottom: 10px; }
.wagon { border: 0; color: #fff; cursor: pointer; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14); }
.wagon::before, .wagon::after { content: ""; position: absolute; bottom: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 5px #C9CBD7; }
.wagon::before { left: 8px; } .wagon::after { right: 8px; }
.wagon-c0 { background: #C93D27; } .wagon-c1 { background: #137A70; } .wagon-c2 { background: #2F6FB0; } .wagon-c3 { background: #B7791F; }
.wagon.fixed { cursor: default; animation: pop .25s ease-out; }
.wagon.wrong { animation: shake .4s ease-in-out; }
.wagon-slot { border: 3px dashed var(--line); background: var(--surface); color: var(--ink-soft); }
.train-yard { display: flex; flex-wrap: wrap; gap: 14px 10px; justify-content: center; margin-top: 18px; min-height: 0; }
.train-yard:empty { display: none; }

/* Ponovi ritam */
.rhythm-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: center; max-width: 760px; margin: 0 auto; }
.rhythm-listen, .rhythm-play { display: grid; justify-items: center; gap: 16px; }
.rhythm-dots { display: flex; gap: 10px; min-height: 32px; align-items: center; }
.rhythm-dots i { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 3px var(--line); }
.rhythm-dots i.on { background: var(--songs); box-shadow: none; animation: pop .2s ease-out; }
.rhythm-dots i.after-pause { margin-left: 30px; }
.rhythm-dots.taps i.on { background: var(--c); }

/* Zvuci oko nas: a card wiggles while its sound plays */
.pic.singing .pic-art { animation: sing .3s ease-in-out infinite alternate; }

/* Search pages */
.hub-hero { display: flex; gap: 20px; align-items: center; margin: 6px 0 8px; }
.hub-mascot { flex: 0 0 110px; width: 110px; }
.hub-hero h1 { font-size: clamp(36px, 5.4vw, 64px); }
.hub-hero .lead { margin-top: 10px; }
.hub-block { margin-top: 48px; }
.hub .parent-points { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hub-block > h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.hub-lead { color: var(--ink-soft); max-width: 48em; margin-bottom: 18px; }
.hub .strip { margin-top: 28px; }
.num-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.num-card { background: var(--surface); border: var(--card-border); border-radius: var(--radius); padding: 16px; display: grid; justify-items: center; gap: 6px; text-align: center; box-shadow: var(--shadow); }
.num-card-n { font: 900 64px/1 var(--font-head); color: var(--numbers-text); }
.num-card:nth-child(3n+2) .num-card-n { color: var(--songs-text); }
.num-card:nth-child(3n) .num-card-n { color: var(--sounds-text); }
.num-card-word { font: var(--head-weight) 22px/1.1 var(--font-head); }
.num-card p { font-size: 16px; color: var(--ink-soft); line-height: 1.4; }
.mini-frames { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.mini-frame { display: grid; grid-template-columns: repeat(5, 12px); grid-auto-rows: 12px; gap: 3px; padding: 4px; border-radius: 6px; background: var(--field-bg); }
.mini-frame i { border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.mini-frame i.on { background: var(--numbers); box-shadow: none; }
.teen-card .mini-frame + .mini-frame i.on { background: var(--songs); }
.word-box { margin-top: 20px; background: var(--songs-soft); border-radius: var(--radius); padding: 20px 22px; max-width: 760px; }
.word-box h3 { font-size: 22px; }
.word-box p { margin-top: 6px; color: var(--ink-soft); }
/* Brojevi na engleskom: the number cards are buttons that speak the English word. */
button.num-card { font: inherit; color: inherit; cursor: pointer; width: 100%; transition: transform .12s ease, box-shadow .12s ease; }
button.num-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
button.num-card.on { border-color: var(--numbers); background: var(--numbers-soft); }
.say-as { font-size: 16px; color: var(--ink-soft); }
.say-as b { color: var(--ink); font-weight: 800; }
.en-games .card { --r: 0deg; }
/* Privacy page */
.doc-text { max-width: 46em; }
.doc-text p + p { margin-top: 12px; }
.clear-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.clear-row p { margin: 0; font-weight: 700; color: var(--sounds-text); }
.contact-mail { font: 800 clamp(20px, 3vw, 26px)/1.3 var(--font-head); overflow-wrap: anywhere; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.song-grid .song-card { margin-top: 0; max-width: none; align-content: start; }
.song-grid .lyrics { font-size: clamp(18px, 2vw, 22px); }
.learn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.learn-list li { background: var(--surface); border: var(--card-border); border-radius: calc(var(--radius) - 6px); padding: 14px 16px 14px 46px; position: relative; font-weight: 650; }
.learn-list li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--sounds-bright); }
.screen-box .hub-lead { background: var(--sounds-soft); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.hub-links.center { justify-content: center; }
.hub-link { font-weight: 800; color: var(--c-text, var(--numbers-text)); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.ages .hub-link { color: var(--sounds-text); }
.area .hub-links .btn { margin-top: 6px; }
.foot-topics { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin: 6px 0; }
.foot-topics span { font-weight: 800; color: var(--ink); }
.foot-topics a, .foot-trust a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-trust { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }

/* Paper playroom details: tape strips on the big panels. */
.strip::before, .song-card::before { content: ""; position: absolute; top: -13px; left: 50%; width: 120px; height: 26px; margin-left: -60px; background: rgba(244, 178, 58, .55); transform: rotate(-3deg); border-radius: 3px; }
.song-card::before { background: rgba(60, 193, 177, .45); transform: rotate(2deg); }

@keyframes pop { from { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } to { transform: scale(1); } }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes hint { 50% { transform: translateY(-10px) scale(1.08); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes talk { 50% { transform: rotate(-5deg) scale(1.04); } }
@keyframes waves { to { transform: translateX(6px); } }
@keyframes beacon { 50% { transform: scale(1.25); } }
@keyframes sing { to { transform: translateY(-8px) rotate(-4deg); } }
@keyframes munch { 50% { transform: scale(1.06) rotate(-3deg); } }
@keyframes depart { to { transform: translateX(120%); opacity: 0; } }
@keyframes fall { to { transform: translateY(640px) rotate(540deg); opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .scene { justify-self: center; max-width: 460px; }
  .doors { grid-template-columns: 1fr; }
  .strip-body { grid-template-columns: 1fr; }
  .parent-points, .parents-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .top { padding-top: 12px; }
  .brand-mark svg { width: 38px; height: 38px; }
  .brand-name { font-size: 21px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 2px; }
  .nav a { padding: 8px 6px; font-size: 15px; }
  .sound-btn { padding: 0 10px; }
  .sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero { padding-top: 10px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .lead { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .bubble-mini { font-size: 13px; padding: 5px 9px; }
  .scene-caption { font-size: 16px; }
  .strip { padding: 20px 16px; }
  .nums { gap: 8px; }
  .num-panel { min-height: 220px; }
  .num-big { font-size: 68px; }
  .frame { grid-template-columns: repeat(5, 22px); grid-auto-rows: 22px; gap: 4px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card { padding: 10px 12px 12px; }
  .card-art { height: 96px; margin-bottom: 10px; }
  .card-art svg { width: 74px; height: 74px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 16px; }
  .door { padding: 14px; }
  .door-art { flex-basis: 62px; height: 62px; }
  .door strong { font-size: 20px; }
  .area-badge { flex-basis: 54px; height: 54px; }
  .song-card { padding: 18px 16px; }
  .act-title { align-items: flex-start; }
  .act-badge { flex-basis: 58px; height: 58px; }
  .levels { width: 100%; }
  .levels button { flex: 1; min-width: 0; padding: 6px 4px; }
  .stage { padding: 12px; min-height: 480px; border-radius: var(--radius); }
  .guide { gap: 10px; margin: 12px 0; }
  .guide-mascot { flex-basis: 52px; width: 52px; }
  .bubble { font-size: 18px; padding: 10px 12px; min-height: 54px; }
  .big-count { min-width: 62px; height: 62px; font-size: 42px; line-height: 62px; border-radius: 18px; }
  .field { grid-template-columns: repeat(var(--cols-s, 4), minmax(0, 1fr)); gap: 8px; padding: 10px; min-height: 170px; }
  .tray { grid-template-columns: repeat(var(--slots, 5), 44px); gap: 7px; }
  .slot { width: 44px; height: 44px; border-radius: 12px; }
  .slot svg { width: 32px; height: 32px; }
  .choice { width: 84px; height: 84px; font-size: 48px; border-radius: 22px; }
  .trace-area, .syl-area { grid-template-columns: 1fr; gap: 12px; }
  .howmany.scatter { aspect-ratio: 4 / 3.4; }
  .scatter-item { width: clamp(38px, 16%, 60px); }
  .feed-area, .rhythm-area { grid-template-columns: 1fr; gap: 12px; }
  .feed-side { order: -1; grid-template-columns: 90px 1fr; grid-template-areas: "bunny plate" "check check"; align-items: center; justify-items: stretch; }
  .feed-bunny { grid-area: bunny; width: 90px; }
  .feed-plate { grid-area: plate; min-height: 70px; border-radius: 40px; }
  .feed-side .btn { grid-area: check; justify-self: center; }
  .carrot { width: 50px; height: 50px; }
  .loco { width: 74px; }
  .wagon, .wagon-slot { width: 50px; height: 44px; font-size: 22px; }
  .wagon::before, .wagon::after { width: 14px; height: 14px; bottom: -8px; box-shadow: inset 0 0 0 4px #C9CBD7; }
  .rhythm-dots i.after-pause { margin-left: 18px; }
  .hub-hero { align-items: flex-start; gap: 12px; }
  .hub-mascot { flex-basis: 64px; width: 64px; }
  .num-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .num-card { padding: 12px 8px; }
  .num-card-n { font-size: 48px; }
  .song-grid { grid-template-columns: 1fr; }
  .rhyme-target .pic { width: min(100%, 160px); }
  .rhyme-target { margin-bottom: 10px; }
  .trace-board svg { width: min(100%, 230px); }
  .trace-shape { font-size: 18px; min-height: 0; }
  .compare { gap: 6px; }
  .cmp-side { min-height: 160px; padding: 12px 6px; }
  .cmp-items { grid-template-columns: repeat(var(--cols, 3), minmax(0, 38px)); gap: 4px; }
  .cmp-or { font-size: 24px; }
  .cmp-count { min-width: 32px; height: 32px; font-size: 18px; line-height: 32px; top: 6px; left: 6px; }
  .tframe { padding: 10px; }
  .tframe-grid { grid-template-columns: repeat(5, 44px); grid-auto-rows: 44px; gap: 6px; }
  .tcell { font-size: 14px; }
  .syl-picture { width: min(100%, 180px); }
  .syl-drum { width: 130px; height: 130px; padding: 16px; }
  .syl-word { font-size: 26px; }
  .pitch-area { gap: 8px; }
  .pitch-choice { padding: 10px 6px; }
  .pitch-label { font-size: 18px; }
  .pitch-play { width: 78px; height: 78px; padding: 16px; }
  .choices { gap: 12px; }
  .sound-tile { font-size: 44px; min-height: 76px; padding: 8px 20px 8px 16px; }
  .pics { grid-template-columns: repeat(var(--cards-s, 2), minmax(0, 1fr)); gap: 10px; }
  .pic-pick { padding: 10px 8px 8px; }
  .pic-word { font-size: 19px; }
  .ear { width: 40px; height: 40px; top: 5px; right: 5px; }
}

@media (max-width: 440px) {
  .pic-pick { padding: 34px 6px 8px; }
  .howmany + .choices { gap: 8px; }
  .howmany + .choices .choice { width: 60px; height: 60px; font-size: 34px; border-radius: 18px; }
  .ear { width: 34px; height: 34px; top: 4px; right: 4px; }
  .ear svg { width: 18px; height: 18px; }
  .pic-word { font-size: 16px; }
  .stage { padding: 10px; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 19px; }
  .nav a { font-size: 14px; padding: 8px 4px; }
  .tray { grid-template-columns: repeat(var(--slots, 5), 40px); gap: 6px; }
  .slot { width: 40px; height: 40px; }
  .choice { width: 76px; height: 76px; font-size: 44px; }
}

/* Phone readability floor: labels at least 11 px, reading text at least 12 px, tap targets at least 24 px. Keep this block last. */
@media (max-width: 760px) {
  .levels small, .slot b { font-size: 12px; }
  .age, .tag, .voice-note, .proto, .door small { font-size: 13px; }
  .chip, .seg button, .lang, .nav a, .replay, .ear, .sound-btn { min-height: 44px; min-width: 44px; }
}
