:root {
  color-scheme: dark;
  --ink: #fffaf0;
  --night: #061126;
  --cream: #fff6df;
  --cyan: #39c9f2;
  --yellow: #ffd35a;
  --coral: #ff765e;
  --mint: #7be5aa;
  --world-y: -5270px;
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; min-width: 900px; min-height: 620px; overflow: hidden; }
body { margin: 0; color: var(--ink); background: var(--night); }
button, input { font: inherit; }
button:not(:disabled), input { cursor: pointer; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.game, .sky-stage { width: 100%; height: 100%; }
.sky-stage { position: relative; overflow: hidden; isolation: isolate; touch-action: none; background: #2bbce9; }
.sky-world {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 6200px;
  background-image: linear-gradient(90deg, rgba(5,17,38,.14), transparent 26%, transparent 74%, rgba(5,17,38,.16)), url("assets/sky-background-01.webp");
  background-size: 100% 100%;
  background-position: center;
  transform: translate3d(0, var(--world-y), 0);
  will-change: transform;
}
.sky-world::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: radial-gradient(ellipse at 50% 86%, transparent 0 35%, rgba(4,19,50,.12) 70%); }

.sky-object { position: absolute; z-index: 4; display: block; padding: 0; border: 0; background: transparent; filter: drop-shadow(0 14px 18px rgba(2,12,31,.24)); transform: translateY(-50%); transition: filter .18s ease, scale .18s ease; }
button.sky-object { min-width: 52px; min-height: 52px; }
.sky-object img { display: block; width: 100%; height: auto; pointer-events: none; }
.sky-object:hover, .sky-object:focus-visible, .sky-object.is-focus { z-index: 9; filter: drop-shadow(0 0 7px #fff) drop-shadow(0 0 22px rgba(57,201,242,.9)); scale: 1.07; }
.sky-object.is-discovered::after { position: absolute; right: 5%; top: 4%; display: grid; width: 30px; height: 30px; place-items: center; content: "✓"; border-radius: 50%; color: #063322; background: var(--mint); box-shadow: 0 4px 12px rgba(0,0,0,.28); font-weight: 950; }
.birds { left: 18%; width: 210px; }.kite { right: 18%; width: 120px; }.clouds { left: 8%; width: 360px; }.mountain { right: 8%; width: 320px; }.airplane { left: 51%; width: 300px; }.balloon { right: 22%; width: 170px; }.satellite { left: 18%; width: 250px; }.station { right: 10%; width: 390px; }.moon { left: 70%; width: 130px; }
.orbit-line { position: absolute; z-index: 2; width: 58%; height: 360px; border: 3px dashed rgba(118,208,255,.38); border-radius: 50%; transform: rotate(-8deg); }
.orbit-one { left: -12%; top: 360px; }.orbit-two { right: -12%; top: 880px; transform: rotate(10deg); }

.air-streams { position: absolute; z-index: 3; inset: 0; opacity: var(--air-opacity, 1); pointer-events: none; transition: opacity .16s linear; }
.air-streams i { position: absolute; width: 120px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); animation: whoosh 1.4s linear infinite; }
.air-streams i:nth-child(1) { left: 9%; top: 27%; animation-delay: -.2s; }.air-streams i:nth-child(2) { left: 43%; top: 18%; width: 180px; animation-delay: -.8s; }.air-streams i:nth-child(3) { right: 9%; top: 35%; animation-delay: -.45s; }.air-streams i:nth-child(4) { left: 23%; top: 67%; width: 90px; animation-delay: -1.1s; }.air-streams i:nth-child(5) { right: 28%; top: 76%; width: 150px; animation-delay: -.6s; }.air-streams i:nth-child(6) { left: 56%; top: 54%; animation-delay: -.05s; }
.earth-rim { position: absolute; z-index: 2; left: -10%; bottom: -37%; width: 120%; height: 63%; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at 50% 0, rgba(84,226,255,.82), rgba(15,121,195,.5) 2%, transparent 7%); opacity: 0; transform: translateY(90px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.sky-stage.in-space .earth-rim { opacity: 1; transform: translateY(0); }

.mission { position: absolute; z-index: 30; left: 24px; top: 22px; width: 340px; min-height: 124px; padding: 18px 20px 17px; border: 1px solid rgba(8,31,57,.12); border-radius: 22px; color: #112b43; background: rgba(255,246,223,.94); box-shadow: 0 14px 38px rgba(3,16,37,.22); backdrop-filter: blur(12px); }
.mission > span { color: #a64431; font-size: 11px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.mission h1 { margin: 4px 0 2px; font-size: 27px; line-height: 1.06; letter-spacing: -.035em; }
.mission > p { margin: 0; color: #496579; font-size: 14px; font-weight: 700; }
.prediction { display: block; margin-top: 13px; }
.prediction > span { display: block; color: #183a54; font-size: 12px; font-weight: 900; }
.prediction input { width: 100%; height: 24px; accent-color: var(--coral); }
.prediction small { display: flex; justify-content: space-between; margin-top: -4px; color: #6b8291; font-size: 10px; }
.tap-progress { display: flex; gap: 8px; margin-top: 14px; }
.tap-progress i { width: 34px; height: 7px; border-radius: 99px; background: #cedad8; }
.tap-progress i.is-done { background: #279b67; box-shadow: 0 0 0 3px rgba(39,155,103,.12); }

.mute { position: absolute; z-index: 40; right: 24px; top: 24px; display: grid; width: 48px; height: 48px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(5,17,38,.78); box-shadow: 0 6px 0 rgba(0,0,0,.32); }
.mute svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }.sound-off { display: none; }.mute[aria-pressed="true"] .sound-on { display: none; }.mute[aria-pressed="true"] .sound-off { display: block; }

.altimeter { position: absolute; z-index: 25; right: 28px; top: 92px; bottom: 24px; width: 112px; display: flex; flex-direction: column; align-items: center; padding: 14px 10px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 29px; background: rgba(5,17,38,.82); box-shadow: 0 18px 44px rgba(0,0,0,.26); backdrop-filter: blur(12px); }
.gauge-title { color: var(--cream); font-size: 11px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.gauge-track { position: relative; width: 13px; flex: 1; margin: 12px 0 14px; border: 2px solid rgba(255,255,255,.54); border-radius: 99px; background: linear-gradient(to top, #41d3f5, #176bc1 49%, #0a234b 72%, #040812 100%); }
.gauge-fill { position: absolute; left: -2px; right: -2px; bottom: -2px; height: 0; border: 2px solid rgba(255,255,255,.9); border-radius: 99px; background: linear-gradient(to top, rgba(255,211,90,.75), rgba(255,118,94,.78)); }
.gauge-marker { position: absolute; z-index: 3; left: 50%; bottom: 0; width: 27px; height: 27px; border: 4px solid #fff; border-radius: 50%; background: var(--coral); box-shadow: 0 4px 14px rgba(0,0,0,.35); transform: translate(-50%, 50%); transition: bottom .1s linear; }
.gauge-marker span { position: absolute; right: 34px; top: 50%; min-width: 74px; padding: 6px 9px; border-radius: 9px 9px 2px 9px; color: #173149; background: var(--cream); box-shadow: 0 5px 14px rgba(0,0,0,.24); font-size: 11px; font-weight: 950; text-align: center; transform: translateY(-50%); white-space: nowrap; }
.gauge-tick { position: absolute; left: 15px; width: 7px; height: 2px; background: rgba(255,255,255,.7); }.gauge-tick b { position: absolute; left: 10px; top: -6px; width: 67px; color: #b9d0df; font-size: 8px; font-style: normal; letter-spacing: .01em; }
.tick-space { bottom: 83%; }.tick-edge { bottom: 69%; }.tick-balloon { bottom: 49%; }.tick-plane { bottom: 33%; }
.air-meter { width: 86px; color: #c5dbe8; font-size: 10px; font-weight: 900; text-transform: uppercase; }.air-meter > span { display: block; margin-bottom: 4px; }.air-meter::after { display: block; height: 6px; content: ""; border-radius: 99px; background: #0d2841; }.air-meter i { position: absolute; bottom: 14px; left: 13px; height: 6px; width: 86px; border-radius: 99px; background: var(--cyan); transform-origin: left; transform: scaleX(1); transition: transform .12s linear; }

.capsule { position: absolute; z-index: 12; left: 50%; top: 54%; width: 122px; height: 134px; border: 5px solid #b94132; border-radius: 58% 58% 46% 46%; background: linear-gradient(145deg, #ffab55, var(--coral) 62%, #d9493a); box-shadow: inset 0 3px rgba(255,255,255,.4), 0 22px 34px rgba(0,0,0,.3); transform: translate(-50%,-50%); }
.capsule::before, .capsule::after { position: absolute; top: 57px; width: 24px; height: 42px; content: ""; border: 4px solid #a93c32; border-radius: 16px; background: #ff8d4e; }.capsule::before { left: -19px; }.capsule::after { right: -19px; }
.antenna { position: absolute; left: 50%; top: -29px; width: 4px; height: 27px; border-radius: 4px; background: #ffe391; transform: translateX(-50%); }.antenna::before { position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; content: ""; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 13px var(--yellow); transform: translateX(-50%); }
.capsule-window { position: absolute; left: 50%; top: 21px; display: grid; width: 72px; height: 72px; place-items: center; border: 7px solid #fff0bd; border-radius: 50%; color: #dffbff; background: radial-gradient(circle at 37% 30%, #62ddf5, #0b5284 66%, #073252); box-shadow: inset 0 0 0 3px #1a6a94; transform: translateX(-50%); }.capsule-window span { font-size: 25px; text-shadow: 0 3px 8px rgba(0,0,0,.32); }
.capsule-glow { position: absolute; left: 50%; bottom: -33px; width: 54px; height: 37px; border-radius: 50%; background: radial-gradient(ellipse, rgba(128,239,255,.95), rgba(57,201,242,.35) 46%, transparent 72%); animation: hover-glow .85s ease-in-out infinite alternate; transform: translateX(-50%); }

.control-hint { position: absolute; z-index: 18; left: 50%; bottom: 26px; min-width: 190px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(5,17,38,.76); box-shadow: 0 9px 24px rgba(0,0,0,.24); font-size: 13px; font-weight: 900; text-align: center; transform: translateX(-50%); backdrop-filter: blur(10px); transition: opacity .3s ease, transform .3s ease; }.control-hint span { display: inline-grid; width: 25px; height: 25px; margin-right: 7px; place-items: center; border-radius: 50%; color: #173149; background: var(--yellow); }.sky-stage.has-moved .control-hint { opacity: .18; transform: translate(-50%, 7px); }

.fact-card { position: absolute; z-index: 55; left: 50%; top: 50%; width: 360px; padding: 25px 27px 24px; border: 1px solid rgba(255,255,255,.25); border-radius: 27px; color: #173149; background: rgba(255,246,223,.98); box-shadow: 0 28px 80px rgba(0,0,0,.42); text-align: center; transform: translate(-50%,-50%); }.fact-card::before { position: fixed; z-index: -1; inset: -100vh -100vw; content: ""; background: rgba(3,10,24,.32); }.fact-card > span { color: #a64431; font-size: 11px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }.fact-card h2 { margin: 4px 0 5px; font-size: 31px; letter-spacing: -.04em; }.fact-card p { margin: 0 0 18px; color: #4a6679; font-weight: 700; line-height: 1.42; }.fact-card button { min-width: 170px; min-height: 48px; border: 0; border-radius: 14px; color: #153249; background: var(--yellow); box-shadow: 0 6px 0 #bd861c; font-weight: 950; }
.fact-demo { position: relative; width: 84px; height: 58px; margin: -2px auto 12px; }.fact-demo::before { position: absolute; left: 0; right: 0; top: 27px; height: 3px; content: ""; border-radius: 9px; background: repeating-linear-gradient(90deg, var(--cyan) 0 12px, transparent 12px 20px); animation: air-flow .55s linear infinite; }.fact-demo.orbit::before { left: 5px; top: 4px; width: 70px; height: 44px; border: 2px dashed #218fc8; border-radius: 50%; background: none; animation: none; }.fact-demo.orbit::after { position: absolute; left: 2px; top: 20px; width: 15px; height: 15px; content: ""; border-radius: 4px; background: var(--yellow); animation: mini-orbit 1.4s linear infinite; }

.placement { position: absolute; z-index: 20; inset: 0 142px 0 0; padding: 126px 25% 112px 28%; background: linear-gradient(rgba(5,17,38,.08), rgba(5,17,38,.12)); }
.drop-zone { position: absolute; left: 29%; right: 25%; min-height: 104px; padding: 14px 18px; border: 2px dashed rgba(255,255,255,.6); border-radius: 22px; background: rgba(5,22,49,.38); box-shadow: inset 0 1px rgba(255,255,255,.11); backdrop-filter: blur(6px); transition: border .15s ease, background .15s ease, scale .15s ease; }
.drop-zone.is-over, .drop-zone:focus-visible { border-color: var(--yellow); background: rgba(255,211,90,.2); scale: 1.02; }.drop-zone > span { display: block; color: #fff; font-size: 17px; font-weight: 950; }.drop-zone > small { color: #c8e1ee; font-size: 11px; font-weight: 750; }.zone-orbit { top: 20%; }.zone-high { top: 45%; }.zone-low { top: 70%; }
.placed { position: absolute; right: 12px; top: 9px; display: flex; gap: 8px; }
.token-tray { position: absolute; z-index: 5; left: 50%; bottom: 19px; display: flex; min-height: 78px; align-items: center; gap: 16px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: rgba(5,17,38,.86); box-shadow: 0 15px 40px rgba(0,0,0,.32); transform: translateX(-50%); backdrop-filter: blur(12px); }
.drag-token { position: relative; width: 82px; height: 58px; display: grid; place-items: center; padding: 5px; border: 2px solid rgba(255,255,255,.28); border-radius: 16px; color: #fff; background: #153b5d; box-shadow: 0 5px 0 rgba(0,0,0,.3); touch-action: none; user-select: none; }.drag-token img { max-width: 100%; max-height: 45px; pointer-events: none; }.drag-token.is-dragging { position: fixed; z-index: 100; margin: 0; pointer-events: none; scale: 1.09; rotate: -3deg; box-shadow: 0 17px 38px rgba(0,0,0,.42), 0 0 0 5px rgba(255,211,90,.24); }.drag-token.is-correct { border-color: var(--mint); background: #176044; box-shadow: none; }.drag-token.is-wrong { animation: wrong-shake .3s ease; border-color: var(--coral); }

.toast { position: absolute; z-index: 80; left: 50%; bottom: 111px; max-width: 430px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #173149; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 13px; font-weight: 850; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }.toast.is-showing { opacity: 1; transform: translate(-50%, 0); }
.success-card, .finish-card { position: absolute; z-index: 90; left: 50%; top: 50%; width: min(440px, 47vw); padding: 28px 31px 27px; border: 1px solid rgba(255,255,255,.23); border-radius: 28px; background: rgba(5,22,43,.97); box-shadow: 0 28px 90px rgba(0,0,0,.58); text-align: center; transform: translate(-50%,-50%); backdrop-filter: blur(18px); }.success-card::before, .finish-card::before { position: fixed; z-index: -1; inset: -100vh -100vw; content: ""; background: rgba(0,7,15,.42); }.success-mark { display: grid; width: 66px; height: 66px; margin: -2px auto 13px; place-items: center; border-radius: 50%; color: #0b3b25; background: var(--mint); box-shadow: 0 0 0 10px rgba(123,229,170,.1), 0 0 45px rgba(123,229,170,.34); font-size: 34px; font-weight: 950; animation: success-pop .5s cubic-bezier(.2,.9,.25,1.3) both; }.success-card > p:first-of-type, .finish-card > span { color: var(--mint); font-size: 11px; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }.success-card h2, .finish-card h2 { margin: 5px 0 8px; font-size: 33px; line-height: 1.08; letter-spacing: -.045em; }.success-card > p:not(:first-of-type), .finish-card p { margin: 0 auto 21px; max-width: 350px; color: #bed1dc; line-height: 1.48; }.success-card button, .finish-card button { min-width: 190px; min-height: 50px; padding: 11px 20px; border: 0; border-radius: 15px; color: #153249; background: var(--yellow); box-shadow: 0 6px 0 #a97519; font-weight: 950; }
.mini-orbit { position: relative; width: 82px; height: 82px; margin: -3px auto 14px; border: 2px dashed rgba(57,201,242,.58); border-radius: 50%; }.mini-orbit::before { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; content: ""; border-radius: 50%; background: #28a8dd; transform: translate(-50%,-50%); }.mini-orbit i { position: absolute; left: -7px; top: 33px; width: 16px; height: 16px; border-radius: 4px; background: var(--yellow); animation: mini-orbit 1.8s linear infinite; }
.confetti { position: absolute; z-index: 85; inset: 0; overflow: hidden; pointer-events: none; }.confetti i { position: absolute; top: -20px; width: 9px; height: 16px; border-radius: 3px; animation: confetti-fall 1.4s ease-out forwards; }

@keyframes whoosh { from { transform: translateX(-70px); opacity: 0; } 18% { opacity: 1; } to { transform: translateX(150px); opacity: 0; } }
@keyframes hover-glow { to { opacity: .58; scale: .88; } }
@keyframes air-flow { to { background-position: 20px 0; } }
@keyframes mini-orbit { to { offset-distance: 100%; transform: rotate(360deg); } }
@keyframes wrong-shake { 25% { translate: -7px 0; } 75% { translate: 7px 0; } }
@keyframes success-pop { from { opacity: 0; transform: scale(.45) rotate(-18deg); } to { opacity: 1; transform: scale(1); } }
@keyframes confetti-fall { to { transform: translate(var(--drift), 105vh) rotate(520deg); opacity: .15; } }

@media (max-height: 720px) { .mission { top: 14px; }.altimeter { top: 76px; bottom: 14px; }.capsule { top: 56%; scale: .88; }.drop-zone { min-height: 89px; }.token-tray { bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
