:root{color-scheme:dark;--navy:#081221;--panel:#0c1929;--muted:#8394a7;--white:#edf4fa;--blue:#5bddff;--orange:#ff9755;--line:#203349;font-family:"Segoe UI",Inter,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--navy);color:var(--white);min-height:100svh;display:grid;place-items:center;padding:22px 30px;background-image:radial-gradient(ellipse at 17% 35%,#10243a 0,transparent 48%),radial-gradient(ellipse at 90% 95%,#1f1a20 0,transparent 42%)}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,canvas:focus-visible{outline:2px solid var(--blue);outline-offset:5px}button:disabled{opacity:.32;cursor:default}.shell{width:min(100%,980px)}.topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.brand{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:1.8px;white-space:nowrap}.brand-light{color:var(--muted);font-weight:500}.brand-mark{width:14px;height:14px;display:block;border:2px solid var(--orange);border-radius:50%;position:relative}.brand-mark:after{content:"";position:absolute;width:4px;height:4px;background:var(--blue);border-radius:50%;right:-3px;top:-3px}.top-controls{display:flex;gap:8px}.icon-button{background:#102034;border:1px solid #24374c;border-radius:8px;padding:9px 12px;display:flex;align-items:center;gap:7px;font-size:11px;color:#c0cddd}.icon-button:hover:not(:disabled){border-color:#4b6785;background:#152941}.icon-button>span:first-child{font-size:17px;color:var(--blue);line-height:1}.game-layout{display:grid;grid-template-columns:minmax(300px,1.4fr) minmax(230px,1fr);gap:42px;align-items:center}.flight-deck{position:relative;aspect-ratio:1;background:linear-gradient(150deg,#102034,#0b1728 70%);border:1px solid #263c53;border-radius:26px;overflow:hidden;box-shadow:0 25px 80px #0003;max-width:520px}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:pointer;outline:none}.deck-label{position:absolute;top:23px;left:25px;display:flex;align-items:center;gap:8px;color:#91a8be;font-size:9px;font-weight:700;letter-spacing:1.6px;pointer-events:none}.live-dot{width:5px;height:5px;border-radius:50%;background:var(--blue);box-shadow:0 0 12px #5bddff88}.deck-bottom{position:absolute;bottom:23px;left:25px;right:25px;display:flex;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:1.4px;color:#8299ad;pointer-events:none}.deck-bottom span{display:flex;align-items:center;gap:7px}.deck-bottom i{display:block;width:5px;height:5px;border-radius:50%}.pilot-key i{background:var(--blue)}.hazard-key i{background:var(--orange)}.center-status{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:45%;display:flex;align-items:center;flex-direction:column;gap:3px;pointer-events:none;text-align:center}.center-status span{font-size:9px;letter-spacing:2px;color:#839caf;font-weight:600;line-height:1.6}.center-status strong{font-size:70px;letter-spacing:-4px;line-height:1.15;font-weight:750;font-variant-numeric:tabular-nums}.center-status .ready-word{font-size:60px;letter-spacing:-3px;color:var(--blue)}.center-status .small-word{font-size:28px;letter-spacing:-1px;color:var(--orange);line-height:1.8}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2.6px;color:var(--orange);margin-bottom:15px}h1{position:relative;margin:0;font-size:clamp(45px,6.5vw,70px);letter-spacing:-3px;line-height:.89;font-weight:850;width:fit-content}h1>span:first-child{color:var(--blue)}.title-star{color:var(--orange);font-size:33px;position:absolute;right:-40px;top:5px;line-height:1}.intro{margin:20px 0;font-size:19px;font-weight:400;line-height:1.3;letter-spacing:-.4px;color:#becbd7}.record-row{display:flex;gap:28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;margin-bottom:18px}.record-row>div{display:flex;flex-direction:column;gap:5px}.small-label{font-size:8px;letter-spacing:1.5px;color:var(--muted);font-weight:650}.record-row strong{font-size:25px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}.record-level strong{color:#7892a9}.instructions{display:flex;gap:12px;align-items:flex-start;margin-bottom:21px}.instruction-number{border:1px solid #405165;color:var(--orange);border-radius:50%;font-size:10px;height:25px;width:25px;display:grid;place-items:center;flex-shrink:0;margin-top:2px}.instructions p{font-size:12px;line-height:1.6;color:#93a6b8;margin:0}.instructions strong{color:#dbe8f1;font-weight:600}.action-button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:16px 19px;border:0;border-radius:10px;background:var(--orange);color:#1d1a19;font-size:15px;font-weight:700;transition:background .15s,transform .15s;box-shadow:0 5px 24px #ff97551b}.action-button:hover{background:#ffb079}.action-button:active{transform:translateY(1px)}.action-button>span:last-child{font-size:24px;font-weight:400;line-height:1}.control-hint{font-size:10px;color:#7890a5;margin:11px 0 0;white-space:nowrap}kbd{font-family:inherit;font-size:8px;border:1px solid #2b3c4d;border-radius:4px;padding:2px 4px;color:#b1c4d4;vertical-align:1px}.feedback{font-size:11px;min-height:32px;color:#899caf;line-height:1.5;margin:17px 0 0}footer{display:flex;justify-content:space-between;gap:15px;color:#536d84;font-size:8px;letter-spacing:1.7px;padding-top:20px}.no-script{border:1px solid var(--orange);padding:15px;font-size:14px}
@media(max-width:680px){body{display:block;padding:18px 18px max(18px,env(safe-area-inset-bottom));background-image:radial-gradient(ellipse at 50% 10%,#10243a 0,transparent 58%)}.shell{max-width:420px;margin:auto}.topbar{margin-bottom:20px;gap:8px}.brand{font-size:9px;letter-spacing:1.2px;gap:6px}.brand-light{display:none}.icon-button{padding:7px 9px;font-size:10px;gap:5px}.game-layout{display:flex;flex-direction:column;gap:14px;align-items:stretch}.flight-deck{width:100%;order:2;border-radius:22px}.mission-panel{display:contents}.eyebrow{order:0;font-size:8px;letter-spacing:2px;margin-bottom:-11px}h1{order:1;font-size:39px;line-height:1;letter-spacing:-1.8px;white-space:nowrap}h1 br{display:none}h1>span:first-child{margin-left:7px}.title-star{font-size:20px;right:-28px;top:4px}.intro{display:none}.record-row{order:3;border-top:0;border-bottom:0;padding:0;margin:0;justify-content:space-between;gap:20px}.record-row>div{flex-direction:row;align-items:center;gap:9px}.record-row strong{font-size:22px}.small-label{font-size:8px;letter-spacing:1px}.instructions{order:4;margin:0;gap:10px}.instructions p{font-size:12px}.action-button{order:5;padding:14px 17px}.control-hint{order:6;text-align:center;margin:-7px 0 0}.feedback{order:7;min-height:0;margin:-7px 0 0;text-align:center;font-size:10px}footer{padding-top:23px;font-size:7px;letter-spacing:1px;gap:8px}.deck-label{top:19px;left:20px;font-size:8px}.deck-bottom{bottom:19px;left:20px;right:20px;font-size:8px}.center-status strong{font-size:58px}.center-status .ready-word{font-size:51px}.center-status span{font-size:8px;letter-spacing:1.4px}}
@media(min-width:681px) and (max-height:620px){body{padding:15px 25px}.shell{max-width:850px}.topbar{margin-bottom:12px}.game-layout{grid-template-columns:minmax(270px,360px) minmax(230px,320px);gap:34px;justify-content:center}.flight-deck{max-height:calc(100svh - 107px)}h1{font-size:48px}.eyebrow{margin-bottom:11px}.intro{font-size:16px;margin:12px 0}.record-row{padding:10px 0;margin-bottom:12px}.record-row strong{font-size:22px}.instructions{margin-bottom:12px}.action-button{padding:13px 16px}.feedback{margin-top:11px;min-height:16px}.center-status strong{font-size:58px}.center-status .ready-word{font-size:51px}footer{padding-top:13px}.deck-label{top:18px;left:20px}.deck-bottom{bottom:18px;left:20px;right:20px}}
@media(max-width:680px) and (max-height:760px){body{padding-top:12px}.topbar{margin-bottom:13px}.game-layout{gap:13px}h1{font-size:32px}.flight-deck{max-width:min(100%,calc(100svh - 333px));align-self:center}.eyebrow{margin-bottom:-8px}.instructions p{font-size:11px}.action-button{padding:12px 16px}footer{padding-top:15px}.center-status strong{font-size:45px}.center-status .ready-word{font-size:42px}.deck-bottom{font-size:7px;letter-spacing:.6px}.deck-label{font-size:7px;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
footer a{color:#a1bed0;text-decoration:none;font-size:10px;letter-spacing:.6px}footer a:hover{color:var(--blue)}footer a:focus-visible{outline:2px solid var(--blue);outline-offset:4px}canvas:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--blue)}
