@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@600;700;800&display=swap');
:root{--ink:#263341;--muted:#71808b;--paper:#fff8ed;--white:#fffdf9;--orange:#ef7650;--yellow:#f5c95c;--green:#75b997;--shadow:0 12px 30px rgba(63,54,41,.1);font-family:'Nunito',system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 12% 5%,#fff 0,transparent 25rem),var(--paper)}button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible{outline:4px solid #4d9ec1;outline-offset:3px}.topbar{display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:auto;padding:20px 5vw}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-size:.75rem;line-height:.9}.brand strong{font:800 1.3rem/1 'Baloo 2',sans-serif}.brand-mark{display:grid;place-items:center;width:42px;height:42px;color:#fff;background:var(--orange);border-radius:14px 14px 14px 5px;font-size:1.5rem;transform:rotate(-8deg)}.top-actions{display:flex;gap:10px;align-items:center}.icon-button,.parent-button{min-height:64px;border-radius:17px;background:var(--white);box-shadow:0 3px 12px rgba(50,47,42,.08)}.icon-button{width:64px;font-size:1.35rem}.parent-button{padding:0 18px;color:var(--muted);font-weight:800}main{max-width:1180px;margin:auto;padding:20px 5vw 70px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:'Baloo 2',sans-serif;line-height:.95}.welcome{display:grid;grid-template-columns:1.1fr .9fr;gap:45px;align-items:center;min-height:390px}.eyebrow{color:var(--orange);font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.welcome h1{max-width:620px;margin:14px 0;font-size:clamp(3.2rem,7vw,5.8rem);letter-spacing:-.04em}.welcome-copy>p{max-width:470px;color:var(--muted);font-size:1.1rem;line-height:1.5}.welcome-art{position:relative;display:grid;place-items:center;min-height:300px;border-radius:48% 52% 44% 56%;background:#f8dc87}.welcome-art span{font-size:10rem;filter:drop-shadow(0 12px 4px rgba(100,65,20,.12))}.welcome-art i,.welcome-art b{position:absolute;color:var(--orange);font-size:2rem;font-style:normal}.welcome-art i{top:18%;left:18%}.welcome-art b{right:18%;bottom:20%;color:#fff}.listen{min-height:64px;padding:0 21px;border-radius:18px;background:var(--yellow);box-shadow:0 4px 0 #d8a936;font-weight:900}.section-title{display:flex;align-items:end;justify-content:space-between;margin:20px 0}.section-title h2{margin:0;font-size:2.4rem}.section-title span{color:var(--muted);font-weight:800}.games{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.game-card{min-height:305px;padding:25px;border-radius:27px;background:#fff;box-shadow:var(--shadow);border-top:9px solid var(--card-color)}.game-card.sun{--card-color:#f5c95c}.game-card.rose{--card-color:#ef9ab2}.game-card.mint{--card-color:#75b997}.game-card.sky{--card-color:#79b6d0}.game-icon{font-size:3.8rem}.game-card h3{margin:17px 0 8px;font-size:1.65rem}.game-card p{min-height:52px;color:var(--muted);line-height:1.4}.game-link{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:64px;padding:0 16px;border-radius:15px;background:#fff5dc;font-weight:900}.rose .game-link{background:#fff0f4}.mint .game-link{background:#eaf7ef}.sky .game-link{background:#edf8fc}.game-link span{font-size:1.5rem}.done-label{display:block;margin-top:12px;color:#397452;font-weight:900}.screen{max-width:850px;margin:auto}.back{min-height:64px;padding:0 18px;border-radius:16px;background:var(--white);box-shadow:0 3px 10px rgba(50,47,42,.07);font-weight:900}.screen-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:25px 0 4px}.screen-heading h1{margin:0;font-size:clamp(2.7rem,6vw,4.5rem)}.small-listen{min-height:64px}.subtitle{color:var(--muted);font-size:1.1rem}.level-picker{display:flex;justify-content:center;gap:10px;margin:20px 0}.level-number{width:58px;height:58px;border-radius:50%;background:#e3ded4;font-weight:900}.level-number:enabled{background:#fff0b6}.level-number.selected{background:var(--orange);color:#fff;transform:scale(1.08)}.journey-card{padding:20px;border-radius:28px;background:#fff;box-shadow:var(--shadow)}.instruction{text-align:center;color:var(--muted);font-weight:800}.board{display:grid;gap:3px;width:min(100%,620px);margin:15px auto 25px;padding:7px;border:7px solid #b7d5ba;border-radius:20px;background:#b7d5ba}.cell{position:relative;display:grid;place-items:center;aspect-ratio:1;border-radius:7px;overflow:hidden}.cell.path{background:#f9efc9}.cell.wall{background:#93c19b}.cell.goal{background:#ffe39a}.tree{font-size:clamp(1.2rem,4vw,2rem);line-height:1}.carrot{font-size:clamp(1.4rem,5vw,2.5rem);line-height:1}.cell .rabbit{position:absolute;inset:0;z-index:5;display:grid;place-items:center;width:100%;height:100%;font-size:clamp(1.7rem,5vw,3rem);line-height:1;background:#fffdf9;border:4px solid #f5c95c;border-radius:50%;filter:drop-shadow(0 3px 2px rgba(70,50,20,.18));transform-origin:center}.cell.thinking .rabbit{animation:think 1s ease-in-out}@keyframes think{35%{transform:rotate(-12deg) translateY(-3px)}65%{transform:rotate(12deg) translateY(-3px)}100%{transform:rotate(0)}}.program{padding:18px;border:3px dashed #d6cbb8;border-radius:20px;background:#fffaf0}.program-title{display:flex;justify-content:space-between;gap:10px;color:var(--muted)}.program-title strong{color:var(--ink)}.command-row,.puzzle-row{display:flex;align-items:center;gap:9px;min-height:78px;margin:10px 0;overflow-x:auto}.command-slot,.empty-slot{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:14px;background:#fff;box-shadow:0 4px 0 #d8d1c5;font-size:1.8rem}.empty-slot{color:#c4bba9;font-size:1.5rem}.command-tools,.puzzle-tools,.dance-tools{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.command,.puzzle-command,.dance-tools button{display:grid;place-items:center;min-width:76px;min-height:76px;padding:6px;border-radius:16px;background:#fff;box-shadow:0 4px 0 #d8d1c5;font-size:1.9rem}.command small,.puzzle-command small,.dance-tools small{display:block;font-size:.62rem;font-weight:900}.actions{display:flex;justify-content:center;gap:12px;margin:19px 0}.run,.clear,.next{min-height:64px;padding:0 22px;border-radius:17px;font-weight:900}.run{background:var(--orange);color:#fff;box-shadow:0 4px 0 #c55335}.clear{background:#e9e3d8}.next{display:block;margin:10px auto 0;background:var(--green);box-shadow:0 4px 0 #4d9875}.good{padding:14px 18px;border-radius:16px;background:#e9f6e9;color:#397452;font-weight:900}.story{position:relative;display:grid;place-items:center;min-height:235px;margin:20px 0;border-radius:26px;background:#ffe8bd}.story #storyAnimal{font-size:7rem;transition:transform .25s}.story span{position:absolute;top:20px;right:10%;padding:11px 15px;border-radius:15px;background:#fff;color:var(--muted);font-weight:900}.action-wave{animation:wave .6s}.action-jump{animation:jump .6s}.action-turn{animation:turn .6s}.action-roar{animation:roar .6s}.action-heart{animation:heart .6s}@keyframes wave{50%{transform:rotate(15deg) translateY(-8px)}}@keyframes jump{50%{transform:translateY(-30px)}}@keyframes turn{50%{transform:rotate(180deg)}}@keyframes roar{50%{transform:scale(1.2)}}@keyframes heart{50%{transform:scale(1.2)}}.puzzle-slot{flex:0 0 70px}.empty-message{width:100%;text-align:center;color:var(--muted);font-weight:800}.pattern{padding:30px;border-radius:26px;background:#eaf7ef}.pattern-sequence{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.pattern-sequence span,.pattern-sequence b,.pattern-choices button{display:grid;place-items:center;width:78px;height:78px;border-radius:18px;background:#fff;font-size:2.5rem}.pattern-sequence b{background:#fff0b6;color:var(--orange)}.pattern-choices{display:flex;justify-content:center;gap:15px;margin-top:25px}.pattern-choices button{cursor:pointer}.dance-stage{display:grid;place-items:center;min-height:250px;margin:20px 0;border-radius:26px;background:#dff2fa}.dance-stage div{font-size:8rem}.parent-dialog{max-width:560px;padding:30px;border:0;border-radius:26px;background:var(--paper);color:var(--ink);box-shadow:0 20px 70px rgba(38,51,65,.25)}.parent-dialog::backdrop{background:rgba(38,51,65,.35)}.dialog-close{float:right;width:64px;height:64px;border-radius:15px;background:#fff;font-size:2rem}.adult-tip{display:flex;gap:14px;align-items:flex-start;margin:15px 0;padding:15px;border-radius:17px;background:#fff}.adult-tip span{font-size:1.6rem}.parent-dialog .primary-button{min-height:64px;width:100%;border-radius:16px;background:var(--green);font-weight:900}
@media(max-width:850px){.games{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.topbar{padding-top:14px}.parent-button{padding:0 12px;font-size:.75rem}.welcome{grid-template-columns:1fr;gap:5px;min-height:0}.welcome-copy{padding-top:30px}.welcome h1{font-size:3.7rem}.welcome-art{min-height:220px}.welcome-art span{font-size:8rem}.games{grid-template-columns:1fr}.game-card{min-height:250px}.screen-heading{align-items:flex-start;flex-direction:column}.level-number{width:50px;height:50px}.actions{flex-wrap:wrap}.board{padding:4px;border-width:5px}.cell .rabbit{border-width:3px}.story span{right:5%;font-size:.8rem}.pattern-sequence span,.pattern-sequence b,.pattern-choices button{width:64px;height:64px;font-size:2rem}}.read-button{display:inline-flex;align-items:center;justify-content:center;min-height:64px;padding:0 21px;border-radius:18px;background:var(--yellow);box-shadow:0 4px 0 #d8a936;font-weight:900}.primary-button{min-height:64px;padding:0 20px;border-radius:16px;background:var(--green);font-weight:900}
.how-to{display:grid;gap:8px;padding:17px 20px;margin-bottom:18px;border:3px solid #f5c95c;border-radius:18px;background:#fffaf0;font-size:1rem}.how-to strong{font-family:'Baloo 2',sans-serif;font-size:1.35rem}.how-to span{display:block}.how-to b{color:#d65d3e}.command-row{min-height:86px;align-items:stretch}.command-slot,.empty-slot{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:75px;min-height:76px;margin:4px;padding:8px;border-radius:14px;background:#fff;border:2px solid #e5d6c5;font-size:1.45rem}.command-slot b{position:absolute;top:3px;left:7px;color:var(--orange);font-size:.75rem}.command-slot small{font-size:.68rem;font-weight:800}.empty-slot{color:#bdad9d;border-style:dashed;font-weight:900;font-size:1.4rem}.pattern{padding:22px;border-radius:24px;background:var(--white);box-shadow:var(--shadow)}.pattern-hint{margin:18px 0;color:var(--muted);font-weight:800}.pattern-sequence{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.pattern-sequence span,.pattern-sequence b{display:grid;place-items:center;width:72px;height:72px;border-radius:16px;background:#fff4d7;font-size:2.4rem}.pattern-sequence b{background:#eaf4ee;color:var(--green)}.pattern-choices{display:flex;justify-content:center;flex-wrap:wrap;gap:14px}.pattern-choices button{width:78px;height:78px;border-radius:20px;background:#f3eee7;font-size:2.4rem}.pattern-choices button:hover,.command:hover{transform:translateY(-2px);box-shadow:0 5px 0 rgba(63,54,41,.12)}
.dance-stage{position:relative;display:grid;place-items:center;min-height:245px;margin:10px 0 16px;overflow:hidden;border-radius:28px;background:linear-gradient(160deg,#dff3f5,#d6e8f6);box-shadow:var(--shadow)}.dance-stage #dancer{position:relative;z-index:1;font-size:7rem;filter:drop-shadow(0 10px 4px rgba(40,61,80,.18));transform-origin:50% 85%}.dance-stage span{position:absolute;top:28px;right:16%;padding:9px 14px;border-radius:16px;background:#fff;font-weight:900;box-shadow:0 4px 0 rgba(58,78,99,.12)}.dance-star{position:absolute;top:35px;left:15%;color:#f5c95c;font-size:2.4rem}.dance-plan{padding:12px 14px;margin-bottom:12px;border-radius:16px;background:var(--white);box-shadow:var(--shadow)}.dance-plan strong{display:block;margin-bottom:7px;font-family:'Baloo 2',sans-serif;font-size:1.25rem}.dance-plan>div{display:flex;gap:7px;min-height:54px;align-items:center}.dance-step{position:relative;display:grid;place-items:center;width:58px;height:54px;border-radius:12px;background:#fff3d8;font-size:1.7rem}.dance-step b{position:absolute;top:2px;left:6px;color:var(--orange);font-size:.7rem}.empty-dance{color:var(--muted);font-size:.85rem}.dance-tools{display:flex;justify-content:center;gap:12px;margin:12px 0}.dance-tools button{display:grid;place-items:center;gap:1px;width:84px;min-height:78px;padding:7px;border-radius:18px;background:#fff;box-shadow:0 4px 0 #d4e0e7}.dance-tools button span{font-size:2.2rem}.dance-tools button small{font-weight:900}.dance-move{animation:danceMove .6s ease-in-out}.turn-move{animation:turnMove .6s ease-in-out}.clap-move{animation:clapMove .6s ease-in-out}.dance-finale{animation:danceFinale 1s ease-in-out}.dance-stage:has(.dance-finale){background:linear-gradient(160deg,#f8dc87,#f6b9a0)}@keyframes danceMove{0%,100%{transform:translateY(0) rotate(0)}30%{transform:translateY(-24px) rotate(-9deg)}70%{transform:translateY(-15px) rotate(9deg)}}@keyframes turnMove{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.1)}100%{transform:rotate(360deg) scale(1)}}@keyframes clapMove{0%,100%{transform:scale(1)}35%{transform:scale(1.12) rotate(-5deg)}70%{transform:scale(1.12) rotate(5deg)}}@keyframes danceFinale{0%{transform:scale(1)}35%{transform:scale(1.22) rotate(-8deg)}70%{transform:scale(1.15) rotate(8deg)}100%{transform:scale(1.08)}}
@media(max-width:620px){
  body{overflow-x:hidden}
  .topbar{height:68px;padding:8px 14px}
  .brand{gap:7px;font-size:.65rem}
  .brand-mark{width:34px;height:34px;border-radius:11px 11px 11px 4px;font-size:1.15rem}
  .brand strong{font-size:1rem}
  .icon-button,.parent-button{min-height:46px;border-radius:12px}
  .icon-button{width:46px;font-size:1.05rem}
  .parent-button{padding:0 10px;font-size:.7rem}
  main{padding:8px 12px 28px}
  .screen{width:100%}
  .back{min-height:38px;margin-bottom:8px;font-size:.82rem}
  .screen-heading{gap:4px;margin-bottom:8px}
  .screen-heading h1{margin:0;font-size:clamp(2rem,9vw,2.7rem)}
  .small-listen{min-height:38px;padding:0 12px;font-size:.75rem}
  .subtitle{margin-bottom:8px;font-size:.86rem;line-height:1.25}
  .level-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:8px 0 10px}
  .level-number{width:auto;height:38px;min-width:0;border-radius:10px;font-size:.9rem}
  .journey-card,.pattern{padding:10px;border-radius:16px}
  .how-to{grid-template-columns:repeat(3,1fr);gap:4px;padding:9px 8px;margin-bottom:8px;border-width:2px;border-radius:12px;font-size:.68rem;line-height:1.15}
  .how-to strong{grid-column:1/-1;font-size:1rem}
  .how-to span{display:block}
  .instruction{margin-bottom:7px;font-size:.78rem;line-height:1.2}
  .board{width:100%;margin:0 auto 8px;gap:2px}
  .cell{min-width:0;aspect-ratio:1}
  .cell .tree,.cell .carrot,.cell .rabbit{font-size:clamp(1.15rem,7vw,2rem)}
  .program{padding:9px}
  .program-title{font-size:.82rem}
  .command-row{display:flex;min-height:60px;gap:2px;overflow-x:auto;padding:2px 0}
  .command-slot,.empty-slot{flex:0 0 58px;min-width:58px;min-height:57px;margin:2px;padding:4px;border-radius:10px;font-size:1.2rem}
  .command-slot small{font-size:.55rem}
  .command-tools{gap:6px;margin-top:7px}
  .command{min-height:58px;min-width:58px;padding:5px;border-radius:10px}
  .command span{font-size:1.35rem}
  .command small{font-size:.58rem}
  .actions{gap:7px;margin-top:8px}
  .actions button{min-height:48px;padding:0 13px;font-size:.85rem}
  .next{min-height:46px;margin-top:8px;font-size:.85rem}
  #journeyFeedback,#patternFeedback{font-size:.82rem}
  .pattern .instruction{margin-bottom:8px}
  .pattern-hint{margin:8px 0;font-size:.78rem;line-height:1.2}
  .pattern-sequence{gap:4px}
  .pattern-sequence span,.pattern-sequence b{width:clamp(34px,11vw,48px);height:clamp(34px,11vw,48px);border-radius:9px;font-size:clamp(1.25rem,6vw,1.8rem)}
  .pattern-choices{gap:8px;margin-top:8px}
   .pattern-choices button{width:58px;height:58px;border-radius:13px;font-size:1.8rem}.dance-stage{min-height:165px;margin:5px 0 8px;border-radius:18px}.dance-stage #dancer{font-size:5rem}.dance-stage span{top:12px;right:8%;padding:6px 9px;font-size:.72rem;border-radius:11px}.dance-star{top:18px;left:10%;font-size:1.5rem}.dance-plan{padding:8px 10px;margin-bottom:8px}.dance-plan strong{margin-bottom:4px;font-size:1rem}.dance-plan>div{min-height:42px}.dance-step{width:48px;height:42px;font-size:1.35rem}.dance-tools{gap:7px;margin:7px 0}.dance-tools button{width:72px;min-height:60px;border-radius:13px}.dance-tools button span{font-size:1.7rem}.dance-tools button small{font-size:.7rem}
}
