:root{color-scheme:dark;--ink:#dce9e9;--muted:#7f969f;--cyan:#8bf4da}*{box-sizing:border-box}body{margin:0;background:#080e14;color:var(--ink);font-family:Arial,Helvetica,sans-serif}main{height:100dvh;min-height:520px;overflow:hidden;position:relative}canvas{position:absolute;inset:0;width:100%;height:100%}header{position:absolute;top:0;left:0;right:0;height:90px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #adcaca12;background:linear-gradient(#080e14dd,transparent)}a{color:inherit;text-decoration:none}.brand{font-size:19px;font-weight:800;letter-spacing:4px}.brand span{color:var(--cyan);font-size:32px;vertical-align:-2px;margin-right:10px}.mission,label,.eyebrow,.coordinates,footer,.keys,.landing-note,#status,button{font-family:Consolas,'Courier New',monospace}.mission{font-size:10px;letter-spacing:2px;color:var(--muted)}button{cursor:pointer;color:inherit;border:1px solid #91aebc35;background:#101d26;border-radius:3px}button:hover{border-color:var(--cyan)}button:focus-visible,a:focus-visible{outline:2px solid var(--cyan);outline-offset:5px}#pause{width:38px;height:36px}#hud{position:absolute;top:116px;left:4%;right:4%;display:flex;gap:52px;pointer-events:none}label{display:block;font-size:10px;color:var(--muted);letter-spacing:2px;margin-bottom:12px}strong{font-size:27px;font-weight:400;font-variant-numeric:tabular-nums}small{font-size:12px;color:var(--muted)}.fuel-stat{width:170px}.fuel-stat b{float:right;color:var(--cyan);font-weight:400;letter-spacing:0}.track{height:5px;background:#2a3941;margin-top:25px}.track i{display:block;height:100%;width:100%;background:var(--cyan);transition:width .15s}.velocity{margin-left:auto;text-align:right}.coordinates{position:absolute;left:4%;top:228px;font-size:9px;letter-spacing:2px;color:#6f8993}.coordinates span{display:block;margin-top:10px;color:#415761}#panel,#overlay{position:absolute;left:10%;top:30%;max-width:450px}#panel{padding:15px 40px 15px 0;background:radial-gradient(ellipse at left,#080e14ef,transparent 75%)}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--cyan)}.eyebrow i{display:inline-block;width:5px;height:5px;background:var(--cyan);border-radius:50%;margin-right:8px}h1,h2{font-weight:400;font-size:clamp(48px,6.5vw,86px);letter-spacing:-4px;line-height:1.03;margin:24px 0}h1 em{font-style:normal;color:var(--cyan)}p{color:#9cafb7;font-size:14px;line-height:1.8}.primary{display:flex;justify-content:space-between;align-items:center;width:270px;background:var(--cyan);color:#0a2020;padding:18px 20px;font-size:12px;font-weight:bold;margin:28px 0 22px;border:0}.primary:hover{background:#b5ffe9}.primary span{font-size:20px}.keys{font-size:10px;color:#9aadb5;display:flex;gap:18px}kbd{font-family:inherit;padding:3px 5px;border:1px solid #455861;border-radius:3px;color:#d0dede}.landing-note{font-size:10px;margin-top:22px;color:#6f8993}#overlay{background:#0b141cf5;border:1px solid #47626b;padding:35px;top:28%}h2{font-size:45px;letter-spacing:-2px}.secondary{background:transparent;border:0;font-size:11px;color:#91a5ae;padding:8px 0}#status{position:absolute;bottom:90px;width:100%;text-align:center;color:var(--cyan);font-size:11px;letter-spacing:2px;pointer-events:none}footer{position:absolute;bottom:25px;left:4%;right:4%;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#647e89}footer b{color:#b9cacc;font-weight:400;margin-left:12px}#touch{display:none;position:absolute;bottom:75px;left:6%;right:6%;gap:12px}#touch button{height:58px;min-width:60px;font-size:25px;touch-action:none;user-select:none}#touch button:last-child{margin-left:auto;font-size:13px;width:115px;color:var(--cyan)}[hidden]{display:none!important}body.playing .coordinates{display:none}@media(pointer:coarse){body.playing #touch{display:flex}body.playing #status{bottom:150px}}@media(max-width:650px){header{height:68px}.mission{display:none}#hud{top:90px;gap:25px}.fuel-stat{width:115px}strong{font-size:23px}.coordinates{display:none}#panel,#overlay{left:7%;right:7%;top:25%;max-width:390px}h1{font-size:62px}.eyebrow{font-size:9px}.keys{gap:14px}footer span:first-child{display:none}footer{justify-content:flex-end}#status{font-size:9px}#overlay{padding:24px}#panel{padding-right:0}}@media(max-height:720px){#panel{top:25%}h1{font-size:52px;margin:16px 0}#panel p{font-size:12px}.primary{margin:16px 0}.landing-note{display:none}#status{bottom:60px}}
/* Taxi dispatch and compact whole-world view. */
.brand small{color:#ffc777;font-size:12px;letter-spacing:2px}#dispatch{position:absolute;top:170px;left:4%;right:4%;display:flex;justify-content:space-between;gap:14px;font:10px Consolas,monospace;letter-spacing:1px;color:#708e9b}#dispatch b{color:#ffc777;font-weight:400}#panel{background:#080e14ef;padding:28px;left:7%;top:25%;border:1px solid #435d674d;max-width:490px}h1{font-size:64px}h1 em{color:#ffc777}.primary{background:#ffc777}.primary:hover{background:#ffdcaa}#panel p{font-size:13px}#panel .landing-note{font-size:10px}.eyebrow{color:#ffc777}body:not(.playing) #dispatch{visibility:hidden}#status{padding:0 16px;line-height:1.5}#touch button:active{background:#30454b}
@media(max-width:650px){#hud{gap:14px}#hud strong{font-size:20px}#hud label{font-size:9px;letter-spacing:1px}.fuel-stat{width:80px}.track{margin-top:22px}.velocity{margin-left:auto}#dispatch{top:153px;flex-wrap:wrap;gap:9px;font-size:9px}#dispatch b{order:3;width:100%}#panel{top:22%;left:5%;right:5%;padding:24px}h1{font-size:52px;letter-spacing:-3px}.brand{font-size:16px;letter-spacing:2px}#panel p{font-size:12px}.keys{gap:10px}.primary{width:100%}#overlay{z-index:3}}
@media(max-height:700px){#panel{top:20%;padding:18px}#panel h1{font-size:42px;margin:14px 0}#panel .landing-note{display:block;font-size:9px;margin-top:12px}#panel p{line-height:1.5}}
#shop{position:absolute;right:3%;top:225px;width:310px;padding:22px;background:#101c25f7;border:1px solid #71968d;border-radius:5px;z-index:4;box-shadow:0 16px 65px #0009;font:12px Consolas,monospace;max-height:calc(100dvh - 255px);overflow:auto}.shop-heading{display:flex;align-items:center;justify-content:space-between}#shopClose{font-size:22px;width:30px;height:30px}#shop h2{font:32px Arial,sans-serif;letter-spacing:-1px;margin:12px 0 6px}#shop h3{font-size:13px;margin:18px 0 12px}#shop h3 span{float:right;color:#ffc777}#shop p{font:11px/1.7 Consolas,monospace}.shop-wallet{display:flex;justify-content:space-between;border-block:1px solid #52676d55;padding:14px 0;color:#90a6af;font-size:10px}.shop-wallet b{color:#ffc777;font-size:13px}.light-legend{display:flex;justify-content:space-between;font-size:10px}#shop .shop-note{font-size:10px;color:#91a5ad}#shop .primary{width:100%;margin:14px 0 4px;justify-content:center;padding:14px}button:disabled{cursor:default;opacity:.5}#shopFeedback{color:#8bf4da!important}#shopOpen{position:absolute;right:4%;top:210px;padding:12px;z-index:2;color:#8bf4da}@media(max-width:1000px){#shop{top:205px;right:50%;transform:translateX(50%);width:min(330px,92vw);max-height:calc(100dvh - 300px)}}@media(max-height:650px){#shop{top:90px;max-height:calc(100dvh - 180px)}}
.brake-item{border-top:1px solid #52676d55;margin-top:22px}#brakeStock{color:#ffc777!important}#brakeControl{position:absolute;bottom:52px;right:4%;padding:10px 14px;font:11px Consolas,monospace;color:#ffc777}#touch #touchBrake{font-size:11px;color:#ffc777}.keys{flex-wrap:wrap;row-gap:12px}@media(pointer:coarse){#brakeControl{display:none}}@media(max-width:380px){#touch{left:3%;right:3%;gap:8px}#touch button:last-child{width:95px}#touch button{min-width:54px}}
footer .footer-right{display:flex;align-items:center;gap:20px}footer .author-link{color:#667f88;font-size:9px;letter-spacing:.4px;transition:color .2s}footer .author-link:hover{color:#b7caca}footer .version{color:#506974;font-size:9px}@media(max-width:650px){footer .footer-right>span:first-child{display:inline}footer .footer-right{gap:14px}footer .version{display:inline}}
.audio-controls{display:flex;align-items:center;gap:12px}#sound{font-size:9px;padding:9px 7px;color:#93acae}@media(max-width:450px){.audio-controls{gap:5px}.brand{font-size:13px}.brand span{margin-right:2px}#sound{font-size:8px}}
#fireControl{position:absolute;bottom:52px;left:4%;padding:10px 14px;font:11px Consolas,monospace;color:#ffb3c4;touch-action:manipulation}@media(pointer:coarse){#fireControl{bottom:143px;left:6%;height:40px}body.playing #status{bottom:192px}}

/* Keep the flight instruments centered directly above the cave. */
#hud{top:106px;display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
#hud>div:nth-child(2){grid-column:2;grid-row:1 / 3;justify-self:end}
#hud>div:nth-child(3){grid-column:1;grid-row:2;display:flex;gap:12px;align-items:center}
#hud label{margin-bottom:6px}
#hud>div:nth-child(3) label{margin:0}
#hud>div:nth-child(3) strong{font-size:18px}
#flight-meters{position:absolute;top:103px;left:50%;transform:translateX(-50%);width:180px;text-align:center;pointer-events:none;font-family:Consolas,'Courier New',monospace}
#flight-meters>div{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:9px}
#flight-meters label{font-size:9px;letter-spacing:1px;margin:0}
#flight-meters strong{font-size:22px}
#flight-meters small{font-size:10px}
#gravity{color:#8bf4da}
#score{display:block;color:#ffc777;font-size:12px;letter-spacing:1px;font-variant-numeric:tabular-nums}
#dispatch{top:194px}
@media(max-width:650px){
 #hud{top:84px;gap:13px}
 #hud>div:nth-child(3){display:block}
 #hud>div:nth-child(3) label{margin-bottom:6px}
 #hud>div:nth-child(3) strong{font-size:17px}
 #flight-meters{top:83px;width:160px}
 #flight-meters strong{font-size:19px}
 #flight-meters>div{margin-bottom:10px}
 #score{font-size:11px}
 #dispatch{top:175px;gap:7px}
}

#hud>div{justify-self:start}
#hud>div:nth-child(2){justify-self:end}
@media(max-width:380px){#flight-meters{width:144px}#flight-meters strong{font-size:17px}#flight-meters label{font-size:8px}.fuel-stat{width:64px}}
