@font-face{font-family:Nunito;src:url('assets/nunito.woff2') format('woff2');font-weight:400 900;font-display:swap}
:root{font-family:Nunito,sans-serif;color:#49334e;background:#5b337b;--ink:#49334e;--cream:#fff9e9;--rose:#ad356b;--teal:#087f85;--purple:#663a91;--gold:#ffd478;--curve:cubic-bezier(.18,.88,.27,1.22);--quick:cubic-bezier(.22,.8,.2,1);color-scheme:light}
*{box-sizing:border-box}body{margin:0;padding:12px;min-width:280px;background:radial-gradient(ellipse at 50% 0,#b767a1,#6d3d8c 70%,#4b2a68);min-height:100dvh}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #137d88;outline-offset:5px}button:active:not(:disabled){transform:translateY(3px) scale(.98)}::selection{background:#efd28c;color:#51306a}::-webkit-scrollbar{width:9px}::-webkit-scrollbar-thumb{background:#bb83ae;border-radius:9px}::-webkit-scrollbar-track{background:#f3e9ec}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:900;text-wrap:balance}h2{font-size:30px;line-height:1.2}h3{font-size:22px}.icon{width:30px;height:30px;display:inline-block;vertical-align:middle}.arcade-shell{position:relative;max-width:1560px;margin:auto;background:var(--cream);border:2px solid #ffdeb8;border-radius:29px;overflow:hidden;box-shadow:0 14px 50px #28113955,0 0 0 5px #eab5b526}.hud{height:78px;display:flex;align-items:center;gap:13px;padding:10px 22px;background:linear-gradient(#fffdf5,#f7e7ed);border-bottom:2px solid #ead2d5;position:relative;z-index:9}.brand{display:flex;align-items:center;flex-shrink:0}.brand img{width:128px;height:auto}.hud-button{width:48px;height:48px;flex-shrink:0;border-radius:17px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(#fffdf8,#f5dfe9);border:2px solid #fffdf7;box-shadow:0 3px 0 #b98ca8,0 5px 9px #6c3d7a1c;color:#67406f;transition:transform .16s var(--curve),filter .16s var(--quick)}.hud-button:hover{filter:brightness(1.05);transform:translateY(-2px)}.hud-button .icon{width:25px;height:25px}.hud-button[aria-pressed=true]{background:linear-gradient(#bdebd6,#91d4bc);color:#235c55}.hud-right{margin-left:auto;display:flex;align-items:center;gap:10px}.level-map-button{background:transparent;display:flex;align-items:center;gap:10px;min-height:48px;padding:5px 10px;border-radius:15px}.level-map-button span{font-size:13px;font-weight:800;color:#805b79}.level-map-button strong{font-size:18px;color:#653570}.star-counter{min-width:76px;height:48px;display:flex;gap:6px;align-items:center;justify-content:center;border-radius:22px;background:linear-gradient(#fff4c9,#ffde8e);border:2px solid #fff8d9;box-shadow:0 3px 0 #b68b48;color:#704b22;font-size:19px;font-weight:900}.star-counter .icon{width:31px;height:31px;stroke:#a67020;stroke-width:2}.star-counter.rewarded{animation:counter-pop .65s var(--curve) 1}.game-footer{display:flex;justify-content:space-between;gap:15px;background:#fffaf0;padding:11px 24px;font-size:12px;font-weight:700;color:#78566f;min-height:39px}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip:focus{display:block;padding:12px;background:white}.notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);width:max-content;max-width:min(92vw,560px);padding:14px 20px;border:2px solid #f9d998;background:#623979;color:#fffaf0;border-radius:20px;box-shadow:0 8px 25px #321b4750;z-index:40;font-size:14px;font-weight:800}.no-script{padding:30px;background:#fff9e9}.boot-screen{display:grid;place-items:center;gap:24px;min-height:550px;padding:24px 18px;background:#f2e3ef;font-weight:900}.boot-orb{display:grid;place-items:center;width:90px;height:100px;border-radius:28px;background:linear-gradient(#ffdd84,#eeaf46);color:#6b4124;font-size:58px;box-shadow:0 7px 0 #bb7a40;animation:toy-bob 2.2s var(--quick) 3}
#magic-canvas{position:fixed;inset:0;z-index:18;pointer-events:none;width:100%;height:100%}
.primary,.secondary{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:66px;min-width:210px;padding:15px 28px;border-radius:27px;font-size:22px;font-weight:900;text-decoration:none;letter-spacing:-.015em;transition:transform .16s var(--curve),filter .16s var(--quick);overflow:hidden;isolation:isolate}.primary{color:#fffdf5;border:3px solid #ffe9ab;background:linear-gradient(180deg,#085b33 0%,#07522f 42%,#06472a 100%);box-shadow:inset 0 2px 1px #fff9ca80,0 6px 0 #043c25,0 9px 18px #163d3d42;text-shadow:0 2px 1px #07583b66}.primary:before{content:'';position:absolute;inset:3px 6px 50%;border-radius:22px;background:linear-gradient(#fff9e414,#ffffff00);z-index:-1}.primary:hover{filter:brightness(1.08);transform:translateY(-2px)}.primary:active{box-shadow:inset 0 2px 1px #fff9ca80,0 2px 0 #043c25,0 5px 12px #163d3d35;transform:translateY(4px)}.primary .icon{width:29px;height:29px}.primary.small{min-height:54px;min-width:160px;font-size:18px;padding:11px 23px}.secondary{background:linear-gradient(#fffdf6,#f2dfe9);border:2px solid #fff7f5;color:#744974;box-shadow:0 4px 0 #be98b4,0 6px 14px #5a326522;font-size:17px;min-width:140px;min-height:56px;padding:12px 21px}.secondary .icon{width:23px;height:23px}.primary-shine:after{content:'';position:absolute;inset:-50% auto -50% -50%;width:35%;background:linear-gradient(90deg,#fff0,#fff2,#fff0);opacity:.5;z-index:-1;transform:rotate(25deg);animation:button-shine 4s var(--quick) 3;pointer-events:none}
/* The welcome is a world, not an information card. */
.home-world{position:relative;min-height:565px;background:#79b0b2 url('assets/arcade/hero.webp') center 57%/cover;isolation:isolate;overflow:hidden}.home-world:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#152e5124 0%,#27473800 50%,#1e453618 100%);z-index:-1}.home-title{position:absolute;left:50%;top:25px;transform:translateX(-50%);text-align:center;width:600px;max-width:90%;font-size:clamp(43px,5.2vw,74px);line-height:1;letter-spacing:-.045em;color:#fff9d9;-webkit-text-stroke:1.5px #8a4b7e;text-shadow:0 3px 0 #8f5480,0 6px 0 #6f3d6b,0 9px 18px #30274850}.home-title .title-small{display:block;font-size:.58em;margin-bottom:6px;color:#ffed9c;-webkit-text-stroke:1px #906040;letter-spacing:-.02em}.home-actions{position:absolute;bottom:31px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:15px;width:max-content;max-width:94%;z-index:4}.home-actions .primary{min-width:260px;min-height:74px;font-size:25px}.continue-label{border:1px solid #fff1c89c;background:#4c366bbd;backdrop-filter:blur(6px);padding:7px 17px;border-radius:20px;color:#fff7db;font-size:14px;font-weight:900;box-shadow:0 3px 10px #201b3330}.home-lantern{position:absolute;width:22px;height:22px;border-radius:50%;background:#fff7bd;box-shadow:0 0 18px 9px #ffcc6355;opacity:.7;animation:lantern-breathe 3.3s var(--quick) infinite}.home-lantern.one{left:18%;top:25%}.home-lantern.two{right:13%;top:19%;animation-delay:-1.6s}.home-lantern.three{left:48%;top:44%;width:8px;height:8px;animation-delay:-.7s}.chapter-strip{position:relative;display:grid;grid-template-columns:repeat(6,1fr);gap:17px;padding:25px 35px 23px;background:linear-gradient(#fff8e7,#f5e6ee);border-top:3px solid #ffe7ad}.chapter-door{background:transparent;text-align:center;padding:0 0 8px;border-radius:21px;transition:transform .18s var(--curve)}.chapter-door:hover{transform:translateY(-6px)}.door-image{height:105px;width:100%;max-width:170px;margin:0 auto 11px;border-radius:48% 48% 36% 36%;background:var(--door-image) center/cover;position:relative;border:3px solid #ffefbd;box-shadow:0 4px 0 #ba9177,0 6px 15px #603a6c2d}.door-image:after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 2px 2px #fff9}.door-image .prop-art{width:66px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);filter:drop-shadow(0 4px 3px #47335b60)}.chapter-door strong{display:block;font-weight:900;font-size:15px;color:#603765}.chapter-door small{display:block;margin-top:4px;font-size:12px;font-weight:800;color:#80566f}.door-progress{display:flex;justify-content:center;gap:3px;margin-top:8px}.door-progress i{width:5px;height:5px;border-radius:50%;background:#d4bdcb}.door-progress i.done{background:#cf8d33;box-shadow:0 0 3px #ffda87}
/* Sprite windows preserve clean generated alpha and the actual grid cell ratio. */
.art-frame{display:block;aspect-ratio:var(--aspect,1);background-image:var(--atlas);background-size:calc(var(--columns)*100%) calc(var(--rows)*100%);background-position:calc(var(--col)*100%/(var(--columns) - 1)) calc(var(--row)*100%/(var(--rows) - 1));background-repeat:no-repeat;flex-shrink:0}.cat-art{width:100%;filter:drop-shadow(0 9px 5px #2a3a2c30)}.family-art{width:100%}.prop-art{width:100%;filter:drop-shadow(0 6px 4px #3d34553b)}
/* A level is one live theatre and one tactile toy board. */
.play-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 25px;background:linear-gradient(#f8f0e7,#f1e2ec);border-bottom:1px solid #e1c6d5;grid-column:1/-1;min-height:60px}.back-chapter{display:flex;align-items:center;gap:8px;background:transparent;font-weight:900;color:#6c4275;padding:8px 5px;min-height:44px;border-radius:12px;font-size:15px}.back-chapter .icon{width:23px;height:23px}.level-pill{display:flex;gap:11px;align-items:center;padding:7px 15px;background:#fff9ec;border:2px solid #eed2a2;border-radius:22px;font-weight:900;color:#79502f;font-size:15px}.level-pill .icon{width:23px;height:23px}.level-progress{display:flex;gap:6px}.level-progress i{width:10px;height:10px;background:#d6bbd4;border-radius:50%;box-shadow:inset 0 2px 2px #8a5e8b22}.level-progress i.done{background:#f4c45e;box-shadow:0 0 6px #f9d77d66}.level-progress i.current{background:#a46ac9;outline:2px solid #fff3d2;outline-offset:2px}.level-layout{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);background:#fffaeb;min-height:525px}.live-scene{position:relative;min-height:525px;background:#83ac85 var(--scene-image) center 55%/cover;overflow:hidden;isolation:isolate}.scene-light{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;background:radial-gradient(ellipse at 36% 35%,#fff2a600 15%,#ffe4a600 70%);opacity:0;z-index:2}.scene-ground{position:absolute;left:26%;bottom:29px;width:30%;height:18px;border-radius:50%;background:#29462d2e;filter:blur(5px)}.scene-cat{position:absolute;left:24%;bottom:18px;width:245px;max-width:48%;padding:0;border:0;background:transparent;transform-origin:50% 88%;z-index:4;touch-action:manipulation}.scene-cat.idle{animation:cat-breathe 3.6s var(--quick) infinite}.scene-cat .art-frame{pointer-events:none}.scene-cat.reacting{animation:cat-react .5s var(--curve) 1}.scene-friend{position:absolute;right:6%;bottom:22px;width:130px;max-width:26%;padding:0;background:linear-gradient(180deg,#fff9e800,#fff1c55c);border-radius:40% 40% 30% 30%;border:0;z-index:4;filter:drop-shadow(0 5px 5px #41394c27)}.scene-friend:after{content:attr(data-name);position:absolute;bottom:-3px;left:50%;transform:translateX(-50%);padding:4px 11px;background:#fff9e9;border:1px solid #f3d395;border-radius:15px;box-shadow:0 2px 3px #62466022;font-size:12px;font-weight:900;color:#714474}.scene-object{position:absolute;width:120px;left:10%;bottom:100px;z-index:3;transform-origin:50% 75%;pointer-events:none}.scene-object.sky{left:10%;top:76px;bottom:auto;width:104px}.scene-object .art-frame{width:100%}.scene-bubble{position:absolute;top:21px;left:50%;transform:translateX(-50%);width:max-content;max-width:92%;padding:12px 20px;border-radius:23px;background:linear-gradient(#fffef6,#fff0cf);border:2px solid #ffe2a5;box-shadow:0 4px 12px #47334a25;text-align:center;font-weight:900;font-size:16px;z-index:7}.scene-bubble:after{content:'';position:absolute;bottom:-9px;left:50%;width:14px;height:14px;transform:rotate(45deg);background:#fff0cf;border-right:2px solid #ffe2a5;border-bottom:2px solid #ffe2a5}.scene-word{position:absolute;top:25%;left:50%;transform:translateX(-50%);font-size:clamp(32px,4vw,54px);font-weight:900;color:#fffbdf;text-shadow:0 3px 0 #844577,0 6px 12px #2e254b55;-webkit-text-stroke:1px #8d4d7c;letter-spacing:.03em;opacity:0;z-index:5;white-space:nowrap}.scene-magic{position:absolute;left:50%;top:52%;width:180px;height:180px;transform:translate(-50%,-50%);border:2px solid #fff0;opacity:0;border-radius:50%;pointer-events:none;z-index:2}.scene-mini-letters{position:absolute;left:30%;top:38%;display:flex;gap:13px;font-weight:900;font-size:32px;color:#fff0b7;text-shadow:0 3px 0 #975278;opacity:0;z-index:6}.story-caption{position:absolute;bottom:11px;left:12px;right:12px;padding:9px 15px;border-radius:15px;background:#fff9e9f2;border:1px solid #ffe1ad;font-size:14px;font-weight:800;text-align:center;line-height:1.5;z-index:8;display:none}.live-scene.story-playing .story-caption{display:block}.live-scene.story-playing .scene-cat{bottom:70px}.live-scene.story-playing .scene-friend{bottom:67px}.live-scene.story-playing .scene-word{animation:word-awake 1.3s var(--quick) 1}.live-scene.story-playing .scene-light{animation:light-core .8s var(--quick) 1}.live-scene.story-playing .scene-object{animation:prop-arrive .85s var(--curve) 1}.live-scene.story-playing.action-hop .scene-object{animation:ball-play 2s var(--quick) 1}.live-scene.story-playing.action-hop .scene-cat{animation:cat-pounce 1.8s var(--quick) 1}.live-scene.story-playing.action-grow .scene-object{animation:flower-grow 1.8s var(--curve) 1}.live-scene.story-playing.action-flutter .scene-object{animation:butterfly-fly 3s linear 1}.live-scene.story-playing.action-cuddle .scene-object{animation:heart-share 2.3s var(--quick) 1}.live-scene.story-playing.action-cuddle .scene-cat{animation:cat-cuddle 2.3s var(--quick) 1}.live-scene.story-playing.action-glow .scene-light{animation:sunlight 3s var(--quick) 1}.live-scene.story-playing.action-glow .scene-object{animation:sun-rise 2.5s var(--quick) 1}.live-scene.story-playing.action-splash .scene-object{animation:boat-sail 2.8s var(--quick) 1}.live-scene.story-playing.action-splash .scene-magic{opacity:1;border-color:#c1f8ffb3;animation:water-ripple 2.4s var(--quick) 1}.live-scene.story-playing.action-read .scene-mini-letters{animation:letters-fly 2.7s var(--quick) 1}.live-scene.story-playing.action-read .scene-object{animation:book-open 2.7s var(--quick) 1}.live-scene.story-playing.action-dance .scene-cat,.live-scene.story-playing.action-giggle .scene-cat{animation:happy-dance 1.5s var(--quick) 2}.live-scene.story-playing.action-peek .scene-object{animation:peek-around 2.3s var(--quick) 1}.live-scene.story-playing.action-listen .scene-cat{animation:listen-lean 2.6s var(--quick) 1}.live-scene.story-playing.action-sleep .scene-cat{animation:sleep-settle 2.3s var(--quick) 1}.live-scene.story-playing.action-together .scene-magic,.live-scene.story-playing.action-portal .scene-magic{opacity:1;border:8px solid #ffe6a5;box-shadow:0 0 35px #f8c981bb,inset 0 0 35px #f8c98188;animation:portal-open 2.8s var(--quick) 1}.live-scene.story-playing.action-careful .scene-object{animation:careful-egg 3s var(--quick) 1}.live-scene.story-playing.action-meow .scene-cat{animation:happy-dance 1s var(--quick) 1}
.puzzle-board{position:relative;padding:30px 24px 24px;background:radial-gradient(ellipse at 50% 25%,#fffdf3,#fff5df 76%);text-align:center;display:flex;flex-direction:column;justify-content:center;min-width:0;border-left:3px solid #f4dca7;isolation:isolate}.puzzle-board:before{content:'';position:absolute;inset:12px;border:1px solid #efddb6;border-radius:25px;pointer-events:none;z-index:-1}.board-heading{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:22px;min-height:44px}.board-heading h1{font-size:19px;font-weight:900;line-height:1.4;letter-spacing:-.015em;max-width:360px}.listen-button{width:44px;height:44px;border-radius:50%;flex-shrink:0;background:linear-gradient(#e8d4f4,#ceb0e5);border:2px solid #fff5f6;box-shadow:0 3px 0 #9971b6;color:#643b7f;display:grid;place-items:center}.listen-button .icon{width:23px;height:23px}.slots{display:flex;flex-wrap:nowrap;justify-content:center;gap:8px;min-height:92px;margin:0 auto 18px;max-width:100%;width:100%}.letter-slot{display:flex;align-items:center;justify-content:center;flex:0 1 72px;min-width:0;height:88px;border-radius:21px;border:2px dashed #bba3c2;background:#e8dbed;font-size:52px;font-weight:900;line-height:1;color:#75516b;position:relative;user-select:none;box-shadow:inset 0 3px 6px #794b9820}.letter-slot.current-slot{border-color:#b390ad;background:#f4e8ed}.letter-slot.given{background:#e0eddf;border:2px solid #c4dcc3;color:#4b6849;box-shadow:none}.letter-slot.filled{background:linear-gradient(180deg,var(--tile-light),var(--tile-color));border:2px solid #fff2cd;color:var(--tile-ink);box-shadow:inset 0 3px 1px #ffffffa1,0 5px 0 var(--tile-edge),0 8px 12px #6841621c}.letter-slot.just-landed{animation:snap-squash .43s var(--curve) 1}.letter-slot.hinted{outline:3px solid #00858c;outline-offset:4px}.letter-slot .question{font-size:32px;color:#75516b}.slots.compact{gap:6px}.slots.compact .letter-slot{flex-basis:48px;height:65px;font-size:33px;border-radius:14px}.slots.sentence-slots{flex-wrap:wrap;gap:8px;min-height:95px}.sentence-slots .letter-slot{flex:0 1 auto;min-width:70px;width:auto;padding:0 11px;height:49px;font-size:18px;border-radius:15px}.sentence-slots .letter-slot .question{font-size:20px}.toy-rack{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:15px 12px;min-height:108px;max-width:600px;width:100%;margin:0 auto;padding:14px 0 7px;perspective:650px}.toy-tile{position:relative;display:flex;align-items:center;justify-content:center;width:70px;height:85px;padding:0 0 13px;border-radius:21px;background:linear-gradient(165deg,var(--tile-light),var(--tile-color) 55%,var(--tile-edge));border:2px solid #fff1c8;color:var(--tile-ink);font-size:51px;font-weight:900;line-height:1;box-shadow:inset 0 3px 1px #ffffffb8,inset 0 -3px 5px #845b5e1a,0 6px 0 var(--tile-edge),0 9px 12px #59355b30;user-select:none;touch-action:none;transition:transform .14s var(--curve),filter .14s var(--quick);transform-origin:50% 80%;z-index:2}.toy-tile:before{content:'';position:absolute;inset:5px 7px auto;height:22px;border-radius:14px;background:linear-gradient(#fff8,#fff0);pointer-events:none}.tile-glyph{position:relative;z-index:2;text-shadow:0 1px 0 #ffffff4d}.toy-tile:hover{transform:translateY(-7px) rotate(-4deg) scale(1.04);filter:brightness(1.05)}.tile-eyes{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:3}.tile-eyes i{display:block;width:10px;height:10px;border-radius:50%;background:#fffdf5;box-shadow:0 1px 1px #633f6733;position:relative;animation:toy-blink 5.4s linear infinite;animation-delay:var(--blink-delay,0s)}.tile-eyes i:after{content:'';position:absolute;width:4px;height:5px;border-radius:50%;left:3px;top:3px;background:#4d335c;transform:translateX(var(--look-x,0px))}.toy-tile.hinted{outline:3px solid #00858c;outline-offset:6px;animation:tile-invite .8s var(--curve) 2}.toy-tile.used{visibility:hidden;pointer-events:none}.toy-tile.drag-source{opacity:.22;transform:scale(.92)}.toy-tile.wrong{animation:gentle-no .38s var(--quick) 1}.toy-tile.token-word{width:auto;min-width:84px;max-width:100%;padding:10px 17px 14px;height:56px;font-size:19px;border-radius:17px}.token-word .tile-eyes{bottom:3px;gap:4px}.token-word .tile-eyes i{width:6px;height:6px}.token-word .tile-eyes i:after{width:3px;height:3px;left:2px;top:2px}.tile-ghost{position:fixed!important;margin:0!important;pointer-events:none;z-index:50;transform:rotate(var(--ghost-turn,5deg)) scale(1.1);filter:drop-shadow(0 10px 12px #40304e40);animation:none!important}.tile-ghost .tile-eyes i{animation:none;transform:scaleY(1.15)}.board-tools{display:flex;align-items:center;justify-content:center;gap:11px;margin-top:22px;flex-wrap:wrap}.board-tool{display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:9px 13px;border-radius:19px;border:1px solid #e8cee1;background:linear-gradient(#fffaf5,#f0e1ed);color:#795177;font-size:13px;font-weight:900;box-shadow:0 3px 0 #ceb1c9}.board-tool .icon{width:22px;height:22px}.board-status{font-size:14px;line-height:1.5;color:#386c65;min-height:27px;font-weight:900;margin:16px auto 0;max-width:440px}.board-status strong{font-weight:900}.board-hint-arrow{position:absolute;pointer-events:none;left:50%;top:0}.completion{display:flex;flex-direction:column;align-items:center;gap:13px}.completion-star{width:75px;height:75px;position:relative;filter:drop-shadow(0 0 14px #f3c86480)}.completion-star .prop-art{width:100%;height:100%}.completion h2{font-size:34px;color:#9c3b79;line-height:1.1;letter-spacing:-.025em}.completion-word{font-size:clamp(28px,3.6vw,44px);font-weight:900;color:#674086;line-height:1.2;max-width:100%;overflow-wrap:anywhere}.completion-word.sentence{font-size:24px;max-width:430px;line-height:1.5}.completion p{max-width:430px;font-size:16px;line-height:1.6;font-weight:800;color:#77546d}.completion-actions{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:11px}.completion-actions .primary{min-width:175px;min-height:58px;font-size:19px;padding:12px 22px}.completion-note{font-size:12px!important;color:#396e62!important}.completion-glow{position:absolute;inset:10px;border-radius:25px;pointer-events:none;box-shadow:inset 0 0 25px #f8d68d77;animation:completion-glow .8s var(--quick) 1}
/* The path is an invitation. Every level is reachable without a payment or wait. */
.map-world{position:relative;min-height:650px;background:linear-gradient(#2d295658,#294c4866),var(--scene-image) center/cover;padding:31px 33px 37px}.map-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;color:#fff8dd;text-shadow:0 2px 5px #41274a66;margin:0 auto 22px;max-width:1000px}.map-heading h1{font-size:38px;line-height:1.2;font-weight:900}.map-heading p{font-weight:800;font-size:15px;margin-top:9px}.map-heading .secondary{min-width:0;min-height:48px;font-size:14px;padding:9px 15px;text-shadow:none}.chapter-tabs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:30px}.chapter-tab{min-height:45px;padding:9px 16px;background:#fff4dfec;border:2px solid #ffe2a2;border-radius:18px;font-size:13px;font-weight:900;color:#725170;box-shadow:0 3px 0 #785279}.chapter-tab.active{background:linear-gradient(#dec3f5,#bc8cdb);color:#4e286d;border-color:#fff0c3}.level-path{position:relative;max-width:870px;margin:auto;display:grid;grid-template-columns:repeat(5,1fr);gap:45px 34px;padding:25px 25px 37px}.level-path:before{content:'';position:absolute;inset:25% 10%;border:18px solid #ffe2a780;border-radius:45% 30%;filter:drop-shadow(0 3px 2px #5b2b5755)}.level-node{position:relative;justify-self:center;width:106px;height:112px;background:transparent;padding:0;isolation:isolate}.node-disc{position:absolute;inset:8px 5px 6px;border-radius:35%;background:linear-gradient(#fff2b7,#edb95f);border:3px solid #fff1c4;box-shadow:inset 0 3px 1px #fffbdb,0 7px 0 #b17a45,0 11px 13px #3b255a3b;z-index:-1}.level-node strong{display:block;color:#764334;font-weight:900;font-size:37px;line-height:1;text-shadow:0 1px 0 #fff6d5}.level-node .node-stars{display:flex;justify-content:center;margin-top:9px;color:#9e6d49}.node-stars .icon{width:20px;height:20px}.level-node.complete .node-disc{background:linear-gradient(#acf1c8,#56b98f);box-shadow:inset 0 3px 1px #d6ffe7,0 7px 0 #2c8268,0 11px 13px #3b255a3b}.level-node.complete strong{color:#1c6752}.level-node.next .node-disc{outline:4px solid #fff3b4;outline-offset:4px;box-shadow:inset 0 3px 1px #fffbdb,0 7px 0 #b17a45,0 0 28px #ffe19788}.level-node.finale .node-disc{border-radius:50% 50% 30% 30%;background:linear-gradient(#f1c8ed,#c78bd7);box-shadow:inset 0 3px 1px #fff6e8,0 7px 0 #95619b,0 11px 13px #3b255a3b}.level-node:hover{transform:translateY(-5px) rotate(-4deg)}.map-foot{color:#fff9e8;font-size:14px;text-align:center;font-weight:800;line-height:1.6;text-shadow:0 2px 4px #472f54;max-width:650px;margin:0 auto}
dialog{border:3px solid #f3dca8;border-radius:28px;background:linear-gradient(#fffdf3,#fff2dd);color:var(--ink);width:min(570px,calc(100% - 24px));max-height:calc(100dvh - 30px);padding:25px;box-shadow:0 22px 80px #20122e70}dialog::backdrop{background:#2c194580;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:24px}.dialog-head h2{font-size:29px;letter-spacing:-.025em}.dialog-head p{font-size:14px;line-height:1.6;font-weight:800;margin-top:10px;color:#7e5a75}.dialog-head .hud-button{width:44px;height:44px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e8cddd;padding:10px 0;font-size:15px;font-weight:900}.setting-row label{padding:10px 0;min-height:44px}.setting-row label span{margin-left:7px;font-size:21px}.setting-row input[type=checkbox]{width:25px;height:25px;accent-color:#a2448a}.setting-row select{max-width:60%;min-height:44px;border:1px solid #c9a9c1;border-radius:12px;background:#fffaf1;color:#70456e;font-weight:800;font-size:13px;padding:8px}.setting-row input[type=range]{max-width:45%;accent-color:#9c4c91}details{font-size:14px;font-weight:700;line-height:1.7;margin:10px 0 20px}summary{font-weight:900;cursor:pointer;min-height:44px;padding:9px 0}details p{margin:10px 0}dialog>.primary{display:flex;margin:18px auto 4px}#album-dialog{width:min(880px,calc(100% - 24px))}.album-chapter{margin-top:22px}.album-chapter h3{margin-bottom:13px;color:#744479}.album-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.sticker{min-height:108px;padding:10px 7px;border-radius:20px;border:2px solid #f1d3a2;background:#f3e5e8;color:#74526f;filter:grayscale(.9);font-weight:900;font-size:12px;position:relative;overflow:hidden}.sticker .prop-art{width:55px;margin:0 auto 4px;filter:grayscale(.9)}.sticker.found{background:linear-gradient(#ffedb8,#f9d68b);filter:none;color:#805326}.sticker.found .prop-art{filter:drop-shadow(0 2px 2px #7c542f20)}.sticker span:last-child{display:block;line-height:1.3;overflow-wrap:anywhere}.sticker .sticker-number{position:absolute;left:7px;top:4px;font-size:10px;color:#704e5c}
@keyframes toy-bob{50%{transform:translateY(-9px) rotate(-4deg)}}@keyframes button-shine{0%,55%,100%{transform:translateX(-120%) rotate(25deg)}75%{transform:translateX(650%) rotate(25deg)}}@keyframes lantern-breathe{50%{opacity:.4;transform:scale(.86)}}@keyframes toy-blink{0%,92%,97%,100%{transform:scaleY(1)}94%,95%{transform:scaleY(.12)}}@keyframes cat-breathe{50%{transform:translateY(-3px) scale(1.015,1.025)}}@keyframes cat-react{35%{transform:translateY(-12px) rotate(-4deg)}75%{transform:translateY(0) scale(1.04,.97)}}@keyframes tile-invite{40%{transform:translateY(-9px) rotate(-5deg)}70%{transform:translateY(-4px) rotate(4deg)}}@keyframes snap-squash{30%{transform:scale(1.12,.9)}65%{transform:scale(.96,1.07)}}@keyframes gentle-no{25%{transform:rotate(-5deg) translateX(-3px)}65%{transform:rotate(5deg) translateX(3px)}}@keyframes counter-pop{35%{transform:scale(1.16) rotate(5deg)}70%{transform:scale(.97)}}@keyframes light-core{0%{opacity:0}15%{opacity:.65;background:radial-gradient(ellipse at 50% 50%,#fffde8bb,#fff0 55%)}100%{opacity:0;background:radial-gradient(ellipse at 50% 50%,#fffde822,#fff0 85%)}}@keyframes word-awake{0%{opacity:0;transform:translate(-50%,20px) scale(.85)}25%,70%{opacity:1;transform:translate(-50%,0) scale(1.05)}100%{opacity:0;transform:translate(-50%,-25px) scale(1)}}@keyframes prop-arrive{from{transform:translateY(30px) scale(.65);opacity:.2}to{transform:translateY(0) scale(1);opacity:1}}@keyframes ball-play{0%{transform:translateX(-50px)}20%{transform:translate(45px,-85px) rotate(70deg)}45%{transform:translate(100px,0) rotate(150deg)}65%{transform:translate(150px,-43px) rotate(220deg)}85%{transform:translate(190px,0) rotate(280deg)}100%{transform:translateX(0) rotate(360deg)}}@keyframes cat-pounce{0%,100%{transform:translate(0,0)}20%{transform:scale(1.1,.9)}45%{transform:translate(30px,-65px) rotate(-8deg)}70%{transform:translate(40px,0) scale(1.08,.95)}}@keyframes flower-grow{0%{transform:scale(.15) translateY(60px);opacity:.3}50%{transform:scale(1.3) rotate(-6deg)}75%{transform:scale(.94) rotate(5deg)}100%{transform:scale(1)}}@keyframes butterfly-fly{0%{transform:translate(0,0) rotate(-10deg)}20%{transform:translate(65px,-70px) rotate(15deg)}45%{transform:translate(165px,-25px) rotate(-10deg)}65%{transform:translate(240px,-110px) rotate(12deg)}80%{transform:translate(150px,-70px) rotate(-12deg)}100%{transform:translate(0,0)}}@keyframes heart-share{0%{transform:translate(120px,20px) scale(.5);opacity:.2}45%{transform:translate(100px,-70px) scale(1.15);opacity:1}75%{transform:translate(190px,-20px) scale(.9)}100%{transform:translate(0,0) scale(1)}}@keyframes cat-cuddle{40%,75%{transform:translateX(25px) rotate(7deg)}}@keyframes sunlight{0%,100%{opacity:0}30%,70%{opacity:.55;background:radial-gradient(ellipse at 20% 10%,#fff3b6aa,#ffcb6b00 75%)}}@keyframes sun-rise{0%{transform:translateY(50px) scale(.6)}45%{transform:translateY(-15px) scale(1.16) rotate(15deg)}100%{transform:translateY(0) scale(1)}}@keyframes boat-sail{25%{transform:translate(70px,-12px) rotate(7deg)}60%{transform:translate(150px,9px) rotate(-8deg)}100%{transform:translate(0,0)}}@keyframes water-ripple{0%{transform:translate(-50%,-20%) scale(.2);opacity:.9}100%{transform:translate(-50%,-20%) scale(1.7,.45);opacity:0}}@keyframes letters-fly{0%{opacity:0;transform:translateY(70px) scale(.6)}25%,70%{opacity:1}100%{opacity:0;transform:translate(120px,-95px) rotate(12deg) scale(1.2)}}@keyframes book-open{25%{transform:rotate(-12deg) scale(1.22,.88)}60%{transform:rotate(7deg) scale(1.1)}}@keyframes happy-dance{25%{transform:translateY(-12px) rotate(-7deg)}75%{transform:translateY(-8px) rotate(7deg)}}@keyframes peek-around{25%{transform:translateX(70px) rotate(14deg)}60%{transform:translateY(-25px) rotate(-10deg)}}@keyframes listen-lean{40%,75%{transform:rotate(8deg) translateX(12px)}}@keyframes sleep-settle{from{transform:translateY(-10px) scale(1.03)}to{transform:translateY(0)}}@keyframes portal-open{0%{transform:translate(-50%,-50%) scale(.15);opacity:0}35%,65%{transform:translate(-50%,-50%) scale(1.05);opacity:.85}100%{transform:translate(-50%,-50%) scale(.7);opacity:0}}@keyframes careful-egg{0%{transform:translateY(-80px)}65%{transform:translateY(0) scale(1.01,.99)}100%{transform:translateY(0)}}@keyframes completion-glow{from{opacity:0}50%{opacity:1}to{opacity:.5}}
body.calm *,body.calm *:before,body.calm *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body.calm .home-lantern{opacity:.55}body.calm .scene-light,body.calm .scene-magic{opacity:0!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.scene-light,.scene-magic{opacity:0!important}}
@media(min-width:1600px){.home-world{min-height:625px}}
@media(max-width:1050px){.hud{padding-inline:16px;gap:9px}.brand img{width:112px}.level-map-button{flex-direction:column;gap:1px;align-items:flex-start}.level-map-button strong{font-size:16px}.hud-right{gap:8px}.level-layout{grid-template-columns:minmax(0,1fr);min-height:0}.live-scene{min-height:300px;background-position:center 57%}.scene-cat{width:190px;left:37%;bottom:5px}.scene-friend{width:112px;right:13%;bottom:8px}.scene-object{width:99px;left:17%;bottom:45px}.scene-object.sky{top:75px;left:18%;width:86px}.scene-word{top:28%;font-size:39px}.puzzle-board{border-left:0;border-top:3px solid #f4dca7;padding:24px 25px 22px;min-height:325px}.board-heading{margin-bottom:18px}.slots{max-width:750px}.toy-rack{max-width:780px}.chapter-strip{gap:15px;padding-inline:25px}.door-image{height:90px}.chapter-door strong{font-size:13px}.chapter-door small{font-size:11px}.live-scene.story-playing .scene-cat{bottom:60px}.live-scene.story-playing .scene-friend{bottom:52px}.story-caption{font-size:13px}.completion{gap:12px}.completion-star{width:56px;height:56px}.completion h2{font-size:31px}}
@media(max-width:700px){body{padding:6px}.arcade-shell{border-radius:21px}.hud{height:65px;padding:8px 9px;gap:7px}.brand img{width:95px}.hud-button{width:44px;height:44px;border-radius:15px}.hud-button .icon{width:23px;height:23px}.home-button{display:none}.level-map-button{padding-inline:3px;gap:0}.level-map-button span{font-size:11px}.level-map-button strong{font-size:13px}.hud-right{gap:6px}.star-counter{min-width:59px;height:44px;font-size:16px;gap:3px}.star-counter .icon{width:25px;height:25px}.hud-right .hud-button{width:44px}.game-footer{padding:12px;font-size:11px;min-height:37px;justify-content:center;text-align:center;flex-wrap:wrap;gap:3px 8px}.home-world{min-height:560px;background-position:49% center}.home-title{top:22px;font-size:clamp(43px,9vw,61px);width:480px;max-width:96%;-webkit-text-stroke:1px #8a4b7e}.home-actions{bottom:29px}.home-actions .primary{font-size:23px;min-width:240px;min-height:69px}.continue-label{font-size:12px}.chapter-strip{grid-template-columns:repeat(3,1fr);gap:20px 16px;padding:22px 18px}.door-image{height:92px;max-width:135px}.chapter-door strong{font-size:14px}.chapter-door small{font-size:11px}.door-image .prop-art{width:58px}.play-top{min-height:58px;padding:8px 12px;gap:8px}.back-chapter{font-size:13px;gap:5px}.back-chapter .icon{width:20px}.level-pill{font-size:12px;gap:6px;padding:7px 11px}.level-pill .icon{width:20px;height:20px}.level-progress{gap:4px}.level-progress i{width:7px;height:7px}.live-scene{min-height:280px;background-position:50% 56%}.scene-cat{width:175px;left:31%;bottom:7px;max-width:48%}.scene-friend{right:5%;width:95px;max-width:26%;bottom:10px}.scene-object{width:85px;left:7%;bottom:43px}.scene-object.sky{width:75px;left:10%;top:68px}.scene-bubble{font-size:14px;top:13px;padding:10px 15px;max-width:94%}.scene-word{font-size:32px;top:30%}.scene-mini-letters{font-size:27px}.scene-magic{width:125px;height:125px}.story-caption{font-size:12px;padding:7px 10px;bottom:8px;left:8px;right:8px}.live-scene.story-playing .scene-cat{bottom:62px}.live-scene.story-playing .scene-friend{bottom:57px}.puzzle-board{padding:21px 13px 22px;min-height:330px}.puzzle-board:before{inset:8px;border-radius:21px}.board-heading{gap:9px;margin-bottom:19px}.board-heading h1{font-size:15px;max-width:245px}.slots{min-height:77px;gap:7px;margin-bottom:13px}.letter-slot{flex-basis:61px;height:74px;border-radius:18px;font-size:46px}.slots.compact{gap:4px;min-height:53px}.slots.compact .letter-slot{flex-basis:36px;height:53px;font-size:29px;border-radius:12px}.slots.very-long .letter-slot{font-size:24px;flex-basis:27px;height:47px}.toy-rack{gap:12px 9px;min-height:90px;padding-top:12px;max-width:370px}.toy-tile{width:56px;height:70px;font-size:43px;border-radius:18px;padding-bottom:14px}.toy-rack.large-rack .toy-tile{width:48px;height:61px;font-size:35px;border-radius:16px}.toy-tile.token-word{width:auto;min-width:70px;height:53px;font-size:16px;padding:10px 13px 14px;max-width:100%}.tile-eyes i{width:8px;height:8px}.tile-eyes i:after{width:3px;height:4px;left:2px;top:2px}.board-tools{gap:8px;margin-top:19px}.board-tool{font-size:12px;padding:8px 10px;min-height:45px;gap:5px}.board-tool .icon{width:20px;height:20px}.board-status{font-size:13px;margin-top:13px;max-width:320px}.sentence-slots .letter-slot{font-size:15px;min-width:60px;padding:0 9px;height:44px}.slots.sentence-slots{gap:7px;min-height:75px}.completion{gap:11px}.completion-star{width:57px;height:57px}.completion h2{font-size:29px}.completion-word{font-size:32px}.completion-word.sentence{font-size:22px}.completion p{font-size:14px;max-width:320px}.completion-actions{gap:10px}.completion-actions .primary{min-width:170px;font-size:17px;padding:11px 19px;min-height:55px}.completion-actions .secondary{min-width:115px;min-height:51px;font-size:14px;padding:11px 14px}.map-world{padding:24px 16px 30px;min-height:650px}.map-heading h1{font-size:28px}.map-heading p{font-size:13px;max-width:230px}.map-heading .secondary{font-size:12px;padding:8px 11px;min-height:44px}.chapter-tabs{gap:7px;margin-bottom:16px}.chapter-tab{font-size:11px;padding:8px 11px;min-height:44px;border-radius:15px}.level-path{grid-template-columns:repeat(5,1fr);gap:32px 12px;padding:25px 0 35px}.level-node{width:59px;height:76px}.node-disc{inset:3px 1px;border-width:2px;border-radius:30%;box-shadow:inset 0 2px 1px #fffbdb,0 5px 0 #b17a45,0 8px 10px #3b255a3b}.level-node strong{font-size:26px}.node-stars{margin-top:6px!important}.node-stars .icon{width:12px;height:12px}.map-foot{font-size:12px}.level-path:before{border-width:11px}.album-grid{grid-template-columns:repeat(3,1fr)}.sticker{min-height:104px}dialog{padding:21px}.dialog-head h2{font-size:25px}.setting-row{font-size:13px}.setting-row select{font-size:12px;max-width:56%}}
@media(max-width:400px){.brand img{width:83px}.hud{gap:5px;padding-inline:7px}.level-map-button span{display:none}.level-map-button strong{font-size:12px;max-width:70px;line-height:1.3}.hud-right{gap:5px}.star-counter{min-width:52px}.hud-right .hud-button{width:44px}.chapter-strip{gap:19px 11px;padding-inline:14px}.door-image{height:80px}.chapter-door strong{font-size:12px}.home-world{min-height:515px;background-position:49% center}.home-title{font-size:45px}.home-actions .primary{min-width:225px}.level-progress{display:none}.scene-cat{left:29%;width:165px}.scene-object{left:5%;width:76px}.scene-object.sky{width:66px;left:7%}.scene-friend{width:84px}.toy-tile{width:51px;height:65px;font-size:39px}.toy-rack.large-rack .toy-tile{width:46px;height:58px;font-size:33px}.board-tools{gap:6px}.board-tool{font-size:11px;padding:8px}.completion-actions{gap:8px}.completion-actions .primary{min-width:154px;padding:11px 15px}.completion-actions .secondary{min-width:100px;padding:11px}.level-path{gap:30px 7px}.level-node{width:52px}.slots.very-long .letter-slot{font-size:21px;flex-basis:25px}.slots.very-long{gap:3px}.setting-row label{max-width:64%}}
@media(min-width:1051px) and (max-height:780px){.hud{height:68px}.live-scene{min-height:490px;height:calc(100dvh - 182px)}.level-layout{min-height:490px}.puzzle-board{padding-block:21px}.slots{margin-bottom:13px}.board-heading{margin-bottom:18px}.board-tools{margin-top:18px}.home-world{min-height:510px}.chapter-strip{padding-block:20px}.door-image{height:94px}}
@media(max-height:500px) and (min-width:701px) and (max-width:1050px){.level-layout{grid-template-columns:1fr 1.1fr}.live-scene{min-height:430px}.puzzle-board{border-left:2px solid #f4dca7;border-top:0}.scene-cat{left:17%;width:165px}.scene-friend{right:3%;width:95px}.scene-object{left:4%;bottom:150px}.board-heading h1{font-size:15px}.toy-tile{width:51px;height:64px;font-size:37px}.letter-slot{height:65px;font-size:38px}.slots{min-height:65px}.board-tools{gap:7px}.board-tool{font-size:11px;padding:8px}}
/* Earned props stay in their world; short impact effects leave a readable board. */
.scene-memories{position:absolute;bottom:3px;left:3%;right:3%;display:flex;align-items:flex-end;gap:2%;height:54px;pointer-events:none;z-index:2}.memory-flower{width:34px;max-width:8%;transform:rotate(calc((var(--memory-index) - 4)*3deg));filter:drop-shadow(0 2px 2px #34284533)}.story-playing .scene-memories{bottom:55px;opacity:.8}.letter-slot.arriving{color:transparent}.letter-slot.arriving>*{visibility:hidden}.boot-screen h1{font-size:24px;text-align:center}.boot-screen p{max-width:36rem;text-align:center;padding-inline:20px}
@media(max-width:350px){.hud{gap:3px;padding-inline:5px}.brand img{width:70px}.level-map-button strong{max-width:55px;font-size:11px}.hud-right{gap:4px}.star-counter{min-width:43px}.star-counter .icon{width:20px}.hud-right .hud-button{width:42px;min-width:42px}.board-tools{gap:3px}.board-tool{font-size:10px;padding:7px}.home-title{font-size:39px}.completion-actions{flex-wrap:wrap}}
.door-image{display:block}.toy-tile:not(.used):not(.drag-source):not(.tile-ghost){animation:letter-personality 4.8s var(--quick) infinite;animation-delay:var(--blink-delay,0s)}.toy-tile:hover:not(.used):not(.drag-source){animation:none}.toy-tile.wrong:not(.used){animation:gentle-no .38s var(--quick) 1}.toy-tile.hinted:not(.used){animation:tile-invite .8s var(--curve) 2}.tile-ghost{animation:none!important}
@keyframes letter-personality{0%,72%,100%{transform:translateY(0) rotate(0) scale(1)}77%{transform:translateY(1px) scale(1.04,.96)}83%{transform:translateY(-6px) rotate(-4deg) scale(.99,1.03)}89%{transform:translateY(0) rotate(3deg) scale(1.03,.97)}94%{transform:translateY(-2px) rotate(-1deg)}}
.slots.very-long .question{font-size:19px}.toy-tile:nth-child(3n+2):not(.used):not(.drag-source):not(.tile-ghost):not(.hinted):not(.wrong){animation-name:letter-curious}.toy-tile:nth-child(3n+3):not(.used):not(.drag-source):not(.tile-ghost):not(.hinted):not(.wrong){animation-name:letter-dance}
@keyframes letter-curious{0%,70%,100%{transform:rotate(0) scale(1)}78%{transform:rotate(8deg) scale(.96,1.04)}86%{transform:rotate(-5deg) scale(1.04,.96)}94%{transform:rotate(1deg)}}@keyframes letter-dance{0%,69%,100%{transform:translateY(0) rotate(0)}76%{transform:translateY(-4px) rotate(-7deg)}84%{transform:translateY(-2px) rotate(7deg)}92%{transform:translateY(1px) rotate(-2deg)}}
@media(max-width:700px){.home-world{background-image:url('assets/arcade/hero-mobile.webp');background-position:center 56%}.home-title{top:28px}.home-lantern.one{left:13%;top:24%}.home-lantern.two{right:11%;top:28%}}
.scene-friend:has(.full-figure){background:none;border-radius:0;width:110px;bottom:31px;right:6%}.scene-friend:has(.full-figure):after{bottom:-10px}.scene-friend[data-person=linda]:has(.full-figure),.scene-friend[data-person=klas]:has(.full-figure){width:108px}.story-playing .scene-friend:has(.full-figure){bottom:72px}
@media(max-width:1050px){.scene-friend:has(.full-figure){width:87px;right:17%;bottom:19px}.scene-friend[data-person=linda]:has(.full-figure),.scene-friend[data-person=klas]:has(.full-figure){width:80px}.story-playing .scene-friend:has(.full-figure){bottom:65px}}
@media(max-width:700px){.scene-friend:has(.full-figure){right:8%;width:77px;bottom:22px}.scene-friend[data-person=linda]:has(.full-figure),.scene-friend[data-person=klas]:has(.full-figure){width:72px}.story-playing .scene-friend:has(.full-figure){bottom:65px}}
body:has(dialog[open]) #main *,body.page-paused #main *{animation-play-state:paused!important}

/* Small sentence words use a darker ink while retaining the six toy colors. */
.toy-tile.token-word{color:#34203f;background:linear-gradient(165deg,var(--tile-light),var(--tile-color))}.sentence-slots .letter-slot.filled{color:#34203f}
