:root{--bg: #fff8ec;--surface: #ffffff;--ink: #2b2d42;--muted: #5c6178;--coral: #ff7a59;--sun: #ffd166;--mint: #06d6a0;--sky: #4ea8de;--berry: #b565f7;--shadow: 0 10px 24px rgba(43, 45, 66, .12)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}html,body,#root{margin:0;padding:0;width:100%;height:100%;background:var(--bg);color:var(--ink);font-family:Fredoka,Nunito,Comic Sans MS,Segoe UI Rounded,system-ui,-apple-system,sans-serif;touch-action:manipulation;overflow-x:hidden}.app-shell{min-height:100%;display:flex;flex-direction:column;background:radial-gradient(circle at 12% 14%,rgba(255,209,102,.35) 0%,transparent 32%),radial-gradient(circle at 88% 18%,rgba(78,168,222,.25) 0%,transparent 34%),radial-gradient(circle at 50% 90%,rgba(6,214,160,.22) 0%,transparent 38%),var(--bg)}.top-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;gap:12px;z-index:20}.brand-pill{display:inline-flex;align-items:center;gap:10px;background:var(--surface);border:3px solid #ffe0b2;border-radius:999px;padding:8px 18px;font-size:1.2rem;font-weight:800;color:var(--ink);box-shadow:0 4px 12px #2b2d4214}.pill-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:3px solid rgba(43,45,66,.12);background:var(--surface);color:var(--ink);border-radius:999px;padding:10px 18px;font-size:1.05rem;font-weight:800;cursor:pointer;box-shadow:0 5px #2b2d421f;transition:transform .12s ease,box-shadow .12s ease}.pill-btn:active{transform:translateY(3px);box-shadow:0 2px #2b2d421f}.pill-btn.home-btn{background:#ffd166;border-color:#f4b731}.home-main{flex:1;max-width:1080px;width:100%;margin:0 auto;padding:8px 18px 32px;display:flex;flex-direction:column;align-items:center}.hero-title{margin:8px 0 4px;font-size:clamp(2rem,5vw,3rem);text-align:center;line-height:1.1}.hero-sub{margin:0 0 22px;font-size:1.1rem;color:var(--muted);text-align:center}.game-grid{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.game-card{border:4px solid rgba(255,255,255,.85);border-radius:28px;padding:24px 18px;display:flex;flex-direction:column;align-items:center;gap:10px;cursor:pointer;color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.16);box-shadow:0 10px #2b2d4224,var(--shadow);transition:transform .14s ease,box-shadow .14s ease}.game-card:hover{transform:translateY(-4px) scale(1.015)}.game-card:active{transform:translateY(5px) scale(.98);box-shadow:0 4px #2b2d4224}.game-emoji{font-size:4.2rem;line-height:1;filter:drop-shadow(0 6px 8px rgba(0,0,0,.15))}.game-card-title{font-size:1.45rem;font-weight:800}.game-card-desc{font-size:.98rem;opacity:.95;text-align:center}.game-stage{flex:1;display:flex;flex-direction:column;width:100%;max-width:1080px;margin:0 auto;padding:4px 14px 18px}.play-card{flex:1;background:var(--surface);border-radius:32px;border:4px solid #ffe8c8;box-shadow:var(--shadow);padding:18px;display:flex;flex-direction:column;position:relative;overflow:hidden;min-height:460px}.footer-note{text-align:center;font-size:.85rem;color:var(--muted);padding:10px 14px 18px}.bubble-stage{position:relative;flex:1;min-height:440px;border-radius:24px;background:linear-gradient(180deg,#b8ecff,#e6f8ff 65%,#fff5d6);overflow:hidden}.bubble-btn{position:absolute;border-radius:50%;border:4px solid rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center;font-size:2.1rem;cursor:pointer;box-shadow:inset -8px -10px 18px #ffffff73,inset 6px 8px 14px #ffffffbf,0 8px 18px #4ea8de40;transition:transform .08s ease}.bubble-btn:active{transform:scale(1.25)}.pop-burst{position:absolute;pointer-events:none;font-size:2rem;animation:burst-fade .55s ease-out forwards}@keyframes burst-fade{0%{transform:translate(-50%,-50%) scale(.6);opacity:1}to{transform:translate(-50%,-95%) scale(1.7);opacity:0}}.score-badge{position:absolute;top:14px;right:14px;background:#ffffffeb;border:3px solid #ffd166;border-radius:999px;padding:6px 16px;font-size:1.25rem;font-weight:800;z-index:5}.animal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;flex:1;align-content:center}.animal-tile{border:4px solid rgba(255,255,255,.9);border-radius:26px;padding:18px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;box-shadow:0 8px #2b2d421f;transition:transform .15s ease}.animal-tile.bouncing{animation:animal-bounce .45s ease}@keyframes animal-bounce{0%,to{transform:scale(1)}35%{transform:scale(1.13) rotate(-4deg)}70%{transform:scale(1.08) rotate(4deg)}}.animal-emoji{font-size:4rem;line-height:1}.animal-name{font-size:1.25rem;font-weight:800;color:var(--ink)}.animal-sound-word{font-size:1rem;font-weight:700;color:#4a4e69;min-height:1.3em}.xylo-wrap{flex:1;display:flex;flex-direction:column;justify-content:center;gap:18px}.xylo-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.xylo-bars{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;align-items:end;min-height:320px;padding:12px 6px}@media(max-width:640px){.xylo-bars{grid-template-columns:repeat(4,1fr);min-height:360px}}.xylo-bar{border:4px solid rgba(255,255,255,.75);border-radius:22px;color:#fff;font-weight:900;font-size:1.35rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:14px 6px;box-shadow:0 9px #2b2d4229;transition:transform .08s ease,filter .1s ease}.xylo-bar.active,.xylo-bar:active{transform:translateY(6px) scale(.97);filter:brightness(1.12)}.xylo-screw{width:14px;height:14px;border-radius:50%;background:#fffc}.shape-stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:space-around;gap:18px}.shape-prompt{text-align:center;font-size:clamp(1.4rem,3.5vw,2rem);font-weight:800}.shape-target-box{width:150px;height:150px;border-radius:30px;border:5px dashed #cbd5e1;background:#f8fafc;display:flex;align-items:center;justify-content:center}.shape-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}.shape-choice-btn{width:132px;height:132px;border-radius:28px;border:4px solid #f1f5f9;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px #2b2d421f;transition:transform .12s ease}.shape-choice-btn:active{transform:scale(.94)}.shape-choice-btn.wiggle{animation:gentle-wiggle .35s ease}@keyframes gentle-wiggle{0%,to{transform:translate(0)}25%{transform:translate(-8px)}75%{transform:translate(8px)}}.paint-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-bottom:12px}.swatch-btn{width:48px;height:48px;border-radius:50%;border:4px solid #ffffff;cursor:pointer;box-shadow:0 4px 10px #2b2d422e;transition:transform .12s ease}.swatch-btn.selected{transform:scale(1.18);outline:4px solid var(--ink)}.paint-canvas-wrap{flex:1;min-height:360px;border-radius:24px;border:4px solid #e2e8f0;overflow:hidden;background:#fff;touch-action:none}.paint-canvas{width:100%;height:100%;display:block;touch-action:none}
