/* Flight deck: the animated world is the primary surface. */
#cosmic .cq-app{max-width:1800px;margin:auto}#cosmic .cq-tabs{gap:8px;margin-bottom:10px;border-bottom:1px solid #b2d9f226}#cosmic .cq-game-title{letter-spacing:-.8px;font-size:26px}
#cosmic .cq-mission-heading{padding:10px 0 14px;margin:0}#cosmic .cq-mission-heading h2{font-size:23px}#cosmic .cq-kicker{font-size:13px!important}#cosmic .cq-game-layout{grid-template-columns:minmax(0,1fr) 350px;gap:18px}
#cosmic .cq-board-shell{border:1px solid #75a9c655;border-radius:22px;box-shadow:0 18px 70px #0005}#cosmic .cq-stage-info{padding:12px 18px;letter-spacing:.3px;background:#101e35;font-size:15px}
#cosmic .cq-cockpit{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;background:#101a2c;border-bottom:1px solid #6687a533}#cosmic .cq-cockpit>div:first-child{display:grid;gap:5px}#cosmic .cq-live-label{font-size:12px;letter-spacing:1.5px;color:var(--world);font-weight:900}#cq-directive{font-size:14px;line-height:1.4;color:#d2e6f0}.cq-game-controls{display:flex;flex-wrap:wrap;gap:6px}.cq-game-controls button{border:1px solid #54718c;background:#1a3047;color:#e4f5ff;border-radius:10px;padding:8px 11px;min-height:44px;cursor:pointer;font:inherit;font-size:14px;font-weight:700}.cq-game-controls button:disabled{opacity:.42;cursor:default}.cq-game-controls button[aria-pressed=true]{border-color:#9bf1dc;color:#a6ffe5}
#cosmic .cq-board{height:clamp(390px,calc(100dvh - 320px),730px);min-height:390px;aspect-ratio:auto;background:#040a1b}#cosmic .cq-planet-scene{inset:0}#cosmic.cq-scene-ready .cq-grid{display:none}#cosmic .cq-map-legend{bottom:12px;left:14px;gap:18px;padding:9px 13px;font-size:13px;border:1px solid #92b8d13b;background:#08152de6}
#cosmic .cq-flight-log{min-height:50px;line-height:1.5;padding:12px 18px;background:#101a2c;color:#e3f4ff;border-top:1px solid #56738e44;font-size:15px}#cosmic .cq-flight-status{margin:10px 0;font-size:14px;background:#101d31;border-color:#34516b}#cosmic .cq-mission-help{background:#132137;border-color:#304760}#cosmic .cq-mission-help summary{font-size:15px;min-height:30px;padding:5px 0}#cosmic .cq-mission-help .za-branch{margin:16px 0 0;padding:15px;background:#142a3b}#cosmic .cq-mission-help .za-branch h3{font-size:19px}
#cosmic .cq-code-panel{border:1px solid #496c8666;background:linear-gradient(160deg,#1c3048,#142138);padding:18px;max-height:calc(100dvh - 148px);position:sticky;top:16px;box-shadow:0 14px 36px #0003}#cosmic .cq-code-title h3{font-size:23px}#cosmic .cq-bank button{font-size:14px;min-height:48px;background:#223c57}#cosmic .cq-editor-help{font-size:15px;line-height:1.5}#cosmic .cq-program{min-height:140px;max-height:30vh}#cosmic .cq-code-block{font-size:14px;min-height:48px;border-left:3px solid #83c5df}#cosmic .cq-code-block.is-executing{background:#357764;border-color:#a9ffe0;box-shadow:0 0 16px #64ecc44d}#cosmic .cq-code-footer{background:#16263c;gap:10px;position:sticky;bottom:-18px;padding:14px 0}#cosmic .cq-run{font-size:16px!important;min-height:48px;box-shadow:0 4px 20px #8eecd51a}#cosmic .cq-source{font-size:15px!important;min-height:280px}#cosmic .cq-block-tools button{min-height:36px;min-width:26px}#cosmic .cq-success{bottom:28px;background:linear-gradient(130deg,#19394b,#193047);border:1px solid #9ff4d5;padding:26px;border-radius:22px}#cosmic .cq-success h3{font-size:29px}#cosmic .cq-success p{font-size:16px}#cosmic .cq-success-story{display:block}#cosmic #cq-result>.cq-success-story{display:none}
.cq-fx-message{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:5;pointer-events:none;max-width:90%;width:max-content;opacity:0;background:#102e43ed;border:1px solid #b3ffe1;color:#d5ffee;font-size:17px;font-weight:900;border-radius:30px;padding:12px 22px;box-shadow:0 8px 30px #0005}.cq-fx-message.is-showing{animation:cq-pop-message 1.7s both}@keyframes cq-pop-message{0%{opacity:0;translate:0 12px}15%,75%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -8px}}
#cosmic .cq-level-track{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}#cosmic .cq-destination{background:linear-gradient(150deg,var(--world-dark),#14233a 85%)}#cosmic .cq-destination .cq-level-track button{min-height:48px}#cosmic .cq-destination:has(button:not(:disabled):not(.is-complete)){box-shadow:0 0 24px color-mix(in srgb,var(--world) 12%,transparent)}
@media(max-width:1050px){#cosmic .cq-game-layout{grid-template-columns:minmax(0,1fr) 310px;gap:12px}#cosmic .cq-cockpit{align-items:flex-start;flex-direction:column}#cosmic .cq-board{min-height:420px}#cosmic .cq-code-panel{padding:14px}#cosmic .cq-bank{grid-template-columns:1fr 1fr}}
@media(max-width:760px){#cosmic .cq-game-layout{grid-template-columns:1fr}#cosmic .cq-code-panel{position:static;max-height:none}#cosmic .cq-board{height:56dvh;min-height:390px;max-height:560px}#cosmic .cq-cockpit{padding:12px}.cq-game-controls{width:100%}.cq-game-controls button{flex:1;font-size:13px;padding:8px}#cosmic .cq-tabs button{font-size:13px;min-height:44px}#cosmic .cq-mission-heading h2{font-size:21px}#cosmic .cq-stage-info{font-size:14px}#cosmic .cq-program{min-height:110px;max-height:230px}#cosmic .cq-code-footer{position:static;padding-bottom:0}#cosmic .cq-map-legend{font-size:12px;gap:10px}#cosmic .cq-success{max-height:70dvh;overflow:auto;width:94vw;bottom:16px;padding:20px}#cosmic .cq-success h3{font-size:25px}.cq-fx-message{font-size:15px;padding:10px 15px}}
@media(prefers-reduced-motion:reduce){.cq-fx-message.is-showing{animation:none;opacity:1}#cosmic .cq-code-block{transition:none}}
