/* Layout and palette only: original hotspot geometry and input rules stay intact. */
:root{color-scheme:dark;--accent:#b8e0da;--line:rgba(161,201,204,.18)}
body{background:#080f14}
.girl{display:none!important} /* Never show the old human silhouette on a missing-frame fallback. */
.internal-banner{padding:9px 20px;background:#18262b;color:#d0e1e2;font:12px/1.5 system-ui;border-bottom:1px solid #375357;text-align:center}
.brand strong{letter-spacing:.04em}.brand small{color:#8da9ab}
.primary-button{background:#b3d8cc;color:#102628}.topbar{border-color:#263c42}
.film-panel{position:fixed;inset:0;z-index:9999;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;background:#060b0f;padding:18px 24px}
.film-panel[hidden]{display:none!important}.film-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font:13px/1.5 system-ui;color:#a9c0c1}
.film-top button,.film-panel>button{background:#1b3036;border:1px solid #40595d;color:#e8f5ef;padding:10px 16px;border-radius:6px;cursor:pointer}
.film-top>div{display:flex;gap:8px}.film-panel video{width:100%;height:100%;min-height:0;object-fit:contain;background:#000}
.film-panel p{margin:0;text-align:center;color:#9cb6b9;font:13px/1.5 system-ui}.beacon-payoff{color:#bce5bc!important}
.film-stage{position:relative;min-height:0;background-position:center;background-size:contain;background-repeat:no-repeat}
.film-stage video{position:absolute;inset:0;background:transparent}.film-stage video[hidden]{display:none!important}
.film-stage #filmVideo{z-index:2}
.ending-room-buffer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:25;pointer-events:none}.ending-room-buffer[hidden]{display:none!important}
.candidate-action-panel{position:absolute;inset:0;z-index:60;background:#080d11}.candidate-action-panel[hidden]{display:none!important}
.candidate-action-panel video{width:100%;height:100%;object-fit:cover;background:#000}
.candidate-action-label{position:absolute;left:10px;right:10px;top:10px;display:flex;align-items:center;gap:8px;color:#d9ece8;font:11px/1.5 system-ui}
.candidate-action-label span{margin-right:auto;padding:5px 8px;border-radius:4px;background:#13252bd9}.candidate-action-label button{padding:5px 8px;color:#d9ece8;background:#13252be6;border:1px solid #526b70;border-radius:4px}
@media(max-width:640px){.internal-banner{font-size:10px;padding:5px 10px}.film-panel{padding:12px}.film-top{font-size:11px}.film-top button{padding:8px}}

/* SCAVENGER LIVE · borderless cinema / in-frame HUD. No gameplay selectors change. */
:root{--bg:#0d1111;--panel:#151b1a;--text:#e6e5dc;--muted:#a2aaa4;--accent:#c6ad83;--cyan:#b3c3b7;--cyan-dim:#b3c3b712;--amber:#c6ad83;--red:#bd7564;--line:#d0d1bc24;--hud-edge:28px;--hud-font:ui-sans-serif,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
html,body{width:100%;height:100%;margin:0;background:#0a0e0e;font-family:var(--hud-font);color:var(--text)}
body::before{content:"";position:fixed;inset:-45px;background-image:var(--scene-backdrop);background-position:center;background-size:cover;filter:blur(35px) brightness(.3) saturate(.65);pointer-events:none}
.app-shell{position:fixed;inset:0;width:100%;height:var(--app-height,100dvh);padding:0;margin:0;display:block}
.main-grid{position:absolute;inset:0;display:block;padding:0;overflow:visible}
.broadcast-column{display:contents;container-type:normal}
.broadcast-column>.section-heading,.internal-banner{display:none!important}
.video-slot{position:fixed;inset:0;width:100%;height:var(--app-height,100dvh);max-height:none;min-height:0;container-type:size;background:transparent;overflow:hidden}
.video-slot #feed{width:min(100cqw,calc(100cqh * 16 / 9));height:min(100cqh,calc(100cqw * 9 / 16));min-height:0;border:0;box-shadow:none;background:#111716;aspect-ratio:16/9}
#feed .scene-photo,#feed video{object-fit:contain}
.girl{display:none!important}.scanlines{opacity:.13}.vignette{opacity:.25}
#gameHUD{position:fixed;inset:0;height:var(--app-height,100dvh);z-index:100;pointer-events:none;isolation:isolate}
#gameHUD::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#080d10bd,transparent 23%,transparent 64%,#080d10d9);z-index:-1;pointer-events:none}
#gameHUD button,#gameHUD textarea,#gameHUD .hud-drawer,#gameHUD .hud-settings,#gameHUD .player-help{pointer-events:auto;touch-action:manipulation}
#gameHUD button:focus-visible,.film-panel button:focus-visible{outline:2px solid #dbcba7;outline-offset:4px}
#gameHUD .topbar{position:absolute;inset:0 0 auto;height:88px;min-height:0;padding:20px var(--hud-edge);border:0;gap:20px;background:none;pointer-events:none}
#gameHUD .brand{gap:13px;flex:1;min-width:0;align-items:center}
#gameHUD .brand strong{font-size:18px;font-weight:620;letter-spacing:.05em;line-height:1.6;white-space:nowrap;text-shadow:0 2px 12px #0008}
#gameHUD .brand small{margin:0 0 3px;font:8px/1.2 ui-monospace,monospace;letter-spacing:.23em;color:#c2c4b2a6}
.hud-title-divider{padding:0 4px;color:#b8ab88}
.hud-brand-mark{position:relative;display:grid;place-items:center;width:38px;height:42px;border:1px solid #b9ab8059;clip-path:polygon(0 0,76% 0,100% 22%,100% 100%,0 100%);color:#d2bf95;background:linear-gradient(140deg,#b7a57b20,#11191680);flex:none}
.hud-brand-mark b{font:400 27px/.9 Georgia,serif;transform:skew(-9deg);padding-bottom:2px}
.hud-brand-mark i{position:absolute;left:5px;bottom:5px;width:8px;border-bottom:1px solid #c9b68f}
#gameHUD .live-state{font-size:10px;letter-spacing:.07em;flex:none;color:#bbc7bf}
#gameHUD .live-state.on b{color:#b9cbbb}.live-state.on i{background:#bccaa6;box-shadow:0 0 9px #bcca8c38}
.hud-tools{display:flex;align-items:center;gap:6px;flex:none}
.hud-tool,.hud-close{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid #d0d1bc28;color:#e0e3d8;background:#0f171a5c;border-radius:5px;font:11px/1 var(--hud-font);cursor:pointer;backdrop-filter:blur(12px);transition:background .18s,border-color .18s}
.hud-tool:hover,.hud-tool[aria-expanded=true]{background:#baa67b26;border-color:#c7b68b70}
.hud-tool svg,.hud-close svg{width:17px;height:17px;flex:none}.hud-tool.icon-only{width:40px;padding:9px}
.hud-close{width:36px;min-height:36px;padding:8px;border:0;background:none}
.hud-mission{position:absolute;left:var(--hud-edge);top:116px;padding-left:13px;border-left:1px solid #d1b9828c;text-shadow:0 1px 8px #0009}
.hud-overline{display:block;font:8px/1.5 ui-monospace,monospace;letter-spacing:.2em;color:#d1c9afa3}
.hud-mission p{margin:7px 0 0;color:#d8dbd1;font-size:12px;letter-spacing:.04em}
#gameHUD .hud-feed-meta{position:absolute;inset:auto auto 130px var(--hud-edge);z-index:auto;display:flex;gap:12px;font:9px/1.5 ui-monospace,monospace;letter-spacing:.06em;color:#d6dcc9a6;text-shadow:0 1px 7px #000}
.hud-feed-meta>span:last-child{display:none}.hud-feed-meta .rec-dot{width:5px;height:5px;background:#bd7564;box-shadow:none}
.hud-footer{position:absolute;bottom:max(9px,env(safe-area-inset-bottom));left:var(--hud-edge);right:var(--hud-edge);display:flex;justify-content:space-between;color:#a9b2a570;font:7px/1 ui-monospace,monospace;letter-spacing:.16em}
.hud-dock{position:absolute;bottom:30px;left:50%;width:min(680px,calc(100% - 180px));transform:translateX(-50%);display:flex;flex-direction:column;gap:19px}
#gameHUD .feed-bottomline{position:relative;inset:auto;display:block;z-index:auto;padding:0;width:100%;text-align:center}
#gameHUD .feed-bottomline strong{font-size:clamp(14px,1.35vw,21px);line-height:1.5;font-weight:480;color:#f0eee5;border-radius:4px;padding:5px 12px;background:#0b11158c;border:1px solid #d5dfcf0d;backdrop-filter:blur(8px);text-shadow:0 1px 6px #000;max-width:100%}
#gameHUD .feed-bottomline strong[data-kind=dialogue]{color:#d5dfcd;background:#1b2421ac}
#gameHUD #chatForm{display:flex;align-items:center;gap:15px;flex:none;margin:0;min-height:70px;padding:11px 12px 11px 17px;background:linear-gradient(110deg,#17201ff0,#111917ed);border:1px solid #bec5b843;border-radius:7px;box-shadow:0 12px 50px #0006,inset 0 1px #ffffff08;backdrop-filter:blur(18px);pointer-events:auto}
.hud-input-label{display:flex;align-items:center;gap:10px;flex:none;color:#d5d8cd;font-size:11px;white-space:nowrap}
.hud-k7-tag{display:grid;place-items:center;flex:none;width:31px;height:34px;border:1px solid #b7aa815c;font:11px ui-monospace,monospace;color:#d6c49e;background:#b3a3750a;border-radius:3px}
.hud-input-label small{display:block;margin-top:5px;color:#a5afa175;font-size:8px}
#gameHUD #chatInput{flex:1;min-width:0;width:0;height:44px;min-height:44px;max-height:60px;padding:11px 0;border:0;background:none;outline:none;box-shadow:none;resize:none;font:14px/22px var(--hud-font);color:#ecece0;caret-color:#d2b77f}
#gameHUD #chatInput::placeholder{color:#a8afa18c;font-size:12px}#gameHUD #chatInput:disabled{opacity:.5}
#gameHUD #chatForm>div{display:flex;flex:none;margin:0;gap:0}#gameHUD #chatForm>div>small{display:none}
#gameHUD #sendButton{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 15px;border:1px solid #e3d5af52;background:#beac83;color:#17201d;border-radius:4px;cursor:pointer;font-size:12px;font-weight:620;box-shadow:inset 0 1px #f4e5bd38}
#sendButton svg{width:16px;height:16px}#gameHUD #sendButton:hover{background:#d0bd91}#gameHUD #sendButton:disabled{opacity:.35;cursor:not-allowed}
#gameHUD .hud-inventory{position:absolute;inset:auto var(--hud-edge) 132px auto;z-index:auto;display:block;width:48px;height:auto;min-height:0;padding:0;border:0;background:none;box-shadow:none;overflow:visible;pointer-events:auto}
#gameHUD .hud-inventory .inventory-heading{position:static;width:auto;height:auto;padding:0;margin:0 0 8px;clip-path:none;overflow:visible;display:flex;flex-direction:column;align-items:center;gap:2px;white-space:normal}
#gameHUD .inventory-heading span{font-size:9px;letter-spacing:.15em;color:#c7ccbaaa}#gameHUD .inventory-heading small{font:9px ui-monospace,monospace;color:#c7ccba80}
#gameHUD .inventory-slots{display:flex;flex-direction:column;gap:7px;min-height:0;max-height:240px;overflow-y:auto;scrollbar-width:none}
#gameHUD .inventory-item,#gameHUD .inventory-empty{width:48px;height:48px;min-height:48px;flex:0 0 48px;border:1px solid #b5bda34a;border-radius:5px;background:#14201bd4;box-shadow:inset 0 1px #ffffff08;backdrop-filter:blur(12px);padding:6px;display:grid;place-items:center}
#gameHUD .inventory-item:hover{border-color:#d3b982;background:#b19a5f2e}#gameHUD .inventory-icon{width:34px;height:34px}
#gameHUD .inventory-empty{font-size:0}#gameHUD .inventory-empty::before{font-size:19px;color:#d0d3c556}
#gameHUD .inventory-copy{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
#feed>.item-acquired{position:absolute;top:16%;right:20px;bottom:auto;left:auto;z-index:80;width:min(280px,55%);background:#13201ce8;border:1px solid #b8bc9d59;border-radius:5px;padding:12px;transform:none;box-shadow:0 8px 25px #0004}
#feed>.item-acquired .item-acquired-icon{width:32px;height:32px}
.hud-drawer{position:absolute;right:var(--hud-edge);top:102px;bottom:126px;width:min(350px,calc(100% - 56px));display:flex;flex-direction:column;border:1px solid #c2c4ae3b;border-radius:7px;background:linear-gradient(145deg,#1c2423f5,#0d1716f5);box-shadow:0 16px 60px #0005;backdrop-filter:blur(22px);overflow:hidden;z-index:10}
.hud-drawer>header{display:flex;align-items:center;justify-content:space-between;flex:none;padding:18px 17px 14px;border-bottom:1px solid #c2c4ae23}
.hud-drawer>header>span{color:#c6b68e;font:8px ui-monospace,monospace;letter-spacing:.17em}.hud-drawer>header small{display:block;font:15px var(--hud-font);color:#e0e2d7;margin-top:7px;letter-spacing:.06em}
#gameHUD .chat-column{display:flex;align-self:stretch;width:100%;min-height:0;flex:1;padding:0}
#gameHUD .chat-card{border:0;background:none;box-shadow:none;height:100%;display:flex;flex-direction:column;border-radius:0}
#gameHUD .chat-card>.card-title{padding:12px 18px;min-height:0;border:0;font-size:10px;color:#c2c7b697}
#gameHUD .chat-card>.card-title>div{display:none}
#gameHUD .chat-log{height:0;min-height:0;flex:1;overflow-y:auto;padding:0 18px 18px;scrollbar-width:thin;scrollbar-color:#aaae8a40 transparent}
#gameHUD .chat-message{font-size:12px;line-height:1.7;border-color:#a9b2941a;padding:11px 0}
#gameHUD .chat-author{color:#c6b68e;font-size:10px}#gameHUD .chat-copy{color:#cdd3c3;font-size:12px;line-height:1.8}
#gameHUD .chat-empty{font-size:12px;color:#a9b299a8;line-height:1.9;padding:14px 0}
#gameHUD .broadcast-details{border:0;background:none;min-height:0;flex:1;overflow-y:auto;outline:0;scrollbar-width:thin}
#gameHUD .memory-card{border:0;background:none;box-shadow:none;margin:0}
#gameHUD .memory-card>.card-title{padding:14px 18px;color:#afb99e8f;border:0}#gameHUD .memory-card>.card-title>div{display:none}
#gameHUD .memory-list{min-height:0;max-height:none;padding:0 18px 18px}
#gameHUD .memory-step{grid-template-columns:28px minmax(0,1fr);gap:13px;padding:15px 0;border-color:#b0b49a22}
#gameHUD .memory-step::before{display:none}#gameHUD .memory-step-index{border:0;background:none;color:#bcac84;font-size:9px;padding:4px 0;text-align:left}
#gameHUD .memory-step-copy b{font-size:12px;font-weight:450;line-height:1.7;color:#d2d7c8}#gameHUD .memory-step-copy small{font-size:10px;color:#9eaa937d;line-height:1.7}
#gameHUD .memory-empty{background:none;border:0;color:#a2ac958c;font-size:12px;line-height:1.8;padding:8px 0}
#gameHUD .hud-settings{position:absolute;top:88px;right:var(--hud-edge);z-index:12;width:220px;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:17px;border:1px solid #b4b6a645;border-radius:6px;background:#15211ff5;box-shadow:0 15px 40px #0006;backdrop-filter:blur(22px)}
#gameHUD .hud-settings .hud-overline{margin-bottom:6px;font-size:7px}
#gameHUD .hud-settings button{display:block;width:100%;min-height:42px;padding:10px 12px;font-size:12px;text-align:left;color:#d5d8c8;background:#c4c8ad09;border:1px solid #c4c8ad24;border-radius:3px;cursor:pointer}
#gameHUD .hud-settings button:hover{border-color:#c5b58a80}
.hud-support{position:absolute;left:var(--hud-edge);bottom:190px;width:min(310px,calc(100% - 56px));max-height:40%;display:flex;flex-direction:column;gap:8px;overflow-y:auto;z-index:20}
#gameHUD .player-help{border:1px solid #c0bc9459;border-left:2px solid #beac83;background:#1b2421f0;padding:14px 16px;font-size:12px;line-height:1.8;color:#d4d9c9;border-radius:4px;backdrop-filter:blur(15px)}
#gameHUD .player-help button{border:1px solid #b6bb9f42;background:#b6bb9f0d;border-radius:3px;font-size:11px;color:#d6d6c1;min-height:38px;margin-bottom:0}
#gameHUD #restartConfirm{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px;background:#091010e8;backdrop-filter:blur(15px);border:0}
#gameHUD #restartConfirm p{max-width:360px;font-size:17px;line-height:1.8;text-align:center}
#gameHUD #restartConfirm button{width:240px;font-size:13px;min-height:46px}#gameHUD #confirmRestartButton{background:#beac83;color:#17201d}
#gameHUD #inputFeedback{white-space:normal;background:#14241fe8;border:1px solid #a5bb9c38;border-radius:4px;padding:9px 12px;color:#c3d7b5;font-size:11px}
#gameHUD .resume-task-button{margin:0;border-radius:4px;background:#27281b;color:#d9c79d;border-color:#bba67a5e;font-size:12px}
#gameHUD #startCover{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:flex-start;padding:10vh 8vw;background:linear-gradient(90deg,#070d10eb 0%,#0c1415d1 27%,#0b11174d 62%,#0b111733),linear-gradient(0deg,#0a1117bd,transparent 45%),var(--opening-poster) center/cover no-repeat;pointer-events:auto}
#gameHUD .start-panel{max-width:600px;width:auto;padding:0;margin:0;background:none;border:0;box-shadow:none;transform:translateY(3vh);text-align:left}
#gameHUD .start-panel>.eyebrow{display:flex;align-items:center;gap:12px;color:#cfbd92;font:9px ui-monospace,monospace;letter-spacing:.24em;margin:0 0 24px}
#gameHUD .start-panel>.eyebrow::before{content:"";height:1px;width:32px;background:#bda87c}
#gameHUD .start-panel h2{display:flex;flex-direction:column;gap:10px;font-size:clamp(38px,5.5vw,80px);line-height:1.15;font-weight:600;letter-spacing:.04em;margin:0 0 26px;color:#eeeade;text-shadow:0 2px 30px #0003}
#gameHUD .start-panel h2 em{font-style:normal;font-weight:350;letter-spacing:.18em;color:#c4b48e;font-size:.77em}
#gameHUD .start-panel p{font-size:13px;line-height:2;color:#bac4b7b3;white-space:pre-line;margin:0 0 34px;letter-spacing:.035em}
.primary-button,#gameHUD .primary-button{min-height:50px;display:inline-flex;justify-content:space-between;align-items:center;gap:38px;padding:14px 22px;border:1px solid #ddc9986b;border-radius:3px;background:#bea87e;color:#18201d;font-size:12px;font-weight:650;letter-spacing:.06em;box-shadow:0 4px 25px #070b0c3b;cursor:pointer}
.primary-button:hover{background:#cfba90}.hud-start-note{display:block;margin:17px 0 0;font-size:9px;color:#9ca99785;letter-spacing:.12em}
#gameHUD[data-phase=briefing]>.topbar{z-index:40}#gameHUD[data-phase=briefing]>.topbar .live-state{display:none}
#gameHUD[data-phase=briefing] .hud-mission,#gameHUD[data-phase=briefing] .hud-dock,#gameHUD[data-phase=briefing] .hud-feed-meta,#gameHUD[data-phase=briefing] .hud-inventory,#gameHUD[data-phase=briefing] .hud-footer{display:none}
#gameHUD[data-phase=briefing] .hud-tool:not(.icon-only){display:none}
#gameHUD[data-film=true]{visibility:hidden}#gameHUD[data-phase=ended] .hud-dock,#gameHUD[data-phase=ended] .hud-mission,#gameHUD[data-phase=ended] .hud-inventory{display:none}
.candidate-action-panel{background:none}.candidate-action-panel video{background:transparent}
.candidate-action-label{left:20px;right:20px;top:auto;bottom:20px;font:8px ui-monospace,monospace;letter-spacing:.07em;color:#d0d9c7}
.candidate-action-label span{background:#0d1c19b8;border:1px solid #b8c3a32e;border-radius:3px;padding:6px 9px;backdrop-filter:blur(8px)}
.candidate-action-label button{min-height:32px;border:1px solid #b9be9f3d;background:#12221dca;color:#d1d7c4;font-size:9px;border-radius:3px;cursor:pointer}
.candidate-action-panel[data-quality-hold=true] .candidate-action-label span{color:#d9bc83;border-color:#c1a66a4d}
.film-panel{display:block;padding:0;background:#080e10}.film-stage{position:absolute;inset:0;min-height:0;background-size:contain;background-position:center}
.film-panel .film-top{position:absolute;top:28px;left:32px;right:32px;z-index:4;align-items:flex-start;justify-content:space-between;padding:0;background:none}
.film-panel .film-top::before{content:"清道夫直播：撤离协议";position:absolute;top:0;left:0;color:#e2e3d5;font-size:13px;letter-spacing:.09em;text-shadow:0 1px 8px #000}
.film-panel #filmLabel{margin-top:29px;font:9px ui-monospace,monospace;color:#c6ba96;letter-spacing:.1em}
.film-panel .film-top button{padding:8px 12px;background:#0e181aa3;border:1px solid #c4c9b13d;backdrop-filter:blur(12px);border-radius:4px;font-size:10px;color:#d9dece;min-height:36px}
.film-panel #filmCaption{position:absolute;left:12%;right:12%;bottom:34px;z-index:4;color:#e0e5d6;text-shadow:0 1px 6px #000,0 0 16px #000;font-size:13px;letter-spacing:.08em}
.film-panel #filmRetry{position:absolute;bottom:80px;left:50%;transform:translateX(-50%);z-index:4;color:#d6d9c8;background:#182521d9;border-color:#c1bd9d55;font-size:12px}
.ending-screen{z-index:150;background:linear-gradient(100deg,#0d1719d9,#091214a8);backdrop-filter:blur(9px);padding:32px}
.ending-panel{position:relative;width:min(600px,100%);padding:42px;background:linear-gradient(150deg,#1c2926eb,#101c1bec);border:1px solid #b8c09d4a;box-shadow:0 20px 90px #0006;border-radius:7px}
body[data-escape=true] .ending-panel::before{content:"EVACUATION COMPLETE";display:block;margin-bottom:26px;color:#c9b789;font:9px ui-monospace,monospace;letter-spacing:.22em}
.ending-panel h2{font-size:clamp(25px,3vw,36px);font-weight:500;letter-spacing:.02em;line-height:1.4;margin:14px 0 20px;color:#e4e7d9}
.ending-panel p{font-size:13px;line-height:1.9;color:#bac7b7}.ending-trace{border-left:1px solid #bbaa79;background:#aab59c08;color:#b2bda7;font-size:11px;line-height:1.9;padding:13px 16px;margin:23px 0}
.beacon-payoff{color:#cbd5ad!important}.toast{z-index:400;bottom:118px;border-color:#b7bd9c47;background:#14211eec;color:#e0dfc9;max-width:min(440px,80vw);font-size:12px;line-height:1.6;border-radius:4px}
.generation-overlay{padding-top:24px}.generation-card{max-width:440px;border:1px solid #bfc5a52e;border-radius:4px;background:#15211fd4;color:#d5dec9;padding:12px 15px;backdrop-filter:blur(8px)}
.generation-card b{font-size:12px}.generation-card em{font-size:10px}.generation-card p{font-size:11px;color:#a7b69c}.generation-card .progress{height:2px}.generation-card .progress i{background:#c1b484}
@media(max-width:1000px){:root{--hud-edge:22px}#gameHUD .topbar{height:78px;padding-top:17px;padding-bottom:17px;gap:12px}#gameHUD .brand strong{font-size:16px}.hud-mission{top:100px}.hud-mission p{font-size:11px}.hud-dock{width:calc(100% - 160px)}#gameHUD .live-state{display:none}.hud-feed-meta{max-width:160px;flex-wrap:wrap}.hud-inventory{bottom:140px}}
@media(max-width:600px){:root{--hud-edge:16px}#gameHUD .topbar{height:72px;padding:15px 16px;gap:10px}#gameHUD .brand{gap:8px}#gameHUD .brand strong{font-size:12px;letter-spacing:0}#gameHUD .brand small{display:block;font-size:5px;letter-spacing:.14em;margin-bottom:5px}.hud-brand-mark{width:27px;height:32px}.hud-brand-mark b{font-size:22px}.hud-title-divider{padding:0 1px}.hud-tool{min-height:34px;width:34px;padding:7px}.hud-tool span{display:none}.hud-tool svg{width:16px;height:16px}.hud-tool.icon-only{width:34px;padding:7px}.hud-tools{gap:4px}.hud-mission{top:91px;padding-left:9px}.hud-overline{font-size:6px}.hud-mission p{font-size:10px;margin-top:6px}.hud-dock{width:calc(100% - 32px);bottom:max(27px,calc(env(safe-area-inset-bottom) + 13px));gap:17px}#gameHUD #chatForm{min-height:64px;padding:9px 9px 9px 12px;gap:11px}.hud-input-label>span:last-child{display:none}.hud-k7-tag{width:28px;height:32px;font-size:10px}#gameHUD #chatInput{font-size:16px}#gameHUD #chatInput::placeholder{font-size:11px}#gameHUD #sendButton{min-height:42px;padding:9px 11px;font-size:11px}#sendButton svg{display:none}#gameHUD .feed-bottomline strong{font-size:13px;max-width:100%;padding:5px 8px}.hud-footer{font-size:5px;letter-spacing:.11em}#gameHUD .hud-feed-meta{bottom:150px;left:16px;font-size:7px;gap:6px}#gameHUD .hud-inventory{right:16px;bottom:152px;width:auto;max-width:200px}#gameHUD .hud-inventory .inventory-heading{flex-direction:row;justify-content:flex-end;margin-bottom:6px;gap:7px}#gameHUD .hud-inventory .inventory-slots{flex-direction:row;gap:5px;overflow:visible}#gameHUD .inventory-item,#gameHUD .inventory-empty{width:38px;height:38px;min-height:38px;flex-basis:38px;padding:5px}#gameHUD .inventory-icon{width:27px;height:27px}.hud-drawer{top:82px;bottom:114px;right:16px;width:calc(100% - 32px)}.hud-drawer>header{padding:12px 14px 10px}.hud-drawer>header small{font-size:14px}.hud-settings{top:75px!important;right:16px!important}.hud-support{left:16px;bottom:215px;width:calc(100% - 32px);max-height:34%}#gameHUD #startCover{padding:90px 26px 70px;align-items:center;background-position:62% center;background-image:linear-gradient(90deg,#081013df,#0b171aba 55%,#0e1c1994),linear-gradient(0deg,#091214,transparent 70%),var(--opening-poster)}#gameHUD .start-panel{transform:translateY(2vh)}#gameHUD .start-panel h2{font-size:39px;gap:13px;margin-bottom:25px}#gameHUD .start-panel p{font-size:12px;margin-bottom:30px}#gameHUD .start-panel>.eyebrow{font-size:7px;letter-spacing:.18em;margin-bottom:26px}.hud-start-note{font-size:8px}.film-panel .film-top{top:18px;left:16px;right:16px;gap:10px}.film-panel .film-top::before{font-size:10px}.film-panel #filmLabel{font-size:7px;margin-top:24px}.film-panel .film-top button{font-size:9px;padding:7px 9px;min-height:34px}.film-panel #filmCaption{font-size:11px;left:8%;right:8%;bottom:32px}.ending-screen{padding:18px}.ending-panel{padding:27px 23px}.ending-panel h2{font-size:25px}.ending-panel p{font-size:12px}.ending-trace{font-size:10px;padding:10px 12px}.ending-panel .primary-button{width:100%;gap:12px;font-size:11px;padding:12px 15px}.candidate-action-label{left:9px;right:9px;bottom:9px;font-size:6px}.candidate-action-label button{font-size:8px;min-height:28px;padding:3px 7px}.toast{bottom:108px;font-size:11px}}
@media(max-height:500px) and (orientation:landscape){#gameHUD .topbar{height:57px;padding:10px 20px}#gameHUD .brand strong{font-size:13px}.hud-brand-mark{width:27px;height:33px}.hud-brand-mark b{font-size:22px}.hud-mission{top:76px;left:20px}.hud-mission p{font-size:10px}.hud-dock{bottom:17px;width:min(570px,calc(100% - 140px));gap:6px}#gameHUD #chatForm{min-height:52px;padding:4px 8px 4px 12px}#gameHUD .feed-bottomline strong{font-size:12px;padding:3px 9px}.hud-footer{bottom:5px}.hud-feed-meta{display:none!important}#gameHUD .hud-inventory{bottom:105px;right:20px;width:40px}#gameHUD .inventory-item,#gameHUD .inventory-empty{width:40px;height:40px;min-height:40px;flex-basis:40px}.hud-drawer{top:65px;bottom:81px}.hud-support{bottom:112px;max-height:38%}#gameHUD .start-panel{transform:none}#gameHUD .start-panel h2{font-size:35px;gap:8px;margin-bottom:13px}#gameHUD .start-panel>.eyebrow{margin-bottom:12px}#gameHUD .start-panel p{font-size:11px;margin-bottom:16px}.hud-start-note{margin-top:9px}.film-panel .film-top{top:14px}.film-panel #filmCaption{bottom:17px}}
@media(prefers-reduced-motion:reduce){#gameHUD *,#gameHUD *::before{scroll-behavior:auto;animation:none!important;transition:none!important}}
@media(max-width:600px){.hud-tool,.hud-tool.icon-only{width:44px;min-height:44px;padding:11px}.hud-close{width:44px;min-height:44px}.hud-tools{gap:1px}#gameHUD .hud-settings button{min-height:44px}#gameHUD .hud-settings #hudFullscreen{display:flex;justify-content:flex-start;gap:12px}#gameHUD .hud-settings #hudFullscreen::after{content:"全屏显示"}#gameHUD .inventory-item,#gameHUD .inventory-empty{width:44px;height:44px;min-height:44px;flex-basis:44px}}
#gameHUD #startCover{overflow-y:auto}#gameHUD .start-panel{flex:none;margin:auto 0}
.ending-screen{overflow-y:auto}.ending-panel{max-height:calc(var(--app-height,100dvh) - 44px);overflow-y:auto}
@media(max-width:600px){#gameHUD #sendButton,#gameHUD .player-help button{min-height:44px}.film-panel .film-top button,.candidate-action-label button{min-height:44px}}

/* FOUR-ROOM CONTINUATION · real stateful puzzles; reference-only visual layer. */
#continuationStage{position:absolute;inset:0;z-index:80;background:#111716;overflow:hidden;pointer-events:none}
#continuationStage[hidden],#continuationPanel[hidden],#continuationPicker[hidden],#continuationFailure[hidden],#continuationObjects[hidden]{display:none!important}
#continuationPhoto{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.continuation-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0a151369,transparent 40%,#0a101930),linear-gradient(0deg,#0a16166e,transparent 50%)}
.continuation-scan{position:absolute;right:8%;top:20%;width:110px;height:110px;border:1px solid #bc857252;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 24px,#bd85721f 25px 26px);opacity:.7}
.continuation-scan::after{content:"";position:absolute;inset:47%;border-radius:50%;background:#d3b58f}
.continuation-scan i{position:absolute;width:3px;height:3px;border-radius:50%;background:#c58c76;box-shadow:0 0 4px #c58c7677}
.continuation-frame-note{position:absolute;left:16px;bottom:12px;color:#d7d9c689;background:#101b17b3;font-size:9px;padding:5px 8px;letter-spacing:.03em}
.continuation-active #endingScreen{display:none!important}
/* Hide the B1 UV code from assistive reading after the reunion as well. The
   :not([hidden]) guard restores it normally when a new B1 run starts. */
body:has(#continuationStage[data-scene="beacon_reunion"]:not([hidden])) #passwordOverlay{display:none!important}
.continuation-active #gameHUD .hud-inventory,.continuation-active #gameHUD .hud-feed-meta,.continuation-active #hintPanel,.continuation-active #scenePhotoStatus,.continuation-active #inputFeedback,.continuation-active #resumeTaskButton,.continuation-active #sceneHotspots,.continuation-active #passwordOverlay,.continuation-active #brickHintOverlay,.continuation-review #sceneHotspots,.continuation-review #hintPanel{display:none!important}
.continuation-active #gameHUD .hud-mission{max-width:min(530px,60vw)}
.continuation-active #gameHUD .hud-dock{gap:9px}
.continuation-active #gameHUD .feed-bottomline{display:none}
#continuationPanel{position:absolute;inset:0;pointer-events:none;color:#e5e4d7}
.continuation-live-cue{position:absolute;left:var(--hud-edge);top:278px;width:min(335px,40vw);padding:12px 15px;background:linear-gradient(110deg,#0d1b19ed,#10211ad4);border-left:2px solid #baa47a;border-radius:0 5px 5px 0;box-shadow:0 8px 32px #0003;display:grid;gap:6px}
.continuation-live-cue small{font-size:9px;color:#c7c5aa;letter-spacing:.08em}.continuation-live-cue b{font-size:11px;font-weight:450;color:#c4bd9d}.continuation-live-cue strong{font-size:15px;font-weight:500;color:#e1d5b4}.continuation-live-cue p{margin:0;font-size:11px;line-height:1.7;color:#aebfaf}
.continuation-live-cue[data-scene="vent_shaft"][data-beat="2"]{border-left-color:#91b396}.continuation-live-cue[data-beat="2"] strong{color:#c1d5b4}
.continuation-route{position:absolute;left:var(--hud-edge);top:177px;display:grid;gap:8px;max-width:40vw;text-shadow:0 2px 10px #000}
.continuation-route>span{font:8px/1.4 ui-monospace,monospace;letter-spacing:.17em;color:#bfbba1a3}
.continuation-route>b{font-size:11px;font-weight:450;color:#d0bd95}
.continuation-route>em{font-size:23px;font-style:normal;letter-spacing:.1em}
.continuation-threat{position:absolute;right:var(--hud-edge);top:116px;width:230px;padding:12px 15px;border:1px solid #c0a38340;border-radius:5px;background:#121c1beb;backdrop-filter:blur(12px)}
.continuation-threat>span{display:block;font-size:10px;line-height:1.8;color:#c6c5b6}
.continuation-threat>strong{display:block;font-size:12px;letter-spacing:.1em;margin:7px 0;color:#cebb93;font-weight:450}
.continuation-threat>small{font-size:9px;line-height:1.7;color:#b6bfa78f}
#continuationPressureBars{display:flex;gap:5px;margin:0 0 5px}
#continuationPressureBars i{height:3px;flex:1;background:#a9b49229}
#continuationPressureBars i.filled{background:#c09070}
.continuation-controls{position:absolute;left:var(--hud-edge);bottom:185px;display:flex;gap:7px}
.continuation-controls button,#continuationInventory button{min-height:44px;padding:10px 13px;border:1px solid #c7bd9f45;border-radius:4px;background:#15211dea;color:#d1d6c3;font:11px/1.5 var(--hud-font);cursor:pointer;backdrop-filter:blur(12px)}
.continuation-controls button:hover,#continuationInventory button:hover{background:#a7925e36;border-color:#c0ad79}
.continuation-drawer{position:absolute;top:95px;bottom:240px;left:var(--hud-edge);width:min(360px,calc(100vw - 32px));padding:12px 16px;background:#111d1af5;border:1px solid #c1b48d63;border-radius:5px;overflow-y:auto;pointer-events:auto;z-index:20;box-shadow:0 8px 45px #0008}
.continuation-drawer header{display:flex;align-items:center;justify-content:space-between;font-size:13px;padding:0 0 9px;border-bottom:1px solid #b7b19330;letter-spacing:.1em}
.continuation-drawer header button{border:0;background:none;color:#d1d3c1;font-size:24px;min-width:44px;min-height:44px;cursor:pointer}
#continuationObjectList{display:flex;flex-direction:column;gap:4px;padding-top:8px}
#continuationObjectList button{display:flex;justify-content:space-between;align-items:center;text-align:left;min-height:44px;padding:8px 10px;background:#aebc9609;border:1px solid #aebc9626;border-radius:3px;color:#e1e2d2;font-size:12px;cursor:pointer}
#continuationObjectList button span{font-size:9px;color:#c0b18c}
.continuation-drawer p{font-size:10px;line-height:1.6;color:#b0b79f}
#continuationInventory{position:absolute;right:var(--hud-edge);bottom:185px;text-align:right;max-width:45vw}
#continuationInventory>small{display:block;font-size:8px;letter-spacing:.13em;margin-bottom:8px;color:#c7c5ae}
#continuationInventory>div{display:flex;gap:6px;justify-content:flex-end}
#continuationInventory button{min-width:84px;padding:7px 10px;font-size:11px;color:#a7b09c}
#continuationInventory button span{display:block;font-size:8px;margin-top:3px;color:#9faaa076}
#continuationInventory button.collected{color:#e0d6b7;border-color:#ceba787d}
#continuationInventory button.used{color:#a3c0ab;border-color:#97b39d54}
#continuationFeedback{position:absolute;bottom:116px;left:50%;transform:translateX(-50%);width:min(680px,calc(100% - 180px));max-height:64px;overflow-y:auto;text-align:center;font-size:12px;line-height:1.8;padding:9px 13px;border-left:2px solid #c4b3817a;background:#13201fe8;backdrop-filter:blur(12px);pointer-events:auto;color:#d9dfcd}
#continuationFeedback[data-kind=warning]{border-color:#bd806a;color:#e1bca7}
#continuationFeedback[data-kind=success]{border-color:#9cb19c;color:#cbdac4}
#continuationFailure{position:fixed;inset:0;z-index:60;background:#0b1211e0;backdrop-filter:blur(12px);display:grid;place-items:center;padding:24px;pointer-events:auto}
#continuationFailure>div{width:min(480px,100%);max-height:calc(100dvh - 48px);overflow-y:auto;padding:30px;border:1px solid #be9e734f;background:#18221ef5;border-radius:6px}
#continuationFailure small{font-size:9px;color:#c08d73;letter-spacing:.12em}
#continuationFailure h2{font-weight:450;font-size:28px;margin:15px 0 20px;letter-spacing:.06em}
#continuationFailure p{font-size:13px;line-height:1.9;color:#c3ccb8}
#continuationFailure button{display:block;min-height:46px;margin-top:10px;width:100%;padding:10px;border:1px solid #baa579;background:#bda77b;color:#17211c;border-radius:4px;cursor:pointer}
#continuationFailure button+button{background:none;color:#c9c9b2;border-color:#b4b89c40}
#continuationPicker{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:24px;background:#101b19f7;color:#e2e2d2;overflow-y:auto}
#continuationPicker h2{font-size:26px;font-weight:450;letter-spacing:.1em;margin:0}
#continuationPicker p{max-width:450px;font-size:13px;line-height:1.9;text-align:center;color:#bec7b4}
#continuationPicker>div{display:grid;gap:10px;width:min(460px,100%)}
#continuationPicker a,#continuationPicker button{padding:14px 18px;min-height:44px;color:#d8ccac;border:1px solid #c2b1804d;border-radius:4px;background:#a2b6950d;text-decoration:none;font-size:12px;cursor:pointer}
@media(max-width:600px){
  .continuation-active #gameHUD .hud-mission{top:84px;max-width:calc(100% - 32px)}
  .continuation-route{top:133px;max-width:calc(100% - 32px);gap:5px}
  .continuation-route>em{font-size:19px}.continuation-route>span{font-size:7px}
  .continuation-threat{top:205px;right:16px;width:180px;padding:8px 11px}.continuation-threat>span{font-size:9px}.continuation-threat>small{font-size:8px}
  .continuation-live-cue{top:199px;left:16px;width:calc(100% - 32px);padding:9px 11px;gap:4px;box-sizing:border-box}.continuation-live-cue strong{font-size:12px}.continuation-live-cue p{font-size:10px;line-height:1.5}.continuation-live-cue b{font-size:10px}
  .continuation-threat{top:319px;left:16px;right:auto;width:calc(100% - 32px);box-sizing:border-box;padding:6px 10px}.continuation-threat>strong{font-size:11px;margin:3px 0}.continuation-threat>small{display:none}
  .continuation-controls{left:16px;bottom:222px;gap:5px}.continuation-controls button{padding:8px 11px;font-size:10px}
  #continuationInventory{bottom:157px;right:16px;max-width:calc(100% - 32px)}
  #continuationInventory>small{margin-bottom:5px}#continuationInventory button{min-width:78px;min-height:44px;font-size:10px;padding:5px 8px}
  #continuationFeedback{width:calc(100% - 32px);bottom:101px;max-height:48px;font-size:11px;padding:5px 9px}
  .continuation-drawer{top:82px;bottom:277px;left:16px;padding:9px 12px}
  .continuation-frame-note{font-size:7px;bottom:8px;left:8px;right:8px;padding:4px}
  #continuationFailure>div{padding:24px}#continuationFailure h2{font-size:24px}
}
@media(min-height:501px) and (max-height:650px) and (orientation:landscape){
  .continuation-route{display:none}.continuation-live-cue{top:165px;width:min(430px,53vw);box-sizing:border-box;padding:7px 11px;gap:4px}.continuation-live-cue small{font-size:8px}.continuation-live-cue b{font-size:10px}.continuation-live-cue strong{font-size:12px}.continuation-live-cue p{font-size:10px;line-height:1.5}
}
@media(max-height:500px) and (orientation:landscape){
  .continuation-active #gameHUD .hud-mission{top:70px;left:20px;max-width:53vw}
  .continuation-route{top:116px;left:20px;gap:3px}.continuation-route>em{font-size:18px}
  .continuation-threat{top:70px;right:20px;width:205px;padding:7px 10px}.continuation-threat>small{font-size:8px}
  .continuation-route{display:none}.continuation-live-cue{top:118px;left:20px;width:min(430px,53vw);box-sizing:border-box;padding:6px 10px;gap:3px}.continuation-live-cue small{font-size:8px}.continuation-live-cue b{font-size:9px}.continuation-live-cue strong{font-size:11px}.continuation-live-cue p{font-size:9px;line-height:1.35}
  .continuation-threat>span{font-size:9px;line-height:1.5}.continuation-threat>strong{font-size:11px;line-height:1.2;margin:5px 0}.continuation-threat>small{display:block;line-height:1.4}
  .continuation-controls{left:20px;bottom:137px}.continuation-controls button{padding:6px 10px;min-height:44px;font-size:10px}
  #continuationInventory{right:20px;bottom:137px;max-width:40vw}#continuationInventory button{min-width:68px;font-size:10px;padding:5px 8px}
  #continuationFeedback{bottom:77px;width:min(570px,calc(100% - 140px));max-height:46px;font-size:10px;padding:5px 9px}
  .continuation-drawer{top:65px;bottom:190px;left:20px;width:310px}
  .continuation-frame-note{display:none}
}

/* Live continuation overlays retain the original stage and HUD. */
#continuationVideo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#070d10;z-index:5}
#continuationVideo[hidden]{display:none}
.continuation-video-recovery{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
.continuation-video-recovery[hidden]{display:none}
.continuation-video-recovery button{border:1px solid #477b78;background:#102427;color:#c5efe5;padding:8px 12px;min-height:36px;cursor:pointer}

/* Keep the live player and recovery controls usable above the scene overlay. */
#continuationVideo{pointer-events:auto}
.continuation-video-recovery{position:absolute;left:50%;bottom:100px;transform:translateX(-50%);justify-content:center;max-width:calc(100% - 24px);width:max-content;z-index:20;pointer-events:auto;background:#09171deb;padding:8px;border:1px solid #477b78}
@media(max-width:700px){.continuation-video-recovery{bottom:156px;width:calc(100% - 32px)}.continuation-video-recovery button{flex:1;min-height:40px;font-size:12px}}

/* Isolated correction candidate: never present an entrance reference as a result. */
#continuationPhoto[hidden]{display:none!important}
.continuation-frame-note{display:block;z-index:6;font-size:12px;line-height:1.5;color:#e8dfca;background:#111b19f2;max-width:calc(100% - 32px)}
#continuationStage[data-loading="true"]::after,#continuationStage[data-loading="error"]::after{position:absolute;inset:0;display:grid;place-items:center;color:#e8dfca;background:#111b19;font:16px/1.6 var(--hud-font);content:"正在切换现场画面…"}
#continuationStage[data-loading="error"]::after{content:"现场图像未载入，请恢复连接"}

body[data-b1-camera-calibrated="false"] #sceneHotspots,body[data-b1-camera-calibrated="false"] #sceneObjectName{display:none!important}
#b1CameraNote{margin:0;padding:8px 10px;font-size:13px;line-height:1.6;background:#17241eea;border:1px solid #bba67555;color:#e2dbc5;border-radius:4px}
#b1CameraNote[hidden]{display:none}
#gameHUD .inventory-empty:not(:empty){width:128px;height:auto;min-height:44px;padding:8px;font-size:12px;line-height:1.5;box-sizing:border-box}
#gameHUD .inventory-empty:not(:empty)::before{display:none}
.continuation-active #gameHUD .hud-mission{display:none}
.continuation-live-cue small,.continuation-live-cue b,.continuation-live-cue p{font-size:13px;line-height:1.6}
.continuation-live-cue strong{font-size:16px}
.continuation-threat>span,.continuation-threat>small,.continuation-threat>strong{font-size:13px;line-height:1.6}
#continuationFeedback{font-size:15px;line-height:1.6;box-sizing:border-box}
#continuationInventory button,.continuation-controls button{font-size:13px;min-height:44px}
#continuationInventory button span{font-size:12px;color:#bacab9}
.continuation-drawer{box-sizing:border-box}
.continuation-drawer header{position:sticky;top:0;background:#15231ff7;z-index:2}
.continuation-drawer #continuationInventory{position:static;max-width:none;text-align:left;margin-top:12px}
.continuation-drawer #continuationInventory>div{justify-content:flex-start;flex-wrap:wrap}
.continuation-drawer #continuationInventory>small{font-size:12px}
#continuationFailure{position:absolute;box-sizing:border-box}
#continuationObjectsToggle,#continuationHint,#continuationJournal{pointer-events:auto}
@container cinema (max-height:650px){
  .continuation-route{display:none}.continuation-live-cue{top:78px;left:20px;width:min(350px,48cqw);max-height:calc(100cqh - 280px);overflow-y:auto;box-sizing:border-box}
  .continuation-threat{top:78px;right:20px;width:min(230px,29cqw);box-sizing:border-box}
  .continuation-controls{left:20px;bottom:157px;gap:6px}
  #continuationInventory{right:20px;bottom:157px;max-width:47cqw}
  #continuationInventory button{min-width:76px;padding:6px 8px}
  #continuationFeedback{bottom:82px;max-height:66px;width:calc(100% - 40px);padding:8px 12px}
  .continuation-frame-note{bottom:72px;left:20px;right:auto;max-width:calc(100% - 40px);font-size:12px}
  .continuation-drawer{top:72px;bottom:150px;left:20px;width:min(390px,calc(100% - 40px))}
  .continuation-video-recovery{bottom:84px;max-height:calc(100% - 160px);overflow:auto;box-sizing:border-box}
}
@container cinema (max-height:320px){
  .continuation-live-cue,.continuation-route,.continuation-threat>span,.continuation-threat>small,#continuationPressureBars{display:none}
  .continuation-controls{top:54px;bottom:auto;left:10px;gap:4px}
  .continuation-controls button{font-size:12px;padding:6px 9px;min-height:44px}
  .continuation-threat{top:56px;right:10px;left:auto;width:77px;padding:5px;border:0;background:#13201de6}
  .continuation-threat>strong{font-size:12px;line-height:1.5;margin:0;letter-spacing:0}
  #continuationFeedback{bottom:69px;max-height:40px;left:10px;right:10px;width:auto;transform:none;font-size:13px;line-height:1.4;padding:3px 7px}
  .continuation-drawer{top:54px;bottom:68px;left:10px;width:calc(100% - 20px);padding:6px 10px;z-index:30}
  .continuation-drawer header{font-size:13px;padding:0}
  #continuationObjectList button{font-size:13px;min-height:44px}.continuation-drawer p{font-size:12px}
  .continuation-video-recovery{bottom:70px;width:calc(100% - 20px);max-height:calc(100% - 125px);padding:4px}
  .continuation-video-recovery button{font-size:12px;min-height:44px}
  .continuation-frame-note{display:none}
  #b1CameraNote{font-size:12px;padding:4px 7px}
}

/* The HUD belongs to the contained 16:9 picture, not to its letterbox.
   Share the feed's geometry; do not crop the picture or alter hotspot coordinates. */
:root{--cinema-width:min(100vw,calc(var(--app-height,100dvh) * 16 / 9));--cinema-height:min(var(--app-height,100dvh),calc(100vw * 9 / 16));--cinema-left:calc((100vw - var(--cinema-width)) / 2);--cinema-top:calc((var(--app-height,100dvh) - var(--cinema-height)) / 2)}
#gameHUD,.film-panel,.ending-screen{position:fixed;inset:auto;left:var(--cinema-left);top:var(--cinema-top);width:var(--cinema-width);height:var(--cinema-height);container-type:size;container-name:cinema}
#gameHUD{overflow:clip}
#gameHUD .topbar{box-sizing:border-box}
#gameHUD #startCover{padding:clamp(64px,10cqh,100px) 8cqw 24px;align-items:center}
#gameHUD .start-panel{transform:none;max-width:min(600px,100%)}
#gameHUD .start-panel h2{font-size:clamp(28px,5.5cqw,80px)}
#gameHUD #restartConfirm{position:fixed;inset:auto;left:var(--cinema-left);top:var(--cinema-top);width:var(--cinema-width);height:var(--cinema-height);box-sizing:border-box;overflow-y:auto}
#gameHUD .hud-settings{max-height:calc(100% - 104px);overflow-y:auto;box-sizing:border-box}
.ending-screen{box-sizing:border-box}
.ending-screen .ending-panel{max-height:100%;box-sizing:border-box}
.toast{bottom:calc(var(--cinema-top) + min(118px,calc(var(--cinema-height) * .42)));max-width:min(440px,calc(var(--cinema-width) - 32px));max-height:calc(var(--cinema-height) - 32px);overflow-y:auto;box-sizing:border-box}

/* Height queries use the picture's height, even in a tall browser window. */
@container cinema (max-height:520px){
  #gameHUD .topbar{height:64px;padding:10px 20px;gap:12px}
  #gameHUD .brand strong{font-size:14px}
  #gameHUD .brand small{font-size:7px}
  .hud-brand-mark{width:30px;height:35px}.hud-brand-mark b{font-size:23px}
  .hud-tool,.hud-tool.icon-only{min-height:44px}.hud-tool.icon-only{width:44px}
  .hud-mission{top:78px;left:20px}.hud-mission p{font-size:11px;margin-top:5px}
  .hud-dock{bottom:16px;width:min(680px,calc(100% - 160px));gap:8px}
  #gameHUD #chatForm{min-height:56px;padding:5px 8px 5px 12px;gap:10px}
  #gameHUD .feed-bottomline strong{font-size:12px;padding:3px 9px}
  #gameHUD .hud-inventory{bottom:112px;right:20px;width:44px}
  #gameHUD .inventory-item,#gameHUD .inventory-empty{width:44px;height:44px;min-height:44px;flex-basis:44px}
  #gameHUD .inventory-slots{max-height:min(197px,calc(100cqh - 198px))}
  #gameHUD .hud-feed-meta{display:none}.hud-footer{bottom:5px}
  .hud-support{left:20px;bottom:122px;width:min(270px,calc(100% - 100px));max-height:calc(100% - 220px)}
  #gameHUD .player-help{padding:10px 12px;font-size:11px}
  .hud-drawer{top:72px;bottom:106px;right:20px}
  .hud-drawer>header{padding:9px 14px}.hud-drawer>header small{font-size:13px;margin-top:4px}
  .hud-close{width:44px;min-height:44px}
  #gameHUD .hud-settings{top:68px!important;right:20px!important;max-height:calc(100% - 82px);padding:12px}
  #gameHUD .hud-settings button{min-height:44px}
  #gameHUD #startCover{padding:70px 6cqw 20px}
  #gameHUD .start-panel h2{font-size:35px;gap:6px;margin-bottom:12px}
  #gameHUD .start-panel>.eyebrow{margin-bottom:12px;font-size:8px}
  #gameHUD .start-panel p{font-size:11px;line-height:1.8;margin-bottom:16px}
  .hud-start-note{margin-top:9px}
  .film-panel .film-top{top:14px;left:20px;right:20px}
  .film-panel .film-top button{min-height:44px}
  .film-panel #filmCaption{bottom:18px;font-size:12px}
  .ending-screen .ending-panel{padding:22px 26px}
}
@container cinema (max-width:600px){
  #gameHUD .topbar{padding:6px 10px;height:56px;gap:5px}
  #gameHUD .brand{gap:6px}#gameHUD .brand strong{font-size:11px;letter-spacing:0}
  #gameHUD .brand small{font-size:5px}.hud-brand-mark{width:24px;height:30px}
  .hud-tool span{display:none}.hud-tool,.hud-tool.icon-only{width:44px;min-height:44px;padding:11px}.hud-tools{gap:0}
  .hud-mission{top:66px;left:12px}
  .hud-dock{width:calc(100% - 24px);bottom:10px;gap:6px}
  .hud-input-label>span:last-child{display:none}
  #gameHUD .hud-inventory{right:12px;bottom:112px;width:auto;max-width:calc(100% - 24px)}
  #gameHUD .hud-inventory .inventory-heading{flex-direction:row;justify-content:flex-end;margin-bottom:4px;gap:7px}
  #gameHUD .inventory-slots{flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;gap:5px}
  .hud-drawer{top:60px;bottom:100px;right:12px;width:calc(100% - 24px)}
  .hud-support{left:12px;bottom:172px;width:calc(100% - 24px);max-height:calc(100% - 240px)}
  #gameHUD .hud-settings{top:58px!important;right:10px!important;max-height:calc(100% - 68px)}
  .hud-footer{display:none}
}
@container cinema (max-height:300px){
  #gameHUD #restartConfirm{justify-content:flex-start;padding:12px;gap:8px}#gameHUD #restartConfirm p{font-size:13px;margin:0}#gameHUD #restartConfirm button{min-height:44px}
  .hud-mission{display:none}
  #gameHUD .topbar{padding:4px 8px;height:52px}
  #gameHUD .brand strong{font-size:10px}#gameHUD .brand small{font-size:4px}
  #gameHUD .brand{gap:4px}.hud-brand-mark{width:20px;height:27px}.hud-brand-mark b{font-size:19px}
  .hud-dock{bottom:8px;gap:4px}
  #gameHUD #chatForm{min-height:54px;padding:4px 6px;gap:7px}
  #gameHUD #chatInput{font-size:16px}#gameHUD #sendButton{min-height:44px;padding:9px 10px}
  #gameHUD .feed-bottomline strong{font-size:10px;padding:2px 6px}
  #gameHUD .hud-inventory{top:57px;bottom:auto;right:10px;display:flex;align-items:center;gap:7px;max-width:calc(100% - 20px)}
  #gameHUD .hud-inventory .inventory-heading{margin:0;flex:none}.inventory-heading span{display:none}
  .hud-drawer{top:56px;bottom:94px}.hud-drawer>header{padding:0 8px}.hud-drawer>header>span{font-size:6px}.hud-drawer>header small{font-size:11px;margin-top:2px}
  .hud-support{bottom:96px;max-height:calc(100% - 150px);width:calc(100% - 24px)}
  #gameHUD #startCover{padding:58px 20px 10px;align-items:flex-start}
  #gameHUD .start-panel{margin:auto 0}#gameHUD .start-panel h2{font-size:24px;gap:3px;margin-bottom:10px}
  #gameHUD .start-panel>.eyebrow,#gameHUD .start-panel p{display:none}
  #gameHUD .start-panel .primary-button{min-height:44px;padding:10px 15px}
  .hud-start-note{font-size:8px;margin-top:6px}
  .film-panel .film-top{top:6px;left:10px;right:10px}
  .film-panel .film-top::before{font-size:10px}.film-panel #filmLabel{font-size:7px;margin-top:21px}
  .film-panel #filmCaption{bottom:10px;font-size:10px}
  .ending-screen .ending-panel{padding:12px 16px}.ending-panel h2{font-size:20px;margin:8px 0}.ending-panel p{font-size:11px}
}
