@font-face{font-family:Froople;src:url('art/Froople.ttf') format('truetype');font-display:swap}
:root{font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;color:#173c61;background:#f8f3e9;--navy:#173c61;--pink:#ed9faa;--cream:#fffaf1;--yellow:#ffd35a;--mint:#c9e9dc;--shadow:0 18px 46px rgba(22,48,73,.13)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(circle at 18% 5%,#fff4d5,transparent 34%),linear-gradient(180deg,#fffaf0,#f6f0e8)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:4px solid #0066d3;outline-offset:4px}a{color:inherit}img{display:block;max-width:100%}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Froople,'Trebuchet MS',sans-serif;line-height:1.04;letter-spacing:-.025em}h1{font-size:clamp(3rem,6.6vw,6rem)}h2{font-size:clamp(2.45rem,5vw,4.3rem)}h3{font-size:clamp(1.8rem,3vw,2.55rem)}p{line-height:1.55}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:88px;padding:8px clamp(16px,3vw,42px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;background:rgba(255,250,241,.94);border-bottom:1px solid #e8ddcf;position:relative;z-index:20}.logo{width:130px;height:auto}.exit-link{justify-self:start;display:inline-flex;align-items:center;gap:7px;text-decoration:none;font-weight:800;background:#e6f3f1;border-radius:999px;padding:11px 16px}.topbar-right{justify-self:end;display:flex;align-items:center;gap:8px}.timer{display:flex;align-items:center;gap:5px;white-space:nowrap;background:white;border:1px solid #dce7e6;padding:9px 12px;border-radius:999px;font-size:.85rem}.timer b{font-variant-numeric:tabular-nums}.icon-btn{min-width:40px;height:40px;border-radius:50%;border:1px solid #dce7e6;background:white;color:var(--navy);font-size:1.05rem}.icon-btn[aria-pressed=true]{background:#d6eeea;border-color:#8cc9bb}.game-footer{margin-top:auto;text-align:center;padding:16px;color:#637a7c;font-size:.83rem}.game-footer a{text-decoration:underline}main{width:min(1340px,100%);margin:auto;padding:clamp(16px,3vw,34px)}.eyebrow{display:block;color:#2c7668;font-size:.76rem;font-weight:900;letter-spacing:.15em;text-transform:uppercase;margin-bottom:13px}.quiet-note{font-size:.83rem;color:#667e80}.primary-btn{display:inline-flex;justify-content:center;align-items:center;gap:13px;border:0;border-bottom:5px solid #d99d30;border-radius:19px;background:var(--yellow);color:#18364d;min-height:56px;padding:13px 24px;font-weight:900;box-shadow:0 10px 20px #d8a73d33;transition:transform .18s,box-shadow .18s}.primary-btn:hover{transform:translateY(-3px);box-shadow:0 14px 24px #d8a73d55}.primary-btn:active{transform:translateY(1px)}.subtle-btn{border:1px solid #d5dfde;color:var(--navy);background:white;border-radius:14px;padding:10px 14px;font-weight:800}.listen-btn{border:2px solid #aacfd1;background:#e8f5f4;color:var(--navy);border-radius:999px;padding:12px 18px;font-weight:900}.intro-screen,.ending-screen,.certificate-screen{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(360px,1fr);align-items:center;gap:clamp(25px,5vw,70px);padding:20px 0}.intro-art,.ending-art{max-width:485px;justify-self:center;width:100%;height:min(74vh,690px);border:12px solid white;border-radius:35px;overflow:hidden;box-shadow:var(--shadow);transform:rotate(-2deg)}.intro-art img,.ending-art img{width:100%;height:100%;object-fit:cover;object-position:center 55%}.intro-copy h1{margin-bottom:22px}.intro-copy h1 em{font-style:normal;color:#df8b99}.intro-copy>p:not(.eyebrow){max-width:55ch;font-size:1.1rem}.intro-pills{display:flex;gap:9px;flex-wrap:wrap;margin:26px 0}.intro-pills span{font-size:.86rem;background:white;border:1px solid #e6e0d6;border-radius:999px;padding:9px 12px;font-weight:800}.watch-screen{max-width:1100px;margin:0 auto}.section-heading{text-align:center;margin:14px auto 25px;max-width:700px}.section-heading h2{margin-bottom:8px}.watch-layout{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(250px,.8fr);align-items:center;gap:clamp(24px,5vw,70px)}.film-frame{width:min(100%,370px);aspect-ratio:9/16;justify-self:center;background:#0b2039;overflow:hidden;border:10px solid white;border-radius:30px;box-shadow:var(--shadow)}.film-frame iframe{width:100%;height:100%;border:0}.watch-guide{background:white;border:1px solid #e8dfd7;border-radius:30px;padding:clamp(22px,3vw,34px);box-shadow:var(--shadow)}.watch-guide img{width:100%;height:200px;object-fit:cover;object-position:center 55%;border-radius:18px;margin-bottom:18px}.watch-guide h3{margin-bottom:8px}.play-top{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:15px}.play-top h2{margin:0}.stitch-counter{background:#fff;padding:12px 18px;border-radius:999px;white-space:nowrap;border:1px solid #e9e0d2;font-weight:800}.stitch-counter strong{font-family:Froople;font-size:1.6rem;color:#dc8596}.stitch-track{position:relative;display:flex;justify-content:space-between;gap:6px;max-width:620px;margin:0 auto 20px}.stitch-track:before{content:'';position:absolute;left:16px;right:16px;top:50%;height:6px;border-radius:6px;background:#ecc3c3;transform:translateY(-50%)}.stitch{position:relative;z-index:1;display:grid;place-items:center;width:45px;height:45px;flex:none;border:3px solid #e4adb4;border-radius:50%;background:#fff9f8;color:#bc8290;font-weight:900}.stitch.complete{background:#ec9daa;border-color:#d67789;color:#fff;animation:pop .45s both}.stitch.current{box-shadow:0 0 0 6px #ffdda477;border-color:#f2b542}.game-grid{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(360px,1fr);align-items:stretch;gap:clamp(18px,3vw,36px)}.scene-frame{width:min(100%,420px);height:min(65vh,690px);min-height:510px;justify-self:center;position:relative;overflow:hidden;border:10px solid white;border-radius:32px;box-shadow:var(--shadow);background:#d8e9ee}.scene-frame>img{width:100%;height:100%;object-fit:cover}.scene-frame.wobble>img{animation:wobble 1.4s ease-in-out infinite}.scene-frame.rising>img{animation:floatUp .65s ease-in-out}.scene-caption{position:absolute;left:14px;right:14px;bottom:14px;text-align:center;background:#173c61d9;color:white;border-radius:13px;padding:10px;font-weight:900;font-size:.85rem}.scene-interaction{position:absolute;inset:0;pointer-events:none}.scene-interaction>*{pointer-events:auto}.hotspot{position:absolute;border:4px solid white;border-radius:50%;width:64px;height:64px;display:grid;place-items:center;background:#ffd35ada;box-shadow:0 0 0 10px #ffd35a55,0 7px 18px #173c6166;color:#143a59;font-size:1.5rem;animation:pulse 1.65s ease-in-out infinite}.hotspot.thread{left:27%;top:50%}.hotspot.float{left:49%;top:62%}.hotspot.firefly-a{left:14%;top:40%;width:50px;height:50px}.hotspot.firefly-b{right:22%;top:29%;width:50px;height:50px}.hotspot.done{opacity:.35;animation:none}.mission-card{align-self:center;background:#fffaf3;border:2px solid #fff;border-radius:34px;padding:clamp(22px,4vw,44px);box-shadow:var(--shadow);min-height:530px;display:flex;flex-direction:column}.mission-step{font-size:.78rem;color:#477d78;font-weight:900;letter-spacing:.14em;margin-bottom:13px}.mission-card h3{margin-bottom:9px}.mission-card>p:not(.mission-step){color:#49636b}.mission-card .listen-btn{align-self:start}.sentence-area{min-height:54px;margin:18px 0 3px}.sentence-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.sentence-line button{border:0;border-radius:10px;padding:6px 9px;background:#dceee7;color:#173c61;font-weight:900;font-size:clamp(1.05rem,2.2vw,1.35rem)}.sentence-line button.active{background:#ffd568;transform:scale(1.08)}.sentence-note{font-size:.78rem!important;color:#6c7e7c!important;margin:6px 0 0}.mission-action{margin-top:10px;min-height:84px}.mission-action .action-btn{border:2px solid #dfb7b5;background:#ffe8e7;padding:14px 20px;border-radius:16px;font-weight:900;color:#173c61;min-height:54px}.mission-action .action-btn:active{transform:scale(.98)}.mission-action .match-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.match-option{border:2px solid #dde7e4;background:white;border-radius:17px;padding:8px 4px;min-height:100px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-weight:900}.match-option .picture{font-size:2.1rem}.match-option.correct{background:#d5f2dc;border-color:#79bf88}.match-option.wrong{animation:shake .3s}.mission-feedback{min-height:2.3em;font-weight:900;color:#277966!important;margin:14px 0}.mission-footer{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.ending-copy{background:#fffaf3;border-radius:28px;padding:28px;box-shadow:var(--shadow)}.ending-choices{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.ending-choices button{border:2px solid #d5cbd2;background:#fff;border-radius:18px;padding:16px;font-weight:900;font-size:1.05rem}.ending-choices button:hover{border-color:#df91a0;background:#ffeff0}.certificate-screen{grid-template-columns:minmax(300px,.8fr) minmax(300px,.85fr)}.certificate-copy{padding:18px}.certificate-copy label{display:block;font-weight:900;margin-top:20px}.certificate-copy label small{font-weight:500;color:#617a80}.certificate-copy input{display:block;width:100%;max-width:390px;margin:8px 0 18px;border:2px solid #b5c9cb;border-radius:13px;background:#fff;padding:14px;font-size:1rem}.certificate-actions{display:flex;gap:12px;flex-wrap:wrap}.certificate-preview{background:#fff;border-radius:22px;padding:12px;box-shadow:var(--shadow);max-width:430px;justify-self:center;width:100%}.certificate-preview canvas{display:block;width:100%;height:auto;border-radius:13px}.pause-overlay{position:fixed;inset:0;z-index:50;background:#08213daa;display:grid;place-items:center;padding:18px}.pause-card{background:#fffaf0;border-radius:26px;padding:32px;max-width:420px;text-align:center;box-shadow:var(--shadow)}.pause-card h2{font-size:2.5rem}.attention{animation:pulse 1.1s ease-in-out 2}.spark{position:absolute;z-index:2;pointer-events:none;color:#ffe38d;font-size:2rem;animation:spark .75s ease-out forwards}@keyframes pulse{50%{transform:scale(1.1)}}@keyframes pop{0%{transform:scale(.4)}65%{transform:scale(1.22)}100%{transform:scale(1)}}@keyframes wobble{25%{transform:rotate(-1.5deg)}75%{transform:rotate(1.5deg)}}@keyframes floatUp{50%{transform:translateY(-24px)}}@keyframes shake{25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)}}@keyframes spark{to{opacity:0;transform:translateY(-50px) scale(1.5)}}
@media(max-width:820px){.topbar{height:71px;padding:6px 10px}.logo{width:92px}.topbar-right{gap:4px}.timer{padding:7px;font-size:.72rem}.icon-btn{min-width:33px;height:33px;font-size:.82rem}.exit-link{padding:8px 10px;font-size:.8rem}.intro-screen,.ending-screen,.certificate-screen,.watch-layout,.game-grid{grid-template-columns:1fr}.intro-screen,.ending-screen{gap:15px}.intro-art,.ending-art{height:min(43vh,390px);max-width:350px;transform:none}.intro-copy,.ending-copy{text-align:center}.intro-pills{justify-content:center}.intro-copy h1{font-size:clamp(2.7rem,11vw,4.6rem)}.watch-guide{max-width:540px;margin:auto}.film-frame{max-height:58vh}.play-top h2{font-size:clamp(2rem,8vw,3rem)}.scene-frame{height:min(52vh,550px);min-height:380px;max-width:380px}.mission-card{min-height:0}.certificate-copy{text-align:center}.certificate-copy input{margin-left:auto;margin-right:auto}.certificate-actions{justify-content:center}}
@media(max-width:440px){main{padding:12px}.topbar{grid-template-columns:auto auto 1fr}.logo{width:80px}.exit-link span{display:none}.topbar-right{gap:2px}.timer{padding:6px}.icon-btn{min-width:30px;height:30px}.play-top{align-items:center}.stitch-counter{padding:6px 9px;font-size:.72rem}.stitch-counter strong{font-size:1.25rem}.stitch{width:39px;height:39px}.scene-frame{width:min(100%,330px);height:430px;min-height:0}.mission-card{padding:22px}.mission-action .match-grid{gap:4px}.match-option{min-height:85px;font-size:.75rem}.watch-guide img{height:130px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}
.hotspot.thread{left:18%;top:57%}

/* Discovery 2: a knitted board with independent plush cast and physical ball. */
.scene-frame.board-stage>img{object-fit:cover;object-position:center center}
.board-world{position:absolute;inset:0;overflow:hidden;isolation:isolate;pointer-events:none}
.board-character{position:absolute;z-index:2;object-fit:contain;filter:drop-shadow(0 12px 9px #55422b44);transform-origin:bottom center}
.board-ray{width:43%;height:40%;left:-1%;top:29%}
.board-dodu{width:36%;height:36%;right:0;top:35%}
.board-rig{position:absolute;z-index:4;left:18%;width:64%;top:56%;height:12%;transform:rotate(var(--board-tilt,0deg));transform-origin:center 50%;transition:transform .12s ease-out;filter:drop-shadow(0 13px 8px #644f3f66)}
.board-deck{position:relative;width:100%;height:100%;border:5px solid #b85c6a;border-radius:50% / 45%;background:repeating-linear-gradient(110deg,#f7adad 0 4px,#db818d 4px 7px,#ffc7b8 7px 11px);box-shadow:inset 0 5px 5px #fff5e866,inset 0 -13px 10px #9d526e66,0 6px 0 #b15c73}
.board-deck:after{content:'';position:absolute;inset:7px 12px;border:3px dashed #fff1d699;border-radius:50%}
.board-hole{position:absolute;z-index:1;left:50%;top:18%;width:26%;height:67%;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,#352932 18%,#6c3f4e 58%,#bd6b77 70%);border:3px solid #fff0d0;box-shadow:inset 0 4px 6px #2a1d27ad,0 2px 3px #683e4c99}
.board-ball,.basket-ball{position:absolute;z-index:3;width:42px;height:42px;top:18%;border-radius:50%;transform:translateX(-50%);background:radial-gradient(circle at 32% 24%,#fff3dd,#efab93 36%,#b96a71 88%);box-shadow:inset -6px -8px 9px #853f5480,inset 3px 4px 8px #fff7edaa,0 7px 8px #56353c55;border:3px solid #e6a49c}
.board-ball.soft,.basket-ball.soft{background:radial-gradient(circle at 30% 27%,#fff4df,#f5b5a4 38%,#d28190);border:4px dotted #fff1cf;box-shadow:inset -6px -7px 10px #9c6879aa,0 5px 7px #6c3a4555}
.board-ball.bouncy,.basket-ball.bouncy{background:radial-gradient(circle at 29% 23%,#effff3,#9de3c8 38%,#4fa88f 88%);border:3px solid #e4fff0}
.board-ball.big,.basket-ball.big{width:53px;height:53px;top:4%;background:radial-gradient(circle at 29% 25%,#fff6d6,#f4ca78 40%,#d18b60 90%);border:4px solid #fce4b0}
.board-ball.falling{animation:ballThrough .42s ease-in forwards}
.board-basket{position:absolute;z-index:3;left:39%;width:22%;top:70%;height:11%;background:repeating-linear-gradient(90deg,#be8756 0 6px,#d7a674 6px 12px);border:5px solid #a56848;border-top:11px solid #e4ba85;border-radius:9px 9px 26px 26px;box-shadow:0 9px 10px #573e3555}
.basket-ball{left:50%;top:-60%;opacity:0;transform:translateX(-50%) scale(.8)}
.basket-ball.falling{animation:basketDrop .62s .16s ease-in forwards}
.board-ball-label{position:absolute;z-index:5;top:8%;left:50%;transform:translateX(-50%);white-space:nowrap;color:#173c61;background:#fffaf1ee;border:2px solid white;border-radius:999px;padding:8px 15px;font-family:Froople,'Trebuchet MS',sans-serif;font-size:clamp(1.2rem,3vw,1.6rem);box-shadow:0 5px 12px #654e3860}
.board-cheer .board-ray{animation:boardJump .7s ease-out}
.board-cheer .board-dodu{animation:boardJump .7s .15s ease-out}
.board-word-row{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.board-word-row button{border:2px solid #9dcbb7;border-radius:999px;padding:7px 12px;background:#e4f4e8;color:#204e53;font-size:1rem;font-weight:900}
.board-help{font-size:.9rem;margin:3px 0 12px;color:#49636b}
.board-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.board-controls button{border:3px solid #d9a1a7;border-bottom:6px solid #bc7683;border-radius:20px;min-height:76px;background:#ffe0d9;color:#173c61;font-family:Froople,'Trebuchet MS',sans-serif;font-size:clamp(1.5rem,3vw,2.15rem);touch-action:none;user-select:none}
.board-controls button:nth-child(2){background:#d7eee4;border-color:#91c6ad;border-bottom-color:#5da88c}
.board-controls button.pressed,.board-controls button:active{transform:translateY(3px);border-bottom-width:3px}
.board-progress{margin:12px 0 0;font-size:.82rem;color:#607b7a;text-align:center;font-weight:800}
@keyframes ballThrough{to{top:62%;opacity:0;transform:translateX(-50%) scale(.25)}}
@keyframes basketDrop{0%{top:-90%;opacity:1}70%{top:2%;opacity:1}100%{top:-3%;opacity:1}}
@keyframes boardJump{35%{transform:translateY(-22px)}65%{transform:translateY(0)}82%{transform:translateY(-7px)}100%{transform:translateY(0)}}
@media(max-width:440px){.board-ball,.basket-ball{width:34px;height:34px}.board-ball.big,.basket-ball.big{width:43px;height:43px}.board-controls button{min-height:64px}}

/* Play instructions and touch controls belong beside the action. */
.board-stage .scene-caption{display:none}
.board-instruction-bar,.float-instruction-bar{position:absolute;z-index:8;top:2%;left:3%;right:3%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px 8px 14px;border:2px solid #fff;border-radius:17px;background:#fffaf2eb;box-shadow:0 6px 16px #29404d33;color:#173c61;font-weight:900;font-size:clamp(.77rem,1.7vw,.98rem);line-height:1.2}
.board-hear,.float-hear{flex:none;width:37px;height:37px;border:2px solid #9bc9c8;border-radius:50%;background:#e6f5f3;color:#173c61}
.board-world button{pointer-events:auto}
.board-ball-label{top:18%}
.board-controls{position:absolute;z-index:8;left:3%;right:3%;bottom:2%;gap:7px}
.board-controls button{min-height:57px;font-size:clamp(1.25rem,2.5vw,1.7rem)}
.board-word-row{margin-top:8px}
.board-progress{text-align:left}
.board-stage .board-basket{top:68%}
.restart-btn{border:1px solid #d3b1b4;border-radius:999px;background:#fff0ed;color:#813f56;padding:9px 13px;font-weight:900;white-space:nowrap}
.restart-btn:hover{background:#ffe3e2}
.pause-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
@media(max-width:650px){.restart-btn{padding:7px 9px}.restart-btn span{display:none}}

/* Discovery 3: lift a physical wool ball through two cloud gates. */
.float-stage>img,.float-stage .scene-caption{display:none}
.float-world{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(circle at 81% 72%,#ffe5a5 0 8%,transparent 30%),linear-gradient(180deg,#7cb9f1 0%,#a7cafa 45%,#f8b8bd 100%)}
.float-world:before,.float-world:after{content:'';position:absolute;z-index:0;left:-15%;width:130%;height:20%;background:radial-gradient(ellipse at 15% 70%,#fff2e6 0 12%,transparent 13%),radial-gradient(ellipse at 45% 55%,#fff2e6 0 20%,transparent 21%),radial-gradient(ellipse at 77% 76%,#fff2e6 0 15%,transparent 16%);opacity:.7;animation:cloudDrift 7s ease-in-out infinite alternate}
.float-world:before{top:31%}.float-world:after{bottom:7%;opacity:.84;animation-delay:-3s}
.float-near-clouds{position:absolute;z-index:2;inset:-15% -22%;pointer-events:none;background:radial-gradient(ellipse 22% 7% at 16% 56%,#fff9ebc9 0 80%,transparent 85%),radial-gradient(ellipse 20% 6% at 82% 71%,#fff8ebc9 0 80%,transparent 85%),radial-gradient(ellipse 12% 5% at 71% 35%,#fffaf0ac 0 75%,transparent 84%);transform:translateY(var(--float-parallax,0px));will-change:transform}
.float-cloud{position:absolute;z-index:1;left:8%;right:8%;height:13%;border-top:4px dashed #fffef4bb;border-radius:50%;display:flex;align-items:start;justify-content:end;transition:opacity .3s}
.float-cloud span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:2px solid #fff;background:#fff9ef;color:#5585aa;font-family:Froople;font-size:1.2rem}
.float-cloud-one{top:61%}.float-cloud-two{top:45%}.float-cloud.reached span{background:#ffd35a;color:#173c61}
.float-flight{position:absolute;z-index:4;left:17%;width:66%;height:27%;bottom:var(--float-bottom,9%);touch-action:none;pointer-events:auto;cursor:grab;user-select:none;transform:rotate(var(--float-rock,0deg));transform-origin:center 85%;filter:drop-shadow(0 16px 14px #62749a77)}
.float-flight.dragging{cursor:grabbing;filter:drop-shadow(0 24px 20px #62749a88)}
.float-flight img{position:absolute;z-index:5;bottom:68%;width:47%;height:110%;object-fit:contain;pointer-events:none}
.float-ray{left:3%}.float-dodu{right:3%}
.float-wool{position:absolute;inset:22% 8% 0;border-radius:50%;background:repeating-linear-gradient(39deg,#e89f9299 0 6px,#f7c7a7aa 7px 13px,#e4a0a299 14px 19px),radial-gradient(circle at 32% 25%,#ffe0bb,#e6a19a 70%,#bb798a);border:6px solid #e5a799;box-shadow:inset -18px -18px 19px #ad6d8399,inset 12px 12px 14px #fff8dc99,0 12px 18px #685b8377}
.float-wool:after{content:'';position:absolute;inset:4% 7%;border-radius:50%;border:3px solid #fff4dd77;transform:rotate(-24deg)}
.float-world.float-lifting:before,.float-world.float-lifting:after{animation-duration:1.4s;transform:translateY(var(--float-parallax,0px))}
.float-streak{position:absolute;z-index:2;width:3px;height:40px;border-radius:99px;background:linear-gradient(#ffffff00,#fffdf4cc,#ffffff00);opacity:0;transition:opacity .2s;animation:floatStreak 1.1s linear infinite}
.float-streak-one{left:12%;top:37%}.float-streak-two{right:13%;top:61%;animation-delay:-.45s}.float-streak-three{left:50%;top:73%;animation-delay:-.8s}
.float-world.float-lifting .float-streak{opacity:.95}
.float-world.float-sparkle .float-flight,.float-world.float-complete .float-flight{filter:drop-shadow(0 0 18px #fffbe9) drop-shadow(0 15px 12px #62749a77)}
.float-wind{position:absolute;left:4%;right:4%;bottom:4%;text-align:center;color:#fffce1;font-size:2.2rem;letter-spacing:1.1rem;opacity:.8;animation:windGlow 1.8s ease-in-out infinite alternate}
.float-progress{font-size:.95rem;color:#477d78!important;font-weight:900}
.float-world button{pointer-events:auto}
.float-world.float-lifting .float-wind{animation-duration:.3s}
@keyframes cloudDrift{to{transform:translateX(7%)}}
@keyframes windGlow{to{opacity:.3;transform:translateY(-12px)}}
@keyframes floatStreak{from{transform:translateY(26px) scaleY(.6)}to{transform:translateY(-50px) scaleY(1.3)}}

/* Discovery 1: one clear needle-and-letters activity. */
.scene-frame.thread-stage{height:min(58vh,570px)}
.thread-stage .scene-caption{font-size:.95rem}
.thread-phrase{display:flex;flex-wrap:wrap;gap:.38em;margin:0 0 9px;font-family:Froople,'Trebuchet MS',sans-serif;font-size:clamp(1.45rem,2.6vw,2rem);color:#173c61}
.thread-phrase span{opacity:.15;transform:translateY(7px);transition:opacity .25s,transform .25s}
.thread-phrase span.shown{opacity:1;transform:translateY(0)}
.thread-phrase span:last-child{color:#bd637c}
.thread-meaning{margin:2px 0 0!important;font-size:.94rem;color:#476569!important}
.thread-stitches{height:205px;position:relative;max-width:480px;margin:4px auto 0;width:100%}
.thread-letter-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:9px;padding:8px;z-index:2}
.thread-letter{min-width:0;border:3px solid #d3b9bd;border-bottom-width:6px;border-radius:22px;background:#fff8f2;color:#173c61;font-family:Froople,'Trebuchet MS',sans-serif;font-size:clamp(2rem,3.6vw,3rem);touch-action:manipulation;transition:transform .16s,background .16s}
.thread-letter.next{background:#ffdb74;border-color:#c88c52;box-shadow:0 0 0 5px #ffeab4}
.thread-letter.sewn{background:#d7eee4;border-color:#71ae93;color:#1b745c}
.thread-letter:active{transform:scale(.94)}
.thread-lines{position:absolute;inset:0;z-index:1;width:100%;height:100%;overflow:visible;pointer-events:none}
.thread-lines line{stroke:#df8292;stroke-width:8;stroke-linecap:round;stroke-dasharray:9 7}
.thread-needle{position:absolute;z-index:4;font-size:2.5rem;left:4%;top:-7%;pointer-events:none;filter:drop-shadow(0 3px 3px #173c6155);transition:left .25s,top .25s;transform:rotate(-30deg)}
.thread-direction{text-align:center;font-size:.95rem;margin:7px 0!important;color:#345c61!important}
.thread-direction strong{color:#a34c68;font-size:1.25em}
.thread-meaning-btn{display:block;margin:8px auto 0;border:2px solid #a8cabc;border-radius:999px;background:#e8f6ed;padding:9px 16px;color:#214d50;font-weight:900;min-height:45px}
.thread-replay-btn{display:block;margin:10px auto 0;border:2px solid #db8ea6;border-radius:999px;background:#fff0f4;padding:10px 18px;color:#843b58;font-weight:900;min-height:45px;cursor:pointer}
@media(min-width:821px) and (max-height:900px){body:has(.play-screen:not([hidden])) .topbar{height:65px}body:has(.play-screen:not([hidden])) main{padding-top:11px;padding-bottom:7px}body:has(.play-screen:not([hidden])) .play-top{margin-bottom:5px}body:has(.play-screen:not([hidden])) .play-top h2{font-size:clamp(2rem,3vw,2.8rem)}body:has(.play-screen:not([hidden])) .stitch-track{margin-bottom:7px}body:has(.play-screen:not([hidden])) .stitch{width:35px;height:35px}body:has(.play-screen:not([hidden])) .scene-frame{height:min(65vh,590px);min-height:0}body:has(.play-screen:not([hidden])) .mission-card{min-height:0;padding:clamp(16px,2.1vw,26px)}body:has(.play-screen:not([hidden])) .game-footer{padding:6px}}
@media(max-width:820px){.thread-stitches{height:190px}.thread-letter{min-height:78px}.scene-frame.thread-stage{height:min(46vh,490px);min-height:330px}.play-screen .mission-card{padding:20px}.play-screen .sentence-area{margin:12px 0 0}.play-screen .mission-feedback{margin:8px 0;min-height:1.4em}}
@media(max-width:440px){.thread-stitches{height:160px}.thread-letter{min-height:66px;border-radius:15px;font-size:2rem}.thread-needle{font-size:2rem}.scene-frame.thread-stage{height:43vh;min-height:260px}}

/* Discoveries 4–6 are responsive playable worlds, not hotspots on stills. */
.interactive-world-stage>img{display:none}
.interactive-world-stage .scene-caption{z-index:7}
.story-world{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.story-world button{pointer-events:auto;touch-action:manipulation}
.garden-world{overflow:clip;background:linear-gradient(#8bc9f1 0 55%,#d6eac0 55% 70%,#77b8a3 70%)}
.garden-sun,.sea-sun{position:absolute;right:11%;top:8%;width:78px;aspect-ratio:1;border-radius:50%;background:#ffe5a0;box-shadow:0 0 38px 16px #ffe5a080}
.garden-hills{position:absolute;inset:53% -30% -15%;background:radial-gradient(ellipse at 15% 65%,#cddda0 0 29%,transparent 30%),radial-gradient(ellipse at 74% 71%,#9ccb9a 0 35%,transparent 36%),linear-gradient(#87c69b,#69a687)}
.garden-ball,.sea-ball,.night-ball{position:absolute;z-index:2;left:18%;bottom:10%;width:64%;height:32%;border-radius:50%;background:repeating-linear-gradient(45deg,#eea99f 0 18px,#f5c8a9 18px 32px,#f7d9b5 32px 44px);box-shadow:inset -22px -17px 18px #aa6b6a66,0 15px 14px #50695e44}
.garden-ball img,.sea-ball img,.night-ball img{position:absolute;bottom:78%;width:53%;height:130%;object-fit:contain;filter:drop-shadow(0 5px 5px #4a586044)}
.garden-ball img:first-child,.sea-ball img:first-child,.night-ball img:first-child{left:3%}
.garden-ball img:last-child,.sea-ball img:last-child,.night-ball img:last-child{right:2%;width:47%}
.flower-stop{position:absolute;z-index:5;bottom:7%;width:88px;height:92px;border:0;background:none;font-size:3.7rem;filter:drop-shadow(0 5px 5px #52755b66);transition:transform .2s,opacity .2s}
.flower-stop:after{content:'';display:block;width:8px;height:28px;background:#4a9466;margin:-13px auto 0;border-radius:8px}
.flower-stop:hover,.flower-stop:focus-visible{transform:scale(1.12)}
.flower-stop.visited{opacity:.55}
.flower-one{left:5%}.flower-two{right:5%;bottom:13%}
.butterfly-flyer{position:absolute;z-index:6;left:51%;top:24%;width:70px;height:60px;filter:drop-shadow(0 7px 5px #4076a555);transition:left 1s ease-in-out,top 1s ease-in-out;animation:butterflyBob 2s ease-in-out infinite}
.butterfly-flyer i{position:absolute;width:35px;height:47px;background:radial-gradient(circle at 55% 50%,#d4f7ff,#5f9fee 57%,#3773b1);border:3px solid #effaff;border-radius:75% 26% 72% 27%;transform-origin:100% 75%;animation:wingLeft .3s ease-in-out infinite alternate}
.butterfly-flyer i:nth-child(2){left:34px;transform-origin:0 75%;border-radius:26% 75% 27% 72%;animation-name:wingRight}
.butterfly-flyer b{position:absolute;left:32px;top:13px;width:8px;height:34px;background:#705850;border-radius:6px}
.garden-world.fly-one .butterfly-flyer{left:8%;top:65%}.garden-world.fly-two .butterfly-flyer{left:75%;top:57%}
.garden-world .butterfly-flyer{transform:translate(-50%,-50%);transition:left 1.1s ease-in-out,top 1.1s ease-in-out;animation:flowerHover 2s ease-in-out infinite}
@keyframes flowerHover{50%{transform:translate(-50%,calc(-50% - 2px))}}
.world-task{font-weight:900;color:#366b68!important;margin:7px 0 12px}
.world-dots{display:flex;gap:12px;justify-content:center;margin:8px}
.world-dots span{width:18px;height:18px;border:3px solid #c9a9af;background:white;border-radius:50%}
.world-dots span.done{background:#e9a5b0;border-color:#ca778c;animation:pop .45s}
.world-action{width:100%;min-height:62px;border:3px solid #5daac1;border-bottom-width:6px;border-radius:18px;background:#d4eff6;color:#173c61;font-family:Froople,'Trebuchet MS',sans-serif;font-size:1.65rem}
.world-action:disabled{background:#d9e6e7;color:#55777d}
.sea-world{background:linear-gradient(#8dccf3 0 52%,#56c6db 52%,#1c99c3 100%)}
.sea-ball{left:6%;width:58%;bottom:24%;z-index:4}
.sea-waves{position:absolute;inset:55% -20% -10%;background:repeating-radial-gradient(ellipse at 40% 130%,transparent 0 24px,#d1f8f7b8 26px 32px,transparent 34px 58px);animation:seaDrift 4s linear infinite}
.sea-dolphin{position:absolute;z-index:5;right:5%;top:37%;width:45%;height:36%;border:0;background:none;font-size:clamp(5rem,12vw,8rem);opacity:0;transform:translateY(80%) rotate(-15deg);transition:transform 1s cubic-bezier(.2,1.2,.5,1),opacity .4s;filter:drop-shadow(0 9px 5px #146e9a88)}
.sea-world.wave-made .sea-dolphin{opacity:1;transform:translateY(0) rotate(-15deg);animation:dolphinBob 1.9s ease-in-out 1s infinite}
.sea-world.dolphin-found .sea-dolphin{animation:dolphinLeap .9s ease-out forwards}
.sea-splash{position:absolute;z-index:3;right:9%;bottom:17%;font-size:3rem;opacity:0}
.sea-world.wave-made .sea-splash{opacity:1;animation:pop .5s}
.night-world{background:linear-gradient(#172e62 0%,#424984 59%,#a27198 100%)}
.night-stars{position:absolute;inset:0;background:radial-gradient(circle at 12% 16%,#fff 0 2px,transparent 3px),radial-gradient(circle at 72% 24%,#ffe7be 0 2px,transparent 3px),radial-gradient(circle at 83% 9%,#fff 0 2px,transparent 3px),radial-gradient(circle at 38% 33%,#fff 0 2px,transparent 3px),radial-gradient(circle at 59% 12%,#fff 0 2px,transparent 3px)}
.night-ball{left:18%;bottom:8%;background:repeating-linear-gradient(45deg,#b57486 0 17px,#e5a391 17px 34px,#efbdad 34px 47px)}
.night-aurora{position:absolute;top:-8%;left:-20%;width:140%;height:57%;opacity:0;background:radial-gradient(ellipse at 22% 75%,#61e8b399,transparent 47%),radial-gradient(ellipse at 55% 64%,#76a8ed88,transparent 50%),radial-gradient(ellipse at 83% 58%,#d689ecaa,transparent 42%);filter:blur(12px);transform:rotate(-8deg) translateY(-15%);transition:opacity 1.1s,transform 1.1s}
.night-world.aurora-lit .night-aurora{opacity:1;transform:rotate(-8deg) translateY(0);animation:auroraSway 5s ease-in-out 1s infinite alternate}
.firefly{position:absolute;z-index:5;width:68px;height:68px;border:0;border-radius:50%;background:radial-gradient(circle,#fffbd5 0 18%,#ffdc6599 30%,transparent 69%);color:#fffbd5;font-size:2.4rem;text-shadow:0 0 12px #ffe569,0 0 24px #ffdf55;animation:fireflyFloat 2s ease-in-out infinite alternate}
.firefly-one{left:15%;top:40%}.firefly-two{right:14%;top:31%;animation-delay:.6s}
.firefly.caught{opacity:.24;animation:none;pointer-events:none}
.aurora-reveal{position:absolute;z-index:6;left:15%;right:15%;top:8%;min-height:88px;border:3px solid #a3dac5;border-radius:24px;background:#c7f6d9e8;color:#173c61;font-family:Froople,'Trebuchet MS',sans-serif;font-size:1.9rem;box-shadow:0 0 30px #98f8d493;animation:pulse 2s infinite}
@keyframes butterflyBob{50%{transform:translateY(-12px)}}@keyframes wingLeft{to{transform:rotateY(55deg)}}@keyframes wingRight{to{transform:rotateY(-55deg)}}@keyframes seaDrift{to{transform:translateX(30px)}}@keyframes dolphinBob{50%{transform:translateY(-12px) rotate(-12deg)}}@keyframes dolphinLeap{50%{transform:translateY(-45px) rotate(-5deg)}100%{transform:translateY(0) rotate(-15deg)}}@keyframes fireflyFloat{to{transform:translateY(-14px) translateX(8px)}}@keyframes auroraSway{to{transform:rotate(1deg) translateY(6%)}}
@media(max-width:440px){.flower-stop{width:66px;height:76px;font-size:2.8rem}.sea-dolphin{font-size:5rem}.aurora-reveal{min-height:64px;font-size:1.45rem}}
.game-grid:has(.interactive-world-stage) .mission-card{min-height:0}
.game-grid:has(.interactive-world-stage) .sentence-area:empty{min-height:0;margin:0}

/* A tactile felt mat is the whole first-stage play surface. */
.scene-frame.thread-stage>img,.thread-stage .scene-caption{display:none}
.thread-stage .scene-interaction{pointer-events:auto}
.thread-mat{position:absolute;inset:0;overflow:hidden;touch-action:none;background:radial-gradient(ellipse at 45% 40%,#f8e5c9 0 37%,#e3b99f 85%),repeating-linear-gradient(88deg,#e7bea2 0 4px,#efcbaa 4px 8px);border:14px solid #d9959c;border-radius:21px;box-shadow:inset 0 0 0 7px #ffede0,inset 0 14px 30px #a96f7066;pointer-events:auto}
.thread-mat.dragging,.thread-mat.dragging .mat-letter{cursor:none}
.thread-mat-weave{position:absolute;inset:0;opacity:.24;background:repeating-linear-gradient(0deg,transparent 0 9px,#b87d85 10px 11px,transparent 12px 16px),repeating-linear-gradient(90deg,transparent 0 9px,#b87d85 10px 11px,transparent 12px 16px);pointer-events:none}
.mat-help{position:absolute;z-index:6;top:12px;right:10px;display:flex;align-items:center;pointer-events:none}
.mat-hear{pointer-events:auto;border:2px solid #fff8ee;border-radius:50%;background:#fff9ed;color:#24555a;width:38px;height:38px;flex:none;box-shadow:0 3px 12px #693f4450}
.mat-label{position:absolute;top:4%;left:0;right:0;text-align:center;color:#704a5c;font-family:Froople,'Trebuchet MS',sans-serif;font-size:clamp(1.4rem,2.5vw,1.8rem);pointer-events:none}
.mat-letter{position:absolute;z-index:4;transform:translate(-50%,-50%) rotate(var(--letter-turn,0deg));width:clamp(64px,7vw,82px);height:clamp(64px,7vw,82px);border:3px dashed #b16d7d;border-bottom:7px solid #b16d7d;border-radius:20px;background:repeating-linear-gradient(100deg,#fff0dd 0 8px,#f6d8c0 8px 13px);box-shadow:0 7px 9px #754b4d66,inset 0 4px 5px #fff8ef;color:#173c61;font-family:Froople,'Trebuchet MS',sans-serif;font-size:clamp(2.4rem,5vw,3.5rem);line-height:1;touch-action:none;user-select:none}
.mat-letter:nth-of-type(2n){--letter-turn:7deg;background:repeating-linear-gradient(100deg,#e1f1e6 0 8px,#cce6d5 8px 13px)}
.mat-letter:nth-of-type(3n){--letter-turn:-8deg;background:repeating-linear-gradient(100deg,#ffeed7 0 8px,#f4d2a7 8px 13px)}
.mat-letter.next{border-color:#cb7a3f;box-shadow:0 0 0 7px #ffe6a5,0 8px 11px #754b4d66;animation:matLetterGlow 1.5s ease-in-out infinite}
.mat-letter.sewn{background:#d3efdc;border-color:#6ba890;color:#2c6d58}
.mat-threads{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
.mat-threads line{stroke:#cf6379;stroke-width:7;stroke-linecap:round;filter:drop-shadow(0 2px 2px #7b3e50aa)}
.mat-threads .live-thread{fill:none;stroke:#ed5d83;stroke-width:9;stroke-linecap:round;filter:drop-shadow(0 3px 3px #763d58aa);opacity:1}
.mat-threads .yarn-tip{fill:#f46a8e;stroke:#fff6ec;stroke-width:3;filter:drop-shadow(0 2px 3px #763d58aa)}
.mat-needle{position:absolute;z-index:5;left:12%;top:12%;font-size:2.5rem;transform:translate(-30%,-65%) rotate(-27deg);pointer-events:none;filter:drop-shadow(0 4px 4px #633f46bb);transition:left .2s,top .2s}
.thread-mat.dragging .mat-needle{transition:none}
.thread-pronunciation{font-size:1.4rem!important;color:#3b7580!important;margin:12px 0 7px!important}
.thread-definition{font-size:1.18rem!important;color:#24555a!important;margin:0 0 22px!important}
.thread-stage~.mission-card .sentence-area{min-height:0;margin:7px 0 0}
.thread-stage~.mission-card .mission-action{min-height:0;margin:0}
.thread-tip{font-size:.87rem!important;color:#587474!important;margin:1px 0 7px!important}
.thread-stage~.mission-card{min-height:0}
@keyframes matLetterGlow{50%{box-shadow:0 0 0 10px #ffe6a5b0,0 8px 11px #754b4d66}}
@media(max-width:820px){.scene-frame.thread-stage{height:min(52vh,560px);min-height:360px}.mat-letter{width:70px;height:70px}}
@media(max-width:440px){.scene-frame.thread-stage{height:400px;min-height:0}.mat-letter{width:59px;height:59px;font-size:2.4rem;border-radius:14px}.mat-needle{font-size:2rem}.mat-label{font-size:1.3rem}}
@media(min-width:721px) and (max-width:820px){.play-screen .game-grid{grid-template-columns:minmax(310px,.85fr) minmax(330px,1fr);gap:16px}.play-screen .scene-frame{width:100%;height:min(67vh,650px);min-height:0;max-width:none}.play-screen .mission-card{padding:20px;min-height:0}.play-screen .play-top h2{font-size:2.5rem}.play-screen .sentence-area{margin:12px 0 0}}

/* Small learning cards; the spoken rules live with the play surface. */
.thread-title-audio{display:inline-grid;place-items:center;vertical-align:middle;width:43px;height:43px;margin-left:11px;border:2px solid #a6d0cf;border-radius:50%;background:#e8f5f4;color:#173c61;font-family:system-ui,sans-serif;font-size:1rem;letter-spacing:0}
.thread-meaning-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:10px}
.thread-spool-visual{width:150px;height:115px;object-fit:contain;filter:drop-shadow(0 7px 6px #7b6c6555)}
.board-direction-words{display:flex;gap:10px;flex-wrap:wrap}
.board-direction-words button{border:2px solid #a3cdb9;border-radius:999px;padding:8px 13px;background:#e7f7e9;color:#24555a;font-weight:900}
.garden-instruction-bar,.sea-instruction-bar,.night-instruction-bar{position:absolute;z-index:9;top:2%;left:3%;right:3%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px 8px 14px;border:2px solid white;border-radius:17px;background:#fffaf2ed;box-shadow:0 6px 16px #29404d33;color:#173c61;font-weight:900;font-size:clamp(.77rem,1.7vw,.98rem);line-height:1.2}
.garden-hear,.sea-hear,.night-hear{flex:none;width:37px;height:37px;border:2px solid #9bc9c8;border-radius:50%;background:#e6f5f3;color:#173c61}
.butterfly-stage .scene-caption,.whale-stage .scene-caption,.aurora-stage .scene-caption{display:none}

/* Discovery 5: hand-made ripples draw a breathing baby whale to the surface. */
.whale-world{background:linear-gradient(#a8d6fa 0 44%,#4ab5d0 44%,#087ca8 100%)}
.whale-world .sea-sun{top:11%;right:13%;width:58px}
.sea-horizon{position:absolute;left:-8%;right:-8%;top:43%;height:8%;background:repeating-radial-gradient(ellipse at 50% 40%,#f5ffffaa 0 5px,#a6e5e733 6px 31px,transparent 33px 60px);animation:seaDrift 4s ease-in-out infinite alternate}
.whale-cast{position:absolute;z-index:2;left:4%;bottom:51%;width:37%;height:18%;display:flex;align-items:end;filter:drop-shadow(0 6px 5px #24557266)}
.whale-cast:before{content:'';position:absolute;z-index:-1;left:-7%;right:-7%;bottom:-19%;height:44%;border-radius:50%;background:repeating-linear-gradient(42deg,#e9a097 0 8px,#f6c4aa 8px 15px,#d28c91 15px 22px);border:3px solid #dfa092;box-shadow:0 8px 10px #24708e77}
.whale-cast img{width:52%;height:100%;object-fit:contain;object-position:bottom}
.whale-swipe-zone{position:absolute;z-index:4;inset:48% 0 0;pointer-events:auto;touch-action:none;cursor:ew-resize}
.whale-shadow{position:absolute;z-index:2;left:31%;bottom:17%;width:46%;height:16%;border-radius:50%;background:#126c9399;filter:blur(13px);transform:translateX(-35%) scale(.66);opacity:.25;transition:transform .9s,opacity .9s}
.whale-world.whale-one-wave .whale-shadow{opacity:.68;transform:translateX(8%) scale(.9)}
.whale-world.whale-two-waves .whale-shadow{opacity:0;transform:translateX(5%) translateY(-150%) scale(1.1)}
.whale-ripple{position:absolute;top:0;left:50%;width:45px;height:14px;border:4px solid #e7fbff;border-radius:50%;transform:translate(-50%,-50%) scale(.15);opacity:0;pointer-events:none}
.whale-ripple.ripple-go{animation:whaleRipple .8s ease-out forwards}
.whale-bubbles{position:absolute;left:48%;top:30%;color:#ddf9ff;font-size:2.5rem;letter-spacing:.2em;opacity:0;transition:opacity .4s;animation:whaleBubble 2s ease-in-out infinite}
.whale-world.whale-one-wave .whale-bubbles{opacity:.85}
.baby-whale{position:absolute;z-index:7;left:30%;bottom:52%;width:65%;height:32%;border:0;background:none;filter:drop-shadow(0 12px 7px #155f7a77);animation:whaleRise 1.2s cubic-bezier(.18,1.15,.45,1) both}
.baby-whale svg{width:100%;height:100%;overflow:visible}
.whale-spout{position:absolute;left:48%;top:-27%;font-size:2rem;opacity:0}
.whale-world.whale-breathing .whale-spout{opacity:1;animation:whaleSpout .8s ease-out both}
.night-word-progress{color:#477d78!important;font-weight:900;letter-spacing:.12em}
@keyframes whaleRipple{to{transform:translate(-50%,-50%) scale(6);opacity:0}}
@keyframes whaleBubble{50%{transform:translateY(-30px)}}
@keyframes whaleRise{from{opacity:0;transform:translateY(95%) rotate(-8deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes whaleSpout{to{opacity:0;transform:translateY(-35px) scale(1.3)}}

/* Discovery 6: an ordered constellation lights the aurora. */
/* Spelling lifts the complete character-and-ball sprite one step at a time. */
.spelling-float{overflow:clip}
.spelling-flight{position:absolute;z-index:4;left:10%;width:80%;height:38%;bottom:var(--spell-lift,28%);transition:bottom 1.15s cubic-bezier(.2,.7,.2,1);pointer-events:none;filter:drop-shadow(0 12px 9px #626c9a55)}
.spelling-flight img{width:100%;height:100%;object-fit:contain;animation:gentleSpriteFloat 3s ease-in-out infinite}
.float-spelling-tray{position:absolute;z-index:9;left:3%;right:3%;bottom:2%;padding:13px 8px;background:#fff8ebed;border:2px solid white;border-radius:22px;box-shadow:0 5px 15px #47597033}
.float-slots,.float-letter-bank{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.float-letter-bank{margin-top:12px}
.float-letter-slot,.float-letter-tile{height:clamp(41px,6vh,61px);min-width:0;border-radius:12px;font-family:Froople,'Trebuchet MS',sans-serif;font-size:clamp(1.5rem,3vw,2rem);color:#173c61;touch-action:none;user-select:none}
.float-letter-slot{border:3px dashed #a9bfc3;background:#e9f0ed}
.float-letter-slot.filled{border:3px solid #73b394;background:#d7eddd}
.float-letter-tile{border:2px solid #e0af70;border-bottom-width:5px;background:#ffe2a0;cursor:grab}
.float-letter-tile.selected{outline:3px solid #63a8c3;outline-offset:2px}
.float-letter-tile:disabled{opacity:.2;cursor:default}
.float-drag-letter{position:absolute;z-index:20;width:58px;height:58px;display:grid;place-items:center;transform:translate(-50%,-50%);border:3px solid white;border-radius:14px;background:#ffdb82;box-shadow:0 8px 16px #47597066;font-family:Froople;font-size:2rem;color:#173c61;pointer-events:none}
@keyframes gentleSpriteFloat{50%{transform:translateY(-4px) rotate(.7deg)}}
/* Hold the whale, build power, then release a tall splash and rainbow. */
.splash-world{overflow:clip;background:linear-gradient(#a8d6fa 0 67%,#4ab5d0 67%,#087ca8 100%)}
.splash-cast{position:absolute;z-index:4;left:18%;width:64%;height:36%;top:21%;filter:drop-shadow(0 10px 8px #456c9f55)}
.splash-cast img{width:100%;height:100%;object-fit:contain;animation:gentleSpriteFloat 3s ease-in-out infinite}
.splash-world .sea-horizon{top:67%}
.garden-cast-ball{position:absolute;z-index:2;left:8%;bottom:10%;width:84%;height:68%;pointer-events:none}
.garden-cast-ball img{width:100%;height:100%;object-fit:contain}
.charge-whale{position:absolute;z-index:7;left:6%;bottom:10%;width:88%;height:34%;padding:0;border:0;background:none;touch-action:none;user-select:none;-webkit-user-select:none;filter:drop-shadow(0 10px 8px #155f7a55);cursor:pointer}
.charge-whale svg{position:absolute;left:13.636%;bottom:11.765%;width:72.727%;height:76.47%;overflow:visible;pointer-events:none}
.splash-world.charging .charge-whale svg{animation:whaleChargeBob .5s ease-in-out infinite}
.splash-world.charge-full .charge-whale{filter:drop-shadow(0 0 15px #fff5a9)}
.splash-power{position:absolute;z-index:9;left:8%;right:8%;bottom:3%;padding:9px 12px;border:2px solid white;border-radius:16px;background:#fffaf2ec;color:#173c61;font-size:.85rem;font-weight:900}
.splash-power>span{display:flex;justify-content:space-between;gap:7px}
.splash-power-track{height:12px;margin-top:7px;border-radius:9px;background:#d7e5e8;overflow:hidden}
.splash-power-track i{display:block;height:100%;width:var(--splash-charge,0%);background:linear-gradient(90deg,#7cd5c0,#ffdc6c);border-radius:9px}
.splash-jet{position:absolute;z-index:8;bottom:35%;left:47%;width:6%;height:var(--jet-height,12%);transform-origin:center bottom;opacity:0;pointer-events:none}
.splash-jet i{position:absolute;bottom:0;width:28%;height:100%;border-radius:70% 70% 20% 20%;background:linear-gradient(#e2fcff,#7ed9f0);box-shadow:0 0 10px #edffff99;transform-origin:bottom}
.splash-jet i:nth-child(1){left:35%}.splash-jet i:nth-child(2){left:35%;transform:rotate(-10deg);height:92%}.splash-jet i:nth-child(3){left:35%;transform:rotate(10deg);height:92%}
.splash-jet span{position:absolute;top:-8%;left:-85%;font-size:2.8rem}
.splash-fired .splash-jet{animation:whaleWaterJet 2.6s ease-out both}
.splash-fired .splash-cast{animation:splashCastWiggle .9s ease-in-out .5s}
.splash-rainbow{position:absolute;z-index:3;left:5%;top:17%;width:90%;height:44%;opacity:0;transform:scale(.75);transition:opacity 1.2s,transform 1.2s;filter:drop-shadow(0 0 10px #fff9c9)}
.splash-rainbow path{fill:none;stroke-width:12;stroke-linecap:round}
.rainbow-shown .splash-rainbow{opacity:.9;transform:scale(1)}
.splash-announcement{position:absolute;z-index:10;top:15%;left:4%;right:4%;text-align:center;color:#173c61;font-family:Froople;font-size:1.6rem;pointer-events:none}
.splash-vocabulary{display:flex;gap:10px;flex-wrap:wrap}
.splash-vocabulary button{padding:10px 15px;border:2px solid #a6d0cf;border-radius:99px;background:#e8f5f4;color:#173c61;font-weight:900}
.splash-learning{font-size:.95rem;color:#477d78}
@keyframes whaleChargeBob{50%{transform:translateY(3px) scale(1.02)}}
@keyframes whaleWaterJet{0%{opacity:0;transform:scaleY(.05)}18%,65%{opacity:1;transform:scaleY(1)}100%{opacity:0;transform:scaleY(.85)}}
@keyframes splashCastWiggle{30%{transform:rotate(-4deg)}70%{transform:rotate(4deg)}}
.night-world{overflow:clip}
.night-star-lines{position:absolute;z-index:3;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.night-star-lines line{stroke:#fff4ac;stroke-width:.7;stroke-linecap:round;filter:drop-shadow(0 0 4px #f9e886)}
.letter-star{position:absolute;z-index:5;width:57px;height:57px;transform:translate(-50%,-50%);border:2px solid #fff5d3;border-radius:50%;background:radial-gradient(circle,#f8e6a6 0 35%,#ffd56777 57%,#ffe3a300 78%);color:#293a67;font-family:Froople,'Trebuchet MS',sans-serif;font-size:1.8rem;box-shadow:0 0 15px #fff2c588;animation:starFloat 3.5s ease-in-out infinite alternate}
.letter-star:nth-of-type(even){animation-delay:-.7s}
.letter-star.next{box-shadow:0 0 0 7px #fff1a955,0 0 25px #fff2a8;animation:starPulse 1.3s ease-in-out infinite}
.letter-star.lit{background:#fff3b9;box-shadow:0 0 22px 8px #ffeda488;color:#173c61;animation:starGlow 3.5s ease-in-out infinite alternate}
.night-cast-back{position:absolute;z-index:4;left:0;right:0;bottom:-16%;height:60%;pointer-events:none}
.night-cast-back img{width:100%;height:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 8px 10px #1e2a5277)}
.night-world.aurora-lit .night-aurora{opacity:1;height:70%;background:radial-gradient(ellipse at 15% 69%,#47f4b8dd,transparent 48%),radial-gradient(ellipse at 48% 49%,#89abffcc,transparent 45%),radial-gradient(ellipse at 84% 55%,#e294ffdd,transparent 45%);filter:blur(9px) saturate(1.45);transform:rotate(-8deg) translateY(0);animation:auroraSway 4s ease-in-out infinite alternate}
@keyframes starFloat{to{transform:translate(-50%,calc(-50% - 2px))}}
@keyframes starGlow{to{box-shadow:0 0 25px 9px #ffeda488}}
@keyframes starPulse{50%{transform:translate(-50%,calc(-50% - 2px)) scale(1.04);box-shadow:0 0 0 8px #fff1a955,0 0 28px #fff2a8}}
@media(max-width:440px){.thread-meaning-row{grid-template-columns:minmax(0,1fr) 112px}.thread-spool-visual{width:112px;height:95px}.letter-star{width:48px;height:48px;font-size:1.5rem}.thread-title-audio{width:39px;height:39px}}
