*{box-sizing:border-box}body{margin:0;background:#dfe9e5;color:#243e40;font-family:system-ui,'Malgun Gothic',sans-serif}button{font:inherit;cursor:pointer;min-height:48px;border:0;border-radius:18px;background:#edf3ef;color:#284e4c;padding:12px 18px;font-weight:700;touch-action:manipulation}button:focus-visible{outline:3px solid #d59132;outline-offset:3px}button:disabled{opacity:.5;cursor:default}#game{max-width:520px;margin:auto;background:#fbf8f1;min-height:100dvh;display:flex;flex-direction:column}header{display:flex;align-items:center;gap:8px;padding:16px 18px 10px}header div{flex:1}small{font-size:11px;color:#67827f}h1{font-size:21px;margin:3px 0}h2{font-size:21px;margin:0 0 6px}p{line-height:1.65;margin:6px 0 14px}nav{display:flex;justify-content:space-around;padding:8px 12px;font-size:20px}nav span{opacity:.35;padding:6px 12px;border-radius:12px}nav .active{opacity:1;background:#d6e8df}#scene{position:relative;min-height:280px;height:43dvh;max-height:480px;overflow:hidden;background:#d5e4e0 url('assets/er.png') center 43%/cover}#scene:after{content:'';position:absolute;inset:auto 0 0;height:35px;background:linear-gradient(transparent,#fbf8f1);pointer-events:none}#sceneLabel{position:absolute;top:12px;left:14px;border-radius:20px;padding:7px 14px;background:#fffef1ed;font-size:13px;z-index:2}#visual{height:100%;display:grid;place-items:center;padding:48px 20px 20px}#controls{padding:16px 22px;flex:1}.primary{background:#286b68;color:white;width:100%;box-shadow:0 4px 0 #194a48}.choices{display:flex;gap:10px;margin:12px 0}.choices button{flex:1}.selected{box-shadow:inset 0 0 0 3px #286b68;background:#dbede0}footer{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#70817c;padding:10px 16px 18px}.card{background:#fffdf4f5;border-radius:28px;box-shadow:0 10px 35px #244c4925;padding:18px;text-align:center;width:100%;max-width:350px}.card svg{max-height:230px;width:100%}.wrap{transition:opacity .3s}.badge{font-size:46px;display:block;margin:10px}.tray{display:flex;gap:8px;background:#bfd0cd;border:6px solid #91aaa4;border-radius:22px;padding:12px}.tray button{font-size:32px;flex:1;padding:8px;background:#fff9e9}.bed{border-radius:30px;background:#eff6eb;border:8px solid #c5d8cd;padding:20px;margin-bottom:12px;font-size:48px}.targets{display:flex;gap:12px;justify-content:center}.targets button{border:2px dashed #77a9a0;border-radius:50%;width:54px;height:54px;padding:5px;background:#fff4d9}.targets .done{background:#c4e2d0;border-style:solid}.hint{font-size:13px;color:#657874}.star{color:#b77b21;font-size:25px}dialog{border:0;border-radius:24px;padding:26px;max-width:340px;color:#243e40}dialog::backdrop{background:#122f3977}dialog button{width:100%;background:#286b68;color:white}@media(min-width:700px){#game{margin:24px auto;border-radius:28px;overflow:hidden;min-height:calc(100dvh - 48px);box-shadow:0 20px 70px #1c474522}}@media(prefers-reduced-motion:no-preference){.card{animation:appear .35s ease-out}@keyframes appear{from{transform:translateY(10px);opacity:.5}}}#scene.work{background-image:linear-gradient(#e4eee6bc,#e4eee6bc),url('assets/exam.png')}#scene.exam{background-image:url('assets/exam.png')}
/* Interactive scene: positions share the illustration coordinate space. */
#scene.interactive{height:auto;max-height:none;min-height:0;background:#e6eee8;overflow:hidden}#scene.interactive:after{display:none}#scene.interactive #visual{position:relative;display:block;padding:0;aspect-ratio:400/420;width:100%}.story-art{display:block;width:100%;height:100%}#sceneLabel{font-weight:700;font-size:12px;pointer-events:none}.hotspot{position:absolute;transform:translate(-50%,-50%);width:52px;height:52px;min-height:52px;border:3px solid #fff8d9;background:#e8bb65;color:#344e4c;border-radius:50%;padding:0;box-shadow:0 0 0 6px #efc77940;font-size:25px;z-index:3}.hotspot span{position:absolute;top:55px;left:50%;transform:translateX(-50%);font-size:11px;white-space:nowrap;background:#fffcf0;padding:5px 9px;border-radius:8px}.hotspot.waiting{background:#c6d9ce}.hotspot:disabled{opacity:0;pointer-events:none}.speech{padding:13px 16px;background:#e8eee2;border-radius:16px;min-height:52px;font-size:15px;line-height:1.55;margin-bottom:12px}.tool{display:flex;align-items:center;gap:10px;margin:0 auto 10px;border:2px solid #9bbcb2;min-width:150px;justify-content:center;touch-action:none;position:relative;z-index:10}.tool b{font-size:30px}.tool+.hint{display:block;text-align:center;font-size:12px}.dots{text-align:center;letter-spacing:12px;color:#3a8275;margin:8px}.journal{line-height:2.4;font-size:14px;margin-bottom:12px}.scan-light{opacity:0}.support{transition:opacity .5s}.acted .support{opacity:1}.stage-rest .blanket{transform:translateY(55px);transition:transform .7s}.stage-rest.acted .blanket{transform:translateY(-30px)}.van-door{transform-box:fill-box;transform-origin:right center;transition:transform .7s}.acted .van-door{transform:scaleX(.14)}.stage-unload .van-door{transform:scaleX(.14)}.unloading{transform:translate(5px,-20px);transition:transform 1s}.acted .unloading{transform:translate(-65px,18px)}.moving-group{transition:transform 1s}.acted .moving-group{transform:translateX(90px)}.scanner{transition:transform .7s}.stage-xray .scanner{transform:translateX(70px)}.stage-xray.acted .scanner{transform:translateX(0)}.stage-scan.acted .scan-light{opacity:1}.stage-pain.acted .patient{filter:drop-shadow(0 0 6px #e7b76e)}#toolEffect{pointer-events:none}.stage-finish .patient{filter:drop-shadow(0 0 8px #faf1b8)}[hidden]{display:none!important}@media(min-width:700px){#game{max-width:460px}#scene.interactive #visual{max-height:440px}}@media(max-width:380px){header{padding:10px 12px}h1{font-size:19px}#controls{padding:12px 16px}nav span{padding:4px 8px}}@media(prefers-reduced-motion:no-preference){.stage-arrival .ambulance{animation:drive-in 1.3s ease-out}.stage-scan.acted .scan-light{animation:scan 1.3s ease-in-out}.beacon{animation:beacon 1.5s ease-in-out infinite}@keyframes drive-in{from{transform:translateX(-390px)}to{transform:translateX(0)}}@keyframes scan{from{transform:translateY(-40px);opacity:0}to{transform:translateY(25px);opacity:1}}@keyframes beacon{50%{fill:#e9bf81}}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Approved Higgsfield artwork is square. Match the hit area to that exact frame. */
#scene.interactive.painted #visual{aspect-ratio:1/1;max-height:none;height:auto}.painted-frame{position:absolute;inset:0;background-size:200% 200%;background-repeat:no-repeat;background-color:#e5dfcd}.painted #sceneLabel{top:8px;left:8px;font-size:11px;box-shadow:0 2px 10px #53452a18}.painted .hotspot{width:48px;height:48px;min-height:48px;background:#fff9e41a;border:2px solid #fff8db;color:#fff4d7;box-shadow:0 0 0 4px #326d624d;font-size:23px;text-shadow:0 1px 4px #224c42}.painted .hotspot.waiting{background:#fff9e410}.painted .hotspot span{font-size:10px;color:#345c52;top:49px;text-shadow:none;padding:4px 7px}.painted .hotspot:focus-visible{outline:3px solid #ca9440}.painted.acted .painted-frame{animation:paintedReveal .35s ease-out}@keyframes paintedReveal{from{opacity:.8}to{opacity:1}}#scene.interactive:not(.painted) #visual{max-height:none}.tool svg{width:40px;height:40px;display:block}.tool{min-height:64px}.painted.stage-complete .hotspot{left:60%!important;top:66%!important}
.review-link{display:block;margin:0 18px 6px;padding:10px 12px;border-radius:12px;text-decoration:none;text-align:center;font-size:13px;color:#286b68;background:#e4eee5;min-height:40px}.review-link:focus-visible{outline:3px solid #cc9b43}
.arrival-choices button{font-size:13px;padding:10px 6px}.arrival-choices [aria-pressed=true]{background:#d4e8dd;box-shadow:inset 0 0 0 2px #34776a}.painted.stage-scan.acted .painted-frame{animation:paintedReveal .7s ease-out}
/* Full-screen playfield with a fixed bottom controller. */
html,body{width:100%;height:100%;overflow:hidden;background:#527970}#game{position:relative;isolation:isolate;width:100%;max-width:none;height:100dvh;min-height:0;margin:0;border-radius:0;overflow:hidden;background:#c4d6ca;box-shadow:none;display:flex;flex-direction:column}#backdrop{position:absolute;inset:-30px;z-index:-1;overflow:hidden;filter:blur(18px) brightness(.78);pointer-events:none}#backdrop .painted-frame{background-size:200% 200%;opacity:.85}#game>header{position:absolute;z-index:8;top:0;left:0;right:0;padding:calc(8px + env(safe-area-inset-top)) 14px 8px;gap:8px;background:linear-gradient(#213e44ad,transparent);color:white;pointer-events:none}header button{pointer-events:auto;background:#fff7e6e8;min-width:46px;min-height:46px}header small{display:none}h1{font-size:17px;text-shadow:0 2px 4px #153832}#progress{position:absolute;z-index:5;top:65px;left:12px;right:auto;gap:4px;padding:4px;background:#fff8e8de;border-radius:14px;font-size:15px;pointer-events:none}#progress span{padding:4px 7px}#scene.interactive{position:absolute;inset:0;background:transparent;height:100%;width:100%;min-height:0;max-height:none;overflow:hidden}#scene.interactive #visual,#scene.interactive.painted #visual{position:absolute;top:70px;left:50%;transform:translateX(-50%);width:min(100vw,calc(100dvh - 90px));height:auto;max-height:none;aspect-ratio:1/1;padding:0}#scene.interactive:not(.painted) #visual{aspect-ratio:400/420}.painted-frame{border-radius:0}#sceneLabel,.painted #sceneLabel{position:absolute;left:auto;right:12px;top:112px;z-index:5;background:#fff9e9e8;padding:7px 10px;font-size:11px;max-width:85%;pointer-events:none}.hotspot{opacity:.6}.hotspot span{display:none}.hotspot:disabled{opacity:0}#controls{z-index:10;position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:15px max(16px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#243f48eb,#182c36fa);border-top:2px solid #d3e3ca70;box-shadow:0 -8px 30px #172f3b33;color:#fff8e8;min-height:116px}#controls .speech{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);width:calc(100% - 24px);max-width:570px;background:#fff9ebf0;color:#294c4d;min-height:0;margin:0;padding:10px 14px;box-shadow:0 3px 18px #193a3b20;font-size:14px;pointer-events:none}#controls .hint{display:none}#controls .primary{width:auto;min-width:150px;max-width:350px;min-height:64px;border-radius:22px;font-size:17px;padding:15px 24px;background:#ead29c;color:#253e42;box-shadow:0 5px 0 #aa854b,inset 0 2px 0 #fff4cb}#controls .tool{margin:0;min-width:84px;min-height:64px;color:#284d4a;background:#e0eee2;border-radius:20px;flex-direction:column;gap:0;padding:6px 12px;font-size:12px}#controls .tool b{font-size:26px}#controls .choices{margin:0;gap:6px}#controls .choices button{font-size:12px;padding:8px 12px;min-height:44px}#controls .dots{margin:0;position:absolute;top:-95px;right:18px;color:#f9eab6;font-size:18px;text-shadow:0 1px 4px #163b31}#controls .journal{display:none}#controls .tray{padding:5px;border-width:3px;background:#bdcec2}#controls .tray button{min-width:60px}#game>footer{position:absolute;z-index:11;bottom:2px;left:12px;right:12px;padding:0;font-size:9px;opacity:.65;color:#edf2e6;pointer-events:none}#game>footer span:last-child{display:none}#game[data-stage=welcome] #controls{gap:8px}#game[data-stage=welcome] #controls .choices{flex:0 0 auto}#game[data-stage=welcome] #controls .primary{min-height:49px;font-size:15px}button:active:not(:disabled){filter:brightness(.94)}@media(max-width:600px){#game[data-stage=welcome] #controls{padding-top:10px;gap:8px}#game[data-stage=welcome] #controls .choices{flex:1 1 45%}#game[data-stage=welcome] #controls .primary{width:100%;max-width:none}#controls{gap:12px}}@media(orientation:landscape) and (max-height:550px){#scene.interactive #visual,#scene.interactive.painted #visual{top:0;width:100dvh}#controls{left:auto;width:290px;min-height:100px;right:10px;border-radius:24px 24px 0 0;padding:12px 14px 20px}#controls .primary{min-width:120px;font-size:14px}#controls .speech{font-size:12px}#progress{top:60px}#sceneLabel,.painted #sceneLabel{top:105px;right:15px}#game[data-stage=welcome] #controls .choices{flex:1 1 100%}#game[data-stage=welcome] #controls .primary{width:100%}}
#elevator{position:absolute;z-index:7;right:12px;bottom:calc(190px + env(safe-area-inset-bottom));background:#f9f0dbeb;border:1px solid #adba9c;border-radius:10px;padding:4px 6px;color:#2e554b;min-height:48px;box-shadow:0 4px 10px #23443e35}#elevator svg{display:block;width:44px;height:59px;margin:auto}#elevator span{font-size:10px;display:block}#lift button{margin-top:8px}#lift button:disabled{opacity:.4}#game[data-stage=welcome] #elevator{display:none}@media(orientation:landscape) and (max-height:550px){#elevator{left:12px;right:auto;bottom:18px}}#game>header{position:fixed}#scene.interactive #visual,#scene.interactive.painted #visual{top:70px}@media(max-width:600px) and (min-height:750px){#scene.interactive #visual,#scene.interactive.painted #visual{top:110px}}
/* Room overview remains completely visible above the controller. */
#game[data-stage=ward] #visual,#game[data-stage=eat] #visual,#game[data-stage=rest] #visual,#game[data-stage=finish] #visual{top:90px!important;width:min(100vw,calc(100dvh - 285px))!important}#game[data-stage=ward] #sceneLabel,#game[data-stage=eat] #sceneLabel,#game[data-stage=rest] #sceneLabel,#game[data-stage=finish] #sceneLabel{top:65px;right:12px}@media(orientation:landscape) and (max-height:550px){#game[data-stage=ward] #visual,#game[data-stage=eat] #visual,#game[data-stage=rest] #visual,#game[data-stage=finish] #visual{top:50px!important;left:calc((100% - 290px)/2);width:min(calc(100vw - 310px),calc(100dvh - 65px))!important}}
.neighbor-marker{position:absolute;z-index:4;transform:translate(-50%,-50%);min-height:44px;padding:5px 10px;font-size:11px;border-radius:14px;background:#fcf4dbd9;border:1px solid #a6b9a4;color:#315849}.patient-tag{position:absolute;bottom:3%;left:50%;transform:translateX(-50%);font-size:11px;background:#2e7264e8;color:white;padding:5px 10px;border-radius:10px;white-space:nowrap;pointer-events:none}#neighbor button{margin-top:8px}
#scene.interactive.room-overview #visual{top:90px!important;width:min(100vw,calc(100dvh - 285px))!important}#scene.room-overview #sceneLabel{top:65px;right:12px}.room-links{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.room-links a{padding:10px;background:#e1eee3;border-radius:10px;color:#286b68;font-size:12px}@media(orientation:landscape) and (max-height:550px){#scene.interactive.room-overview #visual{top:50px!important;left:calc((100% - 290px)/2);width:min(calc(100vw - 310px),calc(100dvh - 65px))!important}}
.painted.room-overview.stage-complete .hotspot{left:53%!important;top:59%!important}
#scene.room-overview #sceneLabel,#game[data-stage=ward] #sceneLabel,#game[data-stage=eat] #sceneLabel,#game[data-stage=rest] #sceneLabel,#game[data-stage=finish] #sceneLabel{top:112px}#controls .dots{right:auto;left:18px}
.unload-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:4;background:#e5e4d2;pointer-events:none}
.unload-still{width:100%;height:100%;object-fit:contain}
#casePicker{font-size:12px;min-width:80px}#caseRoom{position:fixed;inset:0;z-index:30;background:#dde5d9;color:#294b48;overflow:auto}#caseRoom header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;position:relative;background:#f9f5e8;min-height:66px}#caseRoom h2{font-size:16px;margin:0}#caseRoom button{min-height:48px;border-radius:14px;border:1px solid #a7bbaa;padding:10px 14px;background:#fff9e9;color:#264e48}#caseRoom .case-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;max-width:900px;padding:24px;margin:auto}.case-list button{display:flex;align-items:center;gap:12px;flex-wrap:wrap;text-align:left}.case-list span{font-size:36px}.case-list small{width:100%;color:#58776a}.case-note{text-align:center;padding:12px}.case-art{width:min(100vw,calc(100dvh - 290px));aspect-ratio:1;margin:10px auto;background-size:200% 200%;background-repeat:no-repeat}.case-caption{text-align:center;font-weight:bold}.case-dock{position:fixed;bottom:0;left:0;right:0;background:#213d43;color:#fff6df;padding:14px 16px calc(16px + env(safe-area-inset-bottom));text-align:center}.case-dock p{margin:0 auto 10px;max-width:650px;font-size:15px;line-height:1.5}.case-dock small{display:block;font-size:10px;margin-top:10px;opacity:.8}.case-dots{margin-bottom:8px;letter-spacing:10px}.case-dock #caseAction{background:#ecd398;font-size:17px;min-width:200px}.case-assist{animation:caseGlow .45s ease}@keyframes caseGlow{50%{filter:brightness(1.13)}}@media(orientation:landscape) and (max-height:550px){.case-dock{left:auto;width:280px;top:66px;display:flex;flex-direction:column;justify-content:center}.case-art{width:calc(100dvh - 110px);margin-left:calc((100vw - 300px - (100dvh - 110px))/2)}.case-caption{width:calc(100% - 300px)}}
#lifeButton{font-size:12px;min-width:80px}#hospitalLife{width:min(700px,94vw);max-width:700px;max-height:94dvh;padding:16px;overflow:auto;background:#fff9e9}#hospitalLife .life-head{display:flex;align-items:center;justify-content:space-between}#hospitalLife h2{font-size:19px}#hospitalLife button{width:auto;min-height:44px;margin:4px;padding:10px 14px}#hospitalLife nav{display:flex;justify-content:center;position:static;padding:0;background:none}#hospitalLife [aria-pressed=true]{background:#d4b875;color:#183e37}.life-art{width:min(100%,calc(100dvh - 350px));min-width:180px;aspect-ratio:1;margin:8px auto;background-image:url('assets/life-sheet.png');background-size:200% 200%;background-repeat:no-repeat}#lifeContent{text-align:center;font-size:14px;line-height:1.5}#lifeContent small{display:block;font-size:11px}#lifeContent #visitClock{font-size:20px;font-weight:bold}#game>header{flex-wrap:wrap}#game>header h1{font-size:15px}#game>header button{min-width:40px;padding:8px}#game>header #casePicker,#game>header #lifeButton{min-width:76px}@media(max-width:500px){#game>header{gap:4px;padding-left:8px;padding-right:8px}#game>header h1{font-size:13px}#game>header #casePicker,#game>header #lifeButton{font-size:10px;min-width:66px}#game>header button{min-width:34px;padding:5px}}
#doctorLounge{width:min(700px,94vw);max-width:700px;max-height:94dvh;overflow:auto;text-align:center;background:#fff9e9}#doctorLounge button{width:auto;min-height:48px;margin:5px}#caseRoom header{flex-wrap:wrap}#caseRoom header button{font-size:12px}
.doctor-badge{font-size:13px;color:#fff9e9;background:#35695e;padding:5px 12px;border-radius:12px;width:fit-content;margin:0 auto 5px}.case-caption{line-height:1.4}
.dialogue-container{display:flex;flex-direction:column;gap:8px}.talk-bubble{position:relative;display:block;background:#fffaf0;color:#294b48;border:1px solid #d7d3ba;border-radius:18px 18px 18px 5px;padding:10px 14px;text-align:left;box-shadow:0 3px 8px #173e3812}.talk-bubble:not(.narration):after{content:'';position:absolute;bottom:-7px;left:15px;border-top:8px solid #fffaf0;border-right:9px solid transparent}.talk-speaker{display:block;font-size:12px;color:#286b60;margin-bottom:3px}.talk-line{display:block;font-size:14px;line-height:1.5}.talk-bubble.narration{background:#e9eee2;border-radius:12px;box-shadow:none}.talk-bubble.narration .talk-speaker{color:#637264}#controls .speech.dialogue-container{padding:0;background:transparent;box-shadow:none}#caseRoom .case-dock .dialogue-container{margin-bottom:14px}#hospitalLife .dialogue-container,#doctorLounge .dialogue-container{margin:10px 0}.case-dock .talk-bubble{max-width:650px;width:100%}#controls .speech.dialogue-container{max-height:28dvh;overflow:auto;pointer-events:auto}
.case-art{position:relative}.case-drop-target{position:absolute!important;transform:translate(-50%,-50%);width:52px;min-height:52px!important;padding:0!important;border:3px solid #fff8d8!important;border-radius:50%!important;background:#317c7270!important;color:white!important;box-shadow:0 0 0 5px #e7c98c50;font-size:28px!important;z-index:2}.case-drop-target.ready{background:#37836f!important}#caseDragTool{position:relative;z-index:40;touch-action:none;user-select:none;display:inline-flex;flex-direction:column;align-items:center;min-width:100px;margin-right:10px}#caseDragTool>span:first-child{font-size:28px}#caseDragTool[aria-pressed=true]{outline:3px solid #e7c98c}
#caseElevator button{display:block;width:100%;margin-top:8px}#caseElevator button:disabled{opacity:.45}#liftNav{font-size:11px;min-width:76px}#game>header{padding-bottom:6px}#game>header #liftNav{min-width:76px}
.stretcher-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#e6e8dd;z-index:5}
/* Mobile QA: preserve 48px targets, use two-column tools, scroll long dialogues. */
dialog{max-height:calc(100dvh - 24px);overflow:auto;width:min(94vw,700px);overscroll-behavior:contain}
#caseRoom header{padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:8px}
.case-dock{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
.case-dock #caseMessage{flex:0 0 100%;max-height:26dvh;overflow-y:auto;overscroll-behavior:contain;margin:0}
.case-dock .case-dots{flex:0 0 100%;margin:0;line-height:18px}
.case-dock #caseDragTool{margin:0;min-width:0;flex:1 1 95px;max-width:220px;min-height:60px;font-size:13px}
.case-dock #caseAction{min-width:0;flex:1 1 130px;max-width:350px;font-size:15px;min-height:60px}
.case-dock small{flex:0 0 100%;margin:0;font-size:9px}
.case-dock .talk-bubble{padding:8px 11px;font-size:13px}
#caseRoom .case-list{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));padding:12px}
@media(max-width:600px){
 #caseRoom header{display:grid;grid-template-columns:1fr auto;gap:4px 8px}
 #caseRoom header h2{grid-row:2;grid-column:1;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
 #caseRoom header>span{grid-row:2;grid-column:2;font-size:12px}
 #caseRoom header button:last-child{grid-row:1;grid-column:2}
 #caseRoom header button:first-child{grid-row:1;grid-column:1;justify-self:start}
 #caseRoom header button{padding:8px 10px;font-size:12px}
 #game>header{gap:5px;padding:calc(6px + env(safe-area-inset-top)) 8px 6px}
 #game>header h1{font-size:14px}
 #game>header button{padding:6px 9px;min-height:48px}
 #casePicker,#lifeButton,#liftNav{min-width:0!important;font-size:11px!important}
 .case-caption{font-size:12px}.doctor-badge{font-size:11px}
 #controls .primary{min-width:120px;font-size:15px;padding:10px 14px;min-height:56px}
 #controls{gap:8px;padding:10px 12px calc(16px + env(safe-area-inset-bottom))}
}
@media(orientation:landscape) and (max-height:550px){
 .case-dock{top:var(--case-header-height,70px);bottom:0;overflow-y:auto;display:flex;flex-direction:row;align-content:center;justify-content:center}
 .case-dock #caseMessage{max-height:32dvh}
 #controls{max-height:calc(100dvh - 76px);overflow:visible}
}
@media(max-width:600px){
 #game>header{display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:48px 48px}
 #game>header>div{grid-row:1;grid-column:1;min-width:0}
 #game>header h1{font-size:13px;line-height:1.3;word-break:keep-all}
 #game>header #help{grid-row:1;grid-column:2;justify-self:end;width:48px}
 #game>header #sound{grid-row:1;grid-column:3;justify-self:end;width:48px}
 #game>header #casePicker{grid-row:2;grid-column:1}
 #game>header #lifeButton{grid-row:2;grid-column:2}
 #game>header #liftNav{grid-row:2;grid-column:3}
 #elevator{display:none}
}
@media(max-width:380px){#game[data-stage=welcome] #controls .choices{flex:1 1 100%;width:100%}#game[data-stage=welcome] #controls .choices button{white-space:nowrap;min-height:44px;padding:6px;font-size:12px}}
@media(max-width:600px){#caseRoom header{grid-template-columns:1fr 48px auto}#caseRoom header h2{grid-column:1/3}#caseRoom header>span{grid-column:3}#caseRoom header button[data-game-sound]{grid-row:1;grid-column:2;padding:6px}#caseRoom header button:last-child{grid-column:3}}
