@font-face{font-family:Requiem;src:url('assets/serif.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#0d100f;color:#ece5d4;font-family:Requiem,Georgia,serif}button,a,input{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #e1c280;outline-offset:4px}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}#game{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden;background:#141916;user-select:none;touch-action:none}#scene{width:100%;height:100%;display:block}#vignette,#damage{position:absolute;inset:0;pointer-events:none}#vignette{box-shadow:inset 0 0 120px 30px #0008}#damage{box-shadow:inset 0 0 90px 50px #9e1d1d;opacity:0}#hud{position:absolute;inset:0;pointer-events:none;text-shadow:1px 2px 3px #0009}#hud button{pointer-events:auto}.top-left{position:absolute;left:24px;top:24px}#chapter-label{font-size:12px;letter-spacing:1.4px;color:#e0d5b8;margin-bottom:12px}#map{width:116px;height:116px;border:1px solid #d6bf8260;opacity:.8;border-radius:50%;background:#0e181adc}.objective{position:absolute;left:50%;top:26px;transform:translateX(-50%);text-align:center;max-width:44%;background:linear-gradient(90deg,transparent,#121c18d9,transparent);padding:12px 26px;min-width:270px;font-size:12px;letter-spacing:1.4px}.objective span{display:block}#objective-distance{font-size:14px;color:#c6bb9b;margin-top:8px}.top-actions{position:absolute;right:24px;top:24px;display:flex;gap:8px}.icon-button{width:40px;height:40px;background:#101b17c9;border:1px solid #c4b48660;font-size:20px}.icon-button:hover{background:#47534c}#crosshair{position:absolute;left:50%;top:50%;width:24px;height:24px;transform:translate(-50%,-50%)}#crosshair i{position:absolute;background:#e6e5c7;box-shadow:0 1px 2px #000}#crosshair i:nth-child(1){width:2px;height:5px;left:11px;top:0}#crosshair i:nth-child(2){width:2px;height:5px;left:11px;bottom:0}#crosshair i:nth-child(3){height:2px;width:5px;top:11px;left:0}#crosshair i:nth-child(4){height:2px;width:5px;top:11px;right:0}#hitmarker{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:42px;color:#d8c9a0;opacity:0}#toast{position:absolute;top:23%;left:50%;transform:translateX(-50%);text-align:center;color:#e7c98b;font-size:15px;letter-spacing:1px;opacity:0;transition:opacity .2s;white-space:nowrap}#interact{position:absolute;left:50%;bottom:25%;transform:translateX(-50%);padding:12px 18px;background:#101714dd;border:1px solid #c5b48a7a;font-size:14px;letter-spacing:.7px;display:none;text-align:center}.health-panel,.weapon-panel{position:absolute;bottom:30px;padding:14px 19px;background:linear-gradient(135deg,#101d18ed,#101813cf);border-top:1px solid #b6a87980}.health-panel{left:26px;width:234px}.micro{font-size:11px;letter-spacing:1.8px;color:#b6b59e}.health-line{display:flex;gap:10px;align-items:center;margin:4px 0 8px}.health-line strong{font-size:32px;line-height:1}.health-line>span{font-size:10px;color:#a7b297;letter-spacing:1px}#herbs{margin-left:auto;background:none;border:0;font-size:22px;color:#a8c28b;padding:4px}#herbs b{font-size:15px}.health-track{height:4px;background:#465148}.health-track i{display:block;background:#a9bf88;height:100%;width:100%;transition:width .2s}.weapon-panel{right:26px;width:184px;text-align:right}.ammo{margin:3px 0}.ammo strong{font-size:38px;line-height:1.1}.ammo span{color:#b9b9a6;font-size:17px;margin-left:8px}.ammo b{font-weight:400}#weapon-state{font-size:10px;letter-spacing:1.4px;color:#b8b8a4}.reload-track{height:3px;margin-top:9px;background:#46483b}.reload-track i{height:100%;width:0;display:block;background:#d9bd7e}.desktop-hint{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:.8px;color:#dedaca99;white-space:nowrap}.desktop-hint span{margin:0 8px}#touch{display:none}#transition{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#0d1311;opacity:0;pointer-events:none;transition:opacity .55s;z-index:8;text-align:center;padding:30px}#transition.active{opacity:1;pointer-events:auto}#transition-kicker{font-size:13px;letter-spacing:5px;color:#b9a476}#transition-name{font-size:clamp(34px,6vw,72px);font-weight:400;margin:18px 0}#transition i{height:1px;width:75px;background:#947e54}#transition-copy{font-size:14px;color:#b6baa8;margin-top:22px;line-height:1.8}.menu{position:absolute;inset:0;z-index:10;background:transparent;display:flex;align-items:center;padding:86px 7% 70px}.menu-shade{position:absolute;inset:0;background:linear-gradient(90deg,#09100ee6 0%,#09100eb8 28%,#09100e50 55%,#09100e20 100%)}.menu.wide .menu-shade{background:linear-gradient(90deg,#09100e60,#09100ecc 25%,#09100ec2 75%,#09100e60)}.brand{position:absolute;top:30px;left:7%;display:flex;align-items:center;gap:12px;letter-spacing:1px}.brand b{font-size:20px;font-weight:bold;letter-spacing:2px}.brand>span{color:#767c68}.brand small{font-size:10px;color:#bfbea8;letter-spacing:1.3px}#menu-content{position:relative;z-index:1;width:440px;max-width:100%}.eyebrow{font-size:11px;letter-spacing:4px;color:#c9bb97;margin-bottom:17px}.game-title{font-weight:400;line-height:.93;letter-spacing:-2px;margin:0;color:#ece8dd;font-size:clamp(48px,6.3vw,94px);text-shadow:3px 4px 0 #0007}.game-title .resident{display:block;font-size:.69em;letter-spacing:.02em}.game-title .evil{white-space:nowrap}.game-title b{font-weight:400;color:#ae352c;margin-left:10px;font-size:1.32em}.genre{display:flex;align-items:center;gap:15px;margin:21px 0 30px;letter-spacing:5px;font-size:13px;color:#c7ba9d}.genre:before{content:'';width:36px;height:1px;background:#a08a64}.menu-copy{color:#abb3a3;font-size:14px;line-height:1.9;margin:0 0 24px;max-width:340px}.actions{display:flex;flex-direction:column;gap:10px;max-width:300px}.button{min-height:47px;background:#b9a77b;color:#151e17;border:1px solid #d2c097;text-transform:uppercase;letter-spacing:2px;font-size:12px;font-weight:bold;text-align:center;display:flex;align-items:center;justify-content:center;text-decoration:none;padding:12px 18px;transition:background .15s,transform .15s}.button:hover{background:#ddcca1;transform:translateX(3px)}.button.secondary{background:#0b1711c9;color:#d1c7aa;border-color:#8b85615e}.button.secondary:hover{background:#354436}.menu-links{display:flex;gap:24px;margin-top:22px}.small-link{background:none;border:0;color:#adbaa8;padding:4px 0;font-size:10px;letter-spacing:1.5px;text-decoration:none}.small-link:hover{color:#eddec0}.menu-bottom{position:absolute;bottom:26px;left:7%;right:5%;display:flex;justify-content:space-between;gap:20px;color:#829082;font-size:9px;letter-spacing:2px}.menu-bottom>div{display:flex;gap:22px}.menu h2{font-size:clamp(30px,4vw,54px);font-weight:400;margin:10px 0 18px;letter-spacing:-1px}.menu p{line-height:1.8}.menu.wide #menu-content{width:700px}.menu.wide{justify-content:center}.menu.wide .brand{left:max(7%,calc(50% - 350px))}.panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.controls-grid{display:grid;grid-template-columns:100px 1fr;gap:13px 18px;font-size:13px;color:#bdc6b5;margin:25px 0}.controls-grid b{font-size:12px;color:#e0d5b5;font-weight:400}.setting{display:flex;align-items:center;justify-content:space-between;gap:30px;font-size:14px;padding:18px 0;border-bottom:1px solid #bfb48230}.setting input{width:145px;accent-color:#c1ad7c}.stat-row{display:flex;gap:36px;margin:25px 0 30px}.stat-row div{display:flex;flex-direction:column;gap:6px}.stat-row strong{font-size:28px;font-weight:400}.stat-row span{font-size:10px;letter-spacing:1px;color:#a6b29e}.shop{border-left:1px solid #a1956b50;padding-left:28px}.shop h3{font-size:19px;font-weight:400;color:#ddc18b}.shop p{font-size:12px;color:#bbc3ad}.shop .button{min-height:43px;font-size:10px;letter-spacing:1px;margin-bottom:8px}.shop small{color:#c5af79}.error{color:#e7b4a0;font-size:12px;line-height:1.8}.touch-only{display:none}
.touch-mode #touch{display:block;position:absolute;inset:0;pointer-events:none}.touch-mode .desktop-hint{display:none}.touch-mode .touch-only{display:block}.touch-mode .top-actions .sound-toggle{display:none}.touch-mode #joystick{position:absolute;bottom:130px;left:28px;width:112px;height:112px;border-radius:50%;background:#12281b55;border:1px solid #dfdcc950;pointer-events:auto}.touch-mode #stick{position:absolute;left:35px;top:35px;width:40px;height:40px;border-radius:50%;background:#dedcc744;border:1px solid #eeebc780}.touch-mode #touch-look{position:absolute;right:0;top:95px;width:55%;height:56%;pointer-events:auto}.touch-mode #touch-fire{position:absolute;bottom:159px;right:33px;width:76px;height:76px;border-radius:50%;background:#73352c99;border:1px solid #dcb69a99;pointer-events:auto;font-size:13px;letter-spacing:1px}.touch-mode .touch-actions{position:absolute;right:24px;bottom:110px;display:flex;gap:8px}.touch-mode .touch-actions button{width:45px;height:37px;background:#18251ccc;border:1px solid #c0bea17a;font-size:10px;pointer-events:auto}.touch-mode .health-panel,.touch-mode .weapon-panel{bottom:20px}.touch-mode .objective{top:15px}.touch-mode .top-left{top:18px;left:18px}
@media(max-width:700px){.menu{padding:90px 7% 70px}.brand{top:25px}.brand b{font-size:17px}.brand small{font-size:9px}.main-menu #menu-content{align-self:flex-end;padding-bottom:12px}.main-menu .menu-shade{background:linear-gradient(0deg,#09130fe6 0%,#09130fb3 35%,#09130f38 75%)}.game-title{font-size:65px}.main-menu .menu-copy{display:none}.genre{margin:15px 0 22px}.actions{max-width:100%;width:290px}.menu-bottom>span{display:none}.menu-bottom{left:7%;right:7%;bottom:16px}.menu-bottom>div{width:100%;justify-content:space-between}.menu-links{margin-top:17px}.panel-grid{grid-template-columns:1fr;gap:8px}.shop{border-left:0;border-top:1px solid #b2aa7440;padding-left:0;padding-top:8px}.shop h3{margin:5px 0 8px}.shop .button{min-height:38px;margin-bottom:6px}.shop p{margin:5px 0}.menu h2{font-size:34px;margin-bottom:12px}.stat-row{margin:15px 0;gap:24px}.stat-row strong{font-size:24px}.menu.wide{padding-top:80px;padding-bottom:55px}.menu.wide .brand{left:7%}.health-panel{left:12px;width:171px;padding:10px 12px}.weapon-panel{right:12px;width:126px;padding:10px 12px}.health-line strong{font-size:26px}.health-line>span{font-size:8px}.health-line{gap:6px}.micro{font-size:8px;letter-spacing:1px}.ammo strong{font-size:29px}.ammo span{font-size:13px}.top-left{left:12px;top:15px}#chapter-label{font-size:8px;letter-spacing:1px;max-width:130px}#map{width:78px;height:78px}.objective{top:116px;max-width:90%;min-width:230px;padding:7px 14px;font-size:9px;letter-spacing:1px}#objective-distance{font-size:11px;margin-top:5px}.top-actions{top:15px;right:12px;gap:6px}.icon-button{width:34px;height:34px;font-size:17px}#toast{top:30%;font-size:12px;white-space:normal;width:85%}#interact{bottom:38%;font-size:11px;width:max-content;max-width:80%}.controls-grid{font-size:12px;gap:11px 12px;margin:16px 0}#vignette{box-shadow:inset 0 0 90px 8px #0007}}
@media(max-height:540px) and (min-width:620px){.menu{padding:60px 6% 44px}.brand{top:18px;left:6%}.brand b{font-size:16px}.brand small{font-size:9px}.main-menu #menu-content{align-self:center;padding:0}.game-title{font-size:55px}.eyebrow{margin-bottom:10px;font-size:9px}.genre{margin:12px 0 17px;font-size:10px}.main-menu .menu-copy{display:none}.button{min-height:36px;padding:9px 15px;font-size:10px}.actions{gap:7px;max-width:250px}.menu-links{margin-top:12px}.menu-bottom{bottom:13px}.menu h2{font-size:33px;margin:6px 0 12px}.menu.wide{padding:55px 6% 40px}.controls-grid{gap:9px;font-size:11px;margin:14px 0}.setting{padding:12px 0}.panel-grid{gap:25px}.stat-row{margin:16px 0}.top-left{top:10px;left:13px}#map{width:70px;height:70px}#chapter-label{font-size:8px;margin-bottom:6px}.top-actions{top:12px;right:13px}.objective{top:8px;font-size:9px;padding:6px 18px}.health-panel{width:175px;bottom:13px;left:15px;padding:8px 12px}.weapon-panel{width:132px;bottom:13px;right:15px;padding:8px 12px}.health-line strong{font-size:25px}.ammo strong{font-size:28px}.health-line>span{font-size:8px}.micro{font-size:8px}.health-line{margin-bottom:5px}.desktop-hint{bottom:14px;font-size:7px}#joystick{bottom:111px;left:20px;width:85px;height:85px}#stick{left:23px;top:23px}#touch-fire{bottom:117px;right:28px;width:60px;height:60px}.touch-actions{bottom:77px;right:17px}.touch-actions button{width:39px;height:30px}#touch-look{top:70px;height:60%}#interact{bottom:31%;font-size:11px;padding:8px 12px}#toast{top:24%;font-size:12px}}

@media(max-height:540px) and (min-width:620px){.settings-menu #menu-content{width:690px}.settings-options{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.settings-options .setting{padding:10px 0;gap:10px;font-size:12px}.settings-options input[type=range]{width:110px}.settings-menu .settings-note{margin:10px 0!important;font-size:11px;max-width:100%}.settings-menu .actions{flex-direction:row;max-width:100%;width:100%}.settings-menu .actions>*{min-width:220px}}
@media(max-width:700px){.touch-mode .objective{top:116px}}

/* Keep complete menus between the branding and footer at compact sizes. */
.help-menu .menu-copy{font-size:12px;line-height:1.6;margin-bottom:14px}
@media(max-width:700px){
 .help-menu .actions,.chapter-menu .actions{flex-direction:row;max-width:100%;width:100%}
 .help-menu .actions>*,.chapter-menu .actions>*{flex:1;min-width:0;padding-inline:8px;letter-spacing:1px}
 .chapter-menu .panel-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .chapter-menu .panel-grid>div:first-child{display:contents}
 .chapter-menu .stat-row{grid-row:1;margin:6px 0;justify-content:space-between;gap:12px}
 .chapter-menu .panel-grid>div:first-child>.menu-copy{grid-row:2;margin:0;font-size:12px}
 .chapter-menu .shop{grid-row:3;padding-top:10px}
 .chapter-menu .shop>p:first-of-type{display:none}
 .chapter-menu .actions{grid-row:4}
 .chapter-menu #shop-message{font-size:11px;line-height:1.4;display:block}
 .menu-links{flex-wrap:wrap;gap:12px 20px}
}
@media(max-width:700px) and (max-height:740px){
 .menu,.menu.wide{padding:62px 6% 48px}
 .brand,.menu.wide .brand{left:6%;top:18px}
 .brand b{font-size:16px}.brand small{font-size:8px}
 .menu-bottom{left:6%;right:6%;bottom:12px}
 .main-menu #menu-content{padding-bottom:0}
 .game-title{font-size:55px}
 .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:10px}
 .genre{font-size:11px;margin:12px 0 16px}
 .menu h2{font-size:29px;line-height:1.1;margin:6px 0 12px}
 .button{min-height:40px;padding:10px 12px;font-size:10px}
 .actions{gap:8px}.menu-links{margin-top:12px}
 .setting{padding:11px 0;gap:12px;font-size:12px}
 .setting input{width:125px}
 .settings-menu .settings-note{font-size:12px;line-height:1.5;margin:12px 0!important}
 .settings-menu .actions{flex-direction:row;width:100%;max-width:100%}
 .settings-menu .actions>*{flex:1;min-width:0;letter-spacing:1px}
 .help-menu .controls-grid{font-size:11px;line-height:1.35;gap:7px 10px;margin:8px 0}
 .help-menu .controls-grid b{font-size:10px}
 .help-menu .panel-grid{gap:8px}
 .help-menu .menu-copy{font-size:11px;line-height:1.45;margin-bottom:8px}
 .chapter-menu .shop h3{font-size:17px;margin:2px 0 6px}
 .chapter-menu .shop .button{min-height:34px;padding:8px 10px;margin-bottom:5px}
 .chapter-menu .shop p{font-size:11px;margin:4px 0}
 .chapter-menu .stat-row strong{font-size:22px}
}
@media(max-height:540px) and (min-width:480px) and (orientation:landscape){
 .menu,.menu.wide{padding:48px 6% 38px}
 .brand,.menu.wide .brand{top:14px;left:6%}
 .brand b{font-size:16px}.brand small{font-size:8px}
 .menu-bottom{left:6%;right:6%;bottom:8px}
 .menu-bottom>span{display:none}
 .menu-bottom>div{width:100%;justify-content:space-between}
 .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:6px}
 .menu h2{font-size:26px;line-height:1.1;margin:4px 0 8px}
 .menu-copy{font-size:12px;line-height:1.5;margin-bottom:12px}
 .button{min-height:34px;padding:8px 10px;font-size:10px;letter-spacing:1px}
 .actions{gap:7px}.menu-links{margin-top:8px;gap:10px 14px}
 .menu:not(.help-menu):not(.settings-menu):not(.chapter-menu) #menu-content{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:26px;width:700px;align-self:center;padding:0}
 .menu:not(.help-menu):not(.settings-menu):not(.chapter-menu) #menu-content>*{grid-column:1}
 .menu:not(.help-menu):not(.settings-menu):not(.chapter-menu) #menu-content>.actions{grid-column:2;grid-row:1 / span 7;align-self:center;width:100%;max-width:none}
 .main-menu .menu-copy{display:none}.game-title{font-size:49px}.genre{margin:10px 0;font-size:10px}
 .stat-row{margin:12px 0;gap:20px}.stat-row strong{font-size:24px}.stat-row span{font-size:9px}
 .help-menu .eyebrow{display:none}
 .help-menu h2{font-size:25px;margin:0 0 10px}
 .help-menu .panel-grid{grid-template-columns:1fr 1fr;gap:20px}
 .help-menu .controls-grid{grid-template-columns:84px 1fr;font-size:11px;line-height:1.3;gap:6px 10px;margin:0}
 .help-menu .controls-grid b{font-size:10px}
 .help-menu .menu-copy{font-size:11px;line-height:1.45;margin-bottom:8px}
 .help-menu .actions{flex-direction:row;width:100%;max-width:none;margin-top:12px}
 .help-menu .actions>*{flex:1;min-width:0}
 .chapter-menu .panel-grid{grid-template-columns:1fr 1fr;gap:24px}
 .chapter-menu .panel-grid>div:first-child{display:block}
 .chapter-menu .stat-row{gap:12px;margin:8px 0 12px;justify-content:space-between}
 .chapter-menu .actions{flex-direction:row;width:100%;max-width:none;margin-top:12px}
 .chapter-menu .actions>*{flex:1;min-width:0;padding-inline:5px;font-size:9px}
 .chapter-menu .shop{grid-row:auto;border-top:0;border-left:1px solid #a1956b50;padding:0 0 0 20px}
 .chapter-menu .shop h3{font-size:16px;margin:0 0 5px}
 .chapter-menu .shop>p:first-of-type{display:none}
 .chapter-menu .shop p{font-size:11px;line-height:1.3;margin:4px 0 8px}
 .chapter-menu .shop .button{min-height:30px;padding:7px 8px;font-size:9px;margin-bottom:5px}
 .chapter-menu #shop-message{font-size:10px;line-height:1.35;display:block}
 .settings-menu #menu-content{width:700px}
 .settings-options{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
 .settings-options .setting{padding:9px 0;font-size:11px;gap:8px}
 .settings-options input{width:95px}.settings-options input[type=range]{width:95px}
 .settings-menu .settings-note{font-size:11px;line-height:1.4;margin:10px 0!important;max-width:100%}
 .settings-menu .actions{flex-direction:row;width:100%;max-width:none}
 .settings-menu .actions>*{flex:1;min-width:0}
}
@media(max-height:360px) and (min-width:480px) and (orientation:landscape){
 .game-title{font-size:42px}.genre{margin:8px 0}.menu h2{font-size:23px}
 .help-menu h2{font-size:22px;margin-bottom:8px}
 .help-menu .controls-grid{font-size:10px;gap:5px 8px}
 .help-menu .menu-copy{font-size:10.5px;line-height:1.4;margin-bottom:6px}
 .help-menu .actions{margin-top:8px}
 .shop .button{letter-spacing:.5px}
 .stat-row{gap:14px}.stat-row strong{font-size:22px}.stat-row span{font-size:8px}
}
