.mission-game{background:#0b1320}.game-stage{position:fixed;inset:0;height:100dvh;width:100%;overflow:hidden}.game-header{position:absolute;inset:12px 20px auto;z-index:20;height:auto;background:transparent;border:0;padding:0;pointer-events:none}.game-header>a,.game-header>div{pointer-events:auto}.game-brand{color:#f5f2ea;text-shadow:0 1px 5px #000}.game-brand small{display:none}.game-header .mission-name{display:none}.game-header button,.game-header a[href="report.html"]{background:#101c2bd9;color:#f5f2ea;border-color:#526175;padding:7px 10px}.game-header #sound{display:none}
.hud-left{top:70px;left:20px;max-width:min(520px,64vw);pointer-events:none}.hud-left>.eyebrow{display:none}.hud-left h1{font-size:20px;line-height:1.5;margin:0;max-width:100%;text-shadow:0 2px 8px #000}.hud-left>p#hint{font-size:12px;line-height:1.7;max-width:450px}.mission-route{display:none}.camera-switch{position:fixed;top:63px;right:20px;pointer-events:auto;background:#101c2bd9;border-radius:9px;padding:5px}.camera-switch button{font-size:11px;min-height:32px}.hud-right{top:115px;right:20px;display:flex;gap:7px;align-items:center}.hud-right #distance{font-size:16px}.hud-right small{font-size:9px}.hud-right button{font-size:11px;padding:7px}.comic-speech,.unknown-key{display:none!important}.game-status{left:20px;bottom:138px;max-width:calc(70% - 40px);padding:7px 12px;background:#101c2bd9;border-radius:7px;font-size:12px;line-height:1.7}.action-dock{bottom:74px}.telemetry{bottom:13px;font-size:9px;opacity:.5}.achievement-toast{left:20px;bottom:178px;max-width:300px;font-size:11px}
.mission-intro{z-index:40}.intro-card{max-width:650px;padding:34px}.intro-card h1{font-size:32px}.intro-card .intro-goal{font-size:14px}.intro-controls{grid-template-columns:1fr 1fr;margin:18px 0}.intro-card .intro-touch{font-size:12px;color:#536178;display:none}.intro-card .loading{margin:12px 0}.story-coach{display:none!important}.gap-reticle{position:absolute;z-index:3;left:50%;top:46%;width:28px;height:28px;transform:translate(-50%,-50%);border:1px solid #f5f2eaab;border-radius:50%;pointer-events:none}.gap-reticle:before,.gap-reticle:after{content:"";position:absolute;background:#f5f2eaab;left:50%;top:50%;transform:translate(-50%,-50%)}.gap-reticle:before{width:40px;height:1px}.gap-reticle:after{width:1px;height:40px}.gap-reticle span{position:absolute;top:40px;left:-45px;width:120px;text-align:center;font-size:10px;color:#f5f2ea;text-shadow:0 2px 4px #000}.perception-label{top:120px;background:#101c2bd9;color:#f5f2ea;border-color:#526175}
.judgment-panel{position:absolute;z-index:10;bottom:155px;left:50%;transform:translateX(-50%);width:min(500px,90%);padding:16px 20px;background:#fffdf1f2;color:#263247;border:1px solid #d5ad67;border-radius:18px;text-align:center;box-shadow:0 10px 35px #0003}.judgment-panel h2{font-size:23px;line-height:1.5;margin:0 0 5px}.judgment-panel p{font-size:12px;margin:5px 0 12px}.judgment-panel #judgment-actions{display:flex;gap:8px;justify-content:center}.judgment-panel button{flex:1;font-size:13px;padding:11px 8px;min-height:44px}.decision-tools{position:absolute;z-index:9;bottom:153px;left:50%;transform:translateX(-50%);display:flex;gap:8px;flex-wrap:wrap;justify-content:center;width:min(720px,92%)}.decision-tools button{min-height:44px;background:#fffdf1;color:#263247;font-size:13px;padding:10px 15px}.decision-tools .primary{background:#efad3f}
.brain-panel:not(.carry-mode){width:30%;min-width:365px;max-width:600px;top:155px;right:14px;max-height:calc(100% - 220px)}.brain-panel:not(.carry-mode) .brain-heading{padding:14px 16px}.brain-panel .brain-heading h2{font-size:24px}.brain-panel .brain-heading small{font-size:11px}.brain-panel:not(.carry-mode) .brain-body{padding:9px 14px}.brain-panel:not(.carry-mode):not(.gate-mode) .model-imagination{height:190px}.brain-panel:not(.carry-mode):not(.gate-mode) .dream-view{height:210px}.brain-panel .model-toolbar{gap:4px}.brain-panel .model-toolbar button{font-size:9px;padding:5px 7px}.brain-panel .model-toolbar #model-turn{display:none}.brain-panel .brain-actions{flex-wrap:wrap}.brain-panel .brain-actions button{font-size:11px;min-height:36px;flex:1}.brain-panel #manual-continue{background:#eae9e0;color:#263247;border:1px solid #d8d7cf;font-size:12px}.brain-panel .selection-explanation,.brain-panel .model-note,.brain-panel .spatial-flow{font-size:10px}.brain-panel .validation-chain{font-size:11px}.brain-panel .candidate-grid{gap:3px}.brain-panel #candidates{font-size:10px}.brain-view-tools{display:flex;gap:4px;margin:8px 0}.brain-view-tools button{flex:1;font-size:10px;padding:5px}.brain-panel #pair-caption{font-size:11px;line-height:1.7;color:#526175}.brain-panel #rejected-example{font-size:10px;padding:5px 8px;margin-bottom:8px}.brain-panel #raw-model-pair{display:none}.brain-panel #showcase-prompt{display:none}.brain-panel .validation-chain p{margin:6px 0}.brain-panel .carry-caption{font-size:10px}
.brain-panel.expanded{width:94%;max-width:none;min-width:0;top:65px;right:3%;max-height:calc(100% - 135px);z-index:30}.brain-panel.expanded .brain-body{overflow:auto}.brain-panel.expanded .brain-view-tools{position:sticky;top:0;background:#fffdf1;padding:7px;z-index:3}.brain-panel.photo-expanded .input-photo{width:55%;flex-shrink:0}.brain-panel.photo-expanded #input-photo{width:100%;height:55vh;object-fit:contain}.brain-panel.models-expanded .model-imagination{height:55vh!important;display:flex;gap:12px;padding-bottom:50px}.brain-panel.models-expanded #raw-model,.brain-panel.models-expanded #raw-model-pair{position:relative;inset:auto;width:50%;height:100%;display:block}.brain-panel.expanded .dream-view{height:50vh!important}.brain-panel.models-expanded .dream-view{height:220px!important}.brain-panel.expanded .brain-footer{padding:10px}.brain-panel.expanded .brain-actions button{font-size:13px}.brain-panel.map-expanded .model-imagination,.brain-panel.map-expanded .input-photo{display:none}.brain-panel.map-expanded .dream-view{height:62vh!important}.brain-open .game-status{max-width:calc(70% - 50px)}.leg-console{bottom:75px}.leg-console .leg-top,.leg-console .leg-content{background:#101c2bed}.leg-console #leg-actions button{min-height:44px}.help-panel,.gameplay-panel{z-index:35}.result-card{z-index:36}
@media(max-width:899px){.game-header{inset:10px 12px auto}.game-brand{font-size:16px}.game-header>div{gap:4px}.game-header button,.game-header a[href="report.html"]{font-size:10px;padding:6px}.game-header #export-run{display:none}.hud-left{top:62px;left:14px;max-width:calc(100% - 130px)}.hud-left h1{font-size:16px}.hud-left>p#hint{font-size:10px}.camera-switch{top:119px;right:12px}.camera-switch button{font-size:9px;padding:6px}.hud-right{top:64px;right:12px}.hud-right #distance{font-size:13px}.game-status{left:12px;right:12px;bottom:160px;max-width:none;font-size:10px}.action-dock{bottom:70px}.perception-label{top:164px;left:12px;right:auto;transform:none;font-size:9px}.judgment-panel{bottom:190px;width:calc(100% - 28px);padding:13px}.judgment-panel h2{font-size:19px}.judgment-panel button{font-size:11px;padding:9px 5px}.decision-tools{bottom:185px;width:calc(100% - 28px);gap:5px}.decision-tools button{flex:1 1 40%;font-size:11px;padding:9px 10px}.brain-panel:not(.carry-mode){top:auto;bottom:63px;right:10px;left:10px;width:auto;min-width:0;max-width:none;max-height:58%;border-radius:18px}.brain-panel:not(.carry-mode) .brain-heading h2{font-size:20px}.brain-panel:not(.carry-mode):not(.gate-mode) .model-imagination{height:145px}.brain-panel:not(.carry-mode):not(.gate-mode) .dream-view{height:185px}.brain-open .game-status{display:none}.brain-open .hud-left{max-width:calc(100% - 110px)}.brain-panel.expanded{top:55px;bottom:63px;left:10px;right:10px;max-height:calc(100% - 120px);width:auto}.brain-panel.models-expanded .model-imagination{height:38vh!important}.brain-panel.photo-expanded .input-photo{width:65%}.brain-panel.expanded .dream-view{height:38vh!important}.brain-panel.map-expanded .dream-view{height:55vh!important}.intro-card{padding:24px}.intro-card h1{font-size:26px}.intro-card .intro-touch{display:block}.touch-controls{bottom:74px!important}.leg-console{bottom:69px;max-height:240px}.achievement-toast{bottom:210px;font-size:10px;max-width:250px}.camera-inset-label{font-size:8px}.brain-panel.carry-mode{bottom:180px!important;top:auto!important;right:12px!important;left:auto!important;width:170px!important;max-height:220px}.brain-panel.carry-mode .model-imagination{height:120px}.brain-panel.carry-mode .brain-heading{padding:7px}.brain-panel.carry-mode .brain-heading h2{font-size:15px}}

#main .brain-panel:not(.carry-mode):not(.gate-mode):not(.expanded){width:30%;min-width:365px;top:155px;right:14px;max-height:calc(100% - 220px)}
#main .brain-panel.expanded{width:94%;max-width:none;min-width:0;top:65px;right:3%;max-height:calc(100% - 135px);z-index:30}
#main .brain-panel.models-expanded .original-input{width:22%;margin-right:16px;float:left;display:block}
#main .brain-panel.models-expanded .original-input img{width:100%;height:50vh;object-fit:contain}
#main .brain-panel.models-expanded .model-imagination{height:52vh!important;margin-left:calc(22% + 16px);padding-bottom:45px;display:flex;gap:12px}
#main .brain-panel.models-expanded #raw-model,#main .brain-panel.models-expanded #raw-model-pair{position:relative;inset:auto;width:50%;height:100%;display:block}
#main .brain-panel.photo-expanded .original-input{width:65%;float:none;display:block;margin:auto}
#main .brain-panel.photo-expanded .original-input img{width:100%;height:58vh;object-fit:contain}
#main .brain-panel.photo-expanded .model-imagination,#main .brain-panel.photo-expanded .dream-view{display:none}
.game-brand span{color:#f5f2ea}
@media(max-width:899px){#main .brain-panel:not(.carry-mode):not(.gate-mode):not(.expanded){top:auto;bottom:63px;right:10px;left:10px;width:auto;min-width:0;max-height:58%}#main .brain-panel.expanded{top:55px;bottom:63px;left:10px;right:10px;width:auto;max-height:calc(100% - 120px)}#main .brain-panel.models-expanded .original-input{width:100%;float:none;height:auto}#main .brain-panel.models-expanded .original-input img{width:100%;height:140px;object-fit:contain}#main .brain-panel.models-expanded .model-imagination{margin-left:0;height:32vh!important}}

#restore-shade{position:absolute;inset:0;z-index:39;display:grid;place-items:center;background:#0b1320;color:#f5f2ea;font-size:18px}.telemetry{display:none}

.model-pair-label{position:absolute;bottom:28px;right:10px;width:calc(50% - 10px);z-index:3;text-align:center;font-size:11px;color:#f5f2ea;background:#101c2bd9;padding:5px;border-radius:6px}.unknown-area-key:before{background:repeating-linear-gradient(135deg,#566779 0 2px,#a4abb3 2px 5px)}

.visible-surface-label{position:absolute;z-index:3;transform:translate(-50%,-100%);color:#c7f1ed;background:#101c2bd9;border:1px solid #8de0e870;padding:5px 9px;font-size:11px;border-radius:7px;pointer-events:none;white-space:nowrap}.visible-surface-label:after{content:"";position:absolute;left:50%;height:18px;bottom:-18px;border-left:1px solid #8de0e8}
@media(max-width:899px){.visible-surface-label{font-size:9px;padding:4px 6px}}

#pair-metrics{font-size:11px;line-height:1.65;color:#344e57;margin:7px 0 10px}.brain-panel.expanded #pair-metrics{font-size:14px}

#main .brain-panel:not(.carry-mode){z-index:26}#main .brain-panel.expanded{z-index:30}

/* Keep candidate selection available beside the expanded map. */
.brain-view-tools{flex-wrap:wrap}.brain-view-tools button{flex:1 1 100px}.brain-panel.map-expanded #switch-hypothesis{background:#efad3f;color:#263247}

/* Show the comparison itself when changing views or route policy. */
#main .brain-panel.map-expanded .original-input{display:none}.brain-panel.map-expanded .dream-view{height:calc(100vh - 560px)!important;min-height:160px;max-height:650px}.brain-panel.expanded .route-choice{position:sticky;top:43px;z-index:3;padding:5px 7px;background:#fffdf1}.brain-panel.expanded .route-choice button{font-size:12px;min-height:34px}
@media(max-width:899px){.brain-panel.map-expanded .dream-view{height:calc(100vh - 560px)!important;min-height:160px}.brain-panel.expanded .route-choice{top:77px}}

/* The candidate caption is a small strip, not a full-height overlay. */
.model-imagination>.model-pair-label{top:auto;left:auto;right:10px;bottom:52px;height:auto}

/* Error state contains only the recovery dialog. */
html[data-mission-error="true"] .game-stage>:not(.fallback){display:none!important}
html[data-mission-error="true"] .game-header{display:none!important}
html[data-mission-error="true"] .fallback{z-index:60;max-width:calc(100% - 32px);width:440px;border:1px solid #d5ad67;border-radius:18px;box-shadow:0 18px 60px #0006}
.game-status{bottom:18px;left:20px;right:260px;max-width:none;background:none;padding:0;font-size:11px}
.action-dock{bottom:68px}
.leg-console{bottom:126px}
@media(max-width:899px){
  .mission-intro{padding:16px}
  .intro-card{width:100%;max-width:650px;padding:24px}
  .intro-controls{grid-template-columns:1fr;gap:9px}
  .intro-controls>div{display:flex;align-items:center;gap:16px;padding:10px 12px}
  .intro-controls kbd{min-width:120px;font-size:14px;margin:0;white-space:nowrap}
  .intro-controls span{font-size:12px;line-height:1.65;white-space:normal}
  .game-status{left:12px;right:12px;bottom:19px;font-size:10px;max-width:none;padding:0}
  .action-dock{bottom:72px}
  .leg-console{bottom:136px}
  .telemetry{bottom:3px;font-size:8px}
}
@media(max-height:600px){.mission-intro{place-items:start center}.intro-card{margin:12px 0}.intro-card h1{font-size:25px}.intro-controls{margin:12px 0}}
