:root{--blue:#1f5eff;--blue-dark:#1648c9;--yellow:#ffc928;--green:#4ccb5f;--coral:#ff6b6b;--sky:#57c7ff;--ink:#182b43;--muted:#61718a;--line:#e5ebf3;--page:#f5f8fd;--white:#fff;--font:"Nunito","Arial Rounded MT Bold","Trebuchet MS",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--page);font-family:var(--font);font-size:16px;line-height:1.5}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button{touch-action:manipulation}button:disabled{cursor:default;opacity:.55}button,a{outline-offset:5px}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--blue)}button{color:inherit}button svg{pointer-events:none}svg.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.skip-link{position:fixed;top:-70px;left:20px;z-index:1000;background:white;padding:12px 20px}.skip-link:focus{top:10px}.topbar{height:92px;padding:0 4.2%;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px;color:inherit;text-decoration:none}.brand img{width:44px;height:50px;object-fit:contain}.brand-kicker{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:900;letter-spacing:1.75px;color:var(--blue)}.brand-dots{display:inline-flex;gap:4px}.brand-dots i{width:5px;height:5px;border-radius:50%;background:var(--coral)}.brand-dots i:nth-child(2){background:var(--yellow)}.brand-dots i:nth-child(3){background:var(--green)}.brand h1{font-size:25px;line-height:1.35;letter-spacing:-.7px;font-weight:900}.title-dot{color:var(--blue)}.top-tools{display:flex;align-items:center;gap:8px}.tool-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border-radius:12px;font-size:14px;font-weight:750;white-space:nowrap;min-height:43px}.tool-button:hover{background:#edf3ff;color:var(--blue)}.tool-button[aria-pressed=true]{color:var(--blue);background:#edf3ff}.square-button{width:44px;padding:10px;border:1px solid var(--line)}.language-button{font-family:inherit;font-size:14px}.tool-divider{height:23px;border-left:1px solid var(--line);margin:0 4px}main{max-width:1560px;margin:0 auto;padding:25px 4.2% 0}.activity-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.activity-title{display:flex;align-items:center;gap:15px}.game-number{width:49px;height:49px;border-radius:16px;display:grid;place-items:center;font-size:20px;font-weight:900;color:var(--blue);background:#e6eeff}.eyebrow{font-size:11px;font-weight:900;letter-spacing:1.75px;color:var(--muted);margin-bottom:2px}.activity-title h2{font-size:28px;font-weight:900;line-height:1.25;letter-spacing:-.65px}.activity-meta{display:flex;align-items:center;gap:13px;font-size:14px;color:var(--muted);font-weight:650}.activity-meta>span{display:inline-flex;align-items:center;gap:7px}.activity-meta .icon{width:18px;height:18px}.meta-separator{color:#a5b1c4}#exit-fullscreen{display:none}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 308px;gap:23px;align-items:stretch}.play-area{aspect-ratio:auto;min-height:560px;position:relative;border-radius:26px;overflow:hidden;background:#a1ddf7;border:1px solid #d8e8f0;box-shadow:0 6px 18px #253b5710;isolation:isolate;user-select:none}.stage-top{position:absolute;top:17px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;z-index:8}.stage-tag{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;background:#fffffff2;border:1px solid #ffffff70;border-radius:99px;font-size:12px;font-weight:850;box-shadow:0 2px 3px #182b4308}.stage-tag .icon{width:16px;height:16px;color:#158544}.stage-tool{background:#fffffff2;border:1px solid #ffffff70;border-radius:50%;width:35px;height:35px;display:grid;place-items:center}.stage-tool .icon{width:17px;height:17px}.stage-tool:hover{background:white;transform:rotate(-20deg)}.question-bubble{position:absolute;z-index:6;top:72px;left:50%;transform:translateX(-50%);width:max-content;max-width:88%;background:white;padding:14px 16px 14px 25px;display:flex;gap:15px;align-items:center;border-radius:20px;box-shadow:0 5px 0 #2548330c,0 8px 20px #1e665915}.question-bubble:after{content:"";position:absolute;bottom:-9px;left:calc(50% - 10px);width:19px;height:19px;transform:rotate(45deg);background:white;border-radius:0 0 5px 0;z-index:-1}.question-bubble p{font-size:clamp(21px,2.2vw,34px);line-height:1.2;letter-spacing:-.5px;font-weight:900;text-align:center}.hear-button{border:0;background:#f0f5ff;color:var(--blue);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.hear-button:hover{background:#dce8ff}.hear-button .icon{width:18px;height:18px}.stage-feedback{position:absolute;left:50%;bottom:13px;transform:translateX(-50%);border-radius:99px;background:white;box-shadow:0 3px 10px #31584812;padding:8px 20px;font-size:19px;font-weight:900;white-space:nowrap;max-width:91%;text-align:center;z-index:7}.stage-feedback.is-long{font-size:16px;white-space:normal}.stage-feedback.is-hidden{visibility:hidden}.movement-tools{position:absolute;left:16px;bottom:17px;display:flex;align-items:center;gap:6px;z-index:8}.movement-tools button{border:1px solid #ffffffc0;background:#fffffff2;border-radius:13px;display:grid;place-items:center;width:42px;height:42px}.movement-tools button:hover{background:var(--blue);color:white}.movement-tools>span{font-size:12px;font-weight:800;color:#334b38;display:none}.stage-hint{position:absolute;right:20px;bottom:23px;z-index:4;font-size:12px;font-weight:750;color:#385a42}.teacher-panel{padding:22px 22px 18px;border:1px solid var(--line);background:white;border-radius:24px;display:flex;flex-direction:column;box-shadow:0 6px 18px #253b5705}.panel-heading{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:900;letter-spacing:.7px;margin-bottom:14px}.panel-icon{display:grid;place-items:center;color:#af7c00;width:18px;height:18px}.panel-icon .icon{width:17px;height:17px}.teacher-panel h3{font-size:22px;line-height:1.2;font-weight:900;letter-spacing:-.4px;margin-bottom:10px}.teacher-instruction{font-size:16px;line-height:1.55;color:var(--muted);margin-bottom:18px}.control-caption{display:flex;justify-content:space-between;gap:8px;font-size:10px;font-weight:900;letter-spacing:1.35px;color:var(--muted);margin-bottom:9px}.keyboard-hint{letter-spacing:.5px;background:#f3f5f8;padding:1px 5px;border-radius:4px}.game-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.action-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#f5f8fd;border:1px solid #e8edf6;border-radius:14px;min-height:59px;font-size:14px;font-weight:850;padding:10px 6px;transition:background .18s,transform .18s,box-shadow .18s}.action-button:hover{background:#eaf0ff;transform:translateY(-2px)}.action-button .icon{width:22px;height:22px;color:var(--button-color,var(--blue))}.action-button[aria-pressed=true]{background:#e9f0ff;border-color:#adc4ff;color:var(--blue);box-shadow:inset 0 0 0 1px #adc4ff}.action-button.wide{grid-column:1/-1;flex-direction:row;min-height:44px}.action-button small{color:var(--muted);font-size:12px;font-weight:500}.extra-controls{margin-top:10px;display:grid;gap:8px}.primary-button{border:0;background:var(--blue);color:white;border-radius:12px;padding:12px 14px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;font-weight:800;font-size:14px}.primary-button:hover{background:var(--blue-dark)}.secondary-button{border:1px solid var(--line);background:white;border-radius:12px;min-height:43px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:800;padding:9px 10px}.secondary-button:hover{background:#f2f6ff;border-color:#bdcfff}.secondary-button .icon{width:18px;height:18px;color:var(--blue)}.panel-bottom{margin-top:auto;padding-top:16px}.try-saying{display:flex;align-items:flex-start;gap:10px;border-top:1px solid var(--line);padding-top:14px}.try-saying>.icon{width:17px;height:17px;margin-top:3px;color:var(--blue)}.small-label{font-size:10px;font-weight:900;letter-spacing:1.4px;color:var(--muted)}.try-saying p{font-size:14px;font-weight:750;line-height:1.65;margin-top:2px}.gentle-note{background:#eff9f0;border-radius:11px;display:flex;align-items:flex-start;gap:8px;padding:11px;margin-top:14px}.gentle-note .icon{color:#25843a;width:16px;height:16px;margin-top:2px}.gentle-note p{color:#3d6848;font-size:13px;line-height:1.5}.game-shelf{margin-top:26px}.shelf-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.shelf-heading h2{font-size:17px;font-weight:900;letter-spacing:-.2px}.shelf-heading>span{font-size:12px;color:var(--muted)}.game-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.game-card{padding:15px 13px;display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:16px;text-align:left;min-height:77px;position:relative;transition:transform .2s,border-color .2s,box-shadow .2s}.game-card:hover{transform:translateY(-3px);border-color:#b1c8ff;box-shadow:0 6px 15px #2035700a}.game-card[aria-pressed=true]{border:2px solid var(--blue);padding:14px 12px;background:#edf3ff}.game-card[aria-pressed=true]:after{content:"";position:absolute;width:7px;height:7px;background:var(--blue);border-radius:50%;right:8px;top:8px}.game-card-icon{width:37px;height:41px;border-radius:12px;background:var(--card-bg);color:var(--card-color);display:grid;place-items:center;flex-shrink:0}.game-card-icon .icon{width:22px;height:22px}.game-card-title{display:block;font-size:14px;font-weight:900;line-height:1.25}.game-card-subtitle{display:block;color:var(--muted);font-size:11px;line-height:1.3;margin-top:4px}footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 0 20px;font-size:10px;color:#7b8799}footer>span:first-child{font-weight:900;letter-spacing:1px}footer>span:first-child>span:last-child{font-weight:600;letter-spacing:0}.footer-dot{color:var(--blue);margin:0 9px}footer>span:last-child{font-weight:650;letter-spacing:.1px}.color-control{flex-direction:row;justify-content:flex-start;padding-left:15px;min-height:50px}.color-dot{width:20px;height:20px;border-radius:50%;background:var(--swatch);border:2px solid #182b4310}.number-controls{grid-template-columns:repeat(5,1fr)}.number-button{font-size:20px;min-height:48px;border-radius:11px}.play-area.breathing .stage-feedback{bottom:24px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:1001;max-width:min(90vw,520px);padding:13px 20px;background:#182b43;color:white;border-radius:13px;box-shadow:0 4px 25px #0002;font-size:14px;text-align:center}.noscript-note{position:fixed;bottom:0;left:0;right:0;padding:25px;background:#fff3ca;color:#263246;text-align:center;z-index:1000}dialog{width:min(640px,calc(100% - 30px));max-height:90dvh;border:0;border-radius:25px;padding:30px;color:var(--ink);box-shadow:0 25px 90px #10264335;overflow:auto}dialog::backdrop{background:#10263a75;backdrop-filter:blur(4px)}.guide-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.guide-head h2{font-size:27px;font-weight:900}.guide-intro{font-size:16px;color:var(--muted);margin-bottom:23px;line-height:1.7}.guide-steps{display:grid;gap:16px;margin-bottom:25px}.guide-step{display:flex;gap:13px;align-items:flex-start}.guide-step-number{border-radius:12px;width:33px;height:33px;display:grid;place-items:center;background:#e9f0ff;color:var(--blue);font-weight:900;flex-shrink:0}.guide-step h3{font-size:16px;margin-bottom:3px}.guide-step p{font-size:14px;color:var(--muted);line-height:1.7}.guide-note{padding:16px;background:#f1f8f2;border-radius:15px;font-size:14px;line-height:1.7;color:#355f40;margin-bottom:18px}.guide-shortcuts{border-top:1px solid var(--line);padding-top:16px;margin-bottom:22px;font-size:14px;color:var(--muted)}.guide-shortcuts strong{color:var(--ink)}.guide-source{font-size:12px;line-height:1.6;color:var(--muted);margin-bottom:22px}body.fullscreen{background:#f5f8fd}body.fullscreen .topbar,body.fullscreen .game-shelf,body.fullscreen footer,body.fullscreen .activity-meta{display:none}body.fullscreen #exit-fullscreen{display:flex}body.fullscreen main{max-width:none;padding:15px 22px}body.fullscreen .activity-heading{margin-bottom:14px}body.fullscreen .workspace{height:calc(100dvh - 100px);grid-template-columns:minmax(0,1fr) 285px}body.fullscreen .play-area{height:100%;aspect-ratio:auto;max-height:none;min-height:0}body.fullscreen .teacher-panel{overflow:auto}body.fullscreen .stage-question{font-size:34px}

@media(min-width:1450px){.workspace{grid-template-columns:minmax(0,1fr) 325px}.teacher-panel{padding:27px}.action-button{min-height:65px}.teacher-panel h3{font-size:24px}.teacher-instruction{font-size:16px}.stage-hint{display:block}.movement-tools>span{display:block}}
@media(max-width:1150px){.topbar{padding:0 3%}.brand h1{font-size:23px}main{padding:22px 3% 0}.workspace{gap:17px;grid-template-columns:minmax(0,1fr) 280px}.teacher-panel{padding:21px 18px 17px}.play-area{min-height:560px;aspect-ratio:auto}.stage-hint{display:none}.game-picker{gap:8px}.game-card{padding:13px 9px;gap:7px}.game-card[aria-pressed=true]{padding:12px 8px}.game-card-icon{width:30px;height:36px}.game-card-icon .icon{width:19px;height:19px}.game-card-title{font-size:14px}.game-card-subtitle{font-size:12px}.top-tools{gap:1px}.tool-button{font-size:13px;padding:10px}.question-bubble p{font-size:24px}.question-bubble{gap:10px;padding-left:18px}.teacher-instruction{margin-bottom:17px}.activity-meta{font-size:12px}}
@media(max-width:850px){.topbar{height:79px}.brand h1{font-size:21px}.brand-kicker{font-size:9px;letter-spacing:1.4px}.brand img{width:36px;height:43px}.brand{gap:9px}.top-tools>.tool-button:not(.language-button)>span:not([data-icon]){display:none}.top-tools .tool-button{width:39px;padding:8px}.top-tools .language-button{width:auto}.tool-divider{display:none}.workspace{grid-template-columns:minmax(0,1fr) 247px;gap:13px}.teacher-panel{padding:19px 15px}.panel-heading{font-size:9px;letter-spacing:1px;gap:6px}.teacher-panel h3{font-size:20px}.teacher-instruction{font-size:16px}.action-button{min-height:58px;font-size:14px}.play-area{min-height:490px;border-radius:22px}.question-bubble{top:70px;padding:13px 11px 13px 16px;gap:9px;max-width:92%}.question-bubble p{font-size:21px}.hear-button{width:30px;height:30px}.stage-top{left:12px;right:12px;top:14px}.stage-feedback{font-size:16px;padding:8px 14px;bottom:70px}.movement-tools{left:50%;transform:translateX(-50%);bottom:15px}.game-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.game-card{padding:12px 15px}.game-card[aria-pressed=true]{padding:11px 14px}.game-card-title{font-size:14px}.game-card-subtitle{font-size:11px}.game-card-icon{width:35px;height:39px}.stage-tag{font-size:10px}.activity-title h2{font-size:25px}.activity-meta{gap:8px;font-size:11px}.game-number{width:42px;height:42px;font-size:18px}.eyebrow{font-size:9px}.gentle-note{padding:9px;font-size:11px}.gentle-note p{font-size:11px}.try-saying p{font-size:13px}.small-label{font-size:9px}.panel-bottom{padding-top:15px}footer{font-size:9px}body.fullscreen .workspace{grid-template-columns:minmax(0,1fr) 247px}body.fullscreen main{padding:13px}}
@media(max-width:650px){.topbar{height:73px;padding:0 17px}.brand h1{font-size:18px;letter-spacing:-.4px}.brand-kicker{font-size:8px;letter-spacing:1px}.brand img{width:32px;height:37px}.brand-dots{display:none}.top-tools .tool-button{width:33px;min-height:36px;padding:6px}.top-tools .language-button{width:auto;font-size:12px;padding:6px}.top-tools .square-button{border:0}.top-tools .icon{width:18px;height:18px}main{padding:19px 16px 0}.activity-heading{margin-bottom:16px}.activity-title{gap:10px}.activity-title h2{font-size:23px}.activity-meta{display:none}.eyebrow{font-size:8px;letter-spacing:1.2px}.game-number{width:40px;height:40px;border-radius:12px;font-size:17px}.workspace{display:flex;flex-direction:column;gap:16px}.play-area{aspect-ratio:1.04;min-height:360px;max-height:none;order:0}.question-bubble{top:63px}.question-bubble p{font-size:23px}.stage-feedback{bottom:16px;font-size:16px;padding:8px 16px}.movement-tools{left:12px;bottom:16px;transform:none;gap:5px}.movement-tools button{width:35px;height:35px;border-radius:10px}.stage-top{top:12px}.stage-tag{font-size:11px}.teacher-panel{padding:20px;border-radius:21px}.panel-heading{margin-bottom:11px;font-size:10px}.teacher-panel h3{font-size:23px}.teacher-instruction{font-size:16px;margin-bottom:18px;max-width:500px}.game-controls{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.action-button{min-height:72px;padding:9px 3px;font-size:14px}.action-button.wide{grid-column:auto;flex-direction:column;min-height:72px}.action-button .icon{width:22px;height:22px}.extra-controls{grid-template-columns:1fr 1fr}.extra-controls>.primary-button:last-child:first-child,.extra-controls>.secondary-button:last-child:first-child{grid-column:1/-1}.panel-bottom{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-top:17px}.try-saying{border:0;padding:0}.try-saying p{font-size:13px}.gentle-note{margin:0;font-size:12px}.gentle-note p{font-size:12px}.control-caption{font-size:10px}.keyboard-hint{display:none}.game-shelf{margin-top:24px}.shelf-heading h2{font-size:17px}.shelf-heading>span{font-size:11px}.game-card{padding:12px 10px;gap:7px;min-height:83px}.game-card[aria-pressed=true]{padding:11px 9px}.game-card-title{font-size:14px}.game-card-subtitle{font-size:12px}.game-card-icon{width:28px;height:35px;border-radius:10px}.game-card-icon .icon{width:19px;height:19px}.game-picker{gap:8px}.game-controls.colors-controls{grid-template-columns:repeat(3,1fr)}.color-control{font-size:13px;min-height:46px;flex-direction:row;justify-content:center;padding:9px 5px}.game-controls.weather-controls,.game-controls.feelings-controls{grid-template-columns:repeat(4,1fr)}.number-controls{grid-template-columns:repeat(5,1fr)}.number-button{min-height:48px;font-size:20px}footer{padding:20px 0;flex-direction:column;gap:6px;font-size:9px;align-items:flex-start}.footer-dot{margin:0 6px}dialog{padding:23px}.guide-head h2{font-size:25px}.guide-intro{font-size:15px}.guide-step p{font-size:14px}body.fullscreen .workspace{height:auto;display:flex}body.fullscreen .play-area{height:60dvh;min-height:330px;flex-shrink:0}body.fullscreen .teacher-panel{overflow:visible}body.fullscreen main{padding:12px}body.fullscreen .activity-title h2{font-size:19px}body.fullscreen #exit-fullscreen{font-size:12px}body.fullscreen .activity-title .eyebrow{display:none}body.fullscreen .panel-bottom{display:none}}
@media(max-width:385px){.brand img{display:none}.brand h1{font-size:17px}.topbar{padding:0 12px}main{padding-left:12px;padding-right:12px}.play-area{min-height:342px}.question-bubble p{font-size:20px}.game-card{flex-direction:column;text-align:center;gap:6px}.game-card-icon{width:34px;height:34px}.game-card-subtitle{font-size:12px}.stage-feedback{bottom:59px}.movement-tools{left:50%;transform:translateX(-50%);bottom:11px}.panel-bottom{grid-template-columns:1fr}.teacher-panel{padding:17px}.action-button{font-size:11px}.stage-tag{font-size:10px}.game-card-title{font-size:14px}.activity-title h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep classroom text legible when the teacher uses Japanese guidance. */
.teacher-panel[lang="ja"] .game-controls{grid-template-columns:1fr 1fr}.teacher-panel[lang="ja"] .action-button.wide{grid-column:1/-1}.teacher-panel[lang="ja"] .action-button{font-size:14px;line-height:1.45}.teacher-panel[lang="ja"] .number-controls{grid-template-columns:repeat(5,1fr)}
@media(max-width:650px){.teacher-panel[lang="ja"] .game-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-panel[lang="ja"] .number-controls{grid-template-columns:repeat(5,1fr)}.teacher-panel[lang="ja"] .action-button.wide{min-height:48px;flex-direction:row}.teacher-panel[lang="ja"] .extra-controls{grid-template-columns:1fr}}
