/* Game screens share one live scene. The home screen never contains a form. */
:root{--gold:#ee744c;--paper:#f2f5f3;--muted:#b8c4c7;--field-bg:#0d171e;--field-panel:#101d25;--field-line:#ffffff29;--field-accent:#ed7049}
button:focus-visible,input:focus-visible{outline:2px solid #f9b399;outline-offset:4px}
#game{font-family:Arial,"Segoe UI",sans-serif;color:var(--paper)}
#game .masthead{top:calc(20px + var(--safe-top));left:max(28px,env(safe-area-inset-left));right:max(28px,env(safe-area-inset-right));gap:12px}
#game .wordmark small{display:none}
#game .wordmark>span{font-size:12px;letter-spacing:1px}
#game .wordmark>svg{width:28px;height:28px;stroke:#ef8e6e}
#game .icon-button{width:44px;height:44px;border-radius:4px;border:1px solid #ffffff30;background:#101a22c9}
#game .icon-button svg{width:20px;height:20px}
#game .audio-control{width:auto;padding:0 12px;gap:8px;font-size:12px;white-space:nowrap}
#sound-status{display:inline}
#game .audio-control[data-audio-state="locked"],#game .audio-control[data-audio-state="interrupted"]{border-color:#ee8864;color:#ffb599}
#game.is-menu .atmosphere{background:linear-gradient(90deg,#081118dd 0%,#08111861 34%,transparent 75%),linear-gradient(0deg,#081118e8 0%,transparent 60%,#08111880);pointer-events:none}
#game.is-menu .menu-panel{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;transform:none;padding:0;pointer-events:none;overflow:hidden}
#game.is-menu .mode-navigation{position:absolute;inset:auto auto 10% 7%;margin:0;width:min(365px,38vw);display:block;pointer-events:auto}
#game.is-menu .mode-navigation h1{font-family:Impact,"Arial Narrow",sans-serif;font-weight:800;font-size:clamp(48px,5.7vw,82px);line-height:.94;letter-spacing:.025em;margin:0 0 30px;color:#fff;text-shadow:0 3px 30px #0004}
#game.is-menu .mode-tabs{display:flex;flex-direction:column;gap:0;border:0;margin:0}
#game.is-menu .mode-tabs>button{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;min-height:74px;padding:14px 18px;border:0;border-bottom:1px solid #ffffff38;background:#0b1821a8;box-shadow:none;transform:none;color:#f4f6f4}
#game.is-menu .mode-tabs>button:first-child{border-top:1px solid #ffffff38}
#game.is-menu .mode-tabs>button:after{display:none}
#game.is-menu .mode-tabs>button strong{font-size:24px;font-weight:600;line-height:1.1}
#game.is-menu .mode-tabs>button span{grid-column:1;color:#c6d1d4;font-size:12px;letter-spacing:0;line-height:1.3;margin-top:5px}
#game.is-menu .mode-tabs>button b{grid-column:2;grid-row:1/3;font-size:31px;font-weight:400;color:#f09576}
#game.is-menu .mode-tabs>button:hover,#game.is-menu .mode-tabs>button:focus-visible{background:#c85430e0;color:white}
#game .lobby-loadout{display:flex;align-items:center;gap:10px;min-height:48px;width:100%;padding:10px 4px;background:none;text-align:left;color:#d9e0e2;font-size:13px}
#game .lobby-loadout svg{width:30px;stroke:currentColor;fill:none}
#game .lobby-loadout strong{margin-left:auto;font-weight:400;color:#aebec5;font-size:12px}
#game.is-menu[data-menu-screen="home"] .wordmark>span{visibility:hidden}
#game.is-menu[data-menu-screen="home"] .operations-panel{display:none}
#game.is-menu:not([data-menu-screen="home"]) .mode-navigation{display:none}
#game.is-menu:not([data-menu-screen="home"]) .scene-note{display:none}
#game.is-menu .operations-panel{position:absolute;inset:100px auto 44px 5%;width:min(450px,44vw);margin:0;padding:22px;background:#101c25ed;border:1px solid #ffffff29;border-radius:0;max-height:none;overflow-y:auto;pointer-events:auto;scrollbar-width:thin;box-shadow:0 12px 60px #0003}
.screen-heading{display:flex;align-items:center;gap:18px;justify-content:space-between;margin-bottom:22px}
.screen-heading h2{font-size:20px;font-weight:600;margin:0;letter-spacing:0}
#menu-back{display:flex;align-items:center;gap:9px;background:none;min-height:44px;color:#d9e4e7;padding:0 8px 0 0;font-size:14px}
#menu-back>span{font-size:30px;line-height:1}
.destination-selector{display:flex;gap:4px;padding:0 0 16px;margin-bottom:15px;border-bottom:1px solid #ffffff25}
.destination-selector button{flex:1;min-height:44px;padding:8px 7px;background:#ffffff08;border:1px solid #ffffff23;font-size:14px;color:#d3dde0}
.destination-selector button[aria-pressed="true"]{background:#e6724a;color:#101b22;border-color:#e6724a;font-weight:700}
#game .operation-heading{margin:0 0 18px}
#game .operation-heading h3{font-family:Impact,"Arial Narrow",sans-serif;font-weight:500;font-size:36px;line-height:1.1;letter-spacing:.6px;margin:0 0 8px;color:#f4f6f3}
#game .operation-heading p{font-size:12px;color:#c0ccd0;margin:0;letter-spacing:0}
#game .operations-panel .level-list{display:flex;flex-direction:column;gap:8px;margin:0}
#game .operations-panel .level-button{display:grid;grid-template-columns:28px 1fr;align-content:center;column-gap:10px;min-height:62px;padding:10px 12px;background:#0a151d;border:1px solid #ffffff30;box-shadow:none;color:#dfe7e9}
#game .operations-panel .level-button[hidden]{display:none!important}
#game .operations-panel .level-button .mission-number{font-size:18px;color:#99b1bd;grid-row:1/3;align-self:center}
#game .operations-panel .level-button strong{font-size:15px;font-weight:500;color:inherit}
#game .operations-panel .level-button small{font-size:11px;margin-top:4px;letter-spacing:0;color:#a9bec9}
#game .operations-panel .level-button.selected{background:#e6754b1c;border-color:#e58968;box-shadow:none;color:#fff}
#game .operations-panel .level-button.selected .mission-number{color:#f69a7b}
#game .operations-panel .mission-brief{font-size:12px;line-height:1.55;margin:16px 0;min-height:0;color:#d1dce0;max-width:none}
#game .operations-panel .mode-view{margin:0 0 18px}
#game .operations-panel .primary-button{min-height:52px;border:0;border-radius:0;background:#e8744e;color:#101b22;font-size:15px;font-weight:700;letter-spacing:0;padding:13px 18px}
#game .operations-panel .primary-button svg{fill:currentColor;stroke:none;width:18px;height:18px}
#game .operations-panel .primary-button:hover{background:#ff916d}
#game .operations-panel .menu-bottom-row{margin:14px 0 0;padding:10px 0 0;border-top:1px solid #ffffff25}
#game .loadout-link{width:100%;min-height:58px;gap:12px;font-size:11px;letter-spacing:0}
#game .loadout-link img{width:88px;height:58px;object-fit:contain;filter:drop-shadow(0 5px 10px #0004)}
#game .loadout-link strong{font-size:16px;letter-spacing:0;color:#e6edf0;margin-top:4px}
#game .loadout-link b{margin-left:auto;font-size:12px;color:#eda285;font-weight:500}
#game .best-score{display:none}
#game .menu-hint{display:none}
#game .mode-description{font-size:14px;line-height:1.5;color:#d0dde1}
#game .mode-view label{font-size:13px;color:#d6e0e3;margin-bottom:14px}
#game .mode-view input{font-size:16px;min-height:46px;padding:10px 12px;border-radius:0;background:#07131c;border-color:#7f98a4;color:white;letter-spacing:0}
#game .mode-view input::placeholder{color:#a6bac4}
#game .secondary-button{font-size:14px;min-height:44px;border:1px solid #9eb1b9;background:#ffffff0c;color:white;padding:10px 20px;border-radius:0}
#game .auth-actions .text-button{min-height:44px;font-size:14px;color:#f3aa8f}
#game .form-message{font-size:13px;line-height:1.5;color:#ffc09f}
#game .room-code-label{font-size:12px!important}
#game .room-empty{font-size:13px;color:#c0d0d7}
#game .small-link{font-size:12px;min-height:34px}
#game .room-row{font-size:12px}
#game .room-row>button{min-height:36px;font-size:12px}
#game .sandbox-facts{padding:18px 0;gap:18px}
#game .sandbox-facts>span{font-size:12px;color:#bfced3}
#game .sandbox-facts strong{color:#f3a583;font-size:30px}
#game.is-menu .scene-note{left:auto;right:6%;top:auto;bottom:12%;padding:0;max-width:38%;border:0;text-align:right}
#game.is-menu .scene-note span{font-size:12px;letter-spacing:0;color:#d6dfe1;text-shadow:0 2px 8px #000}
#game.is-menu .scene-note strong{font-size:28px;font-weight:600;letter-spacing:0;color:#fff;text-shadow:0 2px 18px #0009}
#game.is-menu .menu-footer{left:7%;right:7%;bottom:20px;font-size:12px;letter-spacing:0;color:#bfccd0;justify-content:flex-start}
#orientation-hint{display:none}
#game .dialog-card,#game .wide-dialog{background:#101e27fa;border-color:#7b939f70;border-radius:2px;color:#edf3f5}
#game .dialog-card{max-height:calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#game .dialog-card p,#game .panel-intro{color:#c1cfd5;font-size:14px}
#game .setting-row,#game .volume-setting{font-size:15px}
#game .quality-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:15px;margin-top:20px}
#game .quality-setting select{font:inherit;min-height:44px;min-width:140px;padding:10px;background:#172c38;color:#fff;border:1px solid #7b939f;border-radius:3px}
#game #quality-description{padding-bottom:14px;border-bottom:1px solid #ffffff24;line-height:1.5}
#game #test-audio-btn{margin:14px 0 0;width:100%}
#game .dialog-card .quiet{font-size:12px;color:#b9cbd3}
#game .weapon-card{background:#172833;border-color:#82949e66;border-radius:0}
#game .weapon-card.selected{border-color:#e98b69;box-shadow:none}
#game .weapon-card>strong{font-size:18px}
#game .weapon-card>p{font-size:12px;color:#bdcbd0}
#game .weapon-card>small{font-size:11px}
#game .weapon-card.selected:after{font-size:10px;color:#fcb194}
#game .weapon-meters{font-size:10px;color:#a8bec8}
#game .weapon-meters i b{background:#e68968}
#game .rifle-photo{width:clamp(360px,45vw,720px);right:-2%;bottom:-8%;transform:translate3d(0,var(--weapon-y,0px),0) rotate(var(--weapon-roll,0deg));transform-origin:70% 90%;transition:opacity .15s;filter:drop-shadow(0 8px 16px #0005)}
#game .rifle-photo.recoil{transform:translate3d(0,var(--weapon-y,0px),0) rotate(var(--weapon-roll,0deg))}
#game.is-scoped .rifle-photo{opacity:0}
#game .fire-button .fire-icon{background:#e88560}
#game .fire-button>span:last-child{color:#f0ccb9}
#game:not(.is-menu) .wordmark>span{display:none}
#game .hud{top:90px;pointer-events:none}
#game .objective h2{font-size:22px;font-weight:600}
#game .objective p{font-size:12px}
#game .objective,#game .timer-panel{text-shadow:0 2px 4px #000,0 0 12px #0008}
#game .feedback{padding:9px 14px;background:#101b23d9;color:#f5e9e1;max-width:90%;text-align:center;border-radius:3px}
@media(max-width:700px) and (orientation:portrait){
 #game .masthead{left:18px;right:18px;top:calc(15px + var(--safe-top))}.utility{gap:6px}
 #game .audio-control{padding:0 9px;font-size:11px;gap:6px}#game .audio-control svg{width:17px}
 #game.is-menu .mode-navigation{inset:auto 22px calc(48px + var(--safe-bottom)) 22px;width:auto}
 #game.is-menu .mode-navigation h1{font-size:58px;line-height:.95;margin-bottom:24px}
 #game.is-menu .mode-tabs>button{min-height:69px;padding:13px 16px}#game.is-menu .mode-tabs>button strong{font-size:23px}
 #game.is-menu .atmosphere{background:linear-gradient(0deg,#08131a 0%,#08131ad9 30%,#08131a24 70%,#08131a90)}
 #game.is-menu .scene-note{top:18%;right:24px;bottom:auto;max-width:65%}#game.is-menu .scene-note strong{font-size:22px}
 #game.is-menu .operations-panel{inset:calc(82px + var(--safe-top)) 14px calc(20px + var(--safe-bottom));width:auto;padding:18px;background:#101c25ed}
 .screen-heading{margin-bottom:15px}.screen-heading h2{font-size:19px}
 #game .operation-heading h3{font-size:32px}.destination-selector button{font-size:13px}
 #game .operations-panel .level-button{min-height:60px}.operations-panel .level-button strong{font-size:14px}
 #game .operations-panel .mission-brief{font-size:12px;margin:14px 0}#game .loadout-link img{width:72px}
 #game.is-menu .menu-footer{left:24px;bottom:calc(16px + var(--safe-bottom));font-size:11px}#orientation-hint{display:block}
 #game.is-menu:not([data-menu-screen="home"]) .menu-footer{display:none}
 #game .rifle-photo{width:390px;right:-125px;bottom:37px}
 #game .wide-dialog{padding:20px}.weapon-grid{grid-template-columns:repeat(2,1fr)}
}
@media(orientation:landscape) and (max-height:600px){
 #game .masthead{left:max(22px,env(safe-area-inset-left));right:max(22px,env(safe-area-inset-right));top:calc(12px + var(--safe-top))}
 #game .wordmark>span{font-size:11px}.utility{gap:6px}
 #game.is-menu .mode-navigation{inset:82px auto 22px 5%;width:285px}
 #game.is-menu .mode-navigation h1{font-size:39px;line-height:.93;margin:0 0 15px}
 #game.is-menu .mode-tabs>button{min-height:51px;padding:8px 13px}
 #game.is-menu .mode-tabs>button strong{font-size:19px}#game.is-menu .mode-tabs>button span{font-size:11px;margin-top:3px}
 #game .lobby-loadout{min-height:40px;font-size:12px}
 #game.is-menu .scene-note{right:5%;bottom:12%}#game.is-menu .scene-note strong{font-size:25px}
 #game.is-menu .menu-footer{display:none}
 #game.is-menu .operations-panel{inset:72px auto 12px 4%;width:61%;padding:12px 16px;max-height:none}
 .screen-heading{margin:0 0 8px}.screen-heading h2{font-size:18px}#menu-back{min-height:35px;font-size:13px}
 #game .operations-panel .mode-view{margin-bottom:10px}
 .destination-selector{gap:5px;margin:0 0 10px;padding:0;border:0}.destination-selector button{min-height:38px;font-size:13px}
 #game .operation-heading{margin:0 0 9px;display:flex;align-items:center;justify-content:space-between;gap:10px}
 #game .operation-heading h3{font-size:25px;margin:0}#game .operation-heading p{font-size:11px}
 #game .operations-panel .level-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 #game .operations-panel .level-button{min-height:53px;padding:8px;grid-template-columns:22px 1fr;column-gap:7px}
 #game .operations-panel .level-button strong{font-size:13px}#game .operations-panel .level-button small{font-size:10px}#game .operations-panel .level-button .mission-number{font-size:15px}
 #game .operations-panel .mission-brief{display:block;font-size:11px;line-height:1.4;margin:10px 0}
 #game .operations-panel .primary-button{min-height:44px;font-size:14px}
 #game .operations-panel .menu-bottom-row{display:none}
 #game[data-menu-screen="online"] .operations-panel{width:66%}
 #game #auth-form{display:grid;grid-template-columns:1fr 1fr;gap:9px 14px}
 #game #auth-form .mode-description,#game #auth-form .auth-actions{grid-column:1/-1}
 #game #auth-form .mode-description{font-size:12px;margin:0}#game .mode-view label{font-size:12px;margin:0}
 #game .mode-view input{min-height:42px;font-size:16px}
 #game .form-message{margin:8px 0;font-size:12px}
 #game .hud{top:72px;left:24px;right:24px}#game .objective h2{font-size:18px}#game .objective p{display:none}
 #game .timer-panel strong{font-size:25px}#game .controls{bottom:15px;left:24px;right:24px}
 #game .rifle-photo{width:390px;right:28px;bottom:-49px}
 #game .is-fps .rifle-photo{width:390px;right:28px;bottom:-49px}
 #game .ammo-panel strong{font-size:25px}#game .action-controls{gap:12px}
 #game .fire-button{width:72px;height:72px}#game .fire-button .fire-icon{width:47px;height:47px}
 #game .zoom-button{right:8px;bottom:84px;width:52px;height:52px}
 #game .switch-weapon-btn{right:87px;bottom:12px}
 #game .target-identification{display:none}#game .wide-dialog{padding:20px;max-height:calc(100dvh - 24px)}
}
@media(max-width:360px) and (orientation:portrait){#game .audio-control span{display:none}#game .mode-navigation h1{font-size:49px}#game .operations-panel{padding:14px}.destination-selector button{font-size:12px}#game .operation-heading h3{font-size:27px}}
@media(prefers-reduced-motion:reduce){#game .rifle-photo{transition:none}#game .mode-tabs>button{transition:none}}

/* Thumb controls: two independent triggers around an unobstructed aiming area. */
#game .controls{inset:0;display:block;pointer-events:none}
#game.is-menu .controls{display:none}
#game .controls .ammo-panel{position:absolute;left:50%;right:auto;bottom:calc(17px + var(--safe-bottom));transform:translateX(-50%);width:192px;height:66px;padding:8px 12px;border:1px solid #ffffff67;border-bottom:3px solid #d7c784;background:#11181d80;pointer-events:none;text-shadow:0 1px 3px #000}
#game .ammo-panel .weapon-silhouette{position:absolute;right:10px;top:8px;width:101px;height:27px;color:#ffffffde}
#game .ammo-panel>div{gap:5px;align-items:baseline;position:absolute;left:12px;bottom:21px}
#game .ammo-panel strong{font-size:25px;font-weight:600;line-height:1}
#game .ammo-panel>div>span{font-size:13px;color:#d6dcdb}
#game .ammo-panel>#ammo-label{position:absolute;left:12px;bottom:5px;margin:0;font-size:11px;color:#e6e8e4;max-width:165px;overflow:hidden;white-space:nowrap}
#game .controls .action-controls{position:static;display:contents;pointer-events:none}
#game .controls button{pointer-events:auto;touch-action:none;-webkit-user-select:none}
#game .controls .fire-button,#game .controls .zoom-button,#game .controls .reload-button,#game .controls .switch-weapon-btn{position:absolute;display:flex;align-items:center;justify-content:center;padding:0;border-radius:50%;border:1.5px solid #ffffff83;background:#10151c69;color:#fff;box-shadow:inset 0 0 0 3px #ffffff09,0 2px 8px #0002;backdrop-filter:none;min-height:0}
#game .controls .fire-button{width:92px;height:92px;right:calc(34px + env(safe-area-inset-right));bottom:calc(105px + var(--safe-bottom))}
#game .controls .fire-button .fire-icon{width:76%;height:76%;background:transparent;color:#fff9d8;border-radius:0}
#game .controls .fire-button svg{width:62px;height:62px;filter:drop-shadow(0 0 3px #e9cd8170)}
#game .controls .fire-button>span:last-child,#game .controls .zoom-button>span,#game .controls .reload-button>span,#game .controls kbd{display:none}
#game .controls .fire-left-button{left:calc(25px + env(safe-area-inset-left));right:auto;bottom:calc(230px + var(--safe-bottom));width:78px;height:78px}
#game .controls .fire-left-button svg{width:53px;height:53px}
#game .controls .zoom-button{width:61px;height:61px;right:calc(52px + env(safe-area-inset-right));bottom:calc(219px + var(--safe-bottom))}
#game .controls .zoom-button svg{width:39px;height:39px}
#game .controls .reload-button{width:58px;height:58px;right:calc(143px + env(safe-area-inset-right));bottom:calc(60px + var(--safe-bottom))}
#game .controls .reload-button svg{width:37px;height:37px;stroke-width:2}
#game .controls .switch-weapon-btn{width:44px;height:44px;left:calc(50% + 108px);right:auto;bottom:calc(25px + var(--safe-bottom))}
#game .controls .switch-weapon-btn svg{width:26px;height:26px}
#game .controls .zoom-button[aria-pressed="true"],#game .controls button:active{border-color:#ffe5a3;background:#6b623f80}
#game .controls button:disabled{opacity:.32}
#game .controls .joystick{position:absolute;left:calc(61px + env(safe-area-inset-left));bottom:calc(50px + var(--safe-bottom));width:122px;height:122px;border:1px solid #ffffff62;background:#10151c40;backdrop-filter:none}
#game .joystick>span{left:37px;top:37px;width:46px;height:46px;border:3px solid #cfd2cfbd;background:#e4e5dfad;box-shadow:0 0 0 4px #ffffff12}
#game .joystick>small{display:none}
#game .joystick>i{position:absolute;inset:10px;border:1px dashed #ffffff35;border-radius:50%;pointer-events:none}
#game .joystick:before,#game .joystick:after{position:absolute;left:50%;transform:translateX(-50%);color:#eee8ce99;font-size:13px;line-height:1;pointer-events:none}
#game .joystick:before{content:'▲';top:10px}#game .joystick:after{content:'▼';bottom:10px}
#game .tutorial{bottom:calc(90px + var(--safe-bottom));font-size:11px;max-width:42%;white-space:normal;line-height:1.4}
#game.is-fps .tutorial{bottom:calc(90px + var(--safe-bottom))}
@media(orientation:portrait){
 #game .controls .ammo-panel{width:154px;height:58px;bottom:calc(18px + var(--safe-bottom))}
 #game .ammo-panel .weapon-silhouette{width:68px;right:6px;top:4px}#game .ammo-panel strong{font-size:23px}
 #game .controls .joystick{left:22px;bottom:calc(102px + var(--safe-bottom));width:112px;height:112px}
 #game .joystick>span{left:32px;top:32px}
 #game .controls .fire-left-button{left:22px;bottom:calc(246px + var(--safe-bottom));width:66px;height:66px}
 #game .controls .fire-button:not(.fire-left-button){right:22px;bottom:calc(140px + var(--safe-bottom));width:82px;height:82px}
 #game .controls .zoom-button{right:31px;bottom:calc(251px + var(--safe-bottom));width:60px;height:60px}
 #game .controls .reload-button{right:33px;bottom:calc(66px + var(--safe-bottom));width:52px;height:52px}
 #game .controls .switch-weapon-btn{left:auto;right:25px;bottom:calc(10px + var(--safe-bottom));width:42px;height:42px}
 #game .tutorial,#game.is-fps .tutorial{bottom:calc(83px + var(--safe-bottom));max-width:46%;font-size:10px}
}
@media(orientation:landscape) and (max-height:500px){
 #game .controls .fire-left-button{bottom:calc(165px + var(--safe-bottom));width:66px;height:66px;left:calc(24px + env(safe-area-inset-left))}
 #game .controls .fire-button:not(.fire-left-button){width:78px;height:78px;bottom:calc(79px + var(--safe-bottom));right:calc(35px + env(safe-area-inset-right))}
 #game .controls .zoom-button{width:53px;height:53px;right:calc(47px + env(safe-area-inset-right));bottom:calc(174px + var(--safe-bottom))}
 #game .controls .reload-button{width:51px;height:51px;right:calc(127px + env(safe-area-inset-right));bottom:calc(38px + var(--safe-bottom))}
 #game .controls .joystick{width:106px;height:106px;left:calc(55px + env(safe-area-inset-left));bottom:calc(24px + var(--safe-bottom))}
 #game .joystick>span{left:30px;top:30px;width:44px;height:44px}
 #game .controls .ammo-panel{height:57px;width:174px;bottom:calc(12px + var(--safe-bottom))}
 #game .ammo-panel .weapon-silhouette{width:88px}#game .ammo-panel strong{font-size:23px}
 #game .controls .switch-weapon-btn{left:calc(50% + 99px);bottom:calc(18px + var(--safe-bottom));width:40px;height:40px}
 #game .tutorial,#game.is-fps .tutorial{bottom:calc(76px + var(--safe-bottom));font-size:10px}
}

/* City controls and music share the same thumb-safe layout in both orientations. */
#game .weapon-filters{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}
#game .weapon-filters button{padding:10px 14px;min-height:42px;border:1px solid #8faaa755;background:#0c181e;color:#c5d3d4;font-size:13px}
#game .weapon-filters button[aria-pressed=true]{border-color:#e4cc8a;color:#f8e5b3;background:#544a2e55}
#game .weapon-card[hidden]{display:none}
#game .weapon-card.featured-weapon{border-top:2px solid #b5b28c}
#game .weapon-specs{display:flex;gap:12px;justify-content:space-between;color:#cbd7d7;font-size:11px;line-height:1.5;margin:10px 0}
#game .weapon-card img{object-fit:contain}
#game .rifle-photo{width:min(71vh,61vw);height:auto;right:6%;bottom:-6vh;aspect-ratio:auto}
#game .rifle-photo img{width:100%;height:auto;object-fit:contain;aspect-ratio:auto}
#game.is-fps .rifle-photo{width:min(78vh,67vw);right:7%;bottom:-8vh}
#game.is-scoped:is([data-weapon=machinegun],[data-weapon=grenade],[data-weapon=electric],[data-weapon=launcher],[data-weapon=energy]) .scope-glass{width:130px;height:130px;border:0;background:none;box-shadow:none;backdrop-filter:none}
#game.is-scoped:is([data-weapon=machinegun],[data-weapon=grenade],[data-weapon=electric],[data-weapon=launcher],[data-weapon=energy]) .scope-reticle{filter:drop-shadow(0 1px 2px #000);stroke:#fff8dd}
#game.is-scoped:is([data-weapon=machinegun],[data-weapon=grenade],[data-weapon=electric],[data-weapon=launcher],[data-weapon=energy]) .scope-reticle circle:not(.aim-dot),
#game.is-scoped:is([data-weapon=machinegun],[data-weapon=grenade],[data-weapon=electric],[data-weapon=launcher],[data-weapon=energy]) .scope-reticle path:not(.fine),
#game.is-scoped:is([data-weapon=machinegun],[data-weapon=grenade],[data-weapon=electric],[data-weapon=launcher],[data-weapon=energy]) .scope-glass>span{display:none}
#game .controls .vehicle-button{position:absolute;right:calc(133px + env(safe-area-inset-right));bottom:calc(157px + var(--safe-bottom));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:66px;height:66px;border:1px solid #e3e7dfae;border-radius:50%;background:#142326aa;color:#fff5cd;font-size:11px;box-shadow:0 2px 10px #0003}
#game .vehicle-button svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8}
#game .vehicle-button[hidden]{display:none}
#game .controls .drive-pedal{display:none;position:absolute;bottom:calc(55px + var(--safe-bottom));width:76px;height:100px;border:1px solid #fff9;border-radius:22px;background:#101a20ad;color:#f3ecce;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:11px}
#game .drive-pedal svg{width:39px;height:43px;fill:none;stroke:currentColor;stroke-width:1.8}
#game .accelerator-pedal{right:calc(29px + env(safe-area-inset-right))}
#game .brake-pedal{right:calc(124px + env(safe-area-inset-right))}
#game .vehicle-dashboard{display:none;position:absolute;bottom:calc(25px + var(--safe-bottom));left:50%;transform:translateX(-50%);text-align:center;padding:9px 22px;background:#0e191d8c;border-bottom:2px solid #e8d492;color:#fff}
#game .vehicle-dashboard strong{font-size:35px;font-variant-numeric:tabular-nums;font-weight:500;line-height:1}
#game .vehicle-dashboard>span{font-size:10px;margin-left:5px;color:#b9cccc}
#game .vehicle-dashboard small{display:block;font-size:11px;margin-top:4px;color:#e7d59c}
#game.is-driving .controls :is(.fire-button,.zoom-button,.reload-button,.switch-weapon-btn,.ammo-panel),
#game.is-driving :is(.rifle-photo,.crosshair,.scope,.zoom-adjust,.target-identification,.tutorial){display:none!important}
#game.is-driving .controls .drive-pedal{display:flex}
#game.is-driving .vehicle-dashboard{display:block}
#game.is-driving .controls .vehicle-button{right:calc(34px + env(safe-area-inset-right));bottom:calc(184px + var(--safe-bottom))}
#game #radio-btn[aria-pressed=true]{color:#f3dba2;border-color:#ddc584;background:#78653866}
#game .radio-panel{max-width:740px}
#game .radio-now{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-block:1px solid #8ca6ad40}
#game .radio-now strong{display:block;font-size:18px;font-weight:500;color:#f4e7c4}
#game .radio-now span{display:block;margin-top:6px;font-size:12px;color:#a4b6bb;line-height:1.5}
#game .radio-now span[data-state=playing]{color:#a7d6b7}
#game .radio-now span[data-state=error]{color:#e0b19b}
#game .radio-now a{font-size:12px;color:#b9cdd3;white-space:nowrap}
#game .radio-transport{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:17px 0 20px}
#game .radio-transport button{min-height:44px;font-size:13px;padding:10px 14px}
#game .radio-transport label{display:flex;flex:1;gap:12px;align-items:center;white-space:nowrap;font-size:12px;color:#c6d2d3}
#game .radio-transport input{width:100%;min-width:80px;accent-color:#e1c68c}
#game .radio-stations{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#game .radio-station{text-align:left;min-height:68px;border:1px solid #819ca444;background:#0d1a23;color:#ebeee8;padding:11px 14px}
#game .radio-station strong{display:block;font-size:16px;font-weight:500}
#game .radio-station span{display:block;color:#90aab5;font-size:11px;margin-top:5px}
#game .radio-station[aria-pressed=true]{background:#7f6c3333;border-color:#d3bd7a}
#game .radio-note{font-size:11px;line-height:1.6;margin:16px 0 0}
@media(orientation:portrait){
 #game .rifle-photo,#game.is-fps .rifle-photo{width:91vw;right:-4vw;bottom:7vh}
 #game .utility{gap:4px}#game .audio-control span{display:none}
 #game .controls .vehicle-button{right:121px;bottom:calc(165px + var(--safe-bottom));width:60px;height:60px}
 #game.is-driving .controls .joystick{bottom:calc(120px + var(--safe-bottom));left:20px}
 #game.is-driving .controls .drive-pedal{width:63px;height:84px;bottom:calc(117px + var(--safe-bottom))}
 #game.is-driving .accelerator-pedal{right:18px}#game.is-driving .brake-pedal{right:94px}
 #game.is-driving .controls .vehicle-button{right:22px;bottom:calc(225px + var(--safe-bottom))}
 #game .radio-panel{padding:21px 17px}#game .radio-station{padding:11px 10px}#game .radio-station strong{font-size:14px}
 #game .radio-transport label{flex-basis:100%}
}
@media(orientation:landscape) and (max-height:500px){
 #game .controls .vehicle-button{bottom:calc(118px + var(--safe-bottom));right:calc(128px + env(safe-area-inset-right));width:56px;height:56px}
 #game .controls .drive-pedal{bottom:calc(28px + var(--safe-bottom));height:88px;width:70px}
 #game .vehicle-dashboard{bottom:calc(16px + var(--safe-bottom))}
 #game.is-driving .controls .vehicle-button{bottom:calc(142px + var(--safe-bottom));right:calc(34px + env(safe-area-inset-right))}
 #game .radio-panel{padding:20px 24px}#game .radio-stations{grid-template-columns:repeat(5,1fr)}
 #game .radio-station{min-height:66px;padding:9px}#game .radio-station strong{font-size:13px}#game .radio-station span{font-size:10px}
}

#game .app-version{border-top:1px solid #8da5ad44;margin-top:18px;padding-top:14px;display:flex;flex-direction:column;gap:10px;font-size:11px;color:#a2b7bd}

#game.is-fps:not(.is-menu) .atmosphere{background:linear-gradient(180deg,#08101812,transparent 22%,transparent 82%,#08101814)}
#game.is-fps .hud{text-shadow:0 2px 5px #000b}

/* Navigation and roof access stay above the two-thumb combat controls. */
#game .city-radar-panel{position:absolute;z-index:6;top:calc(96px + var(--safe-top));right:36px;width:140px;height:140px;margin:0;border:1px solid #d3e4e366;background:#0d1c25d9;pointer-events:none;box-shadow:0 3px 15px #0005}
#game .city-radar-panel canvas{display:block;width:100%;height:100%}
#game .city-radar-panel figcaption{position:absolute;bottom:5px;left:5px;right:5px;display:flex;justify-content:center;gap:9px;color:#e3e9e6;font-size:9px;background:#0a1723bb;padding:3px 0}
#game .city-radar-panel figcaption span{display:flex;align-items:center;gap:4px}
#game .city-radar-panel i{height:5px;width:5px;background:#84e3e5;display:block}
#game .city-radar-panel b{height:5px;width:5px;background:#f07569;border-radius:50%;display:block}
#game .city-radar-panel[hidden],#game .roof-access-button[hidden],#game.is-menu .city-radar-panel{display:none!important}
#game.is-metropolis .timer-panel{display:none}
#game .city-position{display:none;position:absolute;z-index:6;left:36px;top:calc(188px + var(--safe-top));max-width:250px;color:#d4e5e7;text-shadow:0 1px 4px #000;font-size:11px;pointer-events:none}
#game.is-metropolis:not(.is-menu) .city-position{display:block}
#game .city-position.protected{color:#ade1bd}
#game .controls .roof-access-button{position:absolute;left:36px;top:calc(211px + var(--safe-top));display:flex;align-items:center;gap:9px;width:206px;min-height:53px;padding:8px 11px;text-align:left;border:1px solid #95d5d5a8;background:#112c36d9;color:#e4f4f1;border-radius:4px;box-shadow:0 2px 12px #0005}
#game .roof-access-button svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
#game .roof-access-button strong{display:block;font-size:12px;font-weight:600;line-height:1.3}
#game .roof-access-button small{display:block;font-size:9px;line-height:1.4;margin-top:4px;color:#a4c9ce}
#game .controls .roof-access-button:disabled{opacity:.7;border-color:#8aa5ad70;background:#10202bc4}
#game.is-metropolis .objective>p{display:none}
#game.is-metropolis .objective h2{font-size:25px;margin:5px 0}
#game.is-metropolis .health-panel{margin-top:6px}
@media(orientation:portrait){
 #game .city-radar-panel{top:calc(85px + var(--safe-top));right:18px;width:104px;height:104px}
 #game.is-metropolis .objective{max-width:220px}#game.is-metropolis .objective h2{font-size:23px}
 #game .city-position{left:24px;top:calc(176px + var(--safe-top));font-size:10px;max-width:220px}
 #game .controls .roof-access-button{left:24px;top:calc(199px + var(--safe-top));width:195px;min-height:48px}
 #game .roof-access-button strong{font-size:11px}
 #game .city-radar-panel figcaption{font-size:8px;gap:5px}
}
@media(orientation:landscape) and (max-height:500px){
 #game .city-radar-panel{top:calc(67px + var(--safe-top));right:24px;width:88px;height:88px}
 #game .city-radar-panel figcaption{bottom:3px;padding:2px 0;font-size:7px;gap:5px}
 #game.is-metropolis .objective{max-width:265px}#game.is-metropolis .objective h2{font-size:20px;margin:3px 0}
 #game.is-metropolis .health-panel{margin-top:5px}
 #game .city-position{left:104px;top:calc(154px + var(--safe-top));max-width:195px;font-size:9px}
 #game .controls .roof-access-button{left:104px;top:calc(172px + var(--safe-top));width:186px;min-height:45px;padding:6px 9px;gap:7px}
 #game .roof-access-button svg{width:24px;height:24px}#game .roof-access-button strong{font-size:10px}#game .roof-access-button small{font-size:8px}
}
@media(orientation:landscape) and (max-height:375px){#game .city-radar-panel{top:calc(61px + var(--safe-top));width:78px;height:78px}}
