/* F1–F4 use the R1 classroom frame while retaining their phonics activities. */
html body.kinder-r1-shell{margin:0;background:#fff;color:#153f51}
html body.kinder-r1-shell>header .brand{display:none!important}
.kinder-r1-shell .bk-return-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.kinder-r1-shell .bk-return-nav a,.kinder-r1-shell .bk-return-nav button{display:inline-flex;align-items:center;font:600 11px/1.3 Arial,sans-serif;border:1px solid #d4e2e8;border-radius:8px;padding:8px 10px;min-height:34px;text-decoration:none;color:#22566b;background:white;box-sizing:border-box}
html body.kinder-r1-shell>header{display:flex;justify-content:space-between;gap:12px;padding:6px 14px;min-height:50px;box-sizing:border-box}
html body.kinder-r1-shell #app.lesson-layout{display:flex;flex-direction:column;max-width:none;width:100%;height:calc(100dvh - var(--lesson-header,112px) - var(--lesson-footer,74px));min-height:480px;margin:0;padding:10px 56px 10px 28px;box-sizing:border-box;overflow:auto;gap:0}
html body.kinder-r1-shell #app .lesson-journey{display:flex;justify-content:center;align-items:stretch;gap:6px;flex:0 0 auto;max-width:none;margin:0 auto 10px;padding:0;background:none;border:0}
html body.kinder-r1-shell #app .lesson-journey button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:140px;min-height:78px;padding:12px 8px;border:0;border-radius:18px;background:transparent;color:#64808d;font-size:13px;box-shadow:none}
.kinder-r1-shell .lesson-journey button em{font-style:normal;font-size:11px}
html body.kinder-r1-shell #app .lesson-journey button.active{background:#dceff0;color:#184f60;font-weight:700}
html body.kinder-r1-shell #app .lesson-journey small{font:11px/1 Arial,sans-serif;border:1px solid #d5e6ec;border-radius:5px;background:white;padding:4px 10px}
html body.kinder-r1-shell #app .kc-body{flex:1;min-height:0;width:100%;max-width:1300px;margin:auto;display:flex;align-items:center;justify-content:center;padding:10px 0;box-sizing:border-box}
html body.kinder-r1-shell #app .kc-scene:not(.weekly-inline){width:100%;max-width:1180px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:56px;align-items:center;min-height:0;padding:0}
html body.kinder-r1-shell #app .kc-scene>.kc-copy{min-height:0;height:auto;padding:0;align-self:center;justify-content:center}
html body.kinder-r1-shell #app .kc-copy h1{font-size:clamp(28px,3vw,40px);line-height:1.35}
html body.kinder-r1-shell #app .kc-greeting-art{width:100%;height:auto;min-height:0}
html body.kinder-r1-shell #app .weekday-greeting{max-width:490px}
html body.kinder-r1-shell #app .weekly-inline{min-height:440px;height:100%;max-height:100%;width:100%}
html body.kinder-r1-shell #app .weekly-inline iframe{min-height:440px}
html body.kinder-r1-shell #dock{display:flex;position:fixed;bottom:0;left:0;right:0;width:100%;min-height:64px;padding:10px 20px!important;box-sizing:border-box;background:#fff;z-index:20;border-top:1px solid #d6e3eb}
html body.kinder-r1-shell #dock .teacher-controls{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;width:100%}
.kinder-r1-shell #dock .control-group{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.kinder-r1-shell #dock .control-group:empty{display:none}
.kinder-r1-shell #dock button{min-height:42px;border-radius:11px;font:600 13px/1.3 Arial,sans-serif;padding:10px 12px}
.kinder-r1-shell #dock .control-group>span{font-size:12px;color:#658392}
html body.kinder-r1-shell #dock :is(.kc-sound-controls,.kc-help,.kc-controls,.age-retell-controls){display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;min-height:0;padding:0;margin:0}
.kinder-r1-shell .r1-book-parts{display:flex;justify-content:center;gap:8px;margin:0 0 10px;flex-wrap:wrap}
.kinder-r1-shell .r1-book-parts button{font-size:12px;min-height:34px;padding:7px 14px;border-radius:9px;border:1px solid #d4e5e9;background:white;color:#416678}
.kinder-r1-shell .r1-book-parts button.active{background:#16767c;color:white;border-color:#16767c}
html body.kinder-r1-shell #app .kc-story-art{max-height:calc(100dvh - 360px);min-height:180px;width:100%;object-fit:contain}
.kinder-r1-shell #app .age-story-nav{display:none!important}
html body.kinder-r1-shell #app .kc-story-picture{min-width:0;min-height:0}
html body.kinder-r1-shell .kc-sound-content{margin:auto}
html body.kinder-r1-shell .kc-sound-page{width:100%;height:auto;min-height:0}
html body.kinder-r1-shell #app .kc-retell-page{width:100%;padding:0;min-height:0}
.kinder-r1-shell #app .kc-retell-grid img{max-height:calc(100dvh - 350px);object-fit:contain}
html body.kinder-r1-shell #app:not(.lesson-layout){padding-bottom:100px}
@media(max-width:1000px){html body.kinder-r1-shell>header{height:auto!important;flex-wrap:wrap!important}html body.kinder-r1-shell #app.lesson-layout{height:auto!important;min-height:calc(100dvh - 230px);padding:10px 22px calc(var(--lesson-footer,100px) + 20px)!important;overflow:visible}html body.kinder-r1-shell #app .lesson-journey{flex-wrap:wrap;width:100%}html body.kinder-r1-shell #app .lesson-journey button{width:calc(33.33% - 8px);min-height:64px}html body.kinder-r1-shell #app .kc-scene:not(.weekly-inline){gap:24px}html body.kinder-r1-shell #app .kc-body{min-height:400px}html body.kinder-r1-shell #dock{padding:8px 12px!important}html body.kinder-r1-shell #app .weekly-inline{height:650px!important;max-height:none}}
@media(max-width:700px){html body.kinder-r1-shell #app .kc-scene:not(.weekly-inline){grid-template-columns:minmax(0,1fr);gap:24px}html body.kinder-r1-shell #app .kc-scene>.kc-copy{min-height:0!important}html body.kinder-r1-shell #top{flex-wrap:wrap}.kinder-r1-shell #dock button{font-size:11px;min-height:36px;padding:8px}.kinder-r1-shell #dock .teacher-controls{gap:6px}html body.kinder-r1-shell #app .kc-story-art{max-height:420px}.kinder-r1-shell .lesson-journey button em{display:block}.kinder-r1-shell #app .kc-retell-grid img{max-height:270px}}

@media(min-width:1001px){html body.kinder-r1-shell #app .lesson-journey{width:min(1100px,100%);gap:20px}html body.kinder-r1-shell #app .lesson-journey button{flex:1;width:auto;min-height:78px}.kinder-r1-shell .bk-return-nav a,.kinder-r1-shell .bk-return-nav button{font-size:12px}html body.kinder-r1-shell #app .kc-scene:not(.weekly-inline){max-width:1130px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}}
.kinder-r1-shell #dock .r1-stage-controls{border-left:1px solid #ccdee5;border-right:1px solid #ccdee5;padding:0 10px}
.kinder-r1-shell #dock button{font-size:14px}
@media(max-width:700px){.kinder-r1-shell #dock button{font-size:11px}.kinder-r1-shell #dock .r1-stage-controls{padding:0 6px}}

/* Each phonics activity is a first-level stage, using the shared classroom frame. */
html body.kinder-r1-shell #app .lesson-journey{width:min(1300px,100%);gap:8px}
html body.kinder-r1-shell #app .lesson-journey button{min-width:0;flex:1;white-space:normal;padding:12px 6px}
.kinder-r1-shell .kc-silent-focus small{display:block;font-size:16px;line-height:1.4}
.kinder-r1-shell .lesson-journey button em{display:block;word-break:keep-all}
html body.kinder-r1-shell #app div.kc-letter{font-size:clamp(32px,6vw,90px);max-width:100%;overflow-wrap:anywhere;line-height:1.2}
@media(max-width:1000px){html body.kinder-r1-shell #app .lesson-journey button{flex:0 0 calc(25% - 8px);width:calc(25% - 8px)}}
@media(max-width:700px){html body.kinder-r1-shell #app .lesson-journey button{font-size:11px;padding:8px 3px}.kinder-r1-shell .lesson-journey button em{font-size:10px}html body.kinder-r1-shell #app div.kc-letter{font-size:clamp(28px,8vw,44px)}}

/* Consistent bilingual text rhythm and larger teaching pictures. */
html body.kinder-r1-shell #app .kc-copy:has(.age-question-controls){min-height:0!important;align-self:center!important;justify-content:center!important;gap:0!important}
html body.kinder-r1-shell #app .age-question-controls{margin:24px 0 0!important;padding:0!important;position:static!important}
html body.kinder-r1-shell #app .kc-copy h1{margin:16px 0 8px!important;line-height:1.28!important;letter-spacing:-.4px}
html body.kinder-r1-shell #app .kc-ko{font-size:18px;line-height:1.55;margin:6px 0 16px;color:#587787;word-break:keep-all}
html body.kinder-r1-shell #app .kc-copy .kc-stem{margin:18px 0 4px}
html body.kinder-r1-shell #app .kc-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
html body.kinder-r1-shell #app .kc-visual>.kc-object{width:100%;height:clamp(260px,43dvh,460px);max-width:520px;max-height:none;object-fit:contain}
html body.kinder-r1-shell #app .kc-sound-drum{justify-content:center;gap:0;min-height:0;padding:14px 0}
html body.kinder-r1-shell #app .kc-drum-instruction{display:block;text-align:center;margin:12px 0 18px}
html body.kinder-r1-shell #app .kc-drum-instruction h1{font-size:clamp(28px,3vw,40px);line-height:1.3;margin:0 0 8px;letter-spacing:-.4px}
html body.kinder-r1-shell #app .kc-drum-instruction .kc-ko{margin:0}
html body.kinder-r1-shell #app .kc-sound-drum>.kc-drum-stage{flex:0 0 auto!important;min-height:320px!important;height:340px;gap:55px}
html body.kinder-r1-shell #app .kc-drum-arena{width:380px;height:320px!important}
html body.kinder-r1-shell #app .kc-drum{left:30px;width:310px;height:235px}
html body.kinder-r1-shell #app .kc-drum-reveal{left:70px;width:240px;height:160px!important;top:-8px!important}
html body.kinder-r1-shell #app .kc-retell-page{justify-content:center;gap:16px}
html body.kinder-r1-shell #app .kc-retell-page .stage-head{margin:8px 0 0}
html body.kinder-r1-shell #app .kc-retell-page .stage-head h1{font-size:clamp(28px,3vw,40px);line-height:1.3;margin:12px 0 6px}
html body.kinder-r1-shell #app .kc-retell-page>.kc-retell-grid{width:100%;max-width:1250px;flex:0 0 auto;max-height:none;margin:0 auto;gap:20px}
html body.kinder-r1-shell #app .kc-retell-grid article{padding:0;justify-content:flex-start}
html body.kinder-r1-shell #app .kc-retell-grid img{flex:0 0 auto;height:clamp(250px,39dvh,430px);max-height:none;min-height:0;width:100%;object-fit:contain}
html body.kinder-r1-shell #app .kc-retell-grid p{margin:8px 0 0}
html body.kinder-r1-shell #app .kc-retell-grid p.kc-ko{margin:3px 0 0;font-size:16px}
.kc-control-ko{display:block;font-size:10px;font-weight:400;line-height:1.3;margin-top:3px}
html body.kinder-r1-shell #app .kc-story-art{max-height:calc(100dvh - 330px)}
@media(max-width:1000px){html body.kinder-r1-shell #app .kc-sound-drum>.kc-drum-stage{gap:10px}html body.kinder-r1-shell #app .kc-retell-grid img{height:300px}}
@media(max-width:700px){html body.kinder-r1-shell #app .kc-drum-arena{width:230px;height:280px!important}html body.kinder-r1-shell #app .kc-drum{width:205px;height:160px;left:10px}html body.kinder-r1-shell #app .kc-drum-reveal{left:30px;width:170px;height:145px!important;top:5px!important}html body.kinder-r1-shell #app .kc-sound-drum>.kc-drum-stage{height:300px;min-height:300px!important;gap:0}html body.kinder-r1-shell #app .kc-retell-page>.kc-retell-grid{grid-template-columns:1fr!important;gap:24px}html body.kinder-r1-shell #app .kc-retell-grid img{height:280px}html body.kinder-r1-shell #app .kc-visual>.kc-object{height:290px}html body.kinder-r1-shell #app .kc-ko{font-size:16px}}

html body.kinder-r1-shell #app .kc-retell-page>.kc-retell-grid{max-width:1250px!important;flex:0 0 auto!important;max-height:none!important;gap:24px!important}
html body.kinder-r1-shell #app .kc-retell-grid article{padding:0!important}
html body.kinder-r1-shell #app .kc-retell-grid img{height:clamp(250px,39dvh,430px)!important;flex:0 0 auto!important;max-height:none!important}

/* Invite a drum tap with a slow blink; the existing strike animation takes over on click. */
@keyframes kinder-drumstick-blink{0%,100%{opacity:1}50%{opacity:.3}}
html body.kinder-r1-shell #app .kc-drum:not(.is-struck) .kc-drum-stick{animation:kinder-drumstick-blink 1.6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){html body.kinder-r1-shell #app .kc-drum:not(.is-struck) .kc-drum-stick{animation:none;opacity:1}}
html body.kinder-r1-shell #app .kc-story-choices .kc-rear b{font-size:clamp(22px,2.2vw,30px);line-height:1.3}
