:root{color:#1a1814;background:#f7f4ef;font-family:Segoe UI,Helvetica Neue,sans-serif;font-size:1.0625rem;line-height:1.45}body{margin:0}#app{box-sizing:border-box;max-width:76rem;margin:0 auto;padding:1rem 1rem 2.5rem}h1,h2,h3{font-weight:650;line-height:1.25;scroll-margin-top:1rem}h1{font-size:1.6rem;margin:.2rem 0 .5rem}h2{font-size:1.2rem;margin:0 0 .6rem}h3{font-size:1.05rem;margin:0 0 .35rem}p{margin:0 0 .75rem}.kicker,.study,.label{font-size:.95rem}.fast-clock{margin:0 0 1rem;padding:.75rem .9rem;border:2px solid #6e1220;background:#fffdf8;color:#1a1814;font-weight:700}.disclaimer{margin:0 0 1rem;padding:.75rem .9rem;border:2px solid #1a1814;background:#fffdf8}.skip{position:absolute;left:.5rem;top:-4rem;background:#12315c;color:#fff;padding:.5rem .75rem;z-index:2}.skip:focus{top:.5rem}button,input,select{font:inherit;color:#1a1814;background:#fffdf8;touch-action:manipulation}button{min-height:44px;min-width:44px;padding:.4rem .8rem;border:2px solid #12315c;background:#12315c;color:#fff;cursor:pointer}button[aria-pressed=true]{background:#0d3b2e;border-color:#0d3b2e}button:disabled{background:#e4e0d8;color:#3a372f;border-color:#3a372f;cursor:not-allowed}input,select{display:block;width:100%;max-width:28rem;min-height:44px;margin-top:.25rem;padding:.35rem .5rem;border:2px solid #1a1814;box-sizing:border-box;font-size:1rem}input[type=checkbox]{display:inline-block;width:1.25rem;min-width:1.25rem;max-width:none;min-height:1.25rem;margin:0;padding:0;flex:0 0 auto}label:has(input[type=checkbox]){display:flex;align-items:center;gap:.65rem}label{display:block;margin:0 0 .8rem}:focus-visible{outline:3px solid #0b3a82;outline-offset:3px}.multiplier,.patient,.recon-field,#tasks,#facts,#errors,#scores,.paper,.tray{margin:0 0 1rem}.patient,.recon-field,.paper,.tray{padding:.75rem;border:2px solid #1a1814;background:#fffdf8}.exact{font-family:ui-monospace,Cascadia Code,Segoe UI Mono,monospace}ul,ol{margin:0;padding-left:1.2rem}li{margin:0 0 .45rem}#scores{display:grid;grid-template-columns:minmax(10rem,16rem) auto;gap:.35rem 1rem;padding:.75rem;background:#fffdf8;border:2px solid #1a1814}#scores dt{font-weight:700}#scores dd{margin:0}#alerts,#urgent,#sound-caption{min-height:1.5rem}#urgent:empty,#alerts:empty,#sound-caption:empty{min-height:0}.clock{font-variant-numeric:tabular-nums}#pressure{display:flex;flex-wrap:wrap;gap:.4rem .75rem;align-items:center;margin:0 0 .75rem}.meter-bar{flex:1 1 6rem;height:.7rem;background:#e4e0d8;border:2px solid #1a1814}.meter-fill{display:block;height:100%;background:#12315c}.meter-fill.steady{width:25%}.meter-fill.rising{width:55%}.meter-fill.high{width:90%}.layout{display:block}body:has(.layout.immersive){overflow:hidden;background:#0c1418}#app:has(.layout.immersive){max-width:none;height:100svh;margin:0;padding:0}.layout.immersive{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:100svh;overflow:hidden;background:#0c1418}.layout.immersive .letterbox,.layout.immersive .chrome{grid-area:1 / 1;justify-self:center;align-self:center;min-width:0;min-height:0;width:min(100%,calc(100svh * 16 / 9));height:min(100%,56.25vw)}.layout.immersive .letterbox{position:relative;z-index:1;padding:0;background:transparent}.layout.immersive:has(#scene) .letterbox,.layout.immersive:has(#bedside) .letterbox{z-index:8}.layout.immersive .stage{width:100%;height:100%;max-height:none;aspect-ratio:16 / 9;overflow:hidden}.layout.immersive .chrome{position:relative;z-index:6;box-sizing:border-box;pointer-events:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.35rem;padding:.45rem;overflow:visible}.layout.immersive .chrome>*{pointer-events:auto}.layout.immersive header,.layout.immersive .multiplier{display:none}html[data-research="1"] .layout.immersive header{display:block;background:#fffdf8;padding:.35rem .5rem}html[data-research="1"] .layout.immersive header h1,html[data-research="1"] .layout.immersive header .kicker{display:none}.layout.immersive #hud{display:flex;flex-direction:column;align-items:stretch;gap:.35rem;width:min(18rem,42%);max-width:100%}.layout.immersive .chrome>*{width:min(18rem,42%)}.layout.immersive #timer-visual,.layout.immersive #recovery-wait,.layout.immersive #shift-seed,.layout.immersive #begin-reconciliation:disabled,.layout.immersive #facts:not(:has(li)),.layout.immersive #errors:not(:has(li)),.layout.immersive #incoming:not(:has(button)),.layout.immersive #tasks:not(:has(li)){display:none}.layout.immersive #begin-reconciliation:not(:disabled){position:absolute;right:.7rem;bottom:.7rem;z-index:50;width:auto;max-width:18rem}.layout.immersive #hud>section,.layout.immersive #alerts,.layout.immersive #urgent,.layout.immersive #timer,.layout.immersive #sound-caption,.layout.immersive #recovery-wait,.layout.immersive #pressure{background:#fffdf8;border:2px solid #12315c;padding:.3rem .45rem;max-width:18rem;max-height:7.5rem;overflow:auto}.layout.immersive #alerts:empty,.layout.immersive #urgent:empty,.layout.immersive #sound-caption:empty{display:none}body:has(.layout.immersive) .disclaimer{position:absolute;z-index:7;right:.4rem;bottom:.3rem;left:auto;max-width:22rem;margin:0;padding:.25rem .45rem;font-size:.8rem}.letterbox{display:grid;place-items:center;background:#14332f;padding:.5rem}.stage{width:min(100%,calc((100svh - 7rem) * 16 / 9));max-width:100%;max-height:calc(100svh - 7rem);aspect-ratio:16 / 9;position:relative;overflow:auto;background:#f7f4ef;color:#1a1814}@media(min-width:960px){.layout{display:grid;grid-template-columns:minmax(16rem,22rem) minmax(0,1fr);gap:.75rem 1.25rem;align-items:start}.letterbox{position:sticky;top:.75rem}}.stage:has(#bedside),.stage:has(#reconciliation-fields),.stage:has(#scores),.stage:has(.patient){aspect-ratio:auto;width:min(100%,64rem);min-height:20rem;background:#f7f4ef}.ward{position:relative;z-index:0;isolation:isolate;min-height:100%;height:100%;background:#1f6f68}.ward-plate{background-color:#12315c;background-size:100% 100%;background-repeat:no-repeat;overflow:hidden}.cast{position:absolute;z-index:1;isolation:isolate;top:0;right:0;bottom:0;left:0}.floor-plate{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.ward-plate .actor{position:absolute;z-index:2;pointer-events:none;transform:translate(-50%,calc(-100% + 2px))}.ward-plate .actor img{display:block;width:100%;height:100%}.ward-plate .avatar{width:auto;height:auto;translate:none}.contact-shadow{position:absolute;left:50%;bottom:0;width:62%;height:11%;transform:translate(-50%,45%);background:radial-gradient(ellipse at center,#0a161e8c,#0a161e00 70%);pointer-events:none}#ward-resources{display:flex;flex-direction:column;align-items:stretch;gap:.35rem;margin:0 0 1rem}#ward-resources .hotspot{position:static;max-width:none;width:100%}.ward-plate .hotspot.bed{z-index:3;max-width:none;padding:0;background:transparent;border-color:transparent;box-shadow:none}.ward-plate .hotspot.bed:hover,.ward-plate .hotspot.bed:focus-visible{border-color:#fffdf8;background:transparent}.ward-plate .floor-hint{position:absolute;z-index:4;left:.55rem;bottom:.55rem;margin:0;max-width:16rem}.ward-plate .hotspot:not(.bed){z-index:4;max-width:8.5rem;font-size:.85rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.stage:has(#ward)>#phase-heading,.stage:has(#ward)>#ward-heading{position:absolute;z-index:4;top:0;left:0;right:0;margin:0;padding:.35rem .7rem;background:#fffdf8}.floor-hint{margin:2.8rem .4rem .4rem;padding:.35rem .5rem;background:#fffdf8;color:#1a1814;max-width:22rem}.hotspot{position:absolute;z-index:1;max-width:9rem;text-align:left}.hotspot.station,.hotspot.bubble{z-index:3}.hotspot.station{max-width:12rem;background:#12315c;color:#fff;border-color:#fff}.hotspot .down{display:block;font-weight:700}.avatar{position:absolute;z-index:2;width:48px;height:64px;translate:-50% -80%;pointer-events:none;transition:left .16s linear,top .16s linear}.avatar svg,.hotspot svg,.scene svg{display:block;width:100%;height:auto}.hotspot svg{width:4.5rem}.bedside,#reconciliation-fields{display:grid;gap:.75rem;padding:.75rem}#bedside{position:absolute;z-index:40;top:0;right:0;bottom:0;left:0;overflow:auto;background:#fffdf8}.scene{position:absolute;z-index:40;top:.75rem;right:.75rem;bottom:.75rem;left:.75rem;overflow:auto;padding:.9rem;background:#fffdf8;color:#1a1814;border:2px solid #1a1814}.scene svg{width:5rem;height:5rem}.choices{display:flex;flex-direction:column;align-items:stretch;gap:.5rem}.choices button,.tray button,.bedside>button,.recon-field button{width:100%;max-width:36rem}@media(max-width:800px),(max-height:560px){.layout{display:block}.letterbox{position:static}.stage{width:100%;max-height:none;aspect-ratio:auto;min-height:24rem}.stage:has(#ward)>#phase-heading{position:static}.floor-hint{margin-top:.4rem}.hotspot{position:static;display:flex;align-items:center;gap:.4rem;max-width:none;margin:.35rem}.ward{display:flex;flex-direction:column;height:auto}.avatar{position:static;translate:none;align-self:flex-start;margin:.35rem}.stage:has(.ward-plate){aspect-ratio:16 / 9;min-height:0;overflow:hidden}.stage:has(.ward-plate)>#phase-heading{position:absolute}.ward.ward-plate{display:block;height:100%}.ward-plate .hotspot,.ward-plate .hotspot.bed,.ward-plate .actor,.ward-plate .avatar,.ward-plate .floor-hint{position:absolute;margin:0;translate:none}#ward-resources .hotspot{position:static;display:block;margin:0}}.star-marks{font-size:1.6rem;letter-spacing:.35rem;margin:0 0 .75rem}#star-result{font-weight:700}#tension-note:empty{display:none}@media(prefers-reduced-motion:no-preference){.stars-reveal .star{animation:star-in .45s ease both}.stars-reveal .star:nth-child(2){animation-delay:.15s}.stars-reveal .star:nth-child(3){animation-delay:.3s}#urgent.pulse{animation:alert-pulse .6s ease 2}#timer.tension .clock{animation:tick-fade 1s steps(2,end) infinite}}@keyframes star-in{0%{opacity:0;transform:translateY(.4rem)}to{opacity:1;transform:none}}@keyframes alert-pulse{0%,to{outline:3px solid transparent}50%{outline:3px solid #6e1220}}@keyframes tick-fade{50%{opacity:.55}}.allergy-hl{font-weight:700}html[data-text=small]{font-size:.95rem}html[data-text=large]{font-size:1.25rem}.menu{display:grid;gap:.75rem;max-width:40rem;background:#fffdf8;border:2px solid #12315c;padding:1.15rem 1.2rem 1.3rem;box-shadow:0 16px 40px #12315c29}.menu h1{color:#12315c}.menu-title{position:relative;isolation:isolate;min-height:calc(100svh - 8rem);max-width:none;place-items:center;align-content:center;justify-items:center;border:0;background:#0c1418;box-shadow:none;padding:2rem 1rem}.menu-title:before{content:"";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(180deg,#0c141826,#0c14189e),var(--key-art);background-position:center,18% 22%;background-size:cover,165%;background-repeat:no-repeat}.title-card{display:grid;gap:.75rem;width:min(24rem,100%);background:#fffdf8;color:#12315c;border:2px solid #12315c;border-top:6px solid #1f6f68;padding:1.1rem 1.15rem 1.25rem;box-shadow:0 18px 40px #0c141859}.title-card h1,.title-card p{margin:0;background:transparent}.stage.sheet{background:#fffdf8}.layout.immersive .stage.sheet,.layout.immersive .stage:has(#reconciliation-fields),.layout.immersive .stage:has(#scores){overflow:auto}.layout.immersive:has(.sheet) .chrome{display:none}.stage.sheet:before,#bedside:before{content:"";display:block;height:6.5rem;margin:-.75rem -.75rem .85rem;background-image:linear-gradient(180deg,#0c14180d,#0c141847),var(--key-art);background-position:center,12% 28%;background-size:cover,170%;background-repeat:no-repeat;border-bottom:4px solid #1f6f68}#bedside:before{margin:0 0 .85rem}.menu button{justify-self:start}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.avatar{transition:none}}
