:root{--paper:#e6e5d7;--dim:#98a39c;--acid:#c4d08b;--line:rgba(197,211,188,0.1882);--red:#ce5e4d}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#0a1010;color:var(--paper);font-family:Arial,"Microsoft YaHei",sans-serif;touch-action:none;user-select:none;-webkit-user-select:none}button,input,select{font:inherit}button{cursor:pointer;color:inherit;touch-action:none;-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait;opacity:.55}button:focus{outline:2px solid var(--acid);outline-offset:4px}[hidden]{display:none!important}#world,#world canvas{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}#vignette{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;background:radial-gradient(ellipse at 50% 46%,transparent 25%,rgba(2,7,7,0.3020) 100%)}#grain{position:fixed;top:0;right:0;bottom:0;left:0;opacity:.04;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}#damage{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;box-shadow:inset 0 0 160px 50px #a12020;opacity:0}#hud{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none}#hud button{pointer-events:auto}header{display:flex;align-items:flex-start;padding:26px 32px}.identity{display:flex;align-items:center;font-size:11px;letter-spacing:2px}.identity b{font-weight:400;color:#a8b3a6}.identity small{display:block;letter-spacing:2px;font-size:9px;color:var(--dim);margin-top:7px}.cross-logo{font-size:30px;color:var(--acid)}.wave{margin-left:auto;text-align:right}.wave small{display:block;letter-spacing:3px;font-size:9px;color:var(--acid)}.wave strong{font-size:32px;font-weight:400;display:block;line-height:1.3}.wave i{font-size:13px;color:#8c9991;font-style:normal}.wave>span{font-size:10px;color:#adb6a8}.icon-btn{border:1px solid var(--line);background:rgba(16,26,25,0.3765);width:38px;height:38px}.objective{position:absolute;left:34px;top:115px;padding-left:14px;border-left:2px solid var(--acid);max-width:360px}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--acid)}.objective .eyebrow span{margin-left:22px;color:#7b8c81;font-size:9px}.objective>div:nth-child(2){font-size:15px;margin:9px 0}.objective>small{font-size:10px;color:var(--dim)}#crosshair{position:absolute;left:50%;top:50%;width:26px;height:26px;transform:translate(-50%,-50%);opacity:.8}#crosshair i{position:absolute;background:#e9eddb}#crosshair i:nth-child(1){width:1px;height:6px;left:12px;top:0}#crosshair i:nth-child(2){width:1px;height:6px;left:12px;bottom:0}#crosshair i:nth-child(3){height:1px;width:6px;top:12px;left:0}#crosshair i:nth-child(4){height:1px;width:6px;top:12px;right:0}#crosshair.aim{transform:translate(-50%,-50%) scale(.6)}#hitmark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:25px;color:var(--acid);opacity:0}#toast{position:absolute;top:30%;left:50%;transform:translateX(-50%);padding:10px 20px;background:rgba(16,25,24,0.7882);border-top:1px solid var(--line);font-size:13px;opacity:0;text-align:center;white-space:nowrap}#waveBanner{position:absolute;left:50%;top:35%;transform:translateX(-50%);text-align:center;font-size:25px;letter-spacing:8px;text-shadow:0 2px 20px black;opacity:0}#interact{position:absolute;left:50%;top:63%;transform:translateX(-50%);background:rgba(16,27,25,0.8784);border:1px solid rgba(189,207,132,0.5020);padding:13px 22px;font-size:13px;color:var(--acid);max-width:85%;min-height:44px}footer{position:absolute;bottom:25px;left:34px;right:34px;display:flex;align-items:flex-end;justify-content:space-between}.vitals{width:190px}.vitals>small{font-size:10px;letter-spacing:2px;color:var(--dim);display:flex;justify-content:space-between}.vitals>small span{color:var(--paper)}.health-track{height:3px;background:rgba(255,255,255,0.1255);margin-top:9px}.health-track i{display:block;height:100%;background:var(--acid);transition:width .2s}.stamina-track{height:2px;background:rgba(255,255,255,0.0627);margin-top:5px}.stamina-track i{display:block;height:100%;background:#b9c7c8}.points{font-size:14px;margin-top:13px}.points span{color:var(--acid);margin-right:6px}.points b{font-weight:400}.points small{color:#73857b;font-size:9px;margin-left:6px}.desktop-hint{font-size:10px;line-height:1.9;color:rgba(173,181,167,0.5216);text-align:center;letter-spacing:1px}.ammo{text-align:right;min-width:130px}.ammo>small{font-size:10px;letter-spacing:2px;color:var(--dim)}.ammo strong{font-size:48px;font-weight:300}.ammo span{font-size:19px;color:#8b9a8b;padding-left:10px}.ammo span b{font-weight:400}.ammo>small:last-child{font-size:8px;color:var(--acid)}.screen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10}.screen button{background:none;border:0}.screen#menu{background:linear-gradient(90deg,rgba(8,15,15,0.9490) 0%,rgba(8,15,15,0.8510) 22%,rgba(8,15,15,0.3961) 51%,transparent 80%)}.menu-top{position:absolute;left:4.5%;right:4.5%;top:35px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:2px;color:#b0bdb2}.menu-top b{font-size:19px;color:var(--acid);margin-right:10px}.menu-top>span:last-child{font-size:9px;display:flex;align-items:center;color:#98a49a}.status-dot{width:5px;height:5px;background:var(--red);border-radius:50%;box-shadow:0 0 9px var(--red)}.menu-content{position:absolute;left:9%;top:22%;width:390px}.menu-content .eyebrow{font-size:9px;letter-spacing:2.5px;display:flex;align-items:center;}.line{height:1px;width:28px;background:var(--acid)}h1{font-size:108px;font-weight:300;letter-spacing:15px;margin:12px 0 0;line-height:1.25;font-family:"Microsoft YaHei",sans-serif}h1>span{color:#bccbb7}.title-en{font-size:12px;letter-spacing:5px;padding-top:8px}.title-en i{color:var(--acid);margin:0 5px;font-style:normal}.menu-content p{font-size:12px;line-height:2.2;color:#94a299;letter-spacing:2px;margin:28px 0}.menu-content em{font-style:normal;color:#bbc2b7}#startBtn{display:flex;justify-content:space-between;align-items:center;width:280px;padding:17px 20px;background:var(--acid);color:#172019;font-size:13px;letter-spacing:3px}#startBtn b{font-size:22px;font-weight:400}.menu-meta{display:flex;font-size:8px;color:#6c7d72;margin-top:15px;letter-spacing:1px}.menu-bottom{position:absolute;bottom:28px;left:4.5%;right:4.5%;display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:19px;color:#74867b;font-size:9px;letter-spacing:2px}.menu-bottom button{color:#b4bfb0;font-size:10px}.menu-bottom button span{margin-left:25px}.scene-caption{position:absolute;right:5%;bottom:17%;display:flex;flex-direction:column;text-align:right;font-size:9px;letter-spacing:2px;color:#9eafa3}.scene-caption b{font-weight:400;color:#ced8bf}.scene-caption small{line-height:2;color:#60786b;font-size:8px}.overlay{background:rgba(7,16,14,0.8510);display:flex;align-items:center;justify-content:center}.dialog{width:370px;max-height:94vh;max-height:calc(var(--app-height, 100vh) - 24px);overflow:auto;padding:30px;max-width:94vw;border:1px solid var(--line);background:rgba(16,26,23,0.9294)}.dialog h2{font-size:34px;font-weight:300;letter-spacing:5px;margin:15px 0}.dialog p{font-size:12px;line-height:1.9;color:#94a499}.dialog>button{display:block;border:1px solid var(--line);width:100%;padding:12px;margin-top:12px;font-size:12px;letter-spacing:2px;min-height:44px}.dialog>button.primary{background:var(--acid);color:#142018}.settings-dialog{width:480px}.settings-dialog label{display:flex;align-items:center;justify-content:space-between;margin:15px 0;font-size:12px;color:#c1cbbf}.settings-dialog select{background:#202d25;color:var(--paper);border:1px solid var(--line);padding:6px}.settings-dialog input{accent-color:var(--acid);width:155px}.settings-dialog input[type=checkbox]{width:19px;height:19px}.settings-dialog .instructions{font-size:10px;line-height:1.8;border-top:1px solid var(--line);padding-top:12px}#endStats{padding:20px 0;color:var(--acid);font-size:13px;line-height:2;white-space:pre-line}#touchControls{display:none}#rotateHint{display:none}#fatal{position:fixed;top:25%;right:25%;bottom:25%;left:25%;z-index:99;background:#151b18;border:1px solid var(--red);padding:30px;line-height:2;font-size:14px}
body.touch #touchControls{display:block}body.touch .desktop-hint{display:none}body.touch footer{bottom:18px;left:24px;right:24px}body.touch .vitals{width:140px}body.touch .ammo strong{font-size:35px}body.touch .ammo>small{font-size:8px}body.touch header{padding:16px 22px}body.touch .objective{top:80px;left:24px}body.touch .identity{font-size:9px}body.touch .wave strong{font-size:26px}body.touch .objective>div:nth-child(2){font-size:12px}body.touch .objective>small{font-size:9px}#joystick{pointer-events:auto;position:absolute;left:33px;bottom:105px;width:116px;height:116px;border:1px solid rgba(208,223,185,0.2588);border-radius:50%;background:rgba(21,37,33,0.1333)}#joystick:before{content:'';position:absolute;top:21px;right:21px;bottom:21px;left:21px;border-radius:50%;border:1px solid rgba(196,208,139,0.0824)}#joystick>span{position:absolute;left:0;right:0;text-align:center;bottom:-18px;font-size:8px;letter-spacing:3px;color:rgba(186,200,179,0.4784)}#stick{position:absolute;left:50%;top:50%;width:44px;height:44px;border:1px solid rgba(218,230,200,0.4667);border-radius:50%;background:rgba(211,224,189,0.1333);transform:translate(-50%,-50%)}.look-label{position:absolute;right:190px;bottom:90px;font-size:8px;letter-spacing:2px;color:rgba(194,208,179,0.2902)}.touch-small{position:absolute;width:48px;height:48px;border-radius:50%;border:1px solid rgba(208,223,185,0.2784);background:rgba(18,35,27,0.3608);font-size:10px;color:#d0d9c4}.touch-small.active{background:rgba(180,198,129,0.3333);border-color:var(--acid)}#sprintBtn{left:68px;bottom:248px;width:44px;height:44px}#healBtn{left:170px;bottom:113px;width:53px;height:53px}#healBtn b{font-size:9px;color:var(--acid)}#flashBtn{right:23px;bottom:246px;width:40px;height:40px;font-size:9px}#aimBtn{right:129px;bottom:208px}#reloadBtn{right:150px;bottom:141px}#switchBtn{right:125px;bottom:82px}#fireBtn{position:absolute;right:25px;bottom:127px;width:91px;height:91px;border:1px solid rgba(224,228,197,0.5255);border-radius:50%;background:rgba(191,207,156,0.0863);display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:inset 0 0 0 6px rgba(203,213,175,0.0392)}#fireBtn:active{background:rgba(196,208,139,0.3333)}#fireBtn span{font-size:34px;line-height:1}#fireBtn small{font-size:8px;letter-spacing:3px;margin-top:5px}
@media(max-height:570px){.menu-top{top:20px}.menu-content{top:20%;left:8%}h1{font-size:72px;line-height:1.1}.menu-content p{margin:17px 0;font-size:10px;line-height:1.9}.title-en{font-size:9px;letter-spacing:4px}.menu-content .eyebrow{font-size:8px}#startBtn{width:250px;padding:11px 18px;font-size:12px}.menu-bottom{bottom:15px;padding-top:12px;font-size:8px}.menu-meta{margin-top:10px;font-size:7px}.scene-caption{bottom:23%}body.touch .objective{top:69px}.objective .eyebrow{font-size:8px}body.touch .objective>div:nth-child(2){margin:5px 0;font-size:11px}body.touch .objective>small{font-size:8px}#joystick{width:96px;height:96px;bottom:93px}#stick{width:38px;height:38px}#sprintBtn{left:58px;bottom:206px}#healBtn{left:143px;bottom:106px}#fireBtn{bottom:103px;width:80px;height:80px}#aimBtn{right:111px;bottom:185px;width:42px;height:42px}#reloadBtn{right:132px;bottom:124px;width:44px;height:44px}#switchBtn{right:113px;bottom:69px;width:40px;height:40px}#flashBtn{bottom:206px}.look-label{display:none}body.touch .ammo strong{font-size:29px}body.touch .points{margin-top:8px;font-size:12px}body.touch .vitals{width:120px}#interact{top:57%;font-size:11px;padding:10px 14px}.dialog{padding:20px}.dialog h2{font-size:27px;margin:10px 0}}
@media(orientation:portrait){.menu-content{top:23%;left:9%;width:85%}h1{font-size:96px}.menu-top>span:last-child{display:none}.scene-caption{display:none}.menu-bottom{flex-wrap:wrap;}.menu-bottom>span:last-child{display:none}.menu-content p{font-size:12px}.menu-meta{font-size:8px}body.touch .identity{display:none}body.touch .objective{top:30px;left:19px;max-width:60%}body.touch .wave{margin-right:5px}body.touch header{padding:16px}.wave small{font-size:7px}body.touch .objective>small{max-width:170px;display:block;line-height:1.7}#rotateHint{display:block;position:fixed;top:13px;left:50%;transform:translateX(-50%);font-size:9px;color:#9dac9b;z-index:20;white-space:nowrap;pointer-events:none}body.playing #rotateHint{top:121px;font-size:8px;opacity:.6}#joystick{left:21px;bottom:133px;width:105px;height:105px}#sprintBtn{left:52px;bottom:263px}#healBtn{left:145px;bottom:99px;width:45px;height:45px}#fireBtn{right:18px;bottom:145px;width:80px;height:80px}#aimBtn{right:37px;bottom:250px;width:44px;height:44px}#reloadBtn{right:113px;bottom:194px;width:44px;height:44px}#switchBtn{right:110px;bottom:132px;width:44px;height:44px}#flashBtn{right:37px;bottom:310px}body.touch footer{bottom:29px;left:21px;right:21px}.look-label{display:none}.dialog{padding:24px}.menu-bottom button{font-size:9px}#fatal{top:15%;right:5%;bottom:15%;left:5%}}

@media(max-height:430px){.menu-content{top:19%}.menu-content p{margin:14px 0}.menu-meta{display:none}}

/* RE Junjun wordmark: fitted to desktop and mobile menu widths. */
h1{font-family:Arial,"Microsoft YaHei",sans-serif;font-size:72px;font-weight:300;letter-spacing:-2px;white-space:nowrap}
@media(max-height:570px){h1{font-size:56px;letter-spacing:-1px}}
@media(orientation:portrait){h1{font-size:50px;font-size:13vw;letter-spacing:-1px}.title-en{font-size:10px;letter-spacing:3px}}

/* Chrome 61 baseline: physical spacing, no flex-gap dependency. */
#combatFeedback{position:absolute;left:50%;top:calc(50% + 28px);font-size:12px;letter-spacing:2px;text-shadow:0 1px 4px #000;opacity:0;pointer-events:none}
#hurtDirection{position:absolute;left:50%;top:50%;width:150px;height:150px;opacity:0;pointer-events:none}
#hurtDirection i{display:block;position:absolute;top:0;left:65px;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:14px solid #e88e74}
.menu-content h1{font-size:60px;letter-spacing:0}
@media(max-height:570px){.menu-content h1{font-size:48px}}
@media(orientation:portrait){.menu-content h1{font-size:12vw}}
html,body{height:100%;height:var(--app-height,100%);-webkit-touch-callout:none}
header>*+*{margin-left:26px}.identity>div{margin-left:10px}
.menu-content .eyebrow .line{margin-right:12px}.menu-top>span:last-child>*+*{margin-left:10px}
.menu-meta>span+span{margin-left:18px}.scene-caption>*+*{margin-top:9px}
.dialog{min-width:0;min-height:0;-webkit-overflow-scrolling:touch}
.dialog p,.objective,.menu-content{min-width:0}.screen{height:100%}
header,body.touch header{padding-top:16px;padding-top:calc(16px + var(--safe-area-inset-top, 0px));}
body.touch footer{bottom:18px;bottom:calc(18px + var(--safe-area-inset-bottom, 0px));}
#touchControls{bottom:0;bottom:var(--safe-area-inset-bottom,0px);;top:0;left:0;right:0;position:absolute;pointer-events:none}
.menu-top{top:25px;}
.menu-bottom{bottom:20px;}
@media(orientation:portrait){.menu-bottom>*{margin-top:8px}.menu-content{top:23%}}
@media(max-height:430px){.menu-top{top:16px}.menu-content{top:19%}.menu-bottom{bottom:15px}}
@supports((-webkit-backdrop-filter:blur(10px)) or (backdrop-filter:blur(10px))){.overlay{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}}
body.fallback-mode #world{background:#101915 url('./assets/preview.jpg') center/cover no-repeat}
body.fallback-mode #world canvas{display:none}

@supports(padding-top:env(safe-area-inset-top)){
 header,body.touch header{padding-top:calc(16px + var(--safe-area-inset-top,env(safe-area-inset-top,0px)))}
 body.touch footer{bottom:calc(18px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}
 #touchControls{bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px))}
 .menu-top{top:calc(25px + var(--safe-area-inset-top,env(safe-area-inset-top,0px)))}
 .menu-bottom{bottom:calc(20px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}
 @media(max-height:430px){.menu-top{top:calc(16px + var(--safe-area-inset-top,env(safe-area-inset-top,0px)))}.menu-bottom{bottom:calc(15px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}}
}
