:root{--paper:#f7f4e9;--card:#fffdf5;--ink:#243f40;--muted:#5d7270;--sea:#245c55;--sea-dark:#19483f;--wash:#e4eee7;--line:#cbd9ce;--sun:#edc77e;--peach:#f3d9c6;--rose:#e7b6a9;--radius:28px;--shadow:0 16px 48px #345c4812;color-scheme:light;font-family:"Trebuchet MS","Verdana",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 100% 0,#e5eee3,transparent 45%),radial-gradient(ellipse at 0 60%,#f4e6d6,transparent 45%),var(--paper);line-height:1.55}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.58}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ac681c;outline-offset:4px}button{ -webkit-tap-highlight-color:transparent}button:active:not(:disabled){filter:brightness(.97)}img{max-width:100%;display:block}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,"Palatino Linotype",serif;font-weight:400;line-height:1.05;letter-spacing:-.035em}h3{line-height:1.25}h1{font-size:clamp(48px,6.8vw,94px)}h2{font-size:clamp(30px,3.5vw,48px)}button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.app{max-width:1440px;margin:auto;padding:0 max(22px,env(safe-area-inset-right)) 0 max(22px,env(safe-area-inset-left))}.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:110px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center;background:none;border:0;padding:8px 0;text-align:left;font-family:Georgia,serif;font-size:24px;letter-spacing:-.02em;min-height:56px}.brand small{display:block;font-family:"Trebuchet MS",sans-serif;font-size:11px;letter-spacing:.02em;color:var(--muted);margin-top:2px}.brand-mark{width:30px;height:39px;flex-shrink:0;border:2px solid var(--sea);border-radius:45% 45% 38% 38%;background:radial-gradient(circle,#fff5c8 0,#edc77e 60%);box-shadow:inset 0 0 0 4px var(--paper);position:relative}.brand-mark:before{content:"";position:absolute;width:14px;height:10px;border:2px solid var(--sea);border-bottom:0;border-radius:10px 10px 0 0;top:-10px;left:6px}.header-actions{display:flex;gap:10px;align-items:center}.offline-label{color:var(--muted);font-size:12px;margin-right:12px}.icon-button{width:50px;min-height:50px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;background:#fffdf7;display:inline-flex;justify-content:center;align-items:center;font-size:26px}.icon-button[aria-pressed=false]{background:var(--wash)}.button{display:inline-flex;min-height:56px;align-items:center;justify-content:center;gap:14px;padding:14px 24px;border-radius:16px;border:1px solid transparent;font-weight:700;font-size:16px;text-align:center;text-decoration:none;line-height:1.4}.primary{background:var(--sea);color:#fffdf4;box-shadow:0 4px 0 var(--sea-dark)}.secondary{background:var(--card);border-color:var(--line)}.text-button{background:none;border:0;text-decoration:underline;text-underline-offset:5px;min-height:48px;padding:10px;color:var(--sea);font-size:14px}.eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:var(--sea);line-height:1.6}.hero{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(28px,5vw,74px);align-items:center;padding:54px 0 50px}.hero-copy{padding-left:8px;max-width:510px}.hero h1{margin:22px 0 24px}.hero h1 em{color:var(--sea)}.hero-description{font-size:18px;line-height:1.8;max-width:390px;color:var(--muted)}.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin:30px 0 22px}.hero-note{font-size:12px;color:var(--muted)}.hero-picture{position:relative;min-width:0}.hero-picture>img{width:100%;aspect-ratio:1.12;object-fit:cover;object-position:50% 50%;border-radius:130px 130px 32px 32px;box-shadow:var(--shadow)}.picture-caption{position:absolute;bottom:24px;left:24px;right:24px;color:#fff8e8;text-shadow:0 1px 5px #263f3f;display:flex;justify-content:space-between;gap:20px;align-items:flex-end}.picture-caption p{font-family:Georgia,serif;font-size:26px;line-height:1.2}.picture-caption span{border:1px solid #fff8e8a0;background:#273e3f55;backdrop-filter:blur(8px);padding:7px 12px;border-radius:20px;font-size:11px;white-space:nowrap}.comfort-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:space-around;gap:16px;padding:21px 10px;color:var(--muted);font-size:13px}.comfort-strip span{display:flex;gap:9px;align-items:center}.comfort-dot{width:7px;height:7px;border-radius:50%;background:var(--sea)}.library-section{padding:52px 0 12px}.section-heading{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}.section-heading h2{margin-top:10px}.section-heading>p{font-size:14px;color:var(--muted);max-width:300px}.chapter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.chapter-card{display:flex;flex-direction:column;padding:0;border:1px solid var(--line);border-radius:23px;overflow:hidden;background:var(--card);text-align:left;min-width:0;box-shadow:0 5px 20px #345c4807}.chapter-card>img{aspect-ratio:1.55;width:100%;object-fit:cover}.chapter-card-body{padding:17px;display:flex;flex-direction:column;gap:8px;flex:1}.chapter-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}.chapter-card h3{font-family:Georgia,serif;font-weight:400;font-size:22px;letter-spacing:-.02em}.chapter-card .card-action{font-size:12px;color:var(--sea);margin-top:auto;padding-top:10px;display:flex;justify-content:space-between;align-items:center;gap:8px}.chapter-card .card-action b{font-size:22px;line-height:1}.check-mark{background:var(--wash);color:var(--sea);border-radius:30px;padding:3px 7px;font-size:10px;letter-spacing:0}.bonus-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.site-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid var(--line);padding:24px 0;margin-top:52px;color:var(--muted);font-size:11px}.story-nav{display:flex;align-items:center;gap:12px;padding:18px 0;flex-wrap:wrap}.story-nav .chapter-counter{margin-right:auto;font-size:12px;color:var(--muted)}.chapter-progress{display:flex;gap:5px;flex-wrap:wrap}.chapter-progress button{width:28px;min-height:48px;border:0;background:none;position:relative;padding:4px}.chapter-progress button:after{content:"";position:absolute;left:4px;right:4px;top:22px;height:5px;border-radius:4px;background:var(--line)}.chapter-progress button.is-complete:after{background:#b1cbb5}.chapter-progress button.is-current:after{background:var(--sea);height:8px;top:20px}.chapter-layout{display:grid;grid-template-columns:minmax(280px,.84fr) minmax(350px,1.16fr);gap:28px;align-items:start}.story-scene{border-radius:var(--radius);overflow:hidden;position:relative;background:var(--wash);min-width:0;isolation:isolate}.scene-art{width:100%;aspect-ratio:1.12;object-fit:cover}.story-scene.motion-on .scene-art{animation:scene-settle 12s ease-out both}.scene-shimmer{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 70% 22%,#ffeab021,transparent 36%);animation:shimmer 8s ease-in-out infinite alternate}.still .scene-shimmer{animation:none}.story-caption{padding:24px;background:var(--card);border-top:1px solid var(--line)}.story-caption p{font-size:16px;line-height:1.85}.chapter-heading{display:flex;justify-content:space-between;align-items:start;gap:14px}.chapter-heading h1{font-size:clamp(32px,3.3vw,48px);margin-top:8px}.reading-controls{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.reading-controls button{min-height:48px;padding:9px 15px;background:var(--card);border:1px solid var(--line);border-radius:14px;color:var(--sea);font-size:13px}.reading-controls .is-speaking{background:var(--wash)}.play-panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-width:0;box-shadow:var(--shadow)}.play-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.play-heading h2{font-size:21px;font-family:"Trebuchet MS",sans-serif;letter-spacing:-.02em;font-weight:700;line-height:1.45}.play-heading img{width:46px;height:46px;object-fit:contain}.activity-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:18px}.activity-toolbar button,.activity-reset,.game-finish{min-height:48px;padding:10px 16px;border:1px solid var(--line);border-radius:14px;background:var(--wash);font-weight:700;font-size:14px}.activity-status{font-size:13px;color:var(--muted);min-height:24px;margin:10px 0}.game-board{position:relative;border:1px solid var(--line);border-radius:24px;min-height:270px;padding:20px;background:radial-gradient(ellipse at 50% 20%,#ffffffdd,transparent 70%),#e8f0e8;overflow:hidden;isolation:isolate}.game-items,.game-targets,.game-row{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;align-items:center;margin:16px 0}.game-item,.game-target{display:inline-flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:74px;min-height:80px;max-width:100%;border:2px solid #c3d6cc;border-radius:20px;background:#fffdf4;padding:10px;color:var(--ink);font-size:12px;line-height:1.4;text-align:center;touch-action:pan-y;user-select:none;-webkit-user-select:none;transition:border-color .18s,background .18s,box-shadow .18s;overflow-wrap:anywhere}.game-item img,.game-target img{width:66px;height:66px;object-fit:contain;pointer-events:none}.game-item:disabled,.game-target:disabled{opacity:1}.game-item[aria-pressed=true],.is-selected{border-color:var(--sea)!important;background:#e1eee6!important;box-shadow:0 0 0 3px #245c5516}.game-target{border-style:dashed;background:#e0ece5;min-width:90px;min-height:100px}.is-filled{border-style:solid!important;background:#f4edcd!important;border-color:#c5ab6f!important}.is-hint{outline:3px solid #a16e2a;outline-offset:4px}.game-item:disabled:not(.is-filled){background:#f0f1e5}.game-item.is-dragging{opacity:.38}.drag-ghost{position:fixed!important;z-index:200;pointer-events:none!important;opacity:.92;transform:translate(-50%,-50%);box-shadow:0 10px 26px #29483b30}.game-board[data-game=find],.game-board[data-kind=find]{background:radial-gradient(ellipse at 50% 70%,#b7e0d5,transparent),#d9ebe3;min-height:310px}.game-board[data-kind=flight]{background:repeating-linear-gradient(0deg,#d4eae530 0px,#d4eae530 36px,#d4eae580 38px,#d4eae530 40px),#dceee7;touch-action:none;min-height:320px}.game-board[data-kind=create]{background:#f4e6cb}.activity-help{margin:14px 0 0;font-size:12px;color:var(--muted)}.game-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:14px 0}.game-tools button{min-height:52px}.game-placed{animation:placed .5s ease-out}.celebration{margin-top:18px;padding:20px;border:1px solid #c5d9c5;border-radius:22px;background:linear-gradient(125deg,#e5efdf,#f5edcf);text-align:center;position:relative;overflow:hidden}.celebration h3{font-family:Georgia,serif;font-size:27px;font-weight:400;margin-bottom:8px}.celebration p{font-size:14px;margin-bottom:18px}.celebration img{width:62px;height:62px;object-fit:contain;margin:0 auto 10px}.celebration .button{width:100%}.celebration-petals{position:absolute;inset:0;pointer-events:none}.celebration-petals span{position:absolute;width:10px;height:15px;border-radius:70% 20%;background:var(--sun);left:var(--x);top:100%;animation:petal 2.3s ease-out var(--d) both;opacity:0}.celebration-petals span:nth-child(even){background:#a4c8b7}.next-chapter-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.next-chapter-row>.button{flex:1;min-width:160px}.watch-banner{padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--wash);margin-bottom:18px}.watch-banner p{margin-bottom:14px;font-size:14px}.ending{padding:48px 20px;text-align:center;max-width:800px;margin:auto}.ending>img{width:100%;border-radius:50px;aspect-ratio:1.6;object-fit:cover;margin-bottom:30px}.ending h1{font-size:clamp(44px,6vw,70px);margin:16px 0}.ending p{color:var(--muted);font-size:17px;max-width:520px;margin:0 auto 26px}.ending .hero-actions{justify-content:center}.library-intro{padding:32px 0 0}.library-back{margin-bottom:28px}dialog{width:min(570px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow-y:auto;border:1px solid var(--line);border-radius:30px;padding:30px;background:var(--card);color:var(--ink);box-shadow:0 24px 100px #193e3a50}dialog::backdrop{background:#183b3d80;backdrop-filter:blur(5px)}dialog h2{font-size:36px}dialog p{font-size:14px;line-height:1.8;margin:18px 0;color:var(--muted)}.dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:18px}.dialog-heading h2{margin-top:8px}.dialog-heading .icon-button{width:44px;min-height:48px}.setting{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);padding:17px 0;font-size:15px}.setting span{flex:1;min-width:0}.setting small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.setting input[type=checkbox]{width:44px;height:28px;flex-shrink:0;accent-color:var(--sea)}.setting input[type=range]{width:130px;min-height:44px;accent-color:var(--sea)}.setting select{max-width:165px;min-height:48px;border:1px solid var(--line);border-radius:10px;padding:8px;background:var(--paper);color:var(--ink)}dialog>.button{width:100%;margin-top:20px}.preset-row{display:flex;flex-wrap:wrap;gap:10px}.preset-row .button{flex:1;min-width:160px;font-size:14px}.pause-friend{width:150px;height:150px;object-fit:contain;margin:20px auto}#pause-dialog{text-align:center}.large-text{font-size:120%}.large-text .story-caption p{font-size:21px}.large-text .game-item,.large-text .game-target{font-size:16px}.large-text .chapter-card h3{font-size:26px}.large-text .chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.still *,.still *:before,.still *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;left:20px;top:-100px;z-index:100;background:var(--card);padding:14px}.skip-link:focus{top:10px}.hidden,[hidden]{display:none!important}
@keyframes scene-settle{from{transform:scale(1.035)}to{transform:scale(1)}}@keyframes shimmer{from{opacity:.3}to{opacity:.7}}@keyframes placed{0%{transform:scale(.94)}60%{transform:scale(1.04)}100%{transform:scale(1)}}@keyframes petal{0%{opacity:0;transform:translateY(0) rotate(0)}20%{opacity:.7}100%{opacity:0;transform:translateY(-220px) rotate(100deg)}}
@media(min-width:1100px){.story-column{position:sticky;top:20px}.chapter-layout{gap:40px}.chapter-grid{gap:24px}.play-panel{padding:28px}}
@media(max-width:1000px){.chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{gap:28px}.chapter-layout{grid-template-columns:minmax(240px,.85fr) minmax(300px,1.15fr);gap:20px}.play-panel{padding:18px}.scene-art{aspect-ratio:1}.story-caption{padding:18px}.chapter-progress{display:none}.bonus-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.app{padding-right:max(18px,env(safe-area-inset-right));padding-left:max(18px,env(safe-area-inset-left))}.site-header{min-height:91px;gap:12px}.brand{font-size:20px;gap:10px}.brand small{font-size:9px}.brand-mark{width:24px;height:33px}.brand-mark:before{left:4px;width:12px}.offline-label{display:none}.header-actions{gap:7px}.icon-button{width:46px;min-height:48px}.hero{grid-template-columns:1fr;padding:30px 0;gap:28px}.hero-copy{padding-left:0;max-width:none}.hero h1{font-size:64px;max-width:360px;line-height:.98;margin:16px 0 20px}.hero-description{font-size:16px;max-width:430px}.hero-actions{margin:24px 0 16px}.hero-picture>img{aspect-ratio:1.45;border-radius:70px 70px 24px 24px}.picture-caption{left:18px;right:18px;bottom:18px}.picture-caption p{font-size:22px}.comfort-strip{justify-content:flex-start;gap:12px 20px;font-size:11px}.library-section{padding-top:36px}.chapter-grid,.bonus-grid,.large-text .chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.chapter-card-body{padding:13px}.chapter-card h3{font-size:19px}.chapter-card-meta{font-size:9px}.chapter-card .card-action{font-size:11px}.chapter-layout{grid-template-columns:1fr}.story-column{display:contents}.chapter-heading{order:0}.reading-controls{order:1;margin:0}.story-scene{order:2}.play-panel{order:3}.next-chapter-row{order:4}.scene-art{aspect-ratio:1.7;object-position:50% 48%}.story-caption p{font-size:15px;line-height:1.7}.chapter-heading h1{font-size:39px}.chapter-layout{gap:18px}.story-nav{padding:14px 0}.story-nav .chapter-counter{font-size:11px}.story-nav>.text-button{font-size:12px}.site-footer{margin-top:32px;justify-content:center;gap:4px 12px;font-size:10px}.site-footer span:last-child{width:100%;text-align:center}.game-board{padding:15px;min-height:250px}.game-item,.game-target{min-width:68px;padding:8px}.game-item img,.game-target img{width:58px;height:58px}.game-items,.game-targets{gap:10px}.play-heading h2{font-size:18px}.activity-toolbar{gap:8px}.activity-toolbar button{font-size:12px;padding:10px 12px}.chapter-card-meta>span:first-child{letter-spacing:.06em}dialog{padding:22px}dialog h2{font-size:30px}.setting{gap:14px;font-size:14px}.large-text .chapter-card h3{font-size:22px}}
@media(max-width:380px){.brand small{display:none}.brand{font-size:18px}.brand-mark{display:none}.hero h1{font-size:54px}.hero-actions .button{width:100%}.chapter-card h3{font-size:17px}.chapter-card-body{padding:10px}.chapter-card .card-action{font-size:10px}.picture-caption span{display:none}.chapter-card-meta{letter-spacing:0}.game-item,.game-target{min-width:64px}.setting select{max-width:130px}.setting input[type=range]{width:100px}.chapter-counter{width:100%;order:2}}
@media(orientation:landscape) and (max-height:520px){.site-header{min-height:68px}.brand small,.offline-label{display:none}.hero{grid-template-columns:1fr 1fr;padding:24px 0}.hero h1{font-size:47px;margin:12px 0}.hero-description{font-size:14px;line-height:1.6}.hero-actions{margin:16px 0;gap:10px}.hero-actions .button{font-size:13px;padding:12px 16px;min-height:50px;width:auto}.hero-picture>img{aspect-ratio:1.3;border-radius:50px 50px 24px 24px}.story-nav{padding:8px 0}.chapter-layout{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(280px,1.2fr);gap:16px;align-items:start}.story-column{display:block}.chapter-heading h1{font-size:29px}.reading-controls{margin:12px 0}.scene-art{aspect-ratio:1.5}.story-caption{padding:14px}.story-caption p{font-size:14px}.play-panel{padding:16px}.game-board{min-height:250px}.chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.site-footer{margin-top:24px}.chapter-counter{order:0;width:auto}.chapter-progress{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
main:focus{outline:none}.activity-title.sr-only,.activity-instruction.sr-only{margin:0}.story-game>.activity-toolbar:empty{display:none}.game-label{max-width:100%;overflow-wrap:normal}.game-count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.game-item[data-drag-id]:not([data-action=collect]),.game-target[data-drag-id]{touch-action:none}.game-item[data-category=cream],.game-target[data-category=cream]{background:#f5efdd}.game-item[data-category=rosy],.game-target[data-category=rosy]{background:#f6ded6}.game-item[data-category=golden],.game-target[data-category=golden]{background:#f4e6b8}.game-setting{flex-basis:100%;display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px;color:var(--muted)}.game-setting img{width:48px;height:48px;object-fit:contain}.game-item.is-filled img,.game-target.is-filled img{animation:placed .45s ease-out}.celebration .celebration-friend{width:100px;height:100px}.game-board[data-kind=find]>.game-items{position:relative;min-height:260px;display:block!important;margin:0}.game-board[data-kind=find] .game-item{position:absolute;background:#fff9dc99;border-color:#e4c581;width:92px;min-height:100px;box-shadow:0 0 22px #ffe1a54d}.game-board[data-kind=find] .game-item:nth-child(1){left:4%;top:5%}.game-board[data-kind=find] .game-item:nth-child(2){right:6%;top:11%}.game-board[data-kind=find] .game-item:nth-child(3){left:34%;bottom:0}.game-board[data-kind=find] .game-item:nth-child(4){right:1%;bottom:2%}.game-board[data-kind=flight] .game-target{width:85px;min-width:64px;min-height:86px;padding:7px;font-size:10px}.game-board[data-kind=flight] .game-item{width:85px;min-width:64px;min-height:85px;padding:6px}.game-board[data-kind=flight] img{width:52px;height:52px}.game-board[data-kind=create] .game-target{width:calc(50% - 10px);min-height:116px}.game-board[data-kind=create] .game-target:not(.is-filled) .game-label{font-size:32px;color:var(--sea)}.game-board[data-kind=create] .game-target.is-filled img{width:80px;height:80px}.game-board[data-kind=plant] .game-target{width:calc(33.333% - 12px);min-width:90px}.game-board[data-kind=plant] .game-target img{width:74px;height:74px}.game-board[data-kind=trace] .game-target{width:calc(33.333% - 12px);min-width:85px}.game-board[data-kind=sequence] .game-target,.game-board[data-kind=path] .game-target{min-width:80px;font-size:22px;font-weight:700}.game-board[data-kind=lantern] .game-target{min-width:92px;max-width:130px}.game-board[data-kind=match] .game-item{flex-basis:calc(33.333% - 12px);min-width:78px}.game-board[data-kind=rhythm] .game-item{width:calc(33.333% - 14px);min-width:80px;min-height:125px}.game-board[data-kind=rhythm] .game-item img{width:76px;height:76px}.game-board[data-kind=sort] .game-items:first-child .game-item,.game-board[data-kind=tidy] .game-items:first-child .game-item{flex-basis:calc(33.333% - 12px);min-width:75px}.game-board[data-kind=sort] .game-target,.game-board[data-kind=tidy] .game-target{flex:1;min-width:80px;max-width:140px}.game-board[data-kind=sort] .game-items,.game-board[data-kind=tidy] .game-items{gap:12px;margin:14px 0}
@media(max-width:720px){.game-label{font-size:11px}.game-board[data-kind=plant] .game-target{min-width:76px;width:calc(33.333% - 9px)}.game-board[data-kind=plant] .game-target img{width:58px;height:58px}.game-board[data-kind=trace] .game-target{min-width:72px}.game-board[data-kind=find] .game-item{width:80px;min-height:92px;padding:6px;font-size:10px}.game-board[data-kind=find] .game-item:nth-child(3){left:8%;bottom:3%}.game-board[data-kind=sort] .game-items:first-child .game-item,.game-board[data-kind=tidy] .game-items:first-child .game-item{min-width:70px}.game-board[data-kind=sort] .game-target,.game-board[data-kind=tidy] .game-target{min-width:70px;padding:6px}.game-board[data-kind=sort] .game-target img,.game-board[data-kind=tidy] .game-target img{width:54px;height:54px}.game-board[data-kind=flight] .game-item,.game-board[data-kind=flight] .game-target{width:70px;min-width:64px;min-height:80px;font-size:9px}.game-board[data-kind=flight] img{width:42px;height:42px}}
.chapter-progress button{width:48px}.dialog-heading .icon-button{width:48px}.hero-picture .picture-caption p{white-space:pre-line}
@media(max-width:720px){.header-actions .icon-button{width:48px}.play-panel{order:2}.story-scene{order:3}.chapter-layout>.next-chapter-row{order:4}}

/* The animation is the chapter, rather than a thumbnail beside an activity. */
.chapter-active .site-header { min-height: 74px; }
.chapter-progress button { width: 48px; }
.chapter-progress button:after { left: 12px; right: 12px; }
.cinematic-layout { display: block; max-width: 1120px; margin: 0 auto; }
.cinematic-layout .story-column { display: block; position: static; top: auto; }
.cinematic-layout .chapter-heading { margin: 0 0 18px; align-items: center; }
.cinematic-layout .chapter-heading h1 { font-size: clamp(29px, 3.2vw, 45px); margin-top: 5px; }
.cinematic-scene { border: 1px solid #c4d5c7; box-shadow: 0 18px 55px #365d491a; border-radius: 28px; }
.animated-stage { position: relative; aspect-ratio: 8 / 5; width: 100%; overflow: hidden; background: #dce7df; }
.animated-stage > svg { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.animated-stage .scene-status { position: absolute; top: 20px; left: 20px; right: 20px; width: fit-content; max-width: calc(100% - 40px); padding: 8px 15px; border-radius: 20px; color: #264d46; background: #fffdf0eb; border: 1px solid #fff9da; font-size: 13px; box-shadow: 0 3px 16px #244a3414; pointer-events: none; }
.cinematic-scene .story-caption { padding: 18px 25px; background: #fffdf5; }
.cinematic-scene .story-caption p { max-width: 900px; margin: auto; font-size: 16px; line-height: 1.7; }
.stage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 20px 0 8px; }
.cinematic-layout .reading-controls { justify-content: center; margin: 10px 0 25px; }
.cinematic-layout .play-panel { max-width: 850px; margin: 25px auto; scroll-margin-top: 18px; }
.cinematic-layout .play-panel > .text-button { margin: -8px 0 10px; }
.cinematic-layout .next-chapter-row { max-width: 850px; margin: 20px auto; justify-content: center; }
.cinematic-layout .game-board { min-height: 310px; }
.cinematic-layout .watch-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.cinematic-layout .watch-banner p { margin: 0; }
.cinematic-layout .play-panel > .button { width: 100%; }
@media (min-width: 900px) {
  .cinematic-scene { max-width: min(100%, calc((100dvh - 420px) * 1.6)); margin: auto; min-width: 560px; }
}
@media (max-width: 720px) {
  .chapter-active .site-header { min-height: 66px; }
  .chapter-active .brand small { display: none; }
  .chapter-active .chapter-progress { display: none; }
  .cinematic-layout .chapter-heading { margin-bottom: 14px; }
  .cinematic-layout .chapter-heading h1 { font-size: 30px; }
  .cinematic-scene { border-radius: 20px; }
  .animated-stage .scene-status { top: 10px; left: 10px; max-width: calc(100% - 20px); font-size: 11px; padding: 6px 10px; }
  .cinematic-scene .story-caption { padding: 16px; }
  .cinematic-scene .story-caption p { font-size: 14px; line-height: 1.65; }
  .stage-actions { gap: 10px; margin-top: 16px; }
  .stage-actions .button { flex: 1; font-size: 13px; padding: 12px; min-width: 125px; min-height: 52px; }
  .cinematic-layout .reading-controls { gap: 8px; margin-bottom: 16px; }
  .cinematic-layout .reading-controls button { flex: 1; padding: 9px; font-size: 12px; }
  .cinematic-layout .play-panel { padding: 16px; }
  .cinematic-layout .watch-banner { display: block; }
  .cinematic-layout .watch-banner .button { width: 100%; margin-top: 15px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .chapter-active .site-header { min-height: 58px; }
  .chapter-active .story-nav { padding: 5px 0; }
  .cinematic-layout .chapter-heading { margin-bottom: 10px; }
  .cinematic-layout .chapter-heading .eyebrow { display: none; }
  .cinematic-layout .chapter-heading h1 { font-size: 25px; }
  .cinematic-scene { max-width: 700px; }
  .cinematic-layout .play-panel { max-width: 760px; }
}

.website-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0; color: var(--muted); font-size: 12px; }
.website-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 12px; color: var(--sea); font-weight: 700; text-underline-offset: 4px; }
.hosted-overview { max-width: 850px; margin: 35px auto 0; color: var(--muted); font-size: 14px; }
.hosted-overview details { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 0 18px; }
.hosted-overview summary { min-height: 48px; padding: 14px 0; cursor: pointer; font-weight: 700; color: var(--sea); }
.hosted-overview p { margin: 12px 0 18px; line-height: 1.8; }
.hosted-overview a { color: var(--sea); }
.hosted-overview ol { columns: 2; padding-left: 25px; }
.hosted-overview li { margin: 0 12px 10px 0; break-inside: avoid; }
@media (max-width: 520px) {
  .website-nav span { display: none; }
  .hosted-overview ol { columns: 1; }
}
