@font-face{font-family:Cinzel;src:url(fonts/cinzel.woff2) format('woff2');font-weight:600;font-display:swap}@font-face{font-family:Barlow;src:url(fonts/barlow.woff2) format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Barlow;src:url(fonts/barlow-semibold.woff2) format('woff2');font-weight:600;font-display:swap}
:root{color-scheme:dark;--bg:#101512;--panel:#181e19;--chalk:#f0eee4;--muted:#b0b5a7;--brass:#d2b77b;--rule:#394038;--red:#dc7968;--green:#a1b89a;--radius:3px}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--chalk);font:17px/1.45 Barlow,sans-serif}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--rule);border-radius:var(--radius);background:transparent;color:var(--chalk);padding:10px 15px;min-height:44px;transition:background .16s,border-color .16s}button:hover{background:#ffffff0c;border-color:var(--brass)}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--brass);outline-offset:4px}button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}a{color:var(--brass);text-underline-offset:4px}::selection{background:var(--brass);color:var(--bg)}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-thumb{background:#555d50}h1,h2,h3,p{margin:0}h1,h2{font-family:Cinzel,serif;font-weight:600;line-height:1.25}h3{font-weight:600}small{font-size:14px}button.primary{background:var(--brass);color:#171b15;border-color:var(--brass);font-weight:600}button.primary:hover{background:#e7ce95}.secondary{background:#222a23}.wide{width:100%}.icon-button{display:grid;place-items:center;padding:8px;width:44px;font-size:26px}.masthead{height:76px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--rule)}.wordmark{font-family:Cinzel,serif;font-size:23px;letter-spacing:.09em;text-decoration:none;color:var(--chalk);white-space:nowrap}.wordmark span{color:var(--brass)}.wordmark i{font-family:Barlow,sans-serif;font-size:14px;letter-spacing:.23em;font-style:normal;border-left:1px solid var(--rule);padding-left:20px;margin-left:17px;color:var(--muted)}.header-actions{display:flex;gap:8px}.header-actions button{border-color:transparent}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 345px;max-width:1920px;margin:auto;min-height:calc(100dvh - 76px)}.operations{min-width:0;display:flex;flex-direction:column}.mission-strip{padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px}.mission-strip h1{font-size:26px}.mission-strip #objective{display:block;color:var(--muted);font-size:16px;margin-top:5px}.mission-clock{text-align:right;min-width:90px}.mission-clock span{font-size:11px;letter-spacing:.16em;color:var(--muted);display:block}.mission-clock strong{font-size:30px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.2}#game-wrap{position:relative;background:#252a22;height:calc(100dvh - 320px);min-height:430px;max-height:1000px;overflow:hidden;border-block:1px solid var(--rule)}#game{width:100%;height:100%;touch-action:none}#game canvas{display:block;outline-offset:-4px}.map-top,.map-bottom{position:absolute;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.map-top{top:16px}.map-bottom{bottom:16px}.map-top button{pointer-events:auto}.sector{background:#101512d9;padding:6px 9px;color:#deded0;font-size:11px;letter-spacing:.12em}.map-button{background:#101512df;border-color:#747a66;min-height:36px;font-size:14px;padding:6px 12px}.map-bottom>span:first-child{font-size:14px;background:#101512e8;padding:6px 11px;max-width:80%}.north{display:flex;flex-direction:column;align-items:center;font-size:12px;text-shadow:0 2px 4px #000}.north svg{width:18px;height:26px;fill:#eeeada;stroke:#151913;stroke-width:1}#map-loading{position:absolute;inset:0;display:grid;place-items:center;background:#1a211b;color:var(--brass)}#map-loading[hidden]{display:none}.command-bar{display:grid;grid-template-columns:1fr 1fr auto;border-bottom:1px solid var(--rule)}.command-bar button{border:0;border-radius:0;padding:15px 18px;display:flex;align-items:center;gap:12px;text-align:left}.command-bar button+button{border-left:1px solid var(--rule)}.casualty-shortcut>span:nth-child(2){flex:1}.casualty-shortcut strong{display:block;font-size:20px;line-height:1.1}.casualty-shortcut small{display:block;color:var(--muted);margin-top:4px;line-height:1.2}.casualty-shortcut svg{width:16px}.callout{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border:1px solid var(--brass);color:var(--brass);font-family:Cinzel;font-size:15px}.casualty-shortcut.selected{background:#d2b77b13}.evac-shortcut{color:var(--brass)}.evac-shortcut span{max-width:80px;line-height:1.15}.radio-line{display:flex;align-items:center;gap:10px;padding:17px 25px;min-height:85px}.radio-line strong{font-size:11px;letter-spacing:.12em;color:var(--brass)}.radio-dot{width:5px;height:5px;background:var(--brass);border-radius:50%;flex-shrink:0}.radio-line p{font-size:16px;color:var(--muted);flex:1}.radio-line button{font-size:14px;flex-shrink:0;border-color:#7a7056}.side-panel{background:var(--panel);border-left:1px solid var(--rule);padding:28px 23px;display:flex;flex-direction:column;max-height:calc(100dvh - 76px);overflow-y:auto}.brief-title{display:flex;gap:15px;align-items:flex-start;margin:8px 0 24px}.mission-index{font-family:Cinzel;font-size:15px;color:var(--brass);padding-top:5px}.brief-title h2{font-size:22px;line-height:1.5}#briefing>p{color:var(--muted);font-size:17px;line-height:1.5}.brief-facts{border-block:1px solid var(--rule);margin:24px 0;padding:17px 0;display:flex;gap:24px}.brief-facts span{display:block;color:var(--muted);font-size:11px;letter-spacing:.1em}.brief-facts strong{font-weight:400;font-size:17px}.mode-selector{border:0;padding:0;margin:0 0 24px;display:flex;gap:10px}.mode-selector legend{font-size:16px;margin-bottom:8px}.mode-selector label{flex:1;cursor:pointer}.mode-selector input{position:absolute;opacity:0}.mode-selector label>span{border:1px solid var(--rule);display:block;padding:10px 13px;font-size:23px}.mode-selector small{display:block;font-size:14px;color:var(--muted)}.mode-selector input:checked+span{border-color:var(--brass);background:#d2b77b0a}.mode-selector input:focus-visible+span{outline:2px solid var(--brass);outline-offset:3px}.brief-steps{padding-left:22px;margin:0 0 25px;color:var(--muted)}.brief-steps li{padding:5px 0 5px 5px}.brief-steps li::marker{color:var(--brass)}#start{display:flex;justify-content:space-between;font-size:19px;align-items:center}#continue{margin-top:10px}#briefing .controls-note{font-size:13px;color:var(--muted);margin-top:16px;line-height:1.7}.panel-footer{margin-top:auto;padding-top:26px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#9aa18f;font-size:11px;letter-spacing:.12em}.panel-footer button{font-size:13px;padding:4px 7px;min-height:32px;letter-spacing:0;border:0}.patient-heading{display:flex;gap:12px;align-items:center}.patient-heading>div{flex:1}.patient-heading h2{font-size:24px}.patient-heading p{color:var(--muted);font-size:14px}.patient-heading button{border:0}.patient-proximity{color:var(--brass);font-size:14px;margin-top:14px}#patient-body{position:relative;height:290px;overflow:hidden;margin:5px 0 10px;background:radial-gradient(ellipse at 45% 50%,#34402e40,transparent 68%)}#body-canvas{height:100%;width:auto;display:block;margin-left:3px}.finding-box{border-top:1px solid var(--rule);padding-top:14px;margin-bottom:15px}.finding-box>span{font-size:11px;letter-spacing:.14em;color:var(--muted)}.finding-box h3{font-size:21px;margin:4px 0 5px}.finding-box p{font-size:15px;color:var(--muted);line-height:1.4;min-height:40px}#treatment-actions{display:grid;gap:6px}#treatment-actions button{display:flex;justify-content:space-between;text-align:left;align-items:center;padding:9px 12px;font-size:16px}#treatment-actions button small{color:var(--muted);margin-left:10px;font-size:13px}#treatment-actions button:first-child{border-color:#8a7b58}#action-progress{margin:12px 0;padding:14px;background:#232c23}#action-progress>div{display:flex;justify-content:space-between;font-size:14px}progress{width:100%;height:5px;border:0;background:#3a4436;accent-color:var(--brass);display:block;margin:10px 0}progress::-webkit-progress-value{background:var(--brass)}progress::-webkit-progress-bar{background:#3a4436}#cancel-action{font-size:13px;min-height:28px;padding:2px 8px}.patient-footer{display:flex;gap:8px;margin-top:13px}.patient-footer button{flex:1;font-size:15px;padding:10px 8px}#handover{margin-top:10px}#mission-idle h2{font-size:24px;margin:10px 0 16px}#mission-idle p{color:var(--muted)}#idle-objectives{margin:25px 0}#idle-objectives>div{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--rule)}#idle-objectives p{font-size:15px}.bag{border-block:1px solid var(--rule);margin-top:24px}.bag>button{border:0;display:flex;width:100%;align-items:center;gap:10px;padding:13px 0}.bag svg{width:22px}.bag strong{font-weight:400}.bag #bag-total{margin-left:auto;font-size:14px;color:var(--muted)}#bag-content{padding-bottom:15px}#bag-content>div{display:flex;justify-content:space-between;font-size:15px;color:var(--muted);padding:5px 0}#bag-content strong{color:var(--chalk)}[hidden]{display:none!important}#pause-shade{position:absolute;inset:0;background:#0a100ddd;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px}#pause-shade h2{font-size:28px}#pause-shade p{color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);max-width:calc(100% - 40px);background:var(--chalk);color:var(--bg);padding:12px 22px;font-size:17px;box-shadow:0 10px 35px #0006;opacity:0;pointer-events:none;z-index:20;transition:opacity .18s,transform .18s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{max-width:650px;width:calc(100% - 36px);max-height:85dvh;border:0;border-radius:4px;background:var(--panel);color:var(--chalk);padding:30px;box-shadow:0 25px 90px #0008}dialog::backdrop{background:#080e0aca}dialog h2{font-size:27px;margin:0 0 25px}dialog h3{font-size:20px;margin:25px 0 9px}dialog p{font-size:17px;color:var(--muted);margin:0 0 14px}.dialog-close{position:absolute;top:15px;right:15px;border:0}.dialog-buttons{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}#debrief h2{font-size:28px;margin:8px 0 12px}#debrief>p{color:var(--muted)}.outcome{border-block:1px solid var(--rule);padding:18px 0;margin:22px 0}.outcome>strong{font-size:46px;color:var(--brass);font-weight:400}.outcome>span{display:block;color:var(--muted)}.debrief-patient{padding:15px 0;border-bottom:1px solid var(--rule)}.debrief-patient h3{font-size:21px}.debrief-patient p{font-size:15px;color:var(--muted);margin-top:7px}.debrief-patient .outcome-tag{font-size:12px;color:var(--green);text-transform:uppercase;letter-spacing:.09em}.replay-control{margin:25px 0}.replay-control label{display:flex;justify-content:space-between}.replay-control input{width:100%;accent-color:var(--brass);margin:15px 0}.replay-control p{font-size:14px;color:var(--muted)}.event-log{max-height:190px;overflow-y:auto;margin-bottom:20px}.event-log>div{padding:6px 0;display:flex;gap:12px;font-size:14px}.event-log time{color:var(--brass);font-variant-numeric:tabular-nums}.event-log span{color:var(--muted)}.source-footer{margin-top:18px;font-size:13px}.warning{color:var(--red)!important}.credits-page{max-width:760px;margin:60px auto;padding:25px}.credits-page h1{margin:20px 0}.credits-page p{margin:15px 0;color:var(--muted)}
@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 390px}.side-panel{padding:32px}#patient-body{height:340px}.mission-strip{padding-block:24px}}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 305px}.side-panel{padding:23px 18px}.masthead{padding:0 20px}.radio-line{flex-wrap:wrap;padding:14px 18px;gap:8px}.radio-line p{flex-basis:70%}.radio-line button{margin-left:25px;min-height:36px;padding:5px 10px}.evac-shortcut{flex-direction:column;gap:3px!important}.evac-shortcut span{font-size:12px}.command-bar button{padding:12px 10px;gap:8px}.casualty-shortcut small{font-size:12px}.command-bar .callout{width:27px;height:27px}.casualty-shortcut svg{display:none}.mission-strip{padding:18px}.sector{display:none}}
@media(max-width:760px){.masthead{height:62px;padding:0 15px}.wordmark{font-size:19px}.wordmark i{font-size:11px;padding-left:11px;margin-left:9px;letter-spacing:.14em}.header-actions{gap:1px}#guide-button{font-size:0;padding:8px;width:40px}#guide-button:after{content:'?';font-size:20px}.header-actions .icon-button{width:37px}.workspace{display:flex;flex-direction:column}.mission-strip{padding:15px 17px}.mission-strip h1{font-size:23px}.mission-strip #objective{font-size:14px;max-width:260px}.mission-clock strong{font-size:27px}.mission-clock span{font-size:11px}#game-wrap{height:53dvh;min-height:350px;max-height:620px}.map-top,.map-bottom{left:12px;right:12px}.map-top{top:11px;justify-content:flex-end}.map-bottom{bottom:10px}.map-bottom>span:first-child{font-size:12px}.command-bar{grid-template-columns:1fr 1fr 70px}.command-bar button{padding:13px 10px}.casualty-shortcut strong{font-size:18px}.casualty-shortcut small{font-size:12px}.command-bar .callout{width:25px;height:25px;font-size:12px}.radio-line{min-height:76px;padding:12px 17px}.radio-line p{font-size:14px}.radio-line button{margin-left:25px;min-height:34px}.side-panel{max-height:none;overflow:visible;border-left:0;border-top:1px solid var(--rule);padding:25px 22px}.brief-title{margin-top:0}.brief-title h2{font-size:26px}.brief-facts{justify-content:space-between}.brief-steps{font-size:18px}#patient-body{height:320px;max-width:340px;margin-inline:auto}#body-canvas{margin-left:25px}.finding-box p{font-size:17px}.patient-heading h2{font-size:26px}#treatment-actions{grid-template-columns:1fr 1fr}#treatment-actions button{font-size:16px;min-height:48px}.patient-footer button{font-size:18px;min-height:48px}.bag{margin-top:22px}.panel-footer{padding-top:23px}#toast{bottom:15px;width:max-content;font-size:16px}dialog{padding:26px 22px}.replay-control input{height:30px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:400px){.wordmark i{display:none}.mission-strip #objective{max-width:205px}.command-bar{grid-template-columns:1fr 1fr 62px}.command-bar button{padding-inline:7px}.command-bar .callout{width:23px;height:25px}.casualty-shortcut strong{font-size:17px}.radio-line button{margin-left:0}#treatment-actions{grid-template-columns:1fr}.mission-strip h1{font-size:27px}}

/* Last Light: field interface */
html{scrollbar-color:#626952 var(--bg)}
button:disabled:hover{border-color:var(--rule);background:transparent}
.primary:disabled:hover{background:var(--brass)}
.masthead{height:66px}.workspace{min-height:calc(100dvh - 66px)}
.wordmark{font-size:24px}.side-panel{max-height:calc(100dvh - 66px)}
.brief-title{margin:3px 0 22px}.brief-title h2{font-size:25px;line-height:1.35}
#briefing .brief-order{margin-top:15px;color:var(--chalk)}
.brief-tactic{padding-block:16px 22px;font-size:15px!important;line-height:1.45!important}
.difficulty-selector{border:0;padding:0;margin:0;display:grid;gap:8px}.difficulty-selector legend{margin-bottom:8px}
.difficulty-selector label{position:relative;display:block;cursor:pointer}.difficulty-selector input{position:absolute;inset-inline-start:12px;top:13px;accent-color:var(--brass);width:16px;height:16px;margin:0}
.difficulty-selector label>span{display:block;padding:9px 12px 9px 38px;border:1px solid var(--rule);font-size:18px}
.difficulty-selector small{display:block;color:var(--muted);font-size:14px}.difficulty-selector input:checked+span{border-color:var(--brass);background:#d2b77b0a}.difficulty-selector input:focus-visible+span{outline:2px solid var(--brass);outline-offset:3px}
.mode-selector{margin-bottom:19px}.brief-facts{margin-block:22px}.brief-facts span{font-size:11px}
.map-tools{display:flex;gap:6px;pointer-events:auto}.map-button{min-height:44px;padding:8px 12px}.map-button[aria-pressed=true]{border-color:var(--brass);color:var(--brass);background:#20271feb}
.map-top{align-items:flex-start}.sector{max-width:42%;line-height:1.3}
#game-wrap{isolation:isolate;height:calc(100dvh - 300px)}
.threat-banner{position:absolute;left:50%;top:70px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:9px 15px;background:#292517ed;color:#ecd9a4;border:1px solid #c1a56d;font-size:15px;text-align:center;pointer-events:none;line-height:1.25}
.threat-banner[data-phase=active]{background:#301c17f2;color:#f5c6b6;border-color:#ca8070}
#field-controls{position:absolute;inset:0;pointer-events:none}.movement-buttons{position:absolute;right:20px;bottom:56px;display:flex;gap:7px;pointer-events:auto}.movement-buttons button{background:#111912e8}
#thumbpad{position:absolute;left:18px;bottom:52px;width:88px;height:88px;border:1px solid #b4b99a88;border-radius:50%;background:#172019b8;touch-action:none;pointer-events:auto;display:none;user-select:none}
#thumbpad svg{position:absolute;inset:4px;width:78px;height:78px;stroke:#dedbc3;stroke-width:1.3;fill:none;pointer-events:none}
#thumbstick{position:absolute;left:28px;top:28px;width:30px;height:30px;background:#d2b77bc9;border:1px solid #f0dbad;border-radius:50%;pointer-events:none}
#stamina-wrap{position:absolute;bottom:108px;right:21px;width:104px;pointer-events:none;background:#111912dd;padding:4px 7px}
#stamina-wrap label{font-size:11px;letter-spacing:.1em;color:#dedfcf}#stamina{height:3px;margin:3px 0 2px}
#pause-shade{z-index:9;text-align:center;padding:20px}.map-bottom .north{margin-left:auto}
#patient-speech{font-size:17px;line-height:1.3;color:#d7dbc9;margin:13px 0 6px;padding:0;font-style:italic}
#patient-body{height:245px;background:radial-gradient(ellipse at 40% 45%,#404a3333,transparent 68%)}


.patient-heading #close-patient{font-size:13px;border-color:var(--rule);padding:6px 9px;min-width:68px}
.patient-proximity{min-height:36px;font-size:15px;line-height:1.3}
.finding-box h3{line-height:1.18;margin-bottom:7px}.finding-box p{min-height:0}
#clinical-observations{padding:11px 0;border-top:1px solid var(--rule);margin-bottom:12px}
#clinical-observations>div{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin:3px 0}
#clinical-observations span{color:var(--muted);text-transform:capitalize}#clinical-observations strong{font-weight:400;text-align:right}
#clinical-observations .observation-heading{font-size:15px;margin-bottom:8px;color:var(--brass)}#clinical-observations time{font-variant-numeric:tabular-nums}
#clinical-observations p{font-size:14px;color:var(--muted)}
#treatment-actions button{min-height:44px;gap:8px}#treatment-actions button small{white-space:nowrap;font-variant-numeric:tabular-nums}
#action-progress{position:sticky;bottom:0;z-index:3;border:1px solid #796f51;background:#20291ff7;margin-bottom:8px;padding:12px}
#cancel-action{min-height:36px;margin-top:3px}#action-meter{height:4px}
#take-cover{margin-top:9px}.care-note{color:var(--muted);font-size:14px;line-height:1.3;margin-top:10px}
#mission-idle .field-instruction{font-size:15px;margin-bottom:23px}.panel-footer{letter-spacing:.08em}
.decision-review{margin-block:23px}.decision-review h3{font-family:Cinzel,serif;font-size:18px}.decision-review ul{padding-left:20px;font-size:15px;color:var(--muted)}.decision-review li{margin-block:10px;padding-left:2px}.decision-review li::marker{color:var(--brass)}
.mission-record{margin:16px 0 22px}.mission-record summary{cursor:pointer;padding:10px 0;color:var(--brass);font-size:16px}.event-log{margin-top:10px;max-height:250px}
#export{margin-top:9px}#debrief .treatment-record{font-size:13px;color:#b9bea9}
#toast{bottom:20px;max-width:min(580px,calc(100% - 32px));line-height:1.3;z-index:30}
body.is-playing .mission-strip{padding-block:14px}
@media(pointer:coarse){#thumbpad{display:block}}
@media(min-width:1500px){#patient-body{height:290px}.side-panel{padding:28px 30px}}
@media(max-width:1050px){.map-tools{gap:5px}.map-button{font-size:13px;padding:7px 9px}.sector{display:none}.map-top{justify-content:flex-end}.radio-line{min-height:72px}.radio-line button{min-height:44px;margin-left:0}}
@media(max-width:760px){
 .masthead{height:56px;padding:0 12px}.wordmark{font-size:20px}.wordmark i{font-size:11px}.header-actions .icon-button{width:36px}.header-actions{gap:0}
 .workspace{min-height:calc(100dvh - 56px)}.mission-strip{padding:12px 16px}.mission-strip h1{font-size:24px}.mission-strip #objective{font-size:14px;line-height:1.15}
 #game-wrap{height:48dvh;min-height:290px}.side-panel{padding:23px 20px;max-height:none}.brief-title h2{font-size:28px}
 #patient-body{height:205px;max-width:320px;margin-block:7px}#body-canvas{margin-left:18px}
 .map-top{top:9px;left:10px;right:10px}.map-tools .map-button{min-height:38px;font-size:12px;padding:6px 9px}.threat-banner{top:56px;font-size:13px;max-width:calc(100% - 20px);padding:7px 10px}
 .movement-buttons{right:12px;bottom:42px;flex-direction:column;gap:5px}.movement-buttons button{min-height:40px;font-size:13px;min-width:58px}
 #stamina-wrap{right:12px;bottom:133px;width:60px;padding:3px 5px}#stamina-wrap label{font-size:11px;letter-spacing:0}
 #thumbpad{width:82px;height:82px;left:13px;bottom:43px}#thumbpad svg{inset:2px;width:76px;height:76px}#thumbstick{left:25px;top:25px}
 .map-bottom{bottom:8px;left:10px;right:10px}.map-bottom>span:first-child{font-size:11px;padding:5px 8px;max-width:88%}.north svg{height:18px}.north{font-size:11px}
 .command-bar{grid-template-columns:1fr 1fr 70px;flex-shrink:0}.command-bar button{padding:9px 8px;gap:7px;min-height:60px}.casualty-shortcut strong{font-size:17px}.casualty-shortcut small{font-size:12px;line-height:1.1}.command-bar .callout{width:24px;height:27px}
 .radio-line{padding:8px 12px;gap:8px;flex-wrap:nowrap;min-height:56px;flex-shrink:0}.radio-line strong,.radio-dot{display:none}.radio-line p{font-size:13px;line-height:1.2;flex-basis:auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.radio-line button{font-size:12px;padding:5px 8px;min-height:38px;max-width:100px;line-height:1.15}
 body.is-playing{height:100dvh;overflow:hidden}body.is-playing .workspace{height:calc(100dvh - 56px);min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body.is-playing .operations{flex:1;min-height:302px;overflow:hidden}body.is-playing .mission-strip{padding:7px 12px;flex-shrink:0;min-height:56px}
 body.is-playing .mission-strip h1{font-size:20px}body.is-playing .mission-strip #objective{font-size:12px;margin-top:3px;max-width:230px}
 body.is-playing .mission-clock strong{font-size:24px}body.is-playing .mission-clock span{font-size:11px;letter-spacing:.09em}
 body.is-playing #game-wrap{flex:1;min-height:130px;max-height:none;height:auto}
 body.is-playing .side-panel{display:none}
 body.is-playing.panel-open .side-panel{display:flex;flex:0 1 44dvh;max-height:44dvh;min-height:150px;overflow-y:auto;padding:15px 18px 20px;overscroll-behavior:contain;border-top:1px solid #a38e5e;scrollbar-gutter:stable}
 body.is-playing.panel-open .patient-heading{position:sticky;top:-15px;background:var(--panel);z-index:5;padding-block:10px;margin-top:-10px}
 body.is-playing.panel-open .patient-heading h2{font-size:23px}.patient-proximity{min-height:0;margin-top:8px;font-size:14px}
 #patient-speech{font-size:15px;margin:10px 0 3px}#treatment-actions{grid-template-columns:1fr 1fr}#treatment-actions button{min-height:45px;font-size:15px;padding:8px;gap:5px}#treatment-actions button small{font-size:12px;margin-left:0}
 .finding-box{margin-bottom:12px;padding-top:10px}.finding-box h3{font-size:21px}.finding-box p{font-size:15px}.patient-footer button{min-height:44px;font-size:16px}
 .bag{margin-top:17px}.panel-footer{padding-top:18px}.panel-footer button{min-height:40px}
 body.is-playing.panel-open .movement-buttons{bottom:36px;flex-direction:row}.is-playing.panel-open #thumbpad{bottom:36px;transform:scale(.85);transform-origin:bottom left}.is-playing.panel-open #stamina-wrap{bottom:82px;width:104px}
 body.is-debrief #game-wrap{height:40dvh;min-height:260px}.is-debrief .mission-strip{padding-block:10px}.is-debrief .radio-line{display:none}
 #toast{bottom:12px;font-size:15px;width:max-content;padding:10px 15px}
}
@media(max-width:390px){.wordmark i{display:none}.command-bar{grid-template-columns:1fr 1fr 58px}.command-bar button{padding-inline:6px;gap:5px}.casualty-shortcut small{font-size:11px}#treatment-actions{grid-template-columns:1fr}.mission-strip #objective{max-width:195px}body.is-playing .mission-strip #objective{max-width:205px}.threat-banner{font-size:12px}}
@media(max-height:600px) and (orientation:landscape){
 body.is-playing{height:100dvh;overflow:hidden}.masthead{height:48px}.wordmark{font-size:18px}.wordmark i{font-size:11px}
 body.is-playing .workspace{height:calc(100dvh - 48px);min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 290px;overflow:hidden}
 body.is-playing .operations{height:100%;min-height:0}body.is-playing #game-wrap{height:auto;flex:1;min-height:90px}
 body.is-playing .mission-strip{padding:6px 12px;min-height:46px}body.is-playing .mission-strip h1{font-size:19px}.mission-strip #objective{font-size:12px}
 body.is-playing .side-panel,body.is-playing.panel-open .side-panel{display:flex;max-height:100%;height:100%;min-height:0;border-left:1px solid var(--rule);overflow:auto;padding:14px}
 .command-bar button{min-height:48px;padding-block:5px}.command-bar small{font-size:11px}.radio-line{min-height:43px;padding:5px 10px}.radio-line p{font-size:12px}.radio-line button{min-height:34px}
 #thumbpad{transform:scale(.7);transform-origin:bottom left;bottom:30px}.movement-buttons{bottom:32px;right:10px;flex-direction:row}.movement-buttons button{min-height:36px}#stamina-wrap{bottom:74px;right:10px}
 .threat-banner{top:51px;font-size:12px;padding:5px 8px}.map-top{top:7px}.map-tools .map-button{min-height:34px}#patient-body{height:190px}
}

@media(max-height:360px) and (orientation:landscape){.threat-banner{display:none!important}.is-playing .radio-line p{color:var(--chalk)}}

/* Clip the rendered street, while map options can extend over the command row. */
#game-wrap{overflow:visible}
#game{overflow:hidden}
/* Care follows MARCH PAWS; secondary field tools stay within the map menu. */
.map-top{z-index:4}
.map-options{position:relative;pointer-events:auto}
.map-options>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:76px;min-height:44px;padding:8px 12px;border:1px solid #747a66;border-radius:var(--radius);background:#101512ef;color:var(--chalk);font-size:14px;cursor:pointer;list-style:none}
.map-options>summary::-webkit-details-marker{display:none}
.map-options>summary::after,.care-detail>summary::after{content:'';width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);flex-shrink:0;margin-top:-3px}
.map-options[open]>summary{border-color:var(--brass);color:var(--brass)}
.map-options[open]>summary::after,.care-detail[open]>summary::after{transform:rotate(225deg);margin-top:3px}
.map-options .map-tools{position:absolute;top:calc(100% + 6px);right:0;display:flex;flex-direction:column;gap:4px;min-width:150px;padding:5px;background:#101512f7;border:1px solid var(--rule)}
.map-options .map-button{min-height:44px;width:100%;font-size:14px;text-align:left}
summary:focus-visible{outline:2px solid var(--brass);outline-offset:4px}
.care-family{display:flex;align-items:center;gap:3px;margin-top:14px;border-bottom:1px solid var(--rule)}
.care-family button{min-height:44px;padding:8px 13px;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);font-size:16px;letter-spacing:.06em;font-weight:600}
.care-family button[aria-pressed=true]{color:var(--brass);border-bottom-color:var(--brass);background:transparent}
#care-progress{margin-left:auto;padding-left:8px;color:var(--muted);font-size:12px;line-height:1.2;text-align:right}
#care-stages{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;border-bottom:1px solid var(--rule)}
#care-stages button{min-width:0;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 2px 8px;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted)}
#care-stages button strong{position:relative;display:block;font:600 20px/1 Cinzel,serif}
#care-stages button span{display:block;font-size:12px;line-height:1.15;white-space:nowrap}
#care-stages button[data-status=reviewed] strong::after{content:'';position:absolute;right:-9px;top:2px;width:6px;height:4px;border-left:1px solid var(--green);border-bottom:1px solid var(--green);transform:rotate(-45deg)}
#care-stages button[data-status=attention] strong::after{content:'';position:absolute;right:-9px;top:2px;width:5px;height:5px;background:var(--red);border-radius:50%}
#care-stages button[aria-pressed=true],#care-stages button[aria-current=step]{border-bottom-color:var(--brass);color:var(--brass);background:#d2b77b0a}
#care-stage-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:16px 0 10px}
#stage-title{font-size:21px;line-height:1.15;font-weight:600}
#stage-status{flex-shrink:0;max-width:95px;color:var(--muted);font-size:12px;text-align:right;line-height:1.2}
#stage-status[data-status=attention]{color:var(--red)}
#stage-status[data-status=reviewed]{color:var(--green)}
#care-priority{padding:10px 0;margin:0 0 10px;border-block:1px solid #744e3f;color:#edbaaa;font-size:15px;line-height:1.25}
#return-m{display:block;min-height:44px;border:0;padding:8px 0 4px;color:#edbaaa;font-size:15px;text-decoration:underline;text-underline-offset:4px}
.finding-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;border:0;padding:0;margin-bottom:13px}
.finding-box h3{font-size:18px;line-height:1.2;margin:0;font-weight:400}
.finding-box>span{align-self:baseline;max-width:100px;text-align:right;font-size:11px;letter-spacing:.05em;line-height:1.3}
.finding-box p{grid-column:1/-1;line-height:1.35;font-size:15px}
#treatment-actions{gap:6px}
#treatment-actions button:first-child{border-color:#8a7b58}
.care-next{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-radius:0;padding:9px 0;min-height:44px;margin-top:5px;color:var(--muted);font-size:15px;text-align:left}
.care-next svg{width:18px;height:18px}
.patient-footer{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px;padding-top:13px;border-top:1px solid var(--rule)}
.patient-footer button{flex:1 1 110px;min-height:44px;font-size:15px;line-height:1.2;padding:10px 9px}
.patient-footer #handover,.patient-footer #take-cover{margin-top:0}
.care-note:empty{display:none}
.care-detail{margin-top:13px;border-top:1px solid var(--rule)}
.care-detail+.care-detail{margin-top:0}
.care-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 0;color:var(--muted);font-size:15px;cursor:pointer;list-style:none}
.care-detail>summary::-webkit-details-marker{display:none}
.care-detail[open]>summary{color:var(--brass)}
#patient-body{margin:0 auto 12px;height:245px;background:none}
#body-canvas{margin-inline:auto;max-width:100%;object-fit:contain}
#clinical-observations{padding:0 0 11px;border:0;margin:0}
#clinical-observations .observation-heading{margin-top:0}
#cancel-action,.panel-footer button{min-height:44px}
.header-actions .icon-button,#guide-button{min-width:44px}
@media(max-width:760px){
 .header-actions .icon-button,#guide-button{width:44px;padding-inline:8px}
 .map-options>summary{min-height:44px;font-size:13px;padding:8px 10px;min-width:70px}
 .map-options .map-button{min-height:44px;font-size:14px;padding:8px 10px}
 .movement-buttons button,.radio-line button{min-height:44px}
 .care-family{margin-top:10px}
 .care-family button{padding-inline:12px;font-size:15px}
 #care-stages button{min-height:56px;padding-block:6px}
 #care-stage-heading{margin-block:12px 9px}
 #stage-title{font-size:20px}
 .finding-box{padding:0;margin-bottom:11px}
 .finding-box h3{font-size:18px}
 .finding-box p{font-size:15px}
 .patient-footer button{font-size:15px}
 #patient-body{height:230px;margin:0 auto 12px}
 #body-canvas{margin-inline:auto}
 #stamina-wrap{bottom:141px}
 .is-playing.panel-open #stamina-wrap{bottom:86px}
 .panel-footer button{min-height:44px}
}
@media(max-width:430px){.wordmark i{display:none}}
@media(max-width:390px){#treatment-actions{grid-template-columns:1fr}}
@media(max-height:600px) and (orientation:landscape){
 .map-options>summary,.map-options .map-button,.movement-buttons button,.radio-line button{min-height:44px}
 .map-options>summary{padding-block:6px}
 #patient-body{height:190px}
 #care-stages button span{font-size:11px}
 #stage-title{font-size:19px}
 #stamina-wrap{bottom:82px}
}

/* Clinical demo: progressive choices within the existing care sequence. */
.mission-ability{display:inline-block;vertical-align:middle;font:600 12px/1.2 Barlow,sans-serif;letter-spacing:.09em;color:var(--brass);border:1px solid #74674c;padding:4px 6px;margin-left:7px}
.ability-selector,.case-selector{border:0;padding:0;margin:20px 0 0;display:grid;gap:7px}
.ability-selector{grid-template-columns:repeat(4,minmax(0,1fr))}
.ability-selector legend,.case-selector legend{padding:0;margin-bottom:9px;color:var(--chalk);font-size:16px}
.ability-selector label,.case-selector label{position:relative;cursor:pointer;min-width:0}
.ability-selector input,.case-selector input{position:absolute;opacity:0;inset:0;pointer-events:none}
.ability-selector label>span,.case-selector label>span{display:block;border:1px solid var(--rule);min-height:54px;padding:8px 6px;line-height:1.25}
.ability-selector label>span{text-align:center;font-size:17px;font-weight:600}
.ability-selector small,.case-selector small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:3px}
.ability-selector input:checked+span,.case-selector input:checked+span{border-color:var(--brass);background:#d2b77b0b;color:var(--brass)}
.ability-selector input:focus-visible+span,.case-selector input:focus-visible+span{outline:2px solid var(--brass);outline-offset:3px}
#briefing .selection-description{font-size:14px;line-height:1.35;margin-top:9px;color:var(--muted)}
.case-selector{grid-template-columns:1fr 1fr;margin-bottom:21px}
.case-selector label:first-of-type{grid-column:1/-1}
.case-selector label>span{padding:9px 10px;font-size:15px}
.case-selector label:first-of-type>span{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.case-selector label:first-of-type small{margin-top:0;text-align:right}
.action-groups{display:flex;gap:5px;border-bottom:1px solid var(--rule);padding-bottom:7px;margin-bottom:9px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.action-groups button{flex:1 0 auto;min-height:44px;white-space:nowrap;font-size:14px;padding:8px 10px;border-color:transparent}
.action-groups button[aria-pressed=true]{color:var(--brass);border-color:#89764f;background:#d2b77b0a}
#treatment-actions button{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:3px;align-items:start}
#treatment-actions button>span:first-child{grid-column:1;grid-row:1;min-width:0;overflow-wrap:break-word;line-height:1.3}
#treatment-actions button>small{grid-column:2;grid-row:1;white-space:nowrap;margin:1px 0 0;line-height:1.3}
#treatment-actions button:disabled{opacity:1;color:#a6ac9e;border-color:#333c32;background:#10151230}
#treatment-actions button:disabled>small{color:#858e80}
#treatment-actions .action-reason{grid-column:1/-1;display:block;font-size:12px;line-height:1.25;color:#a3ab9a;font-weight:400;padding-top:2px}
#ventilation-status{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #8f7950;background:#d2b77b09;padding:10px;margin-top:11px}
#ventilation-status p{font-size:14px;line-height:1.25}
#ventilation-status strong{display:block;color:var(--brass);font-weight:600}
#ventilation-status p>span{display:block;color:var(--muted);font-size:13px;margin-top:3px}
#release-bvm{min-height:44px;flex-shrink:0;padding:7px 9px;font-size:14px;border-color:#8f7950}
.patient-footer{position:sticky;bottom:-1px;z-index:4;background:var(--panel);padding-block:10px;box-shadow:0 -7px 12px #181e19d9}
.side-panel{scrollbar-gutter:stable}
@media(max-width:760px){
 .mission-ability{font-size:11px;padding:3px 5px;margin-left:4px}
 #treatment-actions{grid-template-columns:1fr}
 #treatment-actions button{min-height:48px;padding:10px 11px;font-size:16px}
 #treatment-actions button>small{font-size:13px}
 #treatment-actions .action-reason{font-size:13px}
 .patient-footer{bottom:-20px;padding-bottom:12px}
 .ability-selector label>span{padding-block:10px}
}
@media(min-width:761px) and (max-width:1050px){
 .action-groups button{font-size:13px;padding-inline:8px}
 .ability-selector{gap:5px}.ability-selector label>span{padding-inline:3px}
}

/* Terrain selection uses the actual playable map, not promotional artwork. */
.environment-selector{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:22px 0 10px;padding:0;border:0}
.environment-selector legend{padding:0 0 9px;font-size:15px;color:var(--muted)}
.environment-selector label{position:relative;cursor:pointer;min-width:0}
.environment-selector input{position:absolute;opacity:0;width:1px;height:1px}
.environment-selector label>span{display:block;overflow:hidden;border:1px solid var(--rule);background:#171e19;transition:border-color .15s}
.environment-selector img{display:block;width:100%;height:78px;object-fit:cover;opacity:.75}
.environment-selector strong,.environment-selector small{display:block;padding-inline:10px}
.environment-selector strong{padding-top:7px;font-size:17px;font-weight:500;color:var(--chalk)}
.environment-selector small{padding-bottom:9px;color:var(--muted);font-size:13px}
.environment-selector input:checked+span{border-color:var(--brass);box-shadow:inset 0 -2px var(--brass)}
.environment-selector input:checked+span img{opacity:1}
.environment-selector input:focus-visible+span{outline:2px solid var(--brass);outline-offset:3px}
.environment-selector label:hover>span{border-color:#a18c61}
@media(prefers-reduced-motion:reduce){.environment-selector label>span{transition:none}}

/* Unavailable care remains focusable so touch and keyboard users can inspect why. */
#treatment-actions button[aria-disabled="true"]{opacity:1;color:#a6ac9e;border-color:#333c32;background:#10151230;cursor:help}
#treatment-actions button[aria-disabled="true"]>small{color:#858e80}
#treatment-actions button[aria-disabled="true"]:hover{border-color:var(--brass)}
#treatment-warning{border:1px solid var(--brass);max-width:520px}
#treatment-warning-message{color:var(--cream,#eee8d8);border-left:3px solid var(--brass);padding-left:14px;margin-block:20px}
#treatment-warning-context:empty{display:none}

/* Examination prompts retain the existing field-notebook geometry. */
#treatment-actions .action-prompt{grid-column:1/-1;grid-row:2;display:block;font-size:.78rem;font-weight:400;line-height:1.45;color:var(--muted,#a5aaa7);text-transform:none;letter-spacing:normal;margin:.4rem 0}

/* Readable action cards and distinct current observations on narrow tablet panels. */
#treatment-actions button{min-width:0;grid-template-columns:minmax(0,1fr) max-content}
#treatment-actions .action-reason{grid-row:3}
#finding-text.latest-finding,.radio-line p.latest-update{color:var(--brass)}
.finding-history{margin:0 0 16px;color:var(--muted);font-size:14px;grid-column:1/-1}
.finding-history summary{cursor:pointer;padding:8px 0;min-height:40px}
.finding-history ol{list-style:none;padding:0;margin:0}
.finding-history li{padding:10px 0;border-top:1px solid var(--rule)}
.finding-history time{font-variant-numeric:tabular-nums;margin-right:6px}
.finding-history p{margin-top:5px;line-height:1.4}
.side-panel{min-width:0;scroll-padding-block:18px 100px}
.patient-footer{position:static;box-shadow:none}
@media(min-width:761px) and (min-height:501px){
 body.is-playing{height:100dvh;overflow:hidden}
 body.is-playing .masthead{height:66px;flex-shrink:0}
 body.is-playing .workspace{height:calc(100dvh - 66px);min-height:0;overflow:hidden}
 body.is-playing .operations{height:100%;min-height:0;display:flex;flex-direction:column}
 body.is-playing #game-wrap{flex:1;min-height:0;height:auto}
 body.is-playing .side-panel{height:100%;max-height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain}
}


/* Keep the canvas independent of flex content sizing when care opens or rotates. */
#game{position:absolute;inset:0}
@media(max-width:760px) and (orientation:portrait){
 body.is-playing .operations{min-height:420px}
 body.is-playing #game-wrap{min-height:240px}
 body.is-playing.panel-open .side-panel{flex-basis:36dvh;max-height:44dvh;min-height:120px}
 body.is-playing .movement-buttons{bottom:36px;flex-direction:row}
 body.is-playing #stamina-wrap{bottom:88px;width:104px}
 body.is-playing #thumbpad{bottom:36px}
 body.is-playing .map-bottom>span:first-child{max-width:calc(100% - 28px)}
}
@media(max-width:760px) and (max-height:650px) and (orientation:portrait){
 body.is-playing{height:auto;overflow:auto}
 body.is-playing .workspace{height:auto;overflow:visible}
 body.is-playing .operations{flex:none}
 body.is-playing #game-wrap{height:240px;flex:none}
 body.is-playing.panel-open .side-panel{flex:none;height:44dvh}
}

/* The same owner-supplied artwork and crop used on the main Machaon page. */
.masthead .wordmark{display:inline-flex;align-items:center;flex-shrink:0;line-height:1;text-decoration:none;letter-spacing:normal;gap:0}
.machaonWordmark{position:relative;display:inline-block;width:6.88em;height:1em;overflow:hidden;line-height:1;flex-shrink:0}
.machaonWordmark>img{position:absolute;display:block;width:111.63%;max-width:none;height:auto;left:-5.81%;top:-30%;margin:0;border:0;border-radius:0;opacity:1;filter:contrast(1.14);mix-blend-mode:screen;pointer-events:none}

.machaonMotto{color:#d6c08a;text-shadow:none}

/* Bedside camera controls stay outside the casualty at the centre of the map. */
.camera-controls{position:absolute;right:12px;top:76px;display:flex;flex-direction:column;gap:4px;z-index:15}
.camera-controls[hidden]{display:none}
.camera-controls button{width:44px;height:44px;border:1px solid #8d8062;background:#101512eb;color:var(--chalk);font:24px/1 sans-serif;cursor:pointer}
.camera-controls button:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.treatment-camera #thumbpad,.treatment-camera #stamina-wrap{visibility:hidden}
.treatment-camera #location{max-width:calc(100% - 115px)}
@media(max-height:450px){.camera-controls{top:64px;flex-direction:row}}

#action-progress .action-controls{display:flex;gap:8px;margin-top:8px}
#action-progress .action-controls button{min-height:44px;flex:1}

/* Bedside controls have their own lane, away from movement and compass controls. */
.treatment-camera .movement-buttons{display:none}
@media(max-width:760px) and (orientation:portrait){
 body.is-playing{height:auto;overflow-y:auto}
 body.is-playing .workspace{height:auto;min-height:0;overflow:visible}
 body.is-playing .operations{flex:none;min-height:0;overflow:visible}
 body.is-playing #game-wrap{height:clamp(240px,38dvh,360px);min-height:240px;flex:none}
 body.is-playing.panel-open .side-panel{flex:none;height:auto;max-height:none;min-height:0;overflow:visible;padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 .camera-controls{top:68px;right:12px}
 .treatment-camera .map-bottom{right:70px}
}

/* Put the phone briefing and entry controls before the map, including during loading. */
@media(max-width:760px){
 body:not(.is-playing):not(.is-debrief) .workspace{display:flex;flex-direction:column}
 body:not(.is-playing):not(.is-debrief) .side-panel{order:-1;max-height:none;overflow:visible}
}

/* HISTORICA selection entry. Keep existing mission selector and controls unchanged. */
.historica-entry{border:1px solid #655e48;background:#1d241e;padding:12px 14px;margin:12px 0 18px;display:flex;flex-direction:column;gap:4px}
.historica-entry a{color:var(--brass);font-family:Cinzel,serif;font-size:15px;text-decoration:none;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:36px}
.historica-entry a:hover{text-decoration:underline}
.historica-entry a:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
.historica-entry small{font-size:13px;color:var(--muted);line-height:1.4}

/* Extraction is copied after the shared academy transforms. */
footer .machaonMotto{font-size:calc(1em + 2px)}

