.moonlight-opening:not(.meridian-controls) :is(header,footer,#resources,.cosmos-helm){display:none}
:root{color-scheme:dark;font:15px system-ui,sans-serif;color:#f4f1e8;background:#030611}body{margin:0}canvas{width:100vw;height:100dvh;object-fit:contain;touch-action:none;display:block;outline:none}header,footer,#notice{position:fixed}header{top:max(1.2rem,env(safe-area-inset-top));left:1.2rem;text-shadow:0 1px 6px black}a{color:#d3eaf0}h1{font:normal clamp(2rem,4.4vw,3.4rem) Georgia,serif;margin:.3rem 0}footer{box-sizing:border-box;bottom:max(1rem,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:96vw;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.6rem;background:#0c1b22e8;padding:.6rem .9rem;border:1px solid #52676a;border-radius:.55rem}button,input{font:inherit}button{cursor:pointer;color:#f7f4ec;background:#1b343d;border:1px solid #738e92;border-radius:.3rem;padding:.35rem .55rem}footer span{color:#c8d6d5;font-size:.8rem}#notice{top:45%;width:100%;text-align:center}#notice:empty{display:none}input{width:clamp(6rem,18vw,13rem)}@media(max-width:590px){footer span{flex-basis:100%;text-align:center}header{font-size:.82rem}}

#resources{position:fixed;top:max(.8rem,env(safe-area-inset-top));right:max(.8rem,env(safe-area-inset-right));color:#edf5f4;background:#08171ed9;border:1px solid #90b2bc59;border-radius:.4rem;padding:.4rem .6rem;font:12px/1.45 system-ui,sans-serif;font-variant-numeric:tabular-nums}
#resources summary{cursor:pointer;color:#c6dedd;font-weight:600}
#resources dl{display:grid;grid-template-columns:auto auto;column-gap:.8rem;margin:.25rem 0 0}
#resources dt{color:#bbccce}
#resources dd{margin:0;text-align:right}
@media(max-width:480px){#resources{font-size:11px;right:.45rem;top:.55rem}#resources dl{column-gap:.4rem}}

#flight-help{flex-basis:100%;text-align:center;max-width:43rem;color:#c8d6d5;font-size:.8rem}
#flight-help[hidden],#orbit-help[hidden],.flight-pad[hidden]{display:none}
#flight-help .flight-pad:not([hidden]){display:flex;justify-content:center;gap:.25rem;flex-wrap:wrap;margin-top:.3rem}
@media(pointer:coarse){#flight-help>span:first-child{display:none}.flight-pad button{min-height:40px}}
