/* Kids area (ages 5 to 9): big, warm, rounded, very few words. Every tappable thing is at least 44 points; most are 64 or more.
   Colour is never the only signal: numbers and icons go with it. System fonts only (nothing downloaded). */
:root {
  --k-font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, sans-serif;
  --k-ink: #18203f;          /* dark navy text on light shapes */
  --k-cream: #fff8ec;
  --k-sun: #ffc93c;  --k-sun-d: #d99a12;
  --k-coral: #ff6b57; --k-coral-d: #c94434;
  --k-teal: #23c4b0; --k-teal-d: #12907f;
  --k-blue: #4d9dff; --k-blue-d: #2a6fd0;
  --k-lilac: #9b7bff; --k-lilac-d: #6c4fd6;
  --k-lime: #8fd94f; --k-lime-d: #5fa82a;
  --k-night: #0b1230;
  --k-glass: rgba(14, 20, 48, 0.72);
}
.kids { position: fixed; inset: 0; overflow: hidden; font-family: var(--k-font); color: #fff; -webkit-user-select: none; user-select: none; touch-action: none; background: var(--k-night); }
.kids * { box-sizing: border-box; }
.kids canvas.k-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kids .k-ui { position: absolute; inset: 0; pointer-events: none; }
.kids .k-ui > * { pointer-events: auto; }

/* round buttons: Home, sound */
.k-round { position: absolute; width: 72px; height: 72px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,.28), 0 10px 24px rgba(0,0,0,.35); }
.k-round svg { width: 38px; height: 38px; }
.k-home { left: 18px; top: 16px; background: var(--k-sun); box-shadow: 0 6px 0 var(--k-sun-d), 0 10px 24px rgba(0,0,0,.35); }
.k-sound { right: 18px; top: 16px; background: var(--k-teal); box-shadow: 0 6px 0 var(--k-teal-d), 0 10px 24px rgba(0,0,0,.35); }

