.touch-controls,#rotate-device{display:none}
.game-screen canvas{touch-action:none;-webkit-user-select:none;user-select:none}

@media (pointer:coarse), (max-width:1000px) and (max-height:540px){
  html,body,#app{overscroll-behavior:none;-webkit-user-select:none;user-select:none}
  button{touch-action:manipulation}
  #crosshair,.game-screen .controls-hint,.game-screen .bottom-center,.game-screen .top-right,.game-screen .kill-feed{display:none!important}

  .top-left{top:max(6px,env(safe-area-inset-top));left:max(7px,env(safe-area-inset-left));width:138px;padding:4px 5px;background:#2b2218b8;border:1px solid #72583a}
  .top-left .core-icon,.top-left .hp-row small{display:none}.top-left .hp-row{gap:3px}.top-left .hp-row>div{min-width:0}.top-left .bar.hp{height:8px}.top-left #hp-text{font-size:8px;bottom:0;right:3px}
  .top-left .xp-row{margin-top:3px;gap:4px}.top-left .xp-row span{font-size:7px}.top-left .bar.xp{height:3px}
  .top-left .stat-chips{gap:3px;margin-top:3px}.top-left .stat-chips span{padding:2px 4px;font-size:7px;border-left-width:1px}
  .top-center{top:max(5px,env(safe-area-inset-top));padding:2px 7px;background:#2b2218a8;border:1px solid #72583a}.top-center small{display:none}.top-center strong{font-size:15px}.top-center #zone-warning{font-size:7px;line-height:1}

  .stamina-hud{left:max(7px,env(safe-area-inset-left))!important;top:max(57px,calc(env(safe-area-inset-top) + 57px))!important;width:138px!important;padding:3px 5px!important;border-width:1px!important;grid-template-columns:1fr auto!important;gap:2px 4px!important;background:#2b2218b8!important}.stamina-hud small,.stamina-hud b{font-size:7px!important}.stamina-hud>div{height:4px!important;border:0!important}

  .holster-hud{left:50%!important;right:auto!important;top:auto!important;bottom:max(5px,env(safe-area-inset-bottom))!important;transform:translateX(-50%);width:clamp(230px,38vw,330px)!important;padding:3px!important;background:#2c2118bd!important;border-width:1px!important;pointer-events:auto}
  .holster-hud>small,.holster-hud>span{display:none!important}.holster-hud>div{gap:3px!important}.holster-slot{min-width:0!important;min-height:34px!important;padding:3px 2px!important;border-width:1px!important}.holster-slot kbd{display:none!important}.holster-slot b{font-size:8px!important;white-space:nowrap}.holster-slot em{font-size:6px!important;margin-top:2px!important}

  .touch-device .game-screen.active .touch-controls{display:block;position:absolute;inset:0;z-index:12;pointer-events:none}
  .touch-stick{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));width:92px;height:92px;border:2px solid #bea26e70;border-radius:50%;background:#211a137d;box-shadow:inset 0 0 0 11px #7456351d;pointer-events:auto;touch-action:none;opacity:.82}
  .touch-stick:before,.touch-stick:after{content:"";position:absolute;background:#c8ad7745;left:50%;top:50%;transform:translate(-50%,-50%)}.touch-stick:before{width:68%;height:1px}.touch-stick:after{width:1px;height:68%}
  .touch-stick i{position:absolute;z-index:2;width:36px;height:36px;left:calc(50% - 18px);top:calc(50% - 18px);border-radius:50%;background:radial-gradient(circle,#d0ad68,#76502c 68%);border:2px solid #3a2819;box-shadow:0 3px 7px #0008;will-change:transform}
  .touch-stick span{position:absolute;left:0;right:0;bottom:-13px;text-align:center;color:#ead5aa;font:700 7px "Trebuchet MS",sans-serif;letter-spacing:.06em}
  .move-stick{left:max(12px,env(safe-area-inset-left))}.aim-stick{right:max(12px,env(safe-area-inset-right))}
  .touch-action{position:absolute;z-index:3;pointer-events:auto;touch-action:none;border:1px solid #d1b376;color:#f3e4c5;background:linear-gradient(#76522fd9,#402c1cd9);font:800 8px "Trebuchet MS",sans-serif;letter-spacing:.03em;box-shadow:0 3px 0 #24180f;padding:0;opacity:.88}.touch-action:active{transform:translateY(3px);box-shadow:none}
  .dash-action{right:max(112px,calc(env(safe-area-inset-right) + 112px));bottom:max(22px,calc(env(safe-area-inset-bottom) + 22px));width:55px;height:55px;border-radius:50%}
  .sprint-action{left:max(112px,calc(env(safe-area-inset-left) + 112px));bottom:max(22px,calc(env(safe-area-inset-bottom) + 22px));width:55px;height:55px;border-radius:50%;border-color:#aabd6d;background:linear-gradient(#65743dde,#394326de)}
  .weapon-action{right:max(108px,calc(env(safe-area-inset-right) + 108px));bottom:max(85px,calc(env(safe-area-inset-bottom) + 85px));width:64px;height:29px;border-radius:15px}
  .fullscreen-action{right:max(6px,env(safe-area-inset-right));top:max(5px,env(safe-area-inset-top));width:49px;height:25px;border-radius:4px;font-size:6px;opacity:.62}

  .live-choice-overlay,#upgrade-overlay{align-items:flex-start!important;justify-content:flex-end!important;padding:max(5px,env(safe-area-inset-top)) max(5px,env(safe-area-inset-right)) 5px 5px!important;background:transparent!important;backdrop-filter:none!important;pointer-events:none!important}
  .live-choice-overlay .weapon-choice-modal,#upgrade-overlay .upgrade-modal{width:clamp(230px,34vw,300px)!important;max-height:calc(100dvh - 10px)!important;padding:8px!important;border-width:1px!important;overflow:auto!important;pointer-events:auto!important;text-align:left!important;background:#302318e8!important;box-shadow:0 8px 25px #120b07bb!important}
  .live-choice-overlay .eyebrow,#upgrade-overlay .eyebrow{display:none!important}.live-choice-overlay h2,#upgrade-overlay h2{font:800 14px Georgia,serif!important;margin:0 0 3px!important}.live-choice-overlay .weapon-choice-modal>p,#upgrade-overlay .upgrade-modal>p{display:none!important}
  .live-choice-overlay .weapon-choice-cards,#upgrade-overlay .upgrade-cards{grid-template-columns:1fr!important;gap:4px!important;margin:5px 0!important}
  .live-choice-overlay .weapon-choice-card{min-height:42px!important;padding:5px 28px 5px 7px!important}.live-choice-overlay .weapon-choice-card>span{right:5px!important;top:5px!important;font-size:7px!important;padding:2px 5px!important}.live-choice-overlay .weapon-choice-card small{font-size:7px!important;margin:0!important}.live-choice-overlay .weapon-choice-card b{font-size:10px!important;margin:2px 0!important}.live-choice-overlay .weapon-choice-card em{font-size:7px!important}.live-choice-overlay .weapon-choice-modal>.btn{width:100%!important;min-height:31px!important;margin:4px 0 0!important;padding:4px 7px!important;font-size:8px!important}
  #upgrade-overlay .upgrade-card{min-height:0!important;padding:6px 25px 6px 32px!important;text-align:left!important}.upgrade-card .key{right:6px!important;top:5px!important;font-size:8px!important}.upgrade-card .upgrade-icon{position:absolute!important;left:7px!important;top:8px!important;font-size:17px!important}.upgrade-card h3{font-size:11px!important;margin:0 0 2px!important}.upgrade-card small{font-size:6px!important}.upgrade-card p{font-size:8px!important;line-height:1.15!important;margin:2px 0 0!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

  .start-choice{width:min(680px,95vw)!important;max-height:calc(100dvh - 14px)!important;padding:9px!important;overflow:auto}.start-choice .eyebrow,.start-choice>p{display:none}.start-choice h2{font-size:18px!important;margin:0 0 7px!important}.start-weapon-cards{grid-template-columns:repeat(3,1fr)!important;gap:5px!important;margin:0!important}.start-weapon-card{min-height:91px!important;padding:6px 5px!important}.start-weapon-card>span{font-size:7px!important;padding:2px 5px!important}.start-weapon-card small{font-size:7px!important;margin-top:12px!important}.start-weapon-card b{font-size:10px!important;margin:3px 0!important}.start-weapon-card p{font-size:7px!important;line-height:1.15!important;margin:2px 0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.start-weapon-card em{font-size:6px!important}
  .install-mobile{border-color:#9fb35e!important}
}

@media (pointer:coarse) and (orientation:portrait){
  .touch-device .game-screen.active #rotate-device{display:flex;position:absolute;inset:0;z-index:60;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:radial-gradient(circle,#4f6038,#261e15 72%);padding:30px;color:#f0dfbd}
  #rotate-device .rotate-gear{font-size:64px;color:#d1a75f;animation:rotate-phone 1.8s ease-in-out infinite}#rotate-device strong{font:900 28px Georgia,serif;margin:12px}#rotate-device span{max-width:280px;color:#c6b38e}
}

@media (pointer:coarse) and (max-height:390px){
  .touch-stick{width:82px;height:82px}.touch-stick i{width:32px;height:32px;left:calc(50% - 16px);top:calc(50% - 16px)}.dash-action{right:max(100px,calc(env(safe-area-inset-right) + 100px));width:49px;height:49px}.sprint-action{left:max(100px,calc(env(safe-area-inset-left) + 100px));width:49px;height:49px}.weapon-action{right:max(97px,calc(env(safe-area-inset-right) + 97px));bottom:max(75px,calc(env(safe-area-inset-bottom) + 75px))}.top-left{width:125px}.top-left .stat-chips{display:none}.stamina-hud{top:max(43px,calc(env(safe-area-inset-top) + 43px))!important;width:125px!important}.start-weapon-card p{display:none!important}
}

.gamepad-status{position:fixed;left:50%;bottom:18px;z-index:110;transform:translateX(-50%);padding:7px 12px;border:1px solid #9fb35e;background:#2e2a1de8;color:#e9d8b6;font:800 8px "Trebuchet MS",sans-serif;letter-spacing:.07em;pointer-events:none}
.controller-selected{border-color:#e4c587!important;box-shadow:inset 0 0 0 2px #a77b3f,0 0 12px #d1a75f99!important;transform:translateY(-1px)}
.gamepad-connected .touch-controls{display:none!important}.gamepad-connected .gamepad-status{animation:gamepad-status 2.8s forwards}
@keyframes gamepad-status{0%,72%{opacity:1}100%{opacity:0}}
@keyframes rotate-phone{50%{transform:rotate(90deg)}}
