/* Re a Ithuta — bright, rounded, voice-first learning app style */
:root { color-scheme: only light;
  --ink: #2B2250; --ink-2: #5E5785; --paper: #FFFFFF; --cream: #FFF8EC;
  --purple: #6C4BF4; --purple-d: #4B2FD0; --yellow: #FFC93C; --yellow-d: #E0A400;
  --coral: #FF6B6B; --coral-d: #D94848; --mint: #2EC4B6; --mint-d: #1E9A8F; --green: #58C24B; --green-d: #3C9A31;
  --sky1: #CFEAFF; --sky2: #FFF4DC;
  --r: 26px; --r-sm: 18px;
  --head: 'Fredoka', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif;
  --shadow: 0 10px 30px -12px rgba(43, 34, 80, .28);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; border-radius: 14px; }
img { display: block; max-width: 100%; }
#app { min-height: 100vh; min-height: 100dvh; max-width: 980px; margin: 0 auto; padding: 14px 16px 40px; position: relative; }
body:has(#app.bg-sky) { background: linear-gradient(180deg, var(--sky1), var(--sky2) 70%); }
body:has(#app.bg-home) { background: linear-gradient(180deg, #EDE7FF 0, #FFF8EC 340px); }
body:has(#app.bg-term) { background: radial-gradient(circle at 50% 30%, #FFFFFF 0, #F1ECFF 70%); }
body:has(#app.bg-plain) { background: #FAF8F4; }

/* ---------- chunky buttons ---------- */
.chunky { --b: var(--purple); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 28px;
  border-radius: 22px; background: var(--b); color: #fff; font: 700 24px/1 var(--head); letter-spacing: .3px;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--b) 70%, #000), 0 12px 22px -8px color-mix(in srgb, var(--b) 60%, transparent);
  transition: transform .08s, box-shadow .08s; position: relative; overflow: hidden; }
.chunky svg { width: 26px; height: 26px; flex: none; }
.chunky:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 color-mix(in srgb, var(--b) 70%, #000); }
.chunky.go { --b: var(--green); }
.chunky.ghost { --b: #fff; color: var(--ink); box-shadow: 0 5px 0 #E2DCF2, 0 10px 18px -10px rgba(0,0,0,.2); font-size: 20px; min-height: 56px; padding: 0 20px; }
.chunky.sq { width: 76px; height: 76px; padding: 0; border-radius: 24px; }
.chunky.sq svg { width: 34px; height: 34px; }
.chunky.wide { width: 100%; max-width: 420px; }
.chunky:disabled { opacity: .35; }
.chunky.auto .fill { position: absolute; inset: 0; width: 0; background: rgba(255,255,255,.28); animation: fill 7s linear forwards; }
.chunky.auto .blbl { position: relative; display: inline-flex; align-items: center; gap: 10px; }
@keyframes fill { to { width: 100%; } }
.round-btn { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--purple); flex: none;
  box-shadow: 0 4px 0 #E2DCF2, 0 8px 16px -8px rgba(0,0,0,.25); }
.round-btn svg { width: 26px; height: 26px; }
.round-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #E2DCF2; }

/* speaker buttons */
.speak { width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: inline-grid; place-items: center; flex: none;
  box-shadow: 0 4px 0 var(--yellow-d); vertical-align: middle; }
.speak svg { width: 26px; height: 26px; }
.speak.big { width: 60px; height: 60px; } .speak.big svg { width: 32px; height: 32px; }
.speak.card { width: 42px; height: 42px; position: absolute; right: -6px; top: -10px; z-index: 2; box-shadow: 0 3px 0 var(--yellow-d), 0 4px 10px rgba(0,0,0,.15); }
.speak.card svg { width: 22px; height: 22px; }
.speak.missing { background: #E9E6F0; color: #A9A3BD; box-shadow: 0 4px 0 #D3CEE0; }
.speak.nudge { animation: nudge .4s; }
@keyframes nudge { 30% { transform: translateX(-4px) rotate(-6deg); } 60% { transform: translateX(4px) rotate(6deg); } }
.speak:active { transform: translateY(3px); }

/* ---------- welcome ---------- */
.welcome { display: grid; gap: 18px; align-items: center; padding-top: 6px; }
.w-art img { width: 100%; max-width: 560px; margin: 0 auto; border-radius: 30px; box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; }
.w-card { background: #fff; border-radius: 30px; padding: 24px 22px 26px; box-shadow: var(--shadow); text-align: center; display: grid; justify-items: center; gap: 10px; }
.logo { font: 600 46px/1 var(--head); color: var(--purple); letter-spacing: -.5px; }
.logo b { color: var(--coral); font-weight: 700; }
.grade-pill { background: #F1ECFF; color: var(--purple-d); font: 600 16px var(--head); padding: 7px 14px; border-radius: 99px; }
.ask { font: 600 25px/1.25 var(--head); margin: 8px 0 2px; display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.name-in { width: 100%; max-width: 360px; height: 66px; border-radius: 20px; border: 3px solid #E2DCF2; background: #FBFAFF; text-align: center; font: 700 30px var(--head); color: var(--ink); }
.name-in:focus { outline: none; border-color: var(--purple); }
.hint { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
@media (min-width: 820px) { .welcome { grid-template-columns: 1.15fr 1fr; padding-top: 40px; } }

/* ---------- home / stage map ---------- */
.home-top { display: flex; align-items: center; gap: 12px; }
.hello { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hello img { width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.hello span { font: 600 22px/1.05 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hello small { display: block; font: 600 13px var(--body); color: var(--ink-2); margin-top: 2px; }
.star-count { display: flex; align-items: center; gap: 6px; background: #fff; padding: 8px 14px 8px 10px; border-radius: 99px; font: 700 20px var(--head); box-shadow: 0 3px 0 #E2DCF2; }
.star-count svg, .th-stars svg { width: 24px; height: 24px; fill: var(--yellow); stroke: var(--yellow-d); stroke-width: 1.2; }
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 12px; }
.term-tab { background: #fff; border-radius: 18px; padding: 8px 4px 9px; display: grid; justify-items: center; gap: 1px; box-shadow: 0 4px 0 #E2DCF2; }
.term-tab b { font: 700 26px/1 var(--head); color: var(--tc); }
.term-tab span { font: 700 11px var(--body); color: var(--ink-2); letter-spacing: .2px; }
.term-tab.on { background: var(--tc); box-shadow: 0 4px 0 color-mix(in srgb, var(--tc) 70%, #000); }
.term-tab.on b, .term-tab.on span { color: #fff; }
.term-head { background: var(--tc); color: #fff; border-radius: 24px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 6px 0 color-mix(in srgb, var(--tc) 72%, #000); }
.term-head div:first-child { flex: 1; min-width: 0; }
.term-head h1 { margin: 0; font: 700 28px/1 var(--head); }
.term-head p { margin: 6px 0 0; font-weight: 700; font-size: 14px; opacity: .92; }
.th-stars { background: rgba(255,255,255,.22); padding: 8px 12px; border-radius: 99px; display: flex; align-items: center; gap: 5px; font: 700 18px var(--head); white-space: nowrap; }
.path { position: relative; padding: 26px 0 10px; display: grid; gap: 4px; }
.node-row { position: relative; height: 150px; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.trail path { fill: none; stroke: color-mix(in srgb, var(--tc) 30%, #fff); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 2 22; }
.node { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; z-index: 1;
  box-shadow: 0 7px 0 #DCD5EE, 0 14px 24px -10px rgba(0,0,0,.3); border: 5px solid #fff; transition: transform .1s; }
.node:active { transform: translateX(-50%) translateY(5px); box-shadow: 0 2px 0 #DCD5EE; }
.node .n-ic { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #F6F3FF; }
.node .n-ic img { width: 100%; height: 100%; object-fit: cover; }
.ic-e { font-size: 46px; line-height: 1; }
.ic-txt { font: 700 34px var(--head); color: var(--purple); white-space: nowrap; }
.n-ic .ic-txt.l4 { font-size: 22px; } .n-ic .ic-txt.l6 { font-size: 17px; } .n-ic .ic-txt.l8 { font-size: 14px; }
.n-num { position: absolute; left: -6px; top: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--tc); color: #fff; font: 700 18px/34px var(--head); text-align: center; border: 3px solid #fff; }
.node.done { border-color: var(--yellow); box-shadow: 0 7px 0 var(--yellow-d), 0 14px 24px -10px rgba(0,0,0,.3); }
.node.cur { width: 124px; height: 124px; border-color: var(--tc); box-shadow: 0 8px 0 color-mix(in srgb, var(--tc) 72%, #000), 0 0 0 10px color-mix(in srgb, var(--tc) 22%, transparent); animation: bob 1.6s ease-in-out infinite; top: -8px; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-6px); } }
.n-lemo { position: absolute; right: -54px; top: -14px; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.n-title { position: absolute; left: var(--x); top: 112px; transform: translateX(-50%); font: 600 15px/1.1 var(--head); text-align: center; width: 150px; background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 10px; z-index: 2; }
.n-stars { position: absolute; left: var(--x); top: 136px; transform: translateX(-50%); display: flex; gap: 2px; z-index: 2; }
.n-stars i svg { width: 16px; height: 16px; fill: #DCD5EE; }
.n-stars i.on svg { fill: var(--yellow); }
.node-row:has(.node.cur) .n-title { top: 124px; font-weight: 700; }
.node-row:has(.node.cur) .n-stars { top: 148px; }
.n-title.long { width: auto; max-width: 236px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; left: clamp(118px, var(--x), calc(100% - 118px)); }
.n-stars.long { left: clamp(118px, var(--x), calc(100% - 118px)); }
.n-title:not(.long) { width: auto; max-width: 160px; white-space: nowrap; left: clamp(82px, var(--x), calc(100% - 82px)); }
.n-stars:not(.long) { left: clamp(82px, var(--x), calc(100% - 82px)); }
.play-dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: center; background: linear-gradient(180deg, rgba(255,248,236,0), rgba(255,248,236,.96) 40%); z-index: 5; }
.foot { text-align: center; margin: 0 0 96px; }
.foot button { color: var(--ink-2); text-decoration: underline; font-size: 14px; padding: 10px; }

/* ---------- in-game ---------- */
.bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bar-mid { flex: 1; min-width: 0; }
.bar-title { font: 600 19px/1.15 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title .kg { background: var(--tc); color: #fff; padding: 3px 9px; border-radius: 99px; font-size: 14px; margin-right: 8px; vertical-align: 2px; }
.pbar { height: 14px; background: #E9E4F6; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #8BE07D); border-radius: 99px; transition: width .5s; }
.play { display: grid; gap: 16px; }
.center { display: grid; justify-items: center; text-align: center; gap: 14px; }
.prompt { display: flex; align-items: center; gap: 10px; }
.lemo-av { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; flex: none; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); background: #fff; }
.lemo-av img { width: 100%; height: 100%; }
.bubble { flex: 1; background: #fff; border-radius: 24px; padding: 12px 12px 12px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); position: relative; min-width: 0; }
.bubble::before { content: ''; position: absolute; left: -10px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.bubble p { margin: 0; flex: 1; font: 600 22px/1.25 var(--head); min-width: 0; }
.choices { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin: 0 auto; width: 100%; }
.choices.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .choices.n4 { grid-template-columns: repeat(4, 1fr); } }
.cwrap { position: relative; }
.choice { width: 100%; min-height: 150px; background: #fff; border-radius: var(--r); display: grid; place-items: center; align-content: center; gap: 4px; padding: 14px 8px;
  box-shadow: 0 7px 0 #E2DCF2, 0 14px 24px -14px rgba(0,0,0,.3); transition: transform .1s, box-shadow .1s; border: 4px solid transparent; }
.choice:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 #E2DCF2; }
.choice.right { border-color: var(--green); background: #EFFBEA; box-shadow: 0 7px 0 var(--green-d); animation: pop .4s; }
.choice.wrong { animation: shake .45s; border-color: var(--coral); }
.choice.used { opacity: .3; }
@keyframes pop { 40% { transform: scale(1.07); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.emo { font-size: 66px; line-height: 1.05; }
.word { font: 600 19px/1.1 var(--head); color: var(--ink); }
.letter { font: 700 76px/1 var(--head); color: var(--purple); }
.choice.letter .letter { font-size: 70px; }
.face { width: 108px; height: 108px; border-radius: 50%; overflow: hidden; border: 4px solid #F1ECFF; }
.face img { width: 100%; height: 100%; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 110px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--coral); }
.numeral { font: 700 80px/1 var(--head); color: var(--purple); }
.namecard { font: 700 30px var(--head); color: var(--purple-d); }
.bowl { width: min(120px, 100%); height: 84px; border-radius: 0 0 70px 70px; background: linear-gradient(180deg, #FFD9A0, #F0A64B); display: flex; align-items: flex-end; justify-content: center; padding: 0 6px 10px; position: relative; margin-top: 26px; }
.bowl::before { content: ''; position: absolute; left: -6px; right: -6px; top: -6px; height: 14px; border-radius: 10px; background: #E58E2E; }
.bowl-in { font-size: 30px; line-height: .9; text-align: center; position: relative; top: -26px; letter-spacing: -4px; max-width: 120px; word-break: break-all; }
.shape svg { width: 96px; height: 96px; }
.pos svg { width: 100%; max-width: 160px; height: auto; aspect-ratio: 6/5; }
.pair { display: flex; gap: 10px; }
.pair b { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); }
.pair b.c2 { background: var(--coral); border-radius: 8px; transform: rotate(45deg) scale(.85); }
.stem { background: #fff; border-radius: var(--r); padding: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; box-shadow: var(--shadow); }
.stem.pattern span { font-size: 48px; line-height: 1; }
.stem.pattern .q { width: 60px; height: 60px; border: 4px dashed var(--purple); border-radius: 16px; display: grid; place-items: center; font: 700 36px var(--head); color: var(--purple); }
.stem.objs span { font-size: 40px; }
.stem.name { font: 700 52px var(--head); color: var(--purple-d); letter-spacing: 2px; }

/* order */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.slot { height: 110px; border-radius: var(--r); border: 4px dashed #CFC6EA; display: grid; place-items: center; background: rgba(255,255,255,.5); }
.slot b { font: 700 40px var(--head); color: #CFC6EA; }
.slot.filled { border-style: solid; border-color: var(--green); background: #fff; animation: pop .4s; }
.slot .emo { font-size: 56px; }

/* story */
.story .art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #fff; aspect-ratio: 3/2; }
.story .art img { width: 100%; height: 100%; object-fit: cover; }
.story .art.tall { aspect-ratio: 3/2; }
.story .art.tall img { object-position: 50% 18%; }
.story-text { background: #fff; border-radius: 24px; padding: 14px 14px 14px 20px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.story-text p { margin: 0; flex: 1; font: 600 26px/1.3 var(--head); }
.story-text .w { cursor: pointer; border-radius: 8px; padding: 0 2px; }
.story-text .w.lit { background: var(--yellow); }
.story-nav { display: flex; justify-content: space-between; }
@media (min-width: 820px) { .story { grid-template-columns: 1.3fr 1fr; align-items: center; } .story .art { grid-row: span 2; } }

/* clap */
.clap-word { background: #fff; border-radius: var(--r); padding: 14px 18px; display: flex; align-items: center; justify-content: center; gap: 14px; box-shadow: var(--shadow); flex-wrap: wrap; }
.clap-word .emo { font-size: 54px; }
.cw { font: 700 32px/1.2 var(--head); }
.blocks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 66px; }
.blk { min-width: 64px; height: 60px; padding: 0 14px; border-radius: 18px; background: #EDE8FA; color: transparent; display: grid; place-items: center; font: 700 24px var(--head); border: 3px dashed #CFC6EA; }
.blk.show { background: var(--purple); color: #fff; border: 3px solid var(--purple-d); animation: pop .35s; }
.clap-btn { width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); font-size: 74px; margin: 0 auto; box-shadow: 0 9px 0 var(--yellow-d), 0 18px 30px -12px rgba(0,0,0,.35); }
.clap-btn:active { transform: translateY(6px); box-shadow: 0 3px 0 var(--yellow-d); }
.clap-btn.bump { animation: pop .25s; }
.say-big { text-align: center; font: 700 28px var(--head); color: var(--purple-d); margin: 0; min-height: 34px; }
.symbol { font: 700 120px/1 var(--head); color: var(--purple); background: #fff; width: 190px; height: 190px; border-radius: 40px; display: grid; place-items: center; box-shadow: var(--shadow); }

/* count */
.tray { background: #fff; border-radius: 30px; padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; box-shadow: var(--shadow); }
.fruit { width: 86px; height: 86px; border-radius: 22px; font-size: 54px; position: relative; background: #FFF5E6; box-shadow: 0 5px 0 #F3DFC0; }
.tray.nl .fruit { width: 74px; height: 74px; font-size: 46px; }
.fruit.counted { background: #EFFBEA; box-shadow: 0 5px 0 var(--green); animation: pop .3s; }
.fruit .num { position: absolute; right: -6px; top: -8px; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font: 700 18px/32px var(--head); }

/* memory */
.mem-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mem { width: 104px; height: 104px; background: #fff; border-radius: 24px; display: grid; place-items: center; box-shadow: var(--shadow); }
.mem-row.small .mem { width: 82px; height: 82px; } .mem-row.small .emo { font-size: 48px; }
.mem.gone { border: 4px dashed var(--purple); font: 700 44px var(--head); color: var(--purple); background: #F6F3FF; }

/* sort */
.sort-item { width: 190px; height: 190px; margin: 0 auto; border-radius: 40px; background: #fff; display: grid; place-items: center; align-content: center; gap: 4px; box-shadow: var(--shadow); position: relative; transition: transform .6s cubic-bezier(.5,0,.6,1), opacity .6s; animation: drop .45s; }
.sort-item .emo { font-size: 92px; }
@keyframes drop { from { transform: translateY(-30px) scale(.8); opacity: 0; } }
.bins { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .bins.n4 { grid-template-columns: repeat(4, 1fr); } }
.bin { width: 100%; min-height: 130px; border-radius: var(--r); background: #fff; display: grid; place-items: center; align-content: center; gap: 6px; padding: 12px 6px;
  box-shadow: 0 7px 0 #E2DCF2; border: 4px solid transparent; }
.bin .emo { font-size: 52px; }
.swatch { width: 70px; height: 70px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); }
.bin.right { border-color: var(--green); animation: pop .4s; }
.bin.wrong { animation: shake .45s; border-color: var(--coral); }

/* scenes */
.scene { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; user-select: none; -webkit-user-select: none; }
.scene img { width: 100%; height: auto; pointer-events: none; }
.scene.tall { max-width: 420px; margin: 0 auto; width: 100%; }
.mark { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 5px solid var(--green); background: rgba(88,194,75,.25); animation: pop .3s; pointer-events: none; }
.mark.bad { border-color: var(--coral); background: rgba(255,107,107,.25); }
.lbl { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); background: #fff; color: var(--ink); font: 700 20px var(--head); padding: 6px 14px; border-radius: 14px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.found { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.found i { width: 50px; height: 50px; border-radius: 50%; background: #E9E4F6; display: grid; place-items: center; font-style: normal; font-size: 28px; }
.found i.on { background: #fff; box-shadow: 0 0 0 4px var(--green); animation: pop .3s; }

/* intro & finish */
.intro, .finish { min-height: calc(100dvh - 60px); display: grid; place-items: center; }
.intro-card { text-align: center; animation: zoom .5s cubic-bezier(.2,1.4,.5,1); }
.intro-kg { display: inline-block; background: var(--tc); color: #fff; font: 700 18px var(--head); padding: 8px 18px; border-radius: 99px; }
.intro-ic { width: 170px; height: 170px; border-radius: 50%; background: #fff; margin: 22px auto 14px; display: grid; place-items: center; overflow: hidden; border: 8px solid var(--tc); box-shadow: var(--shadow); }
.intro-ic img { width: 100%; height: 100%; object-fit: cover; } .intro-ic .ic-e { font-size: 84px; } .intro-ic .ic-txt { font-size: 60px; } .intro-ic .ic-txt.l4 { font-size: 46px; } .intro-ic .ic-txt.l6 { font-size: 36px; } .intro-ic .ic-txt.l8 { font-size: 26px; white-space: normal; max-width: 84%; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.intro-card h2 { font: 700 34px var(--head); margin: 0; }
@keyframes zoom { from { transform: scale(.5); opacity: 0; } }
.fin-card { background: #fff; border-radius: 34px; padding: 26px 20px 22px; width: 100%; max-width: 460px; text-align: center; display: grid; justify-items: center; gap: 12px; box-shadow: var(--shadow); position: relative; animation: zoom .45s cubic-bezier(.2,1.4,.5,1); }
.fin-lemo { width: 110px; height: 110px; border-radius: 50%; border: 6px solid var(--yellow); margin-top: -70px; background: #fff; }
.fin-card h2 { margin: 0; font: 700 28px/1.2 var(--head); }
.fin-stars { display: flex; gap: 6px; }
.fs svg { width: 64px; height: 64px; fill: #E9E4F6; }
.fs.on svg { fill: var(--yellow); stroke: var(--yellow-d); stroke-width: 1; }
.fs.on { animation: starIn .5s cubic-bezier(.2,1.6,.5,1) both; }
.fs:nth-child(2) svg { width: 78px; height: 78px; margin-top: -10px; }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); } }
.up-next { display: flex; align-items: center; gap: 12px; background: #F6F3FF; border-radius: 20px; padding: 10px 16px 10px 10px; width: 100%; max-width: 420px; text-align: left; }
.un-ic { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; border: 3px solid var(--tc); }
.un-ic img { width: 100%; height: 100%; object-fit: cover; } .un-ic .ic-e { font-size: 30px; } .un-ic .ic-txt { font-size: 22px; }
.up-next small { display: block; color: var(--ink-2); font-weight: 800; font-size: 13px; }
.up-next b { font: 600 20px var(--head); }
.fin-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.trophy { font-size: 100px; line-height: 1; animation: pop 1s infinite; }
.kg-done { background: var(--tc); color: #fff; padding: 6px 16px; border-radius: 99px; font: 700 18px var(--head); }
.tot { display: flex; align-items: center; gap: 8px; font: 700 26px var(--head); }
.tot svg { width: 36px; height: 36px; fill: var(--yellow); }

/* toast & confetti */
#toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -140%); z-index: 50; transition: transform .25s cubic-bezier(.2,1.4,.5,1); pointer-events: none; }
#toast span { display: block; background: #fff; padding: 12px 24px; border-radius: 99px; font: 700 22px var(--head); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
#toast.show { transform: translate(-50%, 0); }
#toast.good span { color: var(--green-d); border: 3px solid var(--green); }
#toast.try span { color: var(--coral-d); border: 3px solid var(--coral); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: fall 2.2s ease-in forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }

/* review */
.review { font-size: 15px; }
.intro-box { background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); line-height: 1.5; }
.curr { background: #fff; border-radius: 18px; padding: 12px 18px; margin: 14px 0; box-shadow: var(--shadow); }
.curr summary { font: 600 18px var(--head); cursor: pointer; }
.curr h3 { font: 600 17px var(--head); margin: 14px 0 4px; } .curr small { color: var(--ink-2); }
.curr li { margin: 3px 0; }
.review h2 { font: 700 22px var(--head); margin: 22px 0 8px; } .review h2 small { font: 600 14px var(--body); color: var(--ink-2); }
.rtable { width: 100%; table-layout: fixed; word-break: break-word; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.rtable th, .rtable td { padding: 9px 10px; border-bottom: 1px solid #EEE9F7; text-align: left; vertical-align: top; }
.rtable th { background: #F1ECFF; font-size: 13px; }
.rtable .tn { font-weight: 800; font-size: 16px; }
.rtable tr.rec { background: #F2FBEF; }
.rtable input[type=text] { width: 100%; margin-top: 6px; padding: 6px 8px; border: 2px solid #E2DCF2; border-radius: 8px; font: inherit; min-width: 0; }
.rtable code { word-break: break-all; }
.meta { color: var(--ink-2); font-size: 12px; margin-top: 3px; }
.out { width: 100%; min-height: 160px; margin-top: 14px; border-radius: 12px; border: 2px solid #E2DCF2; padding: 10px; font: 13px/1.4 ui-monospace, monospace; }
@media (max-width: 600px) { .rtable th:nth-child(3), .rtable td:nth-child(3) { display: none; } }

/* small phones */
@media (max-width: 400px) {
  .choice { min-height: 128px; } .emo { font-size: 54px; } .letter { font-size: 62px; } .face { width: 88px; height: 88px; }
  .bubble p { font-size: 19px; } .lemo-av { width: 56px; height: 56px; } .word { font-size: 16px; }
  .fruit { width: 72px; height: 72px; font-size: 44px; } .tray.nl .fruit { width: 62px; height: 62px; font-size: 38px; }
  .node { width: 92px; height: 92px; } .node.cur { width: 108px; height: 108px; } .ic-e { font-size: 40px; }
  .n-lemo { right: -44px; width: 46px; height: 46px; }
  .bowl { width: 96px; } .numeral { font-size: 64px; } .shape svg { width: 78px; height: 78px; } .pos svg { width: 100px; }
  .mem { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 480px) {
  .stem.pattern { gap: 6px; padding: 12px 8px; flex-wrap: nowrap; }
  .stem.pattern span { font-size: 36px; } .stem.pattern .q { width: 46px; height: 46px; font-size: 28px; border-width: 3px; }
  .mem-row { gap: 8px; } .mem { width: 78px; height: 78px; } .mem .emo { font-size: 48px; }
}

/* right-answer signs */
.bar-stars { display: flex; align-items: center; gap: 4px; background: #fff; padding: 6px 12px 6px 8px; border-radius: 99px; font: 700 20px var(--head); box-shadow: 0 3px 0 #E2DCF2; flex: none; }
.bar-stars svg { width: 26px; height: 26px; fill: var(--yellow); stroke: var(--yellow-d); stroke-width: 1.2; }
.bar-stars.bump { animation: pop .4s; }
.tick { position: absolute; left: -8px; top: -10px; width: 44px; height: 44px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 3px 0 var(--green-d), 0 0 0 4px #fff; animation: starIn .45s cubic-bezier(.2,1.6,.5,1) both; z-index: 3; }
.tick svg, .yay-tick svg { width: 70%; height: 70%; fill: none; stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.choice, .bin, .slots { position: relative; }
.yay { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 45; }
.yay-tick { width: 120px; height: 120px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 8px 0 var(--green-d), 0 0 0 10px rgba(255,255,255,.9), 0 20px 40px rgba(0,0,0,.25); animation: yay 1s cubic-bezier(.2,1.5,.5,1) forwards; }
@keyframes yay { 0% { transform: scale(0); opacity: 1; } 35% { transform: scale(1.1); } 50% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.spark { position: fixed; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: none; z-index: 46; animation: spark .9s ease-out forwards; }
.spark.sm { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.spark svg, .fly svg { width: 100%; height: 100%; fill: var(--yellow); stroke: var(--yellow-d); stroke-width: 1; }
@keyframes spark { 0% { transform: translate(0,0) scale(.3) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(160deg); opacity: 0; } }
.fly { position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none; z-index: 47; animation: fly .75s cubic-bezier(.5,-.3,.7,1) forwards; }
@keyframes fly { 0% { transform: translate(0,0) scale(.6); } 30% { transform: translate(0,-30px) scale(1.4); } 100% { transform: translate(var(--tx), var(--ty)) scale(.7); } }
.tray, .blocks { position: relative; }

/* ---------- subjects ---------- */
.subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 12px; }
.sc-wrap { position: relative; }
.subj-card { --sc: var(--purple); width: 100%; background: #fff; border-radius: 22px; padding: 12px 6px 10px; display: grid; justify-items: center; gap: 4px; border: 4px solid transparent;
  box-shadow: 0 5px 0 #E2DCF2; transition: transform .08s; }
.subj-card:active { transform: translateY(4px); box-shadow: 0 1px 0 #E2DCF2; }
.subj-card .sc-ic { width: 54px; height: 54px; border-radius: 18px; background: color-mix(in srgb, var(--sc) 16%, #fff); display: grid; place-items: center; font-size: 32px; }
.subj-card b { font: 700 15px/1.1 var(--head); text-align: center; color: var(--ink); min-height: 2.2em; display: grid; place-items: center; }
.subj-card small { font: 700 12px var(--body); color: var(--ink-2); }
.sc-prog { width: 80%; height: 8px; border-radius: 9px; background: #EEE9FA; overflow: hidden; }
.sc-prog i { display: block; height: 100%; background: var(--sc); border-radius: 9px; }
.subj-card.on { background: var(--sc); border-color: #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--sc) 70%, #000), 0 0 0 4px color-mix(in srgb, var(--sc) 30%, transparent); }
.subj-card.on b, .subj-card.on small { color: #fff; }
.subj-card.on .sc-ic { background: rgba(255,255,255,.25); }
.subj-card.on .sc-prog { background: rgba(255,255,255,.3); } .subj-card.on .sc-prog i { background: #fff; }
.sc-wrap .speak.card { position: absolute; right: -4px; top: -6px; }
.subj-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.subj-next.n1 { grid-template-columns: minmax(0, 200px); justify-content: center; }
.subj-sum { display: grid; gap: 6px; width: 100%; }
.subj-sum span { background: color-mix(in srgb, var(--sc) 14%, #fff); border-radius: 14px; padding: 8px 12px; font: 600 16px var(--head); display: flex; justify-content: space-between; gap: 8px; }
.sb-pill { background: rgba(255,255,255,.25); border-radius: 99px; padding: 0 8px; }
.intro-kg.sm { font-size: 15px; padding: 5px 14px; margin-top: 6px; opacity: .9; }

/* ---------- maths visuals ---------- */
.choice .emo.sz-b { font-size: 108px; } .choice .emo.sz-s { font-size: 38px; }
.mbar { width: 100%; display: block; } .mbar svg { width: 100%; height: 56px; display: block; }
.cup svg { width: 96px; height: 96px; }
.stem.track { gap: 10px; }
.tk { width: 62px; height: 62px; border-radius: 16px; background: #F1ECFF; color: var(--purple-d); font: 700 34px/62px var(--head); text-align: center; box-shadow: 0 4px 0 #DCD5EE; }
.tk.q { background: #fff; border: 4px dashed var(--purple); line-height: 54px; box-shadow: none; }
.numeral { font: 700 64px/1 var(--head); color: var(--purple-d); }

/* add / take away */
.as-scene { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 10px; display: grid; grid-template-columns: 74px 1fr 74px; align-items: center; gap: 8px; width: 100%; }
.as-kid { display: grid; justify-items: center; gap: 2px; }
.as-kid img { width: 66px; height: 66px; border-radius: 50%; background: #F1ECFF; }
.as-kid b { font: 700 14px var(--head); }
.as-bowl { min-height: 110px; border-radius: 0 0 80px 80px; background: linear-gradient(180deg, #FFE4B8, #F5B867); border-top: 10px solid #E58E2E; display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; padding: 6px 8px 14px; gap: 0 2px; }
.as-o { font-size: 34px; line-height: 1.05; display: inline-block; transition: transform .6s cubic-bezier(.5,0,.3,1), opacity .6s; }
.as-o.new { animation: pop .35s; }
.as-o.gone { transform: translate(var(--tx), var(--ty)) scale(.6); opacity: 0; }
.as-fly { position: fixed; z-index: 60; font-size: 34px; font-style: normal; margin: -20px 0 0 -20px; pointer-events: none; animation: asfly .6s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes asfly { 40% { transform: translate(calc(var(--tx) * .5), calc(var(--ty) * .5 - 50px)) scale(1.2); } 100% { transform: translate(var(--tx), var(--ty)) scale(1); } }
.as-eq { display: flex; justify-content: center; align-items: center; gap: 10px; font: 700 34px var(--head); color: var(--ink); opacity: 0; transition: opacity .3s; margin-top: 4px; }
.as-eq.show { opacity: 1; }
.as-eq i { font-style: normal; color: var(--coral); }
.as-eq .q { width: 52px; height: 52px; border: 4px dashed var(--purple); border-radius: 14px; display: grid; place-items: center; color: var(--purple); }
.chunky.sm { min-height: 46px; font-size: 17px; padding: 0 16px; }

/* sharing */
.pile { background: #FFF5E6; border-radius: var(--r); min-height: 70px; padding: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 40px; box-shadow: inset 0 3px 0 #F3DFC0; }
.plates { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plates.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plate-k { background: #fff; border-radius: var(--r); padding: 12px 8px; display: grid; justify-items: center; gap: 8px; box-shadow: 0 6px 0 #E2DCF2; }
.plate-k:active:not(:disabled) { transform: translateY(4px); }
.plate-k.wrong { animation: shake .45s; }
.plate-k img { width: 70px; height: 70px; border-radius: 50%; background: #F1ECFF; }
.plate { width: 100%; min-height: 70px; border-radius: 999px; background: #F6F3FF; border: 4px solid #E2DCF2; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; padding: 8px; font-size: 28px; line-height: 1; }
.plate .new { animation: drop .35s; }
.stem .plates { width: 100%; }

/* picture graph */
.field { background: linear-gradient(180deg, #DFF5D3, #C6EBB3); border-radius: var(--r); padding: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 80px; }
.fa { font-size: 42px; width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.7); transform: rotate(var(--r)); box-shadow: 0 4px 0 rgba(60,154,49,.35); }
.fa.used { opacity: 0; transform: scale(.4); transition: .3s; pointer-events: none; }
.graph { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 12px 8px; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr));
  background-image: repeating-linear-gradient(0deg, transparent 0 43px, #EEE9FA 43px 45px); }
.gcol { display: grid; grid-template-rows: 1fr auto; min-height: 250px; }
.gstack { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: 0; }
.gstack span { font-size: 36px; line-height: 44px; height: 44px; }
.gstack .new { animation: drop .35s; }
.glbl { border-top: 4px solid var(--ink-2); padding-top: 6px; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 28px; }
.glbl small { font: 700 22px var(--head); color: var(--purple-d); min-width: 26px; height: 30px; border-radius: 9px; background: #F1ECFF; display: grid; place-items: center; }
.stem .graph { box-shadow: none; padding: 0; width: 100%; } .stem .gcol { min-height: 0; }
.stem .gstack span { font-size: 26px; line-height: 30px; height: 30px; }

/* say-along train */
.chant { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ch-c { min-width: 120px; min-height: 84px; padding: 10px 14px; border-radius: 20px; color: #fff; display: grid; place-items: center; gap: 2px; position: relative;
  background: var(--cc); box-shadow: 0 6px 0 color-mix(in srgb, var(--cc) 70%, #000); opacity: .55; transition: opacity .2s; }
.ch-c b { font: 700 20px var(--head); } .ch-c small { font: 700 13px var(--body); opacity: .9; }
.chant.rk .ch-c { min-width: 72px; min-height: 72px; } .chant.rk .ch-c b { font-size: 34px; }
.ch-c.c0 { --cc: #FF6B6B; } .ch-c.c1 { --cc: #FF9F43; } .ch-c.c2 { --cc: #E0A400; } .ch-c.c3 { --cc: #58C24B; } .ch-c.c4 { --cc: #2EC4B6; } .ch-c.c5 { --cc: #3D8BD9; } .ch-c.c6 { --cc: #6C4BF4; }
.ch-c.hop { opacity: 1; animation: hop .9s ease-in-out infinite; outline: 4px solid #fff; outline-offset: -4px; }
.ch-c.lit { opacity: 1; }
.ch-c.nudge { animation: nudge .4s; }
@keyframes hop { 50% { transform: translateY(-10px) scale(1.06); } }
.rocket { font-size: 70px; text-align: center; transition: transform 1.6s cubic-bezier(.6,0,.9,.4); }
.rocket.go { transform: translateY(-120vh) rotate(-45deg); }
.slots.n4 { grid-template-columns: repeat(4, 1fr); }
.choices.n4 .emo { font-size: 58px; }
@media (max-width: 480px) {
  .subj-card b { font-size: 13px; } .subj-card .sc-ic { width: 46px; height: 46px; font-size: 27px; }
  .slots.n4 { gap: 8px; } .slots.n4 .slot { height: 84px; } .slots.n4 .emo { font-size: 42px; }
  .ch-c { min-width: 96px; min-height: 72px; } .ch-c b { font-size: 17px; }
  .chant.rk .ch-c { min-width: 58px; min-height: 58px; } .chant.rk .ch-c b { font-size: 26px; }
  .gcol { min-height: 210px; } .gstack span { font-size: 30px; line-height: 36px; height: 36px; }
  .as-scene { grid-template-columns: 58px 1fr 58px; } .as-kid img { width: 54px; height: 54px; } .as-o { font-size: 28px; }
  .tk { width: 52px; height: 52px; font-size: 28px; line-height: 52px; } .tk.q { line-height: 44px; }
}
.choices > .cwrap { display: grid; } .choices > .cwrap > .choice { height: 100%; }

/* ---------- grade menu (Grade R · 1 · 2) ---------- */
.grades { display: grid; gap: 12px; padding-top: 14px; }
.grades h1 { font: 700 30px/1.15 var(--head); margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grades .hint { margin: 0; color: var(--ink-2); font-weight: 700; }
.grade-list { display: grid; gap: 16px; margin-top: 6px; }
@media (min-width: 820px) { .grade-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grade-list { grid-template-columns: repeat(4, 1fr); } }
.gc-wrap { position: relative; display: grid; }
.gc-wrap > .speak.card { position: absolute; top: 10px; right: 10px; }
.grade-card { --gc: var(--purple); position: relative; width: 100%; background: #fff; border-radius: var(--r); border: 4px solid transparent; overflow: hidden; text-align: left;
  display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; padding: 12px; box-shadow: 0 7px 0 #E2DCF2, var(--shadow); transition: transform .08s; }
@media (min-width: 820px) { .grade-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 16px 12px 18px; } }
.grade-card:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 #E2DCF2; }
.grade-card.on { border-color: var(--gc); box-shadow: 0 7px 0 color-mix(in srgb, var(--gc) 70%, #000), var(--shadow); }
.gc-num { position: absolute; top: 10px; left: 10px; width: 42px; height: 42px; border-radius: 14px; background: var(--gc); color: #fff; display: grid; place-items: center; font: 700 24px var(--head); z-index: 1; }
.gc-art { width: 110px; height: 96px; border-radius: 18px; background: color-mix(in srgb, var(--gc) 12%, #fff); overflow: hidden; display: grid; place-items: center; }
.gc-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
@media (min-width: 820px) { .gc-art { width: 100%; height: 170px; } }
.gc-lock svg { width: 40px; height: 40px; fill: color-mix(in srgb, var(--gc) 60%, #fff); }
.gc-txt { display: grid; gap: 4px; padding-right: 40px; } @media (min-width: 820px) { .gc-txt { padding: 0; justify-items: center; } }
.gc-txt b { font: 700 28px/1 var(--head); color: var(--ink); }
.gc-txt small { font: 700 15px var(--body); color: var(--ink-2); }
.gc-stars { display: inline-flex; align-items: center; gap: 5px; font: 700 16px var(--head); color: var(--ink); }
.gc-stars svg { width: 20px; height: 20px; fill: var(--yellow); }
.gc-soon { display: inline-block; width: max-content; background: #EEF0F4; color: var(--ink-2); font: 700 14px var(--head); padding: 4px 12px; border-radius: 99px; }
.grade-card.soon { opacity: .75; filter: grayscale(.4); }
.grade-chip { font: 700 13px var(--body); color: var(--purple-d); background: #F1ECFF; padding: 3px 10px; border-radius: 99px; margin-top: 3px; }

/* ---------- Grade 2 cards and stems ---------- */
.emo.sm { font-size: 40px; }
.wtxt { font: 700 22px/1.2 var(--head); color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.choices.stack { grid-template-columns: 1fr !important; max-width: 560px; margin: 0 auto; width: 100%; gap: 12px; }
.choices.stack .choice { min-height: 76px; grid-auto-flow: column; justify-content: start; gap: 14px; padding: 12px 18px; text-align: left; }
.choices.stack .choice .wtxt { text-align: left; font-size: 21px; }
.choices.stack .cwrap > .speak.card { top: 50%; transform: translateY(-50%); }
.pmark { font: 700 76px/1 var(--head); color: var(--purple-d); }
.numeral.long { font-size: 40px; }
.stem.bigw { align-items: center; gap: 14px; } .stem.bigw b { font: 700 48px var(--head); color: var(--purple-d); letter-spacing: 1px; }
.stem.bigw u, .stem.sentw u { text-decoration: none; display: inline-grid; place-items: center; min-width: 56px; height: 56px; border: 4px dashed var(--purple); border-radius: 14px; color: var(--purple); margin: 0 3px; font-size: 32px; vertical-align: middle; }
.stem.sentw { align-items: center; } .stem.sentw b { font: 700 30px/1.25 var(--head); }
.stem.eqw, .eqw { align-items: center; gap: 12px; } .eqw b { font: 700 46px var(--head); color: var(--ink); letter-spacing: 1px; }
.eqw.sm { display: flex; justify-content: center; margin-top: -4px; } .eqw.sm b { font-size: 32px; }
.stem.tensw svg.tens { height: 130px; width: auto; max-width: 100%; }
.tensv svg.tens { height: 104px; width: auto; max-width: 100%; }
.stem.digi b { font: 700 64px/1 var(--head); background: #2B2250; color: #7CFFB2; padding: 10px 22px; border-radius: 16px; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.clockv svg, .fracv svg, .symv svg { width: 116px; height: 116px; }
.lightv svg { width: 54px; height: 108px; }
.roadv svg { width: 140px; height: 94px; border-radius: 12px; }
.flagv svg { width: 132px; height: 88px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.stem.grpw { gap: 12px; } .grp { display: flex; flex-wrap: wrap; justify-content: center; max-width: 120px; gap: 2px; padding: 8px 10px; border: 3px dashed #CFC6EA; border-radius: 999px; font-size: 26px; line-height: 1.1; }
.stem.coinw { align-items: center; gap: 12px; }
.coin { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font: 700 20px var(--head); color: #3B3420; box-shadow: inset 0 0 0 5px rgba(0,0,0,.08), 0 3px 6px rgba(0,0,0,.18); }
.coin.c1, .coin.c2 { background: radial-gradient(circle at 35% 30%, #F4F6F8, #B9C0C8); } .coin.c2 { width: 82px; height: 82px; }
.coin.c5 { width: 88px; height: 88px; background: radial-gradient(circle at 50% 50%, #D9DDE2 0 46%, #E7C25A 47%); }
.coin.cc { background: radial-gradient(circle at 35% 30%, #F3D27A, #B8892E); font-size: 18px; } .coin.c5c { width: 56px; height: 56px; background: radial-gradient(circle at 35% 30%, #E9A27A, #A85E36); } .coin.c10c { width: 58px; height: 58px; } .coin.c20c { width: 66px; height: 66px; } .coin.c50c { width: 72px; height: 72px; }
.note { width: 132px; height: 70px; border-radius: 10px; display: grid; place-items: center; font: 700 26px var(--head); color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,.18); }
.note.n10 { background: linear-gradient(135deg, #3E9A5A, #2E7A45); } .note.n20 { background: linear-gradient(135deg, #B0703C, #8A5226); }
.note.n50 { background: linear-gradient(135deg, #C8423A, #9A2A24); } .note.n100 { background: linear-gradient(135deg, #6A55B8, #4A3A92); } .note.n200 { background: linear-gradient(135deg, #E08A2E, #B8661A); }
.stem.measw svg { width: min(100%, calc(var(--w) * 1.6px)); height: auto; }
.stem.sharew { flex-direction: column; align-items: center; } .pile2 { display: flex; flex-wrap: wrap; justify-content: center; font-size: 30px; gap: 2px; }
.kids2 { display: flex; gap: 10px; } .kids2 img { width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
/* read */
.play.read .art { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); } .play.read .art img { width: 100%; aspect-ratio: 4/3; object-fit: cover; max-height: 46vh; }
.read-card { background: #fff; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .rc-head h3 { margin: 0; font: 700 26px var(--head); color: var(--purple-d); }
.rl { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font: 700 22px/1.35 var(--body); }
.rl > .speak.card { position: static; transform: none; }
.rl .w { cursor: pointer; border-radius: 6px; padding: 0 2px; } .rl .w.lit { background: var(--yellow); }
@media (min-width: 820px) { .play.read { grid-template-columns: 1fr 1fr; align-items: start; } .play.read .center { grid-column: 1 / -1; } }
/* build */
.build-pic { display: flex; justify-content: center; align-items: center; gap: 14px; } .build-pic .emo { font-size: 84px; }
.bslots { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.bslot { min-width: 70px; height: 74px; padding: 0 10px; border-radius: 18px; border: 4px dashed #CFC6EA; background: rgba(255,255,255,.6); display: grid; place-items: center; font: 700 34px var(--head); color: var(--purple-d); }
.bslots.words .bslot { min-width: 64px; height: 60px; font-size: 24px; }
.bslot.filled { border-style: solid; border-color: var(--green); background: #fff; animation: pop .35s; }
.bslots.done .bslot { background: #EFFBEA; }
.btiles { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btile { min-width: 76px; height: 76px; padding: 0 16px; border-radius: 20px; background: #fff; font: 700 34px var(--head); color: var(--ink); box-shadow: 0 6px 0 #E2DCF2, var(--shadow); }
.btiles.words .btile { height: 62px; font-size: 24px; min-width: 64px; }
.btile:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #E2DCF2; }
.btile.used { opacity: .25; } .btile.wrong { animation: shake .45s; box-shadow: 0 6px 0 var(--coral); }
/* order with sentences */
.ord-txt .slots { grid-template-columns: 1fr !important; gap: 10px; } .ord-txt .slot { height: 62px; justify-content: start; grid-auto-flow: column; padding: 0 16px; gap: 12px; }
.ord-txt .slot b { font-size: 26px; } .ord-txt .slot .wtxt { font-size: 20px; }
.choices.otxt { grid-template-columns: 1fr !important; max-width: 560px; margin: 0 auto; width: 100%; gap: 10px; } .choices.otxt .choice { min-height: 64px; }
.chant.days .ch-c { min-width: 128px; }
@media (max-width: 520px) {
  .stem.bigw b { font-size: 38px; } .eqw b { font-size: 36px; } .stem.digi b { font-size: 50px; } .stem.sentw b { font-size: 24px; }
  .clockv svg, .fracv svg, .symv svg { width: 92px; height: 92px; } .roadv svg { width: 96px; height: 64px; } .flagv svg { width: 92px; height: 62px; }
  .tensv svg.tens { height: 80px; } .stem.tensw svg.tens { height: 112px; }
  .btile { min-width: 64px; height: 66px; font-size: 28px; } .bslot { min-width: 58px; height: 64px; font-size: 28px; }
  .btiles.words .btile, .bslots.words .bslot { font-size: 20px; height: 54px; min-width: 52px; padding: 0 10px; }
  .rl { font-size: 19px; grid-template-columns: 40px 1fr; } .wtxt { font-size: 18px; } .choices.stack .choice .wtxt { font-size: 19px; }
  .coin { width: 60px; height: 60px; font-size: 17px; } .coin.c2 { width: 66px; height: 66px; } .coin.c5 { width: 72px; height: 72px; } .note { width: 100px; height: 56px; font-size: 22px; }
  .grp { font-size: 22px; max-width: 96px; }
}
.choice .letter.l3 { font-size: 50px; } .choice .letter.l4 { font-size: 40px; } .numeral.mid { font-size: 50px; }
@media (max-width: 520px) { .choice .letter.l3 { font-size: 40px; } .choice .letter.l4 { font-size: 30px; } .numeral.mid { font-size: 38px; } .numeral.long { font-size: 30px; } }
.choice { min-width: 0; overflow: hidden; }
.choice .word { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.choice .word.lw { font-size: 12.5px; letter-spacing: -.3px; } @media (min-width: 720px) { .choice .word.lw { font-size: 16px; } }
.rl span { text-align: left; } .rl { text-align: left; }
/* offline badge + parental gate */
.offl { margin: 4px 0 0; text-align: center; font: 700 13px var(--body); color: var(--ink-2); }
.offl.ok { color: var(--green-d); }
.gate { position: fixed; inset: 0; z-index: 50; background: rgba(43,34,80,.55); display: grid; place-items: center; padding: 16px; }
.gate-card { background: #fff; border-radius: var(--r); padding: 22px 20px; width: min(100%, 380px); display: grid; gap: 10px; text-align: center; box-shadow: var(--shadow); }
.gate-card h2 { margin: 0; font: 700 24px var(--head); } .gate-card p { margin: 0; color: var(--ink-2); font-weight: 700; }
.gate-q { font: 700 40px var(--head); color: var(--purple-d); }
#gate-in { font: 700 32px var(--head); text-align: center; padding: 10px; border-radius: 16px; border: 3px solid #CFC6EA; width: 100%; }
#gate-in.wrong { animation: shake .45s; border-color: var(--coral); }
.gate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .gate-row .chunky { padding: 0 10px; font-size: 20px; }
/* child picker (shared school devices) */
.kids-pick { grid-template-columns: 1fr !important; max-width: 720px; margin: 0 auto; }
.w-card.wide { width: 100%; }
.kid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 6px 0 4px; }
.kid-card { --kc: var(--purple); background: #fff; border-radius: 22px; padding: 14px 8px 12px; display: grid; justify-items: center; gap: 6px; box-shadow: 0 6px 0 #E2DCF2, var(--shadow); }
.kid-card:active { transform: translateY(4px); box-shadow: 0 2px 0 #E2DCF2; }
.kid-av { width: 64px; height: 64px; border-radius: 50%; background: var(--kc); color: #fff; display: grid; place-items: center; font: 700 32px var(--head); }
.kid-card b { font: 700 18px/1.1 var(--head); color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
/* teacher dashboard */
.teacher .muted, .muted { color: var(--ink-2); font-size: 14px; }
.tfilters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.tfilters label { display: grid; gap: 3px; font: 700 13px var(--body); color: var(--ink-2); }
.tfilters select { font: 700 15px var(--body); padding: 8px 10px; border-radius: 12px; border: 2px solid #E2DCF2; background: #fff; color: var(--ink); min-width: 140px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kpis div { background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); }
.kpis b { display: block; font: 700 28px/1.1 var(--head); color: var(--purple-d); font-variant-numeric: tabular-nums; } .kpis small { font: 700 13px var(--body); color: var(--ink-2); }
.tcard { background: #fff; border-radius: 20px; padding: 14px 16px; margin-top: 14px; box-shadow: var(--shadow); overflow-x: auto; }
.tcard h2 { margin: 2px 0 8px !important; } .tcard h3 { font: 700 17px var(--head); margin: 14px 0 6px; }
.tt { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tt th { text-align: left; font: 700 12px var(--body); color: var(--ink-2); text-transform: uppercase; letter-spacing: .3px; padding: 6px 8px; border-bottom: 2px solid #EEE9F8; white-space: nowrap; }
.tt td { padding: 8px; border-bottom: 1px solid #F2EEF9; vertical-align: top; } .tt td small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.lnk { color: var(--purple-d); font-weight: 800; text-decoration: underline; padding: 0; }
.hbar { display: grid; grid-template-columns: 150px 1fr; gap: 4px 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.hbar span { font-weight: 800; } .hbar i { display: block; height: 14px; border-radius: 99px; background: var(--sc, var(--purple)); min-width: 6px; }
.hbar em { grid-column: 2; font-style: normal; color: var(--ink-2); font-size: 13px; }
.tbtns { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; } .tbtns .chunky { font-size: 17px; min-height: 52px; }
.chk { display: flex; gap: 8px; align-items: center; font-weight: 700; } .chk input { width: 20px; height: 20px; }
@media (max-width: 520px) { .hbar { grid-template-columns: 1fr; } .hbar em { grid-column: 1; } }
.kid-list { width: 100%; }
/* Grade 2: buy & change */
.stem.buyw { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.stem.buyw .coinw { display: flex; gap: 8px; align-items: center; }
.buyar { font-size: 34px; color: var(--purple); }
.ptag { display: flex; align-items: center; gap: 8px; background: #FFF4D6; border: 3px solid #F2C14E; border-radius: 16px; padding: 6px 14px; }
.ptag .emo { font-size: 52px; } .ptag b { font: 700 30px var(--head); color: #7A4A00; }
.stem.shapew svg { width: 130px; height: 130px; }

.about .tcard p { margin: 0 0 10px; line-height: 1.5; }
.plist { margin: 0 0 8px; padding-left: 20px; line-height: 1.5; } .plist li { margin-bottom: 6px; }
.disc { background: #FFF6E0; border-radius: 12px; padding: 10px 12px; }
.plink { text-align: center; margin: 8px 0 0; } .plink button { color: var(--ink-2); text-decoration: underline; font-size: 13px; padding: 6px; }
.rvin { margin: 10px 0 0; } .rvin button { font-size: 16px; width: 100%; }
.chk.consent { align-items: flex-start; font: 600 13px/1.4 var(--body); color: var(--ink-2); text-align: left; margin: 4px 0 10px; }
.chk.consent input { flex: 0 0 22px; margin-top: 1px; } .chk.consent.need { color: var(--coral); animation: shake .45s; }

/* look back at earlier questions (read-only, no skipping ahead) */
.bar .peek-b { width: 46px; height: 46px; } .bar .peek-b svg { width: 22px; height: 22px; }
.peek { position: fixed; inset: 0; z-index: 60; background: rgba(43, 34, 80, .55); display: flex; flex-direction: column; align-items: center; padding: 14px 12px calc(12px + env(safe-area-inset-bottom)); gap: 12px; }
.peek-view { width: 100%; max-width: 760px; flex: 1; overflow: auto; background: var(--cream); border-radius: var(--r); padding: 16px; pointer-events: none; }
.peek-view .speak, .peek-view .kbd { display: none; }
.peek-nav { display: flex; align-items: center; gap: 18px; background: #fff; padding: 8px 12px; border-radius: 99px; box-shadow: var(--shadow); }
.pk-n { font: 700 22px var(--head); color: var(--ink); min-width: 70px; text-align: center; }
.bar-title .kg.pr { background: var(--coral); } .bar-title .kg.pr svg { width: 14px; height: 14px; vertical-align: -2px; }
/* practise again */
.practice-in { justify-items: center; text-align: center; padding-top: 24px; gap: 18px; }
.practice-in .fin-lemo { width: 120px; height: 120px; border-radius: 50%; margin: 0; position: static; transform: none; }
.pr-count { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 99px; padding: 8px 18px; font: 700 30px var(--head); color: var(--coral-d); box-shadow: var(--shadow); }
.pr-count svg { width: 30px; height: 30px; }
/* typing: letter boxes and keyboard */
.tboxes { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 58px)); justify-content: center; gap: 8px; }
.tbox { width: 100%; height: 68px; border-radius: 16px; border: 4px solid #CFC6EA; background: #fff; display: grid; place-items: center; font: 700 36px var(--head); color: var(--purple-d); }
.tboxes.long { gap: 6px; } .tboxes.long .tbox { height: 60px; font-size: 30px; border-width: 3px; }
.tbox.given { background: #F1EEFB; border-color: #F1EEFB; color: var(--ink-2); }
.tbox.on { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(108, 75, 244, .18); animation: pop .5s; }
.tbox.ok { border-color: var(--green); background: #EFFBEA; color: var(--green-d); }
.tbox.bad { border-color: var(--coral); background: #FFECEC; color: var(--coral-d); animation: shake .4s; }
.tbox.help { border-color: var(--yellow-d); background: #FFF6D6; }
.kbd { display: grid; gap: 8px; justify-items: center; background: #fff; border-radius: var(--r); padding: 12px 8px; box-shadow: var(--shadow); }
.krow { display: flex; gap: 6px; }
.key { width: 46px; height: 52px; border-radius: 14px; background: #F4F1FE; box-shadow: 0 4px 0 #DDD6F3; font: 700 26px var(--head); color: var(--ink); }
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 #DDD6F3; }
.key.del { width: 120px; background: #FFE9E3; box-shadow: 0 4px 0 #F6C7BA; font-size: 24px; }
@media (max-width: 380px) { .key { width: 40px; height: 48px; font-size: 23px; } .krow { gap: 5px; } .tbox { height: 62px; } .tboxes.long .tbox { height: 54px; font-size: 26px; } }
/* stories: words that can be heard have a dotted line */
.w.hw { text-decoration: underline dotted var(--purple); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.w.say { background: var(--yellow); }

/* ---------- vowel hand ---------- */
.hand-play { gap: 10px; }
.hand-wrap { width: min(290px, 74vw); margin: 0 auto; }
.hand-wrap.sm { width: min(230px, 58vw); }
.hand { width: 100%; height: auto; display: block; overflow: visible; touch-action: manipulation; }
.hand .fg { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.hand .fi { transform-box: fill-box; transform-origin: 50% 100%; transition: filter .2s; }
.hand .bdg { fill: #fff; stroke: var(--vc); stroke-width: 4; transition: fill .2s; }
.hand .bt { font: 800 25px var(--head); fill: var(--vc); pointer-events: none; }
.hand .fg.lit .bdg { fill: var(--vc); stroke: #fff; }
.hand .fg.lit .bt { fill: #fff; }
.hand .fg.lit .fi { filter: drop-shadow(0 0 8px var(--vc)); }
.hand .fg:focus-visible .bdg { stroke: #222; stroke-width: 5; }
.hand .fg.hop .fi { animation: fhop .9s ease-in-out infinite; }
.hand .fg.hop .bdg { stroke-width: 6; }
.hand .fg.wig .fi { animation: fwig .5s ease-in-out; }
.hand .fg.shk .fi { animation: fshk .4s; }
@keyframes fhop { 50% { transform: translateY(-12px); } }
@keyframes fwig { 30% { transform: scaleY(.86) rotate(-5deg); } 65% { transform: scaleY(1.04) rotate(4deg); } }
@keyframes fshk { 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
.hd-info { min-height: 92px; display: grid; place-items: center; }
.hdi-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; background: #fff; border-radius: 20px; padding: 8px 14px; box-shadow: 0 4px 0 rgba(0,0,0,.08); border: 3px solid var(--vc); animation: zoom .3s; max-width: 100%; }
.hdi-card .hv { font: 800 44px var(--head); color: var(--vc); line-height: 1; }
.hdi-card .emo { font-size: 38px; }
.hdi-card .hw { font: 800 26px var(--head); color: #2B2B3A; }
.hdi-card small { flex-basis: 100%; text-align: center; font: 700 13px var(--body); color: #666; }
.hdi-card.sm { padding: 6px 14px; }
.hd-all b { font: 800 34px var(--head); }
.hs-line { font: 800 19px var(--head); text-align: center; margin: 0 8px; min-height: 2.6em; color: #2B2B3A; }
.hd-ask, .hd-word { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; border-radius: 22px; padding: 8px 16px; margin: 0 auto; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.hd-ask .emo, .hd-word .emo { font-size: 46px; }
.hd-ask b { font: 800 30px var(--head); color: var(--vc); }
.hwd { font: 800 40px var(--head); letter-spacing: 2px; color: #2B2B3A; }
.hwd i { font-style: normal; display: inline-block; }
.hwd i.vw { color: #B9B9C6; border-bottom: 4px dashed #C9C9D6; }
.hwd i.vw.next { color: #2B2B3A; border-bottom-color: #6C4BF4; animation: hop .9s ease-in-out infinite; }
.hwd i.vw.got { color: var(--vc); border-bottom: 4px solid var(--vc); animation: pop .4s; }
.slide-zone { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.fist { width: 74px; height: 74px; border-radius: 26px 26px 30px 30px; background: #EDE7FF; border: 3px solid #6C4BF4; display: grid; place-items: center; align-self: center; z-index: 2;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.15); transition: transform .8s cubic-bezier(.5,0,.3,1.3); }
.fist b { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--vc); display: grid; place-items: center; font: 800 28px var(--head); border: 4px solid var(--vc); }
.fist.go { transform: translate(var(--tx), var(--ty)) scale(.7); }
.sl-eq { font: 800 34px var(--head); text-align: center; min-height: 1.3em; color: #2B2B3A; }
@media (max-height: 760px) { .hand-wrap { width: min(240px, 64vw); } .hand-wrap.sm { width: min(200px, 52vw); } .hd-info { min-height: 80px; } .hwd { font-size: 34px; } }
.hand-play #sopts .wtxt { font: 800 34px var(--head); }
.fist.go { transform: translate(var(--tx), var(--ty)) scale(.62); }
.hd-word + .hand-wrap, .hd-ask + .hand-wrap { width: min(258px, 66vw); }
@media (max-height: 760px) { .hd-word + .hand-wrap, .hd-ask + .hand-wrap { width: min(220px, 58vw); } }
.hd-word .speak.card, .hd-ask .speak.card, .hdi-card .speak.card { position: static; transform: none; margin: 0; flex: none; }

/* language of learning picker */
.lang-pick { display: inline-flex; gap: 4px; background: #F1ECFF; padding: 4px; border-radius: 99px; margin: 10px auto 2px; }
.lang-b { font: 700 15px var(--body); color: var(--purple-d); padding: 7px 16px; border-radius: 99px; background: transparent; border: 0; cursor: pointer; min-height: 38px; }
.lang-b.on { background: var(--purple, #6C4BF4); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.lang-row { display: flex; justify-content: center; margin: 0 0 4px; }
.w-card .lang-pick { display: flex; width: max-content; }
/* English punctuation names are long ("exclamation mark"): smaller text, never split inside a word */
html[lang="en"] .pmark + .word { font-size: 12px; line-height: 1.15; word-break: normal; overflow-wrap: normal; hyphens: manual; }

/* clapping with thinking */
.blocks.hide { display: none; }
.clap-tray { min-height: 52px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; font-size: 34px; }
.clap-tray i { font-style: normal; animation: pop .25s; }
.clap-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.clap-row .clap-btn { margin: 0; width: 130px; height: 130px; font-size: 64px; }
.clap-row .chunky.sq:disabled { opacity: .35; }
.choice.cnt .dots { max-width: 120px; }
.clap-b .slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.clap-b .slot { height: 64px; min-width: 64px; padding: 0 10px; border-width: 3px; }
.clap-b .slot b { font-size: 22px; } .clap-b .slot .wtxt { font: 700 22px var(--head); color: var(--purple-d, #4B32C3); }
.clap-b .choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.clap-b .cwrap { flex: 0 0 auto; }
.clap-b .choice { min-width: 76px; height: 66px; padding: 0 14px; }
.clap-b .choice .wtxt { font: 700 22px var(--head); }
.clap-b .choice.used { opacity: .25; }
/* Grade 1 stems: quick look, objects, ten-frames, number house */
.stem.flashw { flex-direction: column; align-items: center; }
.flash { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 60px; max-width: 320px; }
.flash span { font-size: 40px; display: inline-block; transform: rotate(var(--r)); animation: flashA 2s forwards; }
.flash.go span { animation: flashB 2s forwards; }
@keyframes flashA { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flashB { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.chunky.sm { padding: 6px 14px; font-size: 22px; }
.stem.framew { gap: 14px; }
.tframe { display: grid; grid-template-columns: repeat(5, 30px); gap: 4px; padding: 6px; border: 3px solid #2EC4B6; border-radius: 10px; background: #F4FFFD; }
.tframe i { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed #B9DCD8; box-sizing: border-box; }
.tframe i.on { background: #FF6B6B; border: 0; }
.stem.housew { flex-direction: column; align-items: center; gap: 0; }
.nh-roof { width: 0; height: 0; border-left: 90px solid transparent; border-right: 90px solid transparent; border-bottom: 70px solid #E76F51; position: relative; }
.nh-roof b { position: absolute; left: -20px; top: 26px; width: 40px; text-align: center; color: #fff; font-size: 34px; }
.nh-body { display: flex; width: 180px; border: 4px solid #264653; border-top: 0; background: #FFF8E7; }
.nh-body span { flex: 1; text-align: center; font-size: 40px; font-weight: 800; padding: 10px 0; }
.nh-body span + span { border-left: 4px solid #264653; }
.nh-body .q { color: #E76F51; }
/* make-your-own pattern */
.mp-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.mp-slot { width: 46px; height: 46px; border-radius: 12px; border: 3px dashed #CFC6F5; display: grid; place-items: center; }
.mp-slot.core { border-color: #FF8A3D; background: #FFF4EA; }
.mp-slot.filled { border-style: solid; } .mp-slot .emo { font-size: 30px; }
/* sudoku */
.sudoku { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: min(340px, 92vw); margin: 0 auto; background: #2B2250; padding: 6px; border-radius: 16px; }
.sd-c { aspect-ratio: 1; border: 0; border-radius: 10px; background: #fff; display: grid; place-items: center; font: inherit; padding: 0; }
.sd-c .emo { font-size: 34px; } .sd-n { font-size: 34px; color: #2B2250; }
.sd-c.vr { margin-right: 5px; } .sd-c.hr { margin-bottom: 5px; }
.sd-c.given { background: #EFEAFE; } .sd-c.hole { background: #fff; box-shadow: inset 0 0 0 3px #E2DCF9; }
.sd-c.sel { box-shadow: inset 0 0 0 4px #FF8A3D; } .sd-c.ok { background: #E8FAF1; }
.sd-c.bad { animation: shake .4s; }
.sd-pal { margin-top: 12px; } .sd-pal .choice .emo, .sd-pal .sd-n { font-size: 40px; }
/* arrow maze */
.maze { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); width: min(330px, 88vw); margin: 0 auto; background: #DFF5D8; border-radius: 16px; padding: 4px; gap: 3px; }
.mz-c { aspect-ratio: 1; border-radius: 8px; background: #F6FFF2; display: grid; place-items: center; font-size: calc(min(330px, 88vw) / var(--n) * .55); }
.mz-c.wall { background: #BFE3B4; }
.mz-who { position: absolute; left: 4px; top: 4px; width: calc((100% - 8px) / var(--n)); aspect-ratio: 1; display: grid; place-items: center; font-size: calc(min(330px, 88vw) / var(--n) * .6); transition: transform .3s; pointer-events: none; }
.maze.bump { animation: shake .4s; }
.mz-prog { display: flex; flex-wrap: wrap; gap: 4px; min-height: 40px; justify-content: center; background: #fff; border-radius: 14px; padding: 6px; margin: 10px auto 0; max-width: 360px; box-shadow: var(--shadow); }
.mz-prog span { font-size: 24px; padding: 2px; border-radius: 8px; } .mz-prog span.on { background: #FFE7A3; } .mz-prog span.bad { background: #FFC9C9; } .mz-prog i { color: #aaa; }
.mz-pad { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; }
.mz-pad .mz-a { width: 64px; height: 64px; padding: 0; } .mz-pad .mz-a .emo { font-size: 34px; }
/* picture crossword */
.xw { display: grid; grid-template-columns: repeat(var(--cols), 38px); grid-template-rows: repeat(var(--rows), 38px); gap: 3px; justify-content: center; margin: 6px auto; }
.xw-c { background: #fff; border: 2px solid #CFC6F5; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #2B2250; text-transform: lowercase; }
.xw-c.sel { border-color: #FF8A3D; background: #FFF4EA; } .xw-c.ok { background: #E8FAF1; border-color: #3CC47C; }
.xw-clues { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.xw-clue { width: 70px; min-height: 64px; padding: 4px; } .xw-clue .emo { font-size: 32px; } .xw-clue.sel { box-shadow: 0 0 0 4px #FF8A3D; }
.xw-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.xw-t { min-width: 48px; height: 52px; font-size: 24px; } .xw-t.used { opacity: .3; }
/* race */
.rc-big { font-size: 56px; font-weight: 800; color: #2B2250; text-align: center; margin: 16px 0; }
.rc-best { font-size: 24px; font-weight: 800; text-align: center; color: #B07D00; margin-bottom: 12px; }
.rc-time { flex: 1; height: 12px; background: #EEE; border-radius: 8px; overflow: hidden; } .rc-time i { display: block; height: 100%; width: 100%; background: #E0A100; transition: width .25s linear; }
.rc-score, .rc-clock { font-weight: 800; font-size: 20px; margin-left: 10px; }
/* hidden box */
.stem.boxw { flex-direction: column; align-items: center; }
.hbox { position: relative; width: 240px; height: 170px; }
.hb-box { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 110px; line-height: 1; z-index: 2; }
.hb-in { position: absolute; left: calc(50% - 20px + var(--x)); top: 0; font-size: 38px; opacity: 0; animation: hbIn 1s var(--d) forwards; z-index: 1; }
.hb-out { position: absolute; left: calc(50% - 20px); bottom: 30px; font-size: 34px; opacity: 0; animation: hbOut 1s var(--d) forwards; z-index: 3; }
.hbox.go .hb-in { animation-name: hbIn2; } .hbox.go .hb-out { animation-name: hbOut2; }
@keyframes hbIn { 0% { opacity: 1; transform: translateY(-10px); } 70% { opacity: 1; transform: translateY(95px); } 100% { opacity: 0; transform: translateY(105px); } }
@keyframes hbIn2 { 0% { opacity: 1; transform: translateY(-10px); } 70% { opacity: 1; transform: translateY(95px); } 100% { opacity: 0; transform: translateY(105px); } }
@keyframes hbOut { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 1; transform: translate(var(--x), -90px); } }
@keyframes hbOut2 { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 1; transform: translate(var(--x), -90px); } }
/* seesaw */
.stem.seesaw { flex-direction: column; align-items: center; padding-top: 96px; gap: 0; }
.ss-beam { width: 280px; height: 12px; background: #8D5A2B; border-radius: 6px; position: relative; transform: rotate(var(--t)); display: flex; justify-content: space-between; }
.ss-pan { position: absolute; bottom: 10px; width: 112px; display: flex; flex-wrap: wrap-reverse; justify-content: center; font-size: 30px; line-height: 1; }
.ss-pan.l { left: 0; } .ss-pan.r { right: 0; }
.ss-pan i { font-style: normal; display: block; }
.ss-pan i:only-child { font-size: 40px; }
.choices.seqpick { display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px; }
.choices.seqpick .cwrap { flex: 1 1 0; min-width: 0; max-width: 58px; }
.choices.seqpick .choice { width: 100%; min-height: 0; height: auto; aspect-ratio: 1; padding: 0; font-size: clamp(18px, 6.5vw, 30px); }
.ss-base { width: 0; height: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 44px solid #E76F51; }
/* two plates for fair share */
.stem.plates2 { gap: 20px; } .pl2 { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pl2 img { width: 56px; height: 56px; border-radius: 50%; } .pl2-p { background: #FFF8E7; border: 3px solid #F1D9A7; border-radius: 50%; min-width: 120px; min-height: 70px; padding: 10px; font-size: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 150px; }
/* magic square / grids */
.stem.gridw { flex-direction: column; align-items: center; }
.mgrid { display: grid; grid-template-columns: repeat(var(--c), 58px); gap: 5px; }
.mgrid span { height: 58px; display: grid; place-items: center; background: #EFEAFE; border-radius: 10px; font-size: 28px; font-weight: 800; color: #2B2250; }
.mgrid span.q { background: #FFF4EA; color: #E76F51; border: 3px dashed #FF8A3D; }
.mg-note { margin: 6px 0 0; font-weight: 700; color: #6C4BF4; }
/* bar model */
.stem.barw { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin: 0 auto; gap: 4px; }
.bm-whole { background: #6C4BF4; color: #fff; text-align: center; border-radius: 10px; padding: 8px; font-size: 26px; font-weight: 800; }
.bm-parts { display: flex; gap: 4px; } .bm-parts span { background: #FFD166; text-align: center; border-radius: 10px; padding: 8px 0; font-size: 26px; font-weight: 800; color: #2B2250; }
.bm-parts span.q { background: #FFF4EA; border: 3px dashed #FF8A3D; color: #E76F51; }
/* shadows and a long row of choices (find the mistake) */
.emo.shadow { filter: brightness(0); opacity: .85; }
.choices.seqpick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.choices.seqpick .cwrap { width: 64px; } .choices.seqpick .choice { min-height: 64px; padding: 4px; } .choices.seqpick .emo { font-size: 34px; }
/* Challenge Corner banner */
.chal-banner { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; margin: 10px auto 0; padding: 10px 16px; border: 0; border-radius: 18px; font: inherit; color: #3B2A00;
  background: linear-gradient(135deg, #FFE27A, #F5B700); box-shadow: 0 5px 0 #C99600; cursor: pointer; }
.chal-banner .cb-ic { font-size: 32px; } .chal-banner .cb-t { display: flex; flex-direction: column; text-align: left; flex: 1; } .chal-banner b { font-size: 20px; } .chal-banner small { font-weight: 700; }
.chal-banner.on { outline: 4px solid #6C4BF4; } .chal-banner.locked { filter: grayscale(.6); opacity: .85; }
.chal-banner .cb-ic svg { width: 28px; height: 28px; } .chal-banner small svg { width: 14px; height: 14px; vertical-align: -2px; }
.cb-bar { width: 80px; height: 10px; background: rgba(0,0,0,.15); border-radius: 6px; overflow: hidden; } .cb-bar i { display: block; height: 100%; background: #6C4BF4; }
.chal-banner.wrong { animation: shake .4s; }
.choices.seqpick .choice .emo { font-size: min(5.4vw, 28px); line-height: 1; }
.choices.seqpick .choice { padding: 0 !important; }
.choices.seqpick .choice { overflow: hidden; border-radius: 14px; }

/* Grade 1 ordinal race row */
.stem.ordrow { gap: 6px; }
.ordk { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 58px; }
.ordk b { font: 700 18px var(--head); color: var(--purple); }
.ordk img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #f3eefe; }
.ordk small { font-size: 12px; font-weight: 700; }
.flagv.mini svg { width: 54px; height: 36px; }
.ic-flag svg { width: 1.5em; height: 1em; vertical-align: middle; border-radius: 3px; }

/* bowls: fruit sit in neat rows of up to 5 and never overlap, so they can be counted */
.bowl { width: 100%; max-width: 150px; box-sizing: border-box; height: auto; min-height: 70px; align-items: center; padding: 14px 8px 16px; margin-top: 10px; }
.bowl-in { display: grid; grid-template-columns: repeat(var(--c, 5), 1fr); gap: 4px 3px; position: static; top: 0; letter-spacing: 0; word-break: normal; line-height: 1; max-width: none; }
.bowl-in i { font-style: normal; display: block; text-align: center; }
@media (max-width: 380px) { .bowl-in { gap: 3px 1px; } }
.bowl::before { left: 0; right: 0; }
.bowl { padding-left: 4px; padding-right: 4px; }

/* ===== sticker book ===== */
.stk-btn { position: relative; font-size: 24px; }
.stk-btn small { position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--yellow, #FFC93C); color: var(--ink); font: 800 12px/22px var(--body); text-align: center; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.stk-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(43,34,80,.55); padding: 20px; animation: fadeIn .25s ease; }
.stk-card { background: #fff; border-radius: 28px; padding: 26px 22px 20px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 18px 40px -12px rgba(0,0,0,.4); animation: stkIn .5s cubic-bezier(.2,1.4,.4,1); }
.stk-card h2 { margin: 10px 0 4px; font: 800 26px var(--head); color: var(--ink); }
.stk-big { width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #FFF3C4 0 55%, #FFE07A 56% 100%); box-shadow: 0 0 0 8px #fff, 0 0 0 11px #FFC93C; }
.stk-big .emo { font-size: 84px; line-height: 1; }
.stk-big .stk-flag svg { width: 104px; height: auto; }
.stk-n { margin: 0; font: 800 20px var(--head); color: #FF8A3D; }
@keyframes stkIn { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.stk-book { padding: 8px 14px 40px; max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.stk-page { background: #FFFDF6; border-radius: 22px; padding: 16px; box-shadow: inset 0 0 0 3px #F2E6C9, 0 8px 18px -12px rgba(0,0,0,.3); background-image: repeating-linear-gradient(0deg, transparent 0 46px, #F5EBD3 46px 47px); }
.stk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stk { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; }
.stk.on { background: #fff; transform: rotate(var(--r, 0deg)); box-shadow: 0 0 0 4px #fff, 0 6px 12px -6px rgba(0,0,0,.35); }
.stk.on .emo { font-size: clamp(36px, 9vw, 58px); line-height: 1; }
.stk.off { border: 3px dashed #E2D6B4; color: #CDBF98; font: 800 26px var(--head); }
.stk-flag { display: grid; place-items: center; width: 80%; }
.stk-flag svg { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.stk-hint { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: center; font: 700 17px var(--body); color: var(--ink-2); margin: 4px 0 0; }
.stk-hint svg { width: 20px; height: 20px; vertical-align: -3px; }

/* ===== recap node and banners ===== */
.node.rc .n-ic { background: #FFF1E6; }
.node.rc .n-ic .emo { font-size: 48px; }
.node.rc.todo { box-shadow: 0 0 0 5px #FF8A3D, 0 8px 0 #E57427; animation: rcPulse 1.8s ease-in-out infinite; }
@keyframes rcPulse { 50% { transform: translateX(-50%) scale(1.06); } }
.chal-banner.enr { background: linear-gradient(135deg, #6C4BF4, #2EC4B6); color: #fff; }
.chal-banner.enr small { color: rgba(255,255,255,.9); }
.chal-banner.rcdue { background: linear-gradient(135deg, #FF8A3D, #FFC93C); color: var(--ink); }

/* ===== teacher: skills, sync and reading check ===== */
.lvl { display: inline-block; min-width: 44px; padding: 3px 8px; border-radius: 10px; font: 800 13px var(--body); text-align: center; }
.lvl.ok { background: #D7F5E3; color: #146C3A; }
.lvl.mid { background: #FFF0C2; color: #7A5300; }
.lvl.low { background: #FFDCDC; color: #9B1C1C; }
.lvl.few { background: #ECEAF4; color: #5E5785; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.tt.grid th { min-width: 96px; font-size: 12px; vertical-align: bottom; }
.tt.grid th small { display: block; font-weight: 600; color: var(--ink-2); }
.tt.grid td { text-align: center; }
.tt.grid td:first-child { text-align: left; white-space: nowrap; position: sticky; left: 0; background: #fff; }
.filebtn { display: inline-flex; align-items: center; cursor: pointer; }
.fl-text { background: #fff; border-radius: 18px; padding: 18px; margin: 10px 0 14px; font: 700 26px/1.9 var(--body); color: var(--ink); box-shadow: inset 0 0 0 3px #E2DCF2; user-select: none; }
.fl-text.snd { display: flex; flex-wrap: wrap; gap: 10px; font-size: 32px; }
.flw { display: inline-block; padding: 0 6px; border-radius: 8px; cursor: pointer; }
.flw.err { background: #FFDCDC; color: #9B1C1C; text-decoration: line-through; }
.fl-text.pick .flw { outline: 2px dashed #6C4BF4; outline-offset: -2px; margin: 2px; }
.rc-clock { font: 800 20px var(--head); color: var(--ink); padding: 0 8px; }
@media (max-width: 520px) { .stk-grid { gap: 8px; } .fl-text { font-size: 22px; } }

.grp i { font-style: normal; }

/* stop-activity question and peek close */
.stop-row { display: grid; gap: 10px; } .stop-row .chunky { width: 100%; justify-content: center; }
.peek-nav .pk-x { margin-left: 4px; font-size: 22px; }
/* beads on a string (patterns) — each colour has its own shape too */
.bd-play .bd-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 6px 0 14px; }
.bd-str { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px; padding: 8px 6px; max-width: 100%; }
.bgrp::before { content: ''; position: absolute; left: -7px; right: -7px; top: 50%; height: 4px; margin-top: -2px; background: #8D5A2B; border-radius: 2px; z-index: 0; }
.bd-str { gap: 8px 4px; }
.bd-str.model { transform: scale(.82); opacity: .95; }
.bd-str.model::after { content: '👀'; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.bgrp { position: relative; z-index: 1; display: inline-flex; gap: 4px; padding: 6px; border-radius: 16px; border: 3px dashed transparent; }
.g2 .bgrp { border-color: #F2A541; background: rgba(255, 244, 222, .85); }
.g1 .bgrp { border-color: rgba(242, 165, 65, .35); background: rgba(255, 244, 222, .35); }
.bd { position: relative; z-index: 1; display: block; width: 42px; height: 42px; border: 0; padding: 0; font-style: normal; flex: 0 0 auto;
  background: var(--bc) radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75) 0 14%, rgba(255, 255, 255, 0) 32%); box-shadow: inset -4px -5px 0 rgba(0, 0, 0, .18), 0 2px 3px rgba(0, 0, 0, .2); }
.bd-str.big .bd { width: 46px; height: 46px; cursor: pointer; }
.b-khibidu { --bc: #D64545; border-radius: 50%; }
.b-tala_loapi { --bc: #3D8BD9; border-radius: 9px; }
.b-serolwana { --bc: #F2C230; border-radius: 50% 50% 12% 12%; }
.b-botala { --bc: #4E9F3D; border-radius: 50%; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.bd.slot { background: #fff; border: 3px dashed #C9B48A; box-shadow: none; border-radius: 50%; clip-path: none; }
.bd.slot.nx { border-color: #E76F51; animation: bdNx 1s ease-in-out infinite; }
@keyframes bdNx { 50% { transform: scale(1.12); } }
.bd.pop { animation: bdPop .35s ease-out; }
@keyframes bdPop { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
.bd.lit { transform: scale(1.25) translateY(-4px); filter: brightness(1.15) drop-shadow(0 0 8px #FFD166); transition: transform .15s; }
.bd.wrong { animation: shake .4s; }
.bd-tray { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px 8px; background: #FFF4DE; border-radius: 22px; border: 3px solid #F1D9A7; }
.bd-src { width: 70px; height: 70px; border-radius: 20px; border: 3px solid #E9D3A6; background: #fff; display: grid; place-items: center; touch-action: none; cursor: grab; box-shadow: 0 4px 0 #E9D3A6; }
.bd-src .bd { width: 52px; height: 52px; pointer-events: none; }
.bd-src.wrong { animation: shake .4s; }
.bd-ghost { position: fixed; z-index: 999; width: 52px; height: 52px; margin: -26px 0 0 -26px; pointer-events: none; }
.bd-ghost.no { filter: grayscale(.4); }
/* moving scale */
.stem.seesaw .ss-beam { animation: ssTip 1.3s .6s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes ssTip { from { transform: rotate(0deg); } to { transform: rotate(var(--t)); } }
.stem.seesaw.live .ss-beam { animation: none; transition: transform .8s cubic-bezier(.34, 1.56, .64, 1); }
.ss-pan .sc-b, .sc-btns .sc-b { display: inline-block; width: 28px; height: 28px; margin: 1px; border-radius: 6px; background: #F28C28; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18); }
.ss-pan .sc-b.mine { background: #3D8BD9; cursor: pointer; outline: 2px solid #fff; }
.sc-btns { display: flex; justify-content: space-between; width: 300px; max-width: 92%; margin: 16px auto 0; gap: 12px; }
.sc-add { flex: 1; font-size: 26px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sc-btns .sc-b { background: #3D8BD9; }
/* picture choice (avatar) */
.av-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.av-c { border: 4px solid transparent; border-radius: 50%; padding: 0; background: #FBF5E9; aspect-ratio: 1; overflow: hidden; box-shadow: 0 3px 0 #E9D3A6; }
.av-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-c.on { border-color: #58C24B; }
.av-c:active { transform: scale(.95); }
.kid-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.av-btn { border: 0; padding: 0; background: none; position: relative; cursor: pointer; }
.av-btn::after { content: '✎'; position: absolute; right: -4px; bottom: -2px; font-size: 12px; background: #fff; border-radius: 50%; width: 18px; height: 18px; line-height: 18px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.3); }

.byline { text-align: center; margin: 10px 0 0; font-size: 12px; color: var(--ink-2); }

/* ---------- time, calendar and shape games ---------- */
.stem.dtrain { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: transparent; box-shadow: none; }
.dt { font: 700 17px var(--head); color: #fff; padding: 10px 12px; border-radius: 12px; background: var(--purple); position: relative; }
.dt::after { content: ''; position: absolute; right: -7px; top: 50%; width: 8px; height: 4px; background: var(--ink-2); }
.dt:last-child::after { display: none; }
.dt.c0 { background: #FF6B6B; } .dt.c1 { background: #FFB020; } .dt.c2 { background: #2EC4B6; } .dt.c3 { background: #4D96FF; }
.dt.c4 { background: #6C4BF4; } .dt.c5 { background: #E15FA8; } .dt.c6 { background: #3BAF5D; }
.dt.q { background: #fff; color: var(--purple-d); border: 3px dashed var(--purple); min-width: 64px; text-align: center; animation: hop 1.2s infinite; }
.hunt-top { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 8px 14px; margin: 0 auto 10px; width: fit-content; font: 700 22px var(--head); }
.hunt-top .shape svg { width: 46px; height: 46px; display: block; }
.hunt-top .speak.card { position: static; transform: none; margin: 0; flex: none; }
.hunt-n { background: #F1ECFF; color: var(--purple-d); border-radius: 10px; padding: 2px 10px; }
.hunt-wrap, .shb-wrap { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; max-width: 560px; margin: 0 auto; }
.hunt-svg, .shb-svg { width: 100%; height: auto; display: block; border-radius: 14px; }
.hs { cursor: pointer; stroke: #2B2250; stroke-width: 2; transition: opacity .2s; }
.hs.got { stroke: #3BAF5D; stroke-width: 6; animation: drop .35s; }
.hs.nope { animation: shake .4s; }
.sl { fill: #F4F1FF; stroke: #B9AEE8; stroke-width: 3; stroke-dasharray: 8 6; }
.sl.now { stroke: var(--purple); stroke-width: 5; animation: blink 1s infinite; }
.sl.fill { stroke: #2B2250; stroke-width: 2; stroke-dasharray: none; animation: none; }
@keyframes blink { 50% { fill: #E3DBFF; } }
.shb-tiles { margin-top: 12px; }
.pairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto; }
.pcard { aspect-ratio: 1; border: 0; border-radius: 16px; background: var(--purple); color: #fff; font: 700 34px var(--head); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; padding: 4px; }
.pcard .pface { display: none; } .pcard.up { background: #fff; color: var(--ink); }
.pcard.up .pface { display: grid; place-items: center; } .pcard.up .pback { display: none; }
.pcard.ok { outline: 4px solid #3BAF5D; }
.pcard .shape svg { width: 56px; height: 56px; } .pcard .emo { font-size: 44px; } .pcard .wtxt { font-size: 15px; word-break: break-word; }
.bd-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 16px; width: fit-content; margin: 0 auto 10px; animation: drop .35s; }
.bd-card img { width: 60px; height: 60px; border-radius: 50%; } .bd-card b { display: block; font: 700 22px var(--head); }
.bd-card .speak.card { position: static; transform: none; margin: 0; flex: none; }
.bd-m { font: 700 18px var(--head); color: var(--purple-d); }
.cgraph .gcol { cursor: pointer; border-radius: 12px; } .cgraph .gcol.wrong { animation: shake .4s; background: #FFECEC; }
.cgraph .glbl { font-size: 16px; text-align: center; } .cgraph .glbl .wtxt { font: 700 15px var(--head); word-break: break-word; }
.wweek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 auto 10px; max-width: 640px; }
.wday { border: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 6px 2px; display: grid; gap: 2px; justify-items: center; cursor: pointer; }
.wday small { font: 700 11px var(--head); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wday .emo { font-size: 30px; } .wday.used { opacity: .35; } .wday.hop { outline: 3px solid var(--purple); animation: hop 1.2s infinite; }
.wday.nudge { animation: shake .4s; }
@media (max-width: 520px) { .pcard .shape svg { width: 40px; height: 40px; } .pcard .emo { font-size: 32px; } .wday .emo { font-size: 22px; } .dt { font-size: 14px; padding: 8px; } }
.pcard { width: 100%; } .pcard .wtxt { font-size: 13px; }
.cgraph .glbl { flex-direction: column; gap: 2px; } .cgraph .glbl .wtxt { font-size: 12px; overflow-wrap: normal; word-break: normal; hyphens: none; }
.byline.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(94, 87, 133, .15); }
.byline.brand img { height: 28px; width: auto; display: block; opacity: .95; }
.byline.brand span { font-size: 11px; letter-spacing: .02em; }
/* Re a Ithuta play money (our own pictures). Sizes follow the real coins and notes: bigger value = bigger note. */
.coin, .note { background: none !important; box-shadow: none !important; border-radius: 0; display: inline-block; height: auto !important; }
.coin img, .note img { display: block; width: 100%; height: auto; pointer-events: none; }
.coin.c5c { width: 76px; } .coin.c10c { width: 58px; } .coin.c20c { width: 68px; } .coin.c50c { width: 79px; }
.coin.c1 { width: 72px; } .coin.c2 { width: 83px; } .coin.c5 { width: 94px; }
.note.n10 { width: 134px; } .note.n20 { width: 141px; } .note.n50 { width: 147px; } .note.n100 { width: 153px; } .note.n200 { width: 160px; }
/* the maths signs: + to add, − to take away, = ? for the answer */
.stem.coinw.msum { flex-wrap: wrap; gap: 6px 8px; }
.msign { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--purple, #6C4BF4); color: #fff; font: 700 34px/1 var(--head); flex: none; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.msign.minus { background: #E4572E; }
.mq { display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding: 0 8px; border: 4px dashed var(--purple, #6C4BF4); border-radius: 14px; font: 700 34px var(--head); color: var(--purple, #6C4BF4); background: #fff; }
.meq { margin-top: 6px; } .meq b { font-size: 30px; }
.stem.buyw { gap: 10px; }
@media (max-width: 520px) {
  .coin.c5c { width: 61px; } .coin.c10c { width: 47px; } .coin.c20c { width: 55px; } .coin.c50c { width: 63px; }
  .coin.c1 { width: 58px; } .coin.c2 { width: 66px; } .coin.c5 { width: 75px; }
  .note.n10 { width: 98px; } .note.n20 { width: 102px; } .note.n50 { width: 106px; } .note.n100 { width: 110px; } .note.n200 { width: 115px; }
  .msign { width: 36px; height: 36px; font-size: 28px; } .mq { min-width: 46px; height: 46px; font-size: 28px; }
  .meq b { font-size: 26px; } .ptag .emo { font-size: 40px; } .ptag b { font-size: 24px; } .ptag { padding: 4px 10px; }
}
.msign svg { width: 70%; height: 70%; fill: #fff; } .msign.eq { background: #2B2250; }
.mend { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
.stem.buyw { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 520px) { .msign { width: 34px; height: 34px; } .stem.buyw { gap: 6px; } .ptag .emo { font-size: 32px; } .ptag b { font-size: 22px; } .ptag { gap: 4px; padding: 3px 8px; } .mend { gap: 6px; } }
/* find the money: pictures on the answer buttons */
.mpick { display: grid; place-items: center; width: 100%; } .mpick .note { width: 92% !important; max-width: 150px; } .mpick .coin { transform: scale(1.05); }
.choice .mpick .note { width: 100% !important; max-width: 160px; } .choice .mpick .coin { transform: scale(1.4); transform-origin: center; }
.choice .mpick { padding: 4px; min-height: 96px; }
.choice .mpick .note { width: 140px !important; } @media (max-width: 520px) { .choice .mpick .note { width: 96px !important; } .choice:has(.mpick) { padding-left: 4px; padding-right: 4px; } }

/* ---------- Grade 3 pictures drawn in code ---------- */
.stem.g3blk { display: flex; justify-content: center; padding: 6px 0; } .g3blk svg { width: 100%; height: auto; min-width: 140px; }
.stem.g3arr { display: grid; justify-items: center; gap: 10px; }
.g3arr .arr { display: grid; grid-template-columns: repeat(var(--c), auto); gap: 4px; font-size: 26px; line-height: 1; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); }
.g3arr .arr i { font-style: normal; }
.g3fr { display: block; width: 100%; max-width: 220px; } .g3fr svg { width: 100%; height: auto; display: block; }
.choice .fl { font: 700 22px var(--head); color: var(--ink); margin-top: 6px; }
.stem.g3nl { display: grid; justify-items: center; } .g3nl svg { width: 100%; max-width: 520px; height: auto; }
.stem.g3tm { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.g3tm .tm-ico { font-size: 40px; flex: none; } .g3tm b { font: 700 24px/1.3 var(--head); color: var(--ink); }
.stem.g3pile { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 30px; max-width: 560px; margin: 0 auto; }
.g3kg { display: inline-block; font: 700 18px var(--head); color: #fff; background: #5E5785; border-radius: 99px; padding: 6px 12px; }
.g3pv u.hi { text-decoration: none; color: #fff; background: #E94F87; border-radius: 10px; padding: 0 8px; }
.g3sh { display: block; width: 96px; height: 96px; } .g3sh svg { width: 100%; height: 100%; }
.stem.g3map { display: grid; grid-template-columns: repeat(3, 64px); grid-auto-rows: 64px; gap: 6px; justify-content: center; }
.g3map span { display: grid; place-items: center; font-size: 34px; background: #E8F6EC; border: 3px solid #B9E2C4; border-radius: 12px; }
.stem.g3cal { display: grid; gap: 6px; justify-items: center; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow); max-width: 380px; margin: 0 auto; }
.g3cal .ct { font: 700 22px var(--head); color: var(--ink); }
.g3cal .cg { display: grid; grid-template-columns: repeat(7, 40px); gap: 4px; }
.g3cal .cg i { font: 700 16px/34px var(--head); font-style: normal; text-align: center; color: var(--ink); border-radius: 8px; }
.g3cal .cg i.h { color: var(--ink-2); font-size: 13px; } .g3cal .cg i.mk { background: #E94F87; color: #fff; }
@media (max-width: 520px) { .g3cal .cg { grid-template-columns: repeat(7, 34px); } .stem.g3map { grid-template-columns: repeat(3, 54px); grid-auto-rows: 54px; } }

/* Grade 3 challenge: long jump patterns wrap on small phones */
.stem.pattern.g3long { flex-wrap: wrap; justify-content: center; gap: 4px; padding: 10px 6px; }
.stem.pattern.g3long span { font-size: 30px; } .stem.pattern.g3long .q { width: 40px; height: 40px; font-size: 24px; border-width: 3px; }

/* ---------- printable progress report (one A4 page) ---------- */
#prt { display: none; }
.pr-btn { margin: 6px 0 12px; }
@media print {
  @page { size: A4; margin: 12mm; }
  body > *:not(#prt) { display: none !important; }
  body { background: #fff !important; }
  #prt { display: block; color: #111; font: 11pt/1.35 Nunito, system-ui, sans-serif; }
  .pr-page { max-width: 186mm; margin: 0 auto; }
  .pr-head { display: flex; gap: 12px; align-items: center; border-bottom: 2px solid #6C4BF4; padding-bottom: 6px; }
  .pr-head img { width: 48px; height: 48px; border-radius: 10px; }
  .pr-head h1 { font-size: 17pt; margin: 0; } .pr-head p { margin: 2px 0 0; }
  #prt h2 { font-size: 12pt; margin: 10px 0 4px; color: #3a2a8f; }
  #prt p, #prt ul { margin: 2px 0; } #prt ul { padding-left: 18px; }
  .pr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
  .pr-kpis div { border: 1px solid #ccc; border-radius: 8px; padding: 4px 6px; text-align: center; }
  .pr-kpis b { display: block; font-size: 14pt; } .pr-kpis small { font-size: 8.5pt; color: #444; }
  .pr-t { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .pr-t th, .pr-t td { border: 1px solid #bbb; padding: 3px 6px; text-align: left; vertical-align: top; }
  .pr-t th { background: #f1eefc; } .pr-0 { color: #888; }
  .pr-sk th.ok { background: #dff3da; } .pr-sk th.mid { background: #fff0cc; } .pr-sk th.low { background: #fde0dc; }
  .pr-sk td { width: 33%; }
  .pr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pr-note { color: #555; }
  .pr-sign { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 12px; }
  .pr-sign div { font-weight: 700; } .pr-sign span { display: block; border-bottom: 1px solid #555; height: 22px; }
  .pr-foot { margin-top: 10px; font-size: 8.5pt; color: #555; border-top: 1px solid #ccc; padding-top: 4px; }
  #prt, #prt * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- term check-up ---------- */
.chal-banner.cudue { background: linear-gradient(135deg, #3D8BD9, #6C4BF4); color: #fff; }
.n-again { position: absolute; top: -6px; left: -6px; width: 26px; height: 26px; border-radius: 50%; background: #FF8A3D; color: #fff; font-weight: 900; font-size: 16px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.cu-list { display: grid; gap: 8px; margin: 12px 0 4px; text-align: left; }
.cu-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; border: 3px solid var(--sc); background: #fff; font: inherit; cursor: pointer; }
.cu-card .cu-ic { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #F6F3FF; flex: none; }
.cu-card .cu-ic img { width: 100%; height: 100%; object-fit: cover; }
.cu-card b { display: block; } .cu-card small { color: #555; } .cu-card .cu-go { margin-left: auto; color: var(--sc); }
.cu-card .cu-go svg { width: 26px; height: 26px; }

/* ---------- My words (picture dictionary) ---------- */
.dict-btn { font-size: 24px; }
.dict { padding: 8px 14px 30px; max-width: 900px; margin: 0 auto; }
.bar-title .speak { vertical-align: middle; margin-left: 6px; }
.dtabs { display: flex; gap: 8px; justify-content: center; margin: 6px 0 12px; }
.dtab { min-width: 86px; height: 46px; border-radius: 23px; background: #fff; font: 800 18px var(--body); color: var(--purple); border: 3px solid transparent; }
.dtab.on { border-color: var(--purple); background: #F1EEFC; }
.dth { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dth-b { background: #fff; border-radius: 18px; padding: 12px 8px; display: grid; gap: 4px; justify-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.08); font: inherit; }
.dth-b .dth-e { font-size: 30px; letter-spacing: 2px; } .dth-b b { font-size: 15px; text-align: center; line-height: 1.2; } .dth-b small { color: #777; }
.dth-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .dth-h h2 { margin: 0; font-size: 20px; }
.chunky.sm { padding: 6px 12px; min-height: 0; }
.daz { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.daz-b { width: 40px; height: 40px; border-radius: 12px; background: #fff; font: 800 18px var(--body); color: var(--ink); }
.daz-b.on { background: var(--purple); color: #fff; }
.dws { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.dw { background: #fff; border-radius: 18px; padding: 10px 6px; display: grid; gap: 4px; justify-items: center; font: inherit; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.dw .dw-e { font-size: 44px; line-height: 1.1; } .dw b { font-size: 16px; text-align: center; word-break: break-word; }
.dpop .dp-e { font-size: 96px; line-height: 1.1; }
.dpop h2 { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dp-o { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 6px; }
.dp-o li { background: #F6F3FF; border-radius: 12px; padding: 6px 10px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dp-o small { color: #666; } .dp-o b { font-size: 18px; }

/* ---------- reading along ---------- */
.ra-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 0; }
.ra-bar [hidden] { display: none !important; }
.ra-bar .chunky { padding: 8px 14px; font-size: 17px; }
.ra-bar .chunky.on { background: #FFE9A8; }
.ra-bar .chunky:disabled { opacity: .45; }
.rl { transition: background .2s; border-radius: 12px; }
.rl.ra-on { background: #FFF6D6; box-shadow: 0 0 0 3px #FFC93C; }
.rl.ra-solo { background: #E7F7E4; box-shadow: 0 0 0 3px #58C24B; }
.rl .w.ra-w { background: #FFC93C; box-shadow: 0 2px 0 #E0A400; }
@media (max-width: 400px) { .home-top { gap: 6px; } .home-top .dict-btn, .home-top .stk-btn { width: 44px; height: 44px; font-size: 20px; } .home-top .star-count { padding: 6px 10px 6px 8px; font-size: 18px; gap: 4px; } .home-top .star-count svg { width: 20px; height: 20px; } }
/* ---- parent progress page ---- */
.pview .pv-kids { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.pv-kid { padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font: 700 15px var(--body); color: var(--ink); min-height: 44px; }
.pv-kid.on { background: var(--purple-d); color: #fff; }
.pv-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 360px; margin: 4px 0 10px; }
.pv-week i { aspect-ratio: 1; border-radius: 50%; background: #F1EEF8; display: grid; place-items: center; border: 2px solid transparent; }
.pv-week i.on { background: #FFC531; }
.pv-week i.on svg { width: 60%; height: 60%; fill: #fff; }
.pv-week i.now { border-color: var(--purple-d); }
.pv-week i.later { opacity: .45; }
.pv-big { font: 700 19px var(--head); margin: 4px 0; color: var(--purple-d); }
.pv-tip { background: #FFF7DD; border-radius: 14px; padding: 10px 12px; margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
.pv-scroll { overflow-x: auto; }
.pv-grid th[scope=row] { text-align: left; white-space: normal; font: 700 14px/1.25 var(--body); min-width: 104px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.pv-grid th.cur { color: var(--purple-d); }
.pv-grid td { text-align: center; min-width: 44px; padding: 8px 4px; }
.pv-grid th { text-align: center; padding: 6px 4px; } .pv-grid th.pv-tl { text-align: left; text-transform: none; }
.pv-grid th.cur { background: #F1EEF8; border-radius: 8px; }
.pv-grid td small { font-size: 12px; }
.pv-grid td.pv-all { text-align: left; }
.pv-grid td.pv-all .pv-bar { max-width: 220px; }
.pv-bar { display: block; height: 10px; border-radius: 6px; background: #EEE9F8; overflow: hidden; }
.pv-bar i { display: block; height: 100%; background: #2E9E4F; border-radius: 6px; }
.pv-ic { margin-right: 6px; }
.tcard h2.pv-h { margin-top: 20px !important; }
.pv-well { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pv-well li { display: flex; align-items: center; gap: 6px; background: #E5F7EC; color: #146C3A; border-radius: 12px; padding: 7px 10px; font: 700 14px var(--body); }
.pv-well li svg { width: 16px; height: 16px; fill: #F5B400; flex: none; }
.pv-list { list-style: none; margin: 0; padding: 0; }
.pv-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F2EEF9; }
.pv-list li:last-child { border-bottom: 0; }
.pv-list li > span:first-child { min-width: 0; }
.pv-list b { display: block; font-size: 15px; overflow-wrap: anywhere; } .pv-list small { color: var(--ink-2); font-size: 13px; }
.pv-play { flex: none; font-size: 14px !important; padding: 10px 14px !important; min-height: 44px; }
.pv-play svg { width: 14px; height: 14px; }
.pv-st { display: flex; flex: none; } .pv-st i svg { width: 18px; height: 18px; fill: #DDD8EA; } .pv-st i.on svg { fill: #F5B400; }
.pv-tips { list-style: none; margin: 0; padding: 0; } .pv-tips li { display: flex; gap: 8px; padding: 6px 0; line-height: 1.45; }
.pv-share { margin: 16px 0 6px; text-align: center; }
.pv-more summary { cursor: pointer; font: 700 15px var(--body); color: var(--purple-d); min-height: 32px; }

/* ---------- Grade 3 Thinking Lab (content-lab.js) ---------- */
.chal-banner.lab { color: #053B35; background: linear-gradient(135deg, #A6EFE4, #3CC4B2); box-shadow: 0 5px 0 #1E9384; }
.lb-sent b { font-size: 26px !important; line-height: 1.35 !important; text-align: center; }
.lbo { display: grid; place-items: center; width: 100%; }
.lbo svg { width: 100%; max-width: 120px; height: auto; display: block; }
.choices.n4 .lbo svg { max-width: 104px; }
.lbseq, .lbgrid { gap: 8px; align-items: center; }
.lbc { display: grid; place-items: center; width: 74px; height: 74px; background: #F7F5FF; border-radius: 14px; border: 2px solid #E4DEFA; }
.lbc.q { border: 3px dashed var(--purple); background: #fff; }
.lbc svg, .lbt { width: 62px; height: 62px; }
.lbgrid { display: grid !important; grid-template-columns: repeat(var(--c), 84px); justify-content: center; }
.lbgrid .lbc { width: 84px; height: 84px; } .lbgrid .lbc svg { width: 70px; height: 70px; }
.lbm { align-items: center; gap: 6px; }
.lbm-io { display: grid; place-items: center; min-width: 74px; padding: 6px 10px; background: #F1ECFF; border-radius: 14px; }
.lbm-io small { font: 800 13px/1 var(--head); text-transform: uppercase; color: #5E5785; letter-spacing: .05em; }
.lbm-io b { font: 700 34px/1.1 var(--head); color: var(--purple-d); }
.lbm-box { display: grid; place-items: center; padding: 8px 12px; background: #0E9F8E; color: #fff; border-radius: 12px; font: 700 26px/1.1 var(--head); box-shadow: 0 4px 0 #0A7468; }
.lbm-ar { font-size: 26px; color: #5E5785; }
.lbm-tw { flex-direction: column; align-items: center; }
.lbm-t { border-collapse: separate; border-spacing: 6px; font: 700 28px/1 var(--head); }
.lbm-t th { font: 800 14px/1 var(--head); text-transform: uppercase; color: #5E5785; padding-right: 6px; }
.lbm-t td { background: #F1ECFF; border-radius: 10px; min-width: 56px; height: 50px; text-align: center; color: var(--purple-d); }
.lbp { flex-direction: column; align-items: center; gap: 6px; }
.lbp-r { display: flex; align-items: center; gap: 12px; font: 700 30px/1.2 var(--head); }
.lbp-r .emo { font-size: 36px; } .lbp-v { color: var(--purple-d); min-width: 70px; }
.lbsw { align-items: center; } .lbsw svg { width: 150px; } .lbs-m { font-size: 40px; }
.lbisow svg, .lbiso { width: 220px; max-width: 70vw; height: auto; }
.lbrob { flex-direction: column; align-items: center; } .lbboard { width: 230px; max-width: 70vw; }
.lbcmd { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; font: 800 30px/1 var(--head); }
.lbcmd > span { display: grid; place-items: center; width: 46px; height: 46px; background: #F1ECFF; border-radius: 12px; color: var(--purple-d); }
.lbcmd .lbrep { width: auto !important; padding: 0 12px; border: 3px solid #0E9F8E; letter-spacing: 6px; }
.lbcmd b { color: #0E9F8E; }
.lbgw svg, .lbgear { width: 100%; max-width: 420px; height: auto; }
.lbdir { font: 800 64px/1 var(--head); color: #0E9F8E; }
.lbcw { gap: 10px; } .lbcir { width: 128px; max-width: 28vw; }
.lbseew svg, .lbsee { width: 240px; max-width: 70vw; } .lbo .lbsee { max-width: 130px; }
.lbpw svg, .lbpipe { width: 260px; max-width: 75vw; }
.lbs { width: 100%; }
@media (max-width: 420px) { .lbc { width: 52px; height: 52px; } .lbc svg, .lbt { width: 44px; height: 44px; }
  .lbgrid { grid-template-columns: repeat(var(--c), 66px); } .lbgrid .lbc { width: 66px; height: 66px; } .lbgrid .lbc svg { width: 54px; height: 54px; }
  .lbm-io { min-width: 56px; } .lbm-io b { font-size: 26px; } .lbm-box { font-size: 20px; } .lb-sent b { font-size: 21px !important; } .lbdir { font-size: 48px; } }
.lbrule { font: 700 44px/1 var(--head); color: var(--purple-d); white-space: nowrap; }

/* Thinking Lab: arrow answers and reason cards */
.lbcmd.lbco { gap: 4px; font-size: 22px; padding: 4px; } .lbcmd.lbco > span { width: 32px; height: 32px; border-radius: 9px; }
.choices.otxt .cwrap > .choice, .choices.stack .cwrap > .choice { padding-right: 62px; text-align: left; }
.lbrand { font: 800 40px/1 var(--head); color: var(--purple-d); }
@media (max-width: 520px) { .lbrand { font-size: 32px; } }
.choices.lbwide { grid-template-columns: 1fr !important; max-width: 420px; margin: 0 auto; width: 100%; } .choices.lbwide .lbo .lbsee { max-width: 130px; width: 130px; height: auto; } .lbseew svg.lbsee { width: 200px; } .choices.lbwide .choice { min-height: 0; padding: 6px; }
.lbcir { width: 150px; max-width: 42vw; }
.lbbal { display: grid !important; gap: 8px; justify-content: center; }
.lbbal-r { display: grid; grid-template-columns: 64px 54px minmax(0, 1fr); align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; background: #F6F3FF; }
.lbbal-l { font-size: 38px; text-align: center; } .lbbal-s { font-size: 30px; text-align: center; } .lbbal-p { font-size: 28px; display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.lbq { font: 800 26px/1 var(--head); font-style: normal; color: var(--purple-d); display: inline-grid; place-items: center; width: 40px; height: 40px; border: 3px dashed #8B7BE0; border-radius: 10px; }
@media (max-width: 380px) { .lbp-r { font-size: 24px; gap: 6px; } .lbp-r .emo { font-size: 28px; } .lbp-v { min-width: 56px; } .lbbal-r { grid-template-columns: 52px 44px minmax(0, 1fr); } .lbbal-l { font-size: 32px; } .lbbal-p { font-size: 24px; } }
.lbp-r .emo { white-space: nowrap; }

/* ===== Thinking Lab part 2: reading texts, maths and science pictures, practice challenge day ===== */
.rdw{width:100%;display:flex;justify-content:center}
.rdtext{width:min(560px,100%);background:#fff;border:2px solid #2B2250;border-radius:14px;padding:12px 16px;text-align:left;font-size:15.5px;line-height:1.45;color:#2B2250;box-shadow:0 4px 0 rgba(43,34,80,.15);max-height:46vh;overflow:auto}
.rdtext h4{margin:0 0 6px;font-size:17px;font-weight:800}
.rdtext p{margin:0 0 6px}.rdtext ul{margin:2px 0 6px;padding-left:20px}.rdtext li{margin:1px 0}
.rdtext .rd-sign{text-align:right;font-style:normal;font-weight:700}
.rd-inv{background:#FFF4E5;border-color:#E2513C;border-style:dashed;text-align:center}.rd-inv ul{list-style:none;padding:0}
.rd-note{background:#FFFBE6;border-color:#B7791F}.rd-note h4{text-align:center;letter-spacing:.5px}
.rd-rec ul{list-style:none;padding-left:4px}
.rd-dia{background:repeating-linear-gradient(#fff 0 22px,#DDE7F7 22px 23px);line-height:23px}
.rd-let{background:#F7F3FF}
.rd-tt table{border-collapse:collapse;width:100%;margin:4px 0 8px;font-size:14.5px}.rd-tt th,.rd-tt td{border:1.5px solid #2B2250;padding:4px 6px;text-align:center}.rd-tt th{background:#E8E4F6}
.rd-inf{background:#EEF8FF}.rd-sto{background:#FFFDF5}
.choices.rdq .choice,.choices.fsq .choice{min-height:52px}
.lbgraph svg{width:min(330px,92vw);height:auto}
.lbtally svg{height:64px;width:auto;max-width:92vw}
.lbshop{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.lbtag{display:inline-flex;align-items:center;gap:4px;background:#fff;border:2px solid #2B2250;border-radius:10px;padding:4px 8px}
.lbtag .emo{font-size:28px}.lbtag b{font-size:20px;color:#2B2250}
.lbop{font-size:26px;color:#2B2250}.lbop.sm{font-size:18px;margin:0 2px}
.lbshop .note img{height:54px;width:auto;border-radius:4px}
.lbcard{display:inline-block;background:#FFF4C2;border:2px dashed #2B2250;border-radius:10px;padding:6px 16px;font-size:26px;font-weight:800;color:#2B2250}
.lbo .lbtag{padding:2px 6px}.lbo .lbtag .emo{font-size:22px}.lbo .lbtag b{font-size:17px}
.lbgw2 svg{width:min(240px,80vw);height:auto}
.lbgw3{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.lbgw3 svg{width:min(118px,29vw);height:auto}
.lbscale svg{width:150px;height:auto}
.lb3dw svg{width:120px;height:auto}.lbo .lb3d{width:78px;height:auto}
.lbcalw{display:flex;justify-content:center}.lbcal{background:#fff;border:2px solid #2B2250;border-radius:12px;padding:6px 8px;width:min(300px,90vw)}
.lbcal-t{text-align:center;font-weight:800;font-size:16px;color:#2B2250;margin-bottom:3px}
.lbcal-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center;font-size:13px;color:#2B2250}
.lbcal-g b{font-size:11.5px;color:#6C4BF4}.lbcal-g span{padding:3px 0;border-radius:50%}.lbcal-g span.we{background:#F3F0FB}
.lbcal-g span.circ{outline:2.5px solid #E2513C;outline-offset:-1px;font-weight:800}
.lbclkw{display:flex;gap:16px;justify-content:center}.lbclk svg{width:110px;height:110px}
.lbbowl,.lbemo{font-size:52px;display:flex;justify-content:center;gap:6px}
.lbtabw{display:flex;justify-content:center}.lbtab{border-collapse:collapse;background:#fff;font-size:15px;color:#2B2250}
.lbtab th,.lbtab td{border:1.6px solid #2B2250;padding:4px 10px;text-align:center;min-width:34px}.lbtab th{background:#E8E4F6}.lbtab .emo{font-size:24px}
.lbrulw svg{width:min(340px,92vw);height:auto}.lbo .lbrul{width:min(300px,78vw);height:auto}
.lbjugw{display:flex;justify-content:center;align-items:flex-end;gap:8px;flex-wrap:wrap}.lbjugw svg{width:110px;height:auto}.lbjugw.three svg{width:84px}
.lbcup{font-size:16px;font-weight:700;color:#2B2250;align-self:center}
.lbseedw{text-align:center;color:#2B2250;font-size:14.5px}.lbseedw p{margin:2px 0 6px}
.lbcups{display:flex;gap:10px;justify-content:center}.lbcupc{background:#fff;border:2px solid #2B2250;border-radius:10px;padding:4px 10px;min-width:64px}
.lbcupc b{font-size:16px}.lbcup-i{font-size:18px}.lbcup-i s{opacity:.35}.lbcup-p{font-size:30px;height:40px;line-height:40px}
.lbcup-p.tall{font-size:40px}.lbcup-p.pale{filter:grayscale(.6) sepia(1) hue-rotate(5deg) saturate(2.4) brightness(1.15);font-size:38px}.lbcup-p.none{font-size:18px}
.lbkey{font-size:12.5px;opacity:.85;white-space:pre}
.lbchain{display:flex;align-items:center;justify-content:center;gap:6px}
.lbor{display:inline-flex;align-items:center;justify-content:center;width:62px;height:62px;border-radius:50%;background:#fff;border:2px solid #2B2250;font-size:36px}
.lbor.circ{outline:3.5px solid #E2513C;outline-offset:2px}.lbor.gap{background:#F3F0FB;font-weight:800;color:#6C4BF4}
.lbarr{font-size:28px;color:#2B2250}.lbcap{text-align:center;font-size:13px;color:#2B2250;margin:4px 0 0;opacity:.85}
/* practice challenge day */
.cd-clock{align-self:flex-end;background:#fff;border:2px solid #2B2250;border-radius:999px;padding:2px 12px;font-size:15px;color:#2B2250;margin:-4px 4px 4px auto}
.cd-clock.big{align-self:center;margin:10px auto;font-size:22px}
.cdplay{display:flex;flex-direction:column}
.cd-let{position:absolute;top:6px;left:8px;width:24px;height:24px;border-radius:50%;background:#2B2250;color:#fff;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center}
.cdch .choice,.cdch .choice.stack{position:relative;padding-left:40px!important}
.choice.picked{outline:4px solid #6C4BF4;outline-offset:2px;background:#EFEAFF}
.cd-score{font-size:22px;color:#2B2250;margin:8px 0}.cd-score b{font-size:44px}
.cd-sk{list-style:none;padding:0;margin:6px auto 14px;width:min(420px,92vw);text-align:left}
.cd-sk li{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;background:#fff;border-radius:10px;margin:4px 0;border:1.5px solid #E1DCF2;font-weight:700;color:#2B2250}
.cd-st i{display:inline-block;width:20px;height:20px;opacity:.25}.cd-st i.on{opacity:1}.cd-st i svg{width:100%;height:100%;fill:#F5B700}
.cdt td,.cdt th{text-align:center}.cdt .cd-tot td{background:#F6F4FC}

.cd-fr{font-style:normal;font-size:13px;color:#5A5378;margin-right:6px;vertical-align:4px}

/* ---------- hands-on rounds (hands.js) ---------- */
.play.hands{display:flex;flex-direction:column;gap:10px}
.hz{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;user-select:none;-webkit-user-select:none}
.hz.hno{animation:shake .45s}
.hz.hdone{filter:drop-shadow(0 0 10px rgba(88,196,107,.55))}
.hctl{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:2px}
.hctl .hbtn{min-width:64px;min-height:58px;padding:6px 12px;background:#fff;color:#2B2250;border-radius:16px;font:800 18px var(--head);display:flex;align-items:center;gap:6px;justify-content:center}
.hctl .hbtn .emo.sm{font-size:22px}
.hctl .hchk{min-width:76px;min-height:58px;border-radius:18px;display:grid;place-items:center}.hctl .hchk svg{width:34px;height:34px}
.hctl .hbtn:disabled,.hctl .hchk:disabled{opacity:.5}
.tapg svg [data-t],.tapc [data-t]{cursor:pointer}
.lbgraph.tapg svg{width:min(340px,92vw)}
.lbdata{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.lbd{display:flex;align-items:center;gap:4px;background:#fff;border:1.5px solid #E1DCF2;border-radius:12px;padding:3px 8px;font:800 20px var(--head);color:#2B2250}
.lbd .emo{font-size:22px}.lbtsv svg{height:26px;width:auto;display:block}
/* play money */
.lbpay .lbshop{margin:0}
.lbcounter{min-height:86px;width:min(360px,94vw);background:#E9DCC5;border:2.5px solid #8A5A33;border-radius:14px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;padding:6px}
.lbcounter .lbm{background:none;border:0;padding:0;cursor:pointer}
.lbcounter .coin,.hctl .coin{width:50px;height:50px}.lbcounter .coin.c2,.hctl .coin.c2{width:54px;height:54px}.lbcounter .coin.c5,.hctl .coin.c5{width:58px;height:58px}
.lbcounter .note,.hctl .note{width:80px;height:44px}.lbcounter .note img,.hctl .note img,.lbcounter .coin img,.hctl .coin img{width:100%;height:100%;object-fit:contain}
.lbempty{font-size:34px;opacity:.45}
.lbpay ~ .hctl .hbtn{padding:4px 6px;min-width:0;background:transparent;box-shadow:none}
/* scale bags */
.lbweigh .lbscale svg{width:190px}
.lbbag{display:flex;flex-direction:column;align-items:center;gap:0;line-height:1}.lbbag svg{width:30px;height:34px}.lbbag b{font-size:14px}
/* ruler ribbon */
.lbruler .lbrulw{touch-action:none;cursor:ew-resize;width:min(360px,94vw)}.lbruler .lbrulw svg{width:100%}
/* clocks */
.lbclkw.set{align-items:flex-end}.lbclkw.set .lbclk svg{width:150px;height:150px}.lbclkw.set .lbclk.sm svg{width:76px;height:76px}
/* calendar taps */
.tapc .lbcal-g span{cursor:pointer;padding:6px 0;font-weight:700}
.tapc .lbcal-g span.sel{background:#6C4BF4;color:#fff}
.tapc .lbcal{width:min(330px,92vw)}
/* sort boxes */
.hbins{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hbins.n3{grid-template-columns:1fr 1fr 1fr}
.hbin{background:#fff;border:2.5px dashed #B9B0DA;border-radius:16px;min-height:150px;display:flex;flex-direction:column;padding:6px;gap:4px;cursor:pointer}
.hbin-h{display:flex;align-items:center;justify-content:center;gap:4px;font:800 15px var(--head);color:#2B2250;text-align:center;min-height:36px;position:relative}
.hbin-h .emo{font-size:22px}.hbin-h .speak.card{position:static;width:34px;height:34px;box-shadow:0 2px 0 var(--yellow-d);margin-left:2px}.hbin-h .speak.card svg{width:18px;height:18px}
.hbins.shapes .hbin-h svg{width:64px;height:auto}
.hbin-in{flex:1;display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:center;gap:4px}
.htray{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 10px;min-height:20px;margin-top:6px}
.hiw{position:relative}
.hitem{background:#fff;border:2.5px solid #E1DCF2;border-radius:16px;min-width:104px;min-height:96px;padding:8px 8px;display:grid;place-items:center;gap:2px;font:800 14px var(--head);color:#2B2250;box-shadow:0 4px 0 #DCD5F0;touch-action:none;cursor:grab}
.hitem .emo{font-size:44px}.hitem .emo.sm{font-size:30px}.hitem .wtxt{font-size:13.5px;text-align:center;max-width:120px}
.hitem.sel{outline:4px solid #6C4BF4;outline-offset:2px}
.hitem.wrong{animation:shake .45s;border-color:var(--coral)}
.hitem.placed{min-width:0;min-height:0;padding:3px 5px;box-shadow:none;border-color:#7FC8A9;cursor:default}
.hitem.placed{display:flex;flex-direction:column;align-items:center;gap:0}.hitem.placed .emo{font-size:26px;line-height:1.1}.hitem.placed .wtxt,.hitem.placed .word{font-size:11px;line-height:1.1}.hitem.placed svg{width:44px;height:auto}
.hitem .lbo svg{width:70px;height:auto}
.hbins.txt ~ .htray .hitem{max-width:160px}
.hghost{position:fixed;z-index:999;pointer-events:none;opacity:.92;transform:scale(1.06);box-shadow:0 10px 24px rgba(43,34,80,.3)}
.hiw .speak.card{width:34px;height:34px;right:-6px;top:-8px}.hiw .speak.card svg{width:18px;height:18px}
/* order slots */
.hslots{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px}
.hslot{min-width:78px;min-height:84px;border:2.5px dashed #B9B0DA;border-radius:16px;background:#fff;display:grid;place-items:center;position:relative}
.hslot.fixed{border-style:solid;border-color:#F2B705;background:#FFF7DA}
.hslot.on{border-style:solid;border-color:#7FC8A9}
.hslot .hnum{font:800 22px var(--head);color:#CFC8E8}
.hslot .hitem.placed{border:0}
.hsep{font-size:22px;color:#2B2250}
.hslots.lbjugs .hitem .lbo svg,.hslots.lbjugs .hslot svg{width:52px}
.hslots.planets .hslot{min-width:70px}
.lbpl{display:inline-block;width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff8,transparent 55%),var(--c);border:2px solid #2B2250}
.lbpl.e{background:radial-gradient(circle at 35% 30%,#fff8,transparent 55%),radial-gradient(circle at 60% 60%,#3FAE5A 0 25%,transparent 26%),var(--c)}
.lbpl.s{box-shadow:0 0 12px #F7B500}.lbpl.big{width:46px;height:46px}
.lbgrow{width:64px;height:64px}
@media (max-width:380px){.hitem{min-width:84px;min-height:76px}.hbin{min-height:104px}.hslot{min-width:66px;min-height:74px}.hbin-h{font-size:13.5px}}
.hbins{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.hbins.n3{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.hbins.n3 .hbin-h{flex-direction:column;gap:2px;font-size:13.5px}
.lbcounter{width:100%;box-sizing:border-box}
.hslots.planets .hslot{min-width:62px;min-height:74px}
@media (max-width:400px){.hslots{gap:2px}.hslot{min-width:60px;min-height:70px}.hsep{font-size:16px}.hslot .hitem.placed svg,.hslot .lbgrow{width:52px;height:52px}}

/* ---------- Creator mode (creator only; never shown to children) ---------- */
body.cr #app{padding-bottom:78px}body.cr.crmin #app{padding-bottom:30px}
#crbar{position:fixed;left:50%;bottom:6px;transform:translateX(-50%);z-index:2000;width:min(560px,calc(100vw - 8px));background:rgba(31,26,58,.94);color:#fff;border-radius:16px;padding:4px 4px 5px;box-shadow:0 6px 20px rgba(0,0,0,.3);font-family:var(--body,system-ui)}
#crbar .crtag{position:absolute;top:-9px;left:10px;background:#E2513C;color:#fff;font:800 9.5px/1 system-ui;letter-spacing:.8px;padding:3px 6px;border-radius:6px}
#crbar .crbtns{display:grid;grid-template-columns:repeat(8,1fr);gap:2px}
#crbar button{background:transparent;color:#fff;border:0;border-radius:10px;padding:5px 0 3px;display:flex;flex-direction:column;align-items:center;gap:1px;min-height:46px;cursor:pointer}
#crbar button b{font-size:18px;line-height:1.1}#crbar button small{font-size:9.5px;opacity:.85;white-space:nowrap}
#crbar button:active{background:rgba(255,255,255,.15)}#crbar button:disabled{opacity:.3}
#crbar #cra b{color:#7BE495}
#crbar.min{width:auto;left:auto;right:6px;transform:none}#crbar.min .crbtns{grid-template-columns:auto}#crbar.min .crbtns button:not(#crmin){display:none}#crbar.min #crmin b{transform:rotate(180deg)}
#crmsg{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#1F1A3A;color:#fff;font-size:13px;padding:6px 12px;border-radius:10px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s}#crmsg.on{opacity:1}
.choice.crhint{outline:5px solid #2FBF62;outline-offset:3px}
.crgate{min-height:100vh;display:grid;place-items:center;padding:20px}
.crcard{background:#fff;border-radius:22px;padding:22px 18px;width:min(380px,94vw);display:flex;flex-direction:column;gap:12px;box-shadow:0 8px 24px rgba(43,34,80,.15)}
.crcard h2{margin:0;color:#2B2250}.crcard p{margin:0;color:#4A4268}
.crcard input{font-size:20px;padding:12px 14px;border:2px solid #CFC8E8;border-radius:14px;width:100%;box-sizing:border-box}
.crmsg{min-height:20px;font-weight:700;color:#C0392B}
.crtop{display:flex;align-items:center;gap:10px;padding:12px 12px 4px}.crtop h2{margin:0;font-size:20px;color:#2B2250}
.crjump{padding:4px 12px 20px}
.crfil{display:flex;gap:6px;position:sticky;top:0;background:var(--bg,#FFF8EC);padding:6px 0;z-index:5}
.crfil input{flex:1;min-width:0;font-size:16px;padding:10px 12px;border:2px solid #CFC8E8;border-radius:12px}.crfil select{font-size:15px;border:2px solid #CFC8E8;border-radius:12px;padding:0 6px;max-width:40%}
.crnote{font-size:13px;color:#4A4268;margin:4px 0 8px}.crlink{background:none;border:0;color:#C0392B;font-weight:800;text-decoration:underline;cursor:pointer;padding:0}
.crh{font-size:15px;color:#6C4BF4;margin:14px 0 4px}
.crrow{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;width:100%;text-align:left;background:#fff;border:1.5px solid #E7E2F5;border-radius:12px;padding:9px 10px;margin:3px 0;cursor:pointer;font-size:14.5px;color:#2B2250}
.crrow .crsj{font-size:11px;font-weight:800;background:#F1EDFC;color:#6C4BF4;border-radius:8px;padding:2px 6px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crrow small{font-size:10.5px;color:#9A93B8}.crrow[hidden],.crh[hidden]{display:none}

/* Manage children (grown-ups only) */
.mk-card { max-width: 560px; }
.mk-h { margin: 4px 0 2px; font-size: 1.35rem; color: var(--ink, #2a2350); }
.mk-note { margin: 0 0 10px; color: #5b5675; font-size: .95rem; }
.mk-msg { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #E7F7EC; color: #1E6B3A; font-weight: 700; }
.mk-list { display: grid; gap: 10px; width: 100%; margin-bottom: 14px; }
.mk-row { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "av nm" "bt bt"; align-items: center; gap: 8px 12px; background: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: 0 4px 0 #E2DCF2; }
.mk-av { grid-area: av; width: 52px; height: 52px; }
.mk-nm { grid-area: nm; font-size: 1.15rem; overflow-wrap: anywhere; text-align: left; }
.mk-btns { grid-area: bt; display: flex; gap: 8px; flex-wrap: wrap; }
.mk-btns .chunky { flex: 1 1 120px; }
.mk-in { width: 100%; margin: 0; }
.mk-del { color: #9B2C2C; }
.mk-yes { background: #B83232; box-shadow: 0 5px 0 #7E1F1F; }
@media (min-width: 520px) { .mk-row { grid-template-columns: 52px 1fr auto; grid-template-areas: "av nm bt"; } .mk-btns { flex-wrap: nowrap; } .mk-btns .chunky { flex: 0 0 auto; } }
/* welcome screen fits small phones (360 px): the language buttons wrap instead of pushing the page wider */
.welcome { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .welcome { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.w-card .lang-pick { width: auto; max-width: 100%; flex-wrap: wrap; justify-content: center; border-radius: 24px; }

/* diketo scene */
.dikw { max-width: 100%; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dkbox { position: relative; width: 320px; height: 190px; }
.dk-hole { position: absolute; left: 76px; bottom: 14px; width: 160px; height: 64px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #4a2e17 0%, #7a4b26 70%, #a87445 100%); box-shadow: inset 0 6px 10px rgba(0,0,0,.45), 0 0 0 10px #d9b27c; }
.dk-st { position: absolute; width: 20px; height: 15px; border-radius: 50% 45% 50% 45%; background: radial-gradient(circle at 35% 30%, #f1ede6, #a59d92 70%, #7d756b); box-shadow: 0 2px 2px rgba(0,0,0,.35); z-index: 2; }
.dk-st.gone { animation: dkGone .4s ease-in forwards; } .dk-st.come { animation: dkCome .5s ease-out; }
@keyframes dkGone { 0% { transform: translate(0, 0); } 50% { transform: translate(40px, -40px); opacity: 1; } 100% { transform: translate(60px, 20px); opacity: 0; } }
@keyframes dkCome { 0% { transform: translate(60px, 30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.dk-s { display: inline-block; width: 18px; height: 14px; margin: 1px 2px; border-radius: 50% 45% 50% 45%; background: radial-gradient(circle at 35% 30%, #f1ede6, #a59d92 70%, #7d756b); box-shadow: 0 2px 2px rgba(0,0,0,.35); }
.dkwon { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; min-height: 20px; max-width: 100%; }
.dk-row { display: flex; padding: 3px 5px; border: 2px dashed #c9b48f; border-radius: 10px; animation: dkPop .35s ease-out; }
.dk-s.dk-bk { animation: dkBack .9s ease-in forwards; }
@keyframes dkBack { 0% { transform: none; } 100% { transform: translate(0, -60px); opacity: 0; } }
@keyframes dkPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.dkcmp { gap: 10px; align-items: flex-start !important; } .dk-line { display: flex; align-items: center; gap: 6px; } .dk-line b { width: 58px; flex: none; text-align: left; font: 700 15px var(--head); color: var(--purple-d); } .dk-col b { font: 700 16px var(--head); color: var(--purple-d); }
.dkcmp .dk-s { width: 13px; height: 11px; margin: 1px; }
.dk-tray { display: flex; gap: 6px; } .dk-five { display: flex; }
.dk-cols { display: flex; gap: 22px; } .dk-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 130px; } .dk-col .dk-row { border-color: #b8a4e8; }
.dk-hand { position: absolute; left: 254px; bottom: 6px; font-size: 44px; transform: rotate(-12deg); z-index: 3; }
.dk-leje { position: absolute; left: 266px; bottom: 50px; width: 28px; height: 22px; border-radius: 50% 42% 50% 46%; background: radial-gradient(circle at 35% 30%, #fff6e0, #c9a36a 65%, #8a6a3d); box-shadow: 0 3px 3px rgba(0,0,0,.35); z-index: 4; }
.dkbox.go .dk-leje { animation: dkUp 1.5s ease-in-out; }
.dk-up { position: absolute; left: 296px; bottom: 90px; font-size: 26px; color: #6C4BF4; opacity: 0; }
.dkbox.go .dk-up { animation: dkArrow 1.5s ease-out; }
@keyframes dkUp { 0% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-130px) rotate(200deg); } 100% { transform: translateY(0) rotate(360deg); } }
@keyframes dkArrow { 0% { opacity: 0; transform: translateY(20px); } 25% { opacity: 1; } 60% { opacity: 0; transform: translateY(-40px); } 100% { opacity: 0; } }
@keyframes dkOut { 0% { transform: translate(0, 0); } 50% { transform: translate(calc(var(--tx) * .5), -34px); } 100% { transform: translate(var(--tx), var(--ty)); } }
@media (prefers-reduced-motion: reduce) { .dkbox.go .dk-leje, .dkbox.go .dk-up { animation: none; } }

/* fractions of a group: one row per equal part */
.stem.g3fgrp { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 100%; margin: 0 auto; }
.g3fgrp .fg-row { display: flex; gap: 4px; padding: 3px 10px; border-radius: 14px; background: #FFF4D6; border: 2px dashed #E8B64A; font-size: 28px; line-height: 1.15; }
.g3fgrp.sm .fg-row { font-size: 22px; gap: 2px; padding: 3px 8px; }
.stem.g3fshare { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.g3fshare .pile2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; font-size: 26px; max-width: 320px; }
.g3fshare .kids2 { display: flex; gap: 10px; } .g3fshare .kids2 img { width: 52px; height: 52px; border-radius: 50%; }

/* Thinking Lab Level 4: interactive pipes, belts and looping robot */
.lbtap { font: 700 14px var(--body, inherit); color: #5b5470; text-align: center; margin-top: 4px; }
.lbbk { cursor: pointer; } .lbtapme { cursor: pointer; }
.lbw { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.lbw.on { opacity: 1; animation: lbFlow 1.3s ease-in forwards; }
.lbfill { opacity: 0; } .lbfill.on { animation: lbFill .5s 1.2s ease-out forwards; }
.lbstop { opacity: 0; } .lbstop.on { animation: lbStop .9s 1.1s ease-out 2 both; }
@keyframes lbFlow { to { stroke-dashoffset: 0; } }
@keyframes lbFill { to { opacity: .8; } }
@keyframes lbStop { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
.lbstop { transform-box: fill-box; transform-origin: center; }
.lbwh.on.cw { animation: lbSpin 2.4s linear infinite; } .lbwh.on.acw { animation: lbSpin 2.4s linear infinite reverse; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lbbot { transition: transform .45s ease; }
.lbtr { fill: #0E9F8E; opacity: .45; }
.lbsteps { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 2px 0 4px; }
.lbstp { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #F1ECFF; color: var(--purple-d); font: 800 16px/1 var(--head); }
.lbstp.on { background: #0E9F8E; color: #fff; }
@media (prefers-reduced-motion: reduce) { .lbw.on { animation-duration: .01s; } .lbwh.on.cw, .lbwh.on.acw { animation-duration: 6s; } }
.lbtries { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.lbtry { font: 700 15px var(--head); padding: 7px 12px; border-radius: 12px; border: 2px solid #0E9F8E; background: #fff; color: #0B6F64; cursor: pointer; }
.lbtry.on { background: #0E9F8E; color: #fff; }
.lbbot.lboff { animation: lbShake .5s 2; } @keyframes lbShake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.lbcwt { flex-direction: column; align-items: center; } .lbcrow { display: flex; gap: 6px; justify-content: center; width: 100%; } .lbcrow .lbcir { width: 31%; max-width: 150px; min-width: 0; }
.lbglow { fill: #FFD84D; opacity: 0; } .lbcir.on.lbok .lbglow { animation: lbGlow 2.4s ease-out forwards; }
@keyframes lbGlow { 0% { opacity: 0; } 20%, 80% { opacity: .95; } 100% { opacity: .6; } }
.lbflt { fill: none; stroke: #E2513C; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; } .lbcir.on .lbflt { animation: lbStop .8s ease-out 3; }
.lbseet { flex-direction: column; align-items: center; }
/* Grade 3 sharing games (content-g3-share.js) */
.rmw { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; margin: 0 auto; }
.rm-pile { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; font-size: 26px; max-width: 330px; min-height: 8px; }
.rm-pile.sm { font-size: 19px; }
.rm-plates { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rm-plate { display: flex; flex-direction: column; align-items: center; background: #FFF4D6; border: 2px dashed #E8B64A; border-radius: 14px; padding: 4px; width: 62px; }
.rm-plate img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; }
.rm-got { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; font-size: 15px; min-height: 18px; align-items: center; }
.rm-boxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 330px; }
.rm-box { display: flex; flex-wrap: wrap; width: 70px; justify-content: center; gap: 1px; font-size: 13px; padding: 3px; border-radius: 10px; background: #E7F6EE; border: 2px solid #22A06B; }
.rm-left { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; background: #FDE7E7; border: 2px dashed #E05A5A; font-size: 20px; }
.rm-left small { font-size: 13px; font-weight: 700; color: #A33; }
.rm-lo { display: flex; gap: 2px; flex-wrap: wrap; }
.rm-go { font: inherit; font-weight: 800; font-size: 16px; padding: 10px 16px; border-radius: 999px; border: 0; background: #5E5785; color: #fff; cursor: pointer; min-height: 44px; }
.rm-cutbar { display: flex; width: 80px; height: 26px; border-radius: 4px; overflow: hidden; gap: 0; transition: gap .4s; }
.rm-cutbar i { flex: 1; background: #7B4A2A; border: 1px solid #4A2A12; }
.rm-cutbar.split { gap: 5px; }
.rm-piece { display: inline-block; height: 14px; background: #7B4A2A; border: 1px solid #4A2A12; border-radius: 2px; margin-left: 2px; }
.rm-frame { width: 260px; max-width: 86vw; height: 46px; border: 3px solid #5E5785; border-radius: 8px; background: #fff; position: relative; overflow: hidden; }
.rm-frame.half { width: 130px; max-width: 43vw; }
.rm-frame.half .rm-build i { width: 50% !important; }
.rm-build { display: flex; height: 100%; }
.rm-build i { display: flex; align-items: center; justify-content: center; height: 100%; background: #FFC93C; border-right: 3px solid #5E5785; font-style: normal; font-weight: 800; color: #5E5785; box-sizing: border-box; }
.rm-build.full i { background: #22C55E; color: #fff; }
.rm-pc { display: flex; align-items: center; gap: 8px; } .rm-pc span { display: inline-block; height: 30px; background: #FFC93C; border: 3px solid #5E5785; border-radius: 4px; }
.rm-msg { min-height: 22px; font-weight: 800; color: #15803D; font-size: 18px; }
.g3fgrp .fg-row.ate { opacity: .45; background: #FDE7E7; border-color: #E05A5A; }
.rmw .pop { animation: rmPop .35s ease-out; } @keyframes rmPop { from { transform: scale(.4); opacity: .3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rmw .pop { animation: none; } }
.rmw [hidden] { display: none !important; }
.rm-eq b { font-size: 20px; } .rm-cutbar.gone { visibility: hidden; height: 0; }
/* Grade 3 "Who goes first?" (content-g3-bod.js) */
.bdw { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; margin: 0 auto; }
.bd-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 6px; border-radius: 14px; background: #EEF2FF; max-width: 340px; }
.bd-eng, .bd-shop { font-size: 30px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.bd-shop small { font-size: 11px; font-weight: 800; color: #5E5785; }
.bd-n { display: flex; flex-direction: column; align-items: center; font-weight: 900; font-size: 20px; color: #2B2250; transition: transform .3s, background .3s; }
.bd-n.car { min-width: 40px; padding: 6px 6px 10px; border-radius: 8px; background: #FFC93C; border: 3px solid #5E5785; position: relative; }
.bd-n.car::after { content: '● ●'; position: absolute; bottom: -9px; font-size: 10px; color: #2B2250; letter-spacing: 6px; }
.bd-n.kid img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.bd-n.kid b { background: #fff; border-radius: 8px; padding: 0 6px; border: 2px solid #5E5785; margin-top: 2px; }
.bd-o { font-weight: 900; font-size: 22px; color: #5E5785; padding: 0 2px; }
.bd-g { display: inline-flex; align-items: center; gap: 4px; padding: 10px 6px 4px; border: 3px solid #E05A5A; border-radius: 16px; background: #FFE8E8; position: relative; }
.bd-hand { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 18px; }
.bd-n.nx, .bd-o.nx, .bd-g.nx { transform: scale(1.12); background: #22C55E; border-radius: 12px; }
.bd-g.nx .bd-n b { border-color: #15803D; }
.bd-res { min-height: 24px; font-weight: 900; font-size: 20px; color: #15803D; }
.bd-opt { font-weight: 900; font-size: 22px; color: #2B2250; white-space: nowrap; }
/* Grade 1 number line (Molapalo) */
.nlw { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.nl-box { position: relative; width: 100%; max-width: 340px; background: #fff; border-radius: 16px; padding: 18px 4px 4px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.nl-svg { width: 100%; display: block; }
.nl-frog { position: absolute; top: 50px; font-size: 26px; transform: translateX(-50%); transition: left .55s ease-in-out; pointer-events: none; }
.nl-frog.jump { animation: nlJump .55s ease-in-out; }
@keyframes nlJump { 0% { top: 50px; } 50% { top: 14px; } 100% { top: 50px; } }
.nl-arc { opacity: 0; transition: opacity .4s; } .nl-arc.on { opacity: 1; }
.nl-q.hot { animation: nlHot .5s ease-in-out 3; transform-origin: center; transform-box: fill-box; }
@keyframes nlHot { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .nl-frog, .nl-frog.jump, .nl-q.hot { animation: none; transition: none; } }

/* make your own number line (content-nl.js) */
.nlb { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.nb-box { padding: 10px 4px 4px; }
.nb-sum { font-weight: 800; color: #2B2250; font-size: 15px; min-height: 20px; text-align: center; }
.nb-sum.far { color: #DC2626; animation: nbShake .4s; }
@keyframes nbShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.nb-keys { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.nb-k, .nb-u { min-width: 44px; padding: 9px 5px; border-radius: 14px; border: 0; font: inherit; font-weight: 900; font-size: 18px; cursor: pointer; }
.nb-k { background: #F97316; color: #fff; box-shadow: 0 3px 0 #C2410C; }
.nb-u { background: #E5E7EB; color: #2B2250; box-shadow: 0 3px 0 #B8B5C9; }
.nb-k:active, .nb-u:active { transform: translateY(2px); box-shadow: none; }
.nb-k:disabled { opacity: .35; }
.nb-hint { font-size: 12px; color: #6B6790; }
.nb-pk { cursor: pointer; }
.play:has(.nlb:not(.done)) .choices { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .nb-sum.far { animation: none; } }
.nb-land { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; font-weight: 800; color: #2B2250; }
.nb-land[hidden] { display: none; }
.nb-lk { min-width: 56px; padding: 8px 6px; border-radius: 12px; border: 2px solid #F59E0B; background: #FFFBEB; color: #2B2250; font: inherit; font-weight: 900; font-size: 18px; cursor: pointer; }
.nb-lk.no { border-color: #DC2626; color: #DC2626; animation: nbShake .4s; opacity: .5; }
.nb-box { position: relative; overflow: visible; }
.nb-fr { font-size: 24px; transition: left .45s ease-in-out; }
.nb-fr.jump { animation: nbHop .45s ease-in-out; }
@keyframes nbHop { 50% { transform: translate(-50%, -22px); } }
.nb-yay { position: absolute; right: 6px; top: 2px; font-size: 26px; opacity: 0; transform: scale(.3); pointer-events: none; }
.nb-box.nbok .nb-yay { animation: nbYay .9s ease-out forwards; }
@keyframes nbYay { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 60% { opacity: 1; transform: scale(1.3) rotate(10deg); } 100% { opacity: 1; transform: scale(1); } }
.nb-star { display: table; margin: 5px auto 0; background: #FEF3C7; color: #92400E; border-radius: 10px; padding: 1px 8px; font-size: 13px; animation: nbYay .7s ease-out; }
@media (prefers-reduced-motion: reduce) { .nb-fr, .nb-fr.jump, .nb-box.nbok .nb-yay, .nb-star { animation: none; transition: none; opacity: 1; transform: none; } }

/* ===== Dream Bed (Bolao jwa Ditoro): reward game opened by stickers ===== */
body:has(#app.db-farm) { background: linear-gradient(180deg, #BFE6FF 0, #E9F7D9 260px, #DDEFC4 100%); }
body:has(#app.db-dark) { background: linear-gradient(180deg, #14194A 0, #27306E 100%); }
.db-hd .hello span { font-family: var(--display, inherit); }
.db-dark .db-hd .hello span, .db-dark .db-hd .hello small { color: #fff; }
.chal-banner.db-ban { --sc: #4FA3E0; background: linear-gradient(90deg, #DCEFFF, #FFF3D6); }
.chal-banner.db-ban .cb-ic { font-size: 28px; }
.stk-book .db-ban { margin: 0 auto 4px; }
/* menu */
.db-menu { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; padding-bottom: 30px; }
.db-pick h2 { font-size: 22px; display: flex; align-items: center; gap: 8px; justify-content: center; margin: 4px 0 10px; }
.db-riders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.db-rd { border: 0; background: #fff; border-radius: 20px; padding: 8px 4px 6px; display: grid; justify-items: center; gap: 4px; font: inherit; color: var(--ink); box-shadow: 0 4px 0 #E2DCF2; cursor: pointer; }
.db-rd img { width: min(76px, 18vw); height: min(76px, 18vw); border-radius: 50%; object-fit: cover; background: #FBF4E6; }
.db-rd b { font-size: 16px; }
.db-rd.on { box-shadow: 0 0 0 4px #FFB627, 0 6px 0 #E8A11A; transform: translateY(-2px); }
.db-levels { display: grid; gap: 12px; }
.db-lv { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; border: 0; text-align: left; font: inherit; color: var(--ink); background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 5px 0 #DCE9F5, 0 12px 20px -14px rgba(0,0,0,.3); cursor: pointer; }
.db-lvpic { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #DCEFFF, #FFE9C2); display: grid; place-items: center; }
.db-lvpic img { width: 100%; height: 100%; object-fit: cover; }
.db-lvq { font-size: 44px; filter: grayscale(.3); }
.db-lv.shut .db-lvpic img, .db-lv.shut .db-lvq { filter: grayscale(.85) brightness(.9); }
.db-lock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30,30,60,.25); }
.db-lock svg { width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.db-lvt { display: grid; gap: 2px; }
.db-lvt small { color: var(--ink-2); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.db-lvt b { font-size: 22px; }
.db-lvt em { font-style: normal; font-weight: 800; color: #2E8B57; display: flex; align-items: center; gap: 4px; }
.db-lv.shut .db-lvt em { color: var(--ink-2); }
.db-lvt em svg { width: 18px; height: 18px; }
.db-lvt em i svg { fill: #DDD6EE; } .db-lvt em i.on svg { fill: #FFB627; }
.db-lv.wrong { animation: shake .4s; }
/* bedtime */
.db-night { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.db-room { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.db-room > img:first-child { width: 100%; height: 100%; object-fit: cover; transform-origin: 80% 22%; transition: transform 3s ease-in, filter 3s; }
.db-kid { position: absolute; left: 32.5%; top: 30.5%; width: 9.5%; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: all 3s ease-in; }
.db-room.db-go > img:first-child { transform: scale(2.4); filter: brightness(.7) saturate(1.2); }
.db-room.db-go .db-kid { left: 78%; top: 18%; width: 3%; opacity: 0; }
.db-room.db-go::after { content: '✨ ⭐ ✨'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; animation: dbtw 1s ease-in-out infinite alternate; }
@keyframes dbtw { from { opacity: .3; transform: scale(.9); } to { opacity: 1; transform: scale(1.1); } }
.db-say { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 12px 16px; }
.db-say p { margin: 0; font-size: 20px; font-weight: 700; flex: 1; }
.db-routine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.db-rt { border: 0; border-radius: 20px; background: #fff; padding: 12px 6px; display: grid; justify-items: center; gap: 6px; font: inherit; color: var(--ink); box-shadow: 0 5px 0 #C9C2E8; cursor: pointer; position: relative; }
.db-rt span { font-size: 44px; } .db-rt b { font-size: 16px; line-height: 1.15; text-align: center; }
.db-rt.done { background: #E3F8E1; box-shadow: 0 5px 0 #8DD38A; }
.db-rt.done::after { content: '✓'; position: absolute; top: 6px; right: 10px; color: #2E8B57; font-weight: 900; font-size: 22px; }
/* the drive */
.db-drive, .db-map { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.db-hud { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; }
.db-hud > span:not(.db-prog) { background: #fff; border-radius: 999px; padding: 4px 12px; box-shadow: 0 3px 0 #D9E7C8; white-space: nowrap; }
.db-prog { position: relative; flex: 1; height: 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px #D9E7C8; }
.db-prog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #7BD148, #2EC4B6); transition: width .6s; }
.db-pbed, .db-pend { position: absolute; top: 50%; transform: translateY(-55%); font-size: 22px; transition: left .6s; }
.db-pbed { left: -12px; } .db-pend { right: -10px; }
.db-qbox { display: flex; align-items: flex-start; gap: 10px; background: #fff; border-radius: 20px; padding: 10px 12px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.35); min-height: 96px; }
.db-qbox.pop { animation: dbpop .35s ease-out; }
@keyframes dbpop { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
.db-host { width: 56px; height: 56px; border-radius: 50%; flex: none; border: 3px solid #FFE3A6; cursor: pointer; }
.db-qin { flex: 1; min-width: 0; display: grid; gap: 8px; }
.db-qt { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.db-vis { display: flex; justify-content: center; }
.db-grps { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; width: 100%; }
.db-g { display: grid; justify-items: center; background: #F3FBEA; border: 2px solid #BFE3A2; border-radius: 12px; padding: 3px 5px 2px; }
.db-gi { font-size: 20px; line-height: 1.1; letter-spacing: -2px; }
.k5 .db-gi { font-size: 15px; display: grid; grid-template-columns: repeat(5, auto); }
.k2 .db-g { background: #7DBB55; border-color: #5E9A3B; } .k2 .db-g em { color: #fff; } .k2 .db-gi { font-size: 22px; }
.k10 .db-g { padding: 3px 3px 1px; background: #3D7DD8; border-color: #2A5FB0; } .k10 .db-g em { color: #fff; }
.k10 .db-gi { font-size: 11px; display: grid; grid-template-columns: repeat(5, 12px); justify-items: center; letter-spacing: 0; line-height: 1.15; }
.db-g em, .db-tray em { font-style: normal; font-weight: 900; font-size: 13px; color: #6C4BF4; visibility: hidden; }
.db-vis.hint .db-g em, .db-vis.hint .db-tray em { visibility: visible; animation: dbpop .4s both; }
.db-vis.hint .db-g:nth-child(2) em, .db-vis.hint .hole:nth-child(2) em { animation-delay: .3s; }
.db-tray { display: grid; grid-template-columns: repeat(10, 26px); gap: 3px; background: #F6E3C4; border: 3px solid #C99A5B; border-radius: 14px; padding: 5px; }
.db-tray > span { width: 26px; height: 26px; display: grid; place-items: center; font-size: 18px; }
.db-tray > span:nth-child(10n+5) { margin-right: 0; }
.db-tray .hole { border: 2px dashed #B8864B; border-radius: 50%; background: #FFF6E6; }
.db-tray .hole em { font-size: 12px; }
.db-eq { text-align: center; font-size: 22px; font-weight: 900; margin-top: 4px; }
.db-eq .box { display: inline-block; min-width: 34px; border: 3px dashed #6C4BF4; border-radius: 8px; color: #6C4BF4; }
.db-vis:has(.db-tray) { flex-direction: column; align-items: center; }
.db-animal { font-size: 56px; line-height: 1; animation: dbpop .4s; }
.db-road { --off: 0px; position: relative; display: grid; grid-template-columns: 13% 1fr 13%; height: min(42vh, 400px); min-height: 250px; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); touch-action: none; user-select: none; }
.db-verge { background-color: #8CCB5E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='240'%3E%3Ctext x='8' y='40' font-size='30'%3E%F0%9F%8C%B3%3C/text%3E%3Ctext x='18' y='110' font-size='22'%3E%F0%9F%8C%BB%3C/text%3E%3Ctext x='6' y='170' font-size='26'%3E%F0%9F%90%84%3C/text%3E%3Ctext x='20' y='225' font-size='20'%3E%F0%9F%8C%BE%3C/text%3E%3C/svg%3E"); background-repeat: repeat-y; background-size: 100% 240px; background-position: center var(--off); }
.db-verge.r { background-position: center calc(var(--off) + 120px); transform: scaleX(-1); }
.db-lanes { --bh: min(132px, 20vh); position: relative; border-left: 5px solid #E9D3A8; border-right: 5px solid #E9D3A8;
  background: linear-gradient(#F5E6C4 55%, transparent 0) calc(33.333% + 1px) var(--off) / 6px 60px repeat-y, linear-gradient(#F5E6C4 55%, transparent 0) calc(66.666% - 1px) var(--off) / 6px 60px repeat-y, linear-gradient(90deg, #B9774A, #CF9466 18%, #CF9466 82%, #B9774A); }
.db-gates { position: absolute; inset: 0; --y: 0; }
.db-gate { position: absolute; left: calc(var(--l) * 33.333% + 4%); width: 25.333%; top: calc((100% - var(--bh) - 84px) * var(--y)); height: 70px; border: 0; padding: 0; font: inherit; cursor: pointer;
  display: grid; place-items: center; align-content: center; background: #FFF7E2; color: #3B2A00; border-radius: 14px; box-shadow: 0 0 0 4px #8B5A2B, 0 6px 0 4px #6B4220; }
.db-gate b { font-size: clamp(24px, 6vw, 34px); font-weight: 900; line-height: 1; }
.db-gate b.emo { font-size: clamp(28px, 7vw, 38px); }
.db-gate small { font-size: 13px; font-weight: 800; }
.db-post { display: none; }
.db-gate.right { background: #D8F7D1; box-shadow: 0 0 0 4px #2E8B57, 0 6px 0 4px #1F6B40; animation: dbpass .9s ease-in forwards; }
@keyframes dbpass { to { transform: translateY(240px) scale(1.15); opacity: 0; } }
.db-gate.wrong { background: #FFE1E1; box-shadow: 0 0 0 4px #E05656, 0 6px 0 4px #B33E3E; animation: shake .4s; }
.db-gate.glow { animation: dbglow 1s ease-in-out infinite alternate; }
@keyframes dbglow { to { box-shadow: 0 0 0 4px #FFB627, 0 0 22px 8px #FFD36B; } }
.db-bed { --lane: 1; position: absolute; bottom: 12px; height: var(--bh); width: calc(var(--bh) / 1.5); left: calc((var(--lane) + .5) * 33.333%); transform: translateX(-50%); transition: left .22s ease-out; z-index: 2; filter: drop-shadow(0 8px 6px rgba(0,0,0,.3)); }
.db-bedimg { width: 100%; height: 100%; display: block; }
.db-rider { position: absolute; left: 50%; top: 8%; width: 50%; transform: translateX(-50%); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); background: #FBF4E6; }
.db-bed.boost { animation: dbboost .6s ease-out; }
@keyframes dbboost { 40% { transform: translateX(-50%) translateY(-18px) scale(1.06); } }
.db-bed.bump { animation: dbbump .5s; }
@keyframes dbbump { 25% { transform: translateX(-56%) rotate(-6deg); } 50% { transform: translateX(-44%) rotate(6deg); } 75% { transform: translateX(-53%) rotate(-3deg); } }
.db-speed { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.55) 22px 24px, transparent 24px 60px); -webkit-mask: linear-gradient(transparent, #000 60%, transparent); mask: linear-gradient(transparent, #000 60%, transparent); }
.db-speed.on { opacity: 1; animation: dbspd .25s linear infinite; }
@keyframes dbspd { from { transform: translateY(-20px); } to { transform: translateY(20px); } }
.db-ctl { display: grid; grid-template-columns: 84px 1fr 84px; align-items: center; gap: 10px; }
.db-steer { height: 70px; border: 0; border-radius: 22px; background: #FFB627; color: #3B2A00; font-size: 34px; font-weight: 900; box-shadow: 0 6px 0 #D18D0B; cursor: pointer; }
.db-steer:active { transform: translateY(4px); box-shadow: 0 2px 0 #D18D0B; }
.db-tip { text-align: center; font-weight: 800; font-size: 15px; color: var(--ink-2); line-height: 1.2; }
/* map grid */
.db-stepn { margin-left: auto; }
.db-arrows { display: flex; flex-wrap: wrap; gap: 6px; }
.db-ar { width: 42px; height: 42px; display: grid; place-items: center; font-size: 26px; background: #F1ECFF; border-radius: 12px; border: 3px solid transparent; }
.db-ar.now { border-color: #FFB627; background: #FFF3D6; transform: scale(1.08); }
.db-ar.done { background: #D8F7D1; opacity: .6; }
.db-ar.shake { animation: shake .4s; border-color: #E05656; }
.db-grid { position: relative; display: grid; grid-template-columns: repeat(var(--w), 1fr); aspect-ratio: calc(var(--w) / var(--h)); border-radius: 20px; overflow: hidden; border: 5px solid #8B5A2B; background: #8CCB5E; width: 100%; max-width: 560px; margin: 0 auto; }
.db-cell { display: grid; place-items: center; background: #9BD46C; font-size: clamp(22px, 6vw, 36px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.db-cell.b { background: #8CCB5E; }
.db-cell.mud { background: radial-gradient(ellipse at 50% 55%, #6B4423 0 42%, #8A5A33 43% 60%, transparent 61%), #9BD46C; }
.db-cell.mud.b { background: radial-gradient(ellipse at 50% 55%, #6B4423 0 42%, #8A5A33 43% 60%, transparent 61%), #8CCB5E; }
.db-deco { opacity: .85; font-size: .8em; }
.db-gi i { font-style: normal; }
.db-lamb { background: #FFF3D6; border-radius: 50%; width: 82%; aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 0 0 3px #FFB627; animation: dbtw 1s ease-in-out infinite alternate; }
.db-lamb.found { animation: dbboost .8s ease-out 2; }
.db-gbed { position: absolute; left: calc(var(--x) * 100% / var(--w)); top: calc(var(--y) * 100% / var(--h)); width: calc(100% / var(--w)); height: calc(100% / var(--h)); display: grid; place-items: center; transition: left .3s ease-out, top .3s ease-out; z-index: 2; }
.db-bed.sm { position: relative; left: auto; bottom: auto; transform: none; height: 92%; width: auto; aspect-ratio: 2/3; transition: transform .25s; }
.db-gbed[data-d="r"] .db-bed.sm { transform: rotate(90deg); } .db-gbed[data-d="l"] .db-bed.sm { transform: rotate(-90deg); } .db-gbed[data-d="d"] .db-bed.sm { transform: rotate(180deg); }
.db-gbed[data-d] .db-rider { transform: translateX(-50%) rotate(calc(var(--rr, 0) * 1deg)); }
.db-gbed[data-d="r"] { --rr: -90; } .db-gbed[data-d="l"] { --rr: 90; } .db-gbed[data-d="d"] { --rr: 180; }
.db-gbed.bump { animation: shake .4s; }
.db-gbed.stuck .db-bed { filter: sepia(.8) brightness(.8); animation: dbbump .6s; }
.db-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.db-dir { border: 0; border-radius: 18px; background: #FFB627; color: #3B2A00; padding: 8px 2px; display: grid; justify-items: center; gap: 2px; font: inherit; box-shadow: 0 5px 0 #D18D0B; cursor: pointer; }
.db-dir span { font-size: 30px; line-height: 1; } .db-dir b { font-size: 13px; line-height: 1.1; text-align: center; }
.db-dir:active { transform: translateY(4px); box-shadow: 0 1px 0 #D18D0B; }
/* wake up */
.db-wake .fin-card { position: relative; }
.db-sun { font-size: 54px; animation: dbtw 1.4s ease-in-out infinite alternate; }
.db-kid.big { position: static; width: 110px; border: 4px solid #FFE3A6; transition: none; }
.db-tipp { font-size: 18px; font-weight: 700; background: #EEF4FF; border-radius: 16px; padding: 10px 14px; margin: 8px 0; }
.db-res { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 18px; font-weight: 800; }
.db-res span { background: #FFF6DE; border-radius: 999px; padding: 6px 14px; }
.db-nb { font-weight: 900; color: #2E8B57; font-size: 19px; margin: 8px 0 4px; } .db-nb.soft { color: var(--ink-2); font-weight: 800; }
@media (max-width: 420px) { .db-lv { grid-template-columns: 110px 1fr; } .db-lvt b { font-size: 19px; } .db-tray { grid-template-columns: repeat(10, 22px); } .db-tray > span { width: 22px; height: 22px; font-size: 15px; } .db-ctl { grid-template-columns: 70px 1fr 70px; } .db-qt { font-size: 16px; } }
.db-qbox { flex-wrap: wrap; align-items: center; } .db-qin { display: contents; }
.db-qbox .db-qt { order: 1; flex: 1; min-width: 0; } .db-qspk { order: 2; } .db-qbox .db-vis { order: 3; flex: 0 0 100%; }
/* Dream Bed Level 2: Bontle Town */
.db-road.town .db-verge { background-color: #D9CDB8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='240'%3E%3Ctext x='6' y='42' font-size='30'%3E%F0%9F%8F%A0%3C/text%3E%3Ctext x='12' y='105' font-size='24'%3E%F0%9F%8C%B3%3C/text%3E%3Ctext x='6' y='170' font-size='28'%3E%F0%9F%8F%AA%3C/text%3E%3Ctext x='16' y='228' font-size='22'%3E%F0%9F%9A%8F%3C/text%3E%3C/svg%3E"); }
.db-road.town .db-lanes { border-color: #F2F2F2; background: linear-gradient(#fff 55%, transparent 0) calc(33.333% + 1px) var(--off) / 6px 60px repeat-y, linear-gradient(#fff 55%, transparent 0) calc(66.666% - 1px) var(--off) / 6px 60px repeat-y, linear-gradient(90deg, #4A4E5A, #5C6170 18%, #5C6170 82%, #4A4E5A); }
.db-clock svg { width: 110px; height: 110px; display: block; filter: drop-shadow(0 3px 4px rgba(0,0,0,.18)); }
.db-cash { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.db-vis .coin { width: 54px; height: 54px; } .db-vis .coin.c2 { width: 58px; height: 58px; } .db-vis .coin.c5 { width: 62px; height: 62px; }
.db-vis .note { width: 100px; height: 52px; } .db-vis .note img, .db-vis .coin img { width: 100%; height: 100%; object-fit: contain; }
.db-shop { display: flex; align-items: center; justify-content: center; gap: 18px; }
.db-item { position: relative; font-size: 52px; line-height: 1; }
.db-tag { position: absolute; right: -22px; top: -6px; font: 900 16px var(--head, inherit); background: #FFF3D6; color: #8A4B00; border: 2px solid #E8A11A; border-radius: 10px; padding: 1px 6px; transform: rotate(8deg); }
.db-pay { display: grid; place-items: center; }
.db-vis .db-hn { display: none; } .db-vis.hint .db-hn { display: block; animation: dbpop .4s both; }
.db-vis:has(.db-cash), .db-vis:has(.db-shop) { flex-direction: column; align-items: center; }
.db-gate small { line-height: 1.05; text-align: center; padding: 0 2px; }
.db-grid.town { border-color: #6B6F7A; background: #C9CBD3; }
.db-grid.town .db-cell { background: #D8DAE1; } .db-grid.town .db-cell.b { background: #CBCED7; }
.db-grid.town .db-cell.mud, .db-grid.town .db-cell.mud.b { background: repeating-linear-gradient(45deg, #FFE2B8 0 9px, #FFF6E8 9px 18px); }
.db-grid.town .db-cell.mud { font-size: clamp(24px, 7vw, 36px); display: grid; place-items: center; box-shadow: inset 0 0 0 2px #F5A54A; }
.db-grid.town .db-lamb { background: #fff; }
.db-gate small { font-size: clamp(10px, 3vw, 12px); hyphens: manual; overflow-wrap: break-word; max-width: 100%; }
/* Dream Bed Level 3: Lesedi Beach */
.db-road.beach .db-verge { background-color: #F3DDA8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='240'%3E%3Ctext x='8' y='42' font-size='28'%3E%F0%9F%8C%B4%3C/text%3E%3Ctext x='14' y='104' font-size='22'%3E%F0%9F%90%9A%3C/text%3E%3Ctext x='6' y='168' font-size='28'%3E%E2%9B%B1%EF%B8%8F%3C/text%3E%3Ctext x='14' y='228' font-size='22'%3E%F0%9F%A6%80%3C/text%3E%3C/svg%3E"); }
.db-road.beach .db-verge.r { background-color: #7FD3E6; }
.db-road.beach .db-lanes { border-color: #F7E9C6; background: linear-gradient(#fff 55%, transparent 0) calc(33.333% + 1px) var(--off) / 6px 60px repeat-y, linear-gradient(#fff 55%, transparent 0) calc(66.666% - 1px) var(--off) / 6px 60px repeat-y, linear-gradient(90deg, #4E5563, #606878 18%, #606878 82%, #4E5563); }
.db-gate b.txt { font-size: clamp(10px, 2.75vw, 13px); font-weight: 900; line-height: 1.1; padding: 0 2px; text-align: center; white-space: nowrap; letter-spacing: -.2px; }
.db-gates.txt .db-gate { width: 30.5%; left: calc(var(--l) * 33.333% + 1.4%); }
.db-cal { display: inline-grid; min-width: 150px; border-radius: 14px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); overflow: hidden; border: 3px solid #E4574B; }
.db-cal b { display: block; padding: 10px 14px; font-size: 22px; font-weight: 900; color: #3B2A00; }
.db-cal.day b { background: radial-gradient(circle, transparent 58%, #E4574B 60%, #E4574B 66%, transparent 68%); padding: 16px 22px; }
.db-pie { width: 120px; height: 120px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.18)); }
.db-share { display: grid; gap: 6px; justify-items: center; }
.db-or { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 300px; font-size: 24px; line-height: 1; }
.db-or i { font-style: normal; }
.db-kids { display: flex; gap: 14px; font-size: 34px; }
.db-shg { gap: 10px; justify-content: center; } .db-vis.hint .db-shg { display: flex; }
.db-shg span { display: grid; justify-items: center; font-size: 26px; background: #FFF3D6; border-radius: 10px; padding: 3px 6px; }
.db-shg em { font-style: normal; font-size: 16px; letter-spacing: -2px; }
.db-ices { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding-top: 6px; }
.db-ices .db-item { font-size: 40px; } .db-ices .db-tag { right: -18px; font-size: 13px; }
.db-vis:has(.db-share) { flex-direction: column; align-items: center; }
.db-grid.beach { border-color: #C9A35B; background: #EBD39A; }
.db-grid.beach .db-cell { background: #F6E3B4; } .db-grid.beach .db-cell.b { background: #F0D9A2; }
.db-grid.beach .db-cell.mud, .db-grid.beach .db-cell.mud.b { background: linear-gradient(180deg, #5EC4E0, #2E8FC0); display: grid; place-items: center; font-size: clamp(22px, 6vw, 32px); }
.db-grid.beach .db-lamb { background: #fff; }
/* Dream Bed Grade 3 Level 1: Thaba Farm (Karoo) */
.db-road.karoo .db-verge { background-color: #D9B77A; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='240'%3E%3Ctext x='8' y='42' font-size='26'%3E%F0%9F%AA%A8%3C/text%3E%3Ctext x='14' y='104' font-size='24'%3E%F0%9F%8C%BE%3C/text%3E%3Ctext x='6' y='168' font-size='28'%3E%F0%9F%90%91%3C/text%3E%3Ctext x='14' y='228' font-size='22'%3E%F0%9F%8C%B5%3C/text%3E%3C/svg%3E"); }
.db-road.karoo .db-lanes { border-color: #E9D3A6; background: linear-gradient(rgba(255,255,255,.55) 45%, transparent 0) calc(33.333% + 1px) var(--off) / 5px 60px repeat-y, linear-gradient(rgba(255,255,255,.55) 45%, transparent 0) calc(66.666% - 1px) var(--off) / 5px 60px repeat-y, linear-gradient(90deg, #A9774A, #BE8A5A 18%, #BE8A5A 82%, #A9774A); }
.db-grps.egg .db-g { background: #E8D2A8; border-color: #B98E55; }
.db-grps.egg .db-gi { font-size: 21px; display: grid; grid-template-columns: repeat(3, auto); letter-spacing: 0; }
.db-chain, .db-cycle { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 40px; line-height: 1; }
.db-chain i, .db-cycle i { font-style: normal; font-size: 22px; color: #8A6A3A; }
.db-chain span, .db-cycle span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: #FFF7E2; box-shadow: 0 0 0 3px #E4C58B; }
.db-chain .q, .db-cycle .q { font: 900 32px var(--head, inherit); color: #6C4BF4; background: #EFEAFF; box-shadow: 0 0 0 3px #B9A8FF; }
.db-grid.karoo { border-color: #A9774A; background: #D9B77A; }
.db-grid.karoo .db-cell { background: #E8CB92; } .db-grid.karoo .db-cell.b { background: #DFBE80; }
.db-grid.karoo .db-cell.mud, .db-grid.karoo .db-cell.mud.b { background: radial-gradient(circle at 50% 60%, #8FB36A 0 40%, transparent 42%), #DFBE80; display: grid; place-items: center; font-size: clamp(22px, 6vw, 32px); }
.db-grid.karoo .db-lamb { background: #fff; }
/* sticker book: "next level" teaser */
.stk-next { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; margin: 4px auto 0; padding: 14px 16px; border-radius: 22px; border: 3px dashed #f5b301; background: linear-gradient(135deg, #fff8e1, #fde9ff); color: var(--ink); text-align: left; box-shadow: 0 6px 0 rgba(0,0,0,.08); animation: snGlow 2.4s ease-in-out infinite; cursor: pointer; }
.stk-next .sn-lock { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #ffd54a; color: #5b3d00; font-size: 26px; }
.stk-next .sn-lock svg { width: 24px; height: 24px; }
.stk-next .sn-t { flex: 1; min-width: 0; display: grid; gap: 4px; }
.stk-next .sn-t b { font: 800 18px var(--display, var(--body)); }
.stk-next .sn-t small { font: 700 14px var(--body); color: var(--ink-2); overflow-wrap: anywhere; }
.stk-next .sn-bar { display: block; height: 10px; border-radius: 6px; background: rgba(0,0,0,.08); overflow: hidden; }
.stk-next .sn-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffb300, #ff6fb5); }
.stk-next .sn-n { flex: none; font: 800 15px var(--body); white-space: nowrap; }
.stk-next.wig { animation: snWig .45s ease; }
@keyframes snGlow { 0%, 100% { box-shadow: 0 6px 0 rgba(0,0,0,.08), 0 0 0 0 rgba(255,179,0,.0); } 50% { box-shadow: 0 6px 0 rgba(0,0,0,.08), 0 0 18px 4px rgba(255,179,0,.45); } }
@keyframes snWig { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .stk-next, .stk-next.wig { animation: none; } }
/* Dream Bed Grade 3 Level 2: Pula Town (maps, graph, trip clocks) */
.db-trip { display: flex; align-items: center; justify-content: center; gap: 8px; }
.db-trip span { display: grid; justify-items: center; gap: 2px; }
.db-trip svg { width: 78px; height: 78px; }
.db-trip b { font: 900 16px var(--body); background: #FFF3D6; border-radius: 10px; padding: 1px 8px; }
.db-trip > i { font-style: normal; font-size: 24px; color: #8A6A3A; }
.db-bars { display: flex; gap: 4px; align-items: stretch; height: 132px; }
.db-ax { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; padding-bottom: 26px; margin-top: -6px; }
.db-ax b { line-height: 12px; text-align: right; }
.db-cols { display: flex; gap: 12px; align-items: flex-end; padding: 0 8px; border-left: 3px solid #555; border-bottom: 3px solid #555; height: calc(100% - 26px); position: relative; background: repeating-linear-gradient(to top, transparent 0 calc(20% - 1px), #E4E4EC calc(20% - 1px) 20%); }
.db-col { position: relative; width: 34px; height: 100%; display: flex; align-items: flex-end; }
.db-col i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(#7FB8FF, #3D7DD8); }
.db-col:nth-child(2) i { background: linear-gradient(#FFB4C8, #E0567E); } .db-col:nth-child(3) i { background: linear-gradient(#FFE08A, #E8A317); } .db-col:nth-child(4) i { background: linear-gradient(#A6E3A1, #3E9B48); }
.db-col em { position: absolute; bottom: -27px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 22px; visibility: visible; }
.db-ref { font: 900 26px var(--display, var(--body)); color: #6C4BF4; background: #EFEAFF; border: 3px solid #B9A8FF; border-radius: 12px; padding: 0 12px; margin: 0 auto 4px; width: max-content; }
.db-vis:has(.db-ref) { flex-direction: column; align-items: center; }
.db-mm { display: grid; grid-template-columns: 16px repeat(4, 54px); gap: 2px; justify-content: center; font-size: 13px; }
.db-mm > b { display: grid; place-items: center; font-weight: 900; color: #6C4BF4; }
.db-mm > span:not(:first-child) { display: grid; justify-items: center; background: #EEF0F4; border: 1px solid #D3D7E0; border-radius: 6px; font-size: 20px; line-height: 1.1; padding: 1px 0; }
.db-mm small { font-size: 8.5px; font-weight: 800; line-height: 1; text-align: center; hyphens: manual; overflow-wrap: anywhere; padding: 0 1px; }
.db-mm .mk { box-shadow: 0 0 0 3px #FFB627; background: #FFF3D6; }
.db-arrows.runs .db-ar { width: auto; padding: 0 8px; gap: 2px; display: flex; align-items: center; font-size: 22px; }
.db-arrows.runs .db-ar b { font: 900 20px var(--body); color: #3B2A7A; }
.db-tmap { display: grid; grid-template-columns: 18px 1fr; grid-template-rows: auto 1fr; gap: 2px 4px; width: 100%; max-width: 580px; margin: 0 auto; }
.db-tl { grid-column: 2; display: grid; grid-template-columns: repeat(6, 1fr); padding: 0 5px; }
.db-tn { grid-column: 1; grid-row: 2; display: grid; grid-template-rows: repeat(5, 1fr); padding: 5px 0; }
.db-tl b, .db-tn b { display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #6C4BF4; }
.db-tmap .db-grid { grid-column: 2; grid-row: 2; max-width: none; }
.db-grid.tmap { border-color: #6B6F7A; background: #9AA0AA; }
.db-grid.tmap .db-cell.rd { background: #8A919C; position: relative; }
.db-grid.tmap .db-cell.rd.h { background: linear-gradient(transparent 46%, rgba(255,255,255,.7) 46% 54%, transparent 54%) 0 0 / 50% 100% repeat-x, #8A919C; }
.db-grid.tmap .db-cell.rd.v { background: linear-gradient(90deg, transparent 46%, rgba(255,255,255,.7) 46% 54%, transparent 54%) 0 0 / 100% 50% repeat-y, #8A919C; }
.db-grid.tmap .db-cell.rd.h.v { background: #8A919C; }
.db-grid.tmap .db-cell.bl, .db-grid.tmap .db-cell.bl.b { background: #CFE8B5; box-shadow: inset 0 0 0 2px #B7D69A; display: grid; place-items: center; }
.db-grid.tmap .db-cell.mud { box-shadow: inset 0 0 0 2px #B7D69A; }
.db-bld { display: grid; justify-items: center; font-size: clamp(20px, 6vw, 30px); line-height: 1.05; position: relative; }
.db-bld small { font-size: clamp(8px, 2.3vw, 11px); font-weight: 900; color: #2F3542; background: rgba(255,255,255,.85); border-radius: 5px; padding: 0 3px; hyphens: manual; text-align: center; line-height: 1.1; max-width: 100%; }
.db-grid.tmap .db-lamb { width: auto; aspect-ratio: auto; padding: 0 4px; border-radius: 10px; background: #fff; }
.db-bld.found { animation: dbboost .8s ease-out 2; }
.db-got { position: absolute; right: -6px; top: -6px; font-size: 20px; }
.db-grid.tmap .db-home { font-size: clamp(18px, 5vw, 26px); }
.db-qbox .db-arrows.runs { order: 3; flex: 0 0 100%; justify-content: center; }

/* ---------- Re a Boloka / We Save (content-boloka.js) ---------- */
body:has(#app.bk-bg) { background: linear-gradient(180deg, #FFF4D6 0, #FDF8EE 280px, #F3F7E6 100%); }
body:has(#app.bk-tuck) { background: linear-gradient(180deg, #E7F5FF 0, #FFF7E3 320px); }
body:has(#app.bk-class) { background: linear-gradient(180deg, #FFF0F5 0, #F7F3FF 320px); }
.chal-banner.bk-ban { --sc: #E8A11A; background: linear-gradient(90deg, #FFF0C2, #E6F7E9); }
.bk-menu, .bk-step { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; padding-bottom: 30px; }
.bk-top { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center; background: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 6px 0 #F1E3BF, 0 14px 24px -16px rgba(0,0,0,.3); }
.bk-side { display: grid; gap: 10px; }
.bk-bal { font: 900 34px var(--head, inherit); color: #8A5A00; display: flex; align-items: baseline; gap: 8px; } .bk-bal small { font-size: 15px; color: #8B7A55; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-ct { position: relative; width: 170px; margin: 0 auto; transition: transform .2s; }
.bk-ct img { width: 100%; display: block; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); }
.bk-ct.none { height: 170px; display: grid; place-items: center; font-size: 80px; background: #FFF7E3; border-radius: 24px; }
.bk-lbl { position: absolute; left: 50%; transform: translateX(-50%); background: var(--lc, #fff); border-radius: 8px; display: grid; place-items: center; text-align: center; padding: 2px 4px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.bk-ct.bottle .bk-lbl { top: 44%; width: 54%; min-height: 21%; }
.bk-ct.tin .bk-lbl { top: 36%; width: 60%; min-height: 30%; border-radius: 10px; }
.bk-lbl b { font: 900 clamp(11px, 1.6vw, 17px) var(--head, inherit); color: #3B2A00; line-height: 1.05; word-break: break-word; }
.bk-lbl i { font-style: normal; font-size: 18px; line-height: 1; } .bk-lbl em { font-style: normal; margin: 0 1px; }
.bk-ct.big { width: 210px; } .bk-ct.mini { width: 90px; } .bk-ct.mini .bk-lbl b { font-size: 9px; } .bk-ct.mini .bk-lbl i { font-size: 10px; }
.bk-ct.hov { transform: scale(1.08); } .bk-ct.target::after { content: ''; position: absolute; inset: -10px; border: 3px dashed #E8A11A; border-radius: 26px; animation: bkpulse 1.4s infinite; pointer-events: none; }
.bk-ct.gulp { animation: bkgulp .45s; } .bk-ct.wiggle { animation: bkwig .5s; }
@keyframes bkgulp { 30% { transform: scale(1.1, .92); } 60% { transform: scale(.96, 1.05); } }
@keyframes bkwig { 20% { transform: rotate(-12deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(7deg); } }
@keyframes bkpulse { 50% { opacity: .35; } }
.bk-goal { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; background: #F2FBEF; border-radius: 18px; padding: 8px 10px; border: 0; font: inherit; text-align: left; color: var(--ink); }
.bk-goal.none { grid-template-columns: 54px 1fr; background: #FFF0C2; cursor: pointer; box-shadow: 0 4px 0 #EBCB7A; } .bk-goal.nudge { animation: bkwig .6s 2; }
.bk-goal.ready { background: #FFF3C4; box-shadow: 0 0 0 3px #FFB627; }
.bk-gic { font-size: 40px; text-align: center; } .bk-gt { display: grid; gap: 4px; } .bk-gt small { color: #6B7A5A; font-weight: 700; }
.bk-gbar { height: 12px; border-radius: 999px; background: #E3EEDB; overflow: hidden; } .bk-gbar i { display: block; height: 100%; background: linear-gradient(90deg, #FFB627, #7BD148); }
.bk-days { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; } .bk-days i { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed #9BB58A; font-style: normal; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; }
.bk-days i.on { background: #7BD148; border: 2px solid #5DAF2E; } .bk-days small { font-size: 12px; color: #6B7A5A; margin-left: 4px; }
.bk-savers { grid-template-columns: repeat(8, 1fr); } .bk-savers .db-rd b { font-size: 12px; }
.bk-hud { display: flex; gap: 12px; align-items: center; } .bk-hud .db-coins { font-weight: 900; }
.bk-stage { display: grid; gap: 14px; justify-items: center; background: rgba(255,255,255,.75); border-radius: 24px; padding: 16px 12px; }
.bk-stage .db-hn { display: none; } .bk-stage.hint .db-hn { display: flex; animation: dbpop .4s both; }
.bk-row { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; width: 100%; }
.bk-tray { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; padding: 10px; background: #FFF7E3; border-radius: 20px; min-height: 90px; }
.bk-c, .bk-s, .bk-it { cursor: grab; user-select: none; -webkit-user-select: none; transition: transform .15s; border-radius: 14px; }
.bk-c.lift, .bk-s.lift, .bk-it.lift { opacity: .35; } .bk-c.glow, .bk-op.glow { box-shadow: 0 0 0 4px #FFD54A, 0 0 18px #FFD54A; }
.bk-ghost { position: fixed; z-index: 9999; pointer-events: none; display: grid; place-items: center; }
.bk-ghost.bk-s { font-size: 40px; }
.bk-s { font-size: 40px; padding: 4px; }
.shake { animation: bkshake .4s; } @keyframes bkshake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-5px); } }
.bk-want { display: flex; align-items: center; gap: 12px; background: #fff; border: 4px dashed #E8A11A; border-radius: 20px; padding: 8px 18px; }
.bk-want b { font: 900 34px var(--head, inherit); color: #8A5A00; } .bk-want.sm b { font-size: 24px; } .bk-want.sm .coin { transform: scale(.8); }
.bk-two { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.bk-choice { border: 0; background: #fff; border-radius: 24px; padding: 14px; width: 200px; display: grid; gap: 6px; justify-items: center; font: inherit; cursor: pointer; box-shadow: 0 6px 0 #F1E3BF; }
.bk-choice img { height: 170px; object-fit: contain; } .bk-choice b { font-size: 20px; }
.bk-tip { margin: 0; font-weight: 700; color: #6B5A2A; display: flex; gap: 6px; align-items: center; }
.bk-deco { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; } .bk-dside { display: grid; gap: 12px; justify-items: center; max-width: 340px; }
.bk-cols { display: flex; gap: 10px; } .bk-col { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 2px #D8C9A3; cursor: pointer; }
.bk-spill { display: flex; flex-wrap: wrap; gap: 8px; min-width: 160px; justify-content: center; } .bk-fall { animation: bkfall .6s calc(var(--i) * .12s) both; }
@keyframes bkfall { from { transform: translate(-80px, -60px) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bk-opts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bk-op { border: 0; background: #fff; border-radius: 20px; min-width: 96px; min-height: 76px; padding: 10px 16px; font: 900 22px var(--head, inherit); color: var(--ink); cursor: pointer; box-shadow: 0 5px 0 #E3D3A8; display: grid; gap: 4px; justify-items: center; align-content: center; }
.bk-opts.wide .bk-op { min-width: 200px; font-size: 19px; }
.bk-op.right { background: #DFF7D3; box-shadow: 0 5px 0 #7BD148; } .bk-op.wrong { background: #FFE1E1; box-shadow: 0 5px 0 #F08C8C; opacity: .7; }
.bk-op small { font-size: 13px; font-weight: 700; } .bk-op .bk-emo { font-size: 38px; } .bk-op .bk-emo img { height: 46px; }
.bk-mv { display: flex; align-items: center; justify-content: center; } .bk-mv .coin, .bk-mv .note { transform: scale(.8); margin: -4px; }
.bk-rand { font: 900 30px var(--head, inherit); color: #2F6B1F; } .bk-rand.big { font-size: 40px; background: #fff; border-radius: 16px; padding: 6px 14px; }
.bk-cash { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.bk-hn { gap: 10px; justify-content: center; flex-wrap: wrap; } .bk-coinrt { display: grid; justify-items: center; } .bk-coinrt .coin, .bk-coinrt .note { transform: scale(.55); margin: -14px; } .bk-coinrt em { font-style: normal; font-weight: 900; color: #6C4BF4; }
.bk-book { background: #FFFDF5; border: 3px solid #F08A24; border-radius: 16px; padding: 8px; width: min(100%, 520px); box-shadow: 6px 6px 0 #F7C08A; background-image: repeating-linear-gradient(180deg, transparent 0 41px, #D7E6F5 41px 43px); }
.bk-book.mini { width: min(100%, 360px); } .bk-book.mini .bk-bh, .bk-book.mini .bk-br { grid-template-columns: 1.4fr 1fr 1fr; }
.bk-bh, .bk-br { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px; align-items: center; min-height: 43px; }
.bk-bh b { font-size: 14px; color: #B35A00; text-align: center; } .bk-br span { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.bk-br b { text-align: center; font: 900 20px var(--head, inherit); color: #2B3A67; } .bk-br.now { background: #FFF3C4; border-radius: 10px; }
.bk-cell.live { border: 3px dashed #6C4BF4; border-radius: 10px; color: #6C4BF4; min-height: 34px; } .bk-cell.live.right { border-style: solid; border-color: #7BD148; color: #2F8F3A; }
.bk-cell.hintv::after { content: attr(data-h); display: block; font-size: 12px; color: #B08A00; }
.bk-book.view { width: min(100%, 620px); }
.bk-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; justify-content: center; }
.bk-key { height: 62px; border: 0; border-radius: 16px; background: #fff; font: 900 28px var(--head, inherit); box-shadow: 0 5px 0 #D8C9A3; cursor: pointer; color: var(--ink); }
.bk-key.ok { background: #7BD148; color: #fff; box-shadow: 0 5px 0 #4F9A26; } .bk-key:active { transform: translateY(4px); box-shadow: 0 1px 0 #D8C9A3; }
.bk-sky { position: relative; width: 100%; height: 340px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #BFE6FF, #E9F7D9); touch-action: none; }
.bk-catcher { position: absolute; bottom: 4px; transform: translateX(-50%); transition: left .08s linear; } .bk-catcher.gulp { animation: bkgulp .35s; }
.bk-drop1 { position: absolute; transform: translateX(-50%) scale(.6); pointer-events: none; } .bk-drop1.caught { opacity: 0; transition: opacity .3s; } .bk-drop1.bounce { animation: bkbounce .4s forwards; }
@keyframes bkbounce { to { transform: translate(-50%, -60px) scale(.5) rotate(40deg); opacity: 0; } }
.bk-shop { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.bk-food { position: relative; display: grid; justify-items: center; gap: 4px; background: #fff; border-radius: 20px; padding: 10px 26px 8px 14px; box-shadow: 0 4px 0 #EEDDB7; }
.bk-food img { height: 96px; } .bk-food .bk-emo { font-size: 64px; font-style: normal; line-height: 1.1; } .bk-food small { font-weight: 800; } .bk-food .db-tag { right: -10px; }
.bk-counter { min-width: 220px; min-height: 120px; background: #C98B52; border-radius: 18px; padding: 10px; box-shadow: inset 0 -8px 0 #A86E3A; display: grid; gap: 6px; justify-items: center; }
.bk-counter.hov { outline: 4px dashed #FFD54A; } .bk-on { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-height: 60px; }
.bk-oc { border: 0; background: none; padding: 0; cursor: pointer; } .bk-oc .coin { transform: scale(.65); margin: -12px; }
.bk-sum { font: 900 30px var(--head, inherit); color: #fff; text-shadow: 0 2px 0 #7A4A1E; }
.bk-c.many { position: relative; } .bk-c.many::after { content: '∞'; position: absolute; right: -4px; bottom: -4px; background: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: 14px; color: #8A5A00; }
.bk-scene { display: flex; align-items: center; gap: 18px; } .bk-who { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.15); } .bk-pet { height: 120px; }
.bk-items { width: 100%; } .bk-it { display: grid; justify-items: center; background: #fff; padding: 6px 8px; box-shadow: 0 4px 0 #EEDDB7; } .bk-it img { height: 64px; pointer-events: none; } .bk-it i { font-style: normal; font-size: 46px; } .bk-it small { font-weight: 800; font-size: 13px; }
.bk-it.sel { box-shadow: 0 0 0 4px #6C4BF4; } .bk-it.used { cursor: default; transform: scale(.8); }
.bk-baskets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.bk-basket { min-height: 150px; border-radius: 22px; padding: 8px; display: grid; align-content: start; gap: 6px; cursor: pointer; border: 4px dashed transparent; }
.bk-basket.b0 { background: #E2F6D8; border-color: #8BCB6A; } .bk-basket.b1 { background: #FFE8D1; border-color: #F0A35E; } .bk-basket.hov { transform: scale(1.03); }
.bk-basket > b { text-align: center; font-size: 18px; } .bk-bin { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bk-givers { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; } .bk-giver { display: grid; justify-items: center; gap: 2px; } .bk-giver img { width: 70px; height: 70px; border-radius: 50%; border: 3px solid #fff; } .bk-giver small { font-weight: 800; } .bk-giver .coin, .bk-giver .note { transform: scale(.7); margin: -10px; } .bk-giver em { font-style: normal; font-weight: 900; color: #6C4BF4; }
.bk-have .coin { transform: scale(1.1); }
.bk-goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bk-gpick { border: 0; background: #fff; border-radius: 24px; padding: 16px; display: grid; justify-items: center; gap: 4px; font: inherit; cursor: pointer; box-shadow: 0 6px 0 #F1E3BF; }
.bk-gpick span { font-size: 64px; } .bk-gpick b { font-size: 19px; } .bk-gpick em { font-style: normal; font-weight: 900; color: #8A5A00; }
.bk-fin .bk-finrow { display: flex; align-items: flex-end; justify-content: center; gap: 12px; } .bk-fin .bk-goal { margin: 10px auto; max-width: 460px; } .bk-prize { font-size: 110px; animation: dbpop .6s both; }
@media (max-width: 640px) { .bk-top { grid-template-columns: 1fr; } .bk-savers { grid-template-columns: repeat(4, 1fr); } .bk-ct.big { width: 170px; } .bk-pad { grid-template-columns: repeat(3, 64px); } .bk-sky { height: 300px; } .bk-goals { grid-template-columns: 1fr 1fr; } }
.bk-giver .coin, .bk-giver .note { transform: scale(.85); margin: -4px; }
@media (max-width: 640px) { .bk-opts.wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .bk-opts.wide .bk-op { min-width: 0; font-size: 16px; padding: 8px; } .bk-givers { gap: 8px; } .bk-giver img { width: 60px; height: 60px; } .bk-bh b { font-size: 12px; } }
@media (max-width: 640px) { .bk-goal { grid-template-columns: 48px 1fr; } .bk-goal > button, .bk-goal > .chunky { grid-column: 1 / -1; justify-self: stretch; } }
.bk-step .bk-tray .bk-c .coin { transform: scale(1.15); }
/* Re a Boloka Grade 2 */
body:has(#app.bk-civ) { background: linear-gradient(180deg, #FFF1E0 0, #FDF8EE 300px); }
body:has(#app.bk-paint) { background: linear-gradient(180deg, #E8F6FF 0, #FFF9EC 300px); }
body:has(#app.bk-spz) { background: linear-gradient(180deg, #FFF5D9 0, #F4F1E8 300px); }
body:has(#app.bk-clb) { background: linear-gradient(180deg, #F3ECFF 0, #FFF7F0 300px); }
.bk-graph { display: grid; gap: 8px; width: min(100%, 560px); background: #fff; border-radius: 18px; padding: 10px; box-shadow: inset 0 0 0 2px #EEE3C8; }
.bk-grow { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 8px; min-height: 48px; border-bottom: 2px dashed #F0E6CC; }
.bk-grow:last-child { border-bottom: 0; }
.bk-glab { font-weight: 900; font-size: 17px; display: flex; align-items: center; gap: 6px; } .bk-glab img { width: 36px; height: 36px; border-radius: 50%; }
.bk-gico { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .bk-gico i { font-style: normal; font-size: 26px; line-height: 1; }
.bk-gico .coin { transform: scale(.5); margin: -18px; } .bk-gico .bk-n10 .note { width: 64px; margin: 0; }
.bk-n10 .note { width: 104px; } .bk-cash .bk-n10 .note { width: 96px; }
.bk-sk { font-style: normal; font-weight: 900; color: #6C4BF4; font-size: 18px; }
.bk-opf { width: 46px; height: 46px; border-radius: 50%; }
.bk-big { font-size: 80px; }
.bk-col.on { box-shadow: 0 0 0 4px #6C4BF4; transform: scale(1.1); }
.bk-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(100%, 560px); padding: 10px; border-radius: 12px; background: repeating-linear-gradient(0deg, #B9B4AA 0 2px, transparent 2px 34px), repeating-linear-gradient(90deg, #B9B4AA 0 2px, #D6D1C7 2px 68px); }
.bk-pan { aspect-ratio: 4 / 3; border: 3px dashed #8F8A80; border-radius: 10px; background: rgba(255,255,255,.25); cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.bk-pan i { font-style: normal; font-size: 48px; filter: grayscale(1) opacity(.45); transition: filter .3s; }
.bk-pan.done { background: var(--pc); border: 3px solid #fff; } .bk-pan.done i { filter: none; animation: dbpop .4s both; }
@media (max-width: 640px) { .bk-grow { grid-template-columns: 92px 1fr; } .bk-glab { font-size: 14px; } .bk-pan i { font-size: 36px; } }
.bk-phone { display: grid; justify-items: center; gap: 4px; width: 150px; padding: 18px 12px 22px; border-radius: 24px; background: #1F2A44; color: #fff; box-shadow: inset 0 0 0 6px #33415F, 0 8px 18px rgba(0,0,0,.18); }
.bk-phone small { font-weight: 800; opacity: .85; } .bk-phone b { font-size: 30px; font-weight: 900; } .bk-phone em { font-style: normal; color: #7DCEA0; font-weight: 900; font-size: 22px; }
.bk-phone .box { background: #fff; color: #1F2A44; border-radius: 10px; padding: 0 14px; }
.bk-opts.wide .bk-op .bk-mv { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 640px) { .bk-opts.wide .bk-op .bk-mv .coin { transform: scale(.62); margin: -10px; } .bk-opts.wide .bk-op { min-width: 0; } }
.bk-giver > .bk-emo { font-style: normal; font-size: 44px; line-height: 1; }
/* Dream Bed Grade 3 Level 3: night at Sutherland */
.db-road.night .db-verge { background-color: #1E2A55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='240'%3E%3Ctext x='8' y='40' font-size='18'%3E%E2%AD%90%3C/text%3E%3Ctext x='30' y='96' font-size='14'%3E%E2%9C%A8%3C/text%3E%3Ctext x='6' y='160' font-size='26'%3E%F0%9F%8C%B5%3C/text%3E%3Ctext x='26' y='222' font-size='16'%3E%E2%AD%90%3C/text%3E%3C/svg%3E"); }
.db-road.night .db-lanes { border-color: #8EA2E8; background: linear-gradient(#FFE27A 55%, transparent 0) calc(33.333% + 1px) var(--off) / 5px 60px repeat-y, linear-gradient(#FFE27A 55%, transparent 0) calc(66.666% - 1px) var(--off) / 5px 60px repeat-y, linear-gradient(90deg, #2B3045, #383E58 18%, #383E58 82%, #2B3045); }
.db-km { width: min(100%, 340px); height: auto; display: block; margin: 0 auto; background: linear-gradient(#1E2A55, #2E3D78); border-radius: 18px; padding: 4px 0; }
.db-hcal { display: grid; gap: 4px; justify-items: center; background: #FFF7E2; border-radius: 18px; padding: 10px 12px; box-shadow: 0 0 0 3px #E4C58B; max-width: 330px; margin: 0 auto; }
.db-hcal > b { font: 900 18px var(--head, inherit); color: #3B2A10; }
.db-hcal > small { font-weight: 800; font-size: 14px; color: #8A3A6A; text-align: center; }
.db-hgrid { display: grid; grid-template-columns: repeat(7, 38px); gap: 4px; }
.db-hgrid span { height: 34px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; font-size: 15px; color: #3B2A10; background: #F3E6C6; line-height: 1; }
.db-hgrid span:empty { background: transparent; }
.db-hgrid .td { background: #fff; box-shadow: inset 0 0 0 3px #2F80ED; border-radius: 50%; }
.db-hgrid .hd { background: #FFD54A; position: relative; box-shadow: inset 0 0 0 2px #E0A800; }
.db-hgrid .hd::after { content: '🎉'; position: absolute; top: -9px; right: -7px; font-size: 15px; }
.db-hcal + .db-eq { margin-top: 6px; }
.db-vis.hint .db-hgrid .bt { background: #D7F0C2; }
.db-grid.night { border-color: #3A4A8C; background: #1E2A55; }
.db-grid.night .db-cell { background: #2A3A72; } .db-grid.night .db-cell.b { background: #24336A; }
.db-grid.night .db-cell.mud, .db-grid.night .db-cell.mud.b { background: #1B2550; display: grid; place-items: center; font-size: clamp(22px, 6vw, 32px); }
.db-grid.night .db-lamb, .db-grid.night .db-home { background: #fff; }

/* ---------- Re a Boloka Grade 3 ---------- */
body:has(#app.bk-mkt) { background: linear-gradient(180deg, #EAF6FF 0, #FFF6E5 320px); }
body:has(#app.bk-shr) { background: linear-gradient(180deg, #F3ECFF 0, #FFF8EC 320px); }
body:has(#app.bk-rcy) { background: linear-gradient(180deg, #E6F7EC 0, #F5F8EE 320px); }
body:has(#app.bk-dec) { background: linear-gradient(180deg, #FFECEC 0, #FFF7E8 320px); }
.bk-bars { display: flex; gap: 6px; height: 210px; width: 100%; max-width: 460px; margin: 6px auto 40px; box-sizing: border-box; padding-right: 6px; }
.bk-plot { min-width: 0; }
.bk-yax { display: flex; flex-direction: column; justify-content: space-between; font: 700 .85rem/1 var(--font-b, sans-serif); color: #5B4B3A; text-align: right; min-width: 22px; transform: translateY(-.4em); }
.bk-yax span { height: 0; }
.bk-plot { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; border-left: 3px solid #5B4B3A; border-bottom: 3px solid #5B4B3A; }
.bk-plot > i { display: block; border-top: 1px dashed #CDBFA8; height: 0; }
.bk-cols3 { position: absolute; inset: 0; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 6px; }
.bk-bc { position: relative; height: 100%; width: 18%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bk-bar { display: block; width: 100%; border-radius: 8px 8px 0 0; transition: height .6s; }
.bk-bar.c0 { background: #F2994A; } .bk-bar.c1 { background: #27AE60; } .bk-bar.c2 { background: #2F80ED; } .bk-bar.c3 { background: #BB6BD9; }
.bk-bc small { position: absolute; top: 100%; margin-top: 4px; font-weight: 700; font-size: .8rem; text-align: center; line-height: 1.1; white-space: nowrap; }
.bk-loaf { display: inline-flex; width: min(300px, 80vw); height: 90px; border: 4px solid #8A5A2B; border-radius: 40px 40px 14px 14px; overflow: hidden; background: #F6D9A6; }
.bk-loaf i { flex: 1; border-right: 3px solid #8A5A2B; }
.bk-loaf i:last-child { border-right: 0; }
.bk-loaf i.on { background: #E67E22; }
.bk-fr { display: inline-flex; flex-direction: column; align-items: center; font-size: 1.6rem; font-weight: 800; line-height: 1.05; }
.bk-fr b:first-child { border-bottom: 3px solid currentColor; padding: 0 6px; }
.bk-pile { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 52px; margin: 4px 0 10px; }
.bk-pn { transition: opacity .3s, transform .3s; }
.bk-pn.gone { opacity: 0; transform: scale(.4); }
.bk-pile .db-coin, .bk-got .db-coin { transform: scale(.75); }
.bk-deal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bk-fr2 { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 3px solid #E2D6C3; border-radius: 16px; background: #fff; cursor: pointer; min-height: 170px; }
.bk-fr2 img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.bk-fr2 em { font-style: normal; font-weight: 800; color: #1E7B46; }
.bk-got { display: flex; flex-direction: column; align-items: center; min-height: 40px; }
.bk-got i { margin-top: -18px; } .bk-got i:first-child { margin-top: 0; }
.bk-koeks img { width: 54px; height: auto; }
.bk-cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 520px; margin: 0 auto; }
.bk-mo { padding: 10px 4px; border: 3px solid #E9C9C9; border-radius: 14px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; font-size: .9rem; }
.bk-mo em { font-style: normal; font-weight: 800; color: #1E7B46; min-height: 1.2em; }
.bk-mo.done { background: #E9F8EE; border-color: #27AE60; }
.bk-caltot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; font-size: 1.6rem; font-weight: 800; }
.bk-big { font-size: 2.6rem; }
.bk-sk { font-style: normal; display: inline-block; padding: 0 4px; }
@media (max-width: 520px) {
  .bk-bars { height: 170px; }
  .bk-bc small { font-size: .7rem; }
  .bk-deal { grid-template-columns: repeat(2, 1fr); }
  .bk-fr2 { min-height: 140px; }
  .bk-cal { grid-template-columns: repeat(3, 1fr); }
  .bk-mo { min-height: 56px; font-size: .8rem; }
}

/* ---------- Re tlhokomela diphologolo (We Care for Animals) ---------- */
.chal-banner.pt-ban { background: linear-gradient(135deg, #FFD08A, #8FD694); color: #2B3A00; box-shadow: 0 5px 0 #5FA864; }
.pt-bg { background: linear-gradient(180deg, #FFF6E0 0%, #E9F7DF 100%); }
.pt-shelf h2 { font-size: 20px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.pt-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pt-card { display: grid; justify-items: center; gap: 4px; background: #fff; border-radius: 18px; padding: 8px 6px; box-shadow: 0 4px 0 #E6D7B0; position: relative; }
.pt-card img { width: 100%; max-width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; filter: grayscale(1) brightness(.35) opacity(.35); }
.pt-card.on img { filter: none; } .pt-card b { font-size: 14px; text-align: center; }
.pt-card.big { width: 170px; padding: 12px; } .pt-card.big img { max-width: 150px; }
.pt-card.new { animation: ptPop .7s ease-out; box-shadow: 0 0 0 4px #FFD54A, 0 6px 18px rgba(0,0,0,.15); }
.pt-card em { position: absolute; top: -10px; right: -8px; background: #FF6B6B; color: #fff; font-style: normal; font-weight: 900; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
@keyframes ptPop { 0% { transform: scale(.4) rotate(-8deg); } 70% { transform: scale(1.08) rotate(2deg); } 100% { transform: none; } }
.pt-finrow { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.pt-badge { display: inline-flex; align-items: center; gap: 6px; margin: 6px auto; padding: 6px 14px; border-radius: 999px; background: #FFF1B8; font-weight: 900; color: #6B4E00; }
.pt-badge svg { width: 22px; height: 22px; fill: #FFB800; } .pt-badge.hon { background: #E3F1FF; color: #18457A; } .pt-badge.care { background: #E2F7E0; color: #1E5B20; }
.pt-gcard { margin: 12px auto 6px; max-width: 560px; text-align: left; background: #FFFDF5; border: 3px dashed #E0B85C; border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; }
.pt-gcard p { margin: 0; font-size: 15px; line-height: 1.45; } .pt-gcard small { font-weight: 800; color: #7A5A00; }
.pt-fly { position: fixed; z-index: 99; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; animation: ptFly 1.1s ease-out forwards; }
.pt-fly svg { width: 100%; height: 100%; fill: #FFC107; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
@keyframes ptFly { 0% { transform: scale(.4); opacity: 0; } 25% { transform: scale(1.3); opacity: 1; } 100% { transform: translateY(-120px) scale(.8); opacity: 0; } }
.pt-stars b { color: #B07A00; }
.pt-stage { display: grid; gap: 14px; justify-items: center; }
.pt-pimg { width: 110px; height: 110px; object-fit: cover; border-radius: 22px; box-shadow: 0 4px 10px rgba(0,0,0,.12); background: #fff; }
.pt-pimg.big { width: 170px; height: 170px; } .pt-pimg.sm { width: 72px; height: 72px; border-radius: 16px; }
.pt-pimg.red { box-shadow: 0 0 0 5px #E53935; } .pt-pimg.yellow { box-shadow: 0 0 0 5px #FBC02D; } .pt-pimg.green { box-shadow: 0 0 0 5px #43A047; }
.pt-pimg.nocollar { filter: saturate(.9); }
.pt-scene { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.pt-story { display: grid; justify-items: center; gap: 8px; background: #FFFFFFB0; border-radius: 20px; padding: 10px 16px; }
.pt-tag { font-weight: 900; font-size: 14px; color: #6C4BF4; background: #EFEAFF; border-radius: 999px; padding: 4px 12px; }
.pt-bub { font-size: 64px; line-height: 1; animation: ptBob 1.6s ease-in-out infinite; }
.pt-car, .pt-tab, .pt-gate, .pt-who0, .pt-sos { font-size: 80px; line-height: 1; }
.pt-q { font-size: 48px; }
@keyframes ptBob { 50% { transform: translateY(-6px); } }
.pt-many { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; }
.pt-many i { font-style: normal; font-size: 46px; line-height: 1.1; } .pt-many.sm i { font-size: 30px; } .pt-many.egg i { font-size: 40px; }
.bk-op .pt-many { max-width: 150px; } .bk-op .pt-many i { font-size: 28px; }
.pt-many .pt-10 { font-size: 18px; font-weight: 900; background: #fff; border-radius: 10px; padding: 4px 6px; box-shadow: 0 3px 0 #E6D7B0; }
.pt-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pt-groups { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pt-grp { display: flex; gap: 2px; align-items: center; background: #fff; border-radius: 14px; padding: 6px 10px; box-shadow: 0 3px 0 #E6D7B0; position: relative; }
.pt-grp i { font-style: normal; font-size: 28px; } .pt-grp em, .pt-ten em { font-style: normal; font-weight: 900; margin-left: 6px; color: #6C4BF4; }
.pt-tens { display: grid; gap: 6px; justify-items: start; }
.pt-ten { display: flex; align-items: center; gap: 1px; background: #fff; border-radius: 12px; padding: 4px 8px; box-shadow: 0 3px 0 #E6D7B0; } .pt-ten i { font-style: normal; font-size: 24px; }
.pt-tally { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; background: #fff; border-radius: 16px; padding: 10px; }
.pt-t5 { width: 64px; height: 54px; } .pt-t5 line { stroke: #3B2A00; stroke-width: 4; stroke-linecap: round; }
.pt-scale { position: relative; width: 300px; height: 170px; }
.pt-beam { position: absolute; left: 10px; right: 10px; top: 60px; height: 8px; background: #8D6E63; border-radius: 4px; display: flex; justify-content: space-between; transition: transform .6s; }
.pt-scale.l .pt-beam { transform: rotate(-10deg); } .pt-scale.r .pt-beam { transform: rotate(10deg); }
.pt-pan { position: relative; top: -64px; display: grid; place-items: center; min-width: 90px; height: 64px; background: #FFF8E1; border-radius: 0 0 40px 40px; border-bottom: 5px solid #BCAAA4; }
.pt-pan .bk-emo { font-size: 48px; }
.pt-post { position: absolute; left: 50%; top: 64px; width: 10px; height: 100px; margin-left: -5px; background: #8D6E63; border-radius: 4px; }
.pt-post::after { content: ''; position: absolute; left: -30px; bottom: 0; width: 70px; height: 10px; background: #8D6E63; border-radius: 6px; }
.pt-bowl { position: relative; display: block; width: 90px; height: 50px; border-radius: 0 0 46px 46px; background: #E0E0E0; border: 4px solid #9E9E9E; border-top-width: 2px; overflow: hidden; }
.pt-bowl i { position: absolute; left: 0; right: 0; bottom: 0; background: #4FC3F7; }
.pt-bowl.bucket { width: 70px; height: 80px; border-radius: 4px 4px 14px 14px; background: #ECEFF1; }
.pt-word { font: 900 46px var(--head, inherit); background: #fff; border-radius: 18px; padding: 8px 28px; box-shadow: 0 4px 0 #E6D7B0; letter-spacing: 1px; }
.pt-face { font-size: 110px; }
.pt-bag { display: grid; justify-items: center; background: #fff; border-radius: 14px; padding: 6px 12px; box-shadow: 0 3px 0 #E6D7B0; font-size: 36px; }
.pt-bag b { font-size: 16px; } .pt-bag.sm { font-size: 24px; padding: 4px 8px; } .pt-bag.sm b { font-size: 12px; }
.pt-pen { position: relative; width: 150px; height: 150px; } .pt-pen .pt-shp { width: 100%; height: 100%; }
.pt-pen span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; }
.pt-shp { width: 60px; height: 60px; } .pt-shp * { fill: #C8E6C9; stroke: #6D4C41; stroke-width: 4; }
.pt-poster { display: grid; justify-items: center; gap: 4px; background: #FFFDE7; border: 3px solid #F9A825; border-radius: 10px; padding: 10px 18px; transform: rotate(-1.5deg); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.pt-poster > b { font: 900 24px var(--head, inherit); color: #C62828; text-transform: uppercase; } .pt-poster span { font-weight: 800; }
.pt-dot { display: inline-block; width: 28px; height: 28px; border-radius: 50%; } .pt-dot.red { background: #E53935; } .pt-dot.yellow { background: #FBC02D; } .pt-dot.green { background: #43A047; }
.pt-weeks { display: grid; gap: 6px; } .pt-wk { display: grid; grid-template-columns: repeat(7, 34px); gap: 4px; }
.pt-wk i { font-style: normal; font-weight: 800; display: grid; place-items: center; height: 34px; background: #fff; border-radius: 8px; box-shadow: 0 2px 0 #E6D7B0; }
.pt-wk + .pt-wk i { background: #E8F5E9; }
.pt-jug { position: relative; display: block; width: 100px; height: 200px; border: 4px solid #78909C; border-top: 0; border-radius: 0 0 14px 14px; background: #FAFAFA; overflow: visible; }
.pt-jw { position: absolute; left: 0; right: 0; bottom: 0; background: #81D4FA; border-radius: 0 0 10px 10px; }
.pt-jug > b { position: absolute; left: -4px; width: 26px; height: 3px; background: #37474F; transform: translateY(1px); }
.pt-jug > b em { position: absolute; left: 30px; top: -9px; font-style: normal; font-size: 13px; font-weight: 900; color: #263238; }
.pt-jug > small { position: absolute; right: 6px; top: 4px; font-weight: 900; color: #546E7A; }
.pt-ljug { position: relative; display: block; width: 70px; height: 130px; border: 4px solid #78909C; border-top: 0; border-radius: 0 0 12px 12px; background: #FAFAFA; }
.pt-ljug i { position: absolute; left: 0; right: 0; bottom: 0; background: #81D4FA; } .pt-ljug small { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font-weight: 900; color: #546E7A; }
.pt-tapall .bk-emo img { height: 46px; width: 46px; border-radius: 50%; }
@media (max-width: 640px) {
  .pt-cards { gap: 6px; } .pt-card b { font-size: 12px; }
  .pt-pimg.big { width: 130px; height: 130px; } .pt-many i { font-size: 36px; }
  .pt-scale { width: 250px; } .pt-pan { min-width: 74px; } .pt-word { font-size: 36px; }
  .pt-wk { grid-template-columns: repeat(7, 30px); } .pt-ten i { font-size: 19px; }
}
.pt-ten { flex-wrap: nowrap; max-width: 100%; } .pt-ten i { font-size: 20px; }
.pt-jug > small { top: auto; bottom: 4px; right: 4px; font-size: 12px; }
@media (max-width: 640px) { .pt-ten i { font-size: 15px; } .pt-ten { padding: 3px 5px; } }
.pt-groups.g10 { flex-direction: column; align-items: center; } .pt-groups.g10 i { font-size: 20px; }
@media (max-width: 640px) { .pt-groups.g10 i { font-size: 17px; } .pt-groups.g10 .pt-grp { padding: 4px 6px; } }

/* ---------- class link (switched off until CLASS_LINK_ON is true in app.js) ---------- */

/* ---------- class link: picture password, class header, teacher's online classes ---------- */
.cls-head { display: flex; align-items: center; gap: 12px; background: #F1ECFF; border-radius: 20px; padding: 10px 16px; text-align: left; font: 600 18px var(--head); color: var(--purple-d); max-width: 520px; width: 100%; }
.cls-head .cls-ic { font-size: 30px; } .cls-head small { display: block; font: 700 13px var(--body); color: var(--ink-2); margin-top: 2px; }
.cls-full { background: #FFF1E6; color: #8A3B00; border-radius: 16px; padding: 10px 14px; font-weight: 700; margin: 4px 0; }
.kid-card .kc-cls { display: block; font: 700 11px var(--body); color: var(--ink-2); margin-top: 2px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid-card .here { color: var(--green-d); font-weight: 800; }
.remind { background: #FFF6D6; color: #6B4E00; border-radius: 16px; padding: 10px 14px; font-weight: 700; margin: 0; max-width: 520px; text-align: left; }
.pic-card { max-width: 560px; width: 100%; }
.pic-sel { display: flex; gap: 12px; justify-content: center; }
.pic-sel > span { width: 70px; height: 70px; border-radius: 20px; border: 3px dashed #CFC6EE; display: grid; place-items: center; font-size: 40px; background: #FBFAFF; }
.pic-sel > span.on { border-style: solid; border-color: var(--green); background: #EFFBEA; animation: pop .3s; }
.pic-sel.big > span { width: 110px; height: 120px; font-size: 62px; align-content: center; gap: 2px; }
.pic-sel.big small { font: 700 14px var(--body); color: var(--ink-2); }
.pic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 420px; }
.pic-b { background: #fff; border-radius: 22px; padding: 10px 4px 8px; display: grid; justify-items: center; gap: 2px; box-shadow: 0 6px 0 #E2DCF2, var(--shadow); border: 3px solid transparent; transition: transform .1s; }
.pic-b span { font-size: 52px; line-height: 1.1; } .pic-b small { font: 700 13px var(--body); color: var(--ink-2); }
.pic-b:active { transform: translateY(3px); } .pic-b.on { border-color: var(--green); background: #EFFBEA; box-shadow: 0 6px 0 var(--green-d); }
.pic-msg { min-height: 1.3em; margin: 0; color: var(--coral-d); font-weight: 700; }
.shake { animation: shake .4s; }
.tsel { display: grid; gap: 6px; font-weight: 700; width: 100%; max-width: 360px; text-align: left; }
.tsel select, .tform input, .tform select { min-height: 48px; border-radius: 14px; border: 2px solid #E2DCF2; padding: 0 12px; font: 600 17px var(--body); color: var(--ink); background: #FBFAFF; width: 100%; }
.tform { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.tform label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.link-box { background: #F6F3FF; border: 2px dashed #CFC6EE; border-radius: 14px; padding: 12px; overflow-wrap: anywhere; margin: 6px 0; }
.link-box code { font-size: 15px; color: var(--purple-d); }
.ccode { font: 700 20px var(--head); letter-spacing: 2px; color: var(--purple-d); }
.tt td.pics span { font-size: 24px; margin-right: 2px; } .tt td.pics small { display: block; }
.tt .warn, .tt td.warn { color: #B85C00; font-weight: 700; }
.chunky.sm { min-height: 40px; font-size: 15px; padding: 0 12px; }
@media (max-width: 420px) { .pic-b span { font-size: 42px; } .pic-sel > span { width: 60px; height: 60px; font-size: 34px; } .pic-sel.big { gap: 8px; } .pic-sel.big > span { width: 96px; height: 108px; font-size: 50px; } }
.link-box + p + .tbtns a.chunky, .tbtns a.chunky { text-decoration: none; }
/* Own pictures for vetkoek and the donkey cart (see EMO_IMG in app.js) */
.emo-img{width:1.2em;height:1.2em;object-fit:contain;vertical-align:-.22em;display:inline-block;pointer-events:none;user-select:none}
.emo-img.emo-donkeycart{width:2.1em;height:1.45em}

/* ===== We Care for Animals, Grade 3 Level 1: a living beach (pg-) ===== */
.pt-stage.pg { width: 100%; max-width: 1000px; background: rgba(255,255,255,.55); padding: 10px; gap: 10px; }
.pg-scene { position: relative; width: min(100%, calc(62vh * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #8fd3f4 url(assets/pt/pg/beach.webp) center / cover no-repeat; box-shadow: 0 6px 18px rgba(0,40,80,.18); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
@media (max-width: 640px) { .pg-scene { width: min(100%, calc(50vh * 4 / 3)); aspect-ratio: 4 / 3; } }
.pg-sea { position: absolute; left: 0; right: 0; top: 31%; height: 20.5%; pointer-events: none; overflow: hidden; }
.pg-shim { position: absolute; inset: 0; background: repeating-linear-gradient(100deg, rgba(255,255,255,0) 0 22px, rgba(255,255,255,.18) 26px, rgba(255,255,255,0) 32px); background-size: 220px 100%; mix-blend-mode: soft-light; animation: pgShim 7s linear infinite; }
@keyframes pgShim { to { background-position: 220px 0; } }
.pg-foam { position: absolute; left: -10%; width: 220%; height: 16%; bottom: 4%; border-radius: 50%; background: radial-gradient(ellipse 18px 5px at 50% 50%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%) 0 0 / 46px 100%; filter: blur(.6px); animation: pgFoam 5.5s ease-in-out infinite; opacity: .85; }
.pg-foam.f2 { bottom: 26%; height: 11%; opacity: .55; animation-duration: 7.5s; animation-delay: -2s; background-size: 64px 100%; }
@keyframes pgFoam { 0% { transform: translate(0, 0); } 50% { transform: translate(-6%, 22%); opacity: .45; } 100% { transform: translate(0, 0); } }
.pg-gull { position: absolute; top: 9%; left: -8%; width: 5%; aspect-ratio: 3 / 1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M1 10 Q10 0 20 10 Q30 0 39 10' fill='none' stroke='%23384150' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; animation: pgGull 28s linear infinite, pgFlap .5s ease-in-out infinite alternate; }
.pg-gull.g2 { top: 16%; width: 3.6%; animation-duration: 36s, .42s; animation-delay: -12s, 0s; }
.pg-gull.g3 { top: 5%; width: 2.8%; animation-duration: 44s, .55s; animation-delay: -27s, 0s; }
@keyframes pgGull { to { left: 108%; } }
@keyframes pgFlap { to { transform: scaleY(.45) translateY(10%); } }
.pg-im { display: block; height: 100%; width: auto; pointer-events: none; -webkit-user-drag: none; }
.pg-it { position: absolute; height: 13%; transform: translate(-50%, -50%); cursor: grab; z-index: 3; }
.pg-it.sel { filter: drop-shadow(0 0 6px #FFD54A) drop-shadow(0 0 3px #FFB300); }
.pg-it.lift { opacity: .35; }
.pg-bob { display: block; height: 100%; animation: pgBob 2.6s ease-in-out infinite; }
@keyframes pgBob { 0%, 100% { transform: translateY(-7%) rotate(-7deg); } 50% { transform: translateY(8%) rotate(6deg); } }
.pg-junk[data-k="bag"] { height: 19%; } .pg-junk[data-k="bottle"] { height: 13%; } .pg-junk[data-k="can"] { height: 15%; }
.pg-fish { height: 6%; top: 46%; left: -10%; animation: pgSwimR 12s linear infinite; }
.pg-fish .pg-im { transform: scaleX(-1); }
.pg-fish.s2 { top: 38%; height: 5%; animation: pgSwimL 15s linear infinite; animation-delay: -6s; }
.pg-fish.s2 .pg-im { transform: none; }
@keyframes pgSwimR { from { left: -10%; } to { left: 110%; } }
@keyframes pgSwimL { from { left: 110%; } to { left: -10%; } }
.pg-swim { height: 7%; top: 41%; cursor: default; animation: pgSwimR 9s linear infinite; }
.pg-swim.w1 { top: 36%; height: 6%; animation-duration: 11s; animation-delay: -4s; } .pg-swim.w2 { top: 45%; animation-duration: 10s; animation-delay: -7s; }
.pg-swim .pg-im { animation: pgBob 1.6s ease-in-out infinite; }
.pg-splash { position: absolute; top: 46%; width: 10%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid rgba(255,255,255,.9); animation: pgRing .9s ease-out forwards; pointer-events: none; }
@keyframes pgRing { from { transform: translate(-50%, -50%) scale(.2); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.6, .6); opacity: 0; } }
.pg-oil { position: absolute; width: 13%; aspect-ratio: 3.2 / 1; transform: translate(-50%, -50%); z-index: 2; --h: 1; opacity: var(--h); cursor: pointer; transition: opacity .15s; }
.pg-oil > i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 40% 50%, rgba(12,12,18,.95) 0 30%, rgba(30,30,42,.85) 50%, rgba(30,30,42,.45) 62%, rgba(0,0,0,0) 71%), radial-gradient(ellipse at 72% 40%, rgba(20,20,28,.8) 0 25%, rgba(0,0,0,0) 48%); transform: scale(calc(.55 + var(--h) * .45)); animation: pgOil 4s ease-in-out infinite; }
.pg-oil > i::after { content: ''; position: absolute; inset: 22% 26%; border-radius: 50%; opacity: .6; background: conic-gradient(from 0deg, rgba(255,0,180,.35), rgba(0,200,255,.35), rgba(255,230,0,.35), rgba(255,0,180,.35)); mix-blend-mode: screen; filter: blur(3px); }
@keyframes pgOil { 50% { border-radius: 46% 54% 50% 50%; transform: scale(calc(.58 + var(--h) * .45), calc(.5 + var(--h) * .45)); } }
.pg-oil.gone { animation: pgGone .7s forwards; } @keyframes pgGone { to { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.pg-bub { position: absolute; bottom: 30%; width: 9px; height: 9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); animation: pgBubUp .9s ease-out forwards; pointer-events: none; }
@keyframes pgBubUp { to { transform: translateY(-260%); opacity: 0; } }
.pg-bin { position: absolute; left: 88%; top: 74%; height: 33%; transform: translate(-50%, -50%); z-index: 2; cursor: pointer; }
.pg-bin.hov, .pg-p.hov, .pg-st.hov { filter: drop-shadow(0 0 10px #FFE066); }
.pg-bin.gulp .pg-im { animation: pgGulp .45s; } @keyframes pgGulp { 40% { transform: scale(1.12, .9); } 70% { transform: scale(.95, 1.06); } }
.pg-p { position: absolute; bottom: 5%; height: 31%; z-index: 2; transform-origin: 50% 100%; }
.pg-idle { display: block; height: 100%; transform-origin: 50% 100%; animation: pgIdle 2.4s ease-in-out infinite; }
@keyframes pgIdle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) scaleY(.97); } }
.pg-left { position: absolute; top: 4%; right: 3%; background: rgba(255,255,255,.88); border-radius: 999px; padding: 3px 12px; font-weight: 900; font-size: 16px; color: #0B4F6C; z-index: 4; }
.pg-left::before { content: '🧹 '; }
/* step 2: counting and the bar graph */
.pg-two { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; width: 100%; align-items: stretch; }
.pg-two .pg-scene { width: 100%; aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .pg-two { grid-template-columns: 1fr; } .pg-two .pg-scene { width: min(100%, calc(46vh * 4 / 3)); } }
.pg-crowd { position: absolute; left: 3%; right: 3%; top: 51%; bottom: 3%; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: calc(var(--u, 3px) * 2.2) calc(var(--u, 3px) * 1.6); z-index: 3; }
.pg-row { position: relative; display: flex; align-items: flex-end; padding: calc(var(--u, 3px) * .5) calc(var(--u, 3px) * .6); border: 2px dashed rgba(255,255,255,.0); border-radius: 12px; background: rgba(255,255,255,.0); cursor: pointer; font: inherit; }
.pg-row img { height: calc(var(--u, 3px) * 12); width: auto; margin-left: calc(var(--u, 3px) * -4.5); pointer-events: none; }
.pg-row { animation: pgWad 1.3s ease-in-out infinite; transform-origin: 50% 100%; } .pg-row:nth-child(2n) { animation-delay: -.6s; } .pg-row:nth-child(3n) { animation-duration: 1.1s; }
@keyframes pgWad { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg) translateY(-3%); } }
.pg-row img:first-of-type { margin-left: 0; }
.pg-row:hover { border-color: rgba(255,255,255,.8); }
.pg-row.on { border-color: #FFB300; background: rgba(255,240,180,.55); }
.pg-row em { position: absolute; top: -48%; left: 50%; transform: translateX(-50%); font-style: normal; font-weight: 900; font-size: 15px; color: #fff; background: #F57C00; border-radius: 999px; padding: 0 8px; display: none; }
.pg-row.on em { display: block; animation: ptPop .4s; }
.pg-total { position: absolute; top: 4%; right: 3%; display: none; align-items: center; gap: 6px; background: #fff; border-radius: 16px; padding: 4px 12px 4px 6px; font-weight: 900; font-size: 30px; color: #0B4F6C; box-shadow: 0 3px 0 #9CC9DD; z-index: 4; }
.pg-total.on { display: flex; animation: ptPop .5s; } .pg-total .pg-im { height: 40px; }
.pg-day { position: absolute; top: 4%; left: 3%; background: rgba(255,255,255,.9); border-radius: 999px; padding: 3px 12px; font-weight: 900; color: #0B4F6C; z-index: 4; }
.pg-day:empty { display: none; }
.pg-graph { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 1fr auto; background: #fff; border-radius: 18px; padding: 16px 12px 8px 4px; min-height: 240px; box-shadow: 0 4px 0 #E6D7B0; }
.pg-yax { position: relative; } .pg-yax span { position: absolute; right: 6px; transform: translateY(50%); font-size: 12px; font-weight: 800; color: #555; }
.pg-plot { position: relative; display: flex; gap: 6%; padding: 0 4%; border-left: 3px solid #333; border-bottom: 3px solid #333; background: repeating-linear-gradient(to top, #e8e8e8 0 1px, transparent 1px 10%); }
.pg-col { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; touch-action: none; border-radius: 8px 8px 0 0; }
.pg-col.cur { background: rgba(255,213,74,.25); cursor: ns-resize; }
.pg-bar { position: relative; width: 70%; border-radius: 8px 8px 0 0; transition: height .12s; min-height: 0; }
.pg-bar.c0 { background: linear-gradient(#5BB4F0, #2F86C9); } .pg-bar.c1 { background: linear-gradient(#FF9A6B, #E8613A); } .pg-bar.c2 { background: linear-gradient(#7FD67A, #3FA33A); } .pg-bar.c3 { background: linear-gradient(#C49BF5, #8A5AD6); }
.pg-bar em { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-weight: 900; font-size: 13px; color: #333; }
.pg-col:not(.cur):not(.done) .pg-bar em { display: none; }
.pg-hand { position: absolute; bottom: 4px; font-style: normal; font-size: 24px; display: none; animation: pgPull 1.2s ease-in-out infinite; pointer-events: none; }
.pg-col.cur .pg-hand { display: block; } .pg-col.drag .pg-hand { display: none; }
@keyframes pgPull { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-80px); opacity: 0; } }
.pg-col.tap { cursor: pointer; } .pg-col.tap:hover { background: rgba(0,0,0,.04); }
.pg-col.glow { box-shadow: 0 0 0 3px #FFD54A inset; } .pg-col.right { background: rgba(102,187,106,.25); }
.pg-days { display: flex; gap: 6%; padding: 4px 4% 0; } .pg-days small { flex: 1; text-align: center; font-weight: 800; font-size: 13px; }
/* step 3: feeding from the packet on the scale */
.pg-scl { position: absolute; left: 22%; bottom: 6%; width: 19%; height: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.pg-pack { position: relative; height: 70%; transform-origin: 50% 100%; transform: scale(var(--f, 1)); transition: transform .6s cubic-bezier(.3,1.4,.5,1), opacity .6s; }
.pg-pack.empty { opacity: .45; transform: scale(.4) rotate(-14deg); }
.pg-lab { position: absolute; left: 14%; right: 8%; top: 51%; height: 24%; display: grid; place-items: center; font-weight: 900; font-size: clamp(11px, 2.2vw, 20px); color: #4A2E0F; }
.pg-plate { display: block; width: 100%; height: 5%; background: linear-gradient(#e9eef2, #aab4bd); border-radius: 6px; }
.pg-lcd { display: block; width: 92%; padding: 4% 0; background: linear-gradient(#5b6670, #3b434a); border-radius: 0 0 10px 10px; text-align: center; font-weight: 900; color: #A6FF8F; font-family: ui-monospace, Menlo, monospace; font-size: clamp(12px, 2.4vw, 22px); text-shadow: 0 0 6px rgba(120,255,100,.7); }
.pg-lcd b { display: inline-block; min-width: 3ch; }
.pg-scoop { position: absolute; left: 44%; top: 74%; height: 13%; transform: translate(-50%, -50%); z-index: 4; cursor: grab; display: flex; align-items: center; touch-action: none; }
.pg-scoop .pg-spoon { position: absolute; left: -10%; right: -8%; top: 15%; bottom: 0; border-radius: 50% 50% 46% 46%; background: radial-gradient(ellipse at 50% 30%, #fff, #cfd6dc 70%); box-shadow: 0 3px 0 #9aa4ad; }
.pg-scoop .pg-im { position: relative; height: 70%; animation: pgBob 1.8s ease-in-out infinite; }
.pg-scoop b { position: absolute; bottom: -38%; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; border-radius: 999px; padding: 0 8px; font-weight: 900; font-size: 14px; color: #0B4F6C; }
.pg-scoop.used { visibility: hidden; } .pg-scoop.sel { filter: drop-shadow(0 0 6px #FFD54A); }
.pg-eat { left: 68%; height: 38%; cursor: pointer; } .pg-eat.big { height: 48%; left: 66%; }
.pg-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pg-dd { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 3px dashed #BFD9E6; position: relative; }
.pg-dd i { font-style: normal; font-size: 24px; opacity: .15; } .pg-dd b { position: absolute; bottom: -2px; right: 4px; font-size: 12px; color: #6a8796; }
.pg-dd.on { border: 3px solid #2F86C9; background: #E3F3FC; animation: ptPop .4s; } .pg-dd.on i { opacity: 1; } .pg-dd.on b { color: #0B4F6C; font-size: 15px; }
.pg-strip.glow .pg-dd.on { box-shadow: 0 0 0 4px #FFD54A; }
.pg-ask:empty { display: none; }
/* step 4: the story */
.pg-tag { position: absolute; top: 4%; left: 3%; z-index: 4; font-weight: 900; font-size: 14px; color: #6C4BF4; background: #EFEAFF; border-radius: 999px; padding: 4px 12px; }
.pg-wrap { left: 32%; top: 86%; height: 10%; cursor: default; transform: translate(-50%, -50%) rotate(-12deg); }
.pg-wrap.gone { opacity: 0; transition: opacity .4s; }
.pg-st { left: 44%; height: 40%; cursor: pointer; }
.pg-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pg-ch { display: grid; justify-items: center; align-content: center; gap: 4px; width: min(150px, 31%); min-height: 108px; background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 4px 0 #E6D7B0; cursor: grab; text-align: center; touch-action: none; }
.pg-ch .pg-im { height: 52px; } .pg-ch .bk-emo { font-size: 46px; line-height: 1; } .pg-ch small { font-weight: 800; font-size: 13px; line-height: 1.25; }
.pg-ch.sel { box-shadow: 0 0 0 4px #FFD54A, 0 4px 0 #E6D7B0; } .pg-ch.lift { opacity: .4; } .pg-ch.used { opacity: .3; pointer-events: none; }
.bk-ghost .pg-im { height: 100%; } .bk-ghost.pg-ch .pg-im { height: 52px; }
/* the finish card: a living penguin */
.pt-card .pg-live { object-fit: contain; background: linear-gradient(#BFE7FB, #F6E2B3); animation: pgLive 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes pgLive { 0%, 100% { transform: translateY(0) rotate(-2deg); } 30% { transform: translateY(-6%) rotate(2deg); } 60% { transform: translateY(0) scaleY(.96); } }
.pg-livecard { cursor: pointer; }
.pg-feedme { margin: 6px 0 0; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; flex-basis: 100%; }
.pg-flyfish { position: fixed; z-index: 99; height: 26px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pg-gull, .pg-foam, .pg-shim, .pg-bob, .pg-idle, .pg-row, .pg-hand, .pt-card .pg-live { animation: none !important; } }
.bk-ghost.pg-it, .bk-ghost.pg-scoop, .bk-ghost.pg-ch { position: fixed; animation: none; margin: 0; } .bk-ghost.pg-scoop .pg-im { height: 70%; }
.pg-days small { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .pg-days { gap: 2%; padding: 4px 1% 0; } .pg-days small { font-size: 10px; } }
/* ===== living, hands-on levels (We Care for Animals, all grades) ===== */
.lw { background-color: #9fd6f2; background-size: cover; background-position: center; }
.lw-cloud { position: absolute; top: 4%; left: -30%; width: 26%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%); filter: blur(2px); animation: lwCloud 70s linear infinite; pointer-events: none; }
.lw-cloud.c2 { top: 13%; width: 18%; height: 7%; animation-duration: 95s; animation-delay: -45s; opacity: .7; }
@keyframes lwCloud { to { left: 110%; } }
.lw .pg-im { max-width: none; }
.lw-a { cursor: pointer; transition: left .6s ease; }
.lw-a.far { z-index: 1; }
.lw-a.hov, .lw-spot.hov, .lw-zone.hov, .lw-pen.hov, .lw-basket.hov, .lw-tap.hov, .lw-home.hov, .lw-kennel.hov, .lw-safe.hov, .lw-shpen.hov, .lw-row.hov, .lw-pan.hov, .lw-kg.hov, .lw-trolley.hov, .lw-word2.hov, .lw-poster.hov, .lw-jugw.hov { filter: drop-shadow(0 0 12px #FFE066); }
.lw-fly { position: fixed; z-index: 99; pointer-events: none; display: flex; align-items: center; }
.lw-fly .pg-im, .lw-fly img { height: 100%; width: auto; } .lw-fly .lw-emo { font-size: 40px; } .lw-fly .lw-face { height: 100%; border-radius: 50%; }
.lw-emo { font-size: 46px; line-height: 1; display: inline-block; }
.lw-face { height: 64px; width: 64px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.2); object-fit: cover; }
/* the tray under the scene */
.lw-tray .pg-ch { min-height: 96px; width: 124px; max-width: 29vw; flex: 0 0 auto; }
.lw-tray .pg-ch .pg-im { max-width: 100%; object-fit: contain; }
.lw-tray .pg-ch .pg-im { height: 58px; } .lw-tray .pg-ch.nolab { min-height: 84px; }
.lw-tray .pg-ch .lw-face { height: 56px; width: 56px; }
.lw-tray .pg-ch .pt-shp { width: 54px; height: 54px; }
.lw-ch.away { animation: lwAway 1.2s forwards; } @keyframes lwAway { to { opacity: .25; transform: translateX(40px); } }
.bk-ghost.lw-ch { position: fixed; } .bk-ghost.lw-ch .pg-im { height: 58px; }
/* counting things in the scene */
.lw-c { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; cursor: pointer; z-index: 3; display: flex; align-items: flex-end; transition: left .7s cubic-bezier(.3,1.2,.5,1), top .7s, opacity .4s; font: inherit; }
.lw-c .lw-bob { display: flex; height: 100%; align-items: flex-end; animation: lwBreathe 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.lw-c .pg-im { height: 100%; }
@keyframes lwBreathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .97); } }
.lw-c em { position: absolute; top: -26%; left: 50%; transform: translateX(-50%); font-style: normal; font-weight: 900; font-size: 15px; color: #fff; background: #F57C00; border-radius: 999px; padding: 0 8px; display: none; white-space: nowrap; }
.lw-c.on em { display: block; animation: ptPop .4s; }
.lw-c.on { filter: drop-shadow(0 0 6px #FFD54A); cursor: default; }
.lw-c.gone .lw-bob { opacity: .0; transition: opacity .5s .3s; }
.lw-c.jump .lw-bob { animation: lwJump .6s; }
@keyframes lwJump { 40% { transform: translateY(-40%); } }
.lw-hide .lw-n, .lw-hide .lw-c em { display: none !important; }
.lw-n::before { content: '👆 '; }
.lw .pg-left.lw-n { font-size: 18px; }
.pg-ask { margin-top: 10px; }
/* places to drop things */
.lw-spot { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; width: 30%; z-index: 3; cursor: pointer; text-align: center; }
.lw-sp { display: flex; align-items: center; justify-content: center; gap: 4px; background: rgba(255,255,255,.88); border-radius: 50%; aspect-ratio: 1; padding: 6%; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.lw-sp .lw-face { height: calc(var(--u,3px) * 17); width: calc(var(--u,3px) * 17); } .lw-sp .lw-emo { font-size: calc(var(--u,3px) * 13); } .lw-sp .pg-im { height: calc(var(--u,3px) * 18); }
.lw-spot small { background: rgba(255,255,255,.94); border-radius: 12px; padding: 3px 8px; font-weight: 800; font-size: clamp(11px, 1.6vw, 15px); line-height: 1.2; color: #333; }
.lw-spot.win .lw-sp { box-shadow: 0 0 0 5px #66BB6A, 0 4px 12px rgba(0,0,0,.18); animation: ptPop .5s; }
.lw-spot.no .lw-sp { box-shadow: 0 0 0 5px #EF9A9A; }
.lw-story .lw-spot { top: 50% !important; }
.lw-zone { position: absolute; bottom: 5%; width: 40%; height: 52%; transform: translateX(-50%); border: 4px dashed rgba(255,255,255,.95); border-radius: 22px; background: rgba(120,80,40,.18); z-index: 2; display: flex; flex-direction: column; align-items: center; }
.lw-zone.sm { background: rgba(60,140,60,.18); } .lw-zone.home { background: rgba(255,200,120,.25); } .lw-zone.bush { background: rgba(40,120,40,.25); }
.lw-zone b { background: #fff; border-radius: 999px; padding: 2px 12px; margin-top: -14px; font-weight: 900; font-size: 15px; }
.lw-bin { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: flex-end; padding: 6px; }
.lw-zone .lw-bin i, .lw-safe .lw-bin i { font-style: normal; } .lw-zone .lw-bin .pg-im { height: calc(var(--u,3px) * 13); } .lw-zone .lw-bin .lw-emo { font-size: calc(var(--u,3px) * 9); }
.lw-pen { position: absolute; transform: translate(-50%, -50%); width: 38%; height: 44%; border: 6px solid #9C6B3C; border-radius: 10px; background: rgba(180,140,80,.2); z-index: 2; cursor: pointer; }
.lw-pen .lw-bin { height: 100%; align-content: center; } .lw-pen .lw-mini { height: calc(var(--u,3px) * 12); animation: lwBreathe 2.2s ease-in-out infinite; }
.lw-pen.win { border-color: #66BB6A; }
.lw-basket { position: absolute; transform: translate(-50%, -50%); height: 20%; z-index: 2; } .lw-basket .pg-im { height: 100%; } .lw-basket.big { height: 34%; } .lw-basket .lw-emo { font-size: calc(var(--u,3px) * 16); }
.lw-tap { position: absolute; bottom: 6%; height: 40%; transform: translateX(-50%); z-index: 2; display: flex; align-items: flex-end; }
.lw-tap > .pg-im { height: 100%; } .lw-fill { position: absolute; left: 30%; bottom: 0; height: 40%; } .lw-fill .lw-buck { height: 100%; }
.lw-tap.run::after { content: ''; position: absolute; left: 63%; top: 25%; width: 4px; height: 40%; background: linear-gradient(#8fd3f4, #5bb4f0); border-radius: 2px; animation: lwRun 1.2s 2; }
@keyframes lwRun { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.lw-bowl, .lw-buck { position: relative; display: inline-block; height: 64px; } .lw-bowl .pg-im, .lw-buck .pg-im { height: 100%; position: relative; z-index: 1; }
.lw-bowl i, .lw-buck i { position: absolute; left: 14%; right: 14%; bottom: 14%; background: linear-gradient(rgba(120,200,250,.95), rgba(40,130,210,.95)); border-radius: 40% 40% 50% 50%; z-index: 2; transition: height .5s; }
.lw-buck i { left: 20%; right: 20%; bottom: 10%; border-radius: 6px; opacity: .9; }
.lw-bowl.lw-big { position: absolute; left: 76%; bottom: 8%; height: 22%; z-index: 2; }
.lw-shpen { position: absolute; left: 50%; top: 58%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2; cursor: pointer; }
.lw-shpen .pt-shp { width: 100%; height: 100%; } .lw-shpen .pt-shp * { fill: rgba(140,200,90,.35); stroke: #8B5A2B; stroke-width: 4; stroke-dasharray: 7 3; }
.lw-shpen.win .pt-shp * { stroke: #43A047; stroke-dasharray: none; }
.lw-gin { position: absolute; left: 50%; top: 58%; height: 46%; transform: translate(-50%, -50%); } .lw-gin .pg-im { height: 100%; }
.lw-log { position: absolute; left: 50%; bottom: 8%; height: 16%; transform: translateX(-50%); z-index: 2; } .lw-log .pg-im { height: 100%; }
.lw-bunch { display: flex; align-items: flex-end; } .lw-bunch .pg-im { height: 52px; margin-left: -18px; transform: rotate(-12deg); } .lw-bunch .pg-im:first-child { margin-left: 0; }
.lw-plus { position: absolute; top: 5%; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 14px; padding: 2px 16px; font-weight: 900; font-size: 26px; z-index: 4; }
.lw-home { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; display: grid; place-items: center; background: rgba(255,255,255,.75); border: 4px dashed #F5A623; border-radius: 26px; z-index: 2; }
.lw-home .lw-emo { font-size: calc(var(--u,3px) * 22); } .lw-chosen { position: absolute; bottom: 4%; height: 50%; } .lw-chosen .pg-im { height: 100%; }
.lw-bowlt { position: absolute; transform: translate(-50%, -50%); height: 12%; z-index: 2; } .lw-bowlt .pg-im { height: 100%; }
.lw-scoop { display: flex; } .lw-scoop .pg-im { height: 100%; } .lw-scoop .pg-im + .pg-im { margin-left: -30%; }
/* balance and scale */
.lw-bal { position: absolute; left: 50%; bottom: 6%; width: 64%; height: 66%; transform: translateX(-50%); z-index: 2; }
.lw-beam { position: absolute; left: 0; right: 0; top: 30%; height: 5%; background: linear-gradient(#a7774a, #7a5230); border-radius: 6px; transition: transform 1s cubic-bezier(.3,1.4,.5,1); display: flex; justify-content: space-between; }
.lw-beam.tip-l { transform: rotate(-12deg); } .lw-beam.tip-r { transform: rotate(12deg); }
.lw-pan { position: relative; width: 36%; height: 520%; margin-top: -10%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 8px solid #c7ccd1; border-radius: 0 0 50% 50%; background: rgba(255,255,255,.35); cursor: pointer; transform-origin: 50% 0; }
.lw-beam.tip-l .lw-pan, .lw-beam.tip-r .lw-pan { transform: rotate(var(--r, 0deg)); } .lw-beam.tip-l .lw-pan { --r: 12deg; } .lw-beam.tip-r .lw-pan { --r: -12deg; }
.lw-pan .lw-bin .pg-im { height: calc(var(--u,3px) * 22); } .lw-pan .lw-bin b { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 999px; padding: 0 8px; font-weight: 900; }
.lw-post { position: absolute; left: 50%; top: 32%; bottom: 0; width: 5%; transform: translateX(-50%); background: linear-gradient(90deg, #7a5230, #a7774a, #7a5230); border-radius: 6px 6px 0 0; }
.lw-post::after { content: ''; position: absolute; bottom: 0; left: -160%; right: -160%; height: 8%; background: #7a5230; border-radius: 6px; }
.pg-ask .bk-op .pg-im { height: 52px; }
.lw-kg { position: absolute; left: 50%; bottom: 6%; width: 34%; height: 78%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 2; cursor: pointer; }
.lw-kpan { width: 100%; height: 30%; border-bottom: 10px solid #c7ccd1; border-radius: 0 0 40% 40%; display: flex; align-items: flex-end; justify-content: center; }
.lw-kpan .lw-bin span { position: relative; } .lw-kpan .pg-im { height: calc(var(--u,3px) * 18); } .lw-kpan b { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); font-weight: 900; font-size: 13px; color: #4A2E0F; }
.lw-dial { position: relative; width: 86%; aspect-ratio: 1; background: radial-gradient(#fff 62%, #e53935 63%, #c62828); border-radius: 22%; margin-top: 4%; box-shadow: 0 6px 12px rgba(0,0,0,.2); }
.lw-dial svg { width: 100%; height: 100%; } .lw-dial line { stroke: #333; stroke-width: 1.6; } .lw-dial text { font-size: 7px; font-weight: 800; text-anchor: middle; fill: #222; } .lw-dial text.u { font-size: 8px; }
.lw-needle { position: absolute; left: 50%; top: 20%; width: 2.5%; height: 34%; margin-left: -1.25%; background: #d32f2f; border-radius: 2px; transform-origin: 50% 100%; transform: rotate(-120deg); transition: transform 1.2s cubic-bezier(.3,1.5,.5,1); }
.lw-dial::after { content: ''; position: absolute; left: 50%; top: 54%; width: 8%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #333; }
/* tens */
.lw-pile { position: absolute; left: 2%; top: 44%; width: 52%; height: 54%; z-index: 3; touch-action: none; cursor: pointer; }
.lw-loose { position: absolute; height: 18%; } .lw-loose .pg-im { height: 100%; } .lw-loose.on { visibility: hidden; }
.lw-crates { position: absolute; right: 2%; top: 30%; width: 44%; bottom: 4%; display: flex; flex-wrap: wrap; gap: 4%; align-content: flex-end; justify-content: flex-end; z-index: 2; }
.lw-crate { position: relative; width: 44%; height: 28%; } .lw-crate > .pg-im { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lw-crate .lw-in, .lw-ones .lw-in { position: absolute; inset: 8% 10% 30%; display: flex; flex-wrap: wrap; align-content: flex-end; } .lw-crate .lw-in .pg-im, .lw-ones .lw-in .pg-im { height: 46%; margin: -2% -3%; transform: rotate(-60deg); }
.lw-crate em, .lw-ones em { position: absolute; top: -18%; left: 50%; transform: translateX(-50%); font-style: normal; font-weight: 900; background: #F57C00; color: #fff; border-radius: 999px; padding: 0 8px; display: none; }
.lw-crate.full em { display: block; animation: ptPop .4s; }
.lw-ones { position: relative; width: 44%; height: 28%; border: 3px dashed rgba(255,255,255,.9); border-radius: 12px; background: rgba(255,255,255,.25); }
/* picture graph */
.lw-two .pg-scene { aspect-ratio: 4 / 3; }
.lw-who { position: absolute; left: 50%; bottom: 8%; height: 46%; transform: translateX(-50%); z-index: 3; }
.lw-pet { position: relative; display: block; height: 100%; cursor: grab; touch-action: none; } .lw-pet > .pg-im { height: 100%; } .lw-pet.sel { filter: drop-shadow(0 0 8px #FFD54A); }
.lw-think { position: absolute; top: -28%; right: -46%; background: #fff; border-radius: 50%; width: 54px; height: 54px; display: grid; place-items: center; font-size: 32px; box-shadow: 0 3px 8px rgba(0,0,0,.2); animation: ptPop .5s; }
.lw-graph .bk-grow { cursor: pointer; min-height: 56px; } .lw-graph .bk-gico i .pg-im { height: 34px; }
.lw-graph .lw-row.hov { background: #FFF5CC; }
/* phone keypad */
.lw-dialsc { aspect-ratio: auto !important; min-height: 0; display: flex; justify-content: center; padding: 3% 0; }
.lw-phone { position: relative; z-index: 3; width: min(260px, 70%); background: #263238; border-radius: 28px; padding: 16px 14px 18px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.lw-scr { display: block; background: #E8F5E9; border-radius: 12px; padding: 10px; text-align: center; font: 900 28px ui-monospace, Menlo, monospace; letter-spacing: 3px; min-height: 52px; color: #1B5E20; }
.lw-scr i { font-style: normal; opacity: .35; } .lw-scr.ok { background: #C8E6C9; }
.lw-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.lw-key { height: 48px; border-radius: 50%; border: 0; background: #455A64; color: #fff; font: 800 22px inherit; cursor: pointer; } .lw-key:active { background: #607D8B; transform: scale(.94); } .lw-key.call { background: #43A047; }
/* little extras */
.lw-paws { display: flex; flex-wrap: wrap; width: 90px; font-size: 18px; line-height: 1; transform: rotate(-20deg); } .lw-paws.k10 { width: 120px; }
.lw-walker { position: absolute; left: 6%; bottom: 30%; height: 26%; transform: translateX(-50%); transition: left .7s cubic-bezier(.3,1.2,.5,1); z-index: 4; } .lw-walker .pg-im { height: 100%; }
.lw-kennel { position: absolute; bottom: 8%; height: 34%; transform: translateX(-50%); z-index: 2; display: flex; justify-content: center; cursor: pointer; } .lw-kennel .pg-im { height: 100%; }
.lw-kennel b { position: absolute; top: -18%; background: #fff; border: 3px solid #8B5A2B; border-radius: 10px; padding: 0 10px; font-size: 26px; font-weight: 900; }
.lw-stray { position: absolute; right: 3%; bottom: 6%; height: 30%; z-index: 1; animation: lwPace 9s ease-in-out infinite; } .lw-stray .pg-im { height: 100%; }
@keyframes lwPace { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-30%) scaleX(-1); } }
.lw-safe { position: absolute; left: 50%; top: 55%; width: 52%; height: 70%; transform: translate(-50%, -50%); border-radius: 50%; border: 5px dashed #66BB6A; background: rgba(200,240,200,.45); z-index: 2; display: grid; place-items: center; }
.lw-safe .lw-bin .lw-face { height: calc(var(--u,3px) * 14); width: calc(var(--u,3px) * 14); }
.lw-owl { position: absolute; left: 18%; bottom: 8%; height: 24%; z-index: 2; } .lw-owl .pg-im { height: 100%; }
.lw-cat10, .lw-tag10 { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; } .lw-cat10 { font-size: calc(var(--u,3px) * 6); line-height: 1; }
.lw-cat10 b, .lw-tag10 b { background: #fff; border-radius: 999px; padding: 0 6px; font-size: 12px; font-weight: 900; color: #333; white-space: nowrap; } .lw-tag10 .pg-im { height: 70%; } .lw-tag10 .lw-emo { font-size: 30px; }
.lw-board { position: absolute; top: 4%; left: 3%; min-width: 22%; min-height: 18%; background: #2E4B3C; border: 6px solid #8B5A2B; border-radius: 8px; z-index: 4; padding: 6px; display: flex; align-items: center; }
.lw-board .pt-tally { margin: 0; } .lw-board .pt-t5 { width: 40px; height: 34px; } .lw-board .pt-t5 line { stroke: #fff; }
.lw-word2 { position: absolute; top: 55%; width: 21%; transform: translate(-50%, -50%); background: #fff; border-radius: 16px; padding: 14px 6px; text-align: center; font-weight: 900; font-size: clamp(13px, 2vw, 18px); box-shadow: 0 4px 0 #E6D7B0; z-index: 2; cursor: pointer; }
.lw-face2 { font-size: 56px; line-height: 1; } .lw-word { font-size: 26px; font-weight: 900; padding: 6px 4px; }
.lw-shy { position: absolute; right: 6%; bottom: 6%; height: 26%; z-index: 2; } .lw-shy .pg-im { height: 100%; }
.lw-friend { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 4px; } .lw-friend i { font-style: normal; font-size: 26px; background: #fff; border-radius: 14px; padding: 2px 6px; }
.lw-poster { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; background: #FFFDF2; border: 3px solid #E0C97A; border-radius: 8px; padding: 6px; display: grid; justify-items: center; gap: 2px; font-weight: 800; font-size: clamp(10px, 1.5vw, 14px); z-index: 2; box-shadow: 0 6px 12px rgba(0,0,0,.2); }
.lw-poster > b { color: #C62828; font-size: 1.3em; } .lw-poster .pg-im { height: calc(var(--u,3px) * 26); }
.lw-tray .lw-poster { position: static; transform: none; width: 100%; font-size: 10px; box-shadow: none; } .lw-tray .lw-poster .pg-im { height: 44px; }
.lw-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: #fff; border-radius: 12px; padding: 6px; height: 100%; box-shadow: 0 4px 0 #E6D7B0; }
.lw-week i { font-style: normal; display: grid; place-items: center; width: clamp(24px, 5vw, 44px); border-radius: 8px; background: #F1F1F1; font-weight: 800; }
.lw-c.lit .lw-week i { background: #FFE082; } .lw-c.lit .lw-week i::before { content: '🐾'; font-size: 10px; position: absolute; margin-top: -24px; }
.lw-till { position: absolute; left: 22%; top: 56%; transform: translate(-50%, -50%); background: #37474F; color: #A6FF8F; border-radius: 14px; padding: 10px 16px; display: grid; justify-items: center; gap: 8px; z-index: 2; }
.lw-till b { font: 900 30px ui-monospace, Menlo, monospace; } .lw-till .note img, .lw-change .note img { height: 44px; } .lw-till .coin img, .lw-change .coin img { height: 36px; }
.lw-till[data-hint]::after { content: attr(data-hint); color: #fff; font-weight: 800; }
.lw-change { position: absolute; left: 66%; top: 56%; transform: translate(-50%, -50%); width: 52%; min-height: 50%; background: rgba(255,255,255,.85); border: 3px dashed #8D6E63; border-radius: 18px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px; }
.lw-sum { font-size: 22px; font-weight: 900; }
.lw-coins { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.lw-coin { background: #fff; border: 0; border-radius: 14px; padding: 6px 8px; box-shadow: 0 4px 0 #E6D7B0; cursor: pointer; font-size: 20px; } .lw-coin .note img { height: 40px; } .lw-coin .coin img { height: 40px; } .lw-coin:active { transform: translateY(2px); }
.lw-price { display: flex; flex-direction: column; align-items: center; } .lw-price b { background: #FFD54A; border-radius: 8px; padding: 0 8px; font-weight: 900; }
.lw-trolley { position: absolute; left: 56%; top: 60%; transform: translate(-50%, -50%); width: 36%; height: 56%; border: 4px dashed #fff; border-radius: 22px; background: rgba(255,255,255,.35); z-index: 2; display: flex; flex-direction: column; align-items: center; }
.lw-trolley > .lw-emo { font-size: calc(var(--u,3px) * 16); } .lw-trolley .lw-bin .pg-im { height: calc(var(--u,3px) * 14); } .lw-trolley .lw-bin b { display: none; }
.lw-have { position: absolute; left: 14%; top: 50%; z-index: 2; } .lw-have img { height: 54px; }
.lw-jugw { position: absolute; left: 42%; bottom: 8%; height: 70%; transform: translateX(-50%); z-index: 2; cursor: pointer; display: flex; } .lw-jugw .pt-jug { height: 100%; width: auto; aspect-ratio: 2 / 3; }
.lw-boxes { position: absolute; left: 4%; right: 4%; bottom: 8%; display: flex; justify-content: space-around; z-index: 2; }
.lw-dbox { background: rgba(255,255,255,.9); border: 0; border-radius: 16px; padding: 6px 10px; display: grid; justify-items: center; cursor: pointer; box-shadow: 0 4px 0 #E6D7B0; font: inherit; } .lw-dbox .lw-emo { font-size: calc(var(--u,3px) * 12); } .lw-dbox b { font-weight: 900; } .lw-dbox.on { box-shadow: 0 0 0 4px #66BB6A; }
.lw-two .bk-bars .bk-bar { transition: height 1s cubic-bezier(.3,1.3,.5,1); }
@media (max-width: 640px) { .lw-emo { font-size: 36px; } .lw-tray .pg-ch { min-height: 84px; } .lw-tray .pg-ch .pg-im { height: 46px; } .lw-c em { font-size: 12px; } .lw-paws { width: 60px; font-size: 13px; } .lw-paws.k10 { width: 76px; } }
@media (prefers-reduced-motion: reduce) { .lw-cloud, .lw-c .lw-bob, .lw-stray, .lw-pen .lw-mini { animation: none !important; } }
.lw-tub { position: absolute; left: 50%; top: 18%; width: 40%; transform: translateX(-50%); z-index: 1; pointer-events: none; }
.lw-tub .pg-im, .lw-tub img { width: 100%; height: auto; display: block; }
.lw-tub i { position: absolute; left: 14%; right: 14%; bottom: 22%; height: 0; max-height: 46%; background: linear-gradient(#7fd3ff, #2f9be0); border-radius: 0 0 40% 40% / 0 0 30% 30%; opacity: .85; transition: height .6s; }
.lw-c .lw-bob > .note, .lw-c .lw-bob > .coin { display: contents; }
.lw-c .lw-bob > .note img, .lw-c .lw-bob > .coin img { height: 100%; width: auto; max-width: none; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.lw-jugw .pt-jug > b em { background: rgba(255,255,255,.9); border-radius: 6px; padding: 0 4px; top: -10px; }
/* show-me hand */
.lw-hand { position: fixed; left: 0; top: 0; z-index: 9999; font-size: 46px; line-height: 1; pointer-events: none; opacity: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); transform-origin: 40% 10%; }
.lw-rip { position: fixed; z-index: 9998; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 4px solid #FFD54F; pointer-events: none; animation: lwRip .65s ease-out forwards; }
@keyframes lwRip { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.lw-gghost { position: fixed; left: 0; top: 0; z-index: 9997; pointer-events: none; opacity: .75; display: flex; align-items: center; justify-content: center; }
.lw-gghost img, .lw-gghost .pg-im { max-width: 100%; max-height: 100%; } .lw-gghost small { display: none; }
.lw-gtgt { filter: drop-shadow(0 0 10px #FFE066); }
.lw-mln { font-size: 18px; }
/* how many right answers are still needed: dots that fill */
.lw-dots { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; background: rgba(255,255,255,.88); padding: 8px 14px; border-radius: 999px; z-index: 6; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.lw-dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #F9A825; background: #fff; display: block; }
.lw-dots i.on { background: #43A047; border-color: #2E7D32; }
.lw-dots i.on::after { content: '✓'; color: #fff; font: 900 14px/16px sans-serif; display: block; text-align: center; }
/* care acted out */
.lw-prop { position: absolute; transform: translate(-50%,0); height: clamp(34px, 6vw, 58px); z-index: 3; display: flex; align-items: flex-end; place-items: end center; font-size: clamp(30px, 6vw, 54px); pointer-events: none; }
.lw-prop > img, .lw-prop > .lw-bowl, .lw-prop .pg-im { height: 100% !important; width: auto; max-width: none; }
.lw-prop.bed { height: 10%; } .lw-prop .pg-im { height: 100%; width: auto; }
.lw-float { position: absolute; font-size: clamp(22px, 4vw, 36px); z-index: 7; pointer-events: none; animation: lwFloat 1.6s ease-out forwards; }
@keyframes lwFloat { from { transform: translateY(0) scale(.6); opacity: 1; } to { transform: translateY(-120px) scale(1.2); opacity: 0; } }
.lw-till .lw-buy { display: flex; align-items: center; gap: 8px; } .lw-till .lw-buy img { height: 54px; }
/* "Did you know?" emergency card beside the phone */
.lw-dialsc { gap: 4%; align-items: center; }
.lw-sos { position: relative; z-index: 3; background: #FFFDE7; border: 4px solid #F9A825; border-radius: 18px; padding: 12px 14px; display: grid; gap: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.3); transform: rotate(-2deg); animation: lwSos 1s ease-out 1; }
.lw-sos b { font: 900 clamp(15px, 2.4vw, 20px) system-ui, sans-serif; color: #5D4037; }
.lw-sos span { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 6px 10px; }
.lw-sos i { font-style: normal; font-size: clamp(22px, 4vw, 32px); }
.lw-sos em { font: 900 clamp(18px, 3.4vw, 28px) ui-monospace, Menlo, monospace; font-style: normal; color: #263238; }
@keyframes lwSos { from { transform: rotate(-2deg) scale(.4); opacity: 0; } to { transform: rotate(-2deg) scale(1); opacity: 1; } }
@media (max-width: 520px) { .lw-dialsc { flex-direction: column; } .lw-sos { grid-template-columns: 1fr 1fr 1fr; transform: none; animation: none; } .lw-sos b { grid-column: 1 / -1; text-align: center; } .lw-sos span { flex-direction: column; gap: 2px; } }
.lw-preq { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(24px, 4vw, 34px); line-height: 1; }
.lw-preq img { height: 1.4em; width: auto; } .lw-preq b { font-weight: 400; animation: lwPreq 1.2s ease-in-out infinite; display: inline-block; }
@keyframes lwPreq { 50% { transform: translateX(6px); } }
.lw-dbox:not(:disabled):not(.on) { animation: lwBox 1.6s ease-in-out infinite; }
@keyframes lwBox { 0%, 100% { transform: none; } 10% { transform: rotate(-6deg) scale(1.05); } 20% { transform: rotate(5deg) scale(1.05); } 30% { transform: none; } }
/* 5 or 6 cards: a little smaller so they fit in one row on a laptop */
@media (min-width: 700px) { .lw-tray:has(> :nth-child(5)) { flex-wrap: nowrap; } .lw-tray:has(> :nth-child(5)) .pg-ch { width: 112px; min-height: 86px; padding: 6px; } .lw-tray:has(> :nth-child(5)) .pg-ch .pg-im { height: 46px; } .lw-tray:has(> :nth-child(5)) .pg-ch .bk-emo { font-size: 36px; } .lw-tray:has(> :nth-child(5)) .pg-ch small { font-size: 12px; } }
/* ===== Pet shop run (Grade 3 Level 2) ===== */
.sh-door { position: absolute; left: 64%; top: 31%; width: 9.5%; height: 29%; border-radius: 6px; z-index: 3; cursor: pointer; }
.sh-door.ready { box-shadow: 0 0 0 4px #FFD54A, 0 0 26px 8px rgba(255,213,74,.85); animation: shGlow 1.2s ease-in-out infinite; }
.sh-door.open { background: linear-gradient(90deg, rgba(255,240,190,.95), rgba(255,250,230,.6)); animation: none; }
@keyframes shGlow { 50% { box-shadow: 0 0 0 6px #FFD54A, 0 0 36px 14px rgba(255,213,74,.95); } }
.sh-van { position: absolute; left: 4%; bottom: 3%; width: 50%; z-index: 4; pointer-events: none; }
.sh-vbody { position: relative; display: block; animation: shBump .35s ease-in-out infinite; }
.sh-street .sh-van .sh-vbody { animation-iteration-count: 8; }
.sh-vbody > .pg-im { width: 100%; height: auto; display: block; }
@keyframes shBump { 50% { transform: translateY(-1.5%); } }
.sh-vface { position: absolute; left: 57.5%; top: 13%; width: 10.5%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid #fff; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.sh-vpup { position: absolute; left: 11%; bottom: 48%; width: 22%; z-index: 1; } .sh-vpup .pg-im { width: 100%; height: auto; }
.sh-think { position: absolute; left: 14%; bottom: 58%; z-index: 5; font-size: clamp(22px, 4vw, 40px); background: #fff; border-radius: 50%; padding: 6px 9px; box-shadow: 0 4px 10px rgba(0,0,0,.25); opacity: 0; transform: scale(.3); transition: all .4s cubic-bezier(.3,1.5,.5,1); }
.sh-think.on { opacity: 1; transform: scale(1); }
.sh-it { position: absolute; height: 17%; transform: translateX(-50%); z-index: 3; cursor: grab; display: flex; flex-direction: column; align-items: center; touch-action: none; }
.sh-it > .pg-im { height: 100%; width: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); transition: transform .2s; }
.sh-it:hover > .pg-im { transform: translateY(-4%) scale(1.05); }
.sh-tag { position: absolute; top: 100%; margin-top: 2px; width: clamp(30px, 5.4vw, 58px); height: clamp(16px, 2.6vw, 28px); perspective: 300px; }
.sh-tag b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 5px; font: 900 clamp(10px, 1.6vw, 17px) system-ui, sans-serif; backface-visibility: hidden; transition: transform .5s; box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.sh-tag .f { background: #FFF59D; color: #6D4C41; } .sh-tag .b { background: #fff; color: #C62828; border: 2px solid #C62828; transform: rotateY(180deg); }
.sh-it.flip .sh-tag .f { transform: rotateY(180deg); } .sh-it.flip .sh-tag .b { transform: rotateY(360deg); }
.sh-it.flip > .pg-im { transform: translateY(-12%) scale(1.15); }
.sh-cart { position: absolute; right: 2%; bottom: 1%; height: 46%; z-index: 4; }
.sh-cart > .pg-im { height: 100%; width: auto; }
.sh-cart.hov > .pg-im { filter: drop-shadow(0 0 10px #FFD54A); }
.sh-in { position: absolute; left: 22%; right: 6%; top: 8%; display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 2px; pointer-events: none; }
.sh-mini { display: grid; justify-items: center; } .sh-mini .pg-im { height: clamp(18px, 3.4vw, 40px); width: auto; } .sh-mini b { font: 800 clamp(8px, 1.2vw, 12px) system-ui; background: #fff; color: #C62828; border-radius: 4px; padding: 0 3px; }
.sh-list { margin: 10px auto 0; display: flex; gap: 12px; align-items: center; justify-content: center; background: #FFFDE7; border: 3px solid #F9A825; border-radius: 16px; padding: 8px 14px; width: fit-content; box-shadow: 0 4px 0 #E6D7B0; }
.sh-list > b { font-size: 30px; }
.sh-li { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 12px; padding: 4px 10px; } .sh-li .pg-im { height: 46px; width: auto; }
.sh-li em { font: 900 20px system-ui; font-style: normal; color: #5D4037; }
.sh-ticks { display: flex; gap: 4px; } .sh-ticks i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #F9A825; } .sh-ticks i.on { background: #43A047; border-color: #2E7D32; }
.sh-li.done { background: #E8F5E9; }
.sh-cash { position: absolute; left: 50%; bottom: 57%; height: 41%; z-index: 1; } .sh-cash .pg-im { height: 100%; width: auto; }
.sh-reg { position: absolute; left: 70%; bottom: 52%; width: 25%; background: #37474F; border-radius: 12px 12px 4px 4px; padding: 6px; z-index: 3; display: grid; gap: 4px; box-shadow: 0 6px 12px rgba(0,0,0,.35); }
.sh-lines { display: grid; gap: 2px; } .sh-lines span { display: flex; align-items: center; justify-content: space-between; background: #ECEFF1; border-radius: 4px; padding: 1px 5px; font: 800 clamp(9px, 1.4vw, 15px) ui-monospace, Menlo, monospace; }
.sh-lines .pg-im { height: clamp(12px, 2vw, 22px); width: auto; }
.sh-scr { background: #102A12; color: #A6FF8F; border-radius: 6px; text-align: center; font: 900 clamp(16px, 3vw, 32px) ui-monospace, Menlo, monospace; padding: 2px 4px; min-height: 1.2em; }
.sh-scr.ask { box-shadow: 0 0 0 3px #FFD54A; } .sh-scr i { font-style: normal; animation: shBlink 1s steps(2) infinite; } .sh-scr.ok { background: #1B5E20; }
.sh-scr[data-hint]::after { content: ' ' attr(data-hint); opacity: .45; font-size: .6em; }
@keyframes shBlink { 50% { opacity: 0; } }
.sh-belt { position: absolute; left: 0; right: 50%; bottom: 53%; height: 15%; z-index: 2; }
.sh-bi { position: absolute; bottom: 0; height: 100%; } .sh-bi .pg-im { height: 100%; width: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.sh-help { position: absolute; left: 2%; top: 3%; z-index: 5; display: none; gap: 3px; background: rgba(255,255,255,.95); border: 3px solid #42A5F5; border-radius: 12px; padding: 6px 10px; font: 800 clamp(11px, 1.8vw, 19px) system-ui; color: #263238; max-width: 52%; }
.sh-help.on { display: grid; } .sh-help b { color: #1565C0; }
.sh-pad { display: grid; grid-template-columns: repeat(6, minmax(44px, 64px)); gap: 8px; justify-content: center; margin: 12px auto 0; transition: opacity .3s; }
.sh-pad.wait { opacity: .35; pointer-events: none; }
.sh-key { height: 52px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 4px 0 #CFD8DC; font: 900 24px system-ui; color: #263238; cursor: pointer; }
.sh-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #CFD8DC; } .sh-key.ok { background: #43A047; color: #fff; box-shadow: 0 4px 0 #2E7D32; } .sh-key.del { background: #FFE0B2; }
.sh-tray { position: absolute; left: 30%; bottom: 51%; width: 30%; height: 21%; border: 3px dashed #8D6E63; border-radius: 14px; background: rgba(255,255,255,.55); z-index: 3; display: grid; place-items: center; }
.sh-tray.hov { background: rgba(255,236,150,.8); }
.sh-tray .sh-in { position: static; flex-wrap: wrap; } .sh-tray .note img, .sh-drawer .note img { height: clamp(18px, 3.4vw, 40px); } .sh-tray .coin img, .sh-drawer .coin img { height: clamp(16px, 2.8vw, 32px); }
.sh-paid { position: absolute; bottom: -1.4em; background: #fff; border-radius: 8px; padding: 0 8px; font: 900 clamp(12px, 2vw, 20px) system-ui; color: #2E7D32; }
.sh-pr { position: absolute; left: 3%; bottom: 55%; background: #fff; border-radius: 8px; padding: 4px 10px; font: 900 clamp(13px, 2.2vw, 22px) system-ui; z-index: 3; box-shadow: 0 3px 6px rgba(0,0,0,.25); }
.sh-drawer { position: absolute; left: 70%; bottom: 40%; width: 25%; height: 0; background: #546E7A; border-radius: 0 0 10px 10px; z-index: 3; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px; transition: height .5s; }
.sh-drawer.open { height: 18%; } .sh-cg { animation: shPop .4s both; } .sh-cg:nth-child(2) { animation-delay: .15s; } .sh-cg:nth-child(3) { animation-delay: .3s; } .sh-cg:nth-child(4) { animation-delay: .45s; }
@keyframes shPop { from { transform: scale(0); } to { transform: scale(1); } }
.sh-wallet .pg-ch .note img { height: 54px; }
.sh-vpark { position: absolute; left: 0; bottom: 3%; width: 34%; z-index: 2; } .sh-vpark .pg-im { width: 100%; height: auto; }
.sh-feed .sh-pup { z-index: 4; }
.sh-bowl { position: absolute; left: 38%; bottom: 4%; height: 12%; transform: translateX(-50%); z-index: 5; } .sh-bowl > .pg-im, .sh-bowl .lw-bowl { height: 100%; width: auto; }
.sh-bowl.w { left: 66%; } .sh-bowl.hov { filter: drop-shadow(0 0 8px #FFD54A); }
.sh-food { position: absolute; inset: -40% 0 30% 0; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; } .sh-food .pg-im { height: 80%; width: auto; }
@media (max-width: 640px) { .sh-pad { grid-template-columns: repeat(6, minmax(40px, 1fr)); gap: 6px; padding: 0 6px; } .sh-key { height: 46px; font-size: 20px; } .sh-li .pg-im { height: 34px; } .sh-list { gap: 6px; padding: 6px 8px; } .sh-list > b { font-size: 22px; } }
.sh-it > .pg-im { max-width: 15vw; object-fit: contain; } .sh-it[data-k="bone"] > .pg-im { height: 60%; margin-top: 40%; } .sh-it[data-k="collar"] > .pg-im { height: 70%; margin-top: 30%; }
.sh-wallet .sh-note { width: auto; min-width: 0; padding: 6px 8px; } .sh-wallet .sh-note .note img, .sh-wallet .sh-note img { height: clamp(34px, 5.4vw, 58px); width: auto; max-width: none; }
.sh-wallet { gap: 10px; flex-wrap: wrap; justify-content: center; }
.sh-pour { position: absolute; left: 50%; bottom: 95%; height: 120%; z-index: 6; pointer-events: none; transform-origin: 50% 90%; animation: shPour 1.5s ease-in-out forwards; }
.sh-pour > .pg-im { height: 100%; width: auto; }
@keyframes shPour { 0% { transform: translateX(-50%) rotate(0); opacity: 1; } 30% { transform: translateX(-30%) rotate(-110deg); } 65% { transform: translateX(-30%) rotate(-110deg); opacity: 1; } 100% { transform: translate(-160%, -120%) rotate(-30deg) scale(.6); opacity: 0; } }
.sh-food .fish { height: 70%; animation: shDrop .45s ease-out; } @keyframes shDrop { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Vet room (Grade 3 Level 3) ---------- */
.vt-street .sh-door { left: 66.5%; top: 38%; width: 7.5%; height: 27%; }
.vt-doc { position: absolute; left: 66%; bottom: 47%; height: 50%; z-index: 1; pointer-events: none; } .vt-doc .pg-im { height: 100%; width: auto; }
.vt-doc2 { left: 40%; }
.vt-room .vt-pup { z-index: 4; cursor: grab; } .vt-room .vt-pup.on { cursor: default; transform: translateX(-50%); }
.vt-scale { position: absolute; left: 24%; bottom: 38%; width: 30%; aspect-ratio: 350 / 250; z-index: 3; }
.vt-scale .vt-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.vt-scale.hov .vt-svg, .vt-scale.lw-gtgt .vt-svg { filter: drop-shadow(0 0 10px #FFD54A); }
.vt-scale.hint .vt-needle polygon { fill: #FF6F00; } .vt-scale.hint { animation: shGlow 1.2s ease-in-out infinite; border-radius: 50%; }
.vt-on { position: absolute; left: 0; width: 68%; bottom: 17%; height: 92%; pointer-events: none; z-index: 2; }
.vt-on .vt-pup { position: absolute; }
.vt-reg { left: 76%; bottom: 6%; width: 20%; z-index: 3; }
.vt-big { position: absolute; right: 3%; top: 5%; width: 25%; aspect-ratio: 1; z-index: 3; background: #fff; border-radius: 50%; box-shadow: 0 8px 18px rgba(0,0,0,.3); opacity: 0; transform: scale(.4); transition: opacity .4s, transform .4s; }
.vt-big.on { opacity: 1; transform: none; } .vt-big .vt-svg { width: 100%; height: 100%; } .vt-scale.hint ~ .vt-big { box-shadow: 0 0 0 5px #FFD54A, 0 8px 18px rgba(0,0,0,.3); }
.vt-room.vt-w .vt-doc { left: 52%; }
.vt-room .vt-doc3 { left: 58%; }
.vt-card { position: absolute; left: 4%; top: 6%; background: #fff; border-radius: 12px; padding: 8px 12px; display: grid; gap: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.25); z-index: 3; font: 800 clamp(13px, 2.2vw, 22px) Nunito, system-ui, sans-serif; color: #263238; border-top: 6px solid #26A69A; }
.vt-card > span { display: flex; align-items: center; gap: 6px; } .vt-card i { width: 1.1em; height: 1.1em; border-radius: 50%; border: 3px solid #FFB300; display: inline-block; }
.vt-card > span.ok i { background: #43A047; border-color: #43A047; } .vt-card > span.ok i::after { content: '✓'; color: #fff; font: 900 .8em system-ui; display: grid; place-items: center; height: 100%; font-style: normal; }
.vt-syrw { width: min(720px, 96%); box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px auto 0; max-width: 720px; padding: 0 8px; }
.vt-syr { position: relative; flex: 1; height: 76px; display: flex; align-items: center; cursor: ew-resize; user-select: none; touch-action: none; }
.vt-syr.used { opacity: .5; pointer-events: none; }
.vt-tip { flex: none; width: 26px; height: 12px; background: #CFD8DC; border: 2px solid #90A4AE; border-right: 0; border-radius: 6px 0 0 6px; }
.vt-bar { position: relative; flex: none; width: 47%; height: 42px; background: rgba(255,255,255,.95); border: 3px solid #90A4AE; border-radius: 6px; box-shadow: inset 0 3px 6px rgba(0,0,0,.08); }
.vt-liq { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#FFCC80, #FB8C00); border-radius: 3px 0 0 3px; }
.vt-mk { position: absolute; top: 0; height: 38%; border-left: 2px solid #455A64; z-index: 1; } .vt-mk.big { height: 60%; border-left-width: 3px; }
.vt-mk b { position: absolute; top: 42px; transform: translateX(-50%); font: 800 14px system-ui; color: #37474F; margin-top: 6px; }
.vt-mk.hint { border-color: #E53935; border-left-width: 4px; height: 100%; } .vt-mk.hint b { color: #E53935; font-size: 18px; animation: shBlink 1s steps(2) infinite; }
.vt-plg { position: absolute; left: 0; top: -8px; bottom: -8px; width: 104%; pointer-events: none; z-index: 2; }
.vt-plg i { position: absolute; left: -4px; top: 6px; bottom: 6px; width: 9px; background: #37474F; border-radius: 3px; }
.vt-plg::after { content: ''; position: absolute; left: 5px; right: 10px; top: 50%; height: 9px; margin-top: -4.5px; background: #78909C; border-radius: 3px; }
.vt-plg::before { content: ''; position: absolute; right: 0; top: -6px; bottom: -6px; width: 14px; background: #26A69A; border-radius: 7px; box-shadow: 0 2px 0 #00796B; }
.vt-ml { min-width: 64px; text-align: center; font: 900 clamp(16px, 3vw, 26px) Nunito, system-ui, sans-serif; color: #E65100; background: #fff; border-radius: 12px; padding: 6px 10px; box-shadow: 0 3px 0 #FFE0B2; }
.vt-give { width: 64px; }
@media (max-width: 640px) { .vt-syrw { gap: 6px; } .vt-bar { height: 34px; } .vt-mk b { font-size: 11px; top: 34px; } .vt-ml { min-width: 50px; padding: 4px 6px; } .vt-give { width: 48px; } }

/* ---------- Donation day (Grade 3 Level 4, Bloemfontein) ---------- */
.dn-street .sh-door { left: 67.3%; top: 34%; width: 10.4%; height: 21.5%; border-radius: 40% 40% 4px 4px / 22% 22% 4px 4px; }
.dn-shelter .sh-door { left: 8.4%; top: 25%; width: 8.2%; height: 29%; }
.dn-shelter .sh-van { bottom: 2%; }
.dn-shelter .sh-think { left: 20%; }
.dn-jar { position: absolute; left: 50%; bottom: 50%; width: 15%; height: 30%; transform: translateX(-50%); z-index: 3; border: 3px solid rgba(255,255,255,.9); border-top: 0; border-radius: 14% 14% 22% 22% / 8% 8% 14% 14%;
  background: linear-gradient(100deg, rgba(255,255,255,.55), rgba(220,240,255,.25) 35%, rgba(255,255,255,.1) 60%, rgba(255,255,255,.45)); box-shadow: inset 0 -10px 18px rgba(120,160,190,.35), 0 8px 14px rgba(0,0,0,.25); overflow: hidden; }
.dn-jar .dn-lid { position: absolute; left: -4%; right: -4%; top: 0; height: 9%; background: linear-gradient(#FFD54A, #F9A825); border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.dn-jar .dn-lid::after { content: ''; position: absolute; left: 30%; right: 30%; top: 35%; height: 30%; background: #5D4037; border-radius: 3px; }
.dn-in { position: absolute; inset: 12% 6% 4%; }
.dn-n { position: absolute; bottom: 4%; width: 70%; } .dn-n img, .dn-n .note img { width: 100%; height: auto; }
.dn-n:nth-child(n+3) { bottom: 18%; } .dn-n:nth-child(n+5) { bottom: 32%; } .dn-n:nth-child(n+7) { bottom: 46%; } .dn-n:nth-child(n+9) { bottom: 60%; }
.dn-strip { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; background: rgba(255,255,255,.78); padding: 6px 10px; border-radius: 14px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.dn-strip i { font-style: normal; font-weight: 900; font-size: clamp(13px, 1.9vw, 20px); color: #B0BEC5; min-width: 2.2em; text-align: center; }
.dn-strip i.on { color: #2E7D32; }
.dn-strip.glow i { color: #2E7D32; animation: shGlow 1.2s ease-in-out infinite; }
.dn-reg { left: 75%; bottom: 22%; width: 20%; }
.dn-g .lw-dots { display: none; }
.dn-board { position: absolute; left: 50%; bottom: 4%; width: 62%; height: 72%; transform: translateX(-50%); z-index: 3; display: flex; align-items: stretch; gap: 3%; padding: 3% 3% 0 9%;
  background: rgba(255,255,255,.88); border-radius: 14px; box-shadow: 0 8px 18px rgba(0,0,0,.3);
  background-image: linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)), repeating-linear-gradient(to top, transparent 0, transparent calc((100% - 30px) / 5 - 1px), #CFD8DC calc((100% - 30px) / 5 - 1px), #CFD8DC calc((100% - 30px) / 5)); }
.dn-ax { position: absolute; left: 1.5%; top: 3%; bottom: 30px; width: 6%; display: flex; flex-direction: column; justify-content: space-between; }
.dn-ax i { font-style: normal; font-weight: 800; color: #455A64; font-size: clamp(11px, 1.5vw, 16px); line-height: 1; }
.dn-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-radius: 8px; cursor: pointer; transition: background .2s; }
.dn-col:hover, .dn-col.sel { background: rgba(255,213,74,.25); }
.dn-col > b { height: 30px; line-height: 30px; font-weight: 900; color: #37474F; font-size: clamp(13px, 1.8vw, 20px); }
.dn-stk { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; align-items: center; border-bottom: 3px solid #455A64; }
.dn-stk i { height: 20%; display: flex; justify-content: center; } .dn-stk i img { height: 100%; width: auto; }
.dn-bx { position: relative; display: inline-block; } .dn-bx img { height: clamp(40px, 6vw, 64px); width: auto; }
.dn-bx b { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); background: #fff; color: #263238; font-weight: 900; border-radius: 6px; padding: 0 5px; font-size: clamp(12px, 1.6vw, 17px); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
@media (max-width: 640px) { .dn-jar { width: 22%; } .dn-board { width: 88%; height: 80%; } .dn-reg { left: 70%; bottom: 24%; width: 26%; } .dn-strip { gap: 2px; padding: 4px 6px; } }
.dn-wallet { display: flex !important; flex-wrap: wrap; max-width: 100%; gap: 6px; justify-content: center; }
.dn-wallet .sh-note { padding: 4px 5px; } .dn-wallet .sh-note img, .dn-wallet .sh-note .note img { height: clamp(30px, 4.2vw, 46px); }
.dn-jar { width: 19%; height: 36%; } .dn-n { width: 84%; left: 8% !important; }
.dn-col { min-width: 0; } .dn-stk i { max-width: 100%; } .dn-stk i img { max-width: 100%; object-fit: contain; }
.dn-wallet, .dn-btray { flex-wrap: wrap !important; max-width: 100%; overflow: visible; }
.dn-btray { gap: 6px; } .dn-btray .pg-ch { width: auto; min-height: 0; padding: 4px 6px; max-width: none; } .dn-btray .pg-ch .pg-im { height: clamp(38px, 5vw, 54px); width: auto; }
.dn-stk { position: relative; display: block; }
.dn-stk i { position: absolute; left: 50%; transform: translateX(-50%); height: 20%; width: 90%; display: flex; justify-content: center; }
.dn-stk i img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.dn-wallet .pg-ch { width: auto; min-height: 0; max-width: none; }
.dn-board { padding-top: 14px; }
.dn-ax { top: 14px; bottom: 33px; display: block; }
.dn-ax i { position: absolute; left: 0; transform: translateY(50%); }
.dn-ax i:nth-child(1) { bottom: 100%; } .dn-ax i:nth-child(2) { bottom: 80%; } .dn-ax i:nth-child(3) { bottom: 60%; } .dn-ax i:nth-child(4) { bottom: 40%; } .dn-ax i:nth-child(5) { bottom: 20%; }

/* ---------- Grade 2 arrival scenes ---------- */
.g2-d21 .sh-door { left: 64%; top: 41%; width: 7.3%; height: 20.7%; }
.g2-d22 .sh-door { left: 67.9%; top: 38%; width: 7.5%; height: 21%; }
.g2-d23 .sh-door { left: 67%; top: 33%; width: 18.6%; height: 32%; border-radius: 45% 45% 4px 4px / 20% 20% 4px 4px; }
.g2-d24 .sh-door { left: 71.7%; top: 41%; width: 5.2%; height: 19.4%; }
/* "How do we know?" thinking question (content-why.js) */
.why .why-c .choice { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.why .choice.soft { opacity: .55; }
.wy-pic { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 34px; line-height: 1.1; }
.wy-pic.emo { font-size: 44px; }
.wy-row { display: flex; gap: 6px; } .wy-row b { display: flex; flex-direction: column; align-items: center; font-weight: 700; }
.wy-row small { font: 700 18px var(--head); color: var(--purple-d); }
.wy-plate { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 50px; padding: 0 6px; border-radius: 50%; background: #F3F0FF; border: 3px solid #D9D0FF; font-size: 22px; }
.wy-plate.blue { background: #DBEAFE; border-color: #93C5FD; }
.wy-big { font-size: 46px; } .wy-big .arr { font-size: 40px; color: var(--purple-d); }
.wy-num { font: 800 30px var(--head); color: var(--purple-d); white-space: nowrap; } .wy-num u { text-decoration-thickness: 4px; text-decoration-color: #F97316; }
.wy-pair { font: 800 26px var(--head); color: var(--purple-d); gap: 6px; } .wy-pair > span { display: flex; flex-direction: column; align-items: center; gap: 4px; } .wy-pair .plus { flex-direction: row; }
.wy-dots { display: flex; flex-wrap: wrap; gap: 3px; max-width: 64px; justify-content: center; } .wy-dots i { width: 13px; height: 13px; border-radius: 50%; display: block; }
.why .wtxt { font-size: 15px; text-align: center; }
.why-ex { margin: 14px auto 0; max-width: 560px; text-align: center; background: #FFF7E6; border: 3px solid #FDD58A; border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.why-ex[hidden] { display: none; } .why-ex p { margin: 0; font: 700 20px var(--head); color: var(--purple-d); }
.why .choices.n3 .wy-num { font-size: 19px; white-space: nowrap; text-align: center; } .why .choices.n3 .wy-pic.emo { font-size: 38px; }
.wy-beads { font-size: 24px; gap: 0; letter-spacing: -2px; white-space: nowrap; }
@media (min-width: 700px) { .why .choices.n3 .wy-num { font-size: 28px; } .wy-beads { font-size: 30px; } }
@media (max-width: 600px) {
  .why.words .why-c { grid-template-columns: 1fr !important; max-width: 560px; margin: 0 auto; width: 100%; gap: 10px; }
  .why.words .why-c .choice { min-height: 72px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 10px 52px 10px 14px; text-align: left; }
  .why.words .why-c .wtxt { text-align: left; font-size: 17px; }
  .why.words .why-c .wy-num { font-size: 22px !important; min-width: 96px; }
  .why.words .why-c .cwrap > .speak.card { top: 50%; transform: translateY(-50%); }
  .why .choices.n3 .wy-row b { font-size: 24px; } .why .choices.n3 .wy-row small { font-size: 15px; }
  .why .choices.n3 .wy-plate { min-width: 0; height: 40px; padding: 0 4px; font-size: 13px; } .why .choices.n3 .wy-plate.blue { width: 34px; }
  .why .choices.n3 .wy-pic { gap: 4px; }
}
/* "Guess first, then check" (content-predict.js) */
.pr-show { display: flex; justify-content: center; align-items: flex-end; min-height: 120px; width: 100%; background: #EAF6FF; border-radius: 16px; padding: 10px 6px 8px; overflow: hidden; }
.pr-scale { position: relative; display: inline-flex; flex-direction: column; align-items: center; width: 150px; height: 92px; }
.pr-scale .beam { position: absolute; left: 6px; right: 6px; top: 46px; height: 6px; background: #7C5CFC; border-radius: 4px; transition: transform 1.2s cubic-bezier(.3,1.4,.5,1); transform-origin: 50% 50%; }
.pr-scale .beam b { position: absolute; bottom: 5px; font-size: 30px; line-height: 1; white-space: nowrap; display: flex; align-items: flex-end; }
.pr-scale .pl { left: -4px; } .pr-scale .pr { right: -4px; }
.pr-scale .post { position: absolute; top: 49px; left: 50%; margin-left: -10px; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 36px solid #F97316; }
.pr-scale.t-l .beam { transform: rotate(-14deg); }
.pr-scale.t-r .beam { transform: rotate(14deg); }
.pr-scale.anim .beam { transform: none; }
.pr-show.go .pr-scale.anim.t-l .beam { transform: rotate(-14deg); transition-delay: .5s; }
.pr-show .pr-scale { transform: scale(1.35); transform-origin: 50% 100%; margin-top: 30px; }
.why .choices.n3 .pr-scale { transform: scale(.8); margin: -8px -14px; }
.pr-rain { position: relative; display: flex; gap: 0; font-size: 50px; height: 110px; width: 160px; justify-content: center; }
.pr-rain i { position: absolute; top: 46px; font-size: 22px; font-style: normal; opacity: 0; }
.pr-rain i:nth-of-type(1) { left: 30px; } .pr-rain i:nth-of-type(2) { left: 62px; } .pr-rain i:nth-of-type(3) { left: 94px; } .pr-rain i:nth-of-type(4) { left: 126px; }
.pr-show.go .pr-rain i { animation: prDrop 1.1s linear infinite; } .pr-show.go .pr-rain i:nth-of-type(2) { animation-delay: .3s; } .pr-show.go .pr-rain i:nth-of-type(3) { animation-delay: .6s; } .pr-show.go .pr-rain i:nth-of-type(4) { animation-delay: .9s; }
@keyframes prDrop { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(55px); opacity: 0; } }
.pr-hat { position: relative; display: flex; align-items: flex-end; height: 110px; width: 200px; font-size: 56px; }
.pr-hat .kid { position: absolute; left: 30px; bottom: 0; } .pr-hat .hat { position: absolute; left: 38px; bottom: 50px; font-size: 38px; transition: transform 1.6s ease-in .4s; }
.pr-hat .air { position: absolute; left: 0; top: 4px; font-size: 32px; }
.pr-show.go .pr-hat .hat { transform: translate(96px, -20px) rotate(200deg); }
.pr-wind { position: relative; } .pr-wind .fly { position: absolute; right: -10px; top: -8px; font-size: 24px; transform: rotate(30deg); }
.pr-pot { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 44px; height: 66px; }
.pr-pot i { display: block; width: 40px; height: 30px; background: #C2410C; clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); border-radius: 3px; }
.pr-pot .pr-plant { font-size: 16px; line-height: 1; margin-bottom: -6px; } .pr-pot.dry i { background: #D6A97A; }
.pr-seeds { display: flex; gap: 18px; align-items: flex-end; } .pr-seeds > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 12px; }
.pr-seeds small { font-size: 22px; } .pr-seeds .dark { background: #334155; }
.pr-seeds .pr-pot { transform: scale(1.3); transform-origin: 50% 100%; margin-top: 18px; }
.pr-seeds .grow { display: inline-block; font-style: normal; transform: scale(.4); transform-origin: 50% 100%; transition: transform 2s ease-out .5s; }
.pr-show.go .pr-seeds .grow { transform: scale(1.6); }
.pr-pour { position: relative; width: 190px; height: 110px; font-size: 50px; }
.pr-pour .bk { position: absolute; left: 20px; top: 0; transform-origin: 80% 80%; transition: transform 1s ease .3s; } .pr-pour .cup { position: absolute; left: 100px; bottom: 0; }
.pr-pour i { position: absolute; left: 150px; bottom: 6px; font-style: normal; font-size: 30px; opacity: 0; transition: opacity .4s 1.3s; }
.pr-show.go .pr-pour .bk { transform: rotate(60deg); } .pr-show.go .pr-pour i { opacity: 1; animation: prWobble .8s 1.3s infinite alternate; }
@keyframes prWobble { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.pr-bkt { position: relative; display: inline-flex; align-items: flex-end; width: 50px; height: 52px; border: 4px solid #64748B; border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; background: #fff; }
.pr-bkt i { display: block; width: 100%; background: #60A5FA; transition: height 2.4s ease .6s; } .pr-bkt.soil i { background: #92400E; }
.pr-drip { position: relative; display: flex; align-items: flex-end; gap: 6px; width: 170px; height: 112px; font-size: 40px; }
.pr-drip .sky { position: absolute; right: 0; top: 0; font-size: 34px; } .pr-drip .tap { position: absolute; left: 34px; top: 0; }
.pr-drip .d { position: absolute; left: 62px; top: 40px; font-size: 16px; font-style: normal; opacity: 0; }
.pr-drip .pr-bkt { position: absolute; left: 48px; bottom: 0; }
.pr-show.go .pr-drip .d { animation: prDrop2 .7s linear infinite; } .pr-show.go .pr-drip .pr-bkt i { height: 62% !important; }
@keyframes prDrop2 { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.pr-june { display: flex; align-items: center; gap: 14px; font-size: 50px; height: 100px; }
.pr-june .cal { font: 800 22px var(--head); color: #fff; background: #EF4444; border-radius: 10px; padding: 14px 10px; }
.pr-june .snow { animation: none; } .pr-june .jer { transform: scale(.3); opacity: 0; transition: all .9s cubic-bezier(.3,1.5,.5,1) .6s; }
.pr-show.go .pr-june .jer { transform: scale(1.1); opacity: 1; } .pr-show.go .pr-june .snow { animation: prSpin 3s linear infinite; }
@keyframes prSpin { to { transform: rotate(360deg); } }
.pr-spin { position: relative; width: 150px; height: 104px; font-size: 56px; } .pr-spin .sun { position: absolute; right: 4px; top: 0; font-size: 36px; }
.pr-spin .leaf { position: absolute; left: 30px; bottom: 0; transform-origin: 50% 100%; transition: transform 2s ease .5s, filter 2s ease .5s; }
.pr-show.go .pr-spin .leaf { transform: rotate(-28deg) scaleY(.7); filter: sepia(.9) saturate(.7) brightness(.85); }
.pr-pk { display: inline-block; position: relative; width: 34px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FDBA74, #EA580C 70%); box-shadow: inset 6px 0 0 -3px #C2410C, inset -6px 0 0 -3px #C2410C; }
.pr-pk::before { content: ''; position: absolute; left: 15px; top: -6px; width: 5px; height: 8px; background: #15803D; border-radius: 2px; }
/* Block 2, Grade 3: sugar bag and gram weights on the scale, bottle filling with cups */
.pr-wt { display: inline-flex; gap: 3px; align-items: flex-end; }
.pr-wt small { font: 800 12px var(--head); color: #fff; background: #475569; border-radius: 6px 6px 3px 3px; padding: 5px 4px; line-height: 1; white-space: nowrap; }
.pr-wt.bag small { background: #F8FAFC; color: #1E3A8A; border: 2px solid #93C5FD; border-radius: 4px 4px 10px 10px; padding: 12px 6px 8px; }
.pr-bkt.btl { width: 40px; height: 66px; border: 4px solid #64748B; border-radius: 10px 10px 12px 12px; }
.pr-g3c { display: flex; align-items: flex-end; gap: 8px; font-size: 34px; height: 100px; }
.pr-g3c small { font: 800 14px var(--head); color: #334155; align-self: center; }
.pr-show.go .pr-g3c .c { animation: prTip 1s ease both; } .pr-show.go .pr-g3c .c:nth-child(2) { animation-delay: .9s; } .pr-show.go .pr-g3c .c:nth-child(3) { animation-delay: 1.8s; }
.pr-show.go .pr-g3c .pr-bkt i { height: 75% !important; transition-delay: .4s; }
@keyframes prTip { 0% { transform: rotate(0); } 50% { transform: rotate(-60deg) translateX(6px); } 100% { transform: rotate(0); opacity: .45; } }
/* Block A: starting check bubble and warm-up bubbles */
.node.sc .n-ic { background: #EAF4FF; }
.node.sc .n-ic .emo { font-size: 52px; }
.node.wu .n-ic { background: #FFF1E6; }
.node.wu .n-again { font-size: 13px; background: #fff; border-color: #FF8A3D; }
td .lvl { margin: 2px 0; text-align: left; }
.sc-tt td .lvl { white-space: nowrap; }

/* Phones only: full activity title on up to two lines, and a solid band behind the Play button so path labels never look cut by the button */
@media (max-width: 560px) {
  .bar { align-items: flex-start; }
  .bar-title { white-space: normal; text-overflow: clip; font-size: 16px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; padding-top: 4px; }
  .bar-title .kg { font-size: 13px; padding: 2px 8px; margin-right: 6px; vertical-align: 1px; }
  .play-dock { padding-top: 10px; background: #FFF8EC; box-shadow: 0 -6px 14px rgba(43,34,80,.10); border-top: 1px solid #ECE4F7; }
  .play-dock::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 26px; background: linear-gradient(180deg, rgba(255,248,236,0), #FFF8EC); pointer-events: none; }
  .foot { margin-bottom: 120px; }
}

/* ---------- vowel hand, painted (2027) ---------- */
.vh-hand { position: relative; width: 100%; aspect-ratio: 1; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vh-img { width: 100%; height: 100%; display: block; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(90,55,20,.18)); transform-origin: 50% 95%; }
.vh-hand .fg { position: absolute; transform: translate(-50%, -50%); width: 19%; aspect-ratio: 1; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; touch-action: none; -webkit-tap-highlight-color: transparent; z-index: 2; }
.vh-hand .bdg { width: 74%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 3px solid var(--vc); display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.16); transition: transform .25s, background .2s; }
.vh-hand .bt, .vh-hand .bq { font: 800 clamp(18px, 6.4vw, 27px)/1 var(--head); color: var(--vc); }
.vh-hand .bq { display: none; }
.vh-hand .fg.hid .bt { display: none; } .vh-hand .fg.hid .bq { display: block; color: #8E84A8; }
.vh-hand .fg.faint .bt { opacity: .3; }
.vh-hand .fg.lit .bdg { background: var(--vc); border-color: #fff; box-shadow: 0 0 0 4px var(--vc), 0 0 22px var(--vc); }
.vh-hand .fg.lit .bt { color: #fff; }
.vh-hand .fg.hop .bdg { animation: vhhop .9s ease-in-out infinite; border-width: 5px; }
.vh-hand .fg.wig .bdg { animation: vhwig .5s ease-in-out; }
.vh-hand .fg.shk .bdg { animation: fshk .4s; }
.vh-hand .fg:focus-visible .bdg { outline: 3px solid #222; outline-offset: 2px; }
.vh-hand .ring { position: absolute; inset: -4%; border-radius: 50%; border: 5px solid var(--vc); opacity: 0; pointer-events: none; }
.vh-hand .fg.glow .ring { opacity: 1; animation: vhpulse 1.1s ease-in-out infinite; }
.vh-hand .fg.glow .bdg { background: #FFFBEA; }
.vh-hand .fg.press .bdg { transform: scale(1.3); background: var(--vc); transition: transform .8s linear, background .8s linear; }
.vh-hand .fg.press .bt { color: #fff; transition: color .8s; }
.vh-hand.sleep .fg:not(.awake) .bdg { transform: scale(0); }
.vh-hand.wave .vh-img { animation: vhwave .9s ease-in-out; }
@keyframes vhhop { 50% { transform: translateY(-9px) scale(1.12); } }
@keyframes vhwig { 30% { transform: scale(1.25) rotate(-8deg); } 65% { transform: scale(1.1) rotate(6deg); } }
@keyframes vhpulse { 50% { transform: scale(1.18); opacity: .45; } }
@keyframes vhwave { 25% { transform: rotate(-9deg); } 60% { transform: rotate(8deg); } }
.vh-pic { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; display: block; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.vh-emo { font-size: 54px; line-height: 1; }
.hd-ask .vh-pic { width: 84px; height: 84px; }
.hdi-card .vh-pic { width: 58px; height: 58px; }
.vh-cap { font: 800 52px/1 var(--head); }
.hd-ask b { font: 800 28px var(--head); color: #2B2B3A; }
.vh-story .vh-st { display: flex; align-items: center; gap: 10px; margin: 0 8px; }
.vh-face { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.12); flex: none; }
.vh-st .bubble { background: #fff; border-radius: 20px; padding: 10px 14px; box-shadow: 0 3px 0 rgba(0,0,0,.08); position: relative; }
.vh-st .bubble p { margin: 0; font: 700 18px/1.3 var(--body); }
.vh-st .bubble .speak { position: static; transform: none; margin-top: 4px; }
.vh-wake { cursor: pointer; }
.vh-tip { text-align: center; font: 800 19px/1.3 var(--head); color: #4A3F6B; margin: 0 10px; min-height: 1.4em; }
.vh-tip .hd-all b { font-size: 36px; margin: 0 6px; }
.vh-tray, .vh-odd { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 8px; }
.vh-card { background: #fff; border: 3px solid #E6DFF5; border-radius: 18px; padding: 6px; min-width: 80px; min-height: 80px; display: grid; place-items: center; cursor: grab; touch-action: none; box-shadow: 0 4px 0 rgba(0,0,0,.08); transition: transform .15s, opacity .3s; }
.vh-card .vh-pic { width: 66px; height: 66px; }
.vh-card .vh-cap { font-size: 44px; }
.vh-card.sel { border-color: #6C4BF4; transform: translateY(-6px); box-shadow: 0 8px 0 rgba(108,75,244,.25); }
.vh-card.lift { opacity: .35; }
.vh-card.used { opacity: 0; transform: scale(.4); pointer-events: none; }
.vh-card.wrong { animation: fshk .4s; }
.vh-card.right { border-color: #2E9E4F; box-shadow: 0 0 0 4px #2E9E4F; animation: pop .4s; }
.vh-card.same { opacity: .55; }
.vh-ghost { position: fixed; z-index: 9999; pointer-events: none; margin: 0; transform: scale(1.08) rotate(-3deg); box-shadow: 0 12px 20px rgba(0,0,0,.2); }
.vh-odd .vh-card { cursor: pointer; min-width: 96px; min-height: 96px; }
.vh-odd .vh-card .vh-pic { width: 84px; height: 84px; }
.vh-odd.n2 .vh-card, .vh-odd.n3 .vh-card { min-width: 104px; min-height: 104px; }
.vh-odd.n2 .vh-pic, .vh-odd.n3 .vh-pic { width: 96px; height: 96px; }
.vh-bks { display: flex; justify-content: center; gap: 6px; padding: 0 6px; flex-wrap: wrap; }
.vh-bk { width: 62px; height: 72px; border-radius: 10px 10px 22px 22px; background: repeating-linear-gradient(90deg, #C98A4B 0 8px, #B87A3E 8px 16px); border: 3px solid var(--vc); display: grid; place-items: center; position: relative; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.vh-bk b { background: #fff; color: var(--vc); border-radius: 12px; padding: 2px 6px; font: 800 20px var(--head); }
.vh-bk .bk-n { position: absolute; top: -10px; right: -8px; font-style: normal; background: var(--vc); color: #fff; border-radius: 50%; min-width: 24px; height: 24px; display: grid; place-items: center; font: 800 13px var(--head); }
.vh-bk .bk-n:empty { display: none; }
.vh-bk.lit { box-shadow: 0 0 0 4px var(--vc), 0 0 18px var(--vc); }
.vh-bk.wig { animation: vhwig .5s; } .vh-bk.shk { animation: fshk .4s; }
.vh-nail { width: min(300px, 76vw); margin: 4px auto 0; background: #FFE9DC; border-radius: 48% 48% 34% 34% / 40% 40% 30% 30%; border: 5px solid #F4C9B4; box-shadow: inset 0 8px 0 rgba(255,255,255,.6), 0 6px 0 rgba(0,0,0,.08); }
.vh-nail svg { width: 100%; display: block; touch-action: none; }
.vh-nail .tg { fill: none; stroke: #fff; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.vh-nail .tgd { fill: none; stroke: #C9BBD9; stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.vh-nail .done { fill: none; stroke: var(--vc); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.vh-nail #vst { fill: #2E9E4F; stroke: #fff; stroke-width: 4; animation: vhpulse 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.vh-nail #vst.hey { animation: vhhop .4s 2; }
.vh-nail svg.ok .done { filter: drop-shadow(0 0 5px var(--vc)); }
.vh-where { flex-wrap: wrap; }
.vh-wd { font: 800 34px var(--head) !important; letter-spacing: 2px; color: #2B2B3A; }
.vh-train { display: flex; justify-content: center; gap: 6px; padding: 0 8px; }
.vh-car { flex: 1; max-width: 120px; min-height: 96px; border: 0; border-radius: 16px 16px 10px 10px; background: #6C4BF4; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px 6px 14px; cursor: pointer; position: relative; box-shadow: 0 5px 0 #4A2FC0; }
.vh-car:nth-child(2) { background: #F07F1A; box-shadow: 0 5px 0 #B85A08; } .vh-car:nth-child(3) { background: #2F7FD0; box-shadow: 0 5px 0 #1D5A9A; }
.vh-car::after { content: ''; position: absolute; bottom: -10px; left: 18%; right: 18%; height: 16px; background: radial-gradient(circle at 12px 8px, #333 7px, transparent 8px) left/24px 16px no-repeat, radial-gradient(circle at 12px 8px, #333 7px, transparent 8px) right/24px 16px no-repeat; }
.vh-win { font-style: normal; width: 50px; height: 40px; background: #fff; border-radius: 8px; display: grid; place-items: center; font-size: 26px; }
.vh-win b { font: 800 30px var(--head); }
.vh-car span { font: 800 15px var(--head); }
.vh-car.right { outline: 4px solid #2E9E4F; animation: pop .4s; } .vh-car.wrong { animation: fshk .4s; }
.vh-sent { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border-radius: 20px; padding: 12px 14px; margin: 0 10px; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.vh-sent p { margin: 0; font: 800 26px/1.3 var(--head); color: #2B2B3A; text-align: center; }
.vh-sent .speak.card, .vh-swap .speak.card { position: static; transform: none; margin: 0; flex: none; }
.vh-stamp .vh-paper { width: min(300px, 78vw); aspect-ratio: 1; margin: 6px auto; border: 3px dashed #C9BBD9; border-radius: 22px; background: #FFFDF6; display: grid; place-items: center; cursor: pointer; touch-action: none; -webkit-touch-callout: none; user-select: none; transition: transform .2s; }
.vh-stamp .vh-paper.hold { transform: scale(.96); background: #FFF3D6; }
.vh-press { width: 74px; height: 74px; border-radius: 50%; background: #FFD34D; display: grid; place-items: center; animation: vhpulse 1.2s ease-in-out infinite; }
.vh-press svg { width: 40px; height: 40px; }
.vh-stamp .vh-paper.done { border-style: solid; border-color: #F4C9B4; animation: zoom .35s; cursor: default; }
.vh-kc { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.vh-kc > b { font: 800 22px var(--head); color: #4A3F6B; }
.vh-print { position: relative; width: 82%; aspect-ratio: 1; display: block; }
.vh-print img { width: 100%; height: 100%; display: block; }
.vh-print i { position: absolute; transform: translate(-50%, -50%); width: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--vc); color: #fff; font: 800 clamp(14px, 4.6vw, 20px)/1 var(--head); font-style: normal; display: grid; place-items: center; border: 2px solid #fff; }
.vh-mk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 92%; }
.vh-mk > span { display: flex; flex-direction: column; align-items: center; background: #fff; border: 3px solid var(--vc); border-radius: 14px; padding: 4px; }
.vh-mk .vh-pic { width: 100%; height: auto; aspect-ratio: 1; }
.vh-mk b { font: 800 18px var(--head); color: var(--vc); }
.vh-keep { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0 10px; }
.vh-keep-i { width: 150px; background: #FFFDF6; border: 3px solid #F4C9B4; border-radius: 18px; padding: 8px; }
.vh-keep-i .vh-kc > b { font-size: 15px; }
.vh-keep-i .vh-mk b { font-size: 12px; } .vh-keep-i .vh-print i { font-size: 11px; }
@media (max-height: 760px) { .vh-pic { width: 64px; height: 64px; } .hd-ask .vh-pic { width: 70px; height: 70px; } .vh-nail { width: min(250px, 66vw); } .vh-face { width: 62px; height: 62px; } }
@media (prefers-reduced-motion: reduce) { .vh-hand .fg.hop .bdg, .vh-hand .fg.glow .ring, .vh-press, .vh-nail #vst, .vh-hand.wave .vh-img { animation: none !important; } }
.hand-wrap:has(.vh-hand) { width: min(340px, 84vw); }
.vh-sort .hand-wrap:has(.vh-hand), .slide-zone .hand-wrap:has(.vh-hand) { width: min(300px, 72vw); }
@media (max-height: 760px) { .hand-wrap:has(.vh-hand) { width: min(280px, 70vw); } .vh-sort .hand-wrap:has(.vh-hand) { width: min(240px, 60vw); } }
.vh-swap { flex-wrap: wrap; }
.vh-hint { flex-basis: 100%; text-align: center; font: 800 18px var(--head); color: #8E84A8; letter-spacing: 3px; }

/* ---------- Motse wa Me / My Village (add-on village builder, test site) ---------- */
.vl-ban { --sc: #E58A2B; background: linear-gradient(135deg, #FFE1A8, #FFC56B); }
.vl-bg { background: linear-gradient(180deg, #DFF3FF 0%, #F4FBE9 70%); }
.vl-myv { width: 100%; } .vl-myv h2 { margin: 0 0 6px; }
.vl-myvpic { border-radius: 20px; overflow: hidden; box-shadow: 0 8px 20px -12px rgba(0,0,0,.4); background: #fff; }
.vl-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.vl-lvpic { display: grid; place-items: center; background: linear-gradient(135deg, #FFF4D6, #FFE0A3); }
.vl-ic { font-size: 40px; } .vl-lv.adv .vl-lvpic { background: linear-gradient(135deg, #FFD9B8, #FF9F5A); }
.vl-lv.shut { opacity: .78; }
.vl-stage { width: 100%; gap: 12px; }
.vl-scene { width: 100%; max-width: 560px; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); background: #fff; touch-action: none; }
.vl-cloud { animation: vlcloud 26s linear infinite alternate; } .vl-cloud.c2 { animation-duration: 34s; }
@keyframes vlcloud { to { transform: translateX(40px); } }
.vl-sun { animation: vlsun 4s ease-in-out infinite alternate; transform-origin: 350px 40px; } @keyframes vlsun { to { transform: scale(1.08); } }
.vl-goat { animation: vlgoat 3.2s ease-in-out infinite; } @keyframes vlgoat { 50% { transform: translate(209px, 234px); } }
.vl-blob { transition: r .35s ease-out; opacity: .96; } .vl-fill { animation: vlfill .45s ease-out both; } @keyframes vlfill { from { opacity: 0; } to { opacity: 1; } }
.vl-meter { width: min(320px, 80%); height: 12px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 2px #E6D9B8; overflow: hidden; }
.vl-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #F2C230, #7BD148); transition: width .3s; }
.vl-pots { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.vl-pot { border: 0; background: #fff; border-radius: 18px; padding: 8px 10px 6px; display: grid; justify-items: center; gap: 4px; box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); cursor: pointer; min-width: 78px; font: inherit; touch-action: none; }
.vl-pot i { width: 46px; height: 40px; border-radius: 6px 6px 16px 16px; background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.55) 0 18%, transparent 19%), var(--pc); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); }
.vl-pot b { font-size: 15px; } .vl-pot.on { outline: 4px solid var(--pc, #5B4FD6); transform: translateY(-4px); } .vl-pot.on i { outline: 3px solid #fff; }
.vl-pot.used { opacity: .35; pointer-events: none; }
.vl-stage.brush .vl-scene { cursor: crosshair; }
.vl-target { animation: vltarget 1.1s ease-in-out infinite; } @keyframes vltarget { 50% { stroke: #FFB800; stroke-width: 5; } }
.vl-mixrow { display: flex; justify-content: center; width: 100%; }
.vl-bowl { width: min(260px, 70%); } .vl-bowl svg { width: 100%; } .vl-bowl.hov { transform: scale(1.06); }
.vl-bw { transition: fill .8s; } .vl-bowl.stir .vl-swirl { animation: vlstir 1s linear infinite; transform-origin: 80px 40px; } .vl-bowl.mixed .vl-swirl { animation: none; opacity: 0; }
@keyframes vlstir { to { transform: rotate(360deg); } }
.vl-blobop { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--pc); margin: 0 auto 4px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.vl-tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.vl-piece { background: #fff; border-radius: 16px; padding: 6px 8px; display: grid; justify-items: center; box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); cursor: grab; touch-action: none; min-width: 72px; }
.vl-piece b { font-size: 13px; } .vl-piece.sel { outline: 4px solid #5B4FD6; } .vl-piece.used { visibility: hidden; }
.vl-shp { width: 52px; height: 52px; } .vl-shp * { fill: #FFD27A; stroke: #C27C0E; stroke-width: 3; }
.vl-piece.square .vl-shp * { fill: #9FD0FF; stroke: #2C7BD9; } .vl-piece.triangle .vl-shp * { fill: #FF9C8A; stroke: #C94A3B; } .vl-piece.circle .vl-shp * { fill: #FFFFFF; stroke: #D64545; } .vl-piece.rectangle .vl-shp * { fill: #B9C3CE; stroke: #5C6B7A; }
.vl-ghost { pointer-events: none; z-index: 60; }
.vl-slot:not(.on) { animation: vlslot 1.4s ease-in-out infinite; cursor: pointer; } @keyframes vlslot { 50% { stroke: #FFB800; } }
.vl-slot.hov { fill: rgba(255,214,90,.6); } .vl-pop { animation: vlpop .45s ease-out; transform-box: fill-box; transform-origin: center; } @keyframes vlpop { 0% { transform: scale(.6); } 70% { transform: scale(1.08); } }
.vl-house, .vl-clinic { cursor: pointer; } .vl-glowb { filter: drop-shadow(0 0 8px #FFD84D) drop-shadow(0 0 4px #FFB800); }
.vl-opts { width: 100%; }
/* Grade 3 grid */
.vl-grid .vl-feh { stroke: rgba(0,0,0,.001); stroke-width: 22; stroke-linecap: round; cursor: pointer; }
.vl-grid .vl-fel { stroke: #FFB800; stroke-width: 4; stroke-dasharray: 6 5; stroke-linecap: round; pointer-events: none; animation: vlfel 1.2s ease-in-out infinite; }
@keyframes vlfel { 50% { stroke: #FFE07A; } }
.vl-fe .vl-post { fill: #FFE07A; opacity: .6; pointer-events: none; }
.vl-fe.on .vl-fel { stroke: #8B5A2B; stroke-width: 6; stroke-dasharray: none; animation: none; } .vl-fe.on .vl-post { fill: #5C3A1A; opacity: 1; }
.vl-fe.cnt .vl-fel { stroke: #2EA05A; } .vl-fn { font: 800 12px Nunito, sans-serif; fill: #1F5F35; text-anchor: middle; pointer-events: none; }
.vl-cell { cursor: pointer; transition: fill .3s; } .vl-cell.on { fill: #7A5232; } .vl-plant { pointer-events: none; animation: vlgrow .4s ease-out both; transform-box: fill-box; transform-origin: center bottom; }
@keyframes vlgrow { from { transform: scale(0); } }
.vl-plant { transform-box: view-box; }
.vl-count { display: inline-flex; gap: 10px; align-items: center; background: #fff; border-radius: 99px; padding: 6px 16px; box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); font-size: 18px; }
.vl-count span { font: 900 24px Fredoka, Nunito, sans-serif; color: #5B4FD6; min-width: 28px; text-align: center; } .vl-count span.bump { animation: vlpop .3s; }
.vl-gards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; align-items: end; }
.vl-gard { border: 0; background: #CDE8A8; border-radius: 18px; padding: 10px 8px; display: grid; justify-items: center; gap: 6px; cursor: pointer; font: inherit; box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); }
.vl-gard svg { max-height: 190px; width: auto; max-width: 100%; } .vl-gl { font-weight: 800; font-size: 14px; } .vl-ga { font: 800 16px Nunito, sans-serif; color: #2E6B2A; min-height: 20px; }
.vl-stage.ask .vl-gard { outline: 3px dashed #FFB800; } .vl-gard.right { outline: 4px solid #2EA05A !important; } .vl-gard.glow { animation: vltarget 1s infinite; outline: 4px solid #FFB800; }
.vl-fin .vl-finpic { width: 100%; max-width: 420px; margin: 0 auto 8px; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 20px -12px rgba(0,0,0,.4); }
.vl-finrow { display: flex; justify-content: center; gap: 8px; } .vl-nextl { font-weight: 800; color: #5B4FD6; }
.vl-scene .vl-svg { max-height: min(50vh, 420px); }
.vl-scene .vl-grid { max-height: min(46vh, 380px); }
/* Motse wa Me — painted pictures (Grade R rebuild) */
.vl-pic { background: #CFE8F7; }
.vl-scene .vl-pic { max-height: min(52vh, 440px); margin: 0 auto; }
.vl-myvpic .vl-pic { max-height: none; }
.vl-hitb { fill: transparent; cursor: pointer; } .vl-hitb.vl-glowb { fill: rgba(255,216,77,.18); stroke: #FFB800; stroke-width: 10; stroke-dasharray: 26 16; filter: none; animation: vltgt 1.1s ease-in-out infinite; }
.vl-tgt { fill: rgba(255,255,255,.01); stroke: #FFB800; stroke-width: 7; stroke-dasharray: 22 14; pointer-events: none; animation: vltgt 1.1s ease-in-out infinite; }
.vl-tgt.vl-tap { pointer-events: all; cursor: pointer; fill: rgba(255,230,140,.12); }
@keyframes vltgt { 50% { stroke-opacity: .35; stroke-width: 11; } }
.vl-in.vl-new { animation: vlfill .5s ease-out both; }
.vl-kid.bob image { animation: vlbob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes vlbob { 50% { transform: translateY(-10px); } }
.vl-gslot { cursor: pointer; animation: vlgs 1.4s ease-in-out infinite; } @keyframes vlgs { 50% { opacity: .55; } }
.vl-sloto { fill: rgba(255,255,255,.01); stroke: #FFB800; stroke-width: 5; stroke-dasharray: 16 10; }
.vl-gslot.hov .vl-sloto { fill: rgba(255,214,90,.45); stroke-width: 9; }
.vl-cp.vl-pop, .vl-tee.vl-pop { animation: vlpop .45s ease-out; transform-box: fill-box; transform-origin: center; }
.vl-pot { min-width: 84px; } .vl-pot img { width: 58px; height: auto; display: block; pointer-events: none; }
.vl-pot.on { outline: 4px solid var(--bc, #5B4FD6); background: #FFF8E1; }
.vl-opts .bk-op img { width: 44px; height: auto; display: block; margin: 0 auto 2px; }
.vl-piece img { display: block; width: auto; max-width: 92px; pointer-events: none; object-fit: contain; }
.vl-bowl { position: relative; width: min(280px, 72%); } .vl-bowli { width: 100%; display: block; pointer-events: none; }
.vl-mixl { position: absolute; left: 7.7%; width: 84.6%; top: 4.5%; opacity: 0; pointer-events: none; } .vl-mixl.on { animation: vlfill .8s ease-out both; }
.vl-bowl .vl-swirl { position: absolute; left: 30%; top: 9%; width: 40%; height: 12%; border-radius: 50%; border-top: 4px solid rgba(255,255,255,.75); opacity: 0; pointer-events: none; }
.vl-bowl.stir .vl-swirl { opacity: 1; animation: vlstir2 1s linear infinite; } .vl-bowl.mixed .vl-swirl { opacity: 0; animation: none; }
@keyframes vlstir2 { to { transform: rotate(360deg); } }
.vl-pi { cursor: pointer; } .vl-ring { fill: none; stroke: transparent; stroke-width: 10; }
.vl-pi.got .vl-ring { stroke: #2EA05A; } .vl-pi.hint .vl-ring { stroke: #FFB800; animation: vltgt 1s infinite; }
.vl-pi.vl-pop { animation: vlpop .45s ease-out; transform-box: fill-box; transform-origin: center; }
.vl-pi.shake, .vl-goat.shake { animation: vlwob .4s; transform-box: fill-box; transform-origin: center; } @keyframes vlwob { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.vl-cic svg, .vl-shic svg { width: 28px; height: 28px; display: block; } .vl-shic { display: block; width: 40px; margin: 0 auto 2px; } .vl-shic svg { width: 40px; height: 40px; }
.vl-tslot { cursor: pointer; animation: vlgs 1.4s ease-in-out infinite; } .vl-tslot .vl-sloto { fill: rgba(255,255,255,.35); }
.vl-tslot.hov .vl-sloto { fill: rgba(255,214,90,.55); }
.vl-qm { font: 900 80px Fredoka, Nunito, sans-serif; fill: #C27C0E; text-anchor: middle; pointer-events: none; }
.vl-tee image { animation: vlsway 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center top; } .vl-tee:nth-child(even) image { animation-delay: -1.5s; }
@keyframes vlsway { 50% { transform: rotate(3deg); } }
.vl-teep img { height: 56px; }
.vl-teep.glow, .vl-piece.glow { outline: 4px solid #FFB800; animation: vltarget 1s infinite; }
.vl-wheel image { transform-box: fill-box; transform-origin: center; }
.vl-cart.vl-hee .vl-donkey { animation: vlhop .5s ease-out 2; transform-box: fill-box; transform-origin: center bottom; }
@keyframes vlhop { 50% { transform: translateY(-24px); } }
.vl-cart.vl-go { animation: vlgo 2.4s ease-in-out forwards; } .vl-cart.vl-go .vl-wheel image { animation: vlspin .6s linear 4; }
@keyframes vlgo { to { transform: translateX(-200px); } } @keyframes vlspin { to { transform: rotate(-360deg); } }
.vl-goat { animation: none; cursor: grab; } .vl-goat.lift { cursor: grabbing; } .vl-goat .vl-gm { transition: none; }
.vl-goat:not(.in) .vl-gm image { animation: vlgraze 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.vl-goat:nth-child(odd):not(.in) .vl-gm image { animation-delay: -1.4s; } @keyframes vlgraze { 50% { transform: rotate(-3deg) translateY(-4px); } }
.vl-kraal { fill: rgba(255,214,90,.12); stroke: #FFB800; stroke-width: 7; stroke-dasharray: 22 14; pointer-events: none; animation: vltgt 1.2s infinite; }
.vl-num { font: 900 150px Fredoka, Nunito, sans-serif; fill: #fff; stroke: #5B4FD6; stroke-width: 8; paint-order: stroke; text-anchor: middle; }
.vl-dusk { position: relative; } .vl-dusk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,140,60,.22), rgba(255,170,90,.05) 60%); pointer-events: none; }
.vl-resume { position: fixed; inset: 0; background: rgba(20,20,40,.45); display: grid; place-items: center; z-index: 80; }
.vl-rbox { background: #fff; border-radius: 24px; padding: 20px; width: min(340px, 88vw); display: grid; gap: 12px; text-align: center; }
.vl-rbar { height: 12px; border-radius: 99px; background: #EEE; overflow: hidden; } .vl-rbar i { display: block; height: 100%; background: linear-gradient(90deg, #F2C230, #7BD148); }
.vl-rope { stroke: #D8BE86; stroke-width: 6; fill: none; filter: drop-shadow(0 2px 0 rgba(90,60,20,.45)); }
/* Motse wa Me — Grade 3 painted garden (Level 1 rebuild) */
.vl-paint .vl-fe .vl-fimg { opacity: 0; transition: opacity .25s; pointer-events: none; }
.vl-paint .vl-fe.on .vl-fimg { opacity: 1; animation: vlfup .35s ease-out; }
.vl-gards.vl-paint .vl-fimg { opacity: 1; }
@keyframes vlfup { from { opacity: 0; } to { opacity: 1; } }
.vl-paint .vl-fe.on .vl-fel { stroke: transparent; }
.vl-paint .vl-fel { stroke: #FFD34D; stroke-width: 4.5; filter: drop-shadow(0 0 3px rgba(255,200,0,.9)); }
.vl-paint .vl-fe.cnt .vl-fimg { filter: drop-shadow(0 0 3px #2EA05A); }
.vl-paint .vl-fn { font-size: 13px; fill: #fff; paint-order: stroke; stroke: #1F5F35; stroke-width: 3px; }
.vl-paint .vl-cell { cursor: pointer; }
.vl-paint .vl-cell.on { filter: brightness(.82); }
.vl-paint .vl-pgh { opacity: .55; filter: saturate(.5); animation: vlpgh 1.3s ease-in-out infinite; }
.vl-paint .vl-pgh.on { opacity: 1; filter: none; animation: vlpop .3s; }
@keyframes vlpgh { 50% { opacity: .85; } }
.vl-paint .vl-plant { animation: vlgrow .45s ease-out both; transform-box: fill-box; transform-origin: center bottom; }
.vl-gard { background: linear-gradient(#9CCB6A, #7DB34E); }
.vl-gard .vl-gl { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); } .vl-gard .vl-ga { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.vl-lat { fill: rgba(255,255,255,.7); pointer-events: none; }
.vl-handle circle { fill: #FFD34D; stroke: #8B5A2B; stroke-width: 3; animation: vltarget 1s infinite; transform-box: fill-box; transform-origin: center; cursor: grab; }
.vl-handle circle.in { fill: #8B5A2B; stroke: none; animation: none; }
.vl-runp { display: none; }
.vl-hen { animation: vlgrow .5s ease-out both; transform-box: fill-box; transform-origin: center bottom; }
.vl-henw { animation: vlbob 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes vlbob { 50% { transform: translateY(-2px) rotate(-3deg); } }
.vl-count em { font-style: normal; font-weight: 800; color: #8A8A8A; font-size: 18px; }
.vl-count span.hot { color: #2EA05A; } .vl-count.over span { color: #D64545; }
.vl-rowt rect { fill: #fff; stroke: #2EA05A; stroke-width: 2; } .vl-rowt text { font: 900 15px Fredoka, Nunito, sans-serif; fill: #2E6B2A; text-anchor: middle; }
.vl-rowt.vl-pop { transform-box: fill-box; transform-origin: center; }
.vl-foot { cursor: pointer; } .vl-foot .vl-fim { opacity: 0; transition: opacity .2s; pointer-events: none; }
.vl-foot .vl-fgh { fill: rgba(255,255,255,.28); stroke: rgba(255,255,255,.6); stroke-width: 1.5; stroke-dasharray: 3 3; }
.vl-foot.next .vl-fgh { fill: rgba(255,211,77,.55); stroke: #FFB800; animation: vltarget 1s infinite; transform-box: fill-box; transform-origin: center; }
.vl-foot.on .vl-fim { opacity: 1; } .vl-foot.on .vl-fgh { fill: transparent; stroke: transparent; }
.vl-stick { cursor: pointer; pointer-events: none; } .metres .vl-stick { pointer-events: auto; }
.vl-stick .vl-sim { opacity: 0; transition: opacity .2s; pointer-events: none; } .vl-stick.on .vl-sim { opacity: 1; }
.vl-stick .vl-sgh { fill: transparent; } .metres .vl-stick .vl-sgh { fill: rgba(255,255,255,.3); stroke: rgba(255,255,255,.7); stroke-dasharray: 3 3; }
.metres .vl-stick.next .vl-sgh { fill: rgba(255,211,77,.6); stroke: #FFB800; animation: vlpgh 1s infinite; } .vl-stick.on .vl-sgh { fill: transparent !important; stroke: transparent !important; }
.vl-mn { font: 800 10px Nunito, sans-serif; fill: #fff; paint-order: stroke; stroke: #1F5F35; stroke-width: 3px; text-anchor: middle; opacity: 0; } .vl-stick.on .vl-mn { opacity: 1; }
.vl-gards.vl-paint .vl-gard svg { max-height: min(32vh, 260px); }
/* ---------- My Village Grade R Level 2: the police station ---------- */
.vl-zone { fill: rgba(255,255,255,.08); stroke: #FFE07A; stroke-width: 9; stroke-dasharray: 22 14; cursor: pointer; animation: vlslot 1.4s ease-in-out infinite; }
.vl-zone.hov { fill: rgba(255,214,90,.45); stroke-width: 10; } .vl-zone.got { fill: rgba(46,160,90,.28); stroke: #2EA05A; stroke-dasharray: none; animation: none; }
.vl-zone.hint { fill: rgba(255,214,90,.35); stroke: #FFB800; stroke-width: 10; animation: vltgt 1s infinite; }
.vl-pz { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.75); stroke-width: 4; }
.vl-oops { animation: vloops .5s ease-in-out 2; transform-box: fill-box; transform-origin: center; } @keyframes vloops { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.vl-walk { cursor: pointer; transition: transform 1.2s ease-in, opacity 1.2s ease-in; } .vl-walk.gone { transform: translateY(190px); opacity: 0; pointer-events: none; }
.vl-scene.look-r svg { animation: vllookr .8s ease-in-out; } .vl-scene.look-l svg { animation: vllookl .8s ease-in-out; }
@keyframes vllookr { 50% { transform: translateX(-5%); } } @keyframes vllookl { 50% { transform: translateX(5%); } }
.vl-lamp { opacity: .35; } .vl-lamp.on { opacity: 1; filter: drop-shadow(0 0 10px #fff); }
.vl-lampp { min-width: 84px; } .vl-ldot { width: 40px; height: 40px; border-radius: 50%; display: block; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 0 10px currentColor; }
.vl-ldot.red { background: #FF3B30; color: #FF3B30; } .vl-ldot.yellow { background: #FFC400; color: #FFC400; } .vl-ldot.green { background: #2EE05A; color: #2EE05A; }
.vl-lslot { cursor: pointer; } .vl-lslot.hov .vl-sloto { fill: rgba(255,214,90,.6); } .vl-lslot.hint .vl-sloto { stroke-width: 9; animation: vltgt 1s infinite; }
.vl-sg { font-size: 30px; line-height: 1; } .vl-sg.stop { color: #D64545; } .vl-sg.go { color: #2EA05A; }
.vl-bdot { width: 56px; height: 40px; border-radius: 6px; display: block; border: 3px solid #5C6B7A; } .vl-bdot.w { background: #F4F3EE; } .vl-bdot.b { background: #33373D; }
.vl-choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; width: 100%; max-width: 760px; }
.vl-chpic { border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 0 6px 0 #E3D3A8; }
.vl-chpic .vl-pic { display: block; width: 100%; max-height: none; } .vl-chpic.right { box-shadow: 0 0 0 5px #2EA05A; } .vl-chpic.glow { box-shadow: 0 0 0 5px #FFB800; animation: vltarget 1s infinite; }
.vl-look { display: flex; gap: 14px; justify-content: center; } .vl-arrow { min-width: 130px; } .vl-arrow span { font-size: 26px; }
.vl-bins { display: flex; gap: 10px; justify-content: center; width: 100%; max-width: 560px; }
.vl-bin { flex: 1; background: #fff; border-radius: 16px; padding: 6px 8px; box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); min-height: 74px; }
.vl-bin b { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 15px; } .vl-bin .vl-shic svg { width: 22px; height: 22px; }
.vl-bin span { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; } .vl-bin img { height: 34px; width: auto; }
.vl-bin.vl-glowb { box-shadow: 0 0 0 4px #FFB800; filter: none; }
.vl-gopts .bk-op .vl-shic svg { width: 34px; height: 34px; }
.vl-ramp { fill: rgba(255,255,255,.06); } .vl-ramp.hov { fill: rgba(255,214,90,.4); }
.vl-it { cursor: grab; } .vl-it.lift { filter: drop-shadow(0 8px 6px rgba(0,0,0,.35)); } .vl-it.gone { display: none; }
.vl-cone { pointer-events: auto; } .vl-cone.vl-glowb { filter: drop-shadow(0 0 10px #FFD84D) drop-shadow(0 0 4px #FFB800); }
.vl-opts .bk-op img { height: 56px; width: auto; }
.vl-piece[data-k="sign"] { position: relative; } .vl-signw { position: absolute; left: 10px; right: 10px; top: 8px; height: 18px; background: #1F55B0; color: #fff; font: 900 11px Fredoka, Nunito, sans-serif; font-style: normal; display: grid; place-items: center; border-radius: 3px; pointer-events: none; overflow: hidden; white-space: nowrap; }
.vl-cnum { fill: #fff; stroke: #5B4FD6; stroke-width: 9; } .vl-cnumt { font: 900 72px Fredoka, Nunito, sans-serif; fill: #5B4FD6; pointer-events: none; }
.vl-cslot:not(.next) { animation: none; opacity: .75; } .vl-cslot.next .vl-sloto { fill: rgba(255,214,90,.45); stroke-width: 8; } .vl-cslot.next .vl-cnum { fill: #FFD84D; animation: vltgt 1s infinite; }
.vl-hand { position: fixed; z-index: 60; font-size: 40px; pointer-events: none; animation: vlhand 1.6s ease-in-out 2 forwards; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
@keyframes vlhand { 0% { transform: translate(0,0); opacity: 0; } 15% { opacity: 1; } 75% { transform: translate(var(--dx), var(--dy)); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
/* ---- My Village Grade 3 Level 2: the village from above ---- */
.vl-mapw { max-width: 560px; margin: 0 auto; } .vl-map { display: block; width: 100%; height: auto; border-radius: 22px; }
.vl-gl { stroke: rgba(255,255,255,.85); stroke-width: 5; stroke-dasharray: 18 12; }
.vl-glab circle { fill: rgba(43,42,107,.82); stroke: #fff; stroke-width: 4; } .vl-glab text { font: 900 46px Fredoka, Nunito, sans-serif; fill: #fff; text-anchor: middle; pointer-events: none; }
.vl-grid4 { pointer-events: none; }
.vl-cellz { fill: rgba(255,255,255,0); stroke: none; } .vl-cellz.hov { fill: rgba(255,214,90,.35); stroke: #FFE07A; stroke-width: 8; } .vl-cellz.hint { fill: rgba(255,214,90,.3); stroke: #FFB800; stroke-width: 9; animation: vltgt 1s infinite; }
.vl-tag rect { fill: #fff; stroke: #5B4FD6; stroke-width: 5; } .vl-tag text { font: 800 34px Nunito, sans-serif; fill: #2B2A6B; text-anchor: middle; } .vl-tag { pointer-events: none; }
.vl-drone image { filter: drop-shadow(0 18px 10px rgba(0,0,0,.28)); } .vl-drone { pointer-events: none; animation: vlhover 1.2s ease-in-out 5s infinite alternate; }
@keyframes vlhover { from { translate: 0 0; } to { translate: 0 -14px; } }
.vl-views { display: grid; gap: 12px; width: 100%; max-width: 640px; margin: 0 auto; }
.vl-front { background: #fff; border-radius: 20px; padding: 10px 14px 14px; text-align: center; box-shadow: 0 6px 16px rgba(43,42,107,.1); } .vl-front img { max-height: 170px; max-width: 90%; }
.vl-front small, .vl-tops small { display: block; font-weight: 800; color: #5B4FD6; margin-bottom: 6px; }
.vl-topr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vl-topb { padding: 6px; border: 4px solid transparent; border-radius: 18px; background: #fff; box-shadow: 0 6px 14px rgba(43,42,107,.12); cursor: pointer; }
.vl-topb .vl-top, .bk-op .vl-top { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; }
.vl-topb.right { border-color: #2EA05A; } .vl-topb.glow { border-color: #FFB800; animation: vltgt 1s infinite; }
.vl-opimg { max-height: 58px; max-width: 100%; display: block; margin: 0 auto 4px; } .bk-op small { display: block; font-size: .78rem; font-weight: 800; }
.bk-op .vl-top { max-width: 92px; margin: 0 auto 4px; } .vl-shp { width: 56px; height: 56px; display: block; margin: 0 auto 4px; fill: #E9B23A; stroke: #8A5A17; stroke-width: 4; }
.vl-dircard { display: flex; gap: 8px; justify-content: center; margin: 10px auto 6px; padding: 8px 12px; background: #FFF8E1; border: 3px dashed #F2B630; border-radius: 18px; width: fit-content; }
.vl-dir { display: grid; justify-items: center; font-size: 1.7rem; padding: 4px 10px; border-radius: 12px; opacity: .8; } .vl-dir small { font-size: .72rem; font-weight: 800; color: #2B2A6B; }
.vl-dir.now { background: #FFE07A; opacity: 1; transform: scale(1.08); } .vl-dir.done { opacity: .35; } .vl-dir.glow { animation: vltgt 1s infinite; background: #FFD84D; }
.vl-arrows { display: flex; gap: 10px; justify-content: center; } .vl-arw { display: grid; justify-items: center; gap: 2px; font-size: 2rem; min-width: 92px; padding: 8px 12px; border: none; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 #D8D4F5, 0 8px 16px rgba(43,42,107,.12); cursor: pointer; }
.vl-arw b { font-size: .82rem; color: #2B2A6B; } .vl-arw:disabled { opacity: .5; }
.vl-walker image { filter: drop-shadow(0 4px 3px rgba(0,0,0,.3)); } .vl-walker { pointer-events: none; }
.vl-rcase { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.vl-route { fill: none; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34 18; opacity: 1; cursor: pointer; } .vl-route.on { stroke-dasharray: none; stroke-width: 18; opacity: .75; }
.vl-feet3 { pointer-events: none; } .vl-bspot { fill: rgba(255,224,122,.55); stroke: #FFFFFF; stroke-width: 12; } .vl-home { fill: #FFD84D; stroke: #fff; stroke-width: 6; }
.vl-rchips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.vl-rchip { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 4px solid var(--c); background: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 6px 14px rgba(43,42,107,.12); }
.vl-rchip i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); } .vl-rchip .vl-rn { min-width: 1.4em; font-size: 1.15rem; color: var(--c); }
.vl-rchip.seen { background: color-mix(in srgb, var(--c) 14%, #fff); } .vl-rchip.right { outline: 5px solid #2EA05A; } .vl-rchip.glow { animation: vltgt 1s infinite; }
.vl-taxi { pointer-events: none; }

/* ---------- My Village Grade 3 Level 3: halve and double at the shop ---------- */
.vl-shopw { max-width: 560px; margin: 0 auto; } .vl-shop { display: block; width: 100%; height: auto; }
.s33-rel { position: relative; }
.s33-cust { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 3px 10px 3px 3px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.5); }
.s33-cust img { width: 46px; height: 46px; border-radius: 50%; display: block; } .s33-cust b { font: 900 20px Fredoka, Nunito, sans-serif; color: #5B4FD6; }
.s33-ghost { fill: rgba(255,255,255,.18); stroke: #fff; stroke-width: 5; stroke-dasharray: 12 9; pointer-events: none; }
.s33-it, .s33-or, .s33-coin { cursor: pointer; }
.s33-done { margin-left: 6px; }
.s33-eq { display: grid; justify-items: center; gap: 4px; width: 100%; }
.s33-eq:empty { display: none; }
.s33-dots { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.s33-dg { display: inline-flex; flex-wrap: wrap; max-width: 150px; gap: 5px; padding: 7px 9px; background: #fff; border-radius: 14px; box-shadow: 0 4px 10px -8px rgba(0,0,0,.5); }
.s33-dg i { width: 15px; height: 15px; border-radius: 50%; background: #E0483E; display: block; } .s33-dg + .s33-dg i { background: #3D7FD9; }
.s33-plus1 { font: 900 20px Fredoka, Nunito, sans-serif; display: inline-flex; align-items: center; gap: 4px; } .s33-plus1 i { width: 15px; height: 15px; border-radius: 50%; background: #2EA05A; display: block; }
.s33-sum, .s33-ln b { font: 900 26px Fredoka, Nunito, sans-serif; color: #2B2350; }
.s33-ln { margin: 0; font: 700 15px Nunito, sans-serif; color: #4A4370; text-align: center; } .s33-ln b { font-size: 22px; }
.s33-tot b { color: #5B4FD6; font-size: 26px; }
.s33-cnt { font: 900 70px Fredoka, Nunito, sans-serif; fill: #fff; stroke: #5A3A1A; stroke-width: 8; paint-order: stroke; }
.s33-psvg { display: block; width: auto; pointer-events: none; }
.s33-left { font-style: normal; background: #5B4FD6; color: #fff; border-radius: 999px; padding: 0 7px; margin-left: 2px; }
.s33-bn { font: 900 52px Fredoka, Nunito, sans-serif; fill: #3A2A10; }
.s33-bag { transform-box: fill-box; transform-origin: 50% 100%; } .s33-bounce { animation: s33bounce .5s ease-out; }
@keyframes s33bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-18px); } 60% { transform: translateY(4px); } }
.vl-glowo { filter: drop-shadow(0 0 10px #FFB800) drop-shadow(0 0 4px #FFB800); animation: vltarget 1s infinite; }
.s33-hc { font: 800 16px Nunito, sans-serif; line-height: 1.2; display: block; padding: 2px 2px; }
.s33-list { display: flex; align-items: center; gap: 10px; background: #FFFDF4; border: 3px dashed #E5C46A; border-radius: 18px; padding: 8px 12px; width: 100%; max-width: 560px; box-sizing: border-box; }
.s33-list > img { width: 54px; height: 54px; border-radius: 50%; flex: none; }
.s33-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; flex: 1; min-width: 0; }
.s33-list li { display: flex; align-items: center; gap: 6px; font: 800 15px Nunito, sans-serif; color: #6F6890; border-radius: 10px; padding: 2px 6px; }
.s33-list li img { height: 22px; width: auto; flex: none; } .s33-list li i { margin-left: auto; font-style: normal; color: #2EA05A; visibility: hidden; }
.s33-list li.now { background: #FFF0B8; color: #2B2350; } .s33-list li.done { color: #2EA05A; } .s33-list li.done i { visibility: visible; }
.s33-till { fill: rgba(255,255,255,.35); stroke: #8A6A3A; stroke-width: 6; stroke-dasharray: 16 10; }
.s33-tillt { font: 900 44px Fredoka, Nunito, sans-serif; fill: #fff; stroke: #5A3A1A; stroke-width: 7; paint-order: stroke; }
.s33-custc { right: auto; left: 50%; transform: translateX(-50%); }
.s33-cn { min-width: 58px; } .s33-cn.used { display: none; }
/* My Village Grade 3 Level 4: wall patterns */
.s34-next { fill: rgba(255,224,122,.25); stroke: #FFB800; stroke-width: 8; stroke-dasharray: 18 10; animation: vltgt 1s infinite; pointer-events: none; }
.s34-hit { fill: transparent; cursor: pointer; } .s34-t { cursor: pointer; transform-box: fill-box; transform-origin: center; }
.s34-no { animation: vlwob .4s; } .s34-no .s34-hit { fill: rgba(224,72,62,.25); }
.s34-mark { fill: none; stroke: #5B4FD6; stroke-width: 9; } .s34-lift { filter: drop-shadow(0 0 10px #FFB800); }
.s34-lab circle { fill: #fff; stroke: #C9962E; stroke-width: 6; } .s34-lab text { font: 900 46px Fredoka, Nunito, sans-serif; fill: #3A2A10; text-anchor: middle; }
.s34-b { cursor: pointer; } .s34-bc { font: 900 46px Fredoka, Nunito, sans-serif; fill: #fff; stroke: #5A3A1A; stroke-width: 7; paint-order: stroke; }
.s34-b4 { transform-box: fill-box; } .s34-b4.shake { animation: vlwob .4s; transform-origin: left center; }
.s34-pl rect { fill: #FFF6D8; stroke: #8A5A2B; stroke-width: 6; } .s34-pl text { font: 900 64px Fredoka, Nunito, sans-serif; fill: #3A2A10; text-anchor: middle; }
.s34-pl.new rect { fill: #DDF3E2; stroke: #2EA05A; }
.s34-nc { min-width: 64px; } .s34-ncv { font: 900 24px Fredoka, Nunito, sans-serif; color: #2B2350; } .s34-nc.used { display: none; }
.s34-gbg { fill: #8A5A2B; } .s34-cb { fill: #FFF8E6; stroke: #8A5A2B; stroke-width: 3; }
.s34-c.mine { cursor: pointer; } .s34-c.mine .s34-cb { fill: #FFFDF6; stroke-dasharray: 10 6; }
.s34-fold { stroke: #5B4FD6; stroke-width: 10; stroke-dasharray: 26 14; stroke-linecap: round; pointer-events: none; }
.s34-pos { font: 900 34px Fredoka, Nunito, sans-serif; fill: #fff; stroke: #5A3A1A; stroke-width: 6; paint-order: stroke; text-anchor: middle; }
.s34-row .s34-pos { font-size: 46px; }
.s34-grp { fill: rgba(255,224,122,.35); stroke: #FFB800; stroke-width: 7; pointer-events: none; animation: vlpop .35s ease-out; transform-box: fill-box; transform-origin: center; }
.s34-qm { font: 900 96px Fredoka, Nunito, sans-serif; fill: #5B4FD6; text-anchor: middle; }
.s34-ct { cursor: pointer; } .s34-go { display: flex; justify-content: center; } .s34-paint[disabled] { opacity: .45; }
.s34-tp { min-width: 0; padding: 5px; } .s34-tp img { max-width: none; border-radius: 6px; }
.s34-pot { min-width: 64px; cursor: pointer; } .s34-tray .s33-done { align-self: center; }
.s34-wp svg { display: block; pointer-events: none; }

/* My Village Grade 1 */
.g1-bdg circle { fill: #fff; stroke: #5B4FD6; stroke-width: 6; } .g1-bdg text { font: 900 38px Fredoka, Nunito, sans-serif; fill: #2B2350; text-anchor: middle; }
.g1-ct { cursor: pointer; } .g1-ct.on image { filter: drop-shadow(0 0 8px #FFD34D); }
.g1-new image { filter: drop-shadow(0 0 10px #7BE08A); }
.g1-pi.sel image, .g1-bl.lift image, .g1-pi.lift image { filter: drop-shadow(0 0 12px #FFB800); }
.g1-ot { font: 900 64px Fredoka, Nunito, sans-serif; fill: #3A2A10; }
.g1-tray .vl-piece img { max-width: none; }
.g1-spot { fill: rgba(255,224,122,.6); stroke: #FFFFFF; stroke-width: 12; animation: vltgt 1s infinite; }
.vl-snd { margin-left: auto; font-size: 22px; } .vl-snd.off { opacity: .6; }
/* Block 4 Grade R: odd-one-out set shown again in the reason step; "What goes together?" first picture */
.stem.b4-set, .stem.b4-pair { align-items: center; margin-bottom: 12px; }
.stem.b4-set span { font-size: 44px; line-height: 1; }
.stem.b4-set .b4-odd { padding: 4px 8px; border: 4px solid var(--coral); border-radius: 16px; margin-left: 6px; }
.stem.b4-pair span { font-size: 60px; line-height: 1; }
.stem.b4-pair .b4-plus { font: 700 36px var(--head); color: var(--purple); }
.stem.b4-pair .q { width: 66px; height: 66px; border: 4px dashed var(--purple); border-radius: 16px; display: grid; place-items: center; font: 700 36px var(--head); color: var(--purple); }
@media (max-width: 420px) { .stem.b4-set span { font-size: 36px; } .stem.b4-pair span { font-size: 48px; } .stem.b4-pair .q { width: 54px; height: 54px; font-size: 28px; } }

/* Block B: pass marks and review */
.node.wait .n-ic { filter: grayscale(.85) opacity(.55); }
.node .n-lock { position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; border-radius: 50%; background: #6B6880; color: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 #4B4860; z-index: 2; }
.node .n-lock svg { width: 18px; height: 18px; }
.node.redo { border-color: #FF8A3D; }
.node.wrong { animation: nodeShake .45s; }
@keyframes nodeShake { 20%, 60% { transform: translateX(calc(-50% - 8px)); } 40%, 80% { transform: translateX(calc(-50% + 8px)); } }
.node.pulse { animation: nodePulse .9s ease-in-out 3; }
@keyframes nodePulse { 50% { transform: translateX(-50%) scale(1.12); box-shadow: 0 0 0 12px rgba(255,138,61,.45); } }

/* Block C: teacher grouping page */
.tg-card h3 { margin: 2px 0 10px !important; }
.tg-row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid #EEE9F8; }
.tg-lv { display: flex; gap: 8px; align-items: center; } .tg-lv b { font: 800 16px var(--body); color: var(--ink-2); }
.tg-kids, .tg-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tg-kid { background: #F3F0FB; border-radius: 10px; padding: 4px 10px; font: 700 14px var(--body); }
.tg-acts small { width: 100%; color: var(--ink-2); font-weight: 700; }
.tg-act { background: #fff; border: 2px solid #E2DCF2; border-radius: 10px; padding: 4px 10px; font: 700 14px var(--body); }
.tg-act small { color: var(--ink-2); font-weight: 600; }
@media (max-width: 640px) { .tg-row { grid-template-columns: 1fr; gap: 6px; } }
@media print { .tg-print h1 { font-size: 15pt; margin: 0 0 4px; } .tg-print .tcard { box-shadow: none; border: 1px solid #ccc; border-radius: 8px; padding: 6px 10px; margin-top: 8px; break-inside: avoid; }
  .tg-print .tg-row { grid-template-columns: 34mm 1fr 1fr; padding: 4px 0; } .tg-print .tg-kid, .tg-print .tg-act { font-size: 10pt; padding: 1px 6px; } }
/* My Village Grade 1 Level 2: the water tank */
.g12-str rect { fill: #8FD3FF; opacity: 0; transition: opacity .15s; } .g12-str.on rect { opacity: .9; animation: g12run .25s linear infinite; } @keyframes g12run { 50% { fill: #C9ECFF; } }
.g12-cup { cursor: grab; } .g12-cup .cf { display: none; } .g12-cup.f .cf { display: inline; } .g12-cup.f .ce { display: none; } .g12-cup.lift image { filter: drop-shadow(0 0 12px #FFB800); }
.g12-hit { fill: transparent; stroke: transparent; cursor: pointer; } .g12-ct.hov .g12-hit, .g12-ct.hint .g12-hit { fill: rgba(255,214,90,.3); stroke: #FFB800; stroke-width: 8; stroke-dasharray: 18 12; }
.g12-mgone { opacity: .25; filter: grayscale(1); } .g12-mnew image { filter: drop-shadow(0 0 8px #7BE08A); }
.g12-mn { font: 900 24px Fredoka, Nunito, sans-serif; fill: #1C3F66; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 6px; }
.g12-lab { font: 900 46px Fredoka, Nunito, sans-serif; fill: #3A2A10; text-anchor: middle; paint-order: stroke; stroke: #FFF6D8; stroke-width: 10px; }
.g12-drip { fill: none; stroke: #8FD3FF; stroke-width: 16; stroke-linecap: round; opacity: .9; }
.g12-oi { cursor: pointer; } .g12-oi.on image { filter: drop-shadow(0 0 10px #7BE08A); } .g12-glow image { filter: drop-shadow(0 0 14px #FFB800); }
.g12-tapz.hint { animation: vltgt 1s infinite; }
.g12-tray .vl-piece img { max-width: none; }
.g12-pan.got { opacity: 0; }
.g12-li { cursor: pointer; } .g12-li.hint .g12-hit { fill: rgba(255,214,90,.25); stroke: #FFB800; stroke-width: 7; stroke-dasharray: 18 12; } .g12-li.g12-glow .g12-hit { stroke: #7BE08A; stroke-width: 9; fill: rgba(123,224,138,.18); }
.g12-wob { animation: g12wob .32s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; } @keyframes g12wob { 25% { transform: rotate(-2.5deg); } 75% { transform: rotate(2.5deg); } }
.g12-down path { fill: none; stroke: #2E9E4F; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 #fff); }
.g12-down { animation: g12bob 1s ease-in-out infinite; } @keyframes g12bob { 50% { transform: translateY(14px); } }
.g1-pu { cursor: pointer; } .g1-pu.hint .g12-hit { fill: rgba(255,214,90,.25); stroke: #FFB800; stroke-width: 7; stroke-dasharray: 18 12; }
/* Teacher helper: plan per group, today's groups */
.tg-plan { grid-column: 1 / -1; background: #FBFAFE; border: 2px solid #E2DCF2; border-radius: 12px; padding: 6px 12px; }
.tg-plan summary { cursor: pointer; font: 800 15px var(--body); padding: 4px 0; }
.tg-plan ol { margin: 6px 0 6px 18px; padding: 0; } .tg-plan li { margin: 4px 0; } .tg-plan p { margin: 4px 0; }
.tg-today h3 { margin: 2px 0 8px !important; } .tg-today .lvl { margin-right: 4px; }
@media print { .tg-print .tg-plan { border: 1px solid #ccc; padding: 2px 8px; font-size: 9.5pt; } .tg-print .tg-plan summary { font-size: 10pt; } }

/* drawn icons (round 1): our own painted picture shown in place of the emoji letter */
.emj { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.2em; background: center / contain no-repeat; color: transparent; -webkit-text-fill-color: transparent; overflow: hidden; line-height: 1.2em; text-align: center; text-shadow: none; }

/* Khudu the guide: greeting of the day (home) and cheer (finish card) */
.kh-card { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 10px 14px 10px 6px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.kh-img { width: 84px; height: 84px; flex: none; object-fit: contain; animation: khbob 3.2s ease-in-out infinite; }
.kh-bub { display: grid; gap: 2px; min-width: 0; }
.kh-bub small { font-weight: 700; opacity: .7; font-size: 13px; }
.kh-say { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kh-say b { font: 700 24px/1.15 var(--head); color: #2e7d32; }
.kh-rep span { font-weight: 700; font-size: 16px; }
.kh-spk { border: 0; background: #eef6ea; border-radius: 50%; width: 36px; height: 36px; font-size: 17px; cursor: pointer; flex: none; }
.kh-mean, .kh-foot { margin: 0; font-size: 14px; }
.kh-foot { opacity: .8; }
.kh-cheer { position: absolute; top: -46px; right: -8px; width: 96px; height: 96px; object-fit: contain; pointer-events: none; animation: khjump 1.1s ease-out .3s 2 both; }
@keyframes khbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes khjump { 0% { transform: translateY(0); } 35% { transform: translateY(-12px); } 70%, 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .kh-img, .kh-cheer { animation: none; } }
.kh-tour { position: fixed; inset: 0; z-index: 9000; background: rgba(30, 20, 60, .35); display: flex; align-items: flex-end; justify-content: center; padding: 16px; pointer-events: auto; }
.kh-tcard { position: relative; background: #fff; border-radius: 28px; padding: 18px 18px 16px; width: 100%; max-width: 440px; display: grid; justify-items: center; gap: 10px; text-align: center; box-shadow: var(--shadow); animation: zoom .35s ease-out; }
.kh-tcard img { width: 120px; height: 120px; object-fit: contain; margin-top: -70px; }
.kh-tcard p { margin: 0; font: 700 22px/1.25 var(--head); }
.kh-x { position: absolute; top: 10px; right: 12px; border: 0; background: #f1eefb; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.kh-dots { display: flex; gap: 6px; } .kh-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ddd6f3; } .kh-dots i.on { background: #2e7d32; }
.kh-hl { position: relative; z-index: 9001; box-shadow: 0 0 0 5px #fff, 0 0 0 10px #4caf50 !important; border-radius: 999px; }

/* music on/off button on the home term card */
.term-head .mu-col { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mu-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.22); color: #fff; display: grid; place-items: center; flex: none; cursor: pointer; opacity: .75; }
.mu-btn.on { background: rgba(255,255,255,.34); opacity: 1; }
.mu-btn svg { width: 20px; height: 20px; }
