@charset "UTF-8";
:root{font-family:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold",system-ui,sans-serif;color:#173f36;background:#eaf8f3;font-size:18px;--green:#12634b;--mint:#d0f1de;--line:#c7dfd4;--yellow:#ffdb63;--blue:#d8edff;--pink:#ffe1e9;--shadow:0 6px 0 #173f3614;--safe-top:env(safe-area-inset-top,0px)}
*{box-sizing:border-box}body{margin:0;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;color:inherit;border:0}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:4px solid #185dd9;outline-offset:4px}button:disabled{cursor:default}button:active:not(:disabled){transform:translateY(3px)}h1,h2,h3,p{margin:0}button svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}#app{min-height:100vh;min-height:100dvh}.screen{height:100vh;height:100dvh;display:flex;flex-direction:column;padding:max(16px,var(--safe-top)) max(24px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));max-width:1600px;margin:auto;gap:16px;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;min-height:58px}.brand{display:flex;align-items:center;gap:12px;font-weight:850;font-size:1.35rem;letter-spacing:-.04em}.brand .brandmark{background:var(--green);color:#fff;border-radius:20px;padding:10px;display:grid;place-items:center}.brand small{display:block;font-weight:550;font-size:.78rem;letter-spacing:0;color:#4b7167;margin-top:3px}.top-actions{display:flex;gap:10px;align-items:center}.icon-button{width:58px;height:58px;border-radius:20px;background:white;box-shadow:var(--shadow);display:grid;place-items:center;flex:none}.parent-button{background:transparent;font-size:.8rem;padding:16px 12px;font-weight:700}.offline-pill{font-size:.73rem;color:#3d6b5e;max-width:130px}.home-cover{position:relative;flex:1;min-height:100px;border-radius:32px;overflow:hidden;background:#bce5ef;isolation:isolate}.home-cover img{width:100%;height:100%;object-fit:cover;object-position:50% 62%;position:absolute;z-index:-1}.home-title{display:inline-block;margin:24px 30px;padding:16px 23px;background:#fffffff0;border-radius:24px}.home-title h1{font-size:clamp(1.7rem,3.5vw,3rem);letter-spacing:-.05em;font-weight:850}.home-title p{font-size:1rem;margin-top:4px;color:#47675b}.world-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;flex:none}.world-card{position:relative;text-align:left;padding:22px;border-radius:28px;min-height:178px;box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:space-between;gap:8px;border:3px solid #ffffffaa;transition:transform .18s}.world-card .emoji{font-size:64px;line-height:1.1}.world-card strong{font-size:1.1rem;display:block;letter-spacing:-.02em}.world-card .count{font-size:.76rem;display:block;margin-top:4px;font-weight:500;color:#426357}.world-card .enter{position:absolute;right:16px;top:20px;background:#ffffffa0;border-radius:50%;width:35px;height:35px;display:grid;place-items:center}.home-footer{display:flex;justify-content:space-between;font-size:.77rem;color:#4b7167;padding:0 5px}.world-heading{display:flex;align-items:center;gap:16px}.world-heading h1{font-size:1.65rem;letter-spacing:-.04em}.game-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:18px}.game-card{border-radius:28px;background:#fff;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:3px solid #ffffffa0;padding:14px;position:relative}.game-card .emoji{font-size:clamp(50px,8vh,88px);line-height:1.25}.game-card strong{font-size:1.02rem}.game-card small{font-size:.75rem;color:#567365}.world-label{font-size:.75rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:#4c7162;margin-top:3px}.game-screen{background:linear-gradient(180deg,#eefaf4,#dff3e9)}.game-top-title{text-align:center;flex:1}.game-top-title h1{font-size:1.05rem;letter-spacing:-.015em}.round-dots{display:flex;justify-content:center;gap:7px;margin-top:8px}.round-dots i{width:9px;height:9px;border-radius:50%;background:#aac8b9}.round-dots i.filled{background:#177052}.game-toolbar{display:flex;gap:10px}.instruction{display:flex;align-items:center;justify-content:center;gap:14px;flex:none;text-align:center;min-height:52px}.instruction h2{font-size:clamp(1.1rem,2.8vw,1.65rem);font-weight:780;letter-spacing:-.035em}.instruction .icon-button{height:48px;width:48px;border-radius:17px;box-shadow:none;background:#cdebdc}.board{position:relative;flex:1;min-height:0;border:2px solid #d5e9df;border-radius:32px;background:#ffffffbd;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;gap:22px;overscroll-behavior:contain}.scene{font-size:clamp(68px,11vh,120px);line-height:1.15;text-align:center;min-height:90px;display:flex;align-items:center;justify-content:center;gap:24px;max-width:100%;flex-wrap:wrap}.scene-label{font-size:1rem;display:block;margin-top:8px}.choice-row{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap;max-width:100%;width:100%}.choice{background:#fff;border:3px solid #d4e4dc;border-radius:25px;min-width:105px;min-height:110px;max-width:220px;padding:14px 23px;box-shadow:0 6px 0 #d4e4dc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:65px;line-height:1.05;position:relative}.choice span.label{font-size:.8rem;font-weight:700;line-height:1.3}.choice.selected{border-color:#12634b;background:#e0f6e7;box-shadow:0 6px 0 #12634b}.choice.matched{background:#e0f6e7;border-color:#8ac5a4;box-shadow:none;opacity:.7}.choice .emoji{display:block}.choice:disabled:not(.matched){opacity:.55}.choice.correct{background:#cceecf;border-color:#51a36e}.choice.hint{animation:hint 1s ease-in-out infinite;border-color:#ce9200}.choice.dim{opacity:.32}.guide-hand{position:absolute;font-size:52px;right:-8px;bottom:-18px;z-index:3;pointer-events:none;animation:tap 1.3s ease-in-out infinite;filter:drop-shadow(0 3px 2px #0002)}.helper{min-height:40px;display:flex;justify-content:center;align-items:center;gap:12px;color:#4d6f5e;flex:none;text-align:center;font-size:.9rem}.helper button{background:transparent;font-size:.82rem;font-weight:750;padding:10px 16px;border-radius:16px}.shape{display:block;width:78px;height:78px;flex:none;background:var(--shape-colour,#3985d6)}.shape.circle{border-radius:50%}.shape.square{border-radius:12px}.shape.triangle{clip-path:polygon(50% 0,100% 100%,0 100%)}.shape.star{clip-path:polygon(50% 0,61% 34%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 34%)}.shape.outline{background:#cadbd3}.shadow-emoji{filter:brightness(0);opacity:.8}.colour-dot{width:76px;height:76px;border-radius:50%;background:var(--swatch);display:block;border:3px solid #0001}.target-box{border:4px dashed #9dcbb3;border-radius:24px;padding:16px 26px;min-width:120px;min-height:115px;background:#edf7ef;display:grid;place-items:center;gap:5px}.target-box small{font-size:.8rem}.sequence-slot{width:100px;min-height:100px;border:3px dashed #9abaaa;background:#eef7f1;border-radius:20px;display:grid;place-items:center;font-size:56px;position:relative}.sequence-slot small{font-size:16px;position:absolute;left:8px;top:6px}.puzzle-wrap{display:flex;gap:30px;align-items:center;justify-content:center;flex-wrap:wrap}.puzzle-target{display:grid;width:220px;height:220px;border:3px solid #81b798;border-radius:20px;overflow:hidden}.puzzle-target button{border:1px dashed #a2cbb4;background:#e5f3eb;font-size:36px;position:relative;overflow:hidden}.puzzle-target button.fitted{border:1px solid white}.puzzle-source{display:flex;gap:12px;flex-wrap:wrap;max-width:320px;justify-content:center}.puzzle-piece{width:98px;height:98px;border-radius:16px;background:#fff;border:3px solid #d4e4dc;position:relative;overflow:hidden}.crop{position:absolute;pointer-events:none;display:block;line-height:1;overflow:visible}.block{width:65px;height:48px;border-radius:10px;border:3px solid #0001;box-shadow:0 4px 0 #0001;background:var(--swatch)}.tower{display:flex;flex-direction:column-reverse;align-items:center;gap:5px;min-height:140px;justify-content:flex-start;padding-top:10px}.tower-zone{display:flex;align-items:flex-end;gap:55px}.tower-column{text-align:center}.tower-column small{font-size:.8rem;display:block;margin-top:12px}.bridge-scene{display:flex;align-items:center;gap:0;font-size:64px}.river-gap{height:90px;background:#bfe7ff;border-radius:14px;display:grid;place-items:center;font-size:26px;color:#2a84b7}.bridge-plank{height:30px;border-radius:6px;background:#c98549;border:3px solid #9c622f;display:block}.path-grid{display:grid;grid-template-columns:repeat(5,1fr);width:min(440px,100%);gap:8px}.path-cell{height:62px;border-radius:16px;background:#d8efdf;font-size:37px;border:2px solid transparent}.path-cell.road{background:#fff0c2;border-color:#e4d5a2}.path-cell.visited{background:#bfdaca}.path-cell.now{background:#ffe074;border-color:#d4a735}.path-cell.water{background:#b9e1fb}.drawing-wrap{position:relative;flex:1;min-height:140px;width:100%;max-width:950px;border-radius:24px;overflow:hidden;background:white;border:2px dashed #bfdbc9;touch-action:none}.drawing-wrap canvas{display:block;width:100%;height:100%;touch-action:none}.drawing-tools{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.swatch-button{width:55px;height:55px;border-radius:50%;background:var(--swatch);border:4px solid white;box-shadow:0 0 0 2px #becfc2}.swatch-button.active{box-shadow:0 0 0 4px #173f36}.primary,.secondary{font-weight:750;font-size:1rem;border-radius:20px;padding:16px 28px;min-height:58px;display:inline-flex;align-items:center;justify-content:center;gap:12px;box-shadow:var(--shadow)}.primary{background:var(--green);color:white}.secondary{background:#e6f2ea;color:#174f3b}.primary svg,.secondary svg{height:26px;width:26px}.celebration{position:absolute;inset:0;z-index:5;background:#f4fbf6f5;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:24px;text-align:center;padding:20px;border-radius:30px}.celebration .big-emoji{font-size:100px;animation:pop .5s ease}.celebration h2{font-size:2rem;letter-spacing:-.04em}.celebration p{color:#4d6f5e;font-size:1rem}.celebration-actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}.drum-button{font-size:110px;background:#ffe5a6;border:5px solid #edc578;border-radius:45%;width:190px;height:180px;box-shadow:0 9px 0 #d9a755}.drum-button.beat{background:#a6dfc0;transform:scale(1.08)}.dance-animal{font-size:140px}.dancing{animation:dance .6s infinite alternate}.freeze-label{font-weight:850;font-size:1.9rem;color:#12634b}.ingredient-bowl{border-radius:32px;background:#ffe6b7;padding:20px;min-width:170px;min-height:100px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:44px}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;max-width:650px}.memory-grid .choice{min-width:90px;min-height:100px;padding:12px;font-size:55px}.memory-grid .back{background:#247154;color:white;border-color:#1d6449;box-shadow:0 6px 0 #19543f}.size-small{font-size:44px}.size-large{font-size:90px}.status-text{font-size:.83rem;color:#567565;text-align:center}.busy{pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.offline-warning{position:fixed;left:10px;right:10px;bottom:10px;z-index:10;border-radius:18px;background:#fff2c5;padding:15px;text-align:center;font-size:.9rem}dialog{border:0;border-radius:28px;padding:28px;width:min(600px,92vw);max-height:88dvh;overflow:auto;color:#173f36;background:#fff;box-shadow:0 20px 100px #163b3650}dialog::backdrop{background:#173f366b;backdrop-filter:blur(5px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}dialog h2{font-size:1.5rem;letter-spacing:-.035em}dialog p{font-size:.95rem;line-height:1.6;margin:12px 0}dialog label{font-size:.93rem;font-weight:700;display:block;margin-top:20px}dialog select,dialog input{width:100%;border:2px solid #caddd0;border-radius:14px;padding:12px;margin-top:8px;background:#f6faf7;color:#173f36;min-height:50px}dialog .setting-row{display:flex;align-items:center;gap:15px;margin:16px 0}dialog .setting-row input{width:25px;height:25px;min-height:25px;margin:0}dialog .setting-row label{margin:0}.parent-info{background:#f0f7f2;border-radius:18px;padding:16px;margin-top:20px;font-size:.85rem;line-height:1.6}.parent-info p{font-size:.85rem}.parent-info strong{display:block}.parent-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.gate-row{display:flex;gap:14px;align-items:center}.gate-row span{font-weight:800;font-size:1.5rem;white-space:nowrap}.gate-error{color:#963d32;font-size:.85rem;min-height:22px}.progress-list{font-size:.85rem;line-height:1.6;max-height:140px;overflow:auto;margin:8px 0}.quiet *{animation:none!important;transition:none!important}.pause-screen{align-items:center;justify-content:center;text-align:center;gap:28px}.pause-screen h1{font-size:2.2rem}.pause-screen .emoji{font-size:110px}
@keyframes hint{50%{box-shadow:0 0 0 8px #f8d65b66}}@keyframes tap{50%{transform:translate(-5px,-10px) rotate(-10deg)}}@keyframes pop{from{transform:scale(.6)}to{transform:scale(1)}}@keyframes dance{from{transform:rotate(-10deg) translateY(0)}to{transform:rotate(10deg) translateY(-12px)}}
@media(min-width:1100px){.screen{padding-left:40px;padding-right:40px;gap:20px}.world-card{min-height:190px}.home-cover{max-height:570px}}
@media(max-width:750px){:root{font-size:16px}.screen{padding:12px;gap:12px;padding-top:max(12px,var(--safe-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}.brand{font-size:1.15rem}.offline-pill{display:none}.world-grid{grid-template-columns:repeat(2,1fr);gap:12px}.world-card{min-height:140px;padding:16px;border-radius:23px}.world-card .emoji{font-size:44px}.home-title{margin:15px;padding:13px 17px}.home-title h1{font-size:1.8rem}.game-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(3,1fr);gap:12px}.game-card{gap:5px;border-radius:23px}.game-card .emoji{font-size:48px}.game-card strong{font-size:.95rem}.game-card small{display:none}.board{padding:15px;gap:18px;border-radius:25px}.choice-row{gap:15px}.choice{min-width:88px;min-height:100px;padding:13px;font-size:54px;border-radius:20px}.icon-button{width:50px;height:50px;border-radius:17px}.top-actions{gap:4px}.parent-button{font-size:.75rem}.home-footer{font-size:.7rem}.memory-grid{gap:12px;grid-template-columns:repeat(3,1fr)}.memory-grid .choice{min-width:77px;min-height:85px;font-size:44px}.puzzle-target{width:190px;height:190px}.puzzle-wrap{gap:18px}.puzzle-source{max-width:220px}.puzzle-piece{height:77px;width:77px}.scene{font-size:70px}.shape{width:64px;height:64px}.sequence-slot{width:80px;min-height:90px;font-size:44px}.game-top-title h1{font-size:.95rem}.game-toolbar{gap:5px}.instruction{gap:9px}.instruction h2{font-size:1.3rem}.drum-button{height:150px;width:165px;font-size:90px}}
@media(max-height:620px) and (min-width:751px){.screen{gap:10px;padding-top:10px;padding-bottom:10px}.home-cover{min-height:90px}.world-card{min-height:132px;padding:14px}.world-card .emoji{font-size:45px}.home-title{margin:12px;padding:10px 18px}.home-title h1{font-size:1.8rem}.game-grid{gap:12px}.game-card .emoji{font-size:46px}.game-card{gap:4px}.board{gap:12px;padding:13px}.scene{min-height:60px;font-size:65px}.choice{min-height:85px;font-size:47px;padding:10px 20px}.shape{height:56px;width:56px}.instruction{min-height:35px}.helper{min-height:25px}.path-cell{height:45px}.puzzle-target{height:175px;width:175px}.puzzle-piece{height:75px;width:75px}.dance-animal{font-size:95px}.drum-button{height:120px;width:140px;font-size:80px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.brandmark svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.puzzle-piece.selected{border-color:#12634b;box-shadow:0 0 0 3px #12634b33}.puzzle-source .puzzle-piece{height:auto}.puzzle-target button,.puzzle-source .puzzle-piece{background-repeat:no-repeat}.brandmark{flex:none}
