body:is([data-screen="intro"],[data-screen="passage"]) { overflow:hidden; }
body:is([data-screen="intro"],[data-screen="passage"]) .topbar { position:fixed; inset:0 0 auto; z-index:6; }
.mission-briefing { position:fixed; inset:0; background:linear-gradient(#040a1022 8%,transparent 40%,#040a1099 90%); color:#fff1d7; }
.mission-briefing::before,.mission-briefing::after { content:""; position:absolute; left:0; right:0; height:7vh; background:#070c10; }
.mission-briefing::before { top:0; }.mission-briefing::after { bottom:0; }
.briefing-caption { position:absolute; bottom:18%; left:10%; right:10%; text-shadow:0 2px 14px #000; }
.briefing-caption h1 { font:400 clamp(34px,5vw,64px)/1.08 var(--serif); margin:12px 0; max-width:800px; }
.briefing-caption > p:last-of-type { font:clamp(15px,1.8vw,20px)/1.5 var(--sans); color:#e8e1d2; }
.briefing-steps { display:flex; gap:8px; margin-top:28px; }.briefing-steps i { height:2px;width:24px;background:#fff4; }.briefing-steps .current { width:64px;background:#efc58a; }
.briefing-skip { position:absolute; z-index:1; bottom:8%; right:5%; background:transparent; color:#f4e6d3; border:0; border-bottom:1px solid #e7c58b66; min-height:44px; padding:8px 10px; font:12px var(--sans); cursor:pointer; }
.briefing-skip:focus-visible { outline:2px solid #ffe2b7;outline-offset:5px; }
.journey-rail { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 15px; font:9px var(--mono); text-transform:uppercase;letter-spacing:.12em;color:#d4cbc0; }
.journey-rail span[aria-current] { color:#ffe1ae; border-bottom:1px solid #eac184; padding-bottom:5px; }.journey-rail i { font-style:normal;opacity:.5; }
body[data-screen="game"] .play-heading { top:100px; }
body[data-screen="game"] .mission-objective { top:200px; background:linear-gradient(90deg,#081119bb,transparent);border:0;border-left:2px solid #eac184;box-shadow:none;padding:10px 16px;max-width:320px; }
body[data-upload="true"] .journey-rail { display:none; }
@media(max-width:900px) { body[data-screen="game"] .mission-objective { top:225px;left:20px; } }
@media(max-width:600px) { .briefing-caption { left:7%;right:7%;bottom:22%; }.briefing-caption h1 { font-size:38px; } .journey-rail { gap:7px;font-size:8px; } body[data-screen="game"] .play-heading { top:120px; } body[data-screen="game"] .mission-objective { top:245px;max-width:calc(100vw - 40px); } }
@media(max-height:550px) and (min-width:601px) { body[data-screen="game"] .play-heading { top:80px; } body[data-screen="game"] .mission-objective { top:174px; } .briefing-caption { bottom:20%; }.briefing-caption h1 { font-size:36px; } .briefing-steps { margin-top:12px; } }

/* A small left-side control legend, with the glyph always leading the verb. */
body[data-screen="game"] #world-controls { left:24px;right:auto;bottom:22px;transform:none;width:auto;max-width:210px;display:grid;grid-template-columns:44px 44px;gap:6px;padding:0;border:0;background:none;justify-content:start; }
body[data-screen="game"] #input-hint { grid-column:1 / -1;grid-row:1;display:grid;gap:8px;width:auto;min-width:145px;text-align:left;margin-bottom:7px; }
#input-hint .controller-hint { display:flex;justify-content:flex-start;gap:10px;margin:0;font:11px var(--sans);color:#fff0d9;text-shadow:0 2px 6px #000; }
#input-hint kbd { box-sizing:border-box;display:inline-grid;place-items:center;min-width:28px;height:27px;padding:0 4px;border:1px solid #e4d0ae77;border-radius:4px;background:#10181c99;color:#ffe8c4;font:9px var(--mono); }
#input-hint .control-rest { font:10px var(--sans);color:#eadcc6;text-shadow:0 2px 6px #000; }
body[data-screen="game"] #world-controls > .secondary-button { width:44px;min-height:44px;padding:6px;display:flex;align-items:center;justify-content:center;gap:0;border-color:#e4d0ae55;background:#10181c77;font-size:22px; }
#camera-reset.with-controller-glyph .camera-reset-mark { display:none; }
body[data-screen="game"] #world-controls .drive-pad { grid-column:1 / -1; }
@media(max-width:600px) { body[data-screen="game"] #world-controls { left:14px;bottom:14px;max-width:180px; } body[data-upload="true"] #world-controls > .secondary-button { display:none; } body[data-upload="true"] #input-hint { display:flex;gap:14px;min-width:0;white-space:nowrap; } }

/* A matched rover frame makes the dates a passage, not another gameplay panel. */
.passage-light { position:absolute;inset:0;background:#070c16;pointer-events:none;opacity:0; }
.passage-years { position:absolute;top:16%;left:10%;right:10%;display:flex;align-items:center;gap:24px;flex-wrap:wrap;font:300 clamp(36px,6vw,76px)/1 var(--serif);text-shadow:0 2px 20px #000; }
.passage-years strong { font-weight:400;color:#ffe1ae; }
.passage-years i { height:1px;width:clamp(40px,10vw,140px);background:#ffe1ae88; }
.passage-years p { flex-basis:100%;margin:0;font:12px var(--sans);letter-spacing:.08em;color:#e8e1d2; }
.time-passage .briefing-caption h1 { font-size:clamp(30px,4vw,52px); }
@media(max-height:550px) { .passage-years { top:15%;font-size:32px;gap:12px; }.passage-years p { display:none; }.time-passage .briefing-caption { bottom:20%; }.time-passage .briefing-caption h1 { font-size:28px;margin:8px 0; } }

/* Controller interaction uses focus and pressure; the mouse pointer returns on mouse movement. */
body[data-input="controller"],body[data-input="controller"] * { cursor:none !important; }

/* The mission is addressed to the player, in the same composition as the rover. */
body[data-screen="game"] .play-heading { top:96px;left:50%;right:auto;transform:translateX(-50%);width:min(650px,calc(100% - 64px));max-width:none;text-align:center; }
body[data-screen="game"] .play-heading .journey-rail { justify-content:center;margin-bottom:12px; }
body[data-screen="game"] .play-heading .eyebrow { line-height:1.6; }
body[data-screen="game"] .play-heading .eyebrow::before { display:none; }
body[data-screen="game"] .mission-objective { position:static;max-width:none;margin:14px auto 0;padding:0;border:0;background:none;box-shadow:none; }
body[data-screen="game"] .mission-objective > span { display:none; }
body[data-screen="game"] .mission-objective strong { font:400 16px/1.4 var(--sans);color:#ffe1ae;text-shadow:0 2px 10px #000; }
body[data-phase="choose"] .mission-objective { display:none; }
body[data-phase="choose"] .interaction-dock .discovery-line { font-size:clamp(20px,2.4vw,27px);line-height:1.35;max-width:620px;margin:0 auto 24px; }
@media(max-width:900px) { body[data-screen="game"] .play-heading { top:112px;width:calc(100% - 60px); }.flight-status { opacity:.85; } }
@media(max-width:600px) { body[data-screen="game"] .play-heading { top:110px;width:calc(100% - 36px); }body[data-screen="game"] .play-heading h1 { font-size:27px; }body[data-screen="game"] .play-heading .eyebrow { font-size:8px; }.mission-objective strong { font-size:15px; } }
@media(max-height:550px) and (min-width:601px) { body[data-screen="game"] .play-heading { top:76px; }.play-heading h1 { font-size:24px; }body[data-screen="game"] .play-heading .journey-rail { display:none; }body[data-screen="game"] .mission-objective { margin-top:8px; } }

body[data-screen="game"] #waypoint-hud { display:none; }
body[data-screen="game"] .flight-status { top:78px;right:18px; }

/* A change of role is a scene, not a label hidden in the journal. */
.handover-link { position:absolute;top:24%;left:12%;right:12%;display:flex;align-items:center;gap:32px;font:16px var(--mono);letter-spacing:.12em;text-shadow:0 2px 20px #000; }
.handover-link span,.handover-link strong { display:grid;gap:12px;font-weight:400; }
.handover-link span { color:#c4b4a4; }
.handover-link strong { color:#e0f5ff; }
.handover-link small { font:10px var(--mono);letter-spacing:.2em; }
.handover-link i { flex:1;height:1px;background:linear-gradient(90deg,#e7bd8077,transparent 45%,transparent 55%,#daefff99); }
.signal-handover .briefing-caption { bottom:20%; }
body[data-perspective="earth"][data-screen="game"] .play-heading .eyebrow { color:#d5e9f1; }
body[data-perspective="earth"][data-screen="game"] .flight-status { display:none; }
.choice-purpose { margin:0 auto 12px;font:11px var(--mono);letter-spacing:.08em;color:#ead1ac;text-shadow:0 2px 8px #000; }
.interaction-dock .compact-choices { max-width:680px;gap:16px; }
.compact-choices .choice { min-height:108px;padding:18px 20px;background:linear-gradient(140deg,#101a23ed,#101a23bb); }
.compact-choices .choice-label { font-size:19px; }
.compact-choices .choice-detail { font:13px/1.45 var(--sans);color:#e5d5bd; }
.compact-choices .choice:focus-visible { background:linear-gradient(140deg,#57432eea,#17212beb);border-color:#ffe0a5;outline:2px solid #ffe0a5;outline-offset:3px; }
body[data-phase="choose"] .play-heading h1 { display:none; }
body[data-phase="choose"] .interaction-dock { bottom:12%; }
@media(max-height:650px) { body[data-phase="choose"] .interaction-dock { bottom:9%;max-height:62svh; }.compact-choices .choice { min-height:86px; }.handover-link { top:23%; }.signal-handover .briefing-caption h1 { font-size:32px; } }
.compact-choices .choice.with-controller-glyph { padding-left:48px; }
.compact-choices .choice.with-controller-glyph > .controller-glyph { top:22px; }

/* Navigation follows the landmark, including when the close camera cannot see it. */
body[data-screen="game"] #waypoint-hud:not([hidden]) { display:flex;flex-direction:column;align-items:center;gap:5px;position:fixed;transform:translate(-50%,-50%);max-width:210px;padding:7px 10px;border:0;background:radial-gradient(ellipse,#0d151acc,transparent 72%);color:#ffe0a2;text-align:center;font:10px/1.4 var(--mono);text-shadow:0 2px 5px #000; }
body[data-screen="game"] #waypoint-hud::before { content:'↑';display:block;font:26px/1 var(--sans);transform:rotate(var(--bearing,0deg));color:#ffdb91; }
body[data-screen="game"] #waypoint-hud[data-onscreen="true"]::before { content:'◇';transform:none;font-size:28px; }

/* Mast survey: three visible bearings, one current action, no message selection. */
.survey-instrument {text-align:center;max-width:620px;margin:auto;}
.survey-aim{position:relative;width:160px;height:110px;margin:0 auto 14px;}
.survey-center{position:absolute;left:calc(50% - 16px);top:calc(50% - 16px);width:32px;height:32px;border:1px solid #edf4f477;border-radius:50%;box-shadow:0 0 0 10px #10182022;}
.survey-center::after,.survey-center::before{content:'';position:absolute;background:#f7e9cc88;}
.survey-center::after{width:1px;height:12px;left:15px;top:9px;}
.survey-center::before{height:1px;width:12px;left:9px;top:15px;}
#survey-target{position:absolute;left:calc(50% - 4px);top:calc(50% - 4px);width:8px;height:8px;background:#ffd392;border-radius:50%;box-shadow:0 0 14px #ffcb77;transition:transform 100ms linear;}
#survey-target[data-aligned="true"]{background:#eefaff;box-shadow:0 0 15px #d6efff;}
.survey-ticks{display:flex;justify-content:center;gap:16px;font:10px/1.3 var(--mono);letter-spacing:.12em;color:#b5bec4;}
.survey-ticks span{padding-bottom:7px;border-bottom:2px solid #b5bec433;}
.survey-ticks [data-active="true"]{color:#ffe1ad;border-color:#ffe1ad;}
.survey-ticks [data-recorded="true"]{color:#d6f2ff;border-color:#d6f2ff;}
.survey-instrument .discovery-line{font-size:18px;margin:14px 0 8px;}
.survey-instrument .pace-note{font-size:12px;margin:8px 0;}
body[data-upload="true"] .interaction-dock .dock-footer{display:none;}

/* Tool readings sit beneath the physical brush/probe rather than covering it. */
body[data-tool="true"] .interaction-dock{bottom:65px!important;top:auto!important;transform:translateX(-50%)!important;max-width:760px!important;}
body[data-tool="true"] .inner-voice,body[data-tool="true"] .dock-footer{display:none;}
body[data-tool="true"] .play-heading h1{font-size:clamp(25px,3vw,38px);}
.geology-tool-panel{text-align:center;}
.tool-stage{font:10px/1.4 var(--mono);text-transform:uppercase;letter-spacing:.18em;color:#f2c787;margin:4px 0 7px;}
.tool-instruction{font:17px/1.35 var(--sans);color:#fff3dd;margin:0 0 10px;}
.tool-readout{display:flex;justify-content:center;gap:14px;align-items:center;font:11px var(--mono);color:#d5e8ee;min-height:12px;}
.tool-readout progress{width:min(300px,50vw);height:3px;appearance:none;border:0;background:#d6e3ed33;color:#f4d29c;}
.tool-readout progress::-webkit-progress-bar{background:#d6e3ed33;}
.tool-readout progress::-webkit-progress-value{background:#f4d29c;}
.tool-readout progress::-moz-progress-bar{background:#f4d29c;}
.sample-comparison{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:12px 0;}
.sample-reading{position:relative;text-align:left;border-top:1px solid #b4c8cd55;padding:10px 22px 0 0;}
.sample-reading>span{display:block;font:10px/1.4 var(--mono);color:#b7cbd1;}
.sample-reading strong{display:block;margin-top:5px;font:15px/1.35 var(--sans);font-weight:400;color:#b4c3c9;}
.sample-reading[data-recorded="true"]{border-color:#e7c184;}
.sample-reading[data-recorded="true"] strong{color:#fff1d9;}
.sample-reading i{position:absolute;right:0;top:15px;font-size:10px;color:#efce97;}
.tool-qualification{font:9px/1.3 var(--mono);color:#b8c8cf;margin:7px 0;}
.tool-actions{display:flex;gap:20px;justify-content:center;align-items:center;margin-top:10px;}
.tool-actions button{min-height:38px;padding-block:8px;}
.tool-operate{touch-action:none;user-select:none;}
@media(max-height:650px){body[data-tool="true"] .interaction-dock{bottom:45px!important}.sample-comparison{margin:5px 0}.tool-instruction{font-size:14px}.tool-actions{margin-top:5px}}

/* One instruction hierarchy; the world carries the evidence. */
body[data-tool="true"] .mission-objective{display:none;}
body[data-tool="true"] .interaction-dock{bottom:48px!important;max-width:700px!important;}
body[data-tool="true"] .play-heading h1{font-size:clamp(23px,2.7vw,32px);}
.tool-sequence{list-style:none;display:flex;justify-content:center;gap:24px;padding:0;margin:0 0 13px;font:10px/1.4 var(--mono);color:#9ca9af;}
.tool-sequence b{font-weight:400;opacity:.6;margin-right:5px;}
.tool-sequence [aria-current="step"]{color:#ffe2ae;}
.tool-sequence [data-complete="true"]{color:#a9d8d0;}
.tool-instruction{font-size:18px;text-wrap:balance;}
.tool-actions .tool-skip{font-size:10px;opacity:.65;border:0;}
.tool-actions .tool-skip:hover,.tool-actions .tool-skip:focus-visible{opacity:1;}
.geology-tool-panel[data-tool-stage="compare"] .sample-reading{padding-top:13px;border-color:#9ed1c6;}
.sample-reading[data-recorded="true"] i{color:#a9d8d0;}
.tool-qualification{font-size:8px;opacity:.75;margin-top:9px;}
@media(max-width:600px){.tool-sequence{gap:12px;font-size:8px}.tool-instruction{font-size:15px}.sample-comparison{gap:16px}.sample-reading strong{font-size:13px}}

/* Keep the immediate task and story; move secondary readouts out of the view. */
body[data-screen="game"] .brand-subtitle,body[data-screen="game"] .brand-divider{display:none;}
body[data-screen="game"] .topbar .button-label{display:none;}
body[data-screen="game"] .dock-footer{border:0;margin:0;padding:0;justify-content:flex-end;}
body.controller-active[data-screen="game"] .dock-footer{display:none;}
body[data-phase="observe"][data-travelling="false"] .mission-objective{display:none;}
.geology-tool-panel[data-tool-stage="compare"] .tool-readout{display:none;}
.geology-tool-panel[data-tool-stage="compare"] .sample-comparison{margin-top:0;}
.geology-tool-panel .tool-instruction.sr-only,.geology-tool-panel .tool-qualification.sr-only,.geology-tool-panel .tool-sequence.sr-only{margin:0;padding:0;}
