@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800;900&display=swap');
:root{color-scheme:dark;--yellow:#ffe65b;--cyan:#6cedff;--white:#fff7ed;--purple:#9266ff;font-family:'Nunito','Trebuchet MS',sans-serif;background:#030b20;color:var(--white)}
*{box-sizing:border-box}body{margin:0;min-height:100svh;overflow-x:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--cyan);outline-offset:7px}button:disabled{cursor:wait}button,a{touch-action:manipulation}
.universe{position:fixed;inset:-3%;background:radial-gradient(ellipse at 20% 25%,#102b50,transparent 60%),linear-gradient(145deg,#030b20,#081a38);z-index:-3;transform:scale(1.03)}
canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}#space{z-index:-2}#sparkles{z-index:7}.topbar{position:relative;z-index:10;display:flex;align-items:center;justify-content:space-between;max-width:1680px;padding:28px 48px;margin:auto}.home-mark{display:flex;gap:11px;align-items:center;text-decoration:none;color:#ddd5f3;font-size:9px;letter-spacing:2px;line-height:1.6;font-weight:800}.home-mark b{color:white}.mini-star{font-size:38px;color:var(--yellow);text-shadow:0 0 22px #ffc95099}.location{display:flex;gap:10px;align-items:center;font-size:10px;letter-spacing:2.5px;font-weight:800;background:#150f4366;border:1px solid #c2aaff30;border-radius:30px;padding:12px 20px;backdrop-filter:blur(14px)}.location-dot{width:6px;height:6px;border-radius:50%;background:#a8f8d2;box-shadow:0 0 12px #8cffc9}
main{position:relative;min-height:calc(100svh - 182px);display:grid;place-items:center}.hero{position:relative;z-index:3;text-align:center;margin:4px auto 28px;max-width:750px;padding:0 20px;animation:arrive 1s both}.orbit-label{display:flex;align-items:center;justify-content:center;gap:9px;font-size:9px;letter-spacing:3px;font-weight:800;color:#d3c6fa;margin-bottom:12px}.orbit-label span{width:5px;height:5px;background:var(--yellow);border-radius:50%;box-shadow:0 0 15px #ffffab}.logo{width:clamp(200px,21vw,300px);height:auto;filter:drop-shadow(0 14px 24px #08021866);animation:logo-hover 7s ease-in-out infinite}.playground{font-weight:900;font-size:11px;color:#e8e1ff;margin:3px 0 17px;letter-spacing:6px;padding-left:6px}h1{font-family:'Baloo 2','Trebuchet MS',sans-serif;font-weight:800;line-height:.85;letter-spacing:-3px;font-size:clamp(70px,7.8vw,115px);margin:18px 0 25px;text-shadow:0 4px 0 #604393,0 8px 0 #332053,0 17px 26px #07021580}h1>span{display:block;font-size:.77em;letter-spacing:3px;color:#fff9ee}h1 strong{position:relative;display:inline-block;color:var(--yellow);font-weight:800;text-shadow:0 4px 0 #d09b27,0 8px 0 #6c3d42,0 17px 26px #07021580;margin-top:10px}.heading-star{position:absolute;font-size:30px;right:-40px;top:11px;color:#a6f4ff;transform:rotate(14deg);text-shadow:0 0 20px #4ae5ff}.intro{font-size:14px;line-height:1.85;font-weight:600;color:#e2d8f6;margin:0 0 24px}.play-hint{margin-top:19px;font-size:10px;font-weight:700;color:#b6a7d9;letter-spacing:.3px}.play-hint span{color:var(--yellow);font-size:15px;margin-right:3px}
.toys{position:absolute;inset:0;pointer-events:none;z-index:4}.toy{position:absolute;border:0;background:none;padding:0;pointer-events:auto;cursor:grab;touch-action:none;will-change:transform;user-select:none;filter:drop-shadow(0 22px 20px #07022980);transition:filter .25s}.toy:hover{filter:drop-shadow(0 0 25px #bba0ff66)}.toy:active,.toy.dragging{cursor:grabbing}.toy img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}.toy:focus-visible{outline:2px dashed #fff9b5;outline-offset:8px;border-radius:40%}.toy-label{position:absolute;left:50%;bottom:0;transform:translate(-50%,100%);font-size:10px;color:#efe5ff;white-space:nowrap;background:#342360c9;padding:5px 10px;border-radius:20px;opacity:0;transition:opacity .2s}.toy:hover .toy-label,.toy:focus-visible .toy-label{opacity:1}.astronaut{width:clamp(140px,20vw,290px);height:clamp(190px,26vw,360px);left:7%;top:19%;--angle:-12deg}.rocket{width:clamp(120px,18vw,255px);height:clamp(165px,23vw,320px);right:7%;top:32%;--angle:16deg}.planet{width:145px;height:115px;right:16%;top:1%}.blue-planet{width:105px;height:105px;left:21%;bottom:5%}.toy canvas{position:static;width:100%;height:100%}.scene-note{position:absolute;z-index:2;color:#bfb0e5;font-size:8px;font-weight:800;letter-spacing:2px;display:flex;align-items:center;gap:12px;pointer-events:none}.scene-note i{font-family:serif;font-size:40px;font-weight:400;color:#ffed9c}.note-left{left:6%;top:69%;transform:rotate(-10deg)}.note-right{right:5%;top:21%;transform:rotate(10deg)}
footer{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 48px 27px;max-width:1680px;margin:auto;color:#ccc0e4;font-size:8px;letter-spacing:1.6px;font-weight:800}.footer-left{display:flex;align-items:center;gap:10px}.footer-star{font-size:24px;color:var(--yellow)}.coordinates{font-family:monospace;font-size:9px;letter-spacing:2px;color:#a597c4}.footer-right{font-size:10px;letter-spacing:.4px}.footer-right span{color:var(--yellow);margin-left:8px}.toast{position:fixed;z-index:12;left:50%;bottom:30px;transform:translate(-50%,20px);padding:13px 23px;border:1px solid #c6b0ff55;border-radius:30px;background:#241344ec;backdrop-filter:blur(16px);font-weight:800;font-size:13px;opacity:0;pointer-events:none;transition:opacity .3s,transform .3s;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes arrive{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}@keyframes logo-hover{50%{transform:translateY(-8px) rotate(1deg)}}
body.paused *,body.paused *:before,body.paused *:after{animation-play-state:paused!important}.launching .rocket{pointer-events:none}
@media(min-width:1600px){main{min-height:calc(100svh - 190px)}.hero{padding-top:15px}.logo{width:325px}}
@media(max-width:1050px){.astronaut{left:1%;top:24%;width:190px;height:245px}.rocket{right:0;top:43%;width:165px;height:215px}.planet{right:8%;width:115px}.blue-planet{left:12%;bottom:8%;width:85px;height:85px}.scene-note{display:none}.hero{max-width:600px}h1{font-size:90px}.logo{width:240px}.topbar{padding:24px 28px}footer{padding:22px 28px}}
@media(max-width:680px){.topbar{padding:17px 18px}.home-mark{font-size:7px;letter-spacing:1px;gap:6px}.mini-star{font-size:27px}.location{font-size:8px;letter-spacing:1px;padding:9px 10px;gap:6px}main{min-height:calc(100svh - 145px);padding-top:36px;padding-bottom:145px}.hero{padding:0 15px;margin:0 auto;max-width:100%}.orbit-label{font-size:7px;letter-spacing:1.7px;margin-bottom:12px}.logo{width:205px}.playground{font-size:9px;letter-spacing:4px;margin:3px 0 15px}h1{font-size:78px;letter-spacing:-2px;margin:14px 0 22px}.heading-star{font-size:22px;right:-28px}.intro{font-size:12px;line-height:1.8;max-width:310px;margin:0 auto 22px}.play-hint{font-size:8px;margin-top:18px}.astronaut{width:125px;height:163px;left:3%;top:auto;bottom:0}.rocket{width:120px;height:160px;right:5%;top:auto;bottom:-5px}.planet{width:80px;height:65px;right:3%;top:8%}.blue-planet{width:53px;height:53px;left:3%;bottom:auto;top:21%}footer{padding:20px 18px;gap:10px;font-size:6px}.footer-right{font-size:8px}.coordinates{display:none}.footer-star{font-size:18px}.universe{background-position:center;background-size:auto 100%}.toast{font-size:11px;bottom:18px;width:max-content}.toy-label{display:none}}
@media(max-height:780px) and (min-width:681px){.topbar{padding-top:18px;padding-bottom:12px}.logo{width:210px}h1{font-size:82px;margin:12px 0 20px}.playground{margin-bottom:10px}.intro{margin-bottom:16px}.hero{margin-bottom:12px}.astronaut{width:220px;height:285px}.rocket{width:200px;height:260px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.lucky-star{right:26%;bottom:4%;width:58px;height:58px;color:#fff38d;font-size:58px;line-height:1;text-shadow:0 4px 0 #ebac39,0 0 35px #ffdc6599}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:680px){.lucky-star{bottom:50px;right:45%;width:30px;height:30px;font-size:30px}}
#space3d{z-index:2}.topbar,footer{z-index:5}

/* Location is teased in the hero instead of the header. */
.topbar{justify-content:flex-start}.play-hint{margin-top:24px}
.location-clue{margin:0 auto 22px;padding:0;border:0;min-width:0;color:#a7c4e6;font-size:11px;line-height:1.9}
.location-clue legend{padding:0;width:100%;text-align:center}
.city-letters{display:flex;justify-content:center;gap:6px;margin:10px auto 8px}
.city-letter{box-sizing:border-box;width:34px;height:43px;min-width:0;border:1px solid #73c8ff55;border-radius:9px;background:linear-gradient(160deg,#12315acc,#0a1738dd);color:#b4efff;text-align:center;font:800 23px 'Nunito',sans-serif;text-transform:uppercase;caret-color:#ffe65b;box-shadow:inset 0 1px 0 #ffffff0d;transition:border-color .2s,box-shadow .2s}
.city-letter::placeholder{color:#7899b8}
.city-letter[readonly]{color:#ffe65b;border-color:#ffe65b60;background:#253149}
.city-letter:focus-visible{outline:2px solid #74dcff;outline-offset:3px;box-shadow:0 0 18px #4aadff33}
.location-clue p{margin:0;min-height:21px}
.location-clue.solved .city-letter{border-color:#72e9b7;color:#abffd9}
@media(max-width:680px){.play-hint{margin-top:20px}.city-letters{gap:4px}.city-letter{width:30px;height:40px;font-size:21px}}

/* A single playful action; the scene also plays automatically. */
.launch{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 28px;border:1px solid #fff4af;border-radius:999px;background:linear-gradient(135deg,#fff192,#ffe15c 55%,#ffc34c);color:#35205c;font-weight:900;font-size:14px;letter-spacing:.3px;box-shadow:0 5px 0 #bb7c37,0 10px 30px #ffc95333;transition:transform .2s,box-shadow .2s}
.launch:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 8px 0 #bb7c37,0 14px 36px #ffc95355}
.launch:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #bb7c37}
.launch:disabled{opacity:.8}
@media(max-width:680px){.launch{min-height:44px;font-size:12px;padding:11px 24px}}


#meteors{z-index:2;pointer-events:none}

/* Center the desktop hero in the space above the footer, without the old header offset. */
@media(min-width:681px){
 body{display:flex;flex-direction:column;min-height:100svh}
 main{flex:1 0 auto;width:100%;min-height:0;padding:clamp(36px,5svh,64px) 0}
 .hero{margin:0 auto;padding-top:0}
 footer{flex-shrink:0;width:100%;margin:0 auto}
}