/* the activity's name, top middle */
.k-title { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 24px 10px 14px;
  background: var(--k-glass); border: 2px solid rgba(255,255,255,.16); border-radius: 999px; font-size: 28px; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.k-title .k-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.k-title .k-ico svg { width: 30px; height: 30px; }

/* the rover and its speech bubble (every word is read aloud: the little speaker says so) */
.k-rover { position: absolute; width: 150px; height: 150px; }
.k-rover svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.k-say { position: absolute; max-width: 360px; padding: 14px 20px 14px 18px; background: #fff; color: var(--k-ink); border-radius: 26px; font-size: 26px; font-weight: 800; line-height: 1.18;
  box-shadow: 0 6px 0 rgba(0,0,0,.18), 0 12px 30px rgba(0,0,0,.3); display: flex; gap: 12px; align-items: center; }
.k-say .k-spk { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e9f7ff; display: grid; place-items: center; }
.k-say .k-spk svg { width: 22px; height: 22px; }
.k-say::after { content: ""; position: absolute; width: 26px; height: 26px; background: #fff; border-radius: 4px; transform: rotate(45deg); }
.k-say.tail-left::after { left: -9px; bottom: 22px; }
.k-say.tail-right::after { right: -9px; bottom: 22px; }
.k-say.tail-down::after { left: 34px; bottom: -9px; }
.k-say b { color: var(--k-coral-d); }

/* big action buttons */
.k-btn { position: absolute; min-height: 84px; padding: 0 40px 4px; border: 0; border-radius: 999px; font: 800 34px/1 var(--k-font); color: var(--k-ink); display: flex; align-items: center; gap: 14px; cursor: pointer; white-space: nowrap; }
.k-btn svg { width: 40px; height: 40px; }
.k-btn.sun { background: var(--k-sun); box-shadow: 0 7px 0 var(--k-sun-d), 0 14px 28px rgba(0,0,0,.35); }
.k-btn.coral { background: var(--k-coral); color: #fff; box-shadow: 0 7px 0 var(--k-coral-d), 0 14px 28px rgba(0,0,0,.35); }
.k-btn.teal { background: var(--k-teal); box-shadow: 0 7px 0 var(--k-teal-d), 0 14px 28px rgba(0,0,0,.35); }
.k-btn.blue { background: var(--k-blue); color: #fff; box-shadow: 0 7px 0 var(--k-blue-d), 0 14px 28px rgba(0,0,0,.35); }
.k-hold-ring { position: absolute; inset: -8px; border-radius: 999px; border: 6px solid rgba(255,255,255,.85); clip-path: inset(0 40% 0 0); }

/* small print for grown-ups: "Illustration" and the locked sources corner */
.k-illus { position: absolute; left: 18px; bottom: 14px; font: 700 11px/1 var(--k-font); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); padding: 7px 10px; border-radius: 8px; background: rgba(0,0,0,.35); }
.k-grown { position: absolute; right: 16px; bottom: 12px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; border: 0; display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,.38); color: rgba(255,255,255,.82); font: 700 12px/1 var(--k-font); letter-spacing: .04em; cursor: pointer; }
.k-grown svg { width: 18px; height: 18px; }

/* the reveal: a burst of stars and a big happy number */
.k-reveal { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.k-reveal .k-big { font: 900 78px/0.95 var(--k-font); letter-spacing: -.01em; text-shadow: 0 5px 0 rgba(0,0,0,.25), 0 0 30px rgba(255,200,80,.45); }
.k-reveal .k-sub { font: 800 28px/1.1 var(--k-font); text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.k-burst { position: absolute; pointer-events: none; }
.k-burst svg { width: 100%; height: 100%; overflow: visible; }

/* chips: a number with an icon, never colour alone */
.k-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--k-ink); font: 800 22px/1 var(--k-font); box-shadow: 0 4px 0 rgba(0,0,0,.2); white-space: nowrap; }
.k-chip svg { width: 26px; height: 26px; }
.k-tag { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 800 20px/1 var(--k-font); text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 0 10px rgba(0,0,0,.5); white-space: nowrap; }
.k-tag small { font-size: 15px; font-weight: 700; opacity: .92; }

/* stars earned */
.k-stars { position: absolute; display: flex; gap: 6px; }
.k-stars svg { width: 40px; height: 40px; }

/* panels */
.k-card { position: absolute; background: var(--k-glass); border: 2px solid rgba(255,255,255,.14); border-radius: 30px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------------------------------------------------------------- the Kids area inside the app */
#kids.kids { z-index: 60; background: transparent; }
#kids[hidden] { display: none; }
body.kids-on > *:not(#kids):not(#view):not(script) { visibility: hidden !important; }
.k-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.k-stage button { font-family: var(--k-font); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.k-stage button:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.k-title { transform: translateX(-50%); }
.k-sub-title { position: absolute; transform: translateX(-50%); font: 800 19px/1 var(--k-font); padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); white-space: nowrap; }
.k-ibster { overflow: visible; }
.k-ibster svg { pointer-events: none; }
.k-count { display: flex; align-items: center; gap: 10px; font: 900 26px/1 var(--k-font); }
.k-count span { width: 40px; height: 40px; display: inline-block; }

/* a guess: big picture buttons */
.k-guess { display: grid; gap: 14px; }
.k-opt { min-height: 96px; border: 0; border-radius: 26px; background: #fff; color: var(--k-ink); font: 900 24px/1.05 var(--k-font); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; box-shadow: 0 7px 0 rgba(0,0,0,.25), 0 12px 24px rgba(0,0,0,.3); cursor: pointer; }
.k-opt img { width: 64px; height: 64px; filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.k-opt .k-opt-ic { width: 54px; height: 54px; display: block; }
.k-opt.picked { background: var(--k-sun); transform: translateY(3px); box-shadow: 0 4px 0 var(--k-sun-d); }

/* tiles on the home screen */
.k-grid { display: grid; gap: 14px; }
.k-tile { position: relative; border: 0; padding: 0; border-radius: 28px; overflow: hidden; background: #141c44; color: #fff; text-align: left; cursor: pointer; box-shadow: 0 7px 0 rgba(0,0,0,.35), 0 12px 24px rgba(0,0,0,.35); }
.k-tile-band { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: rgba(10,14,36,.55); }
.k-tile-t { position: absolute; left: 16px; bottom: 13px; right: 10px; font: 900 23px/1 var(--k-font); text-shadow: 0 2px 0 rgba(0,0,0,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-tile-ic { position: absolute; left: 14px; top: 14px; width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.22); }
.k-tile-ic span { width: 38px; height: 38px; display: block; }
.k-tile-star { position: absolute; right: 10px; top: 10px; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.k-tile-star svg { width: 34px; height: 34px; }
.k-tile-bonus { position: absolute; left: 80px; top: 24px; padding: 6px 10px; border-radius: 12px; background: #ffd23f; color: #18203f; font: 900 15px/1 var(--k-font); }
.k-tile-stk { background: linear-gradient(135deg,#ffd23f,#ff9b6a); color: #18203f; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 7px 0 #c9781f, 0 12px 24px rgba(0,0,0,.35); }

/* stickers */
.k-sticker { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 8px solid #fff; box-shadow: 0 8px 16px rgba(0,0,0,.35); display: grid; place-items: center; margin: 0 auto; }
.k-sticker img { display: block; }
.k-sticker-ic { position: absolute; right: -10px; bottom: -6px; width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 6px rgba(0,0,0,.3); }
.k-sticker-ic svg { width: 34px; height: 34px; }
.k-sticker-shine { position: absolute; left: -14px; top: -12px; width: 150px; height: 50px; border-radius: 50%; background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(255,255,255,0) 60%); transform: rotate(-20deg); pointer-events: none; }
.k-sticker.empty { border: 5px dashed rgba(24,32,63,.28); background: transparent; box-shadow: none; }
.k-book { display: grid; gap: 10px; align-content: center; padding: 22px; border-radius: 30px; background: linear-gradient(90deg, #fff8ec, #fff3dc 49.6%, #e9dcc0 50%, #fff3dc 50.4%, #fff8ec); box-shadow: 0 0 0 16px #2b2f6b, 0 16px 40px rgba(0,0,0,.5); overflow: auto; }
.k-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.k-slot .k-sticker { transform: scale(.92); }
.k-slot-t { font: 800 16px/1.15 var(--k-font); color: #18203f; text-align: center; }

/* the end of an activity */
.k-end { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 22px 22px; border-radius: 32px; background: rgba(14,20,48,.9); border: 2px solid rgba(255,255,255,.16); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.k-end-st .k-sticker { animation: kpop .6s cubic-bezier(.2,1.6,.4,1); }
.k-end-t { font: 900 30px/1 var(--k-font); }
.k-end-b { display: flex; gap: 14px; }
.k-end-b .k-btn { position: relative; min-height: 76px; font-size: 28px; padding: 0 26px 4px; }
@keyframes kpop { 0% { transform: scale(.2) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }

/* the grown-ups lock and panel */
.k-grown { position: absolute; overflow: hidden; }
.k-grown .k-grown-ring { position: absolute; left: 0; bottom: 0; height: 4px; width: 0%; background: #ffd23f; }
.k-grown.hint::after { content: "Hold for 3 seconds"; position: absolute; right: 0; bottom: 52px; white-space: nowrap; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.7); font: 700 13px/1 var(--k-font); }
.k-grown.hint { overflow: visible; }
.k-grownpanel { z-index: 5; padding: 22px 26px; border-radius: 26px; background: #fff; color: #18203f; overflow: auto; font: 500 16px/1.4 -apple-system, system-ui, sans-serif; box-shadow: 0 20px 60px rgba(0,0,0,.6); user-select: text; -webkit-user-select: text; }
.k-grownpanel h3 { margin: 0 0 8px; font: 800 24px/1.1 var(--k-font); }
.k-grownpanel ul { padding-left: 18px; }
.k-grownpanel li { margin: 6px 0; }
.k-grownpanel li span { color: #556; font-size: 13px; word-break: break-all; }
.k-grown-b { display: flex; gap: 12px; justify-content: flex-end; }
.k-grown-b .k-btn { position: relative; min-height: 60px; font-size: 22px; }

/* dragging */
.k-drag { cursor: grab; touch-action: none; user-select: none; }
.k-drag.lift { cursor: grabbing; transform: scale(1.12); filter: drop-shadow(0 14px 14px rgba(0,0,0,.5)); z-index: 4; }
.k-token { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 6px 4px 8px; border-radius: 22px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.2); }
.k-token img { width: 58px; height: 58px; pointer-events: none; }
.k-token b { font: 900 16px/1 var(--k-font); pointer-events: none; }
.k-btn.on { transform: translateY(4px); }
.k-burst-in { width: 100%; height: 100%; animation: kburst .9s ease-out both; }
@keyframes kburst { 0% { transform: scale(.3); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.k-reveal .k-big { animation: kpop .5s cubic-bezier(.2,1.6,.4,1); }

/* ---------------------------------------------------------------- activity pieces */
.thermo-tube { position: absolute; border-radius: 40px; background: #f4f7ff; box-shadow: inset 0 0 0 5px #18203f, 0 10px 30px rgba(0,0,0,.45); }
.thermo-fill { position: absolute; border-radius: 26px; background: linear-gradient(#ff3d2e, #ff9a3c 35%, #ffd23f 55%, #7fd3ff 80%, #4a8dff); transition: top .4s ease, height .4s ease; }
.thermo-bulb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #ff9b8a, #ff4a36 55%, #d32f1f); box-shadow: 0 0 0 6px #18203f, 0 10px 30px rgba(0,0,0,.45); }
.thermo-tick { position: absolute; width: 20px; height: 4px; background: #18203f; border-radius: 2px; }
.thermo-num { position: absolute; width: 74px; font: 800 20px/1 var(--k-font); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); text-align: right; }
.ref-ic { position: absolute; width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.ref-ic svg { width: 32px; height: 32px; }
.lead { position: absolute; height: 3px; background: rgba(255,255,255,.8); border-radius: 2px; transform-origin: 0 50%; pointer-events: none; }
.ref-chip { font-size: 18px; }
.temp-chip { flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 12px 7px; border-radius: 16px; }
.temp-chip b { font: 900 22px/1 var(--k-font); }
.temp-chip i { font: 800 13px/1.1 var(--k-font); font-style: normal; color: #4a5585; }
.temp-chip.big b { font-size: 38px; }
.temp-chip.big i { font-size: 16px; }
.k-token.placed { background: none; border-color: transparent; }
.k-token.placed b { display: none; }
.heat { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,150,60,.55), rgba(255,90,40,.18) 45%, rgba(255,80,40,0) 70%); }
.k-slot-box { position: absolute; border-radius: 24px; border: 4px dashed rgba(255,255,255,.35); display: grid; place-items: start center; padding-top: 6px; }
.k-slot-box span { font: 900 18px/1 var(--k-font); opacity: .7; }
.kcard { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.kn { display: flex; align-items: center; gap: 10px; font: 800 21px/1.05 var(--k-font); }
.kn small { font: 700 15px/1 var(--k-font); opacity: .85; }
.kn-ic { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.pin-chip, .ball-chip { position: absolute; font-size: 16px; padding: 6px 11px; white-space: nowrap; }
.ball-chip { background: #ffe9a8; }
.ball-chip svg { width: 22px; height: 22px; }
.mc-row { display: grid; gap: 10px; }
.mc-b { height: 132px; border-radius: 24px; background: #1c2552; border: 3px solid rgba(255,255,255,.22); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 6px 2px 8px; cursor: pointer; }
.mc-b img { height: 54px; width: auto; margin-top: 2px; }
.mc-b.on { background: #ffd23f; color: #18203f; border-color: #fff; box-shadow: 0 6px 0 #d99a12; }
.mc-c { display: flex; align-items: center; gap: 4px; font: 900 22px/1 var(--k-font); margin-top: auto; }
.mc-ic { width: 18px; height: 18px; display: inline-block; }
.mc-nm { font: 800 14px/1 var(--k-font); margin-top: 4px; opacity: .9; }
.spin-arrow { position: absolute; width: 120px; height: 60px; pointer-events: none; transition: opacity .4s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.medal { position: absolute; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 55%, #e0a100); border: 5px solid #18203f; display: grid; place-items: center; font: 900 30px/1 var(--k-font); color: #18203f; box-shadow: 0 6px 0 rgba(0,0,0,.3); animation: kpop .5s cubic-bezier(.2,1.6,.4,1); }
.lift-card { padding: 14px 18px 16px; }
.lift-row { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 10px; margin: 4px 0; padding: 4px 8px; border: 3px solid transparent; border-radius: 16px; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.lift-row.on { border-color: #ffd23f; background: rgba(255,210,63,.16); }
.lift-row img { width: 36px; height: 36px; }
.lift-row .lw { width: 72px; text-align: left; font: 800 19px/1 var(--k-font); }
.lift-row .lb { height: 24px; border-radius: 12px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.lift-row b { font: 900 20px/1 var(--k-font); white-space: nowrap; margin-left: auto; }
.order-next { position: absolute; border-radius: 50%; border: 4px dashed rgba(255,233,168,.95); background: rgba(255,233,168,.08); pointer-events: none; animation: kglow 1.4s ease-in-out infinite; }
@keyframes kglow { 50% { box-shadow: 0 0 24px rgba(255,233,168,.6); } }
.order-star { position: absolute; width: 40px; height: 40px; animation: kpop .5s cubic-bezier(.2,1.6,.4,1); }
.bd-pad { padding: 16px; }
.bd-q { font: 800 20px/1.1 var(--k-font); margin: 0 0 10px 4px; }
.bd-v { height: 84px; border-radius: 20px; background: #fff; color: #18203f; display: flex; align-items: center; justify-content: center; font: 900 64px/1 var(--k-font); margin-bottom: 12px; }
.bd-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bd-keys button { height: 62px; border: 0; border-radius: 18px; background: #fff; color: #18203f; font: 900 30px/1 var(--k-font); box-shadow: 0 5px 0 rgba(0,0,0,.22); cursor: pointer; display: grid; place-items: center; }
.bd-keys button svg { width: 30px; height: 30px; }
.bd-keys button.go { background: #ffd23f; box-shadow: 0 5px 0 #d99a12; font-size: 26px; }
.bd-grid { display: grid; gap: 12px; }
.bd-tile { min-height: 200px; border-radius: 24px; background: rgba(255,255,255,.1); border: 3px solid rgba(255,255,255,.16); display: flex; flex-direction: column; align-items: center; padding: 8px 6px 10px; text-align: center; }
.bd-tile.hero { background: #fff3c4; border-color: #ffd23f; color: #18203f; }
.bd-n { display: flex; align-items: center; gap: 6px; font: 800 17px/1 var(--k-font); }
.bd-n img { width: 30px; height: 30px; }
.cake { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.cake-c { display: flex; justify-content: center; height: 50px; margin-bottom: -4px; }
.bd-age { font: 900 30px/1 var(--k-font); margin-top: 6px; }
.bd-first { font: 800 13px/1.2 var(--k-font); margin-top: 4px; opacity: .9; }
.ground-view { position: absolute; overflow: hidden; background: linear-gradient(#3a8eea, #8cc8ff 58%, #cfe8ff 70%); border-right: 6px solid #fff; border-bottom: 6px solid #fff; }
.gv-sun { position: absolute; left: 50%; top: 18%; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; background: radial-gradient(circle, #fff7c2, #ffd23f 55%, #ffb21a); box-shadow: 0 0 60px 30px rgba(255,214,90,.55); }
.gv-dunes { position: absolute; left: 0; bottom: 0; width: 100%; height: 40%; }
.gv-t { left: 0; right: 0; top: 48%; text-align: center; }
.crayons { display: flex; justify-content: space-between; }
.crayon { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 0; min-width: 80px; transition: transform .25s; }
.crayon.picked { transform: translateY(-26px) rotate(-6deg); }
.k-dial svg { width: 100%; height: 100%; }
.k-token.small { width: 66px; padding: 4px 2px 6px; border-radius: 18px; }
.k-token.small b { font-size: 13px; }
.k-token.placed { width: auto; padding: 0; }
.k-token.placed.hero img { width: 90px !important; height: 90px !important; }
.temp-chip { flex-direction: row; align-items: baseline; gap: 8px; padding: 7px 12px; }
.temp-chip.ref { background: #eef2ff; }
.mark-ic { width: 26px; height: 26px; display: inline-block; align-self: center; }
.temp-chip.big { flex-direction: column; gap: 2px; }
.k-token.placed { padding: 0; border: 0; }
.k-token.placed img { width: 36px !important; height: 36px !important; }
.k-end.row { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 12px 16px; gap: 12px; }
.k-end.row .k-sticker { transform: scale(.6); margin: -28px; }
.k-end.row .k-end-t { font-size: 24px; }
/* every target stays at least 44 points on screen, whatever the stage's scale (--kt is 44 points in stage units) */
.k-grown { height: max(44px, var(--kt, 44px)); min-width: max(44px, var(--kt, 44px)); }
.bd-keys button { height: max(62px, var(--kt, 44px)); }
.lift-row { min-height: max(50px, var(--kt, 44px)); }
.k-token.small { min-width: max(66px, var(--kt, 44px)); min-height: max(66px, var(--kt, 44px)); }
.k-opt { min-height: max(96px, var(--kt, 44px)); }
.crayon { min-width: max(80px, var(--kt, 44px)); }
.k-round { width: max(72px, var(--kt, 44px)); height: max(72px, var(--kt, 44px)); }
.k-btn { min-height: max(84px, var(--kt, 44px)); }
.k-end-b .k-btn, .k-grown-b .k-btn { min-height: max(60px, var(--kt, 44px)); }
.k-token.pop { animation: kpop .45s cubic-bezier(.2,1.6,.4,1); }
.k-illus { line-height: 1.3; white-space: normal; }
.k-veil { position: absolute; background: rgba(6,10,28,.55); pointer-events: none; }
.dial-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dial-legend .k-chip i { width: 10px; height: 22px; border-radius: 5px; display: inline-block; }
.k-guess-q { grid-column: 1 / -1; font: 900 28px/1.2 var(--k-font); color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.6); margin-bottom: 4px; }
.k-end.row .k-end-b .k-btn { font-size: 24px; padding: 0 18px 4px; }
.bd-tile { min-height: 0; padding: 6px 4px 8px; }
.cake-c { height: 43px; }
.bd-age { font-size: 26px; margin-top: 4px; }
.bd-first { font-size: 12px; }
.k-token.placed.pop { animation: kpop .45s cubic-bezier(.2,1.6,.4,1); }
/* the compact end card: one row wherever it fits (about 510 wide) */
.k-end.row { gap: 10px; padding: 10px 12px; }
.k-end.row .k-sticker { transform: scale(.5); margin: -38px; }
.k-end.row .k-end-t { font-size: 22px; }
.k-end.row .k-end-b { gap: 10px; }
.k-end.row .k-end-b .k-btn { font-size: 22px; padding: 0 14px 4px; }
/* the backpack card in two columns on a tall screen */
.lift-card.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.lift-card.two > div { grid-column: 1 / -1; }
.lift-card.two .lift-row .lw { width: auto; }
.lift-card.two .lift-row .lb { display: none; }
.k-token.small.placed { min-width: 0; min-height: 0; }
.gv-t { left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
/* the learning trail on the home screen */
.k-grid.k-trail { gap: 22px; }
.k-trail-line { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.k-trail .k-tile { z-index: 1; }
.k-tile-n { position: absolute; left: 12px; top: 12px; width: 54px; height: 54px; border-radius: 50%; background: #ffd23f; color: #18203f; border: 3px solid #18203f; font: 900 29px/48px var(--k-font); text-align: center; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.k-tile-ic { left: auto; right: 12px; top: 12px; width: 48px; height: 48px; }
.k-tile-ic span { width: 32px; height: 32px; }
.k-tile-star { right: auto; left: 48px; top: 46px; width: 34px; height: 34px; }
.k-tile-star svg { width: 24px; height: 24px; }
.k-tile-band { height: 62px; }
.k-tile-t { white-space: normal; font-size: 21px; line-height: 1.04; bottom: 9px; max-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.k-tile.next { outline: 6px solid #ffd23f; outline-offset: 3px; animation: ktileglow 1.5s ease-in-out infinite; }
@keyframes ktileglow { 0%, 100% { box-shadow: 0 7px 0 rgba(0,0,0,.35), 0 0 0 0 rgba(255,210,63,0); } 50% { box-shadow: 0 7px 0 rgba(0,0,0,.35), 0 0 34px 10px rgba(255,210,63,.75); } }
.k-tile-next { position: absolute; left: 12px; bottom: 70px; padding: 6px 12px; border-radius: 14px; background: #ffd23f; color: #18203f; font: 900 19px/1 var(--k-font); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.k-stk-btn { display: flex; align-items: center; gap: 10px; min-height: max(72px, var(--kt, 44px)); padding: 6px 18px 6px 10px; border: 0; border-radius: 24px; background: linear-gradient(135deg, #ffd23f, #ff9b6a); color: #18203f; box-shadow: 0 6px 0 #c9781f, 0 10px 22px rgba(0,0,0,.35); cursor: pointer; text-align: left; }
.k-stk-btn .k-stk-ic { width: 52px; height: 52px; display: block; flex: none; }
.k-stk-btn b { display: block; font: 900 22px/1.05 var(--k-font); }
.k-stk-btn small { display: flex; align-items: center; gap: 5px; margin-top: 3px; font: 800 17px/1.1 var(--k-font); }
.k-stk-btn small i { width: 20px; height: 20px; display: inline-block; }
/* the callback line under a reveal (when it is not in Carly's bubble) */
.k-reveal .k-cb { font: 800 21px/1.2 var(--k-font); color: #cfe3ff; text-shadow: 0 2px 0 rgba(0,0,0,.35); max-width: 100%; }
/* the Explorer test */
.xq-prog { display: flex; align-items: center; justify-content: center; gap: 14px; font: 800 22px/1 var(--k-font); }
.xq-dots { display: flex; gap: 8px; }
.xq-dots i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.6); }
.xq-dots i.done { background: #8fd94f; border-color: #8fd94f; }
.xq-dots i.now { background: #ffd23f; border-color: #ffd23f; }
.xq-part { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font: 800 19px/1 var(--k-font); }
.xq-part .xq-ic { width: 26px; height: 26px; display: block; }
.xq-box .k-opt { min-height: max(150px, var(--kt, 44px)); gap: 8px; }
.xq-box .k-opt img { width: 76px; height: 76px; }
.xq-draw { height: 88px; display: grid; place-items: center; }
.k-opt.tried { opacity: .45; animation: kwiggle .45s ease; }
.k-opt.right { background: #d6f8c6; box-shadow: 0 4px 0 #6cc24a; transform: translateY(3px); }
@keyframes kwiggle { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.xq-badge { position: absolute; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); animation: kpop .6s cubic-bezier(.2,1.6,.4,1); }
.xq-box { padding: 16px 18px 20px; border-radius: 30px; background: rgba(10,14,36,.78); border: 2px solid rgba(255,255,255,.14); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.xq-prog { padding: 8px 16px; border-radius: 999px; background: rgba(10,14,36,.7); }
.bd-orbit { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bd-orbit .k-chip { font-size: 22px; padding: 8px 14px; gap: 8px; }
.bd-orbit .k-chip img { width: 32px; height: 32px; }
.bd-tile { background: rgba(14,20,48,.9); }
.bd-tile.hero { background: #fff3c4; }
.k-reveal.boxed { padding: 12px 20px 14px; border-radius: 26px; background: rgba(14,20,48,.78); }
.k-tag.dark { padding: 3px 6px; border-radius: 10px; background: rgba(14,20,48,.82); }
.k-token.k3d img { visibility: hidden; }
/* the birthday cards are buttons: a tap reads the card aloud; the first-birthday line is as big as the planet's name */
button.bd-tile { font: inherit; color: #fff; cursor: pointer; width: 100%; }
button.bd-tile.hero { color: #18203f; }
.bd-tile .bd-n, .bd-tile .bd-age, .bd-tile .bd-first { display: flex; justify-content: center; }
.bd-first { display: block; font: 800 17px/1.15 var(--k-font); margin-top: 4px; opacity: 1; }
.bd-tile.young .cake-c { display: none; }   /* no candles yet, so no empty space above the cake */
/* crisp words inside chips and pills: no shadow or glow from the label around them */
.k-chip, .k-tag .k-chip, .k-tag .k-chip * { text-shadow: none; }
/* a finished game's tick */
.k-tile-tick { position: absolute; left: 46px; top: 44px; width: 36px; height: 36px; border-radius: 50%; background: #2fbf71; border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.k-tile-tick svg { width: 22px; height: 22px; }
.ref-ic.in-tube { width: 40px; height: 40px; padding: 4px; box-shadow: none; background: #fff3e0; z-index: 1; }

/* "Where is it?" and "Why it matters" (notes 15 and 16): a little world with a pin, two short lines, a tap reads them */
#kids .k-where { position: absolute; display: flex; gap: 16px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 26px; background: linear-gradient(160deg, #3b2f86, #2a2366); border: 3px solid #9fdcff; box-shadow: 0 8px 0 rgba(0,0,0,.25), 0 0 26px rgba(159,220,255,.35); cursor: pointer; color: #fff; }
#kids .k-where .lw-figs { flex: none; display: flex; }
#kids .k-where .lw-fig { margin: 0; }
#kids .k-where .lw-cv { display: block; }
#kids .k-where .lw-text p { margin: 0 0 8px; font: 800 22px/1.2 var(--k-font); text-shadow: none; }
#kids .k-where .lw-text p:last-child { margin: 0; font-size: 20px; font-weight: 700; color: #fff3c8; }
#kids .k-where .lw-h { display: block; margin-bottom: 2px; font: 900 15px/1 var(--k-font); letter-spacing: .06em; text-transform: uppercase; color: #9fdcff; }
#kids .k-where .lw-y .lw-h { color: #ffd23f; }

/* note 17 tours (storyboard): glowing rings and big names on the real planets; Pause and Replay */
#kids .t-ring { position: absolute; border-radius: 50%; border: 3px solid #ffe08a; box-shadow: 0 0 14px 3px rgba(255,214,110,.75), inset 0 0 12px rgba(255,214,110,.45); pointer-events: none; }
#kids .t-ring.big { border-width: 4px; border-color: #fff1b8; box-shadow: 0 0 26px 6px rgba(255,214,110,.8), inset 0 0 18px rgba(255,214,110,.5); }
#kids .t-ring.tapme { cursor: pointer; animation: tpulse 1.1s ease-in-out infinite; border-color: #9fffe0; box-shadow: 0 0 24px 6px rgba(120,255,210,.85); }
@keyframes tpulse { 50% { transform: scale(1.12); } }
#kids .t-name { position: absolute; display: flex; align-items: center; gap: 8px; padding: 6px 14px 7px; border-radius: 999px; background: rgba(36,26,92,.82); border: 2px solid rgba(255,224,138,.85); box-shadow: 0 0 16px rgba(255,214,110,.55); white-space: nowrap; pointer-events: none; }
#kids .t-name b { font: 900 22px/1 var(--k-font); color: #fff; text-shadow: 0 0 10px rgba(255,220,120,.9); }
#kids .t-name.big b { font-size: 34px; }
#kids .t-name i { font: 900 20px/1 var(--k-font); font-style: normal; color: #18203f; background: #9fdcff; border-radius: 999px; padding: 3px 9px; }
#kids .t-name i:empty { display: none; }
#kids .t-pause, #kids .t-replay { background: #ffffff; box-shadow: 0 6px 0 #b9c2e8, 0 10px 20px rgba(0,0,0,.3); }
#kids .k-why { position: absolute; padding: 22px 28px 26px; border-radius: 30px; background: linear-gradient(160deg, #3b2f86, #2a2366); border: 3px solid #ffd23f; box-shadow: 0 8px 0 rgba(0,0,0,.25), 0 0 30px rgba(255,210,63,.35); cursor: pointer; }
#kids .k-why-h { display: flex; align-items: center; gap: 10px; font: 900 30px/1 var(--k-font); color: #ffd23f; margin-bottom: 12px; }
#kids .k-why-h span { width: 34px; height: 34px; display: block; }
#kids .k-why-t { font: 800 30px/1.22 var(--k-font); color: #fff; }
#kids .k-end-line { display: block; margin-top: 4px; font: 800 17px/1.2 var(--k-font); color: #fff3c8; max-width: 260px; }
#kids .k-end.row .k-end-line { font-size: 14px; max-width: none; white-space: nowrap; margin-top: 3px; }   /* one line, so the card is no taller */

/* the space journey (storyboard): the card strip over the real map, the flight line, the place name, tap targets */
#kids .j-strip { position: absolute; display: flex; gap: 12px; padding: 10px 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: linear-gradient(rgba(5,8,20,0), rgba(5,8,20,.72) 30%); }
#kids .j-strip.left { flex-direction: column; overflow-x: hidden; overflow-y: auto; padding: 12px 10px; background: linear-gradient(90deg, rgba(5,8,20,.78), rgba(5,8,20,0)); }
#kids .j-card { position: relative; flex: none; width: 112px; height: 124px; border-radius: 20px; border: 2px solid rgba(255,255,255,.22); background: rgba(22,26,58,.86); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 6px 8px; gap: 2px; cursor: pointer; font-family: var(--k-font); }
#kids .j-strip.left .j-card { width: 150px; height: 112px; }
#kids .j-card img, #kids .j-card .j-ic { width: 56px; height: 56px; object-fit: contain; display: block; }
#kids .j-card b { font: 900 15px/1.05 var(--k-font); text-align: center; }
#kids .j-card i { font: 700 10.5px/1.1 var(--k-font); font-style: normal; opacity: .75; text-align: center; }
#kids .j-card .j-n { position: absolute; left: 7px; top: 6px; font: 900 13px/1 var(--k-font); opacity: .7; }
#kids .j-card.done::after { content: '✓'; position: absolute; right: 6px; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: #39c46b; color: #fff; font: 900 14px/22px var(--k-font); text-align: center; }
#kids .j-card.next { border-color: #ffe08a; box-shadow: 0 0 18px 4px rgba(255,214,110,.75); animation: jnext 1.6s ease-in-out infinite; }
@keyframes jnext { 50% { box-shadow: 0 0 28px 8px rgba(255,214,110,.95); } }
#kids .j-hud { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 18px; border-radius: 18px; background: rgba(8,12,30,.78); color: #fff; text-align: center; }
#kids .j-hud b { font: 900 22px/1.1 var(--k-font); }
#kids .j-hud span { font: 700 16px/1.25 var(--k-font); color: #cfe6ff; }
#kids .k-btn.j-skip { min-height: 60px; font-size: 24px; padding: 0 26px 3px; }
#kids .j-name { position: absolute; display: flex; flex-direction: column; align-items: center; pointer-events: none; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.55); animation: jname 1.1s cubic-bezier(.2,.8,.2,1) both; }
#kids .j-name b { font: 900 84px/1 var(--k-font); letter-spacing: .14em; white-space: nowrap; }
#kids .j-name i { font: 800 26px/1.2 var(--k-font); font-style: normal; opacity: .9; margin-top: 6px; }
@keyframes jname { from { opacity: 0; transform: scale(1.08); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
#kids .j-wash { position: absolute; pointer-events: none; }
#kids .j-tap { position: absolute; border-radius: 50%; border: 3px solid rgba(255,224,138,.9); background: rgba(255,224,138,.06); box-shadow: 0 0 12px rgba(255,214,110,.6); cursor: pointer; padding: 0; }
#kids .j-tap.press { border-color: #9fffe0; background: rgba(120,255,210,.18); box-shadow: 0 0 28px 8px rgba(120,255,210,.9); transform: scale(1.08); }
#kids .j-tap.ok { border-color: #5ee08a; box-shadow: 0 0 20px 5px rgba(94,224,138,.8); }
#kids .j-tap i { position: absolute; right: -8px; top: -8px; min-width: 34px; height: 34px; border-radius: 17px; background: #39c46b; color: #fff; font: 900 20px/34px var(--k-font); font-style: normal; text-align: center; }
#kids .j-tap i:empty { display: none; }
#kids .j-answer { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 24px 22px; border-radius: 30px; background: rgba(14,20,48,.9); border: 3px solid #5ee08a; text-align: center; }
#kids .j-answer.nearly { border-color: #ffd23f; }
#kids .j-answer b { font: 900 64px/1 var(--k-font); color: #8ff0ae; }
#kids .j-answer.nearly b { color: #ffe08a; }
#kids .j-answer span { font: 800 24px/1.25 var(--k-font); color: #fff; }
#kids .j-q { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 20px; border-radius: 22px; background: rgba(14,20,48,.88); text-align: center; color: #fff; }
#kids .j-q span { font: 800 14px/1 var(--k-font); letter-spacing: .08em; text-transform: uppercase; color: #ffd23f; }
#kids .j-q b { font: 900 30px/1.15 var(--k-font); }
#kids .j-page { width: 52px; height: 72px; border-radius: 18px; background: rgba(22,26,58,.9); color: #fff; font: 900 40px/1 var(--k-font); border: 2px solid rgba(255,255,255,.25); }
#kids .j-guess { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 18px 16px; border-radius: 26px; background: rgba(14,20,48,.88); color: #fff; text-align: center; }
#kids .j-guess b { font: 900 24px/1.2 var(--k-font); }
#kids .j-guess div { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
#kids .j-opt { min-width: 150px; min-height: 64px; padding: 0 18px; border-radius: 999px; border: 3px solid rgba(255,255,255,.3); background: #2b3478; color: #fff; font: 900 22px/1 var(--k-font); cursor: pointer; }
#kids .j-opt.picked { background: #ffd23f; color: #18203f; border-color: #fff3c8; box-shadow: 0 0 18px rgba(255,210,63,.8); }
#kids .j-guess.answered .j-opt:not(.picked) { opacity: .45; }
#kids .k-trip { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 8px; }
#kids .k-trip div { display: flex; gap: 8px; flex-wrap: wrap; }
#kids .k-trip button { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid rgba(255,255,255,.3); background: transparent; color: #fff; font: 800 15px/1 var(--k-font); cursor: pointer; }
#kids .k-trip button.on { background: #ffd23f; color: #18203f; border-color: #ffd23f; }
#kids .k-trip label { display: flex; gap: 8px; align-items: center; font: 700 15px/1.3 var(--k-font); }
#kids .k-trip input { width: 26px; height: 26px; }
#kids .j-answer.side { padding: 12px 16px 14px; border-radius: 22px; gap: 4px; }
#kids .j-answer.side b { font-size: 34px; }
#kids .j-answer.side span { font-size: 17px; }
#kids .j-trip { position: absolute; display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: rgba(14,20,48,.85); border: 2px solid rgba(255,255,255,.22); color: #fff; font: 800 14px/1 var(--k-font); }
#kids .j-trip span { margin-right: 4px; opacity: .8; }
#kids .j-trip button { min-width: 52px; min-height: 44px; border-radius: 999px; border: 0; background: transparent; color: #fff; font: 900 16px/1 var(--k-font); cursor: pointer; }
#kids .j-trip button.on { background: #ffd23f; color: #18203f; }
#kids .j-games { position: absolute; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#kids .j-games .k-btn { position: static; min-height: 64px; font-size: 22px; padding: 0 22px 3px; }
#kids .j-xq-opts { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
#kids .j-tap.tried { border-color: #ffd23f; opacity: .7; }
/* Lift the backpack (fixes 9 to 11, 1 Dec 2026): every row is a raised button with a hand; the row to try next glows with its prompt;
   the result sits in a bubble beside the backpack, its tail pointing at it */
.lift-card .lift-h { font: 800 19px/1.15 var(--k-font); margin-bottom: 6px; }
.lift-card .lift-note { font: 700 13px/1.2 var(--k-font); opacity: .85; margin-top: 4px; }
.lift-row { margin: 6px 0 9px; padding: 4px 8px; border: 3px solid rgba(255,255,255,.3); background: rgba(255,255,255,.13); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.lift-row .lw { width: auto; min-width: 58px; }
.lift-row .lp { display: none; font: 900 19px/1.1 var(--k-font); color: #18203f; text-align: left; }
.lift-row .lr { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lift-row .lr b { margin-left: 0; }
.lift-row .lgo { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.lift-row .lgo svg { width: 24px; height: 24px; }
.lift-row.tried .lgo { display: none; }
.lift-row.on { border-color: #ffd23f; background: rgba(255,210,63,.18); }
.lift-row.next { border-color: #fff3c4; background: #ffd23f; animation: liftglow 1.3s ease-in-out infinite; }
.lift-row.next .lw, .lift-row.next .lr { display: none; }
.lift-row.next .lp { display: inline; }
@keyframes liftglow { 0%, 100% { box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 0 0 rgba(255,214,110,0); } 50% { box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 24px 8px rgba(255,214,110,.9); } }
.lift-card.two .lift-row .lp { font-size: 17px; }
.lift-card.two .lift-row .lgo { width: 30px; height: 30px; }
.k-say.lift-say { font-size: 24px; z-index: 3; cursor: pointer; }
.k-say.lift-say.tail-left::after, .k-say.lift-say.tail-right::after { bottom: auto; top: calc(50% - 13px); }
.k-say.lift-say.tail-down.tr::after { left: auto; right: 34px; }
/* Jump! (1 Dec 2026): the names under the two jumpers; the button says "Let go!" once the hold is full */
.k-tag.jump-tag { flex-direction: row; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(14,20,48,.8); font-size: 19px; text-shadow: none; justify-content: center; }
.k-tag.jump-tag img { width: 28px; height: 28px; }
.k-tag.jump-tag.ghost { background: rgba(42,111,208,.9); }
.k-btn.go { background: var(--k-lime); color: var(--k-ink); box-shadow: 0 7px 0 var(--k-lime-d), 0 0 30px 6px rgba(143,217,79,.7); }
/* the home trail with a 13th game (Jump!, 1 Dec 2026): kids.js sizes the rows for 12 tiles (3 rows on a wide screen, 4 on a tall one),
   so with 13 the trail is drawn a little smaller to keep its extra row on the screen (until kids.js sizes the rows from the number of games) */
.k-grid.k-trail:has(> .k-tile:nth-of-type(13)) { transform: scale(.75); transform-origin: 50% 0; }
@media (max-aspect-ratio: 50/51) { .k-grid.k-trail:has(> .k-tile:nth-of-type(13)) { transform: scale(.79); } }
/* the Back button of a narrated lesson: top bar, left of the sound button; at least 44 points on screen (owner's notes, 1 Dec 2026) */
#kids .k-btn.j-back { min-height: max(56px, var(--kt, 44px)); font-size: 22px; padding: 0 22px 3px 14px; gap: 6px; }
#kids .k-btn.j-back svg { width: 28px; height: 28px; flex: none; }

/* the Space journey banner on the Kids home: the first and biggest choice (owner, 1 Dec 2026) */
.k-journey { position: absolute; border: 0; padding: 0; border-radius: 32px; overflow: hidden; cursor: pointer; color: #fff; text-align: left;
  background: radial-gradient(120% 150% at 82% 10%, #3a2d8c 0%, #151d48 52%, #070a1c 100%); box-shadow: inset 0 0 0 4px #ffd23f, 0 8px 0 rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.45); }
.k-journey:active { transform: translateY(3px); }
.k-journey-art { position: absolute; right: 22px; top: 0; bottom: 0; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.k-journey-art img { width: 86px; height: 86px; object-fit: contain; }
.k-journey-art img:nth-child(3) { width: 112px; height: 112px; }
.k-journey-t { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.k-journey-t b { display: flex; align-items: center; gap: 12px; font: 900 54px/1 var(--k-font); text-shadow: 0 3px 0 rgba(0,0,0,.4); white-space: nowrap; }
.k-journey-t b svg { width: 46px; height: 46px; flex: none; }
.k-journey-t small { font: 800 23px/1.1 var(--k-font); color: #ffe9a8; white-space: nowrap; }
.k-journey.tall .k-journey-t { top: 24px; transform: none; left: 22px; gap: 6px; }
.k-journey.tall .k-journey-t b { font-size: 44px; gap: 10px; }
.k-journey.tall .k-journey-t b svg { width: 38px; height: 38px; }
.k-journey.tall .k-journey-t small { font-size: 20px; }
.k-journey.tall .k-journey-art { top: auto; bottom: 10px; height: 56px; right: 16px; gap: 6px; }
.k-journey.tall .k-journey-art img, .k-journey.tall .k-journey-art img:nth-child(3) { width: 54px; height: 54px; }

/* ---------------------------------------------------------------- lessons 1 to 4 (3 Dec 2026): touch targets, labels, the slim thermometer */
.l-tap { position: absolute; border: 0; padding: 0; background: none; border-radius: 50%; cursor: grab; touch-action: none; z-index: 2; }
.l-tap svg { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.l-tap .l-ring { fill: none; stroke: rgba(255,255,255,.72); stroke-width: 2; vector-effect: non-scaling-stroke; transition: stroke .3s; filter: drop-shadow(0 0 3px rgba(0,0,0,.55)); }
.l-tap::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 16px 3px rgba(255,224,138,.5), inset 0 0 12px rgba(255,224,138,.25); pointer-events: none; animation: l-breathe 2.4s ease-in-out infinite; }   /* the thing inside stays clear: only a soft halo breathes round it */
@keyframes l-breathe { 0%, 100% { opacity: .35; transform: scale(.97); } 50% { opacity: .95; transform: scale(1.04); } }
.l-tap .l-prog { fill: none; stroke: #ffe08a; stroke-width: 4; vector-effect: non-scaling-stroke; stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-linecap: round; }
.l-tap.on { cursor: grabbing; }
.l-tap.on .l-ring { stroke: #ffe08a; }
.l-tap.on::before { animation: none; opacity: 1; }
.l-tap.glow .l-ring { animation: l-glow 1.6s ease-in-out infinite; }
@keyframes l-glow { 0%, 100% { stroke: rgba(255,240,190,.5); fill: rgba(255,240,190,.04); filter: drop-shadow(0 0 0 rgba(255,220,120,0)); } 50% { stroke: rgba(255,240,190,1); fill: rgba(255,240,190,.12); filter: drop-shadow(0 0 14px rgba(255,220,120,.9)); } }
.l-lab { position: absolute; font: 700 15px/1.25 var(--k-font); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.6); white-space: nowrap; pointer-events: none; letter-spacing: .01em; }
.l-lab small { display: block; font-size: 12px; font-weight: 600; opacity: .85; }
.l-lab.big { font-size: 24px; letter-spacing: .06em; }
.l-lab.pill { background: rgba(10,14,30,.62); padding: 3px 9px; border-radius: 10px; }   /* over a light picture (the bathtub wall) */
.l-time { position: absolute; height: 64px; pointer-events: none; }
.l-time .l-ttrack { position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.l-time .l-tk { position: absolute; top: 3px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: #ffd28a; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.6); }
.l-time span { position: absolute; top: 38px; transform: translateX(-50%); font: 700 14px/1 var(--k-font); color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.l-thermo { position: absolute; width: 132px; pointer-events: none; display: flex; flex-direction: column; align-items: flex-end; }
.l-thermo .l-tnum { font: 800 20px/1 var(--k-font); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); margin: 0 0 10px; white-space: nowrap; min-height: 20px; }
.l-thermo .l-tube { position: relative; width: 12px; flex: 1; border-radius: 8px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); margin-right: 8px; }
.l-thermo .l-tfill { position: absolute; left: 2px; right: 2px; bottom: 2px; border-radius: 6px; background: linear-gradient(#ffffff, #9fdcff); transition: height .25s linear; }
.l-thermo.hot .l-tfill { background: linear-gradient(#fff6d8, #ffb347 40%, #ff5a2e); }
.l-thermo.wind .l-tfill { background: linear-gradient(#ffffff, #9fd4ff 40%, #3f7fe0); }
/* Neptune's clouds are pale: white marks on them were hard to read (hand-play, 5 Dec 2026), so the wind gauge's marks and tube sit on a dark backing */
/* the hot ones too: the Sun's marks sat white on a white-hot glow (clip watch, 5 Dec 2026) */
.l-thermo.wind .l-tmark, .l-thermo.hot .l-tmark { padding: 2px 7px; border-radius: 7px; background: rgba(8,14,32,.6); }
.l-thermo.wind .l-tmark em { box-shadow: 0 0 2px rgba(0,0,0,.7); }
.l-thermo.wind .l-tube { background: rgba(8,14,32,.4); }
.l-thermo .l-tmark { position: absolute; right: 28px; transform: translateY(50%); font: 700 13px/1.15 var(--k-font); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.95); white-space: nowrap; text-align: right; }
.l-thermo .l-tmark em { position: absolute; right: -22px; top: 50%; width: 16px; height: 1.5px; background: rgba(255,255,255,.8); }
.l-ask .j-opt img { width: 54px; height: 54px; display: block; margin: 0 auto 4px; }
.l-ask .j-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.l-frost { position: absolute; pointer-events: none; opacity: 0; transition: opacity 2.5s ease; background:
  radial-gradient(ellipse at 50% 50%, rgba(220,240,255,0) 55%, rgba(220,240,255,.22) 75%, rgba(235,248,255,.55) 100%); }
.l-frost i { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 55%, #000 100%); mask-image: radial-gradient(ellipse at 50% 50%, transparent 55%, #000 100%); opacity: .8; }
.l-switch { position: absolute; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 12px; border: 0; border-radius: 999px; background: rgba(10,16,40,.72); box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); color: #fff; font: 800 20px/1 var(--k-font); cursor: pointer; min-height: max(72px, var(--kt, 44px)); }
.l-switch .l-knob { width: 76px; height: 42px; border-radius: 21px; background: #ffd23f; position: relative; transition: background .3s; flex: none; }
.l-switch .l-knob::after { content: ""; position: absolute; top: 4px; left: 38px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: left .3s; }
.l-switch.off .l-knob { background: #5a6378; }
.l-switch.off .l-knob::after { left: 4px; }
.l-switch.glow { animation: l-glow2 1.6s ease-in-out infinite; }
@keyframes l-glow2 { 50% { box-shadow: 0 0 0 2px rgba(255,240,190,1), 0 0 22px rgba(255,220,120,.9); } }
.l-crayons { position: absolute; display: flex; gap: 18px; }
.l-crayons.glow button { animation: l-glow2 1.6s ease-in-out infinite; border-radius: 16px; }
.l-crayons button { border: 0; background: none; padding: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: max(76px, var(--kt, 44px)); min-height: 120px; }
.l-crayons button span { font: 700 14px/1 var(--k-font); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.l-crayons button.picked { transform: translateY(-10px) rotate(-8deg); }
.l-lens { position: absolute; border-radius: 50%; border: 0; padding: 0; cursor: grab; touch-action: none; z-index: 2; background: #160402;
  box-shadow: 0 0 0 5px #23262f, 0 0 0 7px #8c93a3, 0 0 0 9px #2b2f39, inset 0 0 22px rgba(0,0,0,.7), 0 10px 26px rgba(0,0,0,.6);
  }   /* what it shows is drawn inside it, in its own round picture (lesson-sun.js) */
.l-lens.glow { animation: l-glow2 1.6s ease-in-out infinite; }
.l-lens small { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); font: 700 12px/1.2 var(--k-font); color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; pointer-events: none; }
.l-edge { position: absolute; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,250,230,.95) 0, rgba(255,240,200,.5) 14%, rgba(255,230,180,0) 60%); }
/* the gesture hint (lessons.js E.hint): a soft glowing hand that shows the motion, the same in every lesson */
#kids .l-hint .l-hand-g { fill: rgba(255,255,255,.96); }
#kids .l-hint .l-hint-hand { filter: drop-shadow(0 1px 1.5px rgba(10,20,40,.55)) drop-shadow(0 0 9px rgba(255,224,138,.85)); }
#kids .l-hint .l-hint-trail { fill: none; stroke: rgba(255,232,160,.85); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 11; filter: drop-shadow(0 0 4px rgba(255,214,120,.9)); }
#kids .l-hint .l-hint-rip { fill: none; stroke: rgba(255,236,170,.95); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255,214,120,.9)); }
#kids .l-hint .l-hint-fill { fill: none; stroke: #ffe08a; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 100; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); filter: drop-shadow(0 0 6px rgba(255,214,120,.9)); }
/* the telescope filter's handle (lesson-sun.js): something to hold it by */
.l-lens .l-lens-handle { position: absolute; left: -6px; top: calc(100% - 30px); width: 26px; height: 74px; border-radius: 13px; transform-origin: 50% 0; transform: rotate(40deg); pointer-events: none;
  background: linear-gradient(90deg, #1f2229 0%, #9aa1b2 45%, #5d6372 70%, #1f2229 100%); box-shadow: 0 6px 14px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.l-lens .l-lens-handle b { display: block; width: 14px; height: 3px; border-radius: 2px; background: rgba(20,22,28,.75); box-shadow: 0 1px 0 rgba(255,255,255,.2); }
.l-lens.on { cursor: grabbing; }
/* the big thermometer (the Moon's): a wide tube, a large number, marks that read at a glance */
.l-thermo.big { width: 250px; }
.l-thermo.big .l-tnum { font-size: 34px; margin-bottom: 14px; min-height: 34px; }
.l-thermo.big .l-tube { width: 22px; border-radius: 12px; margin-right: 10px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 0 14px rgba(159,220,255,.35); }
.l-thermo.big .l-tfill { border-radius: 9px; left: 3px; right: 3px; bottom: 3px; }
.l-thermo.big .l-tmark { right: 44px; font-size: 18px; line-height: 1.1; padding: 3px 8px; border-radius: 8px; background: rgba(8,14,32,.62); }
.l-thermo.big .l-tmark em { right: -34px; width: 26px; height: 2.5px; background: #fff; }
