#rotateNotice{display:none;position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:calc(20px + var(--sat)) calc(24px + var(--sar)) calc(20px + var(--sab)) calc(24px + var(--sal));text-align:center;background:radial-gradient(circle at 50% 40%,#14304a,#050a13 70%);color:#d7eff4;font-family:Consolas,"Courier New",monospace}
body.mobile-portrait #rotateNotice{display:flex}
#mobileFullscreenButton{position:fixed;left:50%;bottom:calc(8px + var(--sab));z-index:50;transform:translateX(-50%);margin:0;padding:7px 12px;border:1px solid #8eb9c5;border-radius:9px;background:#0b2538eb;color:#e6edf0;font:700 10px Consolas,"Courier New",monospace;letter-spacing:.08em;box-shadow:0 4px 14px #000b}
#mobileFullscreenButton[hidden],body.mobile-portrait #mobileFullscreenButton{display:none}
#rotateNotice strong{font-size:clamp(21px,7vw,36px);letter-spacing:.12em;color:#f4d48c;text-shadow:0 0 22px #d4aa5c88}
#rotateNotice p{max-width:400px;margin:0;color:#aac8d1;font-size:clamp(13px,4vw,17px);line-height:1.5}
#rotateRetryButton{min-height:44px;max-width:90vw;margin-top:8px;padding:9px 14px;border:1px solid #91bdc7;border-radius:8px;background:#173644;color:#e7f4f2;font:700 clamp(11px,3.3vw,14px) Consolas,"Courier New",monospace;cursor:pointer}
.rotate-device{position:relative;width:110px;height:110px;display:grid;place-items:center;margin-bottom:4px}
.rotate-phone{width:54px;height:86px;border:5px solid #a8d6e2;border-radius:11px;box-shadow:0 0 20px #4db6d666,inset 0 0 0 2px #102637;animation:turnPhone 2.8s ease-in-out infinite}
.rotate-phone span{display:block;width:7px;height:7px;margin:66px auto 0;border-radius:50%;background:#d9e9eb}
.rotate-arrow{position:absolute;right:0;bottom:0;font-size:40px;color:#e8c679}
@keyframes turnPhone{0%,15%{transform:rotate(0)}55%,85%{transform:rotate(90deg)}100%{transform:rotate(0)}}
#mobileVitals{display:none}
.terminal-survival{margin:16px 0 10px;padding:12px;border:1px solid #54717b;background:#0b202c}
.terminal-survival h3{margin:0 0 10px}
.terminal-survival-buttons{display:flex;flex-wrap:wrap;gap:8px}
.terminal-survival-buttons button{flex:1 1 135px;min-height:40px;margin:0;padding:8px;border-color:#6c8993;background:#183342;color:#d6e9e9;font-size:11px}
.terminal-survival-buttons button:disabled{opacity:.45;cursor:not-allowed}
.terminal-survival>small{display:block;margin-top:8px;color:#c3d5d8}
.terminal-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;overflow:auto;align-content:start}
.terminal-status-grid>div{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:10px 12px;border:1px solid #4b7180;background:#0b2231;font-size:12px}
.terminal-status-grid span{color:#a6c2cd;overflow-wrap:anywhere}.terminal-status-grid b{color:#f1d698;text-align:right}
@media (pointer:coarse) and (orientation:landscape), (max-width:1024px) and (orientation:landscape){
  #hud .panel{border:1px solid #56727f;border-radius:10px;background:linear-gradient(135deg,#0c1d2bdc,#0a1520d9);box-shadow:0 6px 24px #000a,inset 0 1px #8eb5c439;backdrop-filter:blur(8px)}
  #stats{left:calc(8px + var(--sal));top:calc(6px + var(--sat));width:158px;max-width:158px;min-width:0;padding:7px 9px}
  #mobileVitals{display:block}
  .mv-readout{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#c8dce2;font-size:11px;font-weight:700}
  .mv-readout span:first-child{color:#f7b3aa}.mv-readout b{font-size:16px;color:#f0e9d5}
  .mv-healthbar{height:5px;margin-top:5px;overflow:hidden;border-radius:5px;background:#16212a}
  .mv-healthbar i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#c84a48,#f2a47c);transition:width .15s}
  .mv-healthbar i.critical{background:#f05045;animation:needBlink .8s steps(2) infinite}
  #stats .stat-bar-box,#stats .stats-meta,#stats .carry-row,#stats .carry-bar,#stats .health-line{display:none}
  #stats .needs{margin-top:6px;gap:0}
  #stats .need:not(:first-child){display:none}
  #stats .need{font-size:10px;color:#efd18a}
  #stats .need .bar{height:5px;margin:0;background:#15212a}
  #bleedingHud{font-size:9px;margin:5px 0 0;color:#ff786c}
  #hudRight{right:calc(8px + var(--sar));top:calc(6px + var(--sat));gap:5px;align-items:flex-end}
  #weapon{width:147px;min-width:0;max-width:147px;padding:6px 9px;text-align:right}
  #wname{font-size:11px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #ammo{font-size:17px;line-height:1.15;color:#f1d798}
  #reload{font-size:9px}
  #grenadeInfo{max-width:147px;padding:3px 7px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d4bd87}
  #raidInfo{display:none}
  #boss{top:calc(55px + var(--sat));width:min(280px,40vw);padding:4px 7px}
  #btnMobileMute{display:none}
  #btnMobilePause{display:flex;left:50%;right:auto;top:calc(6px + var(--sat));transform:translateX(-50%);width:38px;height:38px;border:1px solid #6d8992;border-radius:10px;background:#0d2232e8;color:#d5e9e9}
  #touch{display:block}
  #moveZone{width:45%}
  #aimZone{width:53%}
  #leftStick{left:calc(17px + var(--sal));bottom:calc(16px + var(--sab));width:112px;height:112px;border-color:#6ca5b066;background:#0b24385c;box-shadow:0 0 0 8px #0b25321c}
  #leftStick .knob{width:48px;height:48px;left:30px;top:30px;background:#83aeb263;border-color:#c0e5e875}
  #fireHint{right:calc(28px + var(--sar));bottom:calc(23px + var(--sab));width:78px;height:78px;border:2px solid #e7786d88;background:radial-gradient(circle,#c94b4352,#7427271c);color:#ffcebb;font-size:11px;box-shadow:0 0 0 9px #cc4a3820}
  #touchReload{right:calc(26px + var(--sar));bottom:calc(132px + var(--sab));width:48px;height:48px;border-radius:15px;border-color:#74a5b0;background:#102a39e8;color:#d6e8e9;font-size:15px}
  #mobileActions{position:absolute;inset:0;display:block;left:0;right:0;top:0;bottom:0;width:auto;height:auto;pointer-events:none;z-index:10}
  #mobileActions .mact{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;width:49px;height:49px;margin:0;padding:3px;border-radius:15px;border:1px solid #6d919c;background:linear-gradient(145deg,#153344e9,#0a1b2be9);box-shadow:0 5px 15px #0009,inset 0 1px #a7c9d04a;color:#d7edf0;font-size:19px;pointer-events:auto;touch-action:manipulation}
  #mobileActions .mact span{font-size:8px;line-height:1.1;letter-spacing:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #mobileActions .mact:active{transform:scale(.93);border-color:#e9cd83;background:#284454}
  #mobileActions #mBtnPrevWpn,#mobileActions #mBtnGrenadeCycle,#mobileActions #mBtnEat,#mobileActions #mBtnMeds,#mobileActions #mBtnDropWpn{display:none}
  #mBtnTerminal{right:calc(246px + var(--sar));top:calc(6px + var(--sat));width:42px!important;height:42px!important}
  #mBtnInventory{right:calc(196px + var(--sar));top:calc(6px + var(--sat));width:42px!important;height:42px!important}
  #mBtnNextWpn{right:calc(27px + var(--sar));bottom:calc(193px + var(--sab))}
  #mBtnGrenade{right:calc(138px + var(--sar));bottom:calc(106px + var(--sab));border-color:#b88169!important;color:#f4b8a5!important}
  #mBtnInteract{right:calc(155px + var(--sar));bottom:calc(32px + var(--sab));border-color:#c4ae70!important;color:#f4df9d!important}
  #mBtnSprint{left:calc(17px + var(--sal));bottom:calc(145px + var(--sab))}
  #mBtnSprint.on{border-color:#e8ca7f!important;background:#574928!important}
  #shelterUI .sh-vitals{left:calc(8px + var(--sal));top:calc(6px + var(--sat));padding:6px 8px;gap:3px;border:1px solid #5b8089;border-radius:10px;background:#0b1d2bdd;box-shadow:0 6px 24px #000a;backdrop-filter:blur(8px)}
  #shelterUI .sh-bar-row:nth-child(n+3){display:none}
  #shelterUI .sh-bar{width:95px;height:7px}
  #shelterUI .sh-clock{font-size:9px;letter-spacing:0;margin-top:1px}
  #shelterUI .sh-minimap{display:none}
  #shelterUI .sh-topright{top:calc(6px + var(--sat));right:calc(8px + var(--sar))}
  #shelterUI .sh-pause{width:38px;height:38px;border:1px solid #6d919c;border-radius:10px;background:#0d2232e8}
  #shelterUI .sh-zone{top:calc(6px + var(--sat));font-size:10px;letter-spacing:1px;max-width:34vw;overflow:hidden;text-overflow:ellipsis}
  #shelterUI .sh-mission{top:calc(47px + var(--sat));max-width:45vw;font-size:9px;padding:4px 7px}
  #shelterUI .sh-weapon{top:calc(52px + var(--sat));right:calc(8px + var(--sar));bottom:auto;min-width:112px;max-width:140px;padding:4px 7px;border:1px solid #5b8089;border-radius:9px;background:#0b1d2bdd}
  #shelterUI .sh-wname{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #shelterUI .sh-ammo{font-size:15px}
  #shelterUI .sh-wslot{font-size:8px}
  #shelterUI .sh-prompt{top:calc(100px + var(--sat));bottom:auto;max-width:42vw;white-space:normal;text-align:center;font-size:10px;letter-spacing:0;padding:5px 8px}
  #shelterUI .sh-rangestats{top:auto;bottom:calc(8px + var(--sab));font-size:9px;max-width:44vw;white-space:normal}
  #shelterUI .tc-stick{left:calc(17px + var(--sal));bottom:calc(16px + var(--sab));width:112px;height:112px;border-color:#6ca5b066;background:#0b24385c}
  #shelterUI .tc-knob{left:26px;top:26px;width:56px;height:56px;background:#83aeb263;border-color:#c0e5e875}
  #shelterUI .tc-btn{border:1px solid #6d919c;background:linear-gradient(145deg,#153344e9,#0a1b2be9);color:#d7edf0;box-shadow:0 5px 15px #0009,inset 0 1px #a7c9d04a}
  #shelterUI .tc-fire{right:calc(28px + var(--sar));bottom:calc(23px + var(--sab));width:78px;height:78px;padding:17px;border-color:#cf796e;background:radial-gradient(circle,#a23e3b,#341926)}
  #shelterUI .tc-hand{right:calc(155px + var(--sar));bottom:calc(32px + var(--sab));width:49px;height:49px;padding:11px;border-color:#bda569}
  #shelterUI .tc-gren{right:calc(138px + var(--sar));bottom:calc(106px + var(--sab));width:49px;height:49px;padding:11px;border-color:#b88169}
  #shelterUI .tc-reload{right:calc(26px + var(--sar));bottom:calc(132px + var(--sab));width:48px;height:48px;padding:10px}
  #shelterUI .tc-swap{right:calc(27px + var(--sar));bottom:calc(193px + var(--sab));width:49px;height:49px;padding:10px}
  #shelterUI .tc-terminal{right:calc(56px + var(--sar));top:calc(6px + var(--sat));width:38px;height:38px;padding:0;border-radius:10px;font-size:23px;color:#d1e7eb}
}
@media (max-height:380px) and (orientation:landscape){
  #mBtnNextWpn,#shelterUI .tc-swap{bottom:calc(174px + var(--sab))}
  #touchReload,#shelterUI .tc-reload{bottom:calc(122px + var(--sab))}
  #mBtnSprint{bottom:calc(134px + var(--sab))}
  #boss{top:calc(47px + var(--sat))}
}
@media (pointer:coarse) and (orientation:landscape){
  .sh-modal-wrap.wrist-open .sh-modal,.raid-terminal-overlay.wrist-open .raid-terminal{width:min(96vw,900px);height:94vh;border-width:8px}
  .terminal-survival{margin:8px 0;padding:8px}
  .terminal-status-grid>div{padding:7px 9px}
}
@media (max-width:650px){.terminal-status-grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.rotate-phone{animation:none}}
