.star-count{text-decoration:none;background:#fff2bd;color:#936a26!important;min-height:42px;white-space:nowrap;box-shadow:0 2px 0 #e4c97e;border:1px solid #e8cc7a}.star-count>span:first-child{font-size:22px;color:#e0a82e;text-shadow:0 1px #a87627}.star-label{font-size:11px}#star-pocket{display:flex;margin-left:18px}.new-round-note{font-size:12px!important;color:#9b7c4a!important}.game-grid{grid-template-columns:repeat(6,1fr)}.game-card{grid-column:span 2;box-shadow:0 7px 20px #66506e08;transition:transform .2s}.game-card:nth-last-child(-n+2){grid-column:span 3}.game-card:active{transform:scale(.985)}.game-card-art{background:radial-gradient(circle at 25% 25%,#fff4c8 0 10%,transparent 10.5%),linear-gradient(140deg,#b8b7d4,#eee0c6)}.game-pairs .game-card-art{background:linear-gradient(135deg,#a7bac3,#e6d5d6)}.game-fishing .game-card-art{background:linear-gradient(#a8b3cf 38%,#80bdc4 38%,#4d899d)}.game-card-art:before{content:'✦ · ✧';position:absolute;inset:15px;color:#fff7da;font-size:30px;letter-spacing:20px}.game-card-art>svg:last-child{width:195px;height:215px;bottom:-6px}.game-card h2{font-size:26px}.game-card p{font-size:14px}.game-card .button{min-height:48px}.standalone{max-width:1000px}.standalone-game{max-width:820px}.play-game{border-radius:24px!important;border:1px solid #e3d8c8;background:#fffdf6;box-shadow:0 8px 25px #65506709}.game-instruction{font-size:16px;color:#65566e;line-height:1.4;margin-bottom:20px;gap:14px}.round-star-hint{flex:0 0 auto!important;background:#fbefc7;color:#a57a30;padding:8px 11px;border-radius:20px;font-size:11px}.game-feedback{font-size:15px;min-height:45px;margin-top:18px}.hide-room{position:relative;background:linear-gradient(#eee0d0 0 65%,#c6aa8b 65%);padding:35px 18px 18px;border-radius:20px}.hide-room:before{content:'';position:absolute;inset:12px;border:2px solid #ffefd8;border-radius:15px;pointer-events:none}.hide-room-window{position:absolute;left:41%;top:-10px;width:100px;height:95px;opacity:.6}.hide-room-window svg{height:100%;width:100%}.hiding-spots{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;position:relative}.hiding-spot{min-height:190px!important;padding:16px 9px!important;border:2px solid #f3e5d2!important;background:#fff9efda!important;border-radius:20px!important;box-shadow:0 5px #b1957c}.hiding-spot svg{width:100%!important;height:140px!important}.hiding-spot span{font-size:14px!important}.hiding-spot.found{background:#e1ecd5!important;border-color:#9faf8a!important}.hiding-spot.peeked{opacity:.75}.fort-plan{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.fort-plan>span{display:flex;align-items:center;gap:8px;border:2px dashed #cfbbae;padding:10px 15px;border-radius:13px;font-size:14px}.fort-plan i{font-style:normal;font-size:23px}.fort-plan .done{background:#e3ebd9;border-style:solid;border-color:#9ab18c}.fort-preview{width:430px;height:280px;max-width:100%;margin:22px auto;border-radius:20px;background:radial-gradient(ellipse at 50% 100%,#d4c5a7,transparent 70%)}.fort-preview.stage-0:after{content:'Your cozy fort goes here';position:absolute;inset:75px 20px;text-align:center;color:#a49180;font:italic 20px Georgia}.fort-preview>svg{height:155px;left:32%;bottom:-4px;width:155px}.fort-color-1 .fort-blanket{background:#b2b9d3}.fort-color-2 .fort-blanket{background:#c4a4bd}.fort-color-3 .fort-blanket{background:#9dbdac}.fort-supplies{gap:12px}.supply-tile{min-width:105px;min-height:86px;padding:12px;border:1px solid #d8cbbb;border-radius:15px;background:#f6eedf;display:flex;flex-direction:column;align-items:center;gap:7px;color:#6d5c67;box-shadow:0 3px #e3d7c4;font-size:13px}.supply-tile i{font-size:33px;font-style:normal;color:#b18d62}.supply-tile.selected{background:#e3ebd9;box-shadow:none}.round-win{display:flex;align-items:center;justify-content:center;gap:15px;padding:20px;border-radius:18px;background:#fff0b9;margin:18px 0 0;color:#82612d}.round-win>span{font-size:58px;color:#dda62f;filter:drop-shadow(0 3px #b68226)}.round-win b{font-size:23px}.round-win p{margin:3px 0;font-size:13px}.round-win a{font-size:12px;min-height:44px;display:flex;align-items:center;color:#8d682b}.memory-board{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:22px;border-radius:22px;background:linear-gradient(135deg,#ded6e6,#eee1ce)}.memory-card{position:relative;min-height:150px;aspect-ratio:1/1.12;border:3px solid #f9edcf;border-radius:20px;background:linear-gradient(145deg,#87769f,#574868);box-shadow:0 5px 0 #c2afbe;color:#f6e1ac;transition:transform .25s,background .25s;touch-action:manipulation}.memory-card:active{transform:scale(.96)}.memory-card.turned{background:#fff7e5;border-color:#e6d3ab}.memory-card.matched{background:#dce9d7;border-color:#a3bc92;box-shadow:none;opacity:1!important}.card-front{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.card-front>svg{width:90%;height:135px}.card-moon{font-size:80px;font-family:Georgia}.card-spark{font-size:22px;position:absolute;left:60%;top:20%}.match-tick{position:absolute;right:7px;top:5px;background:#89a67a;color:white;width:22px;height:22px;border-radius:50%}.fishing-target{display:flex;align-items:center;justify-content:center;gap:15px;margin:-12px 0 5px;color:#85766b;font-size:13px}.fishing-target svg{width:88px;height:56px}.fishing-lake{height:430px;position:relative;border-radius:22px;overflow:hidden;isolation:isolate}.lake-backdrop{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.fishing-puppy{position:absolute;width:140px;left:4%;top:0;z-index:2}.fishing-puppy svg{width:100%;height:auto}.fishing-rod{position:absolute;left:20%;top:16%;height:160px;width:95px;border-right:4px solid #806257;border-top:4px solid #806257;border-radius:0 100% 0 0;transform:rotate(25deg);pointer-events:none}.lake-fish{position:absolute;transform:translate(-50%,-50%);width:19%;min-width:68px;min-height:64px;max-width:140px;border:0;background:transparent;padding:4px;touch-action:manipulation;animation:fish-bob 3.5s ease-in-out infinite;animation-delay:var(--float-delay)}.lake-fish svg{width:100%;height:auto;filter:drop-shadow(0 7px 2px #34677c33)}.lake-fish:active{filter:brightness(1.2)}.fish-bucket{position:absolute;bottom:10px;left:10px;min-width:100px;padding:8px;background:#c6a479;border:4px solid #eed3a5;border-radius:5px 5px 20px 20px;color:#fff0ba;font-size:23px;text-align:center}.puddle-field{height:410px;background:linear-gradient(#a7aac9,#dbbdc5 48%,#d0bba0 49%,#e3cdaa)}.puddle-field .garden-hill{background:#8f91ac}.puddle-field .hill-two{background:#aba5bb}.puddle-field .puddle{width:26%;height:64px;box-shadow:0 0 0 5px #cad7cc}.puddle-star{font-size:27px;position:absolute;left:40%;top:15%;color:#fff0a8;pointer-events:none}.puddle-field .target-puddle{border-color:#f7dfa1;box-shadow:0 0 0 5px #e3d195,0 0 35px #fff2b8;animation:puddle-glow 2s ease-in-out infinite}.puddle-puppy svg{filter:drop-shadow(0 7px 2px #745d7630)}.puppy-picker svg{height:58px;width:58px}.puppy-picker button{font-size:13px;min-height:90px}.drag-instruction{font-size:15px}.round-win{animation:win-appear .35s ease-out}
#star-celebration{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:100;display:flex;align-items:center;gap:17px;width:min(480px,92vw);background:#fff4ca;border:2px solid #edcd74;box-shadow:0 12px 60px #5c456544;border-radius:24px;padding:17px 24px;color:#8a642b;animation:win-appear .45s ease-out}#star-celebration[hidden]{display:none}.celebration-star{font-size:60px;color:#e4ad31;filter:drop-shadow(0 4px #c18d2a);animation:star-wiggle .8s ease-out}#star-celebration b,#star-celebration div>span{display:block}#star-celebration b{font-size:21px}#star-celebration div>span{font-size:12px;margin-top:4px}#star-celebration a{font-size:12px;color:#8a642b;margin-left:auto;min-height:44px;display:flex;align-items:center}.star-sky{text-align:center;padding:35px 0 70px;max-width:1000px;margin:auto}.star-sky>.back-link{display:block;text-align:left;margin-bottom:35px}.star-sky h1{font-size:55px;margin:12px 0}.star-sky>p{color:#8c7f8d}.constellation{position:relative;height:470px;background:radial-gradient(ellipse at 40% 20%,#8584af,#4f486d 62%,#393852);border-radius:40px;margin:30px 0;border:8px solid #e4d9c8;box-shadow:inset 0 0 40px #36304455;overflow:hidden}.sky-moon{position:absolute;font:200px Georgia;color:#eeddb3;right:6%;top:8%;transform:rotate(-20deg);opacity:.8}.earned-star{position:absolute;left:var(--x);top:var(--y);font-size:44px;color:#efca68;transform:rotate(var(--turn));filter:drop-shadow(0 4px #a67d35);animation:star-wiggle .6s ease-out}.reading-scene [data-character]{cursor:grab;touch-action:none;outline:none}.reading-scene [data-character]:focus-visible{filter:drop-shadow(0 0 8px #f0bd59)}.reading-scene [data-character].being-moved{cursor:grabbing;filter:drop-shadow(0 8px 3px #4f3e6933)}.scene-play-hint{display:block;text-align:center;font-size:11px;padding:8px;background:#f7efd9;color:#9e8b7c}.in-reader .scene-play-hint{position:absolute;top:10px;right:10px;border-radius:20px;background:#fff6decc;font-size:10px;padding:6px 10px;pointer-events:none}.scene-sparkles{animation:scene-sparkle .85s ease-out forwards;transform-box:fill-box;transform-origin:center}.scene-ripple{fill:none;stroke:#d6eef0;stroke-width:5;animation:scene-ripple 1s ease-out forwards;transform-box:fill-box;transform-origin:center}.pup-reacting>svg{animation:pup-hop .6s cubic-bezier(.2,.7,.5,1)}.scene-wonder .scene-props{animation:prop-wonder .6s ease;transform-box:fill-box;transform-origin:50% 90%}.reading-scene [data-scene-effect]{cursor:pointer;touch-action:manipulation}.reading-scene [data-scene-effect]:focus-visible{outline:4px solid #d6b25c}
@keyframes fish-bob{50%{transform:translate(-50%,-60%) rotate(3deg)}}@keyframes puddle-glow{50%{box-shadow:0 0 0 9px #e3d195,0 0 40px #fff2b8}}@keyframes win-appear{from{opacity:0;translate:0 20px}to{opacity:1;translate:0 0}}@keyframes star-wiggle{0%{scale:.5;rotate:-20deg}60%{scale:1.12;rotate:10deg}100%{scale:1;rotate:0deg}}@keyframes scene-sparkle{to{opacity:0;transform:scale(1.7) translateY(-16px)}}@keyframes scene-ripple{to{opacity:0;transform:scale(2)}}@keyframes pup-hop{45%{translate:0 -25px;rotate:5deg}}@keyframes prop-wonder{40%{transform:rotate(3deg) translateY(-7px)}75%{transform:rotate(-2deg)}}
@media(max-width:1050px){.game-grid{grid-template-columns:repeat(2,1fr)}.game-card,.game-card:nth-last-child(-n+2){grid-column:span 1}.game-card:last-child{grid-column:span 2}.hiding-spots{grid-template-columns:repeat(2,1fr)}.standalone-game{max-width:760px}.star-count .star-label{display:none}}
@media(max-width:600px){#star-pocket{margin-left:3px}.star-count{font-size:12px;padding:5px 10px}.game-grid{gap:13px}.game-card,.game-card:last-child{grid-column:span 2}.memory-board{gap:10px;padding:13px}.memory-card{min-height:95px;border-radius:13px}.card-front>svg{height:85px}.card-moon{font-size:48px}.game-instruction{font-size:14px}.round-star-hint{font-size:9px}.fishing-lake{height:360px}.fishing-puppy{width:105px}.puddle-field{height:365px}.hiding-spot{min-height:155px!important}.hiding-spot svg{height:110px!important}.fort-plan{gap:6px}.fort-plan>span{padding:7px;font-size:11px}.supply-tile{min-width:80px;font-size:11px;min-height:77px}.fort-preview{height:230px}.round-win{padding:12px;gap:10px}.round-win b{font-size:19px}.round-win>span{font-size:43px}.constellation{height:450px;border-radius:25px}.star-sky h1{font-size:40px}.earned-star{font-size:35px}#star-celebration{padding:12px 16px;gap:10px}#star-celebration b{font-size:17px}.celebration-star{font-size:43px}.in-reader .scene-play-hint{font-size:8px;top:7px;right:7px}}
@media(prefers-reduced-motion:reduce){.lake-fish,.target-puddle,.round-win,.celebration-star,.earned-star,.scene-sparkles,.scene-ripple,.pup-reacting>svg,.scene-wonder .scene-props{animation:none!important}.scene-sparkles,.scene-ripple{opacity:.6}}.gentle .lake-fish,.gentle .target-puddle,.gentle .round-win,.gentle .celebration-star,.gentle .earned-star,.gentle .scene-sparkles,.gentle .scene-ripple,.gentle .pup-reacting>svg,.gentle .scene-wonder .scene-props{animation:none!important}
.offline-panel{padding:20px;margin:24px 0;border:1px solid #d9cfb9;border-radius:18px;background:#f5eedc}.offline-panel h3{font-size:22px;margin:0 0 10px}.offline-panel label{display:flex;align-items:center;gap:12px;font-size:13px}.offline-panel input{font:inherit;padding:10px;border:1px solid #cbbcaf;border-radius:9px;max-width:65%}.offline-panel progress{width:100%;height:14px;margin:10px 0;accent-color:#977ba5}.offline-panel .button{min-height:50px;width:100%;justify-content:center;margin:10px 0}.offline-panel>a{font-size:12px;color:#806e90}
@media(min-width:700px) and (max-width:1050px){.site-header{gap:16px;padding-left:26px;padding-right:26px}.site-header nav{gap:19px}.site-header nav a{font-size:13px}.brand{gap:8px}.brand>span:last-child{font-size:24px}.brand small{font-size:8px}#star-pocket{margin-left:0}.grownups{margin-left:0}}
.lead-puppy{border:2px solid #c6a76c!important;background:#fff6df!important}.hero-picture .springer{z-index:5!important;filter:drop-shadow(0 8px 3px #7059681c)}
.hero-picture .springer{left:30%;top:47%;width:29%;z-index:6!important}.hero-picture .hopper{left:8%;top:51%;width:24%;z-index:4}
.brand-icon{width:62px;height:62px;object-fit:cover;border-radius:17px;box-shadow:0 3px 10px #55426725}.painted-background{display:block;width:100%;aspect-ratio:900/660;object-fit:cover}.painted-art .reading-scene{background:#746284}.painted-art body:not(.in-reader) .reading-scene>svg{max-height:520px}.painted-art .fishing-lake{background-size:cover;background-position:center}.painted-art .fishing-lake .lake-backdrop{display:none}.painted-art .hide-room{background-size:cover;background-position:center}.painted-art .hide-room-window{display:none}.painted-art .puddle-field{background-size:cover;background-position:center}.painted-art .garden-hill,.painted-art .garden-flower,.painted-art .puddle-field .moon-earth{display:none}.painted-art .puddle-field .puddle{border:0;background:transparent;box-shadow:none}.painted-art .puddle-field .puddle>svg{width:120%;height:160%;position:absolute;left:-10%;top:-30%;pointer-events:none}.painted-art .puddle-field .target-puddle{filter:drop-shadow(0 0 12px #ffdf67);box-shadow:none}.painted-art .fort-blanket,.painted-art .fort-opening,.painted-art .fort-pillow,.painted-art .fort-lights{display:none}.painted-art .fort-preview>svg:not([data-pose]){position:absolute;left:0;bottom:0;width:100%;height:100%;z-index:1}.painted-art .fort-preview>svg[data-pose]{z-index:2}.painted-art .fort-preview.stage-0>svg:not([data-pose]){opacity:.15}.painted-art .fort-preview.stage-1>svg:not([data-pose]){opacity:.5}.painted-art .fort-preview.stage-2>svg:not([data-pose]){opacity:.8}.painted-art .game-card-art>svg:first-child{position:absolute;width:125px;height:130px;left:12px;top:20px}.painted-art .game-card-art>svg:last-child{left:auto;right:7px;bottom:-4px;top:auto;width:200px;height:220px}.painted-art .game-card-art{background:linear-gradient(135deg,#9b84b6,#e6bfaa)}.painted-art .game-fishing .game-card-art{background:linear-gradient(#a99bc7,#84b8c5)}.painted-art .game-puddles .game-card-art{background:linear-gradient(#a99bc7,#dbb9a2)}
@media(max-width:700px){.brand-icon{width:43px;height:43px;border-radius:12px}}
.parents-section{margin:42px 0}.parent-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.parent-card{display:flex;align-items:center;gap:20px;padding:22px;border:1px solid #e2d7c5;border-radius:24px;background:#fffaf0}.parent-card>div{flex:1}.parent-card p{font-size:14px;margin:10px 0 18px;color:#82727e}.parent-portrait{flex:0 0 43%;padding:0;background:transparent;line-height:0;min-width:0}.parent-portrait svg{width:100%;height:auto}.parent-card[data-waving] .parent-portrait{animation:win-appear .35s ease-out}.parent-card h3{font-size:30px}@media(max-width:900px){.parent-grid{grid-template-columns:1fr}.parent-card{max-width:650px;margin:auto;width:100%}.parent-portrait{flex-basis:36%}}@media(max-width:450px){.parent-card{gap:12px;padding:16px}.parent-card p{font-size:12px}.parent-card .button{font-size:12px;padding:12px}.parent-card h3{font-size:25px}}
.book-cover-cast{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden}.cover-pup{position:absolute;left:var(--cover-x);bottom:var(--cover-bottom);width:var(--cover-width);padding:0;background:transparent;line-height:0;transform:rotate(var(--cover-angle));transform-origin:50% 90%}.cover-pup>svg{display:block;width:100%;height:auto}.cover-pup[data-cover-puppy="Springer"]{z-index:2}.cover-pup[data-talk]{pointer-events:auto;touch-action:manipulation}.cover-pup[data-talk]:active{filter:brightness(1.06)}.story-cover>.book-cover-cast{border-radius:13px 13px 0 0}
.puddle-field{contain:layout paint}.puddle-puppy,.puddle-puppy>svg,.lake-fish svg{filter:none!important}.puddle-puppy.being-carried{will-change:transform;animation:none!important}.painted-art .puddle-field .target-puddle{animation:none;filter:none;box-shadow:none}.painted-art .puddle-field .target-puddle:before{content:'';position:absolute;inset:0;border:3px solid #ffe18a;border-radius:50%;box-shadow:0 0 13px #ffe18a;pointer-events:none;animation:puddle-beacon 1.8s ease-in-out infinite}.reading-scene .being-moved{cursor:grabbing}@keyframes puddle-beacon{50%{opacity:.45;transform:scale(1.05)}}
.pose-dialog{width:min(680px,calc(100% - 24px));padding:30px 24px;max-height:90dvh}.pose-dialog h2{font-size:29px;margin:4px 35px 0 0}.pose-dialog p{margin:8px 0 14px}.pose-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.pose-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#f6efdf;border:2px solid transparent;border-radius:14px;min-height:98px;padding:5px;touch-action:manipulation;color:#6c5775}.pose-grid button[aria-pressed=true]{border-color:#a68ab5;background:#eae0ee}.pose-grid svg{width:100%;height:95px}.pose-grid span{font-size:11px;line-height:1.3}.pose-dialog .close-dialog{right:12px;top:12px}@media(max-width:480px){.pose-grid{gap:6px}.pose-grid svg{height:65px}.pose-grid button{min-height:85px}.pose-dialog{padding:25px 14px}.pose-grid span{font-size:10px}}
.editor-banner,.scene-layout-panel{background:#fff8e8;border:2px solid #b29aba;border-radius:18px;padding:20px;margin:18px 0;color:#66516e}.editor-banner a,.scene-layout-panel a{color:#7d5d91;text-decoration:underline}.editor-heading{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.editor-heading>div{flex:1}.editor-heading p{font-size:12px;margin:4px 0}.editor-heading a{font-size:12px;min-height:44px;display:flex;align-items:center}.editor-tools{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:18px 0}.editor-tools label{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:110px;flex:1}.editor-tools select,.editor-tools input{width:100%;max-width:200px;padding:10px;border:1px solid #d6c7d7;border-radius:8px;background:#fffdf8;min-height:44px}.editor-tools input[type=range]{padding:0;accent-color:#8b6c9b}.editor-tools output{font-size:11px;color:#907b95}.editor-status{font-size:13px}.scene-layout-panel h3{font-size:18px;margin:15px 0}.scene-layout-panel .pose-grid{max-width:740px}.layout-editing [data-layout-key]{pointer-events:all;cursor:grab;touch-action:none}.layout-editing [data-scene-effect]{pointer-events:none}.layout-editing .scene-props{pointer-events:all}.layout-handles rect,.layout-handles line{fill:none;stroke:#f7ecff;stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:none}.layout-handles circle{fill:#9c70b4;stroke:#fff4d5;stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:all;cursor:grab;touch-action:none}.layout-editing .scene-play-hint{display:none}@media(max-width:700px){.scene-layout-panel{padding:14px}.editor-tools{gap:10px}.editor-tools label{min-width:calc(50% - 10px)}.editor-tools .button{min-width:45%}}
.element-library{margin:18px 0;padding:12px;border:1px solid #ccb7d3;border-radius:14px;background:#fcf7ee}.element-library>summary{cursor:pointer;min-height:44px;display:list-item;padding:10px;font-weight:650;color:#775886}.element-library[open]{max-height:460px;overflow:auto;overscroll-behavior:contain}.element-library>p{font-size:12px;margin:8px}.element-library-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.element-library-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#f2e9dc;border:1px solid #e0d1bd;border-radius:12px;padding:6px;min-height:100px;color:#68536e;touch-action:manipulation}.element-library-grid svg{width:100%;height:75px;pointer-events:none}.element-library-grid span{font-size:11px;line-height:1.25;pointer-events:none}.editor-element-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.editor-element-actions .button{font-size:12px;padding:10px 13px}.editor-element-actions button:disabled{opacity:.4;cursor:default}.editor-element-actions [hidden]{display:none}.scene-added-layer [data-character]{touch-action:none}@media(max-width:650px){.element-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.element-library-grid svg{height:65px}.element-library-grid button{min-height:92px}.element-library[open]{max-height:390px}.editor-element-actions .button{font-size:11px}}
.reading-scene.layout-editing,.reading-scene.layout-editing>svg{touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.reading-scene.layout-editing{cursor:default}

.editor-tools [data-flip-axis][aria-pressed=true]{background:#e2e8d8;color:#465b3e;box-shadow:inset 0 0 0 2px #8ca083}

.background-library{margin:14px 0}.background-library summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}.background-library p{font-size:13px}.background-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.background-library-grid button{padding:8px;border:2px solid transparent;border-radius:12px;background:#f6efdf;color:#66516e;min-height:60px;touch-action:manipulation}.background-library-grid button[aria-pressed=true]{border-color:#8ca083;background:#e2e8d8}.background-library-grid svg{display:block;width:100%;height:auto;border-radius:8px}.background-library-grid span{display:block;padding:6px;font-size:13px}@media(max-width:600px){.background-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.editor-quick-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px;margin:0 0 14px;border:2px solid #b29aba;border-radius:16px;background:#fff8e8;color:#66516e}.editor-quick-tools strong{flex:1;min-width:140px;font-size:15px}.editor-quick-tools .button{min-height:48px;padding:12px 16px;font-size:14px}.background-library,.element-library,.editor-tools{scroll-margin-top:16px}@media(max-width:600px){.editor-quick-tools strong{flex-basis:100%}.editor-quick-tools .button{flex:1;min-width:130px}}

.pair-level{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:12px 16px;margin-bottom:14px;border-radius:14px;background:#fbefc7;color:#75591f}.pair-level strong{font-size:20px}.pair-level span{font-size:15px}.pair-level small{flex-basis:100%;font-size:12px}.play-pairs .memory-board{grid-template-columns:repeat(var(--pair-columns,4),minmax(0,1fr))}.play-pairs .memory-board-large .memory-card{min-height:100px}.play-pairs .memory-board-large .card-front>svg{height:100px}.pair-badge{position:absolute;right:6px;bottom:6px;background:#fff0b1;border:2px solid #cba74a;border-radius:20px;padding:3px 8px;color:#75591f;font-size:16px}.play-hide .hiding-spots{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:600px){.play-pairs .memory-board-large{grid-template-columns:repeat(3,minmax(0,1fr))}.play-pairs .memory-board-large .memory-card{min-height:90px}.play-pairs .memory-board-large .card-front>svg{height:80px}.play-hide .hiding-spots{grid-template-columns:repeat(2,minmax(0,1fr))}}

.brand,#grownups,.book-settings{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.brand img{-webkit-user-drag:none}

.reading-scene,.reading-scene>svg{touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

/* Admin tools remain beside the artwork; public reading keeps its own layout. */
.copy-scene-library{margin:10px 0;padding:10px;border:1px solid #d6c7d7;border-radius:12px;background:#fffdf8}
.copy-scene-library label{display:block;margin:10px 0;font-size:13px}
.copy-scene-library select{display:block;width:100%;min-height:44px;padding:8px;border:1px solid #d6c7d7;border-radius:8px;background:#fffdf8}
.copy-scene-library p{font-size:12px;line-height:1.5}
[data-copy-preview] .reading-scene{height:150px!important;min-height:0!important;pointer-events:none;margin:8px 0}
[data-copy-preview] .reading-scene>svg{width:100%;height:100%;object-fit:contain}
[data-copy-preview] figcaption,[data-copy-preview] .scene-play-hint{display:none}
@media(min-width:700px){
 body.story-editor-open main{max-width:1600px!important;padding:12px!important}
 body.story-editor-open .reader{display:grid;grid-template-columns:clamp(240px,22vw,300px) minmax(0,1fr);gap:16px;padding:0}
 body.story-editor-open .book-topline{grid-column:1/-1;margin:0;min-height:48px}
 body.story-editor-open .editor-quick-tools{grid-column:1/-1;margin:0;padding:10px}
 body.story-editor-open .reading-page{grid-column:2;grid-row:3;height:calc(100dvh - 196px);min-height:400px;align-self:start}
 body.story-editor-open .scene-layout-panel{grid-column:1;grid-row:3;margin:0;padding:14px;max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain;position:sticky;top:12px;min-width:0}
 body.story-editor-open .reader-status,body.story-editor-open .book-controls{grid-column:2;margin:0}
 body.story-editor-open .editor-heading{gap:6px}
 body.story-editor-open .editor-heading a{font-size:11px;min-height:32px}
 body.story-editor-open .editor-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
 body.story-editor-open .editor-tools label{min-width:0}
 body.story-editor-open .editor-tools label:first-child{grid-column:1/-1}
 body.story-editor-open .editor-tools input,body.story-editor-open .editor-tools select{max-width:none}
 body.story-editor-open .scene-layout-panel .button{font-size:12px;padding:10px;min-height:44px;min-width:0}
 body.story-editor-open .editor-element-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 body.story-editor-open .scene-layout-panel summary{padding:12px 0;font-size:14px;font-weight:700}
 body.story-editor-open .editor-status{font-size:12px;line-height:1.5}
 body.story-editor-open .pose-grid,body.story-editor-open .element-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.story-editor-open .background-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:700px){
 body.story-editor-open .editor-heading{display:block}
 body.story-editor-open .editor-heading>div{width:100%}
 body.story-editor-open .editor-heading a{display:inline-flex;margin-right:10px;max-width:100%;white-space:normal}
}
.pose-grid svg{overflow:hidden}
.thought-mask-tools{grid-column:1/-1;flex-basis:100%}
.thought-mask-tools small{font-size:11px;line-height:1.5;font-weight:400}
.thought-mask-tools button{margin-top:4px}
.scene-framing-tools{margin:12px 0;padding:10px;border:1px solid #d6c7d7;border-radius:12px;background:#fffdf8}
.scene-framing-tools p{font-size:12px;line-height:1.5}
.scene-framing-tools label{display:block;margin:10px 0;font-size:12px}
.scene-framing-tools input,.scene-framing-tools select{display:block;width:100%;min-height:44px;margin-top:5px}
.scene-framing-tools .button{width:100%;margin:4px 0}
.scene-framing-tools [aria-pressed=true]{background:#e2e8d8;box-shadow:inset 0 0 0 2px #8ca083}
.framing-picking,.framing-picking *{cursor:crosshair!important}
.scene-framing-dialog{width:max-content;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px;border:2px solid #b29aba;border-radius:18px;background:#fff8e8;color:#66516e;overflow:auto}
.scene-framing-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.scene-framing-dialog header strong{font-size:16px}
.scene-framing-dialog p{font-size:12px;text-align:center;margin:10px 0 0}
.scene-preview-options{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.scene-preview-options label{font-size:12px;display:grid;gap:4px;flex:1}
.scene-preview-options select{font:inherit;min-height:36px;max-width:100%;border:1px solid #d6c7d7;border-radius:8px;background:#fffdf8;padding:4px}
.scene-preview-navigation{display:flex;align-items:end;gap:8px;margin:0 0 12px}
.scene-preview-navigation label{display:grid;gap:4px;min-width:0;flex:1;font-size:12px}
.scene-preview-navigation select{font:inherit;min-height:44px;width:100%;max-width:100%;border:1px solid #d6c7d7;border-radius:8px;background:#fffdf8;padding:4px}
.scene-preview-navigation .button{font-size:12px;min-height:44px;padding:10px 12px;white-space:nowrap}
@media(max-width:700px){.scene-preview-navigation{flex-wrap:wrap}.scene-preview-navigation label{order:-1;flex-basis:100%}}
.scene-framing-picture{position:relative;margin:auto;overflow:hidden;border-radius:10px;background:#f2ecdf;box-shadow:0 0 0 1px #e1d5bf}
.scene-framing-picture iframe{display:block;border:0;max-width:none;transform-origin:0 0;position:absolute;inset:0}
.scene-layers-tools{margin:12px 0;padding:10px;border:1px solid #d6c7d7;border-radius:12px;background:#fffdf8}
.scene-layers-tools>p{font-size:12px;line-height:1.5}
.scene-layer-row{display:grid;grid-template-columns:minmax(0,1fr) 32px 32px 42px;gap:3px;align-items:stretch;padding:4px 0 4px calc(var(--layer-depth)*10px);border-bottom:1px solid #e6dce4}
.scene-layer-row button{min-height:42px;padding:4px;border:1px solid #ded0df;border-radius:7px;background:#f4ecdf;color:#66516e;font-size:12px;touch-action:manipulation}
.scene-layer-row [data-layer-select]{text-align:left;min-width:0}
.scene-layer-row span{display:block;overflow-wrap:anywhere}
.scene-layer-row small{display:block;font-size:10px;color:#8b7a90}
.scene-layer-row.is-selected [data-layer-select]{background:#e8dfee;border-color:#9c70b4}
.scene-layer-row button:disabled{opacity:.35}
.scene-layer-background{padding:10px 4px;font-size:11px;color:#8b7a90}
.scene-layer-row{grid-template-columns:32px minmax(0,1fr) 32px 32px 42px}
.scene-layer-drag{touch-action:none!important;cursor:grab;font-size:22px!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.scene-layer-row.layer-dragging{opacity:.4}
.scene-layer-row.layer-drop-target{outline:2px solid #9c70b4;outline-offset:1px;background:#eee4f3}
.scene-layer-ghost{position:fixed;z-index:10000;width:170px;padding:10px;border:2px solid #9c70b4;border-radius:10px;background:#fff8e8;color:#66516e;font-size:13px;pointer-events:none;box-shadow:0 6px 20px #55426740}
button.scene-layer-background{display:block;width:100%;min-height:44px;border:0;background:transparent;text-align:left;touch-action:manipulation}

.vehicle-mask-tools{grid-column:1/-1;padding:10px;border:1px solid #d6c7d7;border-radius:12px;background:#fffdf8;margin:8px 0}.vehicle-mask-tools h3{font-size:15px}.vehicle-mask-tools p{font-size:12px;line-height:1.5}.vehicle-mask-tools label{display:block;font-size:12px;margin:8px 0}.vehicle-mask-tools select{display:block;width:100%;min-height:44px;margin-top:4px}.vehicle-mask-tools .button{width:100%;margin:3px 0}
