/* Shared control skin, HUD and secondary-page presentation.
   Menu layout lives only in menu.css; panel shell, chapters and packing in panels.css.
   Nothing here affects gas, collisions or stories. */
:root{
 --paper:#e9e9db;--muted:#a0b2b5;--dim:#677f88;--gold:#c6b78d;
 --line:rgba(183,202,201,.15);--ink:#07131c;--surface:#0b1b26;--warm:#e4d6ac;
 --ease:cubic-bezier(.16,1,.3,1);--quick:180ms;--enter:540ms;
 --sans:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
 --serif:'Noto Serif CJK SC','Songti SC','STSong',serif;
}
button,input,a,summary{-webkit-tap-highlight-color:transparent}
button{transition:color 180ms,background 220ms,border-color 220ms,box-shadow 220ms,transform 240ms var(--ease)}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
button:disabled{cursor:not-allowed;opacity:.42}
button:hover:not(:disabled){color:#fff5d2}
.ui-icon{display:inline-block;width:21px;height:21px;flex-shrink:0;vertical-align:middle;pointer-events:none}
.ui-index{font:10px var(--mono);letter-spacing:2px;color:var(--gold)}
.ui-kicker{font:9px var(--sans);letter-spacing:3px;color:var(--gold);text-transform:uppercase}
.ui-section-label{display:flex;gap:12px;align-items:center;margin:0 0 15px;font:10px var(--sans);letter-spacing:2px;color:var(--gold)}
.ui-section-label:after{content:'';height:1px;flex:1;background:var(--line)}
#scene{background:#07131c}
button:hover:not(:disabled)>.ui-icon:last-child{transform:translateX(3px)}
@keyframes rise-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes line-open{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}
#panel::before{content:'';pointer-events:none;position:absolute;top:0;left:0;width:100%;height:2px;background:linear-gradient(90deg,transparent,#cbb88f77 42%,#cbb88f22,transparent)}
.primary{position:relative;overflow:hidden;background:linear-gradient(110deg,#d9ccaa,#afa27b);color:#12252c!important;min-height:52px;padding:16px 23px;border:1px solid #e4d6a43b;font:13px var(--sans);letter-spacing:1px;box-shadow:inset 0 1px #fff4cc33}
.primary:before{content:'';position:absolute;inset:0;transform:translateX(-110%);background:linear-gradient(100deg,transparent,rgba(255,249,216,.3),transparent);transition:transform 650ms var(--ease);pointer-events:none}
.primary:hover:not(:disabled){background:linear-gradient(110deg,#e7dab8,#c2b286);box-shadow:0 4px 20px #b8a37013;transform:translateY(-1px)}
.primary:hover:not(:disabled):before{transform:translateX(110%)}
.primary:active:not(:disabled){transform:translateY(1px)}
.outline{border-color:#afc4be30;background:linear-gradient(120deg,#b1c5c506,#b1c5c500);font:12px var(--sans);min-height:41px;padding:11px 17px;color:#c5d0c4}
.outline:hover:not(:disabled){background:#c0bd9610;border-color:#c2b48988}
.text-link{font-size:11px;color:#c7bb94;letter-spacing:.2px;min-height:30px}
.chip-row{gap:5px}.chip{font:12px var(--sans);padding:12px 20px;border:1px solid transparent;border-bottom-color:#9eb3ad28;background:none}
.chip.active{background:#c4b88e0d;border-color:#c4b88e44;color:#e0d3ac}
.panel-kicker{display:flex;align-items:center;gap:15px;color:var(--dim);font:10px var(--mono);margin-top:15px}
.ui-panel-ghost{position:fixed;pointer-events:none!important;z-index:71!important;overflow:hidden!important;margin:0!important;opacity:0;transition:none!important}
/* HUD — peripheral and transparent, not a dashboard. */
#hud .hud-top{top:max(30px,env(safe-area-inset-top));left:max(38px,env(safe-area-inset-left));right:max(38px,env(safe-area-inset-right));gap:18px}
#hud .chapter-meta{padding-left:15px;border-left:1px solid #ccb9858c;text-shadow:0 2px 12px #000b}
#hud .chapter-meta b{font:19px/1.3 var(--serif);letter-spacing:1.5px;color:#f0ead6}#hud .chapter-meta small{font:10px/1.5 var(--sans);letter-spacing:2px;color:#bdc7b9}
#hud #pause{width:36px;height:39px;background:#081a1dab;border-color:#ceb98a55}.icon-button .ui-icon{width:16px;height:16px}
#hud #quick-fullscreen{border-color:#a9bdb322;background:#09212a20;min-width:35px;min-height:35px;width:35px;height:35px;padding:7px;color:#98b0b1}
#hud .instruments{top:99px;left:30px;right:auto;gap:23px;padding:0;align-items:center;min-height:80px;background:none;border:0}
#hud .instruments>button#gauge-button{width:78px;height:78px;min-width:78px;padding:0;display:flex;justify-content:center;align-items:center;gap:4px;border:1px solid #98b4aa24;border-radius:50%;background:radial-gradient(#0a202ed9 46%,#0b202a88 59%,transparent 62%);position:relative}
#gauge-button:before{content:'';position:absolute;inset:-1px;border-radius:50%;background:conic-gradient(from 215deg,var(--gauge-color,#d3c79f) calc(var(--gas-pct,100)*.72%),#acc1b221 0 72%,transparent 0);mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 0)}
#hud .instruments #gauge-button>span{order:2;font:8px var(--sans);letter-spacing:2px;color:#a7babc}#hud .instruments #gas{font:24px/1 var(--mono);letter-spacing:-1px;color:#e9e7d5}
#hud .instruments #gas small{font:9px var(--mono);margin-left:2px;color:#a7bbaf}
#hud .instruments #gas.danger{color:#f2b3a2}
#hud .instruments #gas-bar{display:none}
/* Turn mark: a third of the main supply spent. It is a rule to think about the way back, not a range estimate. */
#gauge-button .turn-mark{position:absolute;inset:-6px;border-radius:50%;pointer-events:none;transform:rotate(27.8deg)}
#gauge-button .turn-mark::before{content:'';position:absolute;left:50%;top:0;width:2px;height:9px;margin-left:-1px;background:#cbb78aa8;border-radius:1px}
#gauge-button.past-turn .turn-mark::before{background:#f0c27e;box-shadow:0 0 6px #f0c27e99}
#hud .instruments .depth-instrument,#hud .instruments .clarity-instrument{min-width:47px;gap:9px;position:relative;padding-top:0}
#hud .instruments .depth-instrument span,#hud .instruments .clarity-instrument span{font:9px var(--sans);letter-spacing:2px;color:#99afb0}
#hud .instruments #depth{font:22px var(--mono);letter-spacing:-1px;color:#e2e8d7}#hud .instruments #depth small{font:10px var(--mono);margin-left:3px;color:#819a9c}
#hud .instruments #clarity{font:14px/24px var(--serif);letter-spacing:1.5px;color:#c4d2c3}
#hud #clarity-track{bottom:-7px;width:100%;height:1px;background:#91afa23b}#clarity-bar{height:1px;background:#c6ccb4}
#hud #danger-note{top:192px;left:31px;font:11px var(--sans);letter-spacing:.5px}
#hud #mission-panel{top:98px;right:38px;width:min(325px,31vw);background:linear-gradient(90deg,#08191dc9,#08191d49);padding:17px 20px 18px;border:0;border-left:1px solid #ceb98599;box-shadow:0 18px 50px #0002}
#mission-panel header{margin-bottom:13px;justify-content:space-between;gap:18px;font:10px var(--sans);color:#c4cbb9}
#mission-panel header b{font:12px var(--mono);color:#e6d8ae}
#mission-panel #map-button{min-height:32px;min-width:71px;border-color:#b4c5b949;background:#081d27a8;font:11px var(--sans);padding:7px 10px;color:#e3e4d2}
#map-button .ui-icon{height:13px;width:13px;margin-right:7px}
#mission-panel .mission-current{padding:0;border:0;background:none;text-align:left;margin:0}
#mission-panel #mission-phase{font:10px var(--sans);letter-spacing:2px;color:#d2c18e}
#mission-panel #mission-title{font:21px/1.45 var(--serif);letter-spacing:1px;margin:8px 0 5px;color:#f0ecda;text-wrap:balance}
#mission-panel #mission-hint{font:12px/1.75 var(--sans);color:#ccd1c1;margin-top:8px;max-width:280px}
#skip-lesson{display:block;margin:13px 0 0;padding:6px 0;border-bottom:1px solid #c8bc9177;color:#e0ce9a;font:11px/1.5 var(--sans);pointer-events:auto;text-align:left}
#skip-lesson[hidden]{display:none}
#hud .hud-bottom{left:max(38px,env(safe-area-inset-left));right:max(38px,env(safe-area-inset-right));bottom:max(30px,env(safe-area-inset-bottom));gap:20px}
#hud .party{min-width:0;max-width:320px;gap:8px}#mate-status{font:12px/1.5 var(--sans);color:#e4e9d8;background:#081e28b8;padding:11px 14px;border-left:2px solid #c3b58a}
#checkpoint-text{font:9px var(--sans);color:#b5bfa1;min-width:0}
#hud .hud-actions{gap:8px;align-items:end}#hud .hud-actions button{width:42px;height:42px;min-width:42px;min-height:42px;padding:8px;position:relative;border:1px solid #91acaa44;background:#081a1dc9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#dfdfca}
#hud .hud-actions #journal-button,#hud .hud-actions #kit-button,#hud .hud-actions #buddy-button{width:64px;height:62px;min-width:64px;min-height:62px;border-color:#b9ab7c8a;background:#091b1edc}
#hud .hud-actions #photo-button{margin-left:10px}
#hud .hud-actions .dock-label{font:10px/1 var(--sans);letter-spacing:1px;color:#e1d7b5}
#hud .hud-actions button:hover{border-color:#baa974aa;background:#17313bc9;color:#efe5c4;transform:translateY(-2px)}
#hud .hud-actions .ui-icon{width:17px;height:17px}#hud .hud-actions .key-cap{font:9px var(--mono);position:absolute;bottom:-17px;left:0;right:0;text-align:center;color:#b5c2ad}
#hud #interaction{bottom:170px;left:50%;max-width:min(530px,70vw)}
#interaction>button{border:1px solid #ccb887b5;background:linear-gradient(110deg,#0d2023f5,#07171ceb);box-shadow:0 9px 27px #0007;padding:9px 21px 9px 10px;font:16px var(--serif);letter-spacing:.5px;gap:12px;min-height:54px}
#interaction>button:hover{background:#17363edf;border-color:#cfc4a078}
#interaction>small{font:9px var(--sans);letter-spacing:1px;margin-top:8px;color:#8fa6a5}
.key-ring{width:34px;height:34px}.key-ring b{background:#112c37;color:#eadbb0}.key-ring>i{border-color:#a5b89577}
#hud #dialogue{bottom:70px;width:min(700px,66vw);padding:10px 26px;background:linear-gradient(90deg,transparent,#05131bc9 14%,#05131bc9 86%,transparent)}
#dialogue>span{font:8px var(--sans);letter-spacing:2px;color:#cfbf95}#dialogue p{font:14px/1.8 var(--serif);letter-spacing:.5px;color:#e0e5da;margin:4px 0 0}
#hud #situational{top:270px;left:31px;font-size:10px;color:#c9b78b;background:#0d202865;padding:6px 9px;border:0;border-left:1px solid #bca16b5c;gap:10px}
#sound-caption{font:10px var(--sans);letter-spacing:1px;color:#b5c6ba;background:#071722a1;padding:7px 12px;bottom:73px;left:30px;max-width:260px}
#knowledge-badge{bottom:78px;left:31px;font:10px var(--sans);letter-spacing:.5px;border:1px solid #b5af8335;background:#0d2830df;color:#d0c495;padding:9px 13px;max-width:230px}
#hud #condition{top:304px;left:31px;font-size:10px}#quick-reserve{font:10px var(--sans);border-color:#ceaa7855;background:#142b31d9}
#hud #zone-reveal{top:23%;left:50%;right:auto;transform:translateX(-50%);text-align:center}
/* One short beat when a task lands; it never replaces the objective panel or danger notes. */
#task-stamp{position:absolute;top:33%;left:50%;transform:translateX(-50%);display:grid;justify-items:center;gap:6px;padding:10px 34px 12px;background:radial-gradient(ellipse at center,#0a1c22d0,transparent 72%);pointer-events:none;animation:task-stamp 2.8s ease-out forwards}
#task-stamp small{font:9px var(--sans);letter-spacing:5px;color:#d9c68f}#task-stamp small::before,#task-stamp small::after{content:"";display:inline-block;width:26px;height:1px;background:#cbb78a88;vertical-align:middle;margin:0 10px}
#task-stamp b{font:20px var(--serif);letter-spacing:3px;color:#ece6cf;text-shadow:0 2px 14px #000}
@keyframes task-stamp{0%{opacity:0;transform:translate(-50%,8px) scale(.97)}12%{opacity:1;transform:translate(-50%,0) scale(1)}78%{opacity:1}100%{opacity:0;transform:translate(-50%,-6px)}}
.reduced #task-stamp{animation:none}
#zone-reveal small{letter-spacing:5px;font-size:9px;color:#baae84}#zone-reveal h2{font:25px var(--serif);letter-spacing:5px;color:#d6dfd4;text-shadow:0 3px 16px #000}
#toast{top:81px;padding:12px 20px;border:1px solid #c0b28832;border-left:2px solid #c0b288;background:linear-gradient(110deg,#122b35f5,#0a1d27f5);font:12px/1.8 var(--sans);box-shadow:0 8px 32px #0004;max-width:min(510px,84vw)}
/* A proper opening card; pause and choices still run no simulation. */
#disclaimer{background:radial-gradient(ellipse at 75% 35%,#21424b,#071724 51%,#030c15);padding:38px;isolation:isolate}
#disclaimer:before{content:'';position:absolute;pointer-events:none;width:55vw;height:110vh;right:0;top:-35vh;transform:rotate(35deg);background:linear-gradient(90deg,transparent,#a0c0b90a,transparent 30%,#a0c0b906 35%,transparent 80%);z-index:-1}
#disclaimer>section{max-width:550px;border-left:1px solid #c4b58955;padding-left:35px}
#disclaimer .disclaimer-mark{font:25px var(--serif);letter-spacing:6px;color:#d9d4b9;margin-bottom:39px}
#disclaimer .disclaimer-mark>span{font:8px var(--sans);color:#83a0a5;letter-spacing:5px;margin-left:19px}
#disclaimer h2{font:36px/1.6 var(--serif);letter-spacing:3px;color:#e2e7d8;margin:14px 0 21px}
#disclaimer p:not(.eyebrow){font:12px/2 var(--sans);color:#99b1b9}#disclaimer p strong{color:#bdcabc;font-weight:500}
#disclaimer p.fine{font-size:10px;margin:20px 0}#disclaimer .primary{margin-top:26px;max-width:390px}.disclaimer-mark small{font-size:10px}
#disclaimer small{font:9px var(--sans);color:#6d8c93;letter-spacing:.5px;text-align:left;margin-top:15px}
#intro{background:radial-gradient(ellipse at 67% 42%,#193541dc,#06131bf7 65%);padding:36px;gap:0;overflow:auto}
#intro:before{content:'';position:absolute;top:12%;bottom:13%;left:50%;width:1px;background:linear-gradient(transparent,#adb59922,transparent);pointer-events:none}
#intro>span{font:10px var(--mono);letter-spacing:4px;color:#c2b38d}#intro h2{font:44px var(--serif);letter-spacing:6px;margin:29px 0 20px}
#intro #intro-role{font:11px var(--sans);letter-spacing:2px;color:#bbccbe}#intro #intro-text{font:14px/2.2 var(--serif);max-width:550px;letter-spacing:1px;color:#a9bbbd;margin-top:20px}
#intro #skip-intro{margin-top:33px;min-width:205px;padding:15px 25px;border:1px solid #a6b2a444;background:#bcb2870a;font:12px var(--sans)}
#intro>small{font:9px var(--sans);color:#637e89;margin-top:18px}
/* Pause, instrumentation, records and settings. */
#panel[data-page=pause]{width:min(1000px,94vw)}
.pause-layout{display:grid;grid-template-columns:45% 1fr;gap:38px;align-items:start}
.pause-nav .primary{margin-top:0!important}.pause-nav>.outline{display:block;width:100%;text-align:left;margin-top:9px;font-size:12px;min-height:45px}
.pause-hero{position:relative;min-height:275px;overflow:hidden;border:1px solid #b0b7a828;background:#05131c}
.pause-hero img{display:block;width:100%;height:280px;object-fit:cover;filter:brightness(1.15) saturate(.7)}
.pause-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#04131cf5,transparent 65%);pointer-events:none}
.pause-hero>div{position:absolute;z-index:1;bottom:20px;left:23px;right:23px}.pause-hero small{font:9px var(--sans);letter-spacing:2px;color:#baae85}.pause-hero h3{font:23px var(--serif)!important;letter-spacing:2px;margin:10px 0!important}.pause-hero p{font:11px var(--mono)!important;color:#acc0b8!important;margin:0}
.pause-help{border-top:1px solid #a3bdb722;margin-top:20px;padding:14px 0 0}.pause-help summary{font:11px var(--sans);color:#aebfaf;cursor:pointer;letter-spacing:.5px}
#panel[data-page=gauge]{width:min(730px,94vw)}
.gauge-display{height:270px;gap:40px}.gauge-dial{height:205px;width:205px;border:8px solid #38494e;background:radial-gradient(circle at 40% 30%,#283d44,#101f28 72%);color:#ece5ca;box-shadow:0 0 0 1px #b6b99277,0 0 0 4px #091720,0 18px 38px #0004,inset 0 0 0 1px #a1b09955}
.gauge-dial:before{inset:11px;border:1px dashed #8b9e8b99}.gauge-dial b{font:50px var(--mono);color:#e2d7b4}.gauge-dial small{color:#8cafa9;bottom:33px;letter-spacing:4px}
.gauge-aside b{font:21px var(--serif);color:#d4c49c}.gauge-aside p{font:12px/2 var(--sans)!important;color:#8faab0!important}
.map-summary{border-block:1px solid #a4bcb126;padding:15px 0;color:#99b1b4;font:11px var(--sans);display:flex;gap:22px;flex-wrap:wrap}.map-summary strong{color:#cfc299;font-weight:400}
#panel[data-page=map]{width:min(1040px,95vw)}
.map-canvas{border:1px solid #a5b5a823;background:#071722;box-shadow:inset 0 0 50px #0005;margin:16px 0 12px;max-height:55vh;object-fit:contain}
.map-caption{font:10px var(--sans);color:#859da6}.map-tasks summary{font:11px var(--sans);color:#aabcb9;cursor:pointer}
.settings-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin-bottom:23px}
.settings-tabs button{padding:12px 21px;border-bottom:2px solid transparent;font:12px var(--sans);letter-spacing:1px;color:#9fb2b8;display:flex;gap:9px;align-items:center}
.settings-tabs [aria-selected=true]{border-bottom-color:#c5b789;color:#e1d7b5;background:linear-gradient(0deg,#c5b78912,transparent)}
.settings-tabs .ui-icon{width:16px;height:16px}
.audio-grid{gap:20px 32px;grid-template-columns:1fr 1fr}
.setting{padding:17px 0;border-bottom-color:#a4b4ab20}.setting label{font:12px var(--sans);color:#c0cdbe;gap:15px}.setting output{font:12px var(--mono);color:#cabc97;min-width:36px;text-align:right}
.setting input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:3px;margin:20px 0 12px;background:linear-gradient(90deg,#c2b184 var(--fill,50%),#4259674d 0);border-radius:0;cursor:pointer}
.setting input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:17px;background:#cbbd92;border:2px solid #e8dcc166;box-shadow:0 1px 6px #0005;transition:transform 180ms}
.setting input[type=range]::-moz-range-thumb{width:9px;height:15px;background:#cbbd92;border:1px solid #e8dcc166;border-radius:0}
.setting input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.2)}
.setting input[type=checkbox]{appearance:none;-webkit-appearance:none;width:34px;height:18px;min-width:34px;position:relative;background:#253d4699;border:1px solid #9badac33;border-radius:12px;cursor:pointer;transition:background 200ms,border-color 200ms}
.setting input[type=checkbox]:after{content:'';position:absolute;top:3px;left:3px;width:10px;height:10px;border-radius:50%;background:#8aa0a2;transition:transform 200ms var(--ease),background 200ms}
.setting input[type=checkbox]:checked{background:#b5a87633;border-color:#c4b78977}.setting input[type=checkbox]:checked:after{transform:translateX(16px);background:#ddcc9c}
.setting p.fine{font-size:10px!important;margin:7px 42px 0 0!important;color:#7e9aa4!important}
.sound-auditions{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:22px}.sound-auditions button{font-size:10px;min-height:37px;padding:9px 7px}
.settings-bottom{display:flex;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:18px;margin-top:16px;font:10px var(--sans);color:#8099a3}
.controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 36px}.control-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #a4b4ab16;font:12px var(--sans);color:#bdcbbb}.control-row kbd{font:10px var(--mono);min-width:34px;padding:6px;border-color:#a4b4ab33;background:#101f2a;color:#d3c49c;text-align:center}
.buddy-state{padding:22px 0;border-color:#b3c2b723;gap:23px}.buddy-silhouette{width:73px;height:90px;font:32px var(--serif);color:#cad3ba;background:linear-gradient(135deg,#344d54,#102630);border:1px solid #b6bea44d;box-shadow:inset 0 0 25px #0c202a}
.buddy-actions{gap:12px;margin:25px 0 18px}.buddy-actions button{min-height:100px;background:linear-gradient(115deg,#7aaca60b,transparent);border-color:#a5b6b627;padding:20px 22px;position:relative}.buddy-actions button:before{content:'';width:1px;position:absolute;left:0;top:24px;bottom:24px;background:#c1b18b55}.buddy-actions button:hover:not(:disabled){border-color:#c1b18b88;background:#adb9860d;transform:translateY(-2px)}
.buddy-actions button b{font:17px var(--serif);letter-spacing:1px}.buddy-actions button small{font:10px/1.8 var(--sans);color:#8ba6ac}.buddy-tabs button{font-size:11px;border-color:#a5b6b627;padding:10px 21px}.buddy-tabs .selected{border-color:#c1b18b66;background:#c1b18b0d}
.kit-actions{gap:12px}.kit-actions button{padding:21px;border-color:#a2b7b326;background:linear-gradient(115deg,#749c920b,transparent);font:15px var(--serif)}.kit-actions button:hover:not(:disabled){border-color:#bdae8666;transform:translateY(-2px)}.kit-actions small{font:11px/1.8 var(--sans);color:#849fa6;margin-top:9px}
.knowledge-grid{gap:14px}.knowledge-tile{position:relative;min-height:139px;border-color:#99b4b32a;background:linear-gradient(115deg,#88a6a10b,transparent);padding:22px;overflow:hidden}.knowledge-tile:after{content:'＋';position:absolute;right:18px;bottom:14px;font:24px var(--serif);color:#c2b28560}.knowledge-tile b{font:21px var(--serif);letter-spacing:1px}.knowledge-tile small{font-size:8px;letter-spacing:2px}.knowledge-tile span{font-size:10px;color:#8da9b0}.knowledge-tile:hover:not(:disabled){transform:translateY(-2px);border-color:#c2b28577;background:#c2b2850c}
.knowledge-page{padding:10px 8px 5px;max-width:720px}.knowledge-page>h3{font:34px var(--serif)!important}.knowledge-page .knowledge-lead{font:20px/1.9 var(--serif)!important;color:#d1d6c6!important}.knowledge-page p{font:13px/2.1 var(--sans)!important;color:#a8bdc0!important}.knowledge-source{border-color:#adc2b326}
.collection-grid{gap:18px}.collection-card{position:relative;padding:28px 24px;border:1px solid #a2b7b52a;background:#0b212b}.collection-card h3{font:23px var(--serif)!important;letter-spacing:1px}.collection-card.complete{border-color:#c3b28555}.collection-card .eyebrow{font-size:9px;letter-spacing:2px}.collection-card button{margin-top:18px}.note-card{border-color:#a6bcb926;background:#0f263033;padding:23px}.note-card h3{font:20px var(--serif)!important}
.reference{border-color:#a2b9b12b}.reference h3{font:19px var(--serif)!important;letter-spacing:1px}.reference a{font-size:11px;color:#c8ba91}
.survey-page{border:1px solid #adb79244;background:linear-gradient(120deg,#8a9c6d13,#0b202977);padding:25px 31px;transform:rotate(-.3deg);box-shadow:0 12px 22px #0002}.survey-page small{font:9px var(--sans);letter-spacing:2px;color:#bca97e}.survey-page p{font:24px/1.8 var(--serif)!important;letter-spacing:1px;color:#d2d8c5!important}
.route-options{gap:16px;margin:25px 0}.route-options button{background:linear-gradient(110deg,#c0ba8910,transparent);border:1px solid #b5bdad33;padding:24px}.route-options button:hover{border-color:#c6b18588;transform:translateY(-3px)}
/* Aftermath: differentiated, composed, still skippable and quick to retry. */
#panel.result-screen{width:min(1120px,95vw);border-top-color:#c5b18a66;background:linear-gradient(125deg,#182631f5,#06131ffa);padding:36px 43px}
#panel.result-screen #panel-title{font:48px/1.3 var(--serif);letter-spacing:5px;margin:13px 0 0}
#panel.result-screen .panel-head{border-bottom-color:#b9bda72b;margin-bottom:26px!important;padding-bottom:24px!important}
[data-result=death] #panel.result-screen{background:linear-gradient(120deg,#261e22f5,#091723fa 65%);border-color:#b8997f2f}
[data-result=death] #panel-eyebrow{color:#ca947f}[data-result=death] #panel-title{color:#e4cab8}
.result-layout{grid-template-columns:1.06fr 1fr;gap:44px}.result-lead{font:18px/1.9 var(--serif)!important;color:#c2c9bc!important;max-width:390px}
.result-stats{margin:24px 0;border-block:1px solid #b5c0b322;padding:24px 0;gap:20px}.result-stats small{font:9px var(--sans);color:#89a1a6;letter-spacing:1px}.result-stats strong{font:30px var(--mono);color:#d4c69e;margin-top:11px}.result-stats em{font:10px var(--mono);color:#93a9a6;margin-left:4px}
.result-tip{font:12px var(--sans)!important;color:#aa9990!important;margin:20px 0!important}.result-copy>.primary{margin-top:24px!important}
.result-trace{border-left:1px solid #a9b6b625;padding-left:29px}.result-place{font:9px/1.8 var(--sans);letter-spacing:1px;color:#93aaad;display:block;margin-bottom:15px}.result-still{border:1px solid #a2b7b52a;overflow:hidden}.result-still img{height:160px;width:100%;object-fit:cover;filter:brightness(1.1) saturate(.55)}
.result-route{color:#b6a87e;background:#0e253028;border:1px solid #b2bdac0e;margin-top:10px}.result-route svg{height:190px;width:100%;display:block}
.result-secondary{display:flex;gap:23px;margin-top:22px}.result-secondary button{font:11px var(--sans);color:#8fa7ad;min-height:30px}.checkpoint-hint{font:10px var(--sans);color:#718e96;margin-top:12px;display:block}
.result-history summary{font-size:10px;color:#9dafac;cursor:pointer}.result-history p{font-size:10px!important}.result-history time{font:9px var(--mono)}.unlock-note{font:11px/1.8 var(--sans);color:#c0b88d;background:#bbad8210;border-left:1px solid #c4b38666;padding:13px 15px}
@media(max-width:1050px){
 #hud #mission-panel{width:218px;right:24px}#hud .instruments{left:25px;gap:17px}#hud .hud-top{left:25px;right:25px}#hud .hud-bottom{left:25px;right:25px}
 #panel.result-screen{padding:26px 30px}.result-layout{gap:25px}.result-trace{padding-left:22px}
}
@media(pointer:coarse){button{touch-action:manipulation}#hud .hud-actions button{width:40px;height:40px;min-width:40px}#mobile .touch-actions button{width:48px;min-width:48px;height:44px;min-height:44px;background:#0b2933b8;border:1px solid #a6bab546;box-shadow:inset 0 1px #d3d9b40c;font:10px var(--sans);color:#c6d3c1;border-radius:3px}#mobile .touch-actions button:active{background:#bcae8133;border-color:#d3c397}#mobile .touch-actions .touch-e{color:#e0d2a7;border-color:#d1bd8555}.pad{background:#17303b45;border-color:#adbd9750}#pad-stick{border-color:#c2c89b80;background:#b6c7b11b;box-shadow:0 3px 18px #0003}}
@media(max-width:700px) and (orientation:portrait){
 .pause-layout{display:flex;flex-direction:column-reverse;gap:20px}.pause-hero{min-height:185px;width:100%}.pause-hero img{height:190px}.pause-nav{width:100%}.controls-grid{grid-template-columns:1fr}.audio-grid{gap:8px 17px}.sound-auditions{grid-template-columns:repeat(3,1fr)}.settings-tabs button{padding:12px 14px;font-size:11px;gap:6px}.settings-bottom{gap:12px;font-size:9px}.settings-bottom .outline{font-size:10px;padding:10px}.setting label{font-size:11px}.setting p.fine{font-size:9px!important}.knowledge-grid{gap:10px}.knowledge-tile{padding:16px;min-height:135px}.knowledge-tile b{font-size:17px}
 #panel.result-screen{padding:23px}#panel.result-screen #panel-title{font-size:35px;letter-spacing:3px}.result-layout{display:flex;flex-direction:column}.result-trace{border:0;padding:0}.result-still img{height:130px}.result-route svg{height:150px}.result-stats{margin:19px 0;padding:20px 0}.result-copy .result-lead{font-size:16px!important}
 #hud .hud-top{top:18px;left:17px;right:17px}#hud .instruments{top:75px;left:17px;gap:16px}#hud .instruments #gauge-button{width:64px;height:64px;min-width:64px}#hud .instruments #gas{font-size:21px}#hud #mission-panel{top:158px;right:17px;left:auto;width:205px}#hud #mission-title{font-size:13px}.mission-current{padding-top:0!important}#hud #danger-note{top:161px;left:17px;max-width:145px;font-size:9px}#hud #situational{top:253px;left:17px;font-size:9px}#hud #condition{top:290px;left:17px}#hud #interaction{bottom:288px;max-width:94%}#hud #dialogue{bottom:205px;width:92vw;padding-inline:15px}#dialogue p{font-size:12px}#hud .hud-bottom{left:17px;right:17px;bottom:23px}#hud .party{max-width:140px}#mate-status{font-size:9px;padding:4px 6px}#hud .hud-actions{gap:5px}#hud .hud-actions button{width:33px;height:33px;min-width:33px;min-height:33px;padding:7px}.key-cap{display:none}#hud #journal-button{display:none}#knowledge-badge{bottom:157px;left:17px;font-size:9px;max-width:210px}#sound-caption{bottom:177px;left:17px;font-size:9px}
 #disclaimer{padding:25px}#disclaimer>section{padding-left:22px}#disclaimer .disclaimer-mark{margin-bottom:28px;font-size:22px}#disclaimer h2{font-size:29px}#disclaimer p:not(.eyebrow){font-size:11px}#intro h2{font-size:28px;letter-spacing:3px}#intro #intro-text{font-size:13px}#intro #skip-intro{margin-top:24px}
}
@media(max-height:520px) and (orientation:landscape){
#panel.result-screen{padding:16px 24px;width:min(970px,97vw);max-height:95dvh}
#panel.result-screen .panel-head{padding-bottom:12px!important;margin-bottom:15px!important}.chip{padding:9px 17px;font-size:10px}
 .pause-layout{grid-template-columns:46% 1fr;gap:22px}.pause-nav .primary{min-height:42px;padding:11px 18px;font-size:11px}.pause-nav>.outline{min-height:38px;margin-top:6px;padding:9px 13px;font-size:11px}.pause-hero{min-height:211px}.pause-hero img{height:211px}.pause-hero>div{bottom:15px;left:16px}.pause-hero h3{font-size:18px!important}.pause-hero p{font-size:9px!important}.pause-help{margin-top:14px;padding-top:10px}.pause-help summary{font-size:10px}
 #hud .hud-top{top:max(12px,env(safe-area-inset-top));left:max(19px,env(safe-area-inset-left));right:max(19px,env(safe-area-inset-right));gap:10px}#hud .chapter-meta b{font-size:12px}#hud .chapter-meta small{font-size:7px;letter-spacing:1px}#hud #pause{width:28px;height:29px}#hud #quick-fullscreen{width:28px;min-width:28px;height:28px;min-height:28px;padding:5px}
 #hud .instruments{left:21px;top:67px;gap:15px;min-height:59px}#hud .instruments>button#gauge-button{width:59px;height:59px;min-width:59px;gap:3px}#hud .instruments #gas{font-size:19px}#hud .instruments #gas small{font-size:8px}#hud .instruments #gauge-button>span{font-size:7px;letter-spacing:1px}#hud .instruments #depth{font-size:18px}#hud .instruments #depth small{font-size:9px}#hud .instruments .depth-instrument,#hud .instruments .clarity-instrument{min-width:37px;gap:6px}#hud .instruments .depth-instrument span,#hud .instruments .clarity-instrument span{font-size:7px;letter-spacing:1px}#hud .instruments #clarity{font:12px/18px var(--serif)}
 #hud #mission-panel{top:64px;right:21px;width:200px}#mission-panel header{margin-bottom:10px;gap:13px;font-size:8px}#mission-panel header b{font-size:9px}#mission-panel #map-button{min-height:29px;min-width:58px;font-size:9px;padding:7px 8px}#map-button .ui-icon{width:11px;height:11px;margin-right:5px}#mission-title{font:13px/1.4 var(--serif);letter-spacing:.5px;margin:7px 0 3px}#mission-phase{font-size:7px;letter-spacing:1px}#mission-hint{font-size:9px;line-height:1.6;margin-top:5px}#mission-panel .mission-current{padding-right:10px;border-right-color:#bfae8366}
 #hud #danger-note{top:137px;left:21px;max-width:215px;font-size:9px}#hud #situational{top:161px;left:21px;padding:5px 7px;font-size:8px;max-width:220px}#hud #condition{top:185px;left:21px;font-size:8px}#hud #quick-reserve{top:184px;left:21px;max-width:155px;font-size:9px}
 #hud .hud-bottom{bottom:max(16px,env(safe-area-inset-bottom));left:21px;right:21px;gap:10px}#hud .party{max-width:230px}#mate-status{font-size:9px;padding:4px 7px}#checkpoint-text{display:none}#hud .hud-actions{gap:5px}#hud .hud-actions button{width:30px;min-width:30px;min-height:30px;height:30px;padding:6px}#hud .hud-actions .ui-icon{width:14px;height:14px}#hud .hud-actions .key-cap{display:none}
 #hud #dialogue{bottom:57px;width:min(495px,60vw);left:50%;padding:7px 15px}#dialogue p{font-size:11px;line-height:1.8}#dialogue>span{font-size:7px;letter-spacing:1px}#hud #interaction{bottom:118px;max-width:61vw}#interaction>button{padding:6px 14px 6px 7px;min-height:40px;font-size:11px;gap:8px}#interaction>small{font-size:8px;margin-top:5px}.key-ring{width:29px;height:29px}.key-ring b{width:23px;height:23px;font-size:11px}#hud #knowledge-badge{bottom:188px;left:21px;font-size:8px;max-width:193px;padding:6px 9px}#sound-caption{bottom:48px;left:22px;font-size:8px;padding:5px 8px;max-width:190px}
 #hud #zone-reveal{top:36%}#zone-reveal h2{font-size:20px;letter-spacing:3px}#zone-reveal small{font-size:7px;letter-spacing:3px}#toast{top:52px;font-size:10px;padding:9px 15px;max-width:65vw}
 #hud #mobile{bottom:65px;left:23px;right:23px}.pad{width:77px;height:77px}#pad-stick{width:30px;height:30px}#mobile .touch-actions{grid-template-columns:repeat(2,45px);gap:6px}#mobile .touch-actions button{width:45px;min-width:45px;height:42px;min-height:42px;font-size:9px}
 #panel.result-screen #panel-title{font-size:30px;letter-spacing:3px;margin-top:6px}.result-layout{grid-template-columns:1.12fr 1fr;gap:24px}.result-trace{padding-left:20px}.result-copy .result-lead{font-size:14px!important;line-height:1.8!important;margin:0!important}.result-stats{padding:15px 0;margin:16px 0;gap:12px}.result-stats strong{font-size:22px;margin-top:8px}.result-stats small{font-size:8px}.result-tip{font-size:10px!important;margin:15px 0!important}.result-copy>.primary{margin-top:17px!important;min-height:42px;padding:11px 16px;font-size:11px}.result-still img{height:94px}.result-route svg{height:134px}.result-place{font-size:8px;margin-bottom:9px}.result-secondary{margin-top:12px;gap:19px}.result-secondary button{font-size:9px}.checkpoint-hint{font-size:8px}.unlock-note{font-size:10px;padding:10px}
 .gauge-display{height:198px;gap:29px}.gauge-dial{width:160px;height:160px;border-width:6px}.gauge-dial b{font-size:39px}.gauge-dial small{bottom:22px;font-size:8px}.gauge-aside b{font-size:18px}.gauge-aside p{font-size:10px!important}.map-canvas{max-height:none}.audio-grid{gap:8px 28px}.setting{padding:14px 0}.setting label{font-size:11px}.setting p.fine{font-size:9px!important}.sound-auditions{margin-top:15px}.settings-tabs{margin-bottom:12px}.settings-tabs button{padding:10px 18px;font-size:11px}.controls-grid{gap:0 25px}.control-row{font-size:11px;padding:10px 0}
 .buddy-state{padding:13px 0;gap:14px}.buddy-silhouette{width:49px;height:60px;font-size:23px}#panel-body .buddy-state h3{font-size:19px}.buddy-reading{font-size:24px}.buddy-state p{font-size:10px!important}.buddy-actions{gap:9px;margin:17px 0}.buddy-actions button{min-height:77px;padding:15px}.buddy-actions button b{font-size:14px}.buddy-actions button small{font-size:9px;margin-top:6px}.buddy-foot{margin:13px 0}.buddy-foot small{font-size:9px}.kit-actions button{padding:16px;font-size:13px}.kit-actions small{font-size:10px}.knowledge-grid{gap:11px}.knowledge-tile{padding:16px;min-height:120px}.knowledge-tile b{font-size:17px}.knowledge-tile small{font-size:7px}.collection-grid{gap:10px}.collection-card{padding:19px 16px}.collection-card h3{font-size:17px!important}.survey-page{padding:17px 23px}.survey-page p{font-size:18px!important}
 #disclaimer{padding:24px}#disclaimer>section{max-width:700px;padding-left:24px}#disclaimer .disclaimer-mark{font-size:18px;margin-bottom:10px}#disclaimer h2{font-size:22px;line-height:1.4;margin:9px 0 12px}#disclaimer p:not(.eyebrow){font-size:10px;line-height:1.65;margin:8px 0}#disclaimer p.fine{font-size:9px!important;margin:10px 0}#disclaimer .eyebrow{margin:10px 0;font-size:8px}#disclaimer .primary{margin-top:12px;min-height:39px;padding:10px 19px;width:100%;max-width:none;font-size:11px}#disclaimer small{font-size:8px;margin-top:10px}
 #intro{padding:22px}#intro h2{font-size:28px;margin:17px 0 10px;letter-spacing:4px}#intro>span{font-size:8px}#intro #intro-role{font-size:9px;margin:8px 0}#intro #intro-text{font-size:11px;line-height:1.8;margin:12px 0;max-width:620px}#intro #skip-intro{margin-top:15px;padding:11px 19px;font-size:10px;min-height:38px}#intro>small{font-size:8px;margin-top:12px}
}
@media(max-width:720px) and (orientation:landscape){
 #hud .chapter-meta b{font-size:11px}#hud #mission-panel{width:183px;right:18px}#mission-title{font-size:12px}#mission-hint{font-size:8px}#hud .instruments{gap:13px}#hud .hud-actions button{width:28px;min-width:28px;height:28px;min-height:28px}#hud .party{max-width:170px}#mate-status{font-size:8px}#hud #dialogue{width:58vw}#hud #interaction{max-width:56vw}#interaction>button{font-size:10px}
}
/* Low motion is a genuine alternative, including the new presentation layer. */
.reduced *, .reduced *:before,.reduced *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.reduced .primary:hover{transform:none!important}
@media(prefers-reduced-motion:reduce){.ui-panel-ghost{display:none!important}}
@media(pointer:coarse) and (orientation:landscape){
 #hud #pause,#hud #quick-fullscreen{width:39px;height:39px;min-width:39px;min-height:39px}
 #hud .hud-actions button{width:40px;min-width:40px;height:40px;min-height:40px}
 #hud .hud-actions button .ui-icon{width:17px;height:17px}
 #hud .hud-bottom{bottom:max(11px,env(safe-area-inset-bottom))}
 #mobile .touch-actions{grid-template-columns:repeat(2,46px)}
 #mobile .touch-actions button{height:44px;min-height:44px;width:46px;min-width:46px}
 #hud #mission-panel{top:65px}
 #hud #map-button{min-height:36px}
 #hud #dialogue{bottom:60px}
}

.buddy-silhouette .ui-icon{width:43px;height:43px;stroke-width:.8;color:#d1c69f}
@media(max-height:520px){.buddy-silhouette .ui-icon{width:32px;height:32px}}
/* Declutter pass: each piece of information has one home.
 * The chapter name belongs to the shore and the pause menu; underwater the gauges take its place. */
#hud .chapter-meta{transition:opacity .45s ease}
body.hud-diving #hud .chapter-meta,body.hud-arrival #hud .chapter-meta{opacity:0;pointer-events:none}
/* Exploration percent lives in the map panel, not beside every objective. */
#mission-panel header>span{display:none}
#mission-panel header{justify-content:flex-end}
/* Key hints sit inside their buttons instead of floating below the dock. */
#hud .hud-actions .key-cap{top:4px;right:5px;left:auto;bottom:auto;font-size:8px;line-height:1;text-align:right;opacity:.6}
/* Autosave is a whisper at the top edge, never on top of the dock. */
#hud:not([hidden])~#save-indicator{top:max(12px,env(safe-area-inset-top));bottom:auto;left:50%;right:auto;transform:translateX(-50%);color:#8ea39a}
#checkpoint-text{display:none}
#sound-caption{bottom:84px}
@media(min-width:900px) and (min-height:600px){
 body.hud-diving #hud .instruments{top:max(22px,env(safe-area-inset-top));left:96px}
 body.hud-diving #hud #danger-note{top:124px}
 body.hud-diving #hud #situational{top:166px}
 body.hud-diving #hud #condition{top:204px}
 /* The map button joins the top-right controls, so the objective card is only the objective. */
 #hud #mission-panel{top:92px}
 #hud #mission-panel header{position:absolute;top:-62px;right:45px;margin:0}
 #hud #mission-panel #mission-title{font-size:19px;margin:6px 0 2px}
}
@media(min-width:900px) and (pointer:fine){
 #knowledge-badge{left:auto;right:max(38px,env(safe-area-inset-right));bottom:112px}
}
/* The spoken line never runs under the dock: narrow it, and above ~1250px lift it clear instead. */
@media(min-width:900px){#hud #dialogue{width:min(700px,max(420px,calc(100vw - 740px)))}}
@media(min-width:900px) and (max-width:1250px){#hud #dialogue{bottom:108px}#hud #interaction{bottom:206px}}
/* Resume is the same width as the choices below it, just brighter. */
.pause-nav>.primary{display:flex;width:100%;justify-content:space-between;align-items:center}
.inventory-gas strong small{display:inline;font-size:14px;margin:0 0 0 4px}
#panel .map-summary{border-top:0;margin-top:0;padding-top:2px}
#hud #mission-panel.empty{background:none;box-shadow:none;border-left-color:transparent}
