:root{color-scheme:dark;--gold:#b6a176;--ink:#0c100e;--bone:#dbd0ad;--red:#79302a;--edge:#574a32}*{box-sizing:border-box}body{margin:0;background:#060806;color:var(--bone);font-family:Georgia,'Times New Roman',serif}button,a{ -webkit-tap-highlight-color:transparent}button{color:#d9c8a4;background:linear-gradient(#38382f,#171b17);border:1px solid #756644;padding:9px 13px;font:14px Georgia;cursor:pointer;box-shadow:inset 0 0 0 2px #0b100c}button:hover{background:linear-gradient(#575043,#272920);border-color:#b6a176}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid #e3bc68;outline-offset:3px}#game{height:100dvh;display:flex;flex-direction:column;min-height:540px}header{height:58px;flex-shrink:0;display:flex;align-items:center;gap:24px;padding:8px 18px;background:linear-gradient(#25241d,#10130f);border-bottom:3px ridge #63543b;z-index:5}.wordmark{font-size:22px;letter-spacing:.08em;text-decoration:none;color:#b8a174;white-space:nowrap}#mission-label{color:#938872;font:11px/1.7 sans-serif;letter-spacing:.14em}nav{margin-left:auto;display:flex;gap:5px}nav button{font-size:12px;padding:8px 10px}#viewport{flex:1;position:relative;min-height:250px;overflow:hidden;background:#171914}#world{display:block;width:100%;height:100%;image-rendering:pixelated;cursor:crosshair;outline:none;touch-action:none}#vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 80px 20px #02050188}#weather{position:absolute;inset:0;pointer-events:none;opacity:0;background:repeating-linear-gradient(115deg,transparent 0 45px,#99886a25 46px,transparent 48px)}#route-label{position:absolute;left:22px;top:20px;font-size:14px;color:#b3a37f;letter-spacing:.14em;pointer-events:none;text-shadow:0 2px 2px #000}#route-label span{display:block;font:9px/2.5 sans-serif;letter-spacing:.16em;color:#99876a}#objective{position:absolute;top:18px;left:50%;transform:translateX(-50%);max-width:430px;width:45%;padding:10px 18px;text-align:center;background:#111610df;border:1px solid #736244;font-size:14px;line-height:1.5;box-shadow:0 3px 20px #000a;pointer-events:none}#objective small{display:block;color:#ac9c7e;font-size:12px;margin-top:4px}.station-label{position:absolute;transform:translate(-50%,-50%);font:11px Georgia;padding:4px 7px;background:#0c110cce;border:1px solid #83704caa;white-space:nowrap;box-shadow:0 2px 5px #000a}.station-label.urgent{color:#f0b083;border-color:#a64835}.station-label.selected{background:#5b3d26}.station-label:hover{background:#463c29}#station-labels{position:absolute;inset:0;pointer-events:none}.station-label{pointer-events:auto}#interact-prompt{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);padding:7px 17px;background:#0b100cdb;border:1px solid #77613d;font:13px Georgia;pointer-events:none}#interact-prompt:empty{display:none}#toast{position:absolute;top:100px;left:50%;transform:translateX(-50%);font:14px/1.5 Georgia;text-align:center;width:360px;max-width:70%;padding:12px;background:#27251cf2;border:1px solid #96805a;pointer-events:none;opacity:0;transition:opacity .15s;z-index:20}#toast.visible{opacity:1}#crosshair{position:absolute;left:50%;top:50%;color:#c0b69a80;pointer-events:none}#station-panel{position:absolute;right:18px;top:95px;width:320px;max-height:calc(100% - 105px);overflow:auto;background:repeating-linear-gradient(0deg,#181d16f7 0 2px,#1b2019f7 2px 4px);padding:20px;border:3px ridge #7d6744;box-shadow:0 8px 24px #000b;z-index:12}#station-panel h2{font-weight:normal;font-size:23px;line-height:1.2;margin:6px 15px 10px 0;color:#ceb57e}#station-panel .close{float:right;padding:2px 7px}#station-panel p{font:13px/1.55 Georgia;color:#acaa91}#station-panel .small{font-size:12px;color:#8f917a}.action-list{display:grid;gap:7px}.action-list button{text-align:left}.action-list button small{display:block;color:#a39270;font-size:11px;margin-top:5px}.action-list button.primary{background:linear-gradient(#633125,#301a14)}.rite-step.done{color:#7caa87}.rite-step.current{border-color:#dfbb72;background:#403720}.rite-timer{height:7px;background:#0b0e0a;margin:10px 0}.rite-timer span{display:block;height:100%;background:#bba06a;width:0}.diagnosis{padding:8px;border-left:2px solid #aa6942;color:#d8b081!important}#journal{position:absolute;left:18px;bottom:16px;width:270px;pointer-events:none;background:linear-gradient(90deg,#09100ade,#09100a80);padding:12px;border-left:2px solid #5c5137}#journal h3{font:10px sans-serif;letter-spacing:.18em;color:#a69268;margin:0 0 10px}#event-log p{font-size:12px;line-height:1.45;margin:6px 0;color:#a2a590}#event-log p.warning{color:#c9a272}#event-log p.good{color:#a0b49a}#event-log time{font:9px monospace;opacity:.7;margin-right:4px}#instruments{position:relative;flex-shrink:0;display:flex;align-items:center;padding:12px 18px 9px;gap:18px;background:repeating-linear-gradient(110deg,#292a22 0 3px,#26271f 4px 7px,#2b2c24 8px 10px);border-top:4px ridge #89744e;box-shadow:0 -5px 30px #000d;z-index:8}.orb-group{flex-shrink:0;text-align:center;font:9px sans-serif;letter-spacing:.1em;color:#b7a37c}.orb{width:95px;height:95px;border-radius:50%;border:7px ridge #756b50;background:radial-gradient(circle at 33% 26%,#ac664c33 0 4%,transparent 6%),radial-gradient(circle at 45% 35%,#6b322e,#301011 65%,#030706 72%);box-shadow:0 0 0 3px #0b0d08,0 0 0 5px #72644a,inset -9px -8px 14px #000;display:flex;align-items:center;justify-content:center;margin:4px auto 11px}.orb.hull{background:radial-gradient(circle at 34% 25%,#789ea94d 0 4%,transparent 6%),radial-gradient(circle at 45% 40%,#38495c,#101725 65%,#030706 72%)}.orb span{font-size:27px;text-shadow:0 2px 2px #000;color:#dfd8bb}.readouts{flex:1;min-width:0}#gauges{display:flex;gap:12px;justify-content:space-between;margin:0 2px 9px}.gauge{flex:1;font:11px sans-serif;color:#a7a18b}.gauge strong{float:right;font:12px monospace;color:#d1c197}.gauge i{display:block;height:5px;margin-top:6px;background:#0b110d;border:1px solid #5f563e}.gauge i b{display:block;height:100%;background:#8e9163}.gauge.hot i b{background:#ae6b37}#station-strip{display:flex;gap:4px}#station-strip button{flex:1;min-width:0;font-size:12px;padding:8px 3px}.strip-condition{display:block;height:3px;margin-top:6px;background:#3e4532}.strip-condition i{display:block;height:100%;background:#93976a}#bottom-line{display:flex;justify-content:space-between;gap:10px;margin-top:8px;font:9px/1.6 sans-serif;color:#90846a;letter-spacing:.06em}#supplies{color:#b3a782}.overlay{position:fixed;inset:0;z-index:40;background:#030604c9;display:grid;place-items:center;padding:20px;backdrop-filter:blur(2px)}[hidden]{display:none!important}.modal{width:min(750px,100%);max-height:90vh;overflow:auto;border:4px ridge #99815a;background:linear-gradient(140deg,#272a20,#111710);box-shadow:0 15px 100px #000;padding:35px}.modal .eyebrow{letter-spacing:.22em;color:#a39068;font:11px sans-serif}.modal h1{font-weight:normal;font-size:52px;margin:12px 0 15px;line-height:1;color:#d0b983;letter-spacing:.015em}.modal h2{font-weight:normal;color:#d0b983}.modal p,.modal li{font-size:16px;line-height:1.6;color:#b6b8a2}.modal .intro{font-size:23px;line-height:1.45;color:#d6cfb5}.modal button{margin:8px 6px 0 0;padding:12px 18px}.modal .primary{background:linear-gradient(#6a3024,#391710);border-color:#b18b54}.modal .controls{padding:13px 16px;background:#0b100bad;border:1px solid #504b34;font-size:14px}.modal a{color:#c6ad7b}.depot-crew{border-top:1px solid #5b543c;padding:12px 0}.depot-crew h3{margin:0;color:#d0b983;font-size:19px}.depot-crew p{font-size:14px;margin:5px 0}.depot-crew button{font-size:13px;padding:8px}.depot-supplies{display:flex;flex-wrap:wrap}.depot-supplies button{font-size:13px;padding:8px}#touch-controls{display:none;position:absolute;bottom:10px;right:10px;text-align:center;z-index:15}#touch-controls button{min-width:40px;touch-action:none}body.first #journal{max-height:120px;overflow:hidden}body.first #route-label{opacity:.5}body.first #objective{font-size:12px;width:48%}@media(max-width:950px){#mission-label{display:none}.wordmark{font-size:17px}header{gap:5px;padding:8px}.orb{width:68px;height:68px;border-width:5px}.orb span{font-size:23px}#instruments{gap:10px;padding:8px}#station-strip button{font-size:10px}#journal{width:220px}#bottom-line>span:last-child{display:none}#objective{left:45%;width:42%}}@media(max-width:650px){header{height:auto;flex-wrap:wrap;min-height:72px}nav{gap:2px}nav button{font-size:10px;padding:7px 8px}.wordmark{font-size:17px}#route-label{display:none}#objective{width:80%;left:50%;font-size:12px;max-width:none;top:8px;padding:7px}#instruments{height:160px;gap:8px}.orb-group{font-size:7px}.orb{width:50px;height:50px}.orb span{font-size:19px}#station-strip{display:grid;grid-template-columns:repeat(4,1fr)}#station-strip button{padding:6px 2px}.gauge{font-size:8px}#gauges{gap:6px}.gauge strong{font-size:10px}#supplies{font-size:8px}#station-panel{right:8px;top:65px;width:280px;max-height:calc(100% - 70px)}#journal{display:none}.station-label{font-size:8px;padding:3px 5px}.modal{padding:22px}.modal h1{font-size:39px}.modal p,.modal li{font-size:14px}#interact-prompt{bottom:12px;font-size:11px;width:65%;text-align:center}#touch-controls{display:block}#touch-controls button{font-size:12px;padding:7px}body.first #objective{width:90%;font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}#toast{transition:none}.overlay{backdrop-filter:none}}
@media(max-width:650px){#journal{display:block;left:8px;bottom:auto;top:70px;width:210px;padding:7px;font-size:11px}#event-log p{display:none}#event-log p:last-child{display:block;font-size:11px}#journal h3{font-size:8px;margin:0 0 4px}body:has(#station-panel:not([hidden])) #journal{display:none}}
.diagnoses{height:66px;overflow:auto;border-top:1px solid #55523a;margin-bottom:10px}.diagnoses p{margin:8px 0}.diagnoses .diagnosis{padding:4px 7px;font-size:12px}

#viewport{background:#000}#spirit-caption{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);width:min(460px,65%);text-align:center;font:italic 14px/1.6 Georgia;color:#c7b592;background:#100e0ce8;border:1px solid #605236;padding:9px 16px;pointer-events:none;text-shadow:0 2px #000;z-index:9}#spirit-caption:before{content:'THE IRON ANSWERS';display:block;letter-spacing:.2em;font:9px/1.8 sans-serif;color:#938366}.witness{padding:12px;background:#080d08;border:1px solid #786543;border-left:3px solid #b79b63}.witness span{font:9px sans-serif;letter-spacing:.12em;color:#c2a870}.witness p{margin:7px 0!important;color:#c5b893!important}.recoil-response{display:block;width:100%;margin-bottom:12px;border-color:#c29757;background:#453520}.recoil-response small{display:block;font-size:11px;margin-top:5px}@media(max-width:650px){#spirit-caption{bottom:7px;font-size:11px;width:70%;left:40%}nav{flex-wrap:wrap}nav button{font-size:9px;padding:6px}}
/* Keep work orders and transient messages clear of the physical overhead ports. */
@media(min-width:651px){body:not(.first) #objective{left:20px;top:76px;transform:none;width:300px;max-width:25%;text-align:left;padding:8px 12px;font-size:12px}body:not(.first) #objective small{font-size:11px}}
#toast{top:auto;bottom:18px;left:auto;right:20px;transform:none;width:320px;max-width:calc(100% - 40px);text-align:left}
@media(min-width:651px){#toast{left:20px;right:auto;top:155px;bottom:auto;width:300px;max-width:25%;font-size:12px;line-height:1.4;padding:9px 12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}}
#ward-witness{color:#adad83;white-space:nowrap;letter-spacing:.035em}
#ward-witness::before{content:'◆';color:#71694c;margin-right:5px}
#ward-witness[data-tone="warning"]{color:#d0a26c}
#ward-witness[data-tone="warning"]::before{color:#a97446}
#ward-witness[data-tone="danger"]{color:#ead3bb;background:#4a211bbd;padding:2px 5px;border-left:2px solid #b46f52}
#ward-witness[data-tone="danger"]::before{content:'◇';color:#d28a68}
@media(max-width:650px){#bottom-line{flex-wrap:wrap;row-gap:3px}#ward-witness{flex-basis:100%;text-align:center;font-size:9px}#ward-witness[data-tone="danger"]{padding:1px 3px}}

.listening-contact{position:absolute;z-index:7;transform:translate(-50%,0);max-width:190px;padding:6px 9px;font-size:11px;line-height:1.3;color:#c7bb93;border:1px solid #756346;background:#11130f;box-shadow:inset 0 0 0 1px #29291e;}
.listening-contact[aria-pressed="true"]{color:#dfd5b2;border-color:#a18b62;}

/* The direction remembers a received blow; it never follows an unseen body. */
#strike-witness{position:absolute;left:50%;top:50%;width:160px;height:160px;transform:translate(-50%,-50%);pointer-events:none;z-index:6}#strike-witness i{position:absolute;inset:0}#strike-witness i::before{content:"";position:absolute;left:55px;top:3px;width:50px;height:11px;background:#d59b75;clip-path:polygon(0 100%,15% 25%,50% 0,85% 25%,100% 100%,50% 60%);filter:drop-shadow(0 2px 2px #080706)}#strike-witness p{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);width:285px;max-width:70vw;margin:0;padding:5px 8px;border-left:2px solid #9a493b;background:#180e0dd9;color:#e3b38f;font:12px/1.4 Georgia;text-align:center;text-shadow:0 1px #000}

/* A stopped office keeps the already reported witnesses available to plan. */
.modal:has(.pause-office){display:flex;flex-direction:column;overflow:hidden}.pause-office{display:flex;flex-direction:column;min-height:0}.pause-reading{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#81704f #111710;padding-right:5px}.pause-office .pause-scroll-note{flex-shrink:0;font:11px/1.4 Georgia;color:#a99a78;margin:8px 0 0}.pause-office .pause-buttons{flex-shrink:0;border-top:1px solid #4d4532;margin-top:6px;padding-top:3px}
.pause-office h1{font-size:30px;margin:8px 0}.pause-office .pause-location{font:12px/1.4 Georgia;color:#a99a78;margin:0 0 12px}
.pause-instruments{display:grid;grid-template-columns:repeat(5,1fr);margin:0;border:1px solid #5b5138;background:#0b100c;box-shadow:inset 0 2px 8px #0006}
.pause-instruments>div{padding:9px 10px;border-right:1px solid #393827}.pause-instruments>div:last-child{border:0}.pause-instruments dt{font:11px/1.4 Georgia;color:#a7a591}.pause-instruments dd{margin:3px 0 0;font:23px/1 Georgia;color:#dbc89f}
.pause-office .pause-stock{font:12px/1.5 Georgia;margin:8px 0;color:#b8ae91}.pause-stock b{color:#dfd1ae}
.pause-circuits{display:flex;gap:18px;border-bottom:1px solid #4d4532;padding-bottom:8px}.pause-office .pause-circuits p{font:11px/1.5 Georgia;margin:0;color:#a5a58d}.pause-circuits b{margin-left:5px;color:#d0c6a1}
.pause-office .pause-duty{margin:12px 0;padding:10px 12px;border-left:3px solid #8c764e;background:#111810}.pause-office .pause-duty h2{font:20px/1.2 Georgia;margin:0 0 6px}.pause-office .pause-duty p{font:13px/1.5 Georgia;margin:0}
.pause-office .pause-competing h2{font:12px/1.4 Georgia;margin:0 0 7px;color:#a69b7e}.pause-competing ul{padding:0;margin:0;list-style:none;display:grid;gap:7px}.pause-office .pause-competing li{font:12px/1.4 Georgia;border-left:2px solid #665336;padding-left:9px}.pause-competing b{color:#ccb993;font-weight:normal}.pause-competing span{display:block;color:#a8ac96;margin-top:2px}
.pause-office [data-tone="warning"] dd,.pause-office [data-tone="warning"] b{color:#dbb66d}.pause-office [data-tone="danger"] dd,.pause-office [data-tone="danger"] b{color:#f0a483}.pause-duty[data-tone="danger"],.pause-competing li[data-tone="danger"]{border-left-color:#a34f38}
.pause-office .pause-assurance{font:11px/1.4 Georgia;color:#999f88;margin:12px 0 2px}.pause-buttons{display:flex;flex-wrap:wrap;gap:6px}.modal .pause-buttons button{font:12px/1.4 Georgia;padding:9px 13px;margin:6px 0 0}.pause-buttons .primary{min-width:160px}
@media(max-width:650px){.modal:has(.pause-office){padding:18px}.pause-office h1{font-size:27px}.pause-instruments{grid-template-columns:repeat(2,1fr)}.pause-instruments>div{border-bottom:1px solid #393827}.pause-instruments>div:nth-child(2n){border-right:0}.pause-office .pause-duty h2{font-size:18px}.pause-circuits{gap:12px}.pause-buttons{gap:5px}.modal .pause-buttons button{padding:9px 10px;font-size:11px}}

/* Callouts point to the station without covering the working body or tool. */
#station-labels .station-label{transform:translate(-50%,calc(-100% - 24px));padding:4px 8px;line-height:1.25}
#station-labels .station-label::after{content:"";position:absolute;left:50%;top:100%;height:24px;border-left:1px solid #8b7954;pointer-events:none}
#station-labels .station-label small{display:none}
#station-labels .station-label:is(:hover,:focus-visible,.selected) small{display:block}
@media(max-width:650px){#station-labels .station-label{padding:4px 6px;font-size:10px}}

/* The stopped personnel report scrolls independently of its allocation and
   departure controls. Reading never starts another watch or spends supplies. */
.modal:has(.depot-office){display:flex;flex-direction:column;overflow:hidden}.depot-office{display:flex;flex-direction:column;min-height:0}.depot-heading{flex-shrink:0}.depot-heading h1{font-size:36px;margin:8px 0 10px}.depot-heading p{margin:8px 0;font-size:14px}.depot-reading{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#81704f #111710;padding-right:8px}.depot-reading h2{font-size:22px;margin:14px 0 8px}.depot-reading p{font-size:14px;margin:6px 0}.depot-reading .small{font-size:12px;line-height:1.5;color:#a4a78e}.depot-reading .depot-arrival{margin:6px 0 12px}.depot-status{font:11px/1.4 sans-serif!important;letter-spacing:.08em;color:#d5b47a!important}.depot-recruit{border-left:2px solid #716446;padding:3px 0 3px 12px;margin:8px 0}.depot-reading .depot-supplies{display:grid;grid-template-columns:1fr 1fr;gap:10px}.depot-supplies button{margin:0;width:100%;text-align:left}.depot-office .depot-receipt{flex-shrink:0;font:12px/1.45 Georgia;color:#b8c4a3;margin:9px 0 5px;min-height:35px}.depot-receipt[data-tone="danger"]{color:#e4a487}.depot-buttons{flex-shrink:0;display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid #5b543c;padding-top:5px}.modal .depot-buttons button{margin:3px 0 0;font-size:13px;padding:10px 12px}.depot-reading:focus-visible,.pause-reading:focus-visible{outline:1px solid #b69e66;outline-offset:-2px}@media(max-width:650px){.modal:has(.depot-office){padding:18px}.depot-heading h1{font-size:27px}.depot-reading .depot-supplies{grid-template-columns:1fr}.depot-buttons{display:grid;grid-template-columns:1fr;width:100%}.modal .depot-buttons button{font-size:12px;padding:9px}.depot-office .depot-receipt{min-height:0;font-size:11px}.depot-reading h2{font-size:20px}}
