@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:Manrope,system-ui,sans-serif;color:#273b38;background:#faf9f5}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible{outline:4px solid #f2b75b;outline-offset:4px}header{height:96px;border-bottom:1px solid #e6e8df;display:flex;align-items:center;justify-content:space-between;padding:0 5vw}.brand{display:flex;align-items:center;gap:12px;border:0;background:none;font-size:25px;font-weight:800}.logo{display:grid;place-items:center;border-radius:15px;background:#427968;color:white;width:44px;height:44px}.tag{font-size:12px;font-weight:500;color:#7d8981;margin-left:16px}.outline{border:1px solid #d8ded4;background:#fffdf8;padding:11px 18px;border-radius:12px;font-size:13px;font-weight:700}main{max-width:1250px;margin:auto;padding:25px 40px 60px;min-height:calc(100vh - 170px)}nav{font-size:12px;display:flex;gap:12px;color:#7e8e80;min-height:45px;align-items:start}nav button{border:0;background:none;padding:0}nav button:hover{text-decoration:underline}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#65836d}h1{font-size:clamp(36px,5vw,64px);line-height:1.13;letter-spacing:-2.5px;margin:28px 0 20px}h1 span{color:#df9675}.lead{font-size:17px;color:#79837c;margin-bottom:38px}.section-card{display:flex;align-items:center;text-align:left;gap:28px;width:100%;max-width:800px;background:#edf1e7;border:1px solid #e1e6d8;border-radius:24px;padding:32px;transition:transform .2s}.section-card:hover,.block-card:not(.muted):hover{transform:translateY(-4px)}.card-icon{display:grid;place-items:center;flex-shrink:0;width:105px;height:110px;border-radius:22px;background:#d8e3ce;font-size:38px;font-weight:800;color:#42705c;transform:rotate(-5deg)}small{display:block;font-size:10px;letter-spacing:2px;color:#7e9275}.section-card strong{display:block;font-size:27px;margin:10px 0}.section-card em{font-style:normal;color:#788673;font-size:13px}.section-card b{margin-left:auto;font-size:32px;color:#42705c}.block-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:900px}.block-card{text-align:left;padding:32px;border:1px solid #dfe5d9;background:#edf1e7;border-radius:24px;transition:transform .2s}.letters{display:block;color:#527e66;font-size:40px;font-weight:800;letter-spacing:10px}.block-card h2{font-size:27px;margin-bottom:8px}.block-card p{font-size:14px;color:#778477;margin-bottom:35px}.block-card strong{font-size:14px}.muted{background:#f0eeea;border-color:#e6e3dd}.muted .letters{color:#aca79f}.pill{padding:7px 14px;border-radius:20px;background:#e5e2db;font-size:12px}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.game-heading h2{font-size:32px;letter-spacing:-1px;margin:8px 0}.game-heading p:not(.eyebrow){color:#7d887c;font-size:14px;margin-top:8px}.playfield{border-radius:24px;overflow:hidden;border:1px solid #dce4d3;background:#f0f4e8;box-shadow:0 8px 35px #3d584209;margin-top:16px}.collection{min-height:150px;display:grid;grid-template-columns:repeat(8,1fr);align-items:center;gap:10px;padding:16px;background:#fffdf6;border-bottom:1px dashed #dce2d2}.slot{height:116px;border:1px dashed #dddccc;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#faf9f0;position:relative}.slot:empty:after{content:'✦';color:#dfdfcf;font-size:20px}.slot img{width:85%;height:95px;object-fit:contain;animation:arrive .65s cubic-bezier(.22,1,.36,1) both}.scene{height:350px;position:relative;overflow:hidden;background:linear-gradient(#dfefec80,#f2f7e3aa),url('assets/image9.jpeg') center 70%/cover}.masha-wrap{position:absolute;height:95%;width:310px;bottom:0;left:50%;transform:translateX(-50%)}.masha{width:100%;height:100%;object-fit:contain}.bear{position:absolute;height:245px;bottom:4px;right:7%;object-fit:contain}.speech{position:absolute;left:6%;top:30px;background:#fffefa;padding:16px 22px;border-radius:18px 18px 18px 3px;max-width:230px;font-size:15px;font-weight:700;box-shadow:0 4px 20px #597a4b12}#net{position:absolute;left:0;top:36%;width:47%;height:52%;border:3px dashed #fff9;border-radius:50%;background:#fff1;transition:background .2s}#net:hover{background:#fff4}#net span{position:absolute;bottom:-22px;left:-15px;white-space:nowrap;background:#477a5e;color:white;border-radius:25px;padding:10px 15px;font-size:12px;box-shadow:0 4px 10px #334c3522}#net:disabled{cursor:default;border-color:transparent;background:transparent}#net:disabled span{background:#6e8e62}.game-bottom{display:flex;justify-content:space-between;align-items:center;padding:20px 4px;font-size:12px;color:#83907e}.dots span{display:block;width:24px;height:7px;border-radius:5px;background:#527e66}.teacher{font-size:12px;color:#8a9586;text-align:center}.fly{position:fixed;z-index:9;pointer-events:none;object-fit:contain}.pulse{animation:pulse .35s}footer{border-top:1px solid #e6e8df;padding:22px 5vw;font-size:13px;color:#6f806f;font-weight:700;display:flex;justify-content:space-between}footer span{font-weight:400;font-size:12px}[hidden]{display:none!important}@keyframes arrive{from{opacity:0;transform:translateY(65px) scale(.4)}to{opacity:1;transform:none}}@keyframes pulse{50%{transform:translateX(-50%) rotate(-4deg)}}@media(max-width:750px){header{height:78px;padding:0 18px}.brand{font-size:20px}.tag{display:none}main{padding:18px 16px 30px}h1{letter-spacing:-1px}.section-card{padding:22px;gap:18px}.card-icon{width:65px;height:85px;font-size:29px}.section-card strong{font-size:21px}.section-card em{font-size:12px}.block-grid{grid-template-columns:1fr}.game-heading h2{font-size:24px}.game-heading{align-items:start}.game-heading .outline{font-size:11px;padding:10px;white-space:nowrap}.collection{grid-template-columns:repeat(4,1fr);gap:7px;padding:10px;min-height:180px}.slot{height:78px}.slot img{height:66px}.scene{height:310px}.masha-wrap{width:240px;left:48%}.bear{height:155px;right:0}.speech{top:15px;left:10px;max-width:145px;padding:10px;font-size:12px}.teacher{line-height:1.6}footer span{max-width:180px;text-align:right}.game-bottom{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.carousel-nav{display:flex;gap:16px;align-items:center}.carousel-nav button{font-size:20px;padding:4px 15px}.carousel-nav button:disabled{opacity:.3;cursor:default}.letters-board{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;min-height:340px;border-radius:24px;background:white;border:1px solid #e1e6d8;margin-top:20px;padding:30px 16px}.letter-tile{border:2px solid transparent;background:#fff;border-radius:15px;padding:16px 8px;min-width:65px}.letter-tile:hover{background:#f6f7ed}.letter-tile img{width:65px;height:105px;object-fit:contain;transition:transform .5s}.letter-tile.correct{background:#f2f8ed;border-color:#cbdcc2;opacity:1}.feedback{text-align:center;min-height:28px;color:#648060;font-size:15px;margin:22px}.sound-board{width:100%;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;background:white;border:1px solid #dfe5d9;border-radius:24px;padding:40px 20px;min-height:340px;margin-top:20px}.sound-board img{max-width:45%;height:240px;object-fit:contain}.sound-board span{width:100%;margin-top:28px;color:#477a5e;font-size:15px;font-weight:700}.sound-board.speaking{box-shadow:0 0 0 5px #d7e6cc}@media(max-width:750px){.letters-board{gap:6px;padding:20px 8px}.letter-tile{min-width:42px;padding:10px 3px}.letter-tile img{width:42px;height:72px}.sound-board img{height:150px}.game-bottom{gap:8px}.carousel-nav{gap:8px}}

