/* NOMVEX Kids v2 — child mode. Live Kids identity kept: cream, teal ink, coral, lilac, sage,
   the kids✱ logo and the live child font stack (Andika, then Verdana). No external file. */
:root{
  --cream:#fffaf0;--ink:#183f40;--orange:#fa8a64;--purple:#8876ce;--green:#e8f2dc;--line:#cadace;
  --coral-deep:#d9673f;--lilac-soft:#c6b9ec;--sage-mid:#bed496;--paper:#fffdf8;--sand:#f5e8cf;
  --kfont:Andika,"Andika NOMVEX",Verdana,sans-serif;--serif:Georgia,serif;--ui:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --w:#fa8a64;--w-deep:#d9673f;--w-soft:#ffe3d6;
  --bar:64px;--foot:64px;--gap:16px;--r:24px;
}
[data-w=nombres],[data-w=jouer]{--w:#fa8a64;--w-deep:#c95a33;--w-soft:#ffe3d6}
[data-w=mots],[data-w=creer]{--w:#8876ce;--w-deep:#5f4ea6;--w-soft:#ece7fa}
[data-w=langues],[data-w=regarder]{--w:#45a69b;--w-deep:#257067;--w-soft:#dcf0ec}
[data-w=nature],[data-w=dehors]{--w:#7fb069;--w-deep:#4f7f3b;--w-soft:#e8f2dc}
[data-w=arts]{--w:#f4c04e;--w-deep:#a8771a;--w-soft:#fff1cc}
[data-w=logique]{--w:#3f6fa0;--w-deep:#284f78;--w-soft:#e1ebf5}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body.kx{background:var(--cream);color:var(--ink);font:20px/1.35 var(--kfont);-webkit-font-smoothing:antialiased;overflow-x:hidden;-webkit-tap-highlight-color:transparent}
button,a,input,select{font:inherit;color:inherit}
a{text-decoration:none}
button{cursor:pointer}
[data-lang-block="en"]{display:none}html[lang=en] [data-lang-block="en"]{display:revert}html[lang=en] [data-lang-block="fr"]{display:none}
:focus-visible{outline:4px solid #1f5fbf;outline-offset:3px;border-radius:14px}
.ic{width:1.25em;height:1.25em;flex:none}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html.dys body.kx,html.dys .kx-say{letter-spacing:.12em;word-spacing:.16em;line-height:1.6}

/* ---------- compact locked bar (kids-locked variant of the shared bar) ---------- */
.kx-bar{position:sticky;top:0;z-index:30;height:var(--bar);display:flex;align-items:center;gap:8px;padding:0 max(12px,calc((100vw - 1280px)/2 + 16px));background:rgba(255,250,240,.94);border-bottom:2px solid var(--line);font-family:var(--ui)}
.kx-logo{display:flex;align-items:center;gap:10px;min-height:64px;padding:0 6px;border:0;background:none;color:var(--ink)}
.kx-logo b{font-size:13px;font-weight:800;letter-spacing:-.5px}
.kx-logo span{font-family:var(--kfont);font-size:30px;font-weight:850;letter-spacing:-2px;line-height:1}
.kx-logo i{font-style:normal;color:var(--orange);padding-left:2px}
.kx-bar .sp{flex:1}
.kx-ib{min-width:64px;min-height:64px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:none;padding:0 4px}
.kx-ib>span.face{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;min-width:48px;padding:0 12px;border-radius:999px;background:#fff;border:2px solid var(--ink);box-shadow:0 4px 0 var(--ink);font-family:var(--kfont);font-size:20px;font-weight:700;transition:transform .12s,box-shadow .12s}
.kx-ib:active>span.face{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
.kx-ib svg{width:28px;height:28px}
.kx-ib.dark>span.face{background:var(--ink);color:#fff}
.kx-linked{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:999px;background:#fff1cc;border:2px dashed #a8771a;font-size:20px;color:#5a3e05}
.kx-linked svg{width:22px;height:22px}

/* ---------- slim footer ---------- */
.kx-foot{height:var(--foot);display:flex;align-items:center;gap:8px;padding:0 max(12px,calc((100vw - 1280px)/2 + 16px));border-top:2px solid var(--line);background:var(--paper)}
.kx-foot .brand{font-family:var(--ui);font-size:14px;font-weight:800;letter-spacing:-.3px}
.kx-foot .brand i{font-style:normal;color:var(--orange)}
.kx-foot .sp{flex:1}

/* ---------- page frame ---------- */
.kx-view{max-width:1280px;margin:0 auto;padding:0 24px}
#kx-main:focus{outline:none}
.kx-world{padding:var(--gap) 0}
body.kx-full .kx-bar,body.kx-full .kx-foot{display:none}
body.kx-full .kx-view{padding:0;max-width:none}

/* ---------- tiles (live hard shadow, radius 24, sink on press) ---------- */
.kx-tile{position:relative;display:flex;flex-direction:column;border:3px solid var(--ink);border-radius:var(--r);background:#fff;box-shadow:0 6px 0 var(--ink);overflow:hidden;color:var(--ink);text-align:center;transition:transform .15s ease-out,box-shadow .15s ease-out;padding:0;min-height:64px}
.kx-tile:active,.kx-tile.press{transform:translateY(4px);box-shadow:0 2px 0 var(--ink)}
.kx-tile .pic{flex:1;min-height:0;background:var(--w);display:flex;align-items:center;justify-content:center;overflow:hidden}
.kx-tile .pic svg{width:100%;height:100%;display:block}
.kx-tile .lab{display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 8px;font-size:22px;font-weight:700;line-height:1.1;background:#fff;border-top:3px solid var(--ink);min-height:44px}
.kx-tile .lab svg{width:28px;height:28px;flex:none}
.kx-tile .lock{position:absolute;top:8px;right:8px;width:40px;height:40px;border-radius:50%;background:#fff;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center}
.kx-tile .lock svg{width:24px;height:24px}
.kx-tile .done{position:absolute;top:8px;left:8px;width:44px;height:44px}
.kx-dots{display:inline-flex;gap:4px}.kx-dots i{width:10px;height:10px;border-radius:50%;background:var(--ink)}.kx-dots i.off{background:none;border:2px solid var(--ink)}

/* ---------- child home ---------- */
.kx-home{height:calc(100dvh - var(--bar) - var(--foot) - 1px);display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:var(--gap);padding-top:14px;padding-bottom:14px}
.kx-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:stretch;min-height:0;border:3px solid var(--ink);border-radius:28px;background:var(--green);box-shadow:0 6px 0 var(--ink);overflow:hidden}
.kx-scene{position:relative;min-height:0;display:flex;align-items:flex-end;justify-content:center;border:0;background:none;padding:0;overflow:hidden}
.kx-scene>svg{position:absolute;inset:0;width:100%;height:100%}
.kx-bubble{position:absolute;left:52%;top:12%;max-width:46%;background:#fff;border:3px solid var(--ink);border-radius:22px;padding:10px 16px;font-size:clamp(22px,2.6vw,32px);font-weight:700;line-height:1.15;box-shadow:0 4px 0 var(--ink);text-align:left}
.kx-bubble:after{content:"";position:absolute;left:-14px;bottom:18px;width:22px;height:22px;background:#fff;border-left:3px solid var(--ink);border-bottom:3px solid var(--ink);transform:rotate(45deg) skew(10deg,10deg)}
.kx-bubble small{display:block;font-size:20px;font-weight:400;margin-top:4px}
.kx-side{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;padding:14px 14px 14px 0;min-height:0}
.kx-cont{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);text-align:left;align-items:stretch}
.kx-cont .pic{min-height:0}
.kx-cont .lab{border-top:0;border-left:3px solid var(--ink);flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:8px 12px;font-size:24px}
.kx-cont .lab small{display:flex;align-items:center;gap:6px;font-size:20px;font-weight:400}
.kx-side .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kx-pill{display:flex;align-items:center;justify-content:center;gap:10px;min-height:68px;border:3px solid var(--ink);border-radius:20px;background:#fff;box-shadow:0 5px 0 var(--ink);font-size:22px;font-weight:700;transition:transform .15s,box-shadow .15s;padding:6px 12px}
.kx-pill:active{transform:translateY(4px);box-shadow:0 1px 0 var(--ink)}
.kx-pill svg{width:34px;height:34px;flex:none}
.kx-pill.ink{background:var(--ink);color:#fff}
.kx-setup{position:absolute;left:10px;bottom:6px;z-index:2;display:inline-flex;align-items:center;gap:8px;min-height:64px;padding:0 6px;border:0;background:none}
.kx-setup>span{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:#fff;border:2px dashed var(--ink);font-size:20px}
.kx-setup svg{width:22px;height:22px}
.kx-doors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap);height:clamp(130px,21vh,176px)}
.kx-door .lab{font-size:28px}
.kx-worlds{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;height:clamp(120px,19vh,160px)}

/* ---------- world / door page ---------- */
.kx-world{display:grid;grid-template-rows:auto minmax(0,1fr);gap:var(--gap);min-height:calc(100dvh - var(--bar) - var(--foot) - 2*var(--gap))}
.kx-whead{position:relative;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:10px 18px;border:3px solid var(--ink);border-radius:28px;background:var(--w-soft);box-shadow:0 6px 0 var(--ink);min-height:140px;overflow:hidden}
.kx-whead .guide{width:120px;height:120px}
.kx-whead h1{margin:0;font-size:clamp(32px,4vw,48px);line-height:1}
.kx-whead .count{display:flex;align-items:center;gap:18px;font-size:22px;margin-top:8px}.kx-whead .count span{display:inline-flex;align-items:center;gap:6px}.kx-whead .count svg{width:30px;height:30px}
.kx-back{min-width:72px;min-height:72px;border:3px solid var(--ink);border-radius:50%;background:#fff;box-shadow:0 4px 0 var(--ink);display:flex;align-items:center;justify-content:center;padding:0}
.kx-back svg{width:36px;height:36px}
.kx-levels{display:flex;gap:10px;align-items:center}
.kx-level{min-width:76px;min-height:68px;border:3px solid var(--ink);border-radius:999px;background:#fff;display:flex;align-items:center;justify-content:center;gap:4px;box-shadow:0 4px 0 var(--ink);padding:0 10px}
.kx-level i{width:12px;height:12px;border-radius:50%;background:var(--ink)}
.kx-level[aria-pressed=true]{background:var(--w);box-shadow:0 4px 0 var(--ink),inset 0 0 0 3px #fff}
.kx-acts{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));grid-auto-rows:auto;gap:18px;align-content:start;padding-bottom:12px}
.kx-acts .kx-tile .pic{aspect-ratio:3/2;flex:none}
.kx-acts .kx-tile .lab{flex:1;flex-direction:column;gap:6px}
.kx-kind{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#fff;border:3px solid var(--ink);position:absolute;top:8px;left:8px}
.kx-kind svg{width:24px;height:24px}
.kx-strip{grid-column:1/-1;display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 16px;border:3px dashed var(--ink);border-radius:22px;background:#fff}
.kx-strip .st{width:64px;height:64px}

/* ---------- game / lesson screen: fills the viewport, nothing scrolls ---------- */
.kx-game{height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);background:var(--w-soft);overflow:hidden}
.kx-gtop{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 16px;background:var(--cream);border-bottom:3px solid var(--ink)}
.kx-gbtn{width:72px;height:72px;border:3px solid var(--ink);border-radius:22px;background:#fff;box-shadow:0 4px 0 var(--ink);display:flex;align-items:center;justify-content:center;padding:0;transition:transform .12s,box-shadow .12s}
.kx-gbtn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
.kx-gbtn svg{width:38px;height:38px}
.kx-gbtns{display:flex;gap:10px}
.kx-cap{margin:0;padding:0;border:0;background:none;color:inherit;width:100%;min-height:64px;font-size:clamp(24px,3.1vw,38px);font-weight:700;line-height:1.15;text-align:center;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer;align-content:center}
.kx-glink{display:inline-flex;align-items:center;justify-content:center;width:40px;height:72px;color:#a8771a}.kx-glink svg{width:28px;height:28px}
.kx-play{position:relative;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:14px;padding:16px 24px 20px;max-width:1280px;width:100%;margin:0 auto}
.kx-board{min-height:0;display:flex;align-items:center;justify-content:center;gap:20px;position:relative}
.kx-answers{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.kx-ans{min-width:136px;min-height:108px;padding:6px 18px;border:3px solid var(--ink);border-radius:24px;background:#fff;box-shadow:0 6px 0 var(--ink);font-size:clamp(36px,5vw,56px);font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;transition:transform .15s,box-shadow .15s,background .15s}
.kx-ans:active{transform:translateY(4px);box-shadow:0 2px 0 var(--ink)}
.kx-ans svg{width:84px;height:84px}
.kx-ans.ok{background:#dff3d2}
.kx-ans.miss{background:#f1ede4;opacity:.55}
.kx-ans.pic{padding:6px}
.kx-big{font-size:clamp(48px,8vw,96px);font-weight:700;line-height:1}
.kx-prog{display:flex;justify-content:center;gap:8px;margin-top:14px}
.kx-prog i{width:14px;height:14px;border-radius:50%;border:2px solid var(--ink);background:#fff}
.kx-prog i.on{background:var(--w-deep)}
.kx-mini{position:absolute;right:12px;bottom:6px;width:110px;height:110px;pointer-events:none}
.kx-live{position:absolute;left:-9999px}

/* end card, break, blocked, confirm: one overlay */
.kx-over{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(24,63,64,.55);padding:16px}
.kx-card{width:min(760px,100%);max-height:100%;overflow:auto;background:var(--cream);border:3px solid var(--ink);border-radius:32px;box-shadow:0 8px 0 var(--ink);padding:22px;text-align:center}
.kx-card h2{margin:4px 0 6px;font-size:clamp(30px,4vw,44px);line-height:1.1}
.kx-card p{margin:6px 0;font-size:22px}
.kx-card .art{height:clamp(120px,24vh,200px);display:flex;justify-content:center;align-items:center;gap:12px}
.kx-card .art svg{height:100%;width:auto;max-width:100%}
.kx-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-top:16px}
.kx-choice{min-height:120px;border:3px solid var(--ink);border-radius:24px;background:#fff;box-shadow:0 6px 0 var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:24px;font-weight:700;padding:8px}
.kx-choice svg{width:52px;height:52px}
.kx-choice.main{background:var(--orange)}
.kx-choice:active{transform:translateY(4px);box-shadow:0 2px 0 var(--ink)}
.kx-score{display:inline-block;margin-top:4px;padding:4px 14px;border-radius:999px;background:#fff;border:2px solid var(--ink);font-size:22px}

/* gate */
.kx-gate .kx-card{text-align:left}
.kx-gate .child{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center}
.kx-gate .child>svg{width:140px;height:140px}
.kx-gate .adult{margin-top:14px;padding:16px;border-radius:20px;background:#fff;border:2px solid var(--line);font-family:var(--ui);font-size:16px}
.kx-gate .adult p{font-size:17px;margin:0 0 10px}
.kx-gate .adult .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.kx-gate input{width:130px;min-height:52px;border:2px solid var(--ink);border-radius:12px;padding:8px 12px;font-size:22px;font-family:var(--ui)}
.kx-gate .go{min-height:52px;padding:0 18px;border-radius:999px;border:0;background:var(--ink);color:#fff;font-weight:700;font-family:var(--ui)}
.kx-twin{position:relative;height:150px;border:2px dashed var(--line);border-radius:16px;background:#fbfaf6;touch-action:none;user-select:none;-webkit-user-select:none}
.kx-tgt{position:absolute;width:64px;height:64px;border-radius:50%;border:3px solid var(--ink);background:#fff;display:flex;align-items:center;justify-content:center;touch-action:none}
.kx-tgt i{width:22px;height:22px;border-radius:50%;background:var(--ink)}
.kx-twin.run .kx-tgt{background:var(--sage-mid);transition:background 3s linear}
.kx-twin.off{opacity:.4;pointer-events:none}
.kx-gate .msg{min-height:22px;margin-top:8px;color:#8a2316;font-size:16px}
.kx-x{position:absolute;right:14px;top:14px;width:64px;height:64px;border-radius:50%;border:3px solid var(--ink);background:#fff;display:flex;align-items:center;justify-content:center;padding:0}
.kx-x svg{width:30px;height:30px}
.kx-card{position:relative}

/* album */
.kx-album{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.kx-page{border:3px solid var(--ink);border-radius:24px;background:#fff;box-shadow:0 6px 0 var(--ink);padding:14px}
.kx-page h2{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:26px}
.kx-page h2 svg{width:48px;height:48px}
.kx-stk{display:flex;flex-wrap:wrap;gap:10px}
.kx-stk .st{width:76px;height:76px}
.kx-stk .st.todo{opacity:.35}
.kx-bravo{margin-top:8px;display:flex;align-items:center;gap:8px;font-size:22px;font-weight:700;color:var(--w-deep)}

/* motion: 150–300 ms, squash on tap, mascot idle */
@keyframes kx-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes kx-blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes kx-squash{0%{transform:scale(1)}35%{transform:scale(.94)}70%{transform:scale(1.04)}100%{transform:scale(1)}}
@keyframes kx-jump{0%,100%{transform:translateY(0) scale(1)}30%{transform:translateY(4px) scale(1.06,.92)}60%{transform:translateY(-22px) scale(.96,1.06)}}
@keyframes kx-spark{0%{opacity:1;transform:translate(0,0) scale(.6)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1.1)}}
@keyframes kx-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes kx-sticker{0%{transform:scale(.2) rotate(-30deg);opacity:0}70%{transform:scale(1.1) rotate(6deg);opacity:1}100%{transform:scale(1) rotate(0)}}
.m-bob{animation:kx-bob 3.2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.m-eyes{animation:kx-blink 5.5s infinite;transform-box:fill-box;transform-origin:center}
.squash{animation:kx-squash .26s ease-out}
.jump{animation:kx-jump .6s ease-out}
.kx-spark{position:fixed;width:16px;height:16px;pointer-events:none;z-index:70;animation:kx-spark .6s ease-out forwards}
.kx-in{animation:kx-in .25s ease-out}
.kx-st-in{animation:kx-sticker .5s ease-out}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:opacity .2s!important}
  .kx-tile:active,.kx-tile.press,.kx-pill:active,.kx-ib:active>span.face,.kx-gbtn:active,.kx-ans:active,.kx-choice:active,.kx-xbar.on,.squash,.jump{transform:none!important}
  .kx-spark{display:none}
}

/* ---------- 1024 tablet ---------- */
@media (max-width:1100px){.kx-acts{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}}
/* ---------- phone portrait ---------- */
@media (max-width:640px){
  :root{--gap:12px}
  .kx-view{padding:0 12px}
  .kx-logo b{font-size:11px}
  .kx-logo span{font-size:26px}
  .kx-ib .tx{display:none}
  .kx-linked .tx{display:none}
  .kx-home{padding-top:10px;padding-bottom:10px;grid-template-rows:minmax(0,1fr) auto auto}
  .kx-hero{grid-template-columns:minmax(0,1fr) 150px;gap:8px;border-radius:22px}
  .kx-bubble{font-size:22px;padding:6px 10px;left:38%;top:8%;max-width:62%;white-space:nowrap}
  .kx-bubble small{display:none}
  .kx-side{padding:8px 8px 8px 0;grid-template-rows:minmax(0,1fr) auto;gap:8px}
  .kx-side .row{grid-template-columns:1fr 1fr;gap:8px}
  .kx-pill{min-height:64px;padding:4px}
  .kx-pill .tx{display:none}
  .kx-cont{grid-template-columns:1fr}
  .kx-cont .lab{display:none}
  .kx-setup{left:4px;bottom:2px}
  .kx-setup .tx{display:none}
  .kx-doors{grid-template-columns:1fr 1fr;height:auto;grid-auto-rows:100px}
  .kx-door .lab{font-size:24px;min-height:40px}
  .kx-worlds{grid-template-columns:1fr 1fr;height:auto;grid-auto-rows:80px;gap:10px}
  .kx-worlds .lab{font-size:20px;min-height:34px;padding:2px 6px}
  .kx-whead{grid-template-columns:auto minmax(0,1fr) auto;min-height:0;padding:8px 10px;gap:8px}
  .kx-whead .guide{display:none}
  .kx-whead h1{font-size:30px}
  .kx-levels{grid-column:1/-1;justify-content:center}
  .kx-acts{grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:12px}
  .kx-acts .lab{font-size:20px}
  .kx-gtop{padding:6px 10px;gap:4px 8px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"home . btns" "cap cap cap"}
  .kx-gtop>.kx-gbtn{grid-area:home}.kx-gtop>.kx-cap{grid-area:cap}.kx-gtop>.kx-gbtns{grid-area:btns}
  .kx-gbtn{width:64px;height:64px;border-radius:18px}
  .kx-gbtns{gap:6px}
  .kx-cap{font-size:20px;-webkit-line-clamp:3;min-height:64px}
  .kx-glink{height:64px}
  .kx-play{padding:10px 12px 14px;gap:10px}
  .kx-ans{min-width:72px;min-height:72px;font-size:36px;padding:4px 12px;border-radius:20px}
  .kx-ans svg{width:56px;height:56px}
  .kx-answers{gap:10px}
  .kx-mini{width:76px;height:76px}
  .kx-card{padding:16px;border-radius:24px}
  .kx-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .kx-choice{min-height:96px;font-size:20px}
  .kx-gate .child>svg{width:90px;height:90px}
  .kx-foot .brand{display:none}
}
@media print{body.kx>*:not(#kx-print){display:none!important}#kx-print{display:block!important}}
#kx-print{display:none;font-family:var(--kfont);color:#000}

/* ---------- real photos (owner order 2026-11-11): same frames, photos inside ---------- */
img.ph{display:block;width:100%;height:100%;object-fit:cover;background:#e9e4d8}
.kx-scene>img.hero{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.kx-tile .pic{background:var(--w)}
.ph2{display:grid;grid-template-columns:1fr 1fr;gap:7%;padding:8% 10%;width:100%;height:100%;background:var(--w)}
.ph2 img{border:3px solid var(--ink);border-radius:12px;box-shadow:0 4px 0 var(--ink);transform:rotate(-5deg)}.ph2 img+img{transform:rotate(5deg)}
.kx-badge{display:inline-block;flex:none;border-radius:50%;overflow:hidden;border:4px solid #fff;box-shadow:0 0 0 3px var(--ink),0 5px 0 3px var(--ink);background:#fff;width:100%;height:100%;aspect-ratio:1}
.kx-whead .guide{display:flex;align-items:center;justify-content:center}.kx-whead .guide .kx-badge{width:108px;height:108px}
.kx-page h2 .kx-badge.sm{width:48px;height:48px;border-width:3px;box-shadow:0 0 0 2px var(--ink)}
.kx-card .art .kx-badge.lg{height:100%;width:auto}
.kx-gate .child .kx-badge.lg{width:140px;height:140px}
.px-locked .kx-badge.lg{width:140px;height:140px;margin-bottom:10px}
.st{display:inline-block;flex:none;width:64px;height:64px;border-radius:50%;overflow:hidden;border:4px solid #fff;box-shadow:0 0 0 3px var(--ink);background:var(--c)}
.st img,.st .ph2{width:100%;height:100%}
.st .ph2{padding:14%;gap:4%}.st .ph2 img{border-width:2px;border-radius:6px;box-shadow:none}
.st.todo{background:#fff;border:3px dashed var(--ink);box-shadow:none;opacity:.5}
.kx-stk .st{width:76px;height:76px}.kx-strip .st{width:64px;height:64px}.kx-tile .done .st{width:44px;height:44px;border-width:2px}
.kx-card .art .st{height:100%;width:auto;aspect-ratio:1}
.px-sticks .st{width:48px;height:48px}
/* One h1 per screen: the logo on home, the activity caption in a game (layout unchanged). */
.kx-brandh{margin:0;font:inherit;display:flex;align-items:center}
.kx-caph{margin:0;font:inherit;min-width:0;display:flex}
@media (max-width:640px){.kx-gtop>.kx-caph{grid-area:cap}}
/* Skip link: hidden until focused by keyboard, then shown top-left above everything. */
.kx-skip{position:absolute;left:8px;top:-200px;z-index:10000;padding:12px 18px;min-height:44px;border:3px solid #183f40;border-radius:12px;background:#fff;color:#183f40;font-weight:700;text-decoration:none}
.kx-skip:focus,.kx-skip:focus-visible{top:8px;outline:3px solid #183f40;outline-offset:2px}
