
@import url('./whiskerworld.css?v=20261111-playful');
@import url('./pinball.css?v=20261112-table1');
@import url('./pinball-boards.css?v=20261112-table2');
@import url('./art.css?v=20261112-art1');
:root{color-scheme:light;--ink:#202939;--paper:#fffdf6;--blue:#3357bc;--coral:#e86752;--yellow:#f1c75b;--line:#d5d8d5;font-family:Nunito,ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,a,input,select{touch-action:manipulation}button,input,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{color:inherit;border:1px solid var(--line);background:#fff;border-radius:12px;min-height:48px;padding:11px 18px;font-weight:800;cursor:pointer}button:hover{border-color:var(--blue);background:#f1f4ff}button:active,button[data-held]{background:var(--blue);color:#fff}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #df6b3d;outline-offset:3px}.primary{background:var(--blue);border-color:var(--blue);color:white;min-width:140px}.primary:hover{background:#24449d;color:white}a{color:var(--blue)}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#687386}.small{font-size:13px;color:#677081;line-height:1.5}.arcade{position:absolute;left:0;right:0;top:var(--app-top,0px);height:var(--app-height,100dvh);min-height:220px;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);overflow:hidden}.arcade-header{min-height:64px;display:flex;align-items:center;gap:16px;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));background:var(--paper);border-bottom:1px solid var(--line);flex-shrink:0}.arcade-back{display:flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none;font-size:15px;font-weight:900;white-space:nowrap}.arcade-name{font-size:18px;flex:1;line-height:1.15;margin:0}.arcade-tools{display:flex;gap:6px}.arcade-tools button{padding:8px 12px;font-size:13px}.game-stage{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto;isolation:isolate;background:#f3f4ee}.game-intro{margin:auto;max-width:1020px;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;padding:30px}.game-intro img{width:100%;height:auto;max-height:390px;object-fit:cover;border-radius:24px}.game-intro h1{font-size:clamp(32px,5vw,60px);line-height:1.02;letter-spacing:-.04em;margin:12px 0}.game-intro p:not(.eyebrow):not(.small){font-size:18px;line-height:1.6;max-width:430px}.game-hud{display:flex;justify-content:center;gap:28px;flex-shrink:0;min-height:60px;align-items:center;padding:8px 18px;background:var(--paper);border-bottom:1px solid var(--line)}.game-hud span{display:flex;gap:9px;align-items:baseline}.game-hud small{font-size:12px;color:#687386}.game-hud strong{font-size:19px}.canvas-field{flex:1;min-height:110px;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#e8eae4}.canvas-field canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none}.game-controls{display:flex;flex-shrink:0;align-items:center;justify-content:center;gap:10px;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}.game-controls button{min-width:64px;min-height:52px;user-select:none;-webkit-user-select:none;touch-action:none}.game-controls button[data-action=thrust]{background:#eaa249;border-color:#db933d}.game-controls button[data-action=thrust][data-held]{background:var(--blue)}.game-result{position:absolute;inset:0;background:#202939aa;display:grid;place-items:center;padding:20px;z-index:5;overflow:auto}.result-card{width:min(100%,440px);max-height:100%;overflow:auto;padding:32px;background:var(--paper);border-radius:20px;text-align:center}.result-card h2{font-size:34px;line-height:1.12;margin:12px 0}.result-card>p:not(.eyebrow){line-height:1.6}.result-card a{display:block;margin-top:20px;font-size:14px}.word-game{margin:auto;max-width:720px;width:100%;padding:22px}.word-game h2{font-size:clamp(24px,4vw,36px);line-height:1.2;margin:10px 0}.word-game p{line-height:1.55}.word-game label{font-size:22px;font-weight:900;display:block;margin:14px 0 8px}.word-game input{width:100%;min-height:56px;padding:12px 16px;font-size:22px;border:2px solid #a9b3b4;border-radius:12px;background:white;color:var(--ink)}.word-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.word-actions>*{flex:1}.word-examples{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.word-examples button{font-size:14px;min-width:70px}.word-hint{font-size:14px;color:#526277;min-height:24px}.story-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.story-list button{text-align:left;min-height:82px}.story-list small{display:block;color:#687386;font-size:12px;font-weight:600;margin-top:5px}.story-result{white-space:pre-wrap;font-size:clamp(20px,3vw,28px);line-height:1.8;background:white;padding:24px;border-radius:16px}.fishing-scene{height:100px;position:relative;border-radius:16px;background:#c7e2ec;overflow:hidden;margin-bottom:12px}.fishing-scene::after{content:"";position:absolute;left:0;right:0;bottom:0;height:38px;background:#4c97b3}.fish-illustration{position:absolute;bottom:13px;left:50%;width:64px;height:33px;border-radius:55% 50% 50% 55%;background:#f0b64e;z-index:1;transform:translateX(-50%)}.fish-illustration::before{content:"";position:absolute;right:-17px;top:1px;border-right:0;border-top:16px solid transparent;border-bottom:16px solid transparent;border-left:24px solid #df9150;transform:rotate(180deg)}.fish-illustration::after{content:"";position:absolute;left:13px;top:9px;width:6px;height:6px;border-radius:50%;background:var(--ink)}.target-word{font-size:clamp(32px,6vw,50px);font-weight:900;letter-spacing:.04em;margin:8px 0;color:var(--blue)}.geo-answers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.geo-answers button{min-height:68px;font-size:18px}.region-buttons{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.region-buttons button{flex:1;min-width:180px}.geo-globe{font-size:52px;line-height:1}.tile-board{margin:auto;display:grid;gap:8px;padding:10px;width:min(94vw,460px);aspect-ratio:1;background:#d9d9cd;border-radius:18px;touch-action:none;user-select:none;-webkit-user-select:none}.tile-board button{border:0;padding:0;border-radius:12px;font-size:clamp(22px,5vw,40px);font-weight:900;min-height:0;min-width:0;transition:background .15s,transform .1s}.tile-board button.fresh{animation:appear .16s ease-out}.board-wrap{display:grid;place-items:center;flex:1;min-height:0;overflow:auto;padding:12px}.board-2048{grid-template-columns:repeat(4,1fr)}.match-board{grid-template-columns:repeat(8,1fr);gap:3px;padding:6px;max-width:560px;width:min(96vw,560px);border-radius:14px}.match-board button{aspect-ratio:1;min-width:0;min-height:0;border-radius:8px;position:relative;background:#fffdf6;overflow:hidden;transition:transform .13s,background .13s}.match-board button img{width:86%;height:86%;object-fit:contain;pointer-events:none}.match-board button .gem-shape{font-size:clamp(18px,4vw,30px);line-height:1;pointer-events:none}.match-board button.selected{outline:3px solid #3357bc;outline-offset:-3px;transform:scale(.9)}.match-board button.hint{background:#f7d57b}.match-board button.dusty{background:#ecd8b4}.match-board button.path-cell{box-shadow:inset 0 0 0 2px #8bb9c9}.match-board button.path-lit{box-shadow:inset 0 0 0 3px #eab747}.special-mark{position:absolute;right:0;bottom:0;background:#202939;color:white;border-radius:4px;font-size:12px;line-height:16px;min-width:16px}.board-caption{text-align:center;flex-shrink:0;padding:8px 14px;margin:0;line-height:1.4;font-size:14px;background:var(--paper)}.level-select{padding:22px;max-width:720px;margin:auto}.level-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.level-grid button{aspect-ratio:1;min-height:48px;min-width:48px}.level-grid small{display:block;font-size:11px;color:#a16b11}.arcade-dialog{border:0;border-radius:20px;max-width:460px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;padding:28px;color:var(--ink);background:var(--paper)}.arcade-dialog::backdrop{background:#202939a6}.arcade-dialog h2{font-size:28px;margin:0 0 16px}.arcade-dialog p{line-height:1.7}.arcade-dialog button{margin:10px 8px 0 0}.arcade-footer-note{text-align:center;font-size:12px;color:#687386;margin:0;padding:7px}
@keyframes appear{from{transform:scale(.8)}to{transform:scale(1)}}
@media(max-width:650px){.arcade-header{gap:10px;min-height:58px;padding:5px 10px}.arcade-name{font-size:15px}.arcade-tools{gap:3px}.arcade-tools button{padding:6px 9px;font-size:12px;min-width:48px}.arcade-tools .sound-label{display:none}.arcade-back{font-size:13px}.game-intro{display:flex;flex-direction:column;gap:18px;padding:22px;text-align:center}.game-intro img{max-height:25svh;width:min(100%,380px)}.game-intro h1{font-size:34px}.game-intro p:not(.eyebrow):not(.small){font-size:16px;margin:12px 0}.game-hud{gap:16px;min-height:50px;padding:6px 12px}.game-hud span{gap:5px}.game-hud strong{font-size:17px}.game-controls{gap:8px;padding:8px 10px}.game-controls button{padding:10px 12px;min-width:54px}.word-game{padding:16px;margin:auto}.word-game input{font-size:20px;min-height:52px}.word-game label{font-size:20px}.word-game h2{font-size:25px}.story-list{grid-template-columns:1fr 1fr}.geo-answers{gap:8px;margin-top:15px}.geo-answers button{font-size:16px;min-height:60px;padding:10px}.fishing-scene{height:70px}.level-grid{grid-template-columns:repeat(5,1fr);gap:7px}.result-card{padding:25px}.tile-board{width:min(94vw,calc(var(--app-height,100dvh) - 250px));min-width:240px}.match-board{width:min(96vw,calc(var(--app-height,100dvh) - 235px));min-width:304px}.board-caption{font-size:12px}}
@media(max-height:520px) and (orientation:landscape){.arcade-header{min-height:52px}.game-intro{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:15px;max-width:800px}.game-intro img{max-height:58dvh;width:100%}.game-intro h1{font-size:30px}.game-intro p{font-size:14px!important;margin:8px 0}.game-intro .small{display:none}.game-hud{min-height:40px;padding:4px 12px}.game-hud strong{font-size:15px}.game-controls{position:absolute;bottom:8px;left:8px;right:8px;justify-content:space-between;background:transparent;border:0;padding:0;pointer-events:none}.game-controls button{pointer-events:auto;background:#fffdf6eb;min-width:64px}.game-controls button[data-action=thrust]{margin:0 auto}.word-game{max-width:700px;padding:12px 20px}.word-game h2{font-size:23px;margin:6px 0}.word-game p{margin:5px 0}.word-game label{font-size:18px;margin:5px 0}.word-game input{min-height:48px}.word-actions{margin-top:8px}.word-examples{margin:6px 0}.fishing-scene{display:none}.geo-globe{display:none}.geo-answers{margin-top:10px}.geo-answers button{min-height:48px}.board-wrap{padding:4px}.tile-board{width:calc(var(--app-height,100dvh) - 110px);min-width:180px;gap:5px}.match-board{width:calc(var(--app-height,100dvh) - 124px);min-width:240px;gap:2px}.board-caption{font-size:12px;padding:4px}.story-list{grid-template-columns:repeat(3,1fr)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

@media(max-width:650px) and (orientation:portrait){.arcade-header{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;padding:4px 12px}.arcade-name{text-align:right}.arcade-tools{grid-column:1/-1;display:flex;gap:6px}.arcade-tools button{flex:1;min-height:48px}.arcade-back{justify-content:start;min-height:36px}.arcade-tools #sound{font-size:12px}}
@media(max-height:520px) and (orientation:landscape){.match-board{min-width:0;width:calc(var(--app-height,100dvh) - 140px)}.tile-board:not(.match-board){min-width:0;width:calc(var(--app-height,100dvh) - 120px)}}

.tile-board,.match-board{min-width:0!important}.board-wrap{overflow:hidden}
@media(max-height:520px) and (orientation:landscape){
  body[data-game=whiskerworld] .board-wrap{padding:6px 140px;flex:1}
  body[data-game=whiskerworld] .game-hud{position:absolute;left:8px;top:8px;z-index:2;display:flex;flex-direction:column;align-items:start;gap:8px;max-width:120px;border:0;background:transparent}
  body[data-game=whiskerworld] [data-goals]{position:absolute;right:8px;top:8px;width:122px;font-size:12px;background:transparent;text-align:left}
  body[data-game=whiskerworld] [data-hint]{position:absolute;right:8px;top:72px;width:122px;font-size:11px;background:transparent;text-align:left}
}

.board-2048 button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.board-2048 button small{font-size:clamp(8px,1.6vw,12px);font-weight:700;opacity:.8}

@media(max-height:520px) and (orientation:landscape){
  .game-controls{position:static;transform:none;gap:8px;padding:4px 8px;background:var(--paper);border-top:1px solid var(--line);justify-content:center}
  .game-controls button{min-height:48px}
  body[data-game=whiskerworld] .game-controls{position:absolute;bottom:8px;left:8px;right:8px;justify-content:space-between;background:transparent;border:0;padding:0}
}

/* Friendly, readable instructions stay beside the game rather than inside tiny HUD text. */
.game-guide {
  display:flex;align-items:center;justify-content:center;gap:14px;flex-shrink:0;
  padding:12px 20px;background:#fff1bf;border-bottom:1px solid #e1c979;
}
.coach-cat {width:42px;height:42px;flex:0 0 42px;animation:coach-bob 3.2s ease-in-out infinite}
.guide-label {margin:0 0 3px;color:#715010;font-size:12px;font-weight:900}
.guide-message {margin:0;color:#202939;font-size:20px;font-weight:900;line-height:1.2}
.guide-detail {margin:5px 0 0;color:#4e4d42;font-size:14px;line-height:1.4}
body[data-game=snake] .game-guide {background:#e7f0ff;border-color:#bdcfee;gap:18px;padding:12px 20px}
body[data-game=snake] .guide-label {font-size:14px;color:#244596}
body[data-game=snake] .guide-message {font-size:clamp(30px,5vw,42px);line-height:1.15;color:#244596;letter-spacing:.02em}
body[data-game=snake] .guide-detail {font-size:15px;color:#344865}
body[data-game=snake] .game-hud {min-height:36px;padding:4px 12px;gap:24px}
body[data-game=snake] .game-hud strong {font-size:16px}
.word-game .word-hint:not(:empty) {position:relative;padding:13px 16px 13px 54px;border:1px solid #e1c979;border-radius:12px;background:#fff1bf url('/favicon.svg') 14px center / 28px 28px no-repeat;color:#493e24;font-size:17px;font-weight:750;line-height:1.5}
.word-hint[data-label]:not(:empty)::before {content:attr(data-label);display:block;font-size:12px;font-weight:900;color:#715010;margin-bottom:3px}
.word-game .word-hint[data-tone=success] {background-color:#e6f1df;border-color:#b8cfa7}
.word-game .word-hint[data-tone=success]::before {color:#355e32}
.word-examples button {background:#edf3fa;border-color:#cbd8e8;animation:gentle-in .24s ease-out}
.word-examples button:hover {transform:translateY(-2px)}
.story-result {animation:gentle-in .45s ease-out}
.story-list button {transition:transform .18s,background .18s}
.story-list button:hover {transform:translateY(-3px)}
.fish-illustration {animation:fish-bob 2.4s ease-in-out infinite}
.fishing-scene::before {content:"";position:absolute;left:16%;top:18px;width:10px;height:10px;border:2px solid #fff9;border-radius:50%;box-shadow:190px 20px 0 -2px #fff8,42px 34px 0 -2px #fff6;animation:bubble-rise 3s ease-in-out infinite}
.target-word {text-align:center;background:#eef3fb;border-radius:12px;padding:10px 14px}
.board-caption {font-size:16px;font-weight:800;line-height:1.45;background:#fff1bf;color:#493e24;border-top:1px solid #e1c979;padding:10px 16px}
[data-action=hint] {background:#ffdc7c;border:2px solid #aa771e;color:#49370e;font-weight:900;box-shadow:0 3px 0 #d4ad4b}
[data-action=hint]:hover {background:#ffe6a3;border-color:#8b5c10}
.result-cheer {display:flex;align-items:center;justify-content:center;gap:20px;margin:0 auto 12px;color:#d2911f;font-size:28px}
.result-cheer img {width:64px;height:64px;animation:cat-cheer .7s cubic-bezier(.2,.8,.25,1) both}
.result-cheer span {animation:star-cheer .8s ease-out both}
.result-cheer span:last-child {animation-delay:.1s}
.result-card {animation:gentle-in .26s ease-out}
.game-stage[data-paused] *, .game-stage[data-paused] *::before, .game-stage[data-paused] *::after {animation-play-state:paused!important}
@keyframes coach-bob {0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-3px) rotate(3deg)}}
@keyframes fish-bob {0%,100%{transform:translateX(-50%) translateY(0) rotate(-3deg)}50%{transform:translateX(-50%) translateY(-5px) rotate(3deg)}}
@keyframes bubble-rise {0%,100%{transform:translateY(8px);opacity:.4}50%{transform:translateY(-8px);opacity:1}}
@keyframes gentle-in {from{opacity:.35;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes cat-cheer {0%{transform:scale(.6) rotate(-12deg)}55%{transform:scale(1.12) rotate(7deg)}100%{transform:scale(1) rotate(0)}}
@keyframes star-cheer {0%{opacity:0;transform:scale(.2) translateY(15px)}70%{opacity:1;transform:scale(1.2) translateY(-5px)}100%{opacity:1;transform:scale(1) translateY(0)}}
@media (max-width:650px) {
  .game-guide {padding:9px 12px;gap:10px}
  .coach-cat {width:34px;height:34px;flex-basis:34px}
  .guide-message {font-size:17px}
  .guide-detail {font-size:13px}
  body[data-game=snake] .game-guide {padding:10px 14px;gap:14px}
  body[data-game=snake] .guide-message {font-size:32px}
  body[data-game=snake] .guide-detail {font-size:14px}
  .board-caption {font-size:14px;padding:8px 12px}
  .word-game .word-hint:not(:empty) {font-size:16px;padding:10px 12px 10px 48px;background-position:12px center;background-size:25px}
}
@media (max-height:520px) and (orientation:landscape) {
  .game-guide {padding:5px 12px;gap:10px}
  .coach-cat {width:28px;height:28px;flex-basis:28px}
  .guide-label {display:none}
  .guide-message {font-size:15px}
  .guide-detail {font-size:12px;margin-top:2px}
  .board-caption {font-size:13px;padding:5px 10px}
  .word-game .word-hint:not(:empty) {font-size:15px;padding:8px 10px 8px 43px;background-size:23px;background-position:10px center}
  .word-hint[data-label]:not(:empty)::before {font-size:11px}
  .game-stage.has-guide {display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
  .has-guide .game-guide {grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:center;text-align:center;margin:8px;padding:10px;border:1px solid #e1c979;border-radius:12px;gap:7px}
  .has-guide .guide-message {font-size:18px}
  body[data-game=snake] .guide-label {display:block;font-size:13px}
  body[data-game=snake] .guide-message {font-size:30px;white-space:nowrap}
  body[data-game=snake] .guide-detail {font-size:13px}
  .has-guide .canvas-field {grid-column:2;grid-row:1;min-height:0}
  .has-guide .game-hud {grid-column:1;grid-row:2;min-height:56px;gap:9px;padding:5px}
  .has-guide .game-hud span {flex-direction:column;gap:1px}
  .has-guide .game-hud small {font-size:11px}
  .has-guide .game-hud strong {font-size:16px}
  .has-guide .game-controls {grid-column:2;grid-row:2;gap:6px}
  .has-guide .game-controls button {min-width:48px;padding:8px}
}

.board-wrap {position:relative}
.number-slides {position:absolute;inset:0;pointer-events:none;z-index:2}
.sliding-number {position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:12px;font-size:clamp(22px,5vw,40px);font-weight:900;gap:2px}
.sliding-number small {font-size:clamp(8px,1.6vw,12px);font-weight:700;opacity:.8}
.typing-compact .word-game {padding:10px 16px;margin:0 auto}
.typing-compact .word-game h2,.typing-compact .word-examples,.typing-compact .fishing-scene,.typing-compact .fishing-instruction {display:none}
.typing-compact .word-game p {margin:6px 0}
.typing-compact .word-game label {font-size:18px;margin:6px 0}
.typing-compact .word-game .word-hint:not(:empty) {font-size:16px;line-height:1.4;padding-top:8px;padding-bottom:8px}
.typing-compact .word-hint[data-label]:not(:empty)::before {display:none}
.typing-compact .target-word {font-size:32px;padding:4px 10px}
.typing-compact .word-actions {margin-top:8px}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {animation:none!important;transition:none!important}
}
