:root{color-scheme:light;--ink:#293b3a;--cream:#f0e5c9;--teal:#426f6c}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;background:#b5b4a7;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",sans-serif;touch-action:manipulation}button,a,summary{touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #145c96;outline-offset:4px}[hidden]{display:none!important}#console{max-width:560px;min-height:100svh;margin:auto;padding: max(10px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));background:linear-gradient(100deg,#d0c6ae,#e6ddc6 45%,#cec4ac);border-inline:3px solid #84908a;box-shadow:0 0 35px #21333140}header{display:flex;align-items:center;gap:12px;height:48px}header a{text-decoration:none;font-size:34px;color:var(--ink);width:32px;text-align:center}h1{margin:0;font:700 28px Georgia,serif;letter-spacing:.07em;flex:1}h1 small{display:block;font:9px sans-serif;letter-spacing:.2em}#restart{background:#dfd6bf;border:2px solid #62726a;border-radius:8px;padding:8px;font-size:12px;box-shadow:0 3px #67746c}#meters{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:12px 0}.meter{position:relative;background:#f8edce;border:3px solid #65756b;border-radius:50% 50% 16% 16%;box-shadow:0 3px #939282,inset 0 0 10px #b6ab83;overflow:hidden;text-align:center}.meter svg{width:100%;display:block}.meter strong{display:block;font-size:12px;margin-top:-9px}.meter .status{display:block;font-size:9px;padding:3px 0 6px;color:#56645a}.needle{transform-origin:60px 60px;transition:transform .65s cubic-bezier(.2,.7,.3,1)}.monitor{border:5px solid #52665e;border-radius:15px;background:#263c39;box-shadow:0 5px #849083;overflow:hidden}.monitor-top,.monitor-bottom{display:flex;justify-content:space-between;padding:7px 10px;color:#dce7bb;font:9px monospace;letter-spacing:.05em}.monitor-bottom{font-size:10px}#scene{aspect-ratio:1;background-image:url(scenes.jpg);background-size:300% 200%;background-color:#d5c8a9}.monitor.stopped #scene{filter:saturate(.25) brightness(.72)}.report{margin:17px 0 13px;min-height:165px;padding:12px 15px;border:2px solid #aaa58e;border-radius:5px;background:#f4ecd6;box-shadow:inset 0 0 18px #cabf992a}.report h2{font-size:17px;margin:6px 0 8px}.report p{font-size:14px;line-height:1.75;margin:0;white-space:pre-line}#previous{font-size:12px;color:#526a61;border-bottom:1px dashed #bebaa1;padding-bottom:8px;margin-bottom:8px}#previous:empty{display:none}#warning{font-size:12px;font-weight:bold;color:#8c4538;margin-top:7px}#choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 5px 10px}#choices button{min-height:88px;padding:12px 9px;font-size:19px;font-weight:800;line-height:1.4;color:#f9f3d8;border:4px solid #314c48;border-radius:28px 22px 30px 19px;background:linear-gradient(#70968c,#477366);box-shadow:0 7px #304c47,inset 0 3px #c6d4b27a;text-shadow:0 2px #304b41;transition:transform .1s,box-shadow .1s}#choices button:nth-child(2){background:linear-gradient(#d0a565,#ae793f);border-color:#765635;box-shadow:0 7px #765635,inset 0 3px #fff0b66b;text-shadow:0 2px #765635;border-radius:22px 29px 20px 30px}#choices button:active{transform:translateY(6px);box-shadow:0 1px #304c47}#choices button:disabled{cursor:default}#choices.single{grid-template-columns:1fr}#archive,details{margin-top:20px;padding:15px;background:#f4ecd6;border:2px solid #a29e88;border-radius:8px}#archive h2{font-size:18px}ol{list-style:none;padding:0;margin:0}li{padding:13px 0;border-top:1px dashed #b9b79f;font-size:13px;line-height:1.7}li small{color:#718077;font:10px monospace;display:block}li strong{display:block}li p{margin:3px 0}li .command{color:#37665c}#save-note{font-size:12px;color:#617366}summary{cursor:pointer;font-size:13px}footer{text-align:center;font:9px monospace;letter-spacing:.12em;padding-top:22px;color:#61746b}dialog{max-width:min(90vw,420px);background:#f0e5c9;color:var(--ink);border:4px solid #52665e;border-radius:18px;padding:22px}dialog::backdrop{background:#152e2abb}dialog h2{font-size:20px}dialog p{font-size:14px;line-height:1.8}dialog form>div{display:flex;gap:12px}dialog button{flex:1;padding:13px 8px;border:2px solid #52665e;border-radius:10px;background:#d7dbc3;font-weight:bold}@media(max-width:360px){#console{padding-inline:9px}#choices{gap:8px}#choices button{font-size:17px}.meter strong{font-size:11px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
/* Revision 1: compact viewport, CRT report and transmission theatre. */
#console{max-width:500px;padding-top:max(5px,env(safe-area-inset-top))}header{height:38px}#meters{margin:7px 0}.meter svg{height:55px}.meter strong{font-size:11px}.meter .status{padding-bottom:3px}#scene{width:min(100%,24svh);margin:auto}.monitor-top,.monitor-bottom{padding:4px 8px}.report{margin:10px 0;min-height:0;background:#071a11;border:3px solid #435b4e;color:#91ff9c;padding:10px 12px;box-shadow:inset 0 0 16px #000}.report h2{font-size:16px;margin:0 0 6px;color:#c3ffb8}.report p{font-size:18px;font-weight:600;line-height:1.45}#warning{font-size:12px;color:#ffe291;margin-top:6px}#report-cursor{font-size:19px;animation:cursor-blink .8s steps(1) infinite}#previous{display:none}#choices button{min-height:70px;font-size:17px;padding:8px}footer{padding-top:8px}.needle{transition:none}.monitor{position:relative}.monitor.receiving #scene{animation:focus-in .65s ease-out}.monitor.receiving::after{content:"";position:absolute;inset:20px 0;pointer-events:none;background:repeating-linear-gradient(17deg,#fff8 0 1px,#0009 2px 3px,transparent 4px 7px),repeating-linear-gradient(103deg,#ccd9 0 2px,transparent 3px 5px);animation:static-noise .09s steps(2) infinite;mix-blend-mode:screen}#progress{width:min(90vw,440px);text-align:center;padding:24px 18px;overflow:hidden}#progress h2{font-size:24px;line-height:1.5;margin:0}#progress-command{font-size:16px}.runway{position:relative;height:74px;margin-top:20px;border-bottom:4px dashed #61796b}.rover{position:absolute;left:0;bottom:4px;width:52px;height:37px;background:#e8af59;border:3px solid #314c48;border-radius:12px 12px 5px 5px;animation:rover-trip 3s linear forwards}.rover i{position:absolute;top:-12px;left:12px;width:25px;height:18px;border:3px solid #314c48;border-radius:8px;background:#a9e6d6}.rover i::after{content:'••';color:#314c48;position:absolute;left:4px;top:-5px;font-size:18px}.rover b{position:absolute;bottom:-15px;left:0;white-space:nowrap;font-size:27px;letter-spacing:3px;color:#314c48}#progress.homeward .rover{animation-direction:reverse}@keyframes rover-trip{from{left:0;transform:translateY(0)}25%{transform:translateY(-3px)}50%{transform:translateY(0)}75%{transform:translateY(-3px)}to{left:calc(100% - 52px);transform:translateY(0)}}@keyframes cursor-blink{50%{opacity:0}}@keyframes focus-in{from{filter:blur(8px) contrast(2);opacity:.4}to{filter:blur(0);opacity:1}}@keyframes static-noise{from{transform:translate(3px,-2px);opacity:.9}to{transform:translate(-3px,2px);opacity:.3}}@media(max-height:700px){#scene{width:min(100%,18svh)}.meter svg{height:46px}.report p{font-size:16px}.report{padding:8px 10px}#choices button{min-height:62px}footer{display:none}}@media(prefers-reduced-motion:reduce){#report-cursor{animation:none}.monitor.receiving::after{display:none}}
/* Revision 2: six fixed terminal lines and a single telemetry row. */
h1{font-size:25px;letter-spacing:0}.monitor{margin-top:8px}.report{height:260px;position:relative;padding:12px}.report #message{font-family:monospace;font-size:18px;line-height:1.6;font-weight:600;white-space:pre;overflow:hidden;letter-spacing:0;height:173px;margin:0}.report #report-cursor{display:block;height:29px;line-height:29px}.report #report-cursor.more{animation:none}#terminal-status{position:absolute;bottom:10px;left:10px;right:10px;white-space:nowrap;font:clamp(9px,2.8vw,12px) monospace;border-top:1px solid #42724b;padding-top:8px}.caution{animation:status-blink 1.2s steps(1) infinite}.critical{animation:status-blink .4s steps(1) infinite}#choices{min-height:90px}#choices.single button{width:100%}@keyframes status-blink{50%{opacity:.25}}@media(max-height:700px){.report{height:235px}.report #message{font-size:16px;height:154px}#choices{min-height:80px}}@media(prefers-reduced-motion:reduce){.caution,.critical{animation:none;text-decoration:underline}}
/* Revision 3: persistent telemetry and cursor following the last line. */
.report #message{font-size:17px;height:196px;line-height:1.5}.report #report-cursor{display:block;height:auto;line-height:1.5}#terminal-status .changed-number{display:inline-block;animation:number-confirm 1.4s ease-in-out 2}@keyframes number-confirm{0%,100%{opacity:1}50%{opacity:.15}}@media(max-height:700px){.report #message{font-size:15px;height:175px}}@media(prefers-reduced-motion:reduce){#terminal-status .changed-number{animation:none;text-decoration:underline}}
/* Revision 4: full-size telemetry and a worn metal transmission console. */
.report{height:300px}.report #message{height:196px}#terminal-status{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px;font:17px/1.4 monospace;padding-top:8px}.telemetry-item{white-space:nowrap}#progress{background:repeating-linear-gradient(0deg,#ffffff06 0 1px,#00000008 1px 3px),linear-gradient(115deg,#727c7b,#d0d5cb 20%,#8b9995 45%,#c2c8ba 65%,#65746f);border:6px ridge #a1aaa0;box-shadow:inset 0 0 0 2px #3c5049,inset 0 0 25px #203c4877,0 12px 35px #0008;border-radius:10px}#progress::before,#progress::after{content:'⊕';position:absolute;top:5px;color:#334b45;text-shadow:0 1px #d9e2d7;font-size:20px}#progress::before{left:7px}#progress::after{right:7px}#progress h2{text-shadow:0 1px #f2f3df}#progress-command{padding:8px;background:#23352c;color:#b9e2b2;border:3px inset #89958a}.runway{background:repeating-linear-gradient(90deg,transparent 0 22px,#2c493e33 23px 26px);border-bottom:5px ridge #7e8d82}.rover{animation:rover-trip 3s linear forwards}.rover i{animation:rover-rattle .24s steps(1) infinite}.rover b{animation:wheel-rattle .24s steps(1) infinite}@keyframes rover-trip{0%{left:0;transform:rotate(-5deg) translateY(0)}12%{transform:rotate(4deg) translateY(-5px)}24%{transform:rotate(-3deg) translateY(2px)}36%{transform:rotate(6deg) translateY(-3px)}48%{transform:rotate(-6deg) translateY(1px)}60%{transform:rotate(4deg) translateY(-6px)}72%{transform:rotate(-4deg) translateY(2px)}84%{transform:rotate(5deg) translateY(-4px)}100%{left:calc(100% - 52px);transform:rotate(0) translateY(0)}}@keyframes rover-rattle{50%{transform:translateY(3px) rotate(-7deg)}}@keyframes wheel-rattle{50%{transform:translateY(-2px) rotate(4deg)}}@media(max-height:700px){.report{height:275px}.report #message{height:175px}#terminal-status{font-size:15px}}
/* Keep the reception frame fixed while its image is crushed and masked. */
.monitor{background:#050907}.monitor.receiving::after{animation-duration:.27s;mix-blend-mode:screen;opacity:.45}.monitor.receiving #scene{animation:none}
/* Revision 6: stepped top-to-bottom image reception, with no distortion. */
.scene-frame{position:relative;width:min(100%,24svh);margin:auto;aspect-ratio:1;background:#050907;overflow:hidden}.scene-frame #scene{width:100%;margin:0}.monitor.receiving::after{display:none}.monitor.receiving .scene-frame #scene{clip-path:inset(0 0 calc(100% - var(--scan-position,0%)) 0);animation:none;transform:none;filter:none}.monitor.receiving .scene-frame::after{content:'';position:absolute;left:0;right:0;top:var(--scan-position,0%);height:3px;background:#cfffc1;box-shadow:0 0 9px #b6ffab;pointer-events:none}@media(max-height:700px){.scene-frame{width:min(100%,18svh)}}

/* Revision 7: mission and operation-specific mechanisms. */
#mission{width:min(92vw,450px);text-align:center;background:linear-gradient(135deg,#e5c36f,#fff0b3 45%,#b99145);border:7px ridge #8c7851;box-shadow:0 15px 60px #0009,inset 0 0 0 3px #4e6357;padding:30px 15px}#mission .mission-stamp{font:bold 19px monospace;letter-spacing:.22em;border-block:3px solid #4e6357;padding:8px}#mission h2{font-size:32px;line-height:1.4;margin:25px 0 10px}#mission-start{width:100%;min-height:55px;font-size:18px}#progress .scanner,#progress .repair-tool,#progress .mining-drill{display:none;position:absolute;font-size:58px;line-height:1;color:#284b40;text-shadow:0 2px #d8eed4}#progress[data-mode="move"].homeward .rover{scale:-1 1}#progress:not([data-mode="move"]) .rover{left:calc(50% - 26px);animation:none}#progress:not([data-mode="move"]) .rover i,#progress:not([data-mode="move"]) .rover b{animation:none}#progress:not([data-mode="move"]) .runway{border-bottom-style:solid;background:#526a5b22}#progress[data-mode="scan"] .scanner{display:block;left:calc(50% - 30px);top:-24px;transform-origin:50% 100%;animation:survey-sweep .7s steps(6) infinite}#progress[data-mode="repair"] .repair-tool{display:block;left:calc(50% + 12px);top:-20px;animation:tool-turn .6s steps(3) infinite}#progress[data-mode="mine"] .mining-drill{display:block;left:calc(50% + 26px);top:5px;animation:drill-pulse .2s steps(2) infinite}@keyframes survey-sweep{0%,100%{transform:rotate(-35deg);opacity:.5}50%{transform:rotate(35deg);opacity:1}}@keyframes tool-turn{0%,100%{transform:rotate(-25deg)}50%{transform:rotate(25deg)}}@keyframes drill-pulse{50%{transform:translateY(8px) scaleX(.7)}}

.monitor.homeward-image .scene-frame #scene,.monitor.receiving.homeward-image .scene-frame #scene{transform:scaleX(-1)}

/* Revision 8: no scene spoilers while reading instruction results. */
#communication-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:clamp(23px,6vw,34px);color:#f3ffe8;text-shadow:0 2px 5px #000,0 0 12px #000;z-index:2;pointer-events:none}.monitor.communicating .scene-frame{background:repeating-radial-gradient(ellipse at 23% 61%,#ccd7cb 0 1px,#273e32 1px 3px,#647667 3px 4px);background-size:13px 11px;animation:communication-static .25s steps(1) infinite}.monitor.communicating #scene{opacity:0}.rover b{left:0;bottom:-10px;width:100%;height:15px;font-size:0;letter-spacing:0}.rover b::before,.rover b::after{content:'';position:absolute;top:0;width:14px;height:14px;border:3px solid #314c48;border-radius:50%;background:#89998a;box-shadow:inset 0 0 0 2px #61796b}.rover b::before{left:0}.rover b::after{right:0}.rover i::before{content:'';position:absolute;right:-7px;top:4px;width:6px;height:6px;background:#314c48;border-radius:0 4px 4px 0}@keyframes communication-static{0%,100%{background-position:0 0}25%{background-position:7px -4px}50%{background-position:-3px 8px}75%{background-position:5px 2px}}

#mission .mission-game-title{font:bold clamp(44px,13vw,62px)/1.1 Georgia,serif;margin:0 0 24px;letter-spacing:.04em}#mission .mission-game-title span{display:block;font:bold 26px/1.4 sans-serif;letter-spacing:0;margin-top:5px}
