:root{font-family:'Oxanium',system-ui,sans-serif;color:#edf7f3;background:#111923;--mint:#9ff4d0;--cyan:#66d6ce;--ink:#101923;--panel:#14222d;--line:#81c9bd;--red:#f48687;--yellow:#f4cf72}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#081017;color:#edf7f3}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.35}.app-frame{width:min(1320px,100%);margin:0 auto;min-height:100vh;padding:24px}.login-screen{min-height:calc(100vh - 48px);display:grid;grid-template-columns:1.2fr .8fr;background:#101a23;border:1px solid #2b4651;box-shadow:0 20px 80px #0008;overflow:hidden}.login-art{position:relative;min-height:680px;background:linear-gradient(90deg,#101a2370,#101a2320),url('assets/reception-room.jpg') center/cover;filter:saturate(.8)}.login-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 60%,#101a23 100%),repeating-linear-gradient(0deg,#ffffff04 0 1px,transparent 1px 4px);pointer-events:none}.art-label{position:absolute;left:34px;bottom:30px;color:var(--mint);font-size:.75rem;letter-spacing:.2em}.scan-line{position:absolute;left:8%;right:8%;top:48%;height:1px;background:#9ff4d070;box-shadow:0 0 18px var(--mint);z-index:1;animation:scan 5s ease-in-out infinite}@keyframes scan{0%,100%{transform:translateY(-180px);opacity:0}40%,60%{opacity:1}80%{transform:translateY(180px);opacity:0}}.login-panel{display:flex;flex-direction:column;justify-content:center;padding:clamp(28px,7vw,80px);background:linear-gradient(140deg,#162631,#0f1921)}.eyebrow{color:var(--mint);letter-spacing:.18em;font-size:.7rem;font-weight:700}.login-panel h1,.topbar h1{font-family:'Rajdhani',sans-serif;font-size:clamp(2.5rem,5vw,4.7rem);line-height:.82;letter-spacing:.02em;margin:22px 0}.login-panel h1 em,.topbar h1 em{color:var(--mint);font-style:normal}.intro{color:#b8cec8;line-height:1.6;max-width:390px}.login-panel form{display:grid;gap:10px;margin-top:28px}.login-panel label{font-size:.74rem;color:#9bb5b1;letter-spacing:.08em;text-transform:uppercase;margin-top:8px}.login-panel input{border:1px solid #46656b;background:#0b141b;color:white;padding:14px 16px;border-radius:3px;outline:none}.login-panel input:focus{border-color:var(--mint);box-shadow:0 0 0 2px #9ff4d030}.primary-button{border:1px solid var(--mint);background:var(--mint);color:#10251f;padding:13px 18px;border-radius:3px;font-weight:800;margin-top:14px;letter-spacing:.04em}.primary-button:hover{background:#c5ffe5}.primary-button span{float:right}.login-foot{display:flex;gap:12px;align-items:center;color:#6c8786;font-size:.64rem;letter-spacing:.13em;margin-top:48px}.status-dot{width:7px;height:7px;background:#7ff59c;border-radius:50%;box-shadow:0 0 8px #7ff59c}.status-dot+span{color:#a4d6be}.topbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #2d4853;padding:8px 0 18px}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-mark{width:34px;height:34px;border:1px solid var(--mint);display:grid;place-items:center;color:var(--mint);font-size:1.3rem}.topbar h1{font-size:1.7rem;margin:3px 0 0}.operator{display:grid;grid-template-columns:auto auto auto;align-items:center;gap:12px;color:#7f9996;font-size:.65rem;letter-spacing:.12em}.operator strong{color:#d8eee6;letter-spacing:0;font-size:.9rem}.ghost-button,.small-button{border:1px solid #43636a;background:transparent;color:#bfe8dd;padding:8px 12px;border-radius:2px}.ghost-button:hover,.small-button:hover{border-color:var(--mint);color:var(--mint)}.start-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0;padding:26px 30px;background:linear-gradient(90deg,#152a32,#10222c);border:1px solid #42736f}.start-panel h2{font-family:'Rajdhani',sans-serif;text-transform:uppercase;letter-spacing:.08em;margin:8px 0;color:#effff8}.start-panel p{margin:0;color:#9bbab2}.stats-bar{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:22px 0 12px}.stats-bar>div{background:#102934;border:1px solid #386962;padding:10px 13px;display:flex;justify-content:space-between;align-items:center}.stats-bar span{font-size:.62rem;letter-spacing:.14em;color:#83aaa4}.stats-bar strong{font-family:'Rajdhani';font-size:1.25rem;color:var(--mint);text-transform:uppercase}.scene-wrap{position:relative;min-height:620px;border:1px solid #385862;background:#111d26;box-shadow:0 16px 45px #0008;overflow:hidden}.game-scene{position:relative;min-height:620px;overflow:hidden;background-position:center;background-size:cover}.reception-scene{background-image:linear-gradient(90deg,#09121c88,#09121c20 60%,#09121c66),url('assets/reception-room.jpg')}.treatment-scene{background-image:linear-gradient(90deg,#11172e65,#11172e30),url('assets/treatment-room.jpg')}.scene-overlay{position:absolute;z-index:3;left:22px;right:22px;top:18px;display:flex;justify-content:space-between;align-items:center;font-size:.68rem;letter-spacing:.13em;text-shadow:0 2px 6px #000}.scene-tag{color:#eafff8;border-left:3px solid var(--mint);padding-left:10px}.scene-coords{color:#a3c0ba}.scene-coords b{color:var(--mint)}.window-frame{position:absolute;left:11%;top:19%;width:52%;height:63%;background:#0c151bdf;border:8px solid #253b42;box-shadow:inset 0 0 0 2px #58756f,0 14px 30px #0008}.window-title,.window-bottom{font-size:.65rem;letter-spacing:.14em;color:#9ed8c7;padding:8px 13px;background:#13262b;border-bottom:1px solid #42635f}.window-title span{float:right;color:#79ffab}.window-bottom{position:absolute;bottom:0;left:0;right:0;border-top:1px solid #42635f;border-bottom:0;color:#789d99}.window-bottom span{float:right;color:var(--mint)}.patient-window{position:absolute;inset:36px 12px 35px;background:radial-gradient(ellipse,#4b777060,#14242c 70%);display:grid;place-items:center;overflow:hidden}.patient-window:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,#ffffff05 0 1px,transparent 1px 5px)}.patient-list{position:relative;width:100%;height:100%;display:grid;place-items:center}.patient-card{width:min(260px,80%);height:88%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#f0fff9;text-align:center;position:relative;z-index:1}.patient-card strong{font-family:'Rajdhani';font-size:1.35rem;letter-spacing:.08em}.patient-card .symptoms{font-size:.72rem;color:#c5e9df;max-width:220px}.patient-card .state{font-size:.65rem;color:#9bbab2;text-transform:uppercase}.patient-card small{color:var(--mint);font-size:.62rem}.animal-avatar{width:170px;height:180px;display:grid;place-items:center;overflow:hidden;margin-bottom:4px;filter:drop-shadow(0 10px 10px #0009);animation:approach 1.7s ease-out both}.animal-avatar img{width:100%;height:100%;object-fit:contain;mix-blend-mode:screen}.patient-card.distorted .animal-avatar{filter:drop-shadow(0 0 13px #d077cb) saturate(1.4);animation:glitch .18s infinite alternate}@keyframes approach{0%{transform:translateY(14px);opacity:0}55%{transform:translateY(-3px)}100%{transform:translateY(0);opacity:1}}@keyframes glitch{from{transform:translate(-3px,0)}to{transform:translate(3px,1px)}}.curtain{position:absolute;z-index:4;top:-100%;left:0;right:0;height:100%;background:repeating-linear-gradient(90deg,#9a383b 0 18px,#c45a55 18px 35px);box-shadow:0 12px 20px #0008;transition:top .45s cubic-bezier(.7,0,.8,1)}.curtain.closing{top:0}.camera-console,.decision-console{position:absolute;z-index:4;top:35%;display:flex;flex-direction:column;align-items:center;gap:5px;color:#b5d9cf;font-size:.62rem;letter-spacing:.15em}.camera-console{right:10%}.decision-console{right:5%;top:62%}.device-light{width:9px;height:9px;border-radius:50%;background:#70ffb0;box-shadow:0 0 10px #70ffb0}.device-button{width:64px;height:64px;border-radius:50%;border:4px solid #25363d;color:white;font-size:1.7rem;box-shadow:0 5px 0 #081116,0 0 20px #0008}.camera-button{background:#2c9eac}.reject-button{background:#aa4358;margin-right:10px}.accept-button{background:#42ad78}.device-button:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.2)}.decision-console small{font-size:.54rem;color:#9bbab2}.reception-footer{position:absolute;bottom:12px;left:22px;right:22px;display:flex;justify-content:space-between;color:#9bbab2;font-size:.62rem;letter-spacing:.12em;z-index:3}.reception-footer b{color:var(--mint)}.treatment-screen{position:absolute;left:6%;top:15%;width:48%;height:37%;padding:25px 32px;background:#cad7d9cc;border:10px solid #4e566b;box-shadow:0 0 0 2px #b5a9c0,0 14px 24px #0008;color:#153139;overflow:hidden}.screen-label{display:block;color:#3b7072;font-size:.62rem;letter-spacing:.15em}.treatment-screen-content{height:80%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:10px;font-family:'Rajdhani';font-size:1.6rem}.treatment-screen-content small{font-family:'Oxanium';font-size:.72rem;color:#32666a}.screen-noise{position:absolute;inset:0;background:repeating-linear-gradient(0deg,#ffffff14 0 1px,transparent 1px 4px);pointer-events:none}.treatment-bed{position:absolute;left:9%;bottom:12%;width:44%;height:32%;transform:perspective(500px) rotateX(8deg);background:linear-gradient(160deg,#e8f3ed,#738e98);border:7px solid #566474;box-shadow:0 20px 20px #0008}.bed-patient{height:100%;display:grid;place-items:center}.bed-patient .animal-avatar{height:130px;width:150px}.bed-label{position:absolute;bottom:-26px;left:0;color:#b7d3cc;font-size:.59rem;letter-spacing:.14em}.treatment-tools{position:absolute;right:6%;top:17%;width:32%;color:#d6efe4;text-align:center}.tools-label{font-size:.68rem;letter-spacing:.15em}.tool-icons{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:15px 0}.tool-icons span{height:60px;display:grid;place-items:center;border:1px solid #7893a2;background:#25374aab;border-radius:50%;color:var(--mint);font-size:1.7rem}.scan-device{border:1px solid var(--mint);background:#1d5360;color:#d5fff1;padding:12px;width:100%;font-size:.75rem;letter-spacing:.08em}.treatment-back{position:absolute;right:6%;bottom:9%}.lower-grid{display:grid;grid-template-columns:1.5fr 1.1fr .8fr;gap:10px;margin-top:12px}.panel{background:#12212a;border:1px solid #31545a;padding:16px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #31545a;padding-bottom:10px}.panel-title h2{font-family:'Rajdhani';font-size:1.15rem;margin:0;letter-spacing:.06em;text-transform:uppercase}.panel-title span{color:#83b5ac;font-size:.6rem;letter-spacing:.1em}.medical-guide p{color:#9cbab3;font-size:.75rem}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.guide-grid div{display:flex;flex-direction:column;gap:4px;padding:8px;background:#0c181e;border:1px solid #29484c}.guide-grid b{font-size:.72rem;color:#d5ede7}.guide-grid span{font-size:.61rem;color:#7fa9a1}.treatment-panel{border-color:#6ac6af;background:#132d2c}.medication-list{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}.med-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 3px;background:#10242b;border:1px solid #426d6d;color:#d6efe7;font-size:.66rem;text-transform:uppercase;cursor:pointer}.med-card:has(input:checked){border-color:var(--mint);background:#1d554d}.med-card input{accent-color:#8bf3d1}.med-icon{font-size:1.25rem}.anomaly-panel{border-color:#604d42}.alert-card{display:grid;gap:7px;color:#ffd5a0;padding:9px 0;border-bottom:1px solid #4e4742;font-size:.75rem}.alert-card span{color:#b79576;font-size:.64rem}.event-row{display:flex;justify-content:space-between;border-bottom:1px solid #28444a;padding:8px 0;color:#b3d2ca;font-size:.72rem}.event-row small{color:#718f8b}.muted{color:#73918d;font-size:.75rem}#message{min-height:22px;color:#ff9c9f;margin:12px 0}#message.success{color:var(--mint)}#final-report{margin-top:18px;padding:18px;border:1px solid #6bcdb0;background:#122d2b}#report-content{display:grid;grid-template-columns:1fr 1fr;gap:8px;color:#b8d8cf;font-size:.8rem}@media(max-width:900px){.login-screen{grid-template-columns:1fr}.login-art{min-height:260px}.lower-grid{grid-template-columns:1fr 1fr}.anomaly-panel{grid-column:span 2}}@media(max-width:640px){.app-frame{padding:10px}.topbar{align-items:flex-start}.operator{grid-template-columns:1fr auto}.operator span{display:none}.stats-bar{grid-template-columns:repeat(2,1fr)}.scene-wrap,.game-scene{min-height:650px}.window-frame{left:4%;width:74%;top:18%;height:55%}.camera-console{right:2%;top:30%}.decision-console{right:2%;top:58%}.lower-grid{grid-template-columns:1fr}.anomaly-panel{grid-column:auto}.treatment-screen{left:4%;width:58%;padding:14px}.treatment-tools{right:3%;width:34%}.treatment-bed{left:5%;width:53%}.start-panel{flex-direction:column;align-items:flex-start}}
html,body{overflow-x:hidden}.timer-stat strong.urgent{color:#ff777f;animation:pulse .8s infinite alternate}@keyframes pulse{to{opacity:.45}}.screen-treatment{display:block;color:#17635a;font-size:1rem}.special-room{position:relative;min-height:620px;margin-top:12px;padding:22px;background:radial-gradient(circle at 50% 38%,#263f4b,#0b141d 72%);border:1px solid #5b7f83;overflow:hidden}.special-room:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,#fff2 0 1px,transparent 1px 4px);pointer-events:none}.special-top{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center}.special-top strong{font-family:'Rajdhani';font-size:2rem;color:var(--mint);letter-spacing:.08em}.monitor-card{position:relative;z-index:1;width:min(820px,92%);margin:38px auto 0;padding:26px 34px;background:#182b34e8;border:9px solid #395d62;box-shadow:0 0 0 2px #7da7a1,0 20px 50px #000a;text-align:center}.monitor-card h2{font-family:'Rajdhani';letter-spacing:.14em;font-size:2.3rem;color:#dfffee;margin:8px 0}.monitor-card p{color:#9ebfbb}.hp-track{height:25px;background:#0b1519;border:2px solid #5e7d7c;padding:3px}.hp-track div{height:100%;width:45%;background:#d35c65;transition:width .2s,background .2s}.hp-track div:not(.low){background:#efc554}.hp-track div.high{background:#64d39b}.hp-label{display:flex;justify-content:space-between;color:#94b8b2;font-size:.68rem;letter-spacing:.14em;margin:8px 0 12px}.hp-label b{color:var(--mint)}.special-arena{position:relative;height:350px;background:radial-gradient(ellipse,#315e6444,transparent 68%);border:1px solid #41666a;overflow:hidden}.special-target{position:absolute;width:66px;height:66px;display:grid;place-items:center;border-radius:50%;font-size:2.25rem;cursor:pointer;user-select:none;animation:target-pop .12s ease-out;filter:drop-shadow(0 0 12px currentColor)}.special-target.heart{color:#ff7b91;background:#5c263d;border:2px solid #ff92a5}.special-target.skull{color:#f1dfbc;background:#4e3a2d;border:2px solid #f4c87a}.special-feedback{height:24px;margin-top:8px;color:#b6d5ce;font-size:.8rem}.special-feedback.success{color:#8ff4c3}.special-feedback.danger{color:#ff7e86}.damage-flash{animation:damage .18s}@keyframes target-pop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}@keyframes damage{50%{box-shadow:inset 0 0 0 100vmax #cf364522}}
.stats-bar{grid-template-columns:repeat(6,1fr)}
.stats-bar{grid-template-columns:repeat(6,1fr)}@media(max-width:640px){.stats-bar{grid-template-columns:repeat(2,1fr)}.monitor-card{padding:18px 12px}.special-room{min-height:560px}.special-arena{height:290px}}
.app-frame{height:100vh;overflow:hidden}#profile-view{height:100vh;overflow:hidden;display:flex;flex-direction:column}#profile-view[hidden]{display:none}.topbar{flex:none}.start-panel{flex:none}.game-hud{height:calc(100vh - 112px);min-height:0;display:flex;flex-direction:column;overflow:hidden}.stats-bar{flex:none;margin:10px 0}.scene-wrap{flex:1;min-height:0;height:auto}.game-scene{height:100%;min-height:0}.lower-grid{flex:none;height:126px;margin-top:8px;overflow:hidden}.lower-grid .panel{padding:10px;overflow:hidden}.events-panel{display:none}.special-room{height:100%;min-height:0;margin-top:0}.special-room .monitor-card{margin-top:18px}.special-arena{height:clamp(220px,42vh,350px)}@media(max-width:640px){.app-frame{padding:10px}.game-hud{height:calc(100vh - 95px)}.lower-grid{height:115px}.medical-guide p{display:none}.guide-grid{grid-template-columns:repeat(3,1fr)}.guide-grid div{padding:5px}.guide-grid span{font-size:.5rem}.guide-grid b{font-size:.57rem}.scene-wrap,.game-scene{min-height:0}.special-room{padding:14px}.special-room .monitor-card{margin-top:10px}.special-arena{height:230px}}
html,body{height:100%;overflow:hidden}
#game-hud{height:calc(100vh - 112px);min-height:0;display:flex;flex-direction:column;overflow:hidden}#game-hud[hidden]{display:none}@media(max-width:640px){#game-hud{height:calc(100vh - 95px)}}
#message{position:fixed;z-index:20;left:50%;bottom:18px;transform:translateX(-50%);width:min(520px,calc(100% - 30px));padding:10px 15px;margin:0;text-align:center;background:#14232bd9;border:1px solid #496a70;box-shadow:0 8px 20px #0008;color:#ff9c9f;pointer-events:none}#message:empty{display:none}
#message{position:static;transform:none;width:auto;margin:12px 0}html,body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}.app-frame{height:auto;min-height:100vh;overflow:visible}#profile-view{height:auto;min-height:100vh;overflow:visible;display:block}#game-hud{height:auto;min-height:0;display:block;overflow:visible}.scene-wrap{height:auto;min-height:620px}.game-scene{height:620px;min-height:620px}.lower-grid{height:auto;min-height:126px}.events-panel{display:block}.camera-console{left:15%;right:auto;top:75%}.decision-console{left:84%;right:auto;top:80.5%;flex-direction:row;flex-wrap:wrap;width:110px;justify-content:center}.decision-console>span,.decision-console>small{width:100%;text-align:center}.special-room{height:auto;min-height:620px}.special-arena{height:350px}@media(max-width:640px){.app-frame{padding:10px}.game-hud{height:auto}.scene-wrap,.game-scene{min-height:650px;height:650px}.camera-console{left:9%;top:72%}.decision-console{left:73%;top:78%;width:120px}}
.game-over-kicker{color:#ff777f;font-size:.7rem;letter-spacing:.2em}.game-over-screen{background:#230f18;border:1px solid #c54b61;padding:24px}.start-panel #game-over-screen{flex-basis:100%;text-align:center}.start-panel #game-over-screen h2{font-size:3rem;color:#ff6978;text-shadow:0 0 18px #ff3d5c;margin:10px 0}.start-panel #game-over-screen p{color:#ffc0c3}
.camera-console{left:13.5%;top:75%;width:75px}.camera-console .device-button{width:75px;height:68px}.decision-console{left:83.5%;top:80.5%;width:108px;height:76px;display:block}.decision-console>span{display:none}.decision-console>small{position:absolute;top:80px;left:0;width:108px}.decision-console .accept-button{width:108px;height:76px;border-radius:10px}.decision-console .reject-button{position:absolute;right:82px;top:8px;width:58px;height:58px;margin:0;z-index:2}
/* Vista paginada: una sola pantalla de juego, sin desplazamiento. */
html,body{height:100%;overflow:hidden}.app-frame{height:100vh;min-height:0;overflow:hidden}#profile-view{height:100vh;min-height:0;overflow:hidden;display:flex;flex-direction:column}#profile-view[hidden]{display:none}#game-hud{height:calc(100vh - 112px);min-height:0;display:flex;flex-direction:column;overflow:hidden;position:relative}.scene-wrap{flex:1;min-height:0;height:auto}.game-scene{height:100%;min-height:0}.lower-grid{flex:none;height:128px;min-height:0;overflow:hidden}.events-panel{display:none}.special-room{height:100%;min-height:0;margin-top:0;overflow:hidden}.special-arena{height:clamp(220px,38vh,350px)}.camera-console{left:13.5%;top:75%}.decision-console{left:83.5%;top:80.5%}@media(max-width:640px){.app-frame{padding:10px}.game-hud{height:calc(100vh - 95px)}.scene-wrap,.game-scene{min-height:0;height:auto}.lower-grid{height:116px}.camera-console{left:8%;top:73%}.decision-console{left:72%;top:78%}}
#login-view{height:calc(100vh - 48px);min-height:620px;display:grid;grid-template-columns:1.15fr .85fr;overflow:hidden}#login-view[hidden]{display:none}.login-art,.login-panel{min-height:0;height:100%}.login-panel{overflow-y:auto;justify-content:center}@media(max-height:760px) and (min-width:701px){#login-view{min-height:560px;height:calc(100vh - 24px)}.login-panel{padding:28px 48px}.login-panel h1{font-size:3rem;margin:12px 0}.login-foot{margin-top:20px}.login-panel form{margin-top:14px}}@media(max-width:700px){#login-view{height:auto;min-height:100vh;display:flex;flex-direction:column}.login-art{height:180px;min-height:180px}.login-panel{height:auto;min-height:calc(100vh - 180px);padding:28px 24px;overflow:visible}}
#app-root [hidden]{display:none!important}
#profile-view .topbar{padding:4px 0 8px;min-height:58px}.topbar h1{font-size:1.35rem;margin:2px 0}.brand-mark{width:28px;height:28px;font-size:1rem}.operator{gap:7px;font-size:.55rem}.operator strong{font-size:.75rem}.operator .ghost-button{padding:5px 8px;font-size:.65rem}.stats-bar{margin:6px 0;gap:5px}.stats-bar>div{padding:6px 9px;min-height:38px}.stats-bar span{font-size:.5rem}.stats-bar strong{font-size:1rem}.game-hud,#game-hud{height:calc(100vh - 82px)}.scene-wrap{min-height:0}.lower-grid{height:165px}.lower-grid .panel{padding:10px}.events-panel{display:none}.guide-grid{gap:5px}.guide-grid div{padding:6px}.treatment-panel .medication-list{margin:7px 0}.treatment-panel .med-card{padding:5px}.treatment-panel .primary-button{margin-top:3px;padding:8px 12px}
.operator{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}.operator>span{white-space:nowrap}
.treatment-active .medical-guide,.treatment-active .anomaly-panel{display:none}
.treatment-active .lower-grid{grid-template-columns:1fr;height:145px}
.treatment-active #treatment-panel{display:block;height:145px;overflow:hidden}
.treatment-active #treatment-panel .panel-title{padding-bottom:4px}
.treatment-active #treatment-panel .medication-list{grid-template-columns:repeat(6,1fr);gap:4px;margin:4px 0}
.treatment-active #treatment-panel .med-card{min-height:55px;padding:2px;font-size:.55rem}
.treatment-active #treatment-panel .med-icon{font-size:1rem}
.treatment-active #treatment-panel .primary-button{width:100%;padding:5px;margin:0}
#profile-view{height:auto;min-height:100vh;overflow-y:auto;overflow-x:hidden}
#app-root:has(#profile-view:not([hidden])),.app-frame:has(#profile-view:not([hidden])){height:auto;min-height:100vh;overflow:visible}
#profile-view #game-hud{height:auto;min-height:calc(100vh - 82px);overflow:visible}
#profile-view .scene-wrap{height:clamp(420px,52vh,620px);min-height:420px;flex:none}
#profile-view .lower-grid{height:auto;min-height:165px;overflow:visible}
#profile-view .lower-grid .panel{overflow:visible}
/* El scroll pertenece solo al área jugable; encabezado y lobby permanecen fijos. */
#app-root,#app-root .app-frame{height:100vh;min-height:0;overflow:hidden}
#profile-view{height:100vh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
#profile-view #game-hud{height:calc(100vh - 82px);min-height:0;display:block;overflow-y:auto;overflow-x:hidden}
#profile-view #game-hud .scene-wrap{height:clamp(420px,52vh,620px);min-height:420px}
#profile-view #game-hud .lower-grid{height:auto;min-height:165px;overflow:visible}
.special-target{z-index:5;pointer-events:auto}
/* En partida se usa el scroll natural de la página, nunca una barra interna. */
html:has(#profile-view:not([hidden])),body:has(#profile-view:not([hidden])){height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
#app-root:has(#profile-view:not([hidden])),.app-frame:has(#profile-view:not([hidden])){height:auto;min-height:100vh;overflow:visible}
#profile-view{height:auto;min-height:100vh;overflow:visible}
#profile-view #game-hud{height:auto;min-height:0;overflow:visible}
.inspection-dossier{display:grid;gap:2px;width:min(230px,90%);padding:5px 7px;margin:3px auto;background:#10232bce;border:1px solid #5a8580;color:#c4e7dc;font-size:.52rem;line-height:1.25;text-align:left}
.inspection-dossier b{color:var(--mint);font-size:.5rem;letter-spacing:.08em}
.inspection-dossier span{color:#a9c8c0}
.interrogation-button{padding:4px 7px;margin-top:3px;font-size:.55rem;color:#bff5df}
.inspection-desk{position:absolute;z-index:5;right:3%;top:12%;width:25%;min-width:190px;padding:10px;background:#0d1d25e8;border:1px solid #6b9e96;box-shadow:0 10px 24px #0009;color:#d8eee7}
.inspection-heading{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #315b5b;padding-bottom:6px;color:var(--mint);font-size:.58rem;letter-spacing:.1em}
.inspection-heading b{color:#f1cf76;font-size:.5rem}
.inspection-reference{display:grid;gap:5px;padding:9px 0;color:#b5d5cc;font-size:.62rem}
.inspection-reference strong{font-family:'Rajdhani';font-size:1rem;color:#f0fff8;letter-spacing:.06em}
.inspection-reference span{color:#8fb0aa}
.inspection-actions{display:flex;gap:5px}.inspection-actions button{flex:1;padding:5px 4px;font-size:.55rem}
.inspection-status{margin:7px 0 0;color:#9ff4d0;font-size:.58rem;line-height:1.35}
.patient-window.zoomed .animal-avatar{transform:scale(1.35);transition:transform .2s;z-index:4}
@media(max-width:900px){.inspection-desk{right:2%;width:29%;min-width:170px}.inspection-reference{font-size:.55rem}}
.desk-tools{position:absolute;z-index:6;left:31%;right:31%;bottom:3%;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;padding:5px;background:#0b171dcc;border:1px solid #466e6b}
.desk-tools button{border:1px solid #5d9188;background:#172c31;color:#bfeee0;padding:5px 3px;font-size:.52rem;cursor:pointer}.desk-tools button:hover:not(:disabled){background:#276056;color:white}.desk-tools button:disabled{opacity:.4}
.inspection-modal{position:absolute;z-index:10;inset:8% 30% 12%;display:grid;place-items:center;background:#061018aa}.inspection-modal[hidden]{display:none}
.inspection-modal-card{width:min(430px,90%);padding:14px;background:#172b32;border:2px solid #80c6b4;box-shadow:0 18px 40px #000c;color:#e3fff4}.inspection-modal-title{display:flex;justify-content:space-between;align-items:center;color:var(--mint);font-size:.72rem;letter-spacing:.1em;border-bottom:1px solid #426b68;padding-bottom:8px}.inspection-modal-title button{border:0;background:none;color:#ff9ba0;font-size:1.3rem;cursor:pointer}.paper-document{display:grid;gap:7px;padding:14px;margin-top:12px;background:#d7ded5;color:#172b2b;border:5px solid #5c6d6a;font-size:.7rem;line-height:1.3}.paper-document b{font-family:'Rajdhani';font-size:1.1rem}.paper-document small{color:#4b6863;font-size:.6rem}.paper-document button{justify-self:start}.checklist label{display:flex;gap:7px;align-items:center}.checklist input{accent-color:#237c67}
@media(max-width:900px){.desk-tools{left:24%;right:24%}.inspection-modal{inset:8% 20% 12%}}
.rebuild-mode .scene-wrap{height:auto;min-height:0;overflow:visible}.rebuild-mode .game-scene{min-height:640px;height:auto;overflow:visible}.rebuild-mode #reception-scene,.rebuild-mode #treatment-scene{position:relative;min-height:640px;padding:22px;background:linear-gradient(135deg,#101b24,#172d35);border:1px solid #3c686c}.v2-scene-label{display:flex;justify-content:space-between;color:#9ff4d0;font-size:.7rem;letter-spacing:.15em;border-bottom:1px solid #3d6666;padding-bottom:9px}.v2-scene-label b{color:#f2ce78;font-size:.6rem}.v2-image-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px auto;width:min(860px,72%)}.photo-panel{background:#0a151b;border:2px solid #3c6970;box-shadow:0 10px 24px #0009;min-height:280px}.photo-panel header{display:flex;justify-content:space-between;padding:8px 10px;color:#b9e5d8;font-size:.65rem;letter-spacing:.1em;border-bottom:1px solid #31555a}.photo-panel header span{color:#f0cb72}.photo-screen{height:235px;display:grid;place-items:center;text-align:center;color:#86a7a2}.photo-frame{height:190px;width:80%;display:grid;place-items:center;background:#111d20;overflow:hidden}.photo-frame img{width:100%;height:100%;object-fit:contain}.photo-screen strong{color:#eafff4;font-family:'Rajdhani';font-size:1.2rem}.photo-screen small{color:#8fb5ab}.photo-screen.zoomed .photo-frame img{transform:scale(1.6);transition:transform .25s}.v2-evidence{position:relative;width:min(860px,72%);margin:0 auto;padding:12px;background:#14252b;border:1px solid #527e78;color:#d9eee8}.v2-evidence>header{display:flex;justify-content:space-between;color:#9ff4d0;font-size:.7rem;letter-spacing:.1em}.v2-evidence>header strong{color:#f2c96d;font-family:'Rajdhani';font-size:1rem}.report-data{display:grid;gap:4px;padding:8px 0;color:#a9cbc0;font-size:.68rem}.report-data b{color:#f0fff6;font-size:.85rem}.evidence-buttons{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.evidence-buttons button,.secondary-button{border:1px solid #679a90;background:#1d353a;color:#bff1df;padding:7px 5px;font-size:.58rem;cursor:pointer}.evidence-buttons button:hover,.secondary-button:hover{background:#2b665b}.visitor-dialogue{margin-top:9px;padding:7px;background:#0c1a20;border-left:3px solid #daae65;color:#b6cfc8;font-size:.66rem;min-height:30px}.v2-evidence>#ask-visitor-v2{margin-top:7px}.v2-tools{display:flex;justify-content:center;gap:8px;margin:14px 0}.v2-decisions{display:flex;justify-content:center;gap:12px;margin:12px auto 0}.decision-accept,.decision-reject{border:2px solid;padding:10px 18px;font-weight:700;cursor:pointer}.decision-accept{background:#174d42;border-color:#70d0ac;color:#caffea}.decision-reject{background:#4d202d;border-color:#e47b88;color:#ffe0e0}.decision-accept:disabled,.decision-reject:disabled{opacity:.4;cursor:not-allowed}.evidence-modal{position:absolute;z-index:20;inset:5% 10%;display:grid;place-items:center;background:#030a0dcc}.evidence-modal[hidden]{display:none}.evidence-modal-card{width:min(480px,90%);padding:14px;background:#d7ded5;color:#1b3030;border:5px solid #536f6e;box-shadow:0 20px 60px #000c}.evidence-modal-card>header{display:flex;justify-content:space-between;color:#1f5551;font-size:.8rem}.evidence-modal-card>header button{border:0;background:none;color:#a23c4c;font-size:1.5rem}.paper{display:grid;gap:7px;padding:16px;margin-top:10px;background:#f1eedc;border:1px solid #657874;font-size:.75rem}.paper b{font-family:'Rajdhani';font-size:1.1rem}.paper small{color:#58716b}.paper button{justify-self:start}.paper label{display:flex;gap:8px}.treatment-v2{display:grid;grid-template-columns:1fr 1fr;gap:18px;width:min(900px,86%);margin:28px auto}.treatment-patient-card,.treatment-options{padding:18px;background:#142a31;border:1px solid #5c8982}.treatment-avatar{height:240px;display:grid;place-items:center;background:#0a151a}.treatment-avatar img{height:100%;max-width:100%;object-fit:contain}.treatment-patient-card h2{margin:10px 0 4px;color:#eafff5}.treatment-patient-card p,.treatment-options p{color:#9bbdb5;font-size:.75rem}.health-label{display:flex;justify-content:space-between;color:#9abdb4;font-size:.65rem}.health-label b{color:#9ff4d0}.health-track{height:15px;background:#091418;border:1px solid #527b75;margin-top:6px}.health-track div{height:100%;width:100%;background:#71d29d;transition:width .25s}.health-track div.low{background:#e36972}.treatment-options h3{color:#9ff4d0;margin-top:0}.treatment-choice{display:flex;align-items:center;gap:6px;padding:11px;background:#0c1b22;border:1px solid #466d6d;color:#c6e7de;font-size:.7rem;cursor:pointer}.treatment-choice:has(input:checked){border-color:#9ff4d0;background:#23574f}.treatment-choice input{accent-color:#9ff4d0}.treatment-options .decision-accept{width:100%}.treatment-options .secondary-button{margin-top:8px;width:100%}
@media(max-width:900px){.v2-image-pair,.treatment-v2{width:100%}.v2-evidence{width:100%}.evidence-buttons{grid-template-columns:repeat(3,1fr)}}
#treatment-options-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin:15px 0}
html,body,#app-root,.app-frame{max-width:100vw;overflow-x:hidden}
.rebuild-mode,#profile-view,#game-hud,.rebuild-mode .scene-wrap,.rebuild-mode .game-scene{overflow-y:visible!important;overflow-x:hidden!important}
.rebuild-mode .v2-image-pair{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
.rebuild-mode .photo-panel{min-width:0}
.rebuild-mode .photo-screen{height:245px;padding:8px;overflow:hidden}
.rebuild-mode .photo-frame{width:100%;height:195px;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.rebuild-mode .photo-frame img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center}
.rebuild-mode,.rebuild-mode .scene-wrap,.rebuild-mode .game-scene{overflow:hidden!important}
html,body,#app-root,.app-frame,#profile-view,#game-hud{height:100vh!important;max-height:100vh!important;overflow:hidden!important}
#game-hud{height:calc(100vh - 82px)!important}
.rebuild-mode .scene-wrap{height:100%!important;min-height:0!important}
.rebuild-mode .game-scene{height:100%!important;min-height:0!important;padding:12px!important}
.rebuild-mode .v2-image-pair{height:35vh;min-height:180px;margin:8px auto;gap:8px}
.rebuild-mode .photo-panel{height:100%;min-height:0}
.rebuild-mode .photo-screen{height:calc(100% - 32px);padding:5px}
.rebuild-mode .photo-frame{height:calc(100% - 32px)}
.rebuild-mode .v2-evidence{padding:8px}
.rebuild-mode .report-data{padding:4px 0;gap:2px}
.rebuild-mode .visitor-dialogue{margin-top:4px;min-height:24px;padding:5px}
.rebuild-mode .v2-tools{margin:7px 0}
.rebuild-mode .v2-decisions{margin:7px auto 0}
.rebuild-mode #game-hud{height:calc(100vh - 132px)!important}
.rebuild-mode .game-scene{padding:8px!important}
.rebuild-mode .v2-scene-label{padding-bottom:5px;font-size:.58rem}
.rebuild-mode .v2-image-pair{height:24vh;min-height:130px;margin:5px auto;gap:6px}
.rebuild-mode .photo-screen{height:calc(100% - 28px);font-size:.75rem}
.rebuild-mode .photo-frame{height:calc(100% - 26px)}
.rebuild-mode .photo-screen strong{font-size:.95rem}
.rebuild-mode .photo-screen small{font-size:.55rem}
.rebuild-mode .v2-evidence{padding:6px}
.rebuild-mode .report-data{font-size:.57rem;line-height:1.1}
.rebuild-mode .report-data b{font-size:.7rem}
.rebuild-mode .evidence-buttons{gap:3px}.rebuild-mode .evidence-buttons button{padding:4px 2px;font-size:.5rem}
.rebuild-mode .visitor-dialogue{font-size:.56rem;min-height:20px;padding:4px}
.rebuild-mode .v2-evidence>#ask-visitor-v2{padding:4px;margin-top:3px;font-size:.5rem}
.rebuild-mode .v2-tools{margin:4px 0}.rebuild-mode .v2-tools button{padding:5px;font-size:.52rem}
.rebuild-mode .v2-decisions{margin:4px auto 0}.rebuild-mode .decision-accept,.rebuild-mode .decision-reject{padding:6px 10px;font-size:.58rem}
.rebuild-mode #reception-scene{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr);grid-template-rows:auto 1fr auto auto;column-gap:12px;align-content:stretch}
.rebuild-mode #reception-scene>.v2-scene-label{grid-column:1/-1;grid-row:1}
.rebuild-mode #reception-scene>.v2-image-pair{grid-column:1;grid-row:2;height:100%;min-height:0;margin:8px 0;width:100%;align-self:stretch}
.rebuild-mode #reception-scene>.v2-evidence{grid-column:2;grid-row:2 / span 3;width:100%;height:100%;margin:8px 0 0;align-self:stretch}
.rebuild-mode #reception-scene>.v2-tools{grid-column:1;grid-row:3;margin:5px 0}
.rebuild-mode #reception-scene>.v2-decisions{grid-column:1;grid-row:4;margin:5px 0}
.rebuild-mode #reception-scene>.evidence-modal{grid-column:1/-1;grid-row:1/-1}
.rebuild-mode .v2-image-pair .photo-panel{height:100%}
.rebuild-mode .v2-image-pair .photo-screen{height:calc(100% - 30px)}
.rebuild-mode .v2-image-pair .photo-frame{height:calc(100% - 30px)}
.rebuild-mode .v2-image-pair .photo-frame img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.rebuild-mode .v2-image-pair{grid-template-columns:1fr}
.rebuild-mode .v2-image-pair:has(.verification-panel:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}
.rebuild-mode .game-scene{width:100%;max-width:100%;overflow-x:hidden}

/* Recepcion de una sola pantalla: escritorio interactivo inspirado en el referente */
.rebuild-mode #reception-scene{padding:0!important;border:0!important;background:#15191d url('assets/reception-office.jpg') center/cover no-repeat!important;min-height:0!important;height:100%!important;display:block!important;overflow:hidden!important}
.desk-board{position:relative;width:100%;height:100%;min-height:520px;overflow:hidden;background:linear-gradient(180deg,#0b101655,#0b101622 55%,#080b0bcc)}
.desk-status{position:absolute;z-index:4;left:1.5%;right:1.5%;top:1.5%;display:flex;align-items:center;gap:16px;color:#f5d878;font-size:.64rem;letter-spacing:.1em;text-shadow:0 2px 4px #000}.desk-status b{color:#b9f4d9;font-size:.58rem}.desk-status strong{margin-left:auto;color:#f5d878;font-size:1rem}
.desk-window{position:absolute;z-index:2;left:27%;top:7%;width:49%;height:56%;padding:12px;background:#141c22b8;border:5px solid #37444b;box-shadow:inset 0 0 0 2px #71756e,0 12px 24px #000b}.window-label{height:22px;color:#a9eee0;font-size:.58rem;letter-spacing:.12em}.window-label i{float:right;color:#7ff59c;font-style:normal}.desk-window .photo-screen{height:calc(100% - 22px);display:grid;place-items:center;background:radial-gradient(ellipse,#81485299,#18262d 70%);overflow:hidden}.desk-window .photo-screen .photo-frame{width:65%;height:84%;background:transparent;border:0}.desk-window .photo-screen .photo-frame img{object-fit:contain!important;mix-blend-mode:screen}.desk-window .photo-screen strong{position:absolute;bottom:10%;color:#f6f4e6;font-family:'Rajdhani';font-size:1.2rem;text-shadow:0 2px 4px #000}.desk-window .photo-screen small{position:absolute;bottom:5%;color:#b3d8cb;font-size:.58rem}.verification-screen{position:absolute!important;inset:12px;z-index:2;border:2px solid #c4a24e;box-shadow:0 0 18px #000}.verification-screen[hidden]{display:none!important}.verification-screen .photo-frame{width:80%!important;height:82%!important}
.desk-left{position:absolute;z-index:3;left:3%;top:24%;display:grid;gap:8px;justify-items:center}.hotspot{border:2px solid #202629;background:#c04d49;color:#fbe7a6;width:46px;height:46px;border-radius:50%;font-size:1.3rem;box-shadow:0 3px 0 #381e25;cursor:pointer}.hotspot-alert{border-radius:4px;background:#d2b046;color:#251d13}.desk-note{color:#e8d995;font-size:.48rem;text-align:center;letter-spacing:.08em}
.desk-folders{position:absolute;z-index:3;right:3%;top:15%;width:17%;display:grid;gap:8px}.desk-folders button{padding:12px 6px;border:2px solid #5d533f;background:#bda767d9;color:#241c1a;font:700 .7rem 'Rajdhani';box-shadow:0 3px 0 #4d3d35;cursor:pointer}.desk-folders button:hover{filter:brightness(1.18);transform:translateX(-2px)}
.desk-bottom{position:absolute;z-index:4;left:3%;right:3%;bottom:3%;height:25%;display:flex;align-items:flex-end;gap:12px}.desk-object{border:2px solid #343e43;background:#1d2528e8;color:#f1e9d6;cursor:pointer;box-shadow:0 4px 0 #080b0c}.phone-object{width:86px;height:58px;border-radius:40% 40% 28% 28%;font-size:2rem}.mic-object{width:58px;height:42px;border-radius:50%;font-size:1.1rem}.camera-object{width:56px;height:42px;border-radius:50%;font-size:1.2rem}.desk-object:hover{filter:brightness(1.3);transform:translateY(-2px)}.paper-stack{display:flex;gap:5px;margin-left:5px}.paper-stack button{padding:9px 8px;background:#e8dfc0;color:#29221b;border:1px solid #88785c;transform:rotate(-3deg);font-size:.55rem;cursor:pointer}.paper-stack button+button{transform:rotate(4deg)}.desk-actions{margin-left:auto;display:flex;gap:8px}.desk-actions button{padding:13px 15px;font-size:.62rem}.visitor-caption{position:absolute;z-index:5;left:29%;right:26%;bottom:1%;display:flex;justify-content:space-between;gap:12px;color:#d9e9df;font-size:.57rem;text-shadow:0 2px 4px #000}.visitor-caption b{color:#f2cf72}.visitor-caption b span{font-weight:400}
.tutorial-overlay{position:fixed;z-index:100;inset:0;display:grid;place-items:center;background:#050b0ed9}.tutorial-card{width:min(560px,90vw);padding:30px;background:linear-gradient(145deg,#172c34,#0d171e);border:2px solid #6ccab0;box-shadow:0 24px 90px #000;color:#e9fff6}.tutorial-card h2{font-family:'Rajdhani';font-size:2.3rem;color:#9ff4d0;margin:14px 0 8px}.tutorial-card #tutorial-body{min-height:85px;color:#b5d8cf;line-height:1.6}.tutorial-footer{display:flex;align-items:center;justify-content:space-between;margin-top:20px;color:#8fb8ad;font-size:.7rem}.tutorial-footer .primary-button{margin:0}
.tutorial-med-guide{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:14px;padding:10px;background:#0b171d;border:1px solid #3f716c;color:#a9d9ca;font-size:.58rem}.tutorial-med-guide b{grid-column:1/-1;color:#f2d17b;font-size:.68rem;letter-spacing:.08em}.tutorial-med-guide span{padding:4px 5px;background:#12262b}
.tutorial-error{min-height:18px;margin:10px 0 0;color:#ff9c9f;font-size:.68rem}
.register-toggle{align-self:flex-start;border:0;background:none;color:var(--mint);padding:0;text-decoration:underline;font-size:.72rem;cursor:pointer}.register-panel{display:grid;gap:8px;margin-top:12px;padding:14px;background:#0b171d;border:1px solid #4d7c75}.register-panel label{margin-top:0!important;font-size:.65rem!important}.register-panel input{padding:10px 12px!important}.register-panel .primary-button{margin-top:4px}.register-message{min-height:18px;margin:0;color:#ff9c9f;font-size:.7rem}.register-message.created{color:#ff777d}
.evidence-modal{inset:0!important;background:#05090ed9!important}.evidence-modal-card{width:min(520px,90vw);max-height:86vh;overflow:auto}
.phone-panel{min-height:360px;place-content:center;text-align:center;gap:18px;background:radial-gradient(circle at center,#4c3f4b,#151a20 70%);border:7px solid #30383e;font-size:1.1rem}.phone-panel b{font-size:1.7rem;color:#f0d783}.phone-panel .secondary-button{font-size:1rem;padding:14px 22px}.phone-panel small{font-size:.75rem;color:#9fd6c1}
@media(max-width:900px){.desk-window{left:20%;width:58%}.desk-folders{width:19%}.desk-actions button{padding:10px 8px}.desk-bottom{gap:6px}.phone-object{width:65px}}
@media(max-width:640px){.desk-board{min-height:430px}.desk-window{left:13%;width:68%;height:54%}.desk-left{left:1%;top:25%}.desk-folders{right:1%;width:20%;gap:4px}.desk-folders button{padding:8px 3px;font-size:.55rem}.desk-bottom{left:2%;right:2%;height:27%;gap:4px}.paper-stack{display:none}.desk-actions{gap:4px}.desk-actions button{font-size:.5rem;padding:8px 5px}.visitor-caption{left:16%;right:21%;font-size:.48rem}}

/* El tablero mantiene una proporcion cuadrada y siempre cabe al 100% */
#profile-view.rebuild-mode{height:100vh!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
#profile-view.rebuild-mode #game-hud{height:auto!important;min-height:0!important;flex:1 1 auto!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
#profile-view.rebuild-mode #game-hud .stats-bar{flex:0 0 auto!important}
#profile-view.rebuild-mode #game-hud .scene-wrap{flex:0 0 auto!important;width:min(100%,calc(100vh - 112px))!important;height:auto!important;aspect-ratio:1/1!important;min-height:0!important;margin:4px auto 0!important;overflow:hidden!important}
#profile-view.rebuild-mode #game-hud .game-scene{height:100%!important;min-height:0!important;width:100%!important;overflow:hidden!important}
#profile-view.rebuild-mode #game-hud .lower-grid,#profile-view.rebuild-mode #game-hud .events-panel{display:none!important}
@media(max-width:640px){#profile-view.rebuild-mode #game-hud .scene-wrap{width:min(100%,calc(100vh - 125px))!important}}
.rebuild-mode .evidence-modal{cursor:pointer!important}.rebuild-mode .evidence-modal-card{position:relative;cursor:default!important}.rebuild-mode .evidence-modal-card>header{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:34px!important}.rebuild-mode .evidence-modal-card>header button{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border:1px solid #a23c4c!important;background:#f1d9d7!important;color:#8e2639!important;font-size:1.45rem!important;line-height:1!important;cursor:pointer!important}
#profile-view.rebuild-mode #game-hud{background:linear-gradient(90deg,#091017cc,#09101766,#091017cc),url('assets/reception-office.jpg') center/cover no-repeat!important}
#profile-view.rebuild-mode #game-hud[hidden],#profile-view.rebuild-mode #treatment-scene[hidden],#profile-view.rebuild-mode #reception-scene[hidden]{display:none!important}
#profile-view.rebuild-mode .visitor-caption{left:24%!important;right:22%!important;bottom:28%!important;min-height:22px!important;padding:4px 7px!important;background:#071116c9!important;border:1px solid #527b75!important;font-size:.5rem!important;line-height:1.15!important}
#profile-view.rebuild-mode .desk-bottom{height:22%!important;bottom:2%!important}
#profile-view.rebuild-mode .desk-object{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;color:#f5e7bc!important;background:#1d3035ee!important;border-color:#a2d6c0!important}
#profile-view.rebuild-mode .desk-object small{font:700 .4rem 'Oxanium',sans-serif!important;letter-spacing:.04em!important;color:#b9eed8!important}
#profile-view.rebuild-mode .camera-object:not(:disabled),#profile-view.rebuild-mode .mic-object:not(:disabled){box-shadow:0 0 14px #71e5bd88,0 4px 0 #080b0c!important}
@media (max-height:760px){#profile-view.rebuild-mode #game-hud .scene-wrap{width:min(100%,calc(100vh - 125px))!important}#profile-view.rebuild-mode .desk-bottom{height:27%!important;bottom:1%!important;gap:5px!important}#profile-view.rebuild-mode .desk-object{width:52px!important;height:42px!important;font-size:1.25rem!important}.phone-object{width:64px!important}.desk-actions button{padding:8px 7px!important;font-size:.52rem!important}.paper-stack button{padding:6px 5px!important;font-size:.45rem!important}}
#profile-view.rebuild-mode .desk-board{min-height:0!important;height:100%!important}
#profile-view.rebuild-mode .desk-bottom{z-index:20!important;pointer-events:auto!important;bottom:1%!important;height:30%!important;align-items:flex-end!important}
#profile-view.rebuild-mode .desk-board.curtain-closing:after{content:'';position:absolute;z-index:30;inset:0;background:repeating-linear-gradient(90deg,#8f343b 0 22px,#c45450 22px 42px);animation:deskCurtain .45s ease-in forwards;pointer-events:none}
@keyframes deskCurtain{from{transform:translateY(-100%)}to{transform:translateY(0)}}
#profile-view.rebuild-mode .desk-board.curtain-opening:after{content:'';position:absolute;z-index:30;inset:0;background:repeating-linear-gradient(90deg,#8f343b 0 22px,#c45450 22px 42px);animation:deskCurtainOpen .45s ease-out forwards;pointer-events:none}
@keyframes deskCurtainOpen{from{transform:translateY(0)}to{transform:translateY(-100%)}}
#profile-view.rebuild-mode .desk-actions{z-index:21!important;display:flex!important;visibility:visible!important}
#profile-view.rebuild-mode .desk-actions button{display:inline-flex!important;visibility:visible!important;min-height:34px!important;white-space:nowrap!important}
#profile-view.rebuild-mode .evidence-modal{position:fixed!important;inset:0!important;z-index:100!important;display:grid!important;place-items:center!important;padding:12px!important;box-sizing:border-box!important}
#profile-view.rebuild-mode .evidence-modal[hidden]{display:none!important}
#profile-view.rebuild-mode .evidence-modal-card{width:min(620px,92vw)!important;max-height:88vh!important;overflow:auto!important;box-sizing:border-box!important}
#profile-view.rebuild-mode .evidence-modal-card>header button{position:relative!important;z-index:3!important;flex:0 0 34px!important}
