body.space{--bg:#0e1238;--surface:#1d2152;--ink:#f6f1ff;--muted:#c3c6ea;--accent:#ffb38f;--accent-text:#ffb38f;--onaccent:#1b1840;--accent2:#a9b1ff;--line:#6c74b0;--shadow:#05071c;--card:#efeaff;--card-ink:#262a5a;--focus:#7ff3e1;--map:#161b4a;--orbit:#5b648b}
body.space[data-theme="1"]{--bg:#e3e9ff;--surface:#fbfaff;--ink:#232a5c;--muted:#4d5784;--accent:#5a46c8;--accent-text:#5a46c8;--onaccent:#ffffff;--accent2:#c8d0f5;--line:#8b96c3;--shadow:#b6c0e0;--card:#ffffff;--card-ink:#262a5a;--focus:#a73b52;--map:#d6def5;--orbit:#a9b4d6}
body.space[data-theme="2"]{--bg:#2a1638;--surface:#3d2350;--ink:#fff0e6;--muted:#e2c4dc;--accent:#ffd27a;--accent-text:#ffd27a;--onaccent:#2a1430;--accent2:#c2a2ca;--line:#a17eaf;--shadow:#170a22;--card:#fbebe3;--card-ink:#4f2f4a;--focus:#9de2cb;--map:#341d46;--orbit:#7d5d8e}
.space .world{background-image:radial-gradient(circle at 15% 14%,var(--muted) 1px,transparent 1.5px),radial-gradient(circle at 70% 66%,var(--muted) 1px,transparent 1.5px),radial-gradient(circle at 45% 42%,var(--muted) .8px,transparent 1.2px);background-size:190px 190px,310px 310px,130px 130px;opacity:.35}.space .brand-mark{border-radius:50%;background:var(--accent2);color:#303857}.space .brand{font-family:Comfortaa,sans-serif;font-size:17px}.space .brand small{font-family:Nunito,sans-serif}.space .theme-control,.space .tool{background:var(--surface)}.space #header{padding-bottom:20px;border-bottom:1px solid var(--line)}.space h1,.space h2{font-family:Comfortaa,sans-serif;font-weight:700}.space-home{display:grid;grid-template-columns:.7fr 1.3fr;gap:clamp(40px,5vw,80px);align-items:stretch}.captain-panel{padding-top:20px;display:flex;flex-direction:column}.captain-panel .eyebrow{font-size:10px}.captain-panel h1{font-size:clamp(40px,4.7vw,74px);line-height:1.15;letter-spacing:-.065em}.captain-panel .lead{font-size:21px;color:var(--muted);line-height:1.5}.captain{margin-top:66px;width:220px;max-width:90%;align-self:center}.space .lucy-portrait{border:12px solid var(--accent2);box-shadow:0 0 0 2px var(--line),0 9px 0 var(--shadow);border-radius:50% 50% 45% 45%}.space .lucy-portrait:before{content:"";position:absolute;z-index:1;inset:5px;border-radius:50%;border-top:6px solid #ffffff80;transform:rotate(-28deg);pointer-events:none}.space .lucy img{object-position:50% 37%}.space .lucy figcaption{background:var(--surface);color:var(--ink);border:2px solid var(--accent2);font-size:10px;padding:7px 18px;transform:rotate(0)}.space .lucy figcaption .icon{width:13px;height:13px}.space .lucy .speech{font-size:13px;border:1px solid var(--line);border-radius:18px}.space .lucy .speech:after{border-width:1px}.captain-label{font-size:9px;letter-spacing:.14em;display:block;text-align:center;color:var(--muted);margin-top:22px}.star-map{background:var(--map);position:relative;border:1px solid var(--line);border-radius:130px 130px 28px 28px;padding:45px 35px 25px;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;justify-content:center}.map-heading{display:flex;justify-content:center;align-items:center;gap:20px;font-size:8px;font-weight:900;letter-spacing:.11em;color:var(--muted);z-index:1}.map-mark{font-size:30px;color:var(--accent-text)}.map-caption{text-align:center;font-size:18px;font-weight:800;margin:25px 0 35px;z-index:1}.map-orbit{position:absolute;z-index:-1;width:80%;aspect-ratio:1;border:1px solid var(--orbit);border-radius:50%;top:18%;left:10%;transform:rotate(-30deg) scaleX(1.4)}.map-orbit.second{top:21%;transform:rotate(40deg) scaleX(.85)}.planets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:45px 24px;align-items:center;padding:10px 15px}.planets button{aspect-ratio:1;min-height:95px;border-radius:50%;background:#bfc6e7;color:#303858;box-shadow:inset -9px -10px 0 #00000012,0 7px 0 var(--shadow);border:2px solid #ebefff99;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;transition:transform .3s;animation:reveal .55s cubic-bezier(.2,.8,.3,1.3) backwards;animation-delay:calc(var(--i)*.06s)}.planets button:nth-child(2n){background:#f0bda2;color:#593f40}.planets button:nth-child(3n){background:#aad2d6;color:#28494f}.planets button:nth-child(2),.planets button:nth-child(5){transform:translateY(-18px)}.planets button:hover{transform:translateY(-8px) rotate(6deg)}.planets .pick-glyph{font-size:clamp(32px,4vw,58px);font-weight:900;line-height:1.1;z-index:1}.planets .pick-glyph small{font-size:.65em;margin-left:3px}.planets .pick-caption{font-size:10px;margin-top:7px;z-index:1}.planets .letter-decoration{position:absolute;inset:12px;border:1px solid #ffffff50;border-radius:50%}.planets button:nth-child(3) .letter-decoration{inset:40% -13%;height:30%;transform:rotate(-20deg);border:5px solid #d0edf0;z-index:0}.planets button:nth-child(1):after,.planets button:nth-child(5):after{content:"";width:16px;height:16px;background:#0000000c;position:absolute;bottom:19%;left:15%;border-radius:50%}.map-ship{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:26px;font-size:11px;color:var(--muted);z-index:1}.map-ship .art{width:55px;transform:rotate(22deg)}.space .listen-layout{max-width:1200px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.space .listen-intro{order:2}.space .guide-lucy{width:170px;margin:65px auto 0}.space .listen-work{text-align:center;position:relative;padding:30px}.space .listen-work:before{content:"";position:absolute;inset:5px -10px 80px;border:1px solid var(--line);border-radius:50%;z-index:-1}.space .listen-letter{border-radius:50%;aspect-ratio:1;background:var(--accent2);color:#303858;border:8px solid #ffffff3d;box-shadow:inset -15px -15px 0 #00000010,0 0 0 1px var(--line);width:100%;margin-bottom:30px;animation:reveal .6s cubic-bezier(.2,.8,.3,1.3)}.space .letter-corner{font-size:9px;letter-spacing:.2em;font-weight:900}.space .listen-work .small-note{margin:22px 0 0}.space .match-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:80px;max-width:1200px;margin:auto;align-items:center}.space .match-prompt{position:relative}.space .match-prompt h1 br{display:none}.space .match-sound{width:min(65%,270px);margin:30px 0 0}.space .match .listen-letter{min-height:180px;padding:15px;margin:0;border-width:5px}.space .match .glyph{font-size:100px}.space .match .sound-wave{display:none}.space .match-lucy{position:absolute;right:0;bottom:10px;width:115px}.space .match-lucy .lucy-portrait{border-width:7px}.space .match-lucy .spark{font-size:30px}.space .choices{grid-template-columns:1fr;gap:15px}.space .choice{display:flex;flex-direction:row;justify-content:flex-start;gap:26px;border-radius:90px;padding:12px 28px;min-height:114px;border:2px solid #ffffff70;box-shadow:0 6px 0 var(--shadow)}.space .choice .art{width:94px;max-height:94px}.space .choice .word{font-size:25px;flex:1;justify-content:space-between}.space .choice:nth-child(2){background:#f3e3d8}.space .choice:nth-child(3){background:#daeaeb}.space .feedback{font-size:15px;margin:23px 0 14px}.space .replay-prompt{font-size:14px}.space .celebration-layout{max-width:1250px;margin:auto;display:grid;grid-template-columns:1fr 1.3fr;gap:65px;align-items:center;padding:30px 20px;position:relative}.space .reward-art{text-align:center;border-radius:50%;background:var(--accent2);color:#303858;aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;padding:25px;box-shadow:inset -15px -15px 0 #00000012,0 0 0 12px var(--bg),0 0 0 13px var(--line);animation:reveal .7s cubic-bezier(.2,.8,.3,1.3)}.space .reward-ring{position:absolute;inset:-35px;border:1px dashed var(--line);border-radius:50%;transform:rotate(20deg)}.space .reward-art .art{width:150px;margin:15px auto 5px}.space .reward-letter{font-size:65px}.space .reward-letter small{font-size:.65em}.space .burst-label{font-size:10px}.space .reward-stamp{bottom:15px;right:0;background:var(--accent);border:0}.space .celebration-copy{padding-bottom:120px}.space .finish-title{font-size:clamp(40px,4.2vw,68px);line-height:1.1}.space .finish-actions{justify-content:flex-start;flex-wrap:nowrap}.space .finish-actions .primary,.space .finish-actions .secondary{font-size:16px;padding-inline:18px}.space .reward-replay{margin-top:24px}.space .celebration-lucy{position:absolute;bottom:0;right:50px;width:125px}.space .celebration-lucy .speech{font-size:12px}.space .celebration-lucy .lucy-portrait{border-width:6px}
@media(max-width:1100px){.space-home{gap:35px}.star-map{padding:35px 20px 20px;border-radius:100px 100px 25px 25px}.planets{gap:35px 18px;padding:10px}.captain{width:180px;margin-top:60px}.captain-panel h1{font-size:clamp(39px,4.8vw,60px)}.map-heading{gap:12px;font-size:7px}.map-caption{font-size:16px}.space .listen-layout{gap:35px}.space .match-layout{gap:40px}.space .choice{padding:10px 20px;gap:16px}.space .celebration-layout{gap:40px}.space .finish-actions{flex-wrap:wrap}.space .celebration-copy{padding-bottom:160px}.space .celebration-lucy{right:40px}.space .reward-art .art{width:120px}.space .reward-ring{inset:-20px}}
@media(max-width:650px){.space .brand{font-size:14px}.space-home{grid-template-columns:1fr;gap:30px}.captain-panel{display:grid;grid-template-columns:1fr 100px;gap:0 15px;padding:0}.captain-panel .eyebrow{grid-column:1/-1;font-size:8px;margin-bottom:15px}.captain-panel h1{font-size:38px;grid-column:1;margin-bottom:13px;line-height:1.15}.captain-panel .lead{font-size:16px;grid-column:1}.captain-panel .lead br{display:none}.captain{grid-column:2;grid-row:2/4;width:100px;max-width:none;margin:0;align-self:center}.captain .speech{display:none}.captain-label{font-size:7px;letter-spacing:.08em;margin-top:14px;line-height:1.7}.space .captain .lucy-portrait{border-width:6px}.space .lucy figcaption{font-size:8px;padding:4px 12px}.space .lucy figcaption .icon{width:10px;height:10px}.space .spark{font-size:25px}.star-map{border-radius:85px 85px 22px 22px;padding:27px 15px 15px}.map-heading{font-size:6px;gap:8px}.map-heading .map-mark{font-size:23px}.map-caption{font-size:14px;margin:18px 0 28px}.planets{gap:32px 17px;padding:5px}.planets button{min-height:83px}.planets .pick-glyph{font-size:33px}.planets .pick-caption{font-size:8px;margin-top:2px}.planets .letter-decoration{inset:6px}.planets button:nth-child(3) .letter-decoration{border-width:3px}.planets button:nth-child(2),.planets button:nth-child(5){transform:translateY(-12px)}.map-ship{margin-top:18px;font-size:10px;gap:10px}.map-ship .art{width:40px}.space .listen-layout{grid-template-columns:1fr;gap:20px}.space .listen-intro{order:0;position:relative;padding-right:100px;min-height:155px}.space .guide-lucy{position:absolute;right:0;top:20px;width:85px;margin:0}.space .guide-lucy .speech{display:none}.space .guide-lucy .lucy-portrait{border-width:5px}.space .listen-work{padding:10px 24px}.space .listen-letter{min-height:210px;max-width:270px;margin:0 auto 25px;border-width:6px}.space .listen-letter .glyph{font-size:105px}.space .listen-work:before{inset:-4px 8px 105px}.space .match-layout{grid-template-columns:1fr;gap:25px}.space .match-prompt{padding-right:115px;min-height:130px}.space .match-prompt .eyebrow{font-size:8px}.space .match-prompt .play-title{font-size:31px}.space .match-sound{position:absolute;width:105px;right:0;top:4px;margin:0}.space .match .listen-letter{min-height:105px;margin:0;padding:8px;border-width:3px;aspect-ratio:1}.space .match .glyph{font-size:48px}.space .match .letter-corner{display:none}.space .match .sound-label{font-size:10px;gap:3px}.space .match .sound-label .icon{width:14px;height:14px}.space .match-lucy{display:none}.space .choices{gap:13px}.space .choice{min-height:98px;padding:8px 24px;gap:20px}.space .choice .art{width:80px;max-height:80px}.space .choice .word{font-size:23px}.space .choice .word .icon{display:block;width:20px;height:20px}.space .feedback{font-size:14px;margin-top:20px}.space .celebration-layout{grid-template-columns:1fr;gap:37px;padding:15px 5px}.space .reward-art{width:220px;justify-self:start;padding:20px}.space .reward-art .art{width:95px;margin:8px auto 0}.space .reward-letter{font-size:50px}.space .burst-label{font-size:8px}.space .reward-ring{inset:-12px}.space .reward-stamp{width:42px;height:42px;bottom:0}.space .celebration-lucy{width:90px;top:155px;bottom:auto;right:0}.space .celebration-lucy .speech{font-size:10px;padding:8px}.space .celebration-copy{padding:0}.space .finish-title{font-size:40px}.space .finish-actions{flex-wrap:nowrap}.space .finish-actions .primary,.space .finish-actions .secondary{font-size:15px;padding:12px}.space .reward-replay{margin-top:20px}}
@media(min-width:651px) and (max-height:600px){.captain-panel h1{font-size:44px}.captain-panel .lead{font-size:18px}.captain{width:145px}.space .listen-letter .glyph{font-size:100px}.space .guide-lucy{width:110px;margin-top:50px}.space .listen-work{padding:15px}.space .listen-letter{max-width:280px;margin-inline:auto}.space .match .glyph{font-size:75px}.space .match-lucy{width:90px}.space .match .listen-letter{min-height:150px}.space .choice{min-height:95px}.space .choice .art{width:75px;height:75px}.space .celebration-copy{padding:0}.space .celebration-lucy{display:none}}
@media(min-width:651px) and (max-width:1499px){.star-map{padding:22px 28px 18px}.planets{max-width:530px;width:100%;margin:auto;gap:25px 30px}.planets button{max-width:145px;justify-self:center}.map-caption{margin:12px 0 23px}.map-ship{margin-top:14px}.map-ship .art{width:42px}.captain{width:165px;margin-top:55px}.captain-panel h1{font-size:clamp(40px,4.3vw,60px)}.captain-panel .lead{font-size:20px}.captain-label{margin-top:16px}.space-home{max-width:1400px;margin:auto}}
@media(min-width:1500px){.planets{max-width:650px;width:100%;margin:auto}.planets button{max-width:180px;justify-self:center}.star-map{max-height:760px}.captain-panel{justify-content:center}.captain-panel h1{font-size:74px}.captain{margin-top:75px}}
@media(min-width:651px) and (max-width:1499px) and (min-height:600px){.space #main{padding-top:20px;padding-bottom:12px}.star-map{padding-top:18px;padding-bottom:12px}.map-ship{margin-top:8px}.captain-panel{padding-top:10px}}
@media(min-width:651px) and (max-width:1499px) and (min-height:600px){.space .map-ship{margin-top:2px}}
@media(max-width:350px){.captain-panel{grid-template-columns:minmax(0,1fr) 80px;gap:0 10px}.captain{width:80px}.captain-panel h1{font-size:30px}.planets{column-gap:10px}.planets button{min-height:70px}.star-map{padding-inline:12px}.planets .pick-glyph{font-size:28px}}