.sound-board img:only-of-type{max-width:95%;height:260px}.sound-board img:nth-last-of-type(3),.sound-board img:nth-last-of-type(3)~img{max-width:31%;height:230px}@media(max-width:750px){.sound-board img:only-of-type{height:190px}.sound-board img:nth-last-of-type(3),.sound-board img:nth-last-of-type(3)~img{height:150px}}

.empty-slide{min-height:440px;background:white;border:1px solid #e5e7df;border-radius:24px}.jump{display:flex;align-items:center;gap:6px}.jump input{width:64px;border:1px solid #d8ded4;padding:7px;border-radius:8px;font:inherit}.a-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.a-tabs .selected{background:#e6efde}.a-intro{display:block;width:100%;max-height:220px;object-fit:contain}#a-game{background:white;padding:20px;border:1px solid #e1e6d8;border-radius:24px;margin-top:18px}#a-game h3{font-size:17px;text-align:center;font-weight:600}#a-choices{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.underlined{border-bottom:4px solid #588867;background:#eff5e8}.a-fonts{width:100%;height:200px;object-fit:contain}.trace-board{position:relative;margin:20px auto;max-width:1000px}.trace-board img{width:100%;display:block}.trace-board canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}@media(max-width:750px){.game-bottom{flex-wrap:wrap}.empty-slide{min-height:340px}#a-game{padding:12px}.a-tabs .outline{padding:9px;font-size:11px}.a-intro{max-height:160px}}

.screen-controls{display:flex;align-items:center;gap:10px}.icon-control{font-size:19px;min-width:46px;padding:8px 12px}.speaking{box-shadow:0 0 0 3px #bfd9ae!important}.in-game header{height:64px}.in-game main{padding-top:12px;padding-bottom:12px;max-width:1450px}.in-game nav{min-height:28px}.in-game footer{display:none}.in-game .game-heading{min-height:44px}.in-game .game-heading h2,.in-game .game-heading p:not(.eyebrow),.in-game .speech,.in-game #net span,.in-game .teacher,.in-game .feedback,.in-game .sound-board span,.in-game #a-game h3{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}.scene{height:clamp(430px,calc(100svh - 300px),720px)}.masha-wrap{height:64%;width:auto;aspect-ratio:1392/1364;left:43%;bottom:2%}.masha{width:100%;height:100%;object-fit:contain}.bear{height:90%;width:auto;max-width:45%;right:9%;bottom:2%;object-fit:contain}#net{left:0;top:36%;width:47%;height:52%;border:0;background:transparent}#net:not(:disabled):hover{outline:3px dashed #ffffffa0;background:#fff1}#net:focus-visible{outline:4px solid #f2b75b}.game-bottom{padding:12px 4px}.in-game .playfield{margin-top:4px}.in-game .collection{min-height:130px;padding:10px 16px}.in-game .slot{height:105px}.in-game .slot img{height:90px}.in-game .sound-board{min-height:calc(100svh - 260px)}.in-game .sound-board img{height:clamp(200px,40svh,420px)}.in-game .letters-board{min-height:calc(100svh - 260px)}
@media(max-width:750px){.in-game header{padding:0 12px}.screen-controls{gap:5px}.icon-control{padding:7px;min-width:38px;font-size:17px}.in-game #fullscreen{font-size:0;width:38px;padding:8px}.in-game #fullscreen:after{content:'⛶';font-size:20px}.scene{height:clamp(350px,calc(100svh - 310px),600px)}.masha-wrap{height:63%;left:35%;width:auto}.bear{height:89%;right:1%;max-width:49%;bottom:2%}.in-game .collection{min-height:180px;padding:8px}.in-game .slot{height:76px}.in-game .slot img{height:65px}.in-game .game-heading .eyebrow{font-size:9px;letter-spacing:1px}.in-game .game-heading{gap:8px}.in-game .jump .outline{padding:6px}.in-game .game-bottom{font-size:10px;gap:5px}.in-game .jump{gap:3px}.in-game .jump input{width:53px}.in-game main{padding-left:10px;padding-right:10px}.in-game .sound-board img:only-of-type{height:220px}}

.game-toolbar{display:flex;align-items:center;margin:0 0 4px}.game-toolbar .outline{font-size:12px;padding:7px 12px}.scene{height:clamp(410px,calc(100svh - 330px),690px)}
/* The activity owns the viewport; controls stay compact. */
body.in-game{height:100svh;overflow:hidden}.in-game header{height:52px;padding:0 16px}.in-game .brand{font-size:19px;gap:9px}.in-game .logo{width:32px;height:32px;border-radius:10px;font-size:22px}.in-game .tag{display:none}.in-game main{max-width:none;width:100%;height:calc(100svh - 52px);min-height:0;margin:0;padding:6px 12px 4px}.in-game nav{display:none}.in-game #game{height:100%;display:grid;grid-template-rows:34px minmax(0,1fr) 42px;gap:5px}.in-game .game-toolbar{margin:0;display:flex;justify-content:space-between;align-items:center}.in-game .game-heading{display:none}.in-game .game-toolbar .outline{padding:5px 12px;font-size:12px}.in-game #net-game,.in-game #letters-game,.in-game #sound-game,.in-game #empty-game{height:100%;min-height:0}.in-game .playfield{height:100%;margin:0;border-radius:20px;display:grid;grid-template-rows:24% minmax(0,1fr)}.in-game .collection{height:100%;min-height:0;padding:8px 14px;grid-template-rows:minmax(0,1fr)}.in-game .slot{height:100%;min-height:0}.in-game .slot img{height:90%;max-height:100%;width:88%}.in-game .scene{height:100%;min-height:0}.in-game .masha-wrap{height:64%;left:43%;bottom:2%;width:auto}.in-game .bear{height:90%;max-width:45%;right:9%;bottom:2%}.in-game .game-bottom{padding:0 3px;margin:0;min-height:0;font-size:11px}.in-game .carousel-nav .outline{padding:1px 17px;font-size:24px;line-height:1.2}.in-game .jump .outline{padding:5px 10px}.in-game .jump input{padding:4px}.in-game .empty-slide{height:100%;min-height:0}.in-game .letters-board,.in-game .sound-board{height:100%;min-height:0;margin:0;padding:20px}.in-game .letters-board{align-content:center}.in-game .letter-tile img{width:clamp(48px,5vw,85px);height:clamp(85px,18svh,140px)}.in-game .sound-board img{height:75%;max-height:75%;max-width:46%;object-fit:contain}.in-game .sound-board img:only-of-type{height:85%;max-height:85%;max-width:95%}.in-game .sound-board img:nth-last-of-type(3),.in-game .sound-board img:nth-last-of-type(3)~img{max-width:31%;height:80%;max-height:80%}.in-game #a-game{height:100%;min-height:0;overflow:auto;margin:0;padding:10px 18px}.in-game .a-tabs{margin:0 0 8px}.in-game .a-intro{max-height:28svh}.in-game .a-fonts{height:45svh}.in-game .trace-board{max-width:min(100%,calc((100svh - 230px)*2.17));margin:8px auto}.in-game #a-choices .letter-tile img{height:clamp(60px,12svh,105px)}
@media(max-width:750px){.in-game main{padding:4px 6px}.in-game header{padding:0 10px;height:48px}.in-game main{height:calc(100svh - 48px)}.in-game .brand{font-size:17px}.in-game #game{grid-template-rows:31px minmax(0,1fr) 40px;gap:4px}.in-game .playfield{grid-template-rows:29% minmax(0,1fr);border-radius:15px}.in-game .collection{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));padding:6px;gap:5px}.in-game .masha-wrap{height:64%;left:35%}.in-game .bear{height:90%;max-width:49%;right:0}.in-game .game-bottom{flex-wrap:nowrap;font-size:10px;gap:4px}.in-game .game-bottom #counter{max-width:60px}.in-game .carousel-nav{gap:5px}.in-game .carousel-nav .outline{padding:1px 11px}.in-game .jump{gap:3px}.in-game #slide-label{display:none}.in-game .letters-board{padding:8px;gap:3px}.in-game .letter-tile{padding:7px 3px}.in-game .letter-tile img{width:42px;height:75px}.in-game .sound-board{padding:8px}.in-game .sound-board img:only-of-type{height:85%}.in-game .a-tabs .outline{font-size:10px}.in-game #a-game{padding:8px}}
@media(max-height:500px) and (min-width:600px){.in-game header{height:42px}.in-game main{height:calc(100svh - 42px)}.in-game .playfield{grid-template-rows:27% minmax(0,1fr)}.in-game .collection{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}.in-game .masha-wrap{left:43%}.in-game .bear{right:12%}.in-game .slot:empty:after{font-size:12px}}

.carousel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.carousel-heading h1{font-size:36px;margin:10px 0 24px;letter-spacing:-1px}.carousel-stage{display:flex;align-items:center;gap:12px}.slide-rail{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;position:relative;padding:12px max(16px,calc((100% - 740px)/2));flex:1;min-width:0}.slide-rail::-webkit-scrollbar{display:none}.slide-preview{flex:0 0 min(740px,75vw);height:clamp(280px,49svh,520px);scroll-snap-align:center;border:1px solid #dce4d4;border-radius:24px;background:white;overflow:hidden;padding:0;position:relative;box-shadow:0 6px 24px #405b4010}.slide-preview:hover{border-color:#7b9e6e}.preview-number{position:absolute;top:14px;left:18px;color:#85937f;font-size:12px;z-index:2}.preview-content{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:40px}.preview-content img{width:100%;height:90%;object-fit:contain}.preview-masha{background:linear-gradient(#e0f0e980,#e5efc880),url('assets/image9.jpeg') center/cover}.preview-masha img{height:90%}.preview-letters{font-family:Georgia,serif;font-size:80px;letter-spacing:25px}.preview-play{position:absolute;bottom:20px;right:20px;display:grid;place-items:center;width:48px;height:48px;background:#427968;color:white;border-radius:50%;font-size:18px}.rail-arrow{font-size:24px;padding:8px 14px}.rail-arrow:disabled{opacity:.3;cursor:default}.rail-footer{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#7d8b75;margin:14px 54px 24px}.slide-numbers{display:flex;gap:7px;flex-wrap:wrap;padding:0 52px;max-height:138px;overflow:auto}.slide-numbers button{background:#fff;border:1px solid #e2e6dc;border-radius:8px;width:38px;height:34px;font-size:11px;color:#89917f}.slide-numbers .ready{background:#edf4e6;color:#426e46;border-color:#c7d9bc;font-weight:800}.slide-numbers .active{background:#427968;color:white;border-color:#427968}.slide-numbers button:hover{border-color:#427968}@media(max-width:750px){.carousel-heading h1{font-size:26px}.carousel-stage{gap:5px}.rail-arrow{padding:6px;font-size:19px}.slide-preview{flex-basis:72vw;height:43svh}.slide-rail{gap:10px;padding:8px 12px}.preview-content{padding:30px 12px}.preview-letters{font-size:50px;letter-spacing:12px}.rail-footer{margin:12px 0 18px;font-size:10px}.slide-numbers{padding:0;max-height:145px}.slide-numbers button{width:34px;height:32px}.preview-number{font-size:10px;left:12px}}
.in-game header{height:32px;min-height:0;padding:2px 10px;justify-content:flex-end;border:0}.in-game header .brand{display:none}.in-game .screen-controls{gap:6px}.in-game .screen-controls .outline{height:27px;min-width:30px;padding:2px 8px;font-size:13px;line-height:20px;border-radius:8px}.in-game #fullscreen{font-size:11px;width:auto}.in-game main{height:calc(100svh - 32px)}
@media(max-width:750px){.in-game header{height:32px}.in-game main{height:calc(100svh - 32px)}.in-game #fullscreen{font-size:0;width:30px}.in-game #fullscreen:after{font-size:17px}}

/* No large masthead, in any section. */
header{height:32px!important;padding:2px 10px!important;border:0!important;justify-content:flex-end!important}header .brand{display:none!important}.screen-controls{gap:6px}.screen-controls .outline{height:27px;min-width:30px;padding:2px 8px;font-size:13px;line-height:20px;border-radius:8px}#fullscreen{font-size:11px}.full-slide-preview{padding:0;background:white}.full-slide-preview img{width:100%;height:100%;object-fit:contain}.preview-play{width:32px;height:32px;font-size:12px;bottom:12px;right:12px;opacity:.85}
.in-game .sound-board.word-scene{display:grid;grid-template-columns:23fr 31fr 31fr 7fr;align-items:center;gap:2%;padding:4%;border:0;border-radius:0;box-shadow:none!important;background:white;height:100%;width:100%}.word-object{border:0;background:white;border-radius:18px;width:100%;height:85%;min-width:0;min-height:0;padding:8px;display:flex;align-items:center;justify-content:center}.in-game .sound-board.word-scene .word-object img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.word-object:hover{background:#fafcf7}.word-object.word-active{outline:3px solid #d9e8cf;outline-offset:-3px}.word-object:focus-visible{outline:4px solid #e6b66e}.sentence-dot{align-self:end;margin-bottom:20%;font-family:Georgia,serif;font-size:clamp(45px,10vw,130px);color:black;line-height:1}.in-game #sound-game{background:white;overflow:hidden}.in-game #repeat-prompt{display:none}.in-game #game:has(#sound-game:not([hidden])) .game-heading{display:none}@media(max-width:750px){.in-game .sound-board.word-scene{padding:2%;gap:1%}.word-object{padding:3px}.sentence-dot{font-size:60px}#fullscreen{font-size:11px}}

/* PowerPoint-style vertical slide navigator. */
#carousel .carousel-heading h1{font-size:28px;margin:8px 0 16px}#carousel .carousel-stage{display:grid;grid-template-columns:200px minmax(0,1fr);height:calc(100svh - 230px);min-height:380px;gap:24px;align-items:stretch}#carousel .rail-arrow{display:none}#carousel .slide-rail{display:flex;flex-direction:column;gap:12px;padding:8px 12px 8px 4px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scroll-snap-type:none;height:100%;min-width:0;border-right:1px solid #e1e6da}#carousel .slide-preview{flex:0 0 118px;width:100%;height:118px;border-radius:10px;scroll-snap-align:none;box-shadow:none}#carousel .slide-preview.selected{outline:3px solid #6e9573;outline-offset:-3px;background:#f0f5eb}#carousel .preview-number{top:5px;left:7px;font-size:9px;padding:1px 4px;border-radius:4px;background:#ffffffe0}#carousel .preview-content{padding:0}#carousel .preview-play{display:none}.selected-slide{display:flex;flex-direction:column;min-width:0;min-height:0;gap:12px}.selected-slide-image{flex:1;min-height:0;background:white;border:1px solid #dce4d4;border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center}.selected-slide-image img{width:100%;height:100%;object-fit:contain}.selected-slide-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#7c8975}#open-selected-slide{background:#427968;color:white;border-color:#427968}.rail-footer{margin:12px 0 0 224px}.rail-footer span:last-child{display:none}.slide-numbers{display:none}#carousel{padding-bottom:0}@media(max-width:750px){#carousel .carousel-stage{grid-template-columns:100px minmax(0,1fr);gap:10px;height:calc(100svh - 220px);min-height:330px}#carousel .slide-preview{flex-basis:70px;height:70px;border-radius:6px}#carousel .slide-rail{padding-right:6px;gap:8px}#carousel .preview-number{font-size:8px;top:3px;left:3px;padding:0 2px}#carousel .carousel-heading h1{font-size:23px}.selected-slide-bar{flex-direction:column;align-items:stretch;font-size:10px;gap:6px}.selected-slide-bar .outline{font-size:11px;padding:8px}.rail-footer{margin-left:110px;font-size:10px}.selected-slide-image{border-radius:10px}}

.selected-slide-image{cursor:zoom-in}.selected-slide-image:focus-visible{outline:4px solid #e6b66e;outline-offset:3px}
/* Slide selection uses the full window, like a presentation workspace. */
body.in-carousel{height:100svh;overflow:hidden}.in-carousel header{height:30px!important}.in-carousel main{max-width:none;width:100%;height:calc(100svh - 30px);min-height:0;padding:6px 12px 8px;margin:0}.in-carousel nav,.in-carousel footer{display:none}.in-carousel #carousel{height:100%;display:grid;grid-template-rows:40px minmax(0,1fr);gap:8px}.in-carousel .carousel-heading{min-height:0;align-items:center}.in-carousel .carousel-heading>div{display:flex;align-items:center;gap:16px}.in-carousel #carousel .carousel-heading h1{font-size:21px;line-height:1.2;margin:0;letter-spacing:-.5px}.in-carousel .carousel-heading .eyebrow{margin:0;font-size:10px}.in-carousel #back-blocks{padding:6px 12px;font-size:12px}.in-carousel #carousel .carousel-stage{height:100%;min-height:0;grid-template-columns:clamp(145px,13vw,230px) minmax(0,1fr);gap:14px}.in-carousel #carousel .slide-rail{height:100%;padding-top:3px;padding-bottom:3px}.in-carousel #carousel .slide-preview{flex:0 0 auto;aspect-ratio:16/9;height:auto;min-height:80px}.in-carousel .selected-slide{height:100%;min-height:0;gap:6px}.in-carousel .selected-slide-image{border-radius:10px}.in-carousel .selected-slide-bar{min-height:30px;font-size:11px}.in-carousel #open-selected-slide{padding:6px 14px;font-size:12px}.in-carousel .rail-footer{display:none}.in-carousel .selected-slide-image img{object-fit:contain}
@media(max-width:750px){.in-carousel main{padding:3px 5px 5px}.in-carousel #carousel{grid-template-rows:32px minmax(0,1fr);gap:5px}.in-carousel #carousel .carousel-stage{grid-template-columns:90px minmax(0,1fr);gap:6px}.in-carousel #carousel .carousel-heading h1{font-size:16px}.in-carousel .carousel-heading .eyebrow{display:none}.in-carousel #back-blocks{font-size:10px;padding:5px 8px}.in-carousel #carousel .slide-preview{min-height:55px}.in-carousel .selected-slide-bar{flex-direction:row;font-size:10px;min-height:28px}.in-carousel #open-selected-slide{font-size:10px;padding:5px 8px}}

.in-game #prev-game,.in-game #next-game{position:fixed;top:52%;transform:translateY(-50%);z-index:10;display:grid;place-items:center;width:50px;height:70px;border:1px solid #cfd8c7;border-radius:16px;background:#fffffff0;color:#507c5c;box-shadow:0 3px 14px #334c3514;font-size:31px;padding:0;line-height:1}.in-game #prev-game{left:16px}.in-game #next-game{right:16px}.in-game #prev-game:disabled,.in-game #next-game:disabled{opacity:.22;cursor:default}.in-game #prev-game:hover:not(:disabled),.in-game #next-game:hover:not(:disabled){background:#edf4e8}.in-game #game{padding-left:62px;padding-right:62px}.in-game .game-toolbar,.in-game .game-bottom{margin-left:-62px;margin-right:-62px}@media(max-width:750px){.in-game #prev-game,.in-game #next-game{width:34px;height:54px;font-size:23px;border-radius:11px}.in-game #prev-game{left:5px}.in-game #next-game{right:5px}.in-game #game{padding-left:36px;padding-right:36px}.in-game .game-toolbar,.in-game .game-bottom{margin-left:-36px;margin-right:-36px}}

.in-game #basket-game{height:100%;min-height:0}#basket-collection{grid-template-columns:repeat(6,minmax(0,1fr))}.basket-scene{background:white}.basket-boy{position:absolute;left:6%;bottom:2%;height:90%;max-width:30%;object-fit:contain}.basket-girl{position:absolute;right:4%;bottom:2%;height:90%;max-width:34%;object-fit:contain}#basket{position:absolute;left:34%;bottom:4%;width:32%;height:68%;border:0;background:transparent;padding:0;cursor:pointer}#basket img{width:100%;height:100%;object-fit:contain}#basket:hover:not(:disabled){filter:drop-shadow(0 0 8px #a3be83)}#basket:focus-visible{outline:3px dashed #588867}#basket:disabled{cursor:default}@media(max-width:750px){.in-game #basket-collection{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}}

.in-game #next-tasks{height:100%;min-height:0;overflow:auto;background:#fff;border:1px solid #e1e6d8;border-radius:24px;padding:22px;display:flex;flex-direction:column;align-items:center;gap:16px}#next-instruction{font-size:clamp(19px,2.2vw,30px);text-align:center;font-weight:600;margin:4px 0}#next-content{width:100%;flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.next-picture{border:2px solid transparent;border-radius:18px;background:#fff;cursor:pointer;padding:8px;max-width:100%}.next-picture:hover:not(:disabled){border-color:#bfd2ac}.next-picture:focus-visible,.position-cell:focus-visible{outline:3px solid #588867;outline-offset:3px}.next-picture img{display:block;max-width:100%;object-fit:contain}.next-letter-row{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.next-letter-row .next-picture{padding:12px}.next-letter-row img{width:clamp(45px,5vw,92px);height:clamp(95px,17vh,165px)}#next-feedback{min-height:30px;font-size:clamp(17px,1.7vw,23px);color:#476b40;text-align:center;margin:0}#next-content.position-task{flex-direction:column;gap:24px}.position-task .next-picture img{width:clamp(180px,25vw,360px);height:clamp(140px,31vh,320px)}.position-cells{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(620px,95%)}.position-cell{border:2px solid #8fa482;background:#fff;position:relative;min-height:110px;cursor:pointer;padding:12px 6px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:15px}.position-cell+.position-cell{border-left:0}.position-caption{font-family:inherit;font-weight:600;font-size:clamp(14px,1.5vw,20px);line-height:1.3;color:#384b31}.sound-marker{width:48px;height:48px;border-radius:50%;background:transparent}.position-correct .sound-marker{background:#e02c38}.position-try:not(.position-correct){background:#fff9ed}.position-correct{background:#f0f6e9}.position-cell:disabled{opacity:1;cursor:default;color:inherit}.comparison-task .next-picture{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.comparison-task img{width:100%;max-height:65vh}.next-letter-row .underlined{border-bottom:5px solid #588867;background:#eff5e8}@media(max-width:750px){.in-game #next-tasks{padding:12px;gap:8px}.next-letter-row{gap:3px}.next-letter-row .next-picture{padding:5px}.next-letter-row img{width:38px;height:80px}.position-cell{min-height:94px}.sound-marker{width:34px;height:34px}#next-feedback{font-size:16px}.position-task .next-picture img{height:25vh}.comparison-task img{max-height:50vh}}

.position-cell{justify-content:center;gap:0}
