@font-face {
  font-family: "Black Ops One";
  src: url("assets/fonts/BLACKOPSONE-REGULAR.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --panel-bg: rgba(10, 14, 28, 0.7);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text-main: #f2f4ff;
  --text-soft: #c9cee7;
  --accent: #ffb84d;
  --danger: #ff6c6c;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #070911;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gameCanvas {
  display: block;
  width: min(100vw, calc(100vh * 1.777));
  height: min(100vh, calc(100vw / 1.777));
  max-width: 100vw;
  max-height: 100vh;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

#hudTop,
#weaponButtons,
#cooldownWrap,
#overlay,
#gameOver,
#mobileControls {
  position: absolute;
}

#hudTop {
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, calc(min(100vw, calc(100vh * 1.777)) * 0.9));
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.panel {
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.label {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.panel div:last-child {
  font-size: 24px;
  font-weight: 700;
}

#cooldownWrap {
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(360px, 82vw);
  padding: 8px 9px;
  border-radius: 18px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.cooldownTitle {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.cooldownBar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#cooldownFill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #58c3ff, var(--accent));
  box-shadow: 0 0 16px rgba(255, 184, 77, 0.4);
  transition: width 120ms linear;
}

#cooldownText {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

#overlay,
#gameOver {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 12, 0.55);
  backdrop-filter: blur(5px);
  z-index: 5;
}

#overlay.hidden,
#gameOver.hidden { display: none; }
#overlay.show,
#gameOver.show { display: flex; }

.card {
  width: min(620px, 92vw);
  padding: 26px;
  border-radius: 28px;
  background: rgba(12, 16, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.card h1,
.card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 42px);
}

.card p {
  margin: 0 auto 16px;
  max-width: 520px;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: clamp(14px, 1.7vw, 18px);
}

.controls {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
  color: var(--text-main);
}

.startPresentation {
  position: relative;
  width: min(92vw, 1180px);
  aspect-ratio: 2048 / 866;
  background: url("assets/start_presentation.webp") center / contain no-repeat;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.45));
}

.startImageButton {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 3.8%, 34px);
  transform: translateX(-50%);
  width: clamp(124px, 11.4vw, 176px);
  aspect-ratio: 257 / 262;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.42));
  animation: startButtonBob 1.85s ease-in-out infinite;
}

.startImageButton::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 117, 0.52) 0%, rgba(255, 190, 84, 0.30) 35%, rgba(255, 149, 52, 0.14) 56%, rgba(255, 149, 52, 0) 76%);
  animation: startPulseGlow 1.55s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}

.startImageButton::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid rgba(255, 217, 117, 0.92);
  box-shadow: 0 0 0 0 rgba(255, 190, 84, 0.48), 0 0 26px rgba(255, 171, 76, 0.48);
  animation: startPulseRing 1.55s ease-out infinite;
  z-index: -1;
  pointer-events: none;
}

.startImageButton:hover {
  filter: brightness(1.06) drop-shadow(0 14px 26px rgba(0, 0, 0, 0.44));
}

.startImageButton:active {
  animation: none;
  transform: translateX(-50%) scale(0.965);
}

.startImageButton img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.startBtnOn {
  opacity: 0;
}

.startImageButton:active .startBtnOn,
.startImageButton:focus-visible .startBtnOn {
  opacity: 1;
}

.startImageButton:active .startBtnOff,
.startImageButton:focus-visible .startBtnOff {
  opacity: 0;
}

@keyframes startButtonBob {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes startPulseGlow {
  0%, 100% {
    opacity: 0.48;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.12);
  }
}

@keyframes startPulseRing {
  0% {
    opacity: 0.92;
    transform: scale(0.94);
    box-shadow: 0 0 0 0 rgba(255, 190, 84, 0.46), 0 0 18px rgba(255, 171, 76, 0.34);
  }
  70% {
    opacity: 0.25;
    transform: scale(1.12);
    box-shadow: 0 0 0 16px rgba(255, 190, 84, 0), 0 0 34px rgba(255, 171, 76, 0.24);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
    box-shadow: 0 0 0 24px rgba(255, 190, 84, 0), 0 0 40px rgba(255, 171, 76, 0);
  }
}

@media (max-width: 900px) {
  .startPresentation {
    width: min(96vw, 1100px);
  }

  .startImageButton {
    width: clamp(112px, 15vw, 154px);
  }
}

@media (max-width: 520px) {
  .startImageButton {
    width: clamp(98px, 24vw, 136px);
    bottom: clamp(6px, 3.4%, 18px);
  }
}

button {
  border: 0;
  cursor: pointer;
  color: #10131d;
  background: linear-gradient(180deg, #ffd273, #ff9f38);
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(255, 159, 56, 0.28);
}

button:hover { filter: brightness(1.05); }
button:active { transform: translateY(1px); }

.danger button {
  background: linear-gradient(180deg, #ff8e8e, #ff5a5a);
  box-shadow: 0 10px 22px rgba(255, 90, 90, 0.28);
}

#mobileControls {
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.stack {
  position: absolute;
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

.leftControls {
  left: max(3px, env(safe-area-inset-left));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px));
  width: 143px;
  height: 126px;
  display: block;
}

.rightControls {
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px));
  flex-direction: column;
  align-items: flex-end;
}

.touchBtn {
  min-width: 78px;
  min-height: 78px;
  border-radius: 999px;
  background: rgba(12, 16, 30, 0.6);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
}

.touchBtn.fire,
.touchBtn.special {
  min-width: 108px;
  min-height: 64px;
  border-radius: 19px;
}

.touchBtn.fire {
  background: rgba(255, 158, 54, 0.24);
}

.touchBtn.fire.shootBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.shootLabelImg {
  display: block;
  width: auto;
  height: 34px;
  max-width: 76px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.crosshairIcon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: visible;
}

.crosshairIcon circle,
.crosshairIcon line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.touchBtn.special {
  background: rgba(88, 195, 255, 0.22);
}



.touchBtn.moveBtn {
  width: 67px;
  height: 126px;
  min-width: 67px;
  min-height: 126px;
  padding: 0;
  border: 2px dashed rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background-color: rgba(10, 14, 28, 0.72);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 66px auto;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
  color: transparent;
  font-size: 0;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.leftControls .moveUpBtn {
  position: absolute;
  left: 3px;
  bottom: 0;
}

.leftControls .moveDownBtn {
  position: absolute;
  right: 3px;
  bottom: 0;
}

.touchBtn.moveUpBtn {
  background-image: url("assets/ui_btn_up.webp");
}

.touchBtn.moveUpBtn:active,
.touchBtn.moveUpBtn.pressed {
  background-image: url("assets/ui_btn_up_pressed.webp");
  border-color: rgba(255, 209, 115, 0.86);
  background-color: rgba(32, 24, 8, 0.86);
  box-shadow: 0 14px 28px rgba(255, 160, 56, 0.28), inset 0 0 0 1px rgba(255, 242, 210, 0.12);
}

.touchBtn.moveDownBtn {
  background-image: url("assets/ui_btn_down.webp");
}

.touchBtn.moveDownBtn:active,
.touchBtn.moveDownBtn.pressed {
  background-image: url("assets/ui_btn_down_pressed.webp");
  border-color: rgba(255, 209, 115, 0.86);
  background-color: rgba(32, 24, 8, 0.86);
  box-shadow: 0 14px 28px rgba(255, 160, 56, 0.28), inset 0 0 0 1px rgba(255, 242, 210, 0.12);
}

.touchBtn.moveBtn:hover {
  filter: none;
}

.touchBtn.moveBtn:active,
.touchBtn.moveBtn.pressed {
  transform: none;
}

@media (max-width: 520px) {
  .leftControls {
    left: max(3px, env(safe-area-inset-left));
    width: 123px;
    height: 108px;
  }

  .touchBtn.moveBtn {
    width: 57px;
    height: 108px;
    min-width: 57px;
    min-height: 108px;
    border-radius: 14px;
    background-size: 53px auto;
  }
}

@media (min-width: 1024px) {
  #mobileControls { opacity: 0.88; }
}

@media (max-width: 900px) {
  .panel { min-width: 92px; padding: 8px 10px; }
  .panel div:last-child { font-size: 20px; }
  #cooldownWrap { bottom: max(10px, env(safe-area-inset-bottom)); }
}




#weaponButtons {
  top: calc(max(10px, env(safe-area-inset-top)) + 84px);
  right: max(3px, env(safe-area-inset-right));
  left: auto;
  transform: none;
  width: 143px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.weaponBtn {
  width: 143px;
  min-width: 143px;
  min-height: 82px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(10, 14, 28, 0.72);
  color: var(--text-main);
  border: 2px dashed rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 3px;
  align-items: stretch;
  justify-items: stretch;
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.weaponBtn:hover {
  filter: none;
  border-color: rgba(255, 209, 115, 0.44);
}

.weaponBtn:active {
  transform: none;
}

.weaponBtnFrame {
  min-height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255,255,255,0.02)),
    radial-gradient(circle at 20% 20%, rgba(255, 209, 115, 0.12), transparent 48%),
    rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.weaponBtnIcon {
  width: 100%;
  max-width: 100%;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.weaponBtnName {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  text-align: center;
}

.weaponBtnMeta,
.weaponBtnInfo {
  display: none !important;
}

.weaponBtn.active {
  background: linear-gradient(180deg, rgba(255, 210, 115, 0.2), rgba(255, 159, 56, 0.16)), rgba(10, 14, 28, 0.92);
  color: #fff7e7;
  border-color: rgba(255, 209, 115, 0.92);
  box-shadow: 0 14px 28px rgba(255, 160, 56, 0.28), inset 0 0 0 1px rgba(255, 242, 210, 0.12);
}

.weaponBtn.active .weaponBtnFrame {
  background:
    linear-gradient(180deg, rgba(255, 209, 115, 0.14), rgba(255, 158, 54, 0.06)),
    rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 227, 173, 0.34);
}

.weaponBtn.locked {
  opacity: 0.58;
  filter: saturate(0.35);
}

.weaponBtn.unlocked:not(.active) {
  border-color: rgba(88, 195, 255, 0.34);
}

@media (max-width: 900px) {
  #weaponButtons {
    top: calc(max(10px, env(safe-area-inset-top)) + 74px);
    width: 123px;
  }

  .weaponBtn {
    width: 123px;
    min-width: 123px;
    min-height: 72px;
    padding: 4px;
    border-radius: 14px;
  }

  .weaponBtnFrame {
    min-height: 32px;
    padding: 2px 4px;
  }

  .weaponBtnIcon {
    height: 22px;
  }

  .weaponBtnName {
    min-height: 20px;
    font-size: 9px;
  }
}

@media (max-width: 520px) {
  #weaponButtons {
    width: 111px;
    gap: 3px;
  }

  .weaponBtn {
    width: 111px;
    min-width: 111px;
    min-height: 66px;
  }

  .weaponBtnIcon {
    height: 18px;
  }

  .weaponBtnName {
    font-size: 8px;
  }
}

.weaponPanel { min-width: 150px; }
#weaponValue { font-size: 18px; letter-spacing: 0.6px; }
@media (max-width: 900px) {
  .weaponPanel { min-width: 120px; }
  #weaponValue { font-size: 15px; }
}


@media (max-width: 900px) {
  #weaponButtons {
    top: calc(max(10px, env(safe-area-inset-top)) + 74px);
    width: min(360px, 72vw);
    gap: 6px;
  }

  .weaponBtn {
    min-height: 72px;
    padding: 4px;
    border-radius: 14px;
  }

  .weaponBtnFrame {
    min-height: 28px;
    padding: 2px 4px;
  }

  .weaponBtnIcon {
    height: 20px;
  }

  .weaponBtnName {
    font-size: 9px;
  }

  .weaponBtnMeta {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
}


#weaponButtons {
  width: 143px;
  gap: 6px;
  align-items: center;
}

.weaponBtn {
  width: 129px;
  min-width: 129px;
}

@media (max-width: 900px) {
  #weaponButtons {
    width: 123px;
    gap: 6px;
    align-items: center;
  }

  .weaponBtn {
    width: 111px;
    min-width: 111px;
  }
}

@media (max-width: 520px) {
  #weaponButtons {
    width: 111px;
    gap: 6px;
    align-items: center;
  }

  .weaponBtn {
    width: 100px;
    min-width: 100px;
  }
}



#hudTop .panel.left,
#hudTop .weaponPanel {
  display: none !important;
}



#hudTop {
  justify-content: space-between;
}

#hudTop .panel.left.levelPanel {
  display: block !important;
}

#hudTop .panel.right,
#hudTop .weaponPanel {
  display: none !important;
}



.rightControls {
  right: max(21px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px));
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  height: auto;
}

.touchBtn.air {
  min-width: 108px;
  min-height: 64px;
  border-radius: 19px;
  background: rgba(88, 195, 255, 0.24);
  color: var(--text-main);
  font-weight: 900;
  letter-spacing: 0.8px;
}

.touchBtn.air:active,
.touchBtn.air.pressed {
  background: rgba(88, 195, 255, 0.34);
  border-color: rgba(147, 220, 255, 0.72);
  box-shadow: 0 14px 28px rgba(88, 195, 255, 0.22), inset 0 0 0 1px rgba(220, 246, 255, 0.12);
}

#weaponButtons {
  top: calc(max(10px, env(safe-area-inset-top)) + 25px);
  gap: 5px;
}

.weaponBtn.airBtn {
  min-height: 82px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 5px;
  padding-bottom: 6px;
  pointer-events: auto;
  cursor: pointer;
}

.weaponBtn.airBtn:disabled {
  cursor: default;
}

.weaponBtn.airBtn:disabled:hover {
  filter: none;
}


.heliBtnFrame {
  position: relative;
  min-height: 42px;
  padding: 2px 5px;
}

.heliBtnIcon {
  width: 100%;
  height: 42px;
  max-height: 42px;
  object-fit: contain;
  transform: scale(1.18);
  transform-origin: center;
}

.weaponBtnCooldown {
  display: block;
  width: calc(100% - 10px);
  height: 9px;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

#heliCooldownFill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #58c3ff, var(--accent));
  box-shadow: 0 0 14px rgba(88, 195, 255, 0.28);
  transition: width 120ms linear;
}

.weaponBtn.airBtn.cooling {
  opacity: 0.72;
  border-color: rgba(88, 195, 255, 0.28);
}

.weaponBtn.airBtn.ready {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 210, 115, 0.2), rgba(255, 159, 56, 0.16)), rgba(10, 14, 28, 0.92);
  color: #fff7e7;
  border-color: rgba(255, 209, 115, 0.92);
  box-shadow: 0 14px 28px rgba(255, 160, 56, 0.28), inset 0 0 0 1px rgba(255, 242, 210, 0.12);
}

.weaponBtn.airBtn.ready .weaponBtnFrame {
  background:
    linear-gradient(180deg, rgba(255, 209, 115, 0.14), rgba(255, 158, 54, 0.06)),
    rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 227, 173, 0.34);
}

@media (max-width: 900px) {
  #weaponButtons {
    top: calc(max(10px, env(safe-area-inset-top)) + 19px);
    gap: 5px;
  }

  .weaponBtn.airBtn {
    min-height: 72px;
  }

  .heliBtnFrame {
    min-height: 32px;
  }

  .heliBtnIcon {
    height: 34px;
    max-height: 34px;
  }

  .touchBtn.air {
    min-width: 108px;
    min-height: 64px;
  }
}

@media (max-width: 520px) {
  #weaponButtons {
    top: calc(max(8px, env(safe-area-inset-top)) + 13px);
    gap: 4px;
  }

  .weaponBtn.airBtn {
    min-height: 66px;
  }

  .heliBtnFrame {
    min-height: 30px;
  }

  .heliBtnIcon {
    height: 30px;
    max-height: 30px;
  }

  .touchBtn.air,
  .touchBtn.fire {
    min-width: 98px;
    min-height: 58px;
    border-radius: 17px;
  }
}



#gameCanvas {
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#hudTop {
  width: 92vw !important;
  justify-content: space-between !important;
}

#hudTop .panel.left,
#hudTop .weaponPanel,
#hudTop .panel.right {
  display: none !important;
}

#hudTop .panel.left.levelPanel,
#hudTop .panel.center {
  display: block !important;
  min-width: 88px !important;
  padding: 8px 11px !important;
  border-radius: 12px !important;
}

#hudTop .panel.left.levelPanel .label,
#hudTop .panel.center .label {
  font-size: 9px !important;
  letter-spacing: 1.2px !important;
  margin-bottom: 3px !important;
}

#hudTop .panel.left.levelPanel div:last-child,
#hudTop .panel.center div:last-child {
  font-size: 19px !important;
  font-weight: 700 !important;
}

#weaponButtons {
  top: auto !important;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px)) !important;
  left: calc(50% - 305px) !important;
  right: auto !important;
  transform: none !important;
  width: 540px !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 7px !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  z-index: 3 !important;
}

.weaponBtn {
  width: 110px !important;
  min-width: 110px !important;
  min-height: 70px !important;
}

.weaponBtn.airBtn {
  min-height: 70px !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.leftControls {
  left: calc(50% - 462px) !important;
  right: auto !important;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px)) !important;
  width: 143px !important;
  height: 70px !important;
  display: flex !important;
  gap: 9px !important;
  align-items: flex-end !important;
}

.leftControls .moveUpBtn,
.leftControls .moveDownBtn {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

.touchBtn.moveBtn {
  width: 41px !important;
  height: 70px !important;
  min-width: 41px !important;
  min-height: 70px !important;
  border-radius: 15px !important;
  background-size: 56px auto !important;
}

.rightControls {
  left: calc(50% + 245px) !important;
  right: auto !important;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px)) !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  height: auto !important;
}

.touchBtn.air,
.touchBtn.fire {
  min-width: 78px !important;
  min-height: 70px !important;
  border-radius: 15px !important;
}

@media (max-width: 1200px) {
  #hudTop .panel.left.levelPanel,
  #hudTop .panel.center {
    min-width: 68px !important;
    padding: 7px 10px !important;
  }

  #hudTop .panel.left.levelPanel div:last-child,
  #hudTop .panel.center div:last-child {
    font-size: 17px !important;
  }

  #weaponButtons {
    left: calc(50% - 265px) !important;
    width: 468px !important;
    gap: 5px !important;
  }

  .weaponBtn {
    width: 94px !important;
    min-width: 94px !important;
    min-height: 61px !important;
  }

  .weaponBtn.airBtn {
    min-height: 61px !important;
  }

  .leftControls {
    left: calc(50% - 397px) !important;
    width: 123px !important;
    height: 61px !important;
    gap: 9px !important;
  }

  .touchBtn.moveBtn {
    width: 41px !important;
    height: 61px !important;
    min-width: 41px !important;
    min-height: 61px !important;
    background-size: 45px auto !important;
  }

  .rightControls {
    left: calc(50% + 215px) !important;
    gap: 5px !important;
  }

  .touchBtn.air,
  .touchBtn.fire {
    min-width: 83px !important;
    min-height: 61px !important;
  }
}


@media (max-width: 1200px) {
  .shootLabelImg {
    height: 31px;
    max-width: 70px;
  }

  .crosshairIcon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

@media (max-width: 520px) {
  .shootLabelImg {
    height: 28px;
    max-width: 62px;
  }

  .crosshairIcon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}



#mobileControls {
  inset: 0;
  pointer-events: none !important;
  z-index: 3 !important;
}

#bottomActionBar {
  position: absolute;
  left: 50%;
  bottom: max(12px, calc(env(safe-area-inset-bottom) + 5px));
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 8px 9px;
  border-radius: 19px;
  background: rgba(63, 88, 92, 0.92);
  border: 2px solid rgba(130, 170, 176, 0.62);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

#bottomActionBar::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px dashed rgba(216, 233, 235, 0.18);
  pointer-events: none;
}

.actionGroup,
#weaponButtons {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  pointer-events: auto;
  z-index: 1;
}

.actionGroup {
  display: flex;
  align-items: flex-end;
}

.actionGroup + #weaponButtons,
#weaponButtons + .actionGroup {
  margin-left: 24px;
}

#weaponButtons {
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 7px !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
}

.leftControls {
  width: auto !important;
  height: auto !important;
  display: flex !important;
  gap: 8px !important;
  align-items: flex-end !important;
}

.rightControls {
  width: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
}

.leftControls .moveUpBtn,
.leftControls .moveDownBtn {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

.touchBtn.moveBtn {
  width: 41px !important;
  height: 70px !important;
  min-width: 41px !important;
  min-height: 70px !important;
  border-radius: 15px !important;
  background-size: 56px auto !important;
}

.weaponBtn {
  width: 110px !important;
  min-width: 110px !important;
  min-height: 70px !important;
}

.weaponBtn.airBtn {
  min-height: 70px !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.touchBtn.fire {
  min-width: 78px !important;
  min-height: 70px !important;
  border-radius: 15px !important;
}

@media (max-width: 1200px) {
  #bottomActionBar {
    padding: 8px 9px;
    border-radius: 17px;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 19px;
  }

  #weaponButtons {
    gap: 5px !important;
  }

  .leftControls,
  .rightControls {
    gap: 7px !important;
  }

  .weaponBtn {
    width: 94px !important;
    min-width: 94px !important;
    min-height: 61px !important;
  }

  .weaponBtn.airBtn {
    min-height: 61px !important;
  }

  .touchBtn.moveBtn {
    width: 41px !important;
    height: 61px !important;
    min-width: 41px !important;
    min-height: 61px !important;
    background-size: 45px auto !important;
  }

  .touchBtn.fire {
    min-width: 83px !important;
    min-height: 61px !important;
  }
}

@media (max-width: 900px) {
  #bottomActionBar {
    padding: 8px 9px;
    border-radius: 18px;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 15px;
  }

  .weaponBtn {
    width: 78px !important;
    min-width: 78px !important;
    min-height: 54px !important;
  }

  .weaponBtn.airBtn {
    min-height: 54px !important;
  }

  .touchBtn.moveBtn {
    width: 41px !important;
    height: 54px !important;
    min-width: 41px !important;
    min-height: 54px !important;
    background-size: 39px auto !important;
    border-radius: 12px !important;
  }

  .touchBtn.fire {
    min-width: 65px !important;
    min-height: 54px !important;
    border-radius: 12px !important;
  }

  .shootLabelImg {
    height: 23px !important;
    max-width: 51px !important;
  }

  .crosshairIcon {
    width: 26px !important;
    height: 19px !important;
    flex-basis: 26px !important;
  }
}

@media (max-width: 700px) {
  #bottomActionBar {
    padding: 7px 7px;
    border-radius: 14px;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 12px;
  }

  #weaponButtons {
    gap: 3px !important;
  }

  .leftControls,
  .rightControls {
    gap: 5px !important;
  }

  .weaponBtn {
    width: 65px !important;
    min-width: 65px !important;
    min-height: 48px !important;
    padding: 2px !important;
    border-radius: 12px !important;
  }

  .weaponBtnFrame {
    min-height: 20px !important;
    border-radius: 8px !important;
  }

  .weaponBtnName {
    min-height: 15px !important;
    font-size: 7px !important;
  }

  .heliBtnFrame {
    min-height: 20px !important;
  }

  .heliBtnIcon {
    height: 19px !important;
    max-height: 19px !important;
  }

  .weaponBtnCooldown {
    height: 6px !important;
  }

  .touchBtn.moveBtn {
    width: 36px !important;
    height: 48px !important;
    min-width: 36px !important;
    min-height: 48px !important;
    background-size: 34px auto !important;
    border-radius: 12px !important;
  }

  .touchBtn.fire {
    min-width: 68px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
  }

  .shootLabelImg {
    height: 19px !important;
    max-width: 41px !important;
  }

  .crosshairIcon {
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px !important;
  }
}



#bottomActionBar {
  bottom: max(12px, calc(env(safe-area-inset-bottom) + 5px)) !important;
  padding: 10px 12px !important;
  border-radius: 19px !important;
}

#bottomActionBar::before {
  inset: 8px !important;
  border-radius: 14px !important;
}

.actionGroup + #weaponButtons,
#weaponButtons + .actionGroup {
  margin-left: 24px !important;
}

#weaponButtons {
  gap: 7px !important;
}

.leftControls,
.rightControls {
  gap: 8px !important;
}

.touchBtn.moveBtn {
  width: 57px !important;
  height: 70px !important;
  min-width: 57px !important;
  min-height: 70px !important;
  border-radius: 15px !important;
  background-size: 56px auto !important;
}

.weaponBtn {
  width: 110px !important;
  min-width: 110px !important;
  min-height: 70px !important;
}

.weaponBtn.airBtn {
  min-height: 70px !important;
}

.touchBtn.fire {
  min-width: 92px !important;
  min-height: 70px !important;
  border-radius: 15px !important;
}

@media (max-width: 1200px) {
  #bottomActionBar {
    padding: 9px 10px !important;
    border-radius: 17px !important;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 19px !important;
  }

  #weaponButtons {
    gap: 5px !important;
  }

  .leftControls,
  .rightControls {
    gap: 7px !important;
  }

  .weaponBtn {
    width: 94px !important;
    min-width: 94px !important;
    min-height: 61px !important;
  }

  .weaponBtn.airBtn {
    min-height: 61px !important;
  }

  .touchBtn.moveBtn {
    width: 48px !important;
    height: 61px !important;
    min-width: 48px !important;
    min-height: 61px !important;
    background-size: 45px auto !important;
  }

  .touchBtn.fire {
    min-width: 83px !important;
    min-height: 61px !important;
  }
}

@media (max-width: 900px) {
  #bottomActionBar {
    padding: 8px 9px !important;
    border-radius: 15px !important;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 15px !important;
  }

  .weaponBtn {
    width: 78px !important;
    min-width: 78px !important;
    min-height: 54px !important;
  }

  .weaponBtn.airBtn {
    min-height: 54px !important;
  }

  .touchBtn.moveBtn {
    width: 41px !important;
    height: 54px !important;
    min-width: 41px !important;
    min-height: 54px !important;
    background-size: 39px auto !important;
    border-radius: 12px !important;
  }

  .touchBtn.fire {
    min-width: 76px !important;
    min-height: 54px !important;
    border-radius: 12px !important;
  }

  .shootLabelImg {
    height: 23px !important;
    max-width: 51px !important;
  }

  .crosshairIcon {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px !important;
  }
}

@media (max-width: 700px) {
  #bottomActionBar {
    padding: 7px 7px !important;
    border-radius: 14px !important;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 12px !important;
  }

  #weaponButtons {
    gap: 3px !important;
  }

  .leftControls,
  .rightControls {
    gap: 5px !important;
  }

  .weaponBtn {
    width: 65px !important;
    min-width: 65px !important;
    min-height: 48px !important;
    padding: 2px !important;
    border-radius: 12px !important;
  }

  .weaponBtnFrame {
    min-height: 20px !important;
    border-radius: 8px !important;
  }

  .weaponBtnName {
    min-height: 15px !important;
    font-size: 7px !important;
  }

  .heliBtnFrame {
    min-height: 20px !important;
  }

  .heliBtnIcon {
    height: 22px !important;
    max-height: 22px !important;
  }

  .weaponBtnCooldown {
    height: 6px !important;
  }

  .touchBtn.moveBtn {
    width: 36px !important;
    height: 48px !important;
    min-width: 36px !important;
    min-height: 48px !important;
    background-size: 34px auto !important;
    border-radius: 12px !important;
  }

  .touchBtn.fire {
    min-width: 68px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
  }

  .shootLabelImg {
    height: 19px !important;
    max-width: 41px !important;
  }

  .crosshairIcon {
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px !important;
  }
}



#bottomActionBar {
  bottom: max(9px, calc(env(safe-area-inset-bottom) + 2px)) !important;
  padding: 9px 11px !important;
  border-radius: 17px !important;
}

#bottomActionBar::before {
  inset: 7px !important;
  border-radius: 12px !important;
}

.actionGroup + #weaponButtons,
#weaponButtons + .actionGroup {
  margin-left: 22px !important;
}

#weaponButtons {
  gap: 6px !important;
}

.leftControls,
.rightControls {
  gap: 7px !important;
}

.touchBtn.moveBtn {
  width: 51px !important;
  height: 63px !important;
  min-width: 51px !important;
  min-height: 63px !important;
  border-radius: 14px !important;
  background-size: 50px auto !important;
}

.weaponBtn {
  width: 99px !important;
  min-width: 99px !important;
  min-height: 63px !important;
}

.weaponBtn.airBtn {
  min-height: 63px !important;
}

.touchBtn.fire {
  min-width: 83px !important;
  min-height: 63px !important;
  border-radius: 14px !important;
}

@media (max-width: 1200px) {
  #bottomActionBar {
    padding: 8px 9px !important;
    border-radius: 15px !important;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 17px !important;
  }

  #weaponButtons {
    gap: 5px !important;
  }

  .leftControls,
  .rightControls {
    gap: 6px !important;
  }

  .weaponBtn {
    width: 85px !important;
    min-width: 85px !important;
    min-height: 55px !important;
  }

  .weaponBtn.airBtn {
    min-height: 55px !important;
  }

  .touchBtn.moveBtn {
    width: 43px !important;
    height: 55px !important;
    min-width: 43px !important;
    min-height: 55px !important;
    background-size: 41px auto !important;
  }

  .touchBtn.fire {
    min-width: 75px !important;
    min-height: 55px !important;
  }
}

@media (max-width: 900px) {
  #bottomActionBar {
    padding: 7px 8px !important;
    border-radius: 14px !important;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 14px !important;
  }

  .weaponBtn {
    width: 70px !important;
    min-width: 70px !important;
    min-height: 49px !important;
  }

  .weaponBtn.airBtn {
    min-height: 49px !important;
  }

  .touchBtn.moveBtn {
    width: 37px !important;
    height: 49px !important;
    min-width: 37px !important;
    min-height: 49px !important;
    background-size: 35px auto !important;
    border-radius: 11px !important;
  }

  .touchBtn.fire {
    min-width: 68px !important;
    min-height: 49px !important;
    border-radius: 11px !important;
  }

  .shootLabelImg {
    height: 21px !important;
    max-width: 46px !important;
  }

  .crosshairIcon {
    width: 23px !important;
    height: 23px !important;
    flex-basis: 23px !important;
  }
}

@media (max-width: 700px) {
  #bottomActionBar {
    padding: 6px 6px !important;
    border-radius: 12px !important;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 10px !important;
  }

  #weaponButtons {
    gap: 3px !important;
  }

  .leftControls,
  .rightControls {
    gap: 4px !important;
  }

  .weaponBtn {
    width: 59px !important;
    min-width: 59px !important;
    min-height: 43px !important;
    padding: 2px !important;
    border-radius: 11px !important;
  }

  .weaponBtnFrame {
    min-height: 18px !important;
    border-radius: 7px !important;
  }

  .weaponBtnName {
    min-height: 14px !important;
    font-size: 7px !important;
  }

  .heliBtnFrame {
    min-height: 18px !important;
  }

  .heliBtnIcon {
    height: 20px !important;
    max-height: 20px !important;
  }

  .weaponBtnCooldown {
    height: 5px !important;
  }

  .touchBtn.moveBtn {
    width: 32px !important;
    height: 43px !important;
    min-width: 32px !important;
    min-height: 43px !important;
    background-size: 30px auto !important;
    border-radius: 11px !important;
  }

  .touchBtn.fire {
    min-width: 61px !important;
    min-height: 43px !important;
    border-radius: 11px !important;
  }

  .shootLabelImg {
    height: 17px !important;
    max-width: 37px !important;
  }

  .crosshairIcon {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }
}



#bottomActionBar {
  bottom: max(6px, env(safe-area-inset-bottom)) !important;
  padding: 8px 11px !important;
  border-radius: 16px !important;
}

#bottomActionBar::before {
  inset: 6px !important;
  border-radius: 11px !important;
}

.actionGroup + #weaponButtons,
#weaponButtons + .actionGroup {
  margin-left: 44px !important;
}

#weaponButtons {
  gap: 6px !important;
}

.leftControls,
.rightControls {
  gap: 7px !important;
}

.touchBtn.moveBtn,
.weaponBtn,
.weaponBtn.airBtn,
.touchBtn.fire {
  height: 63px !important;
  min-height: 63px !important;
}

.touchBtn.moveBtn {
  width: 51px !important;
  min-width: 51px !important;
  border-radius: 14px !important;
  background-size: 50px auto !important;
}

.weaponBtn {
  width: 99px !important;
  min-width: 99px !important;
}

.touchBtn.fire {
  min-width: 83px !important;
  border-radius: 14px !important;
}

@media (max-width: 1200px) {
  #bottomActionBar {
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    padding: 7px 10px !important;
    border-radius: 15px !important;
  }

  #bottomActionBar::before {
    inset: 6px !important;
    border-radius: 10px !important;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 34px !important;
  }

  #weaponButtons {
    gap: 5px !important;
  }

  .leftControls,
  .rightControls {
    gap: 6px !important;
  }

  .touchBtn.moveBtn,
  .weaponBtn,
  .weaponBtn.airBtn,
  .touchBtn.fire {
    height: 55px !important;
    min-height: 55px !important;
  }

  .weaponBtn {
    width: 85px !important;
    min-width: 85px !important;
  }

  .touchBtn.moveBtn {
    width: 43px !important;
    min-width: 43px !important;
    background-size: 41px auto !important;
  }

  .touchBtn.fire {
    min-width: 75px !important;
  }
}

@media (max-width: 900px) {
  #bottomActionBar {
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    padding: 6px 8px !important;
    border-radius: 13px !important;
  }

  #bottomActionBar::before {
    inset: 5px !important;
    border-radius: 9px !important;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 28px !important;
  }

  .touchBtn.moveBtn,
  .weaponBtn,
  .weaponBtn.airBtn,
  .touchBtn.fire {
    height: 49px !important;
    min-height: 49px !important;
  }

  .weaponBtn {
    width: 70px !important;
    min-width: 70px !important;
  }

  .touchBtn.moveBtn {
    width: 37px !important;
    min-width: 37px !important;
    background-size: 35px auto !important;
    border-radius: 11px !important;
  }

  .touchBtn.fire {
    min-width: 68px !important;
    border-radius: 11px !important;
  }

  .shootLabelImg {
    height: 21px !important;
    max-width: 46px !important;
  }

  .crosshairIcon {
    width: 23px !important;
    height: 23px !important;
    flex-basis: 23px !important;
  }
}

@media (max-width: 700px) {
  #bottomActionBar {
    bottom: max(5px, env(safe-area-inset-bottom)) !important;
    padding: 5px 6px !important;
    border-radius: 12px !important;
  }

  #bottomActionBar::before {
    inset: 4px !important;
    border-radius: 8px !important;
  }

  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup {
    margin-left: 20px !important;
  }

  #weaponButtons {
    gap: 3px !important;
  }

  .leftControls,
  .rightControls {
    gap: 4px !important;
  }

  .touchBtn.moveBtn,
  .weaponBtn,
  .weaponBtn.airBtn,
  .touchBtn.fire {
    height: 43px !important;
    min-height: 43px !important;
  }

  .weaponBtn {
    width: 59px !important;
    min-width: 59px !important;
    padding: 2px !important;
    border-radius: 11px !important;
  }

  .weaponBtnFrame {
    min-height: 18px !important;
    border-radius: 7px !important;
  }

  .weaponBtnName {
    min-height: 14px !important;
    font-size: 7px !important;
  }

  .heliBtnFrame {
    min-height: 18px !important;
  }

  .heliBtnIcon {
    height: 20px !important;
    max-height: 20px !important;
  }

  .weaponBtnCooldown {
    height: 5px !important;
  }

  .touchBtn.moveBtn {
    width: 32px !important;
    min-width: 32px !important;
    background-size: 30px auto !important;
    border-radius: 11px !important;
  }

  .touchBtn.fire {
    min-width: 61px !important;
    border-radius: 11px !important;
  }

  .shootLabelImg {
    height: 17px !important;
    max-width: 37px !important;
  }

  .crosshairIcon {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }
}



.weaponBtn {
  padding: 3px !important;
  gap: 2px !important;
}

.weaponBtnFrame {
  min-height: 28px !important;
  padding: 1px 3px !important;
}

.weaponBtnIcon {
  height: 22px !important;
}

.weaponBtnName {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 14px !important;
  padding: 0 2px !important;
  font-size: 8px !important;
  letter-spacing: 0.25px !important;
  line-height: 0.95 !important;
  white-space: nowrap !important;
  color: #f7f3e8 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65) !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 2 !important;
}

.heliBtnFrame {
  min-height: 28px !important;
  padding: 1px 4px !important;
}

.heliBtnIcon {
  height: 22px !important;
  max-height: 22px !important;
}

.weaponBtnCooldown {
  display: block !important;
  width: calc(100% - 8px) !important;
  height: 6px !important;
  margin: 1px auto 0 !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.32) !important;
}

#heliCooldownFill {
  min-width: 2px;
  box-shadow: 0 0 10px rgba(88, 195, 255, 0.45) !important;
}

.touchBtn.fire {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 0 8px !important;
}

.shootLabelImg {
  height: 22px !important;
  max-width: 48px !important;
  opacity: 1 !important;
}

.crosshairIcon {
  width: 22px !important;
  height: 22px !important;
  flex-basis: 22px !important;
}

.touchBtn.moveBtn {
  width: 102px !important;
  min-width: 102px !important;
  background-size: 64px auto !important;
}

@media (max-width: 1200px) {
  .weaponBtn {
    padding: 3px !important;
    gap: 2px !important;
  }

  .weaponBtnFrame {
    min-height: 24px !important;
  }

  .weaponBtnIcon,
  .heliBtnIcon {
    height: 19px !important;
    max-height: 19px !important;
  }

  .weaponBtnName {
    min-height: 12px !important;
    font-size: 7px !important;
  }

  .heliBtnFrame {
    min-height: 24px !important;
  }

  .weaponBtnCooldown {
    height: 6px !important;
    width: calc(100% - 8px) !important;
  }

  .touchBtn.fire {
    gap: 4px !important;
    padding: 0 7px !important;
  }

  .shootLabelImg {
    height: 20px !important;
    max-width: 43px !important;
  }

  .crosshairIcon {
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px !important;
  }

  .touchBtn.moveBtn {
    width: 86px !important;
    min-width: 86px !important;
    background-size: 52px auto !important;
  }
}

@media (max-width: 900px) {
  .weaponBtn {
    padding: 2px !important;
    gap: 2px !important;
  }

  .weaponBtnFrame,
  .heliBtnFrame {
    min-height: 21px !important;
    padding: 1px 3px !important;
  }

  .weaponBtnIcon,
  .heliBtnIcon {
    height: 17px !important;
    max-height: 17px !important;
  }

  .weaponBtnName {
    min-height: 11px !important;
    font-size: 6.5px !important;
    letter-spacing: 0.15px !important;
  }

  .weaponBtnCooldown {
    height: 5px !important;
    width: calc(100% - 6px) !important;
  }

  .touchBtn.fire {
    gap: 3px !important;
    padding: 0 6px !important;
  }

  .shootLabelImg {
    height: 18px !important;
    max-width: 40px !important;
  }

  .crosshairIcon {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }

  .touchBtn.moveBtn {
    width: 74px !important;
    min-width: 74px !important;
    background-size: 44px auto !important;
  }
}

@media (max-width: 700px) {
  .weaponBtn {
    padding: 2px !important;
    gap: 1px !important;
  }

  .weaponBtnFrame,
  .heliBtnFrame {
    min-height: 17px !important;
    padding: 1px 2px !important;
  }

  .weaponBtnIcon,
  .heliBtnIcon {
    height: 14px !important;
    max-height: 14px !important;
  }

  .weaponBtnName {
    min-height: 10px !important;
    font-size: 5.8px !important;
    letter-spacing: 0 !important;
  }

  .weaponBtnCooldown {
    height: 4px !important;
    width: calc(100% - 4px) !important;
  }

  .touchBtn.fire {
    gap: 2px !important;
    padding: 0 5px !important;
  }

  .shootLabelImg {
    height: 15px !important;
    max-width: 32px !important;
  }

  .crosshairIcon {
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px !important;
  }

  .touchBtn.moveBtn {
    width: 64px !important;
    min-width: 64px !important;
    background-size: 36px auto !important;
  }
}



.weaponBtnCooldown {
  width: 95% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1200px) {
  .weaponBtnCooldown {
    width: 95% !important;
  }
}

@media (max-width: 900px) {
  .weaponBtnCooldown {
    width: 95% !important;
  }
}

@media (max-width: 700px) {
  .weaponBtnCooldown {
    width: 95% !important;
  }
}



.weaponBtnCooldown {
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1200px) {
  .weaponBtnCooldown {
    width: 90% !important;
  }
}

@media (max-width: 900px) {
  .weaponBtnCooldown {
    width: 90% !important;
  }
}

@media (max-width: 700px) {
  .weaponBtnCooldown {
    width: 90% !important;
  }
}


#bottomActionBar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#bottomActionBar::before {
  content: none !important;
  display: none !important;
}


.pauseBtn {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 6;
  min-width: 96px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 2px solid rgba(255, 216, 126, 0.74);
  background: rgba(14, 18, 31, 0.78);
  color: #fff7df;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

.pauseBtn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.pauseBtn:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}

.pauseBtn.paused {
  border-color: rgba(119, 219, 255, 0.82);
  color: #e8fbff;
  background: rgba(21, 50, 65, 0.82);
}

.pauseBtn:disabled {
  opacity: 0.42;
  cursor: default;
}

#app.gamePaused #gameCanvas {
  filter: saturate(0.9) brightness(0.86);
}

@media (max-width: 700px) {
  .pauseBtn {
    min-width: 78px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 13px;
    font-size: 12px;
  }
}



.pauseBtn {
  position: absolute;
  top: auto !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 6px)) !important;
  z-index: 6;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 0 !important;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.92), rgba(10, 15, 24, 0.92));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.pauseBtn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pauseBtn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.pauseBtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 198, 255, 0.22), 0 14px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.pauseBtn:disabled {
  opacity: 0.38;
  cursor: default;
}

.pauseBtn .pauseIcon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pauseBtn .pauseBars {
  gap: 6px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 140ms ease, transform 140ms ease;
}

.pauseBtn .pauseBars span {
  width: 7px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd982, #ffb347);
  box-shadow: 0 0 12px rgba(255, 188, 82, 0.22);
}

.pauseBtn .playGlyph {
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 140ms ease, transform 140ms ease;
}

.pauseBtn .playGlyph::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #7fe6ff;
  filter: drop-shadow(0 0 10px rgba(86, 214, 255, 0.24));
}

.pauseBtn.paused {
  border-color: rgba(108, 218, 255, 0.34);
  background: linear-gradient(180deg, rgba(14, 37, 52, 0.95), rgba(8, 24, 35, 0.95));
}

.pauseBtn.paused .pauseBars {
  opacity: 0;
  transform: scale(0.82);
}

.pauseBtn.paused .playGlyph {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 900px) {
  .pauseBtn {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 16px;
  }

  .pauseBtn .pauseBars span {
    width: 6px;
    height: 20px;
  }

  .pauseBtn .playGlyph::before {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 18px;
  }
}

@media (max-width: 700px) {
  .pauseBtn {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 4px)) !important;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 14px;
  }

  .pauseBtn .pauseBars {
    gap: 5px;
  }

  .pauseBtn .pauseBars span {
    width: 5px;
    height: 18px;
  }

  .pauseBtn .playGlyph::before {
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 16px;
  }
}



.hudScoreGroup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  pointer-events: none;
}

.coinPanel {
  min-width: 118px !important;
  padding: 7px 12px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.coinHudIcon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
}

.coinValue {
  font-size: 24px;
  font-weight: 800;
  color: #ffe2a3;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.36);
}

.scorePanel {
  min-width: 96px !important;
}

#hudTop {
  justify-content: flex-start !important;
  align-items: flex-start;
  gap: 10px;
}

#hudTop .hudScoreGroup {
  margin-left: auto;
}

@media (max-width: 1200px) {
  .coinPanel {
    min-width: 108px !important;
    padding: 6px 10px !important;
    gap: 8px;
  }

  .coinHudIcon {
    width: 30px;
    height: 30px;
  }

  .coinValue {
    font-size: 21px;
  }
}

@media (max-width: 700px) {
  #hudTop {
    gap: 8px;
  }

  .hudScoreGroup {
    gap: 8px;
  }

  .coinPanel {
    min-width: 94px !important;
    padding: 5px 8px !important;
    gap: 7px;
  }

  .coinHudIcon {
    width: 24px;
    height: 24px;
  }

  .coinValue {
    font-size: 18px;
  }
}



#hudTop { display: none !important; }
#pauseOverlay.hidden, #medalsOverlay.hidden { display: none; }
#pauseOverlay.show, #medalsOverlay.show { display: flex; }
#pauseOverlay, #medalsOverlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  align-items: center;
  justify-content: center;
  background: rgba(5, 9, 16, 0.52);
}
.pauseDialog, .medalsDialog {
  width: min(92vw, 430px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 25, 37, 0.96), rgba(8, 14, 23, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pauseDialog { padding: 24px 24px 22px; }
.pauseLevelDisplay {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #fff5d8;
  text-align: center;
  margin-bottom: 18px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.38);
}
.pauseStatRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}
.pauseStatLabel { font-size: 16px; font-weight: 800; letter-spacing: 1px; color: #d9e2fb; }
.pauseStatValue { font-size: 24px; font-weight: 900; color: #ffffff; }
.pauseCoinLeft { display: inline-flex; align-items: center; gap: 10px; }
.pauseCoinIcon { width: 28px; height: 28px; object-fit: contain; }
.pauseActionRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 6px;
}
.pauseMenuIconBtn, .soundBtn {
  position: relative;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(180deg, rgba(20,29,42,0.96), rgba(10,16,25,0.96));
  color: #fff4d8;
  box-shadow: 0 14px 28px rgba(0,0,0,0.34), inset 0 0 0 1px rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, border-color 120ms ease;
}
.pauseMenuIconBtn:hover, .soundBtn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.pauseMenuIconBtn:active, .soundBtn:active:not(:disabled) { transform: scale(0.97); }
.pauseMenuIconBtn svg, .soundBtn svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.soundBtn {
  position: absolute;
  z-index: 6;
  right: calc(max(16px, env(safe-area-inset-right)) + 70px);
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 6px));
}
.soundBtn .soundIcon, .soundMenuBtn .soundIcon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 140ms ease, transform 140ms ease;
}
.soundBtn .soundOff, .soundMenuBtn .soundOff { opacity: 0; transform: scale(0.84); }
.soundBtn.muted .soundOn, .soundMenuBtn.muted .soundOn { opacity: 0; transform: scale(0.84); }
.soundBtn.muted .soundOff, .soundMenuBtn.muted .soundOff { opacity: 1; transform: scale(1); }
.soundMenuBtn.muted, .soundBtn.muted { color: #9dd6ff; border-color: rgba(101,198,255,0.34); }
.medalsDialog { width: min(94vw, 560px); padding: 20px 18px 18px; position: relative; }
.medalsCloseBtn {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,0.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.medalsTitle { text-align: center; font-size: 28px; font-weight: 900; letter-spacing: 1.2px; color: #fff3d1; margin-bottom: 18px; }
.medalsGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.medalCard {
  padding: 14px 12px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  text-align: center; transition: opacity 140ms ease, filter 140ms ease, border-color 140ms ease;
}
.medalGlyph {
  width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; background: linear-gradient(180deg, rgba(255,214,120,0.24), rgba(255,160,61,0.16));
  border: 1px solid rgba(255,214,120,0.36); color: #ffe6aa;
}
.medalName { font-size: 14px; font-weight: 800; letter-spacing: 0.8px; color: #fff7de; }
.medalHint { font-size: 12px; color: #b8c2dd; margin-top: 4px; }
.medalCard.locked { opacity: 0.42; filter: grayscale(1) saturate(0.5); }
.medalCard.achieved { opacity: 1; filter: none; border-color: rgba(255,214,120,0.32); box-shadow: inset 0 0 0 1px rgba(255,231,173,0.05); }
#app.gamePaused #gameCanvas { filter: saturate(0.85) brightness(0.72); }
#app.gamePaused #mobileControls .touchBtn,
#app.gamePaused #mobileControls .weaponBtn {
  pointer-events: none !important;
  opacity: 0.4 !important;
  filter: grayscale(0.35) saturate(0.45) brightness(0.9) !important;
}
@media (max-width: 900px) {
  .soundBtn { right: calc(max(12px, env(safe-area-inset-right)) + 62px); bottom: max(12px, calc(env(safe-area-inset-bottom) + 5px)); }
  .pauseMenuIconBtn, .soundBtn, .pauseBtn { width: 54px; height: 54px; min-width: 54px; min-height: 54px; border-radius: 16px; }
}
@media (max-width: 700px) {
  .pauseDialog { width: min(92vw, 360px); padding: 18px 16px 18px; }
  .pauseLevelDisplay { font-size: 26px; margin-bottom: 14px; }
  .pauseStatRow { padding: 10px 12px; }
  .pauseStatLabel { font-size: 14px; }
  .pauseStatValue { font-size: 21px; }
  .soundBtn { right: calc(max(10px, env(safe-area-inset-right)) + 56px); bottom: max(10px, calc(env(safe-area-inset-bottom) + 4px)); }
  .pauseMenuIconBtn, .soundBtn, .pauseBtn { width: 48px; height: 48px; min-width: 48px; min-height: 48px; border-radius: 14px; }
  .pauseMenuIconBtn svg, .soundBtn svg { width: 24px; height: 24px; }
  .medalsGrid { grid-template-columns: 1fr; }
}



.soundBtn {
  display: none !important;
}

.pauseDialog {
  position: relative;
  width: min(92vw, 560px) !important;
  padding: 22px 22px 18px !important;
  overflow: hidden;
  border-radius: 30px !important;
  background: linear-gradient(180deg, rgba(18, 28, 40, 0.96) 0%, rgba(10, 16, 27, 0.985) 100%) !important;
  border: 1px solid rgba(166, 189, 126, 0.18) !important;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
}

.pauseDialogChrome {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(138, 170, 95, 0.12), transparent 34%),
              radial-gradient(circle at bottom right, rgba(255, 194, 84, 0.08), transparent 30%);
}

.pauseHeaderRow {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  z-index: 1;
}

.pauseLevelDisplay {
  margin: 0 !important;
  padding: 4px 0 0;
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: clamp(34px, 5vw, 52px) !important;
  letter-spacing: 1.4px;
  color: #dfe7d4 !important;
  text-shadow: 0 3px 0 rgba(36, 44, 33, 0.95), 0 6px 16px rgba(0, 0, 0, 0.32);
  line-height: 0.92;
}

.pauseHeaderImageBtn,
.pauseImageBtn {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, filter 120ms ease;
}

.pauseHeaderImageBtn:hover,
.pauseImageBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.pauseHeaderImageBtn:active,
.pauseImageBtn:active {
  transform: scale(0.97);
}

.pauseHeaderImageBtn {
  width: 88px;
  min-width: 88px;
  height: 88px;
}

.pauseBtnArt {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.pauseHeaderImageBtn .artOff,
.pauseHeaderImageBtn.muted .artOn {
  display: none;
}

.pauseHeaderImageBtn.muted .artOff {
  display: block;
}

.pauseHeaderImageBtn.muted .artOn {
  display: none;
}

.pauseStatsStack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  z-index: 1;
}

.pauseStatCard {
  border-radius: 22px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.pauseStatHeading {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 1.1px;
  color: #d6ddcb;
  text-shadow: 0 2px 0 rgba(36, 44, 33, 0.9);
  margin-bottom: 8px;
}

.pauseStatValue,
.pauseCreditsValue {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: 40px !important;
  line-height: 1;
  color: #fff8e0;
  text-shadow: 0 3px 0 rgba(55, 39, 20, 0.88), 0 8px 18px rgba(0,0,0,0.28);
}

.pauseCreditsRow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pauseCoinIcon {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.28));
}

.premiumActionRow {
  position: relative;
  z-index: 1;
  margin-top: 16px !important;
  display: flex;
  justify-content: center;
  gap: 22px !important;
  align-items: flex-start;
}

.pauseActionItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pauseImageBtn {
  width: 86px;
  min-width: 86px;
}

.pauseImageBtn.primary {
  transform: translateY(-4px);
}

.pauseActionLabel {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  color: #d8e0cf;
  text-shadow: 0 2px 0 rgba(36, 44, 33, 0.9);
}

.medalsDialog {
  width: min(94vw, 660px) !important;
}

.medalCard {
  position: relative;
  overflow: hidden;
  padding: 12px 12px 14px !important;
  border-radius: 20px !important;
}

.medalArt {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 8px;
}

.medalCard .achievedArt {
  display: none;
}

.medalCard.achieved .lockedArt {
  display: none;
}

.medalCard.achieved .achievedArt {
  display: block;
}

.medalName {
  margin-top: 2px;
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: 15px !important;
  letter-spacing: 0.8px;
}

.medalHint {
  font-size: 12px !important;
}

@media (max-width: 700px) {
  .pauseDialog {
    width: min(94vw, 420px) !important;
    padding: 18px 16px 16px !important;
  }
  .pauseHeaderImageBtn { width: 74px; min-width: 74px; height: 74px; }
  .pauseLevelDisplay { font-size: 38px !important; }
  .pauseStatHeading { font-size: 23px; }
  .pauseStatValue, .pauseCreditsValue { font-size: 33px !important; }
  .pauseImageBtn { width: 72px; min-width: 72px; }
  .premiumActionRow { gap: 14px !important; }
  .pauseActionLabel { font-size: 13px; }
}



:root {
  --military-font-stack: "Black Ops One", "Stencil Std", "Arial Black", Impact, Haettenschweiler, sans-serif;
}

body,
button,
#overlay,
#gameOver,
.pauseDialog,
.medalsDialog,
.pauseActionLabel,
.pauseSectionTitle,
.pauseStatHeading,
.pauseLevelDisplay,
.medalsTitle,
.medalName,
.medalHint,
.weaponLabel,
.touchHint,
.label {
  font-family: var(--military-font-stack);
}

.pauseLevelBlock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.pauseSectionTitle,
.pauseStatHeading,
.pauseActionLabel,
.medalsTitle,
.medalName {
  font-family: var(--military-font-stack) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pauseSectionTitle {
  font-size: 34px;
  line-height: 0.95;
  color: #d5dcc9;
  text-shadow: 0 3px 0 rgba(36, 44, 33, 0.95), 0 6px 16px rgba(0, 0, 0, 0.32);
}

.pauseLevelDisplay {
  margin: 0 !important;
  padding: 0 !important;
}

.digitDisplay {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 4px;
  min-height: 1px;
}

.digitSprite {
  display: block;
  width: auto;
  height: 42px;
  image-rendering: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22));
}

.digitDisplayLarge .digitSprite {
  height: 58px;
}

.digitDisplayMedium .digitSprite {
  height: 48px;
}

.pauseStatValue,
.pauseCreditsValue {
  display: none !important;
}

.pauseCreditsRow {
  gap: 14px;
}

.pauseStatHeading {
  font-size: 30px;
  line-height: 0.95;
}

.pauseActionLabel {
  font-size: 16px;
}

.medalsTitle {
  font-size: 34px;
  line-height: 0.95;
}

.medalName {
  font-size: 16px !important;
}

.medalHint {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.2px;
}

@media (max-width: 700px) {
  .pauseSectionTitle {
    font-size: 26px;
  }

  .digitDisplayLarge .digitSprite {
    height: 44px;
  }

  .digitDisplayMedium .digitSprite {
    height: 38px;
  }

  .pauseStatHeading {
    font-size: 22px;
  }

  .pauseActionLabel {
    font-size: 13px;
  }
}



:root {
  --military-font-stack: "Black Ops One", "Russo One", "Stencil Std", "Arial Black", Impact, Haettenschweiler, sans-serif;
}

.pauseSectionTitle,
.pauseStatHeading,
.pauseActionLabel,
.medalsTitle,
.medalName,
.pauseLevelDisplay,
.pauseScoreDisplay,
.pauseCoinDisplay,
.militaryTextValue,
.label,
#weaponValue,
#waveValue,
#scoreValue,
.coinValue {
  font-family: var(--military-font-stack) !important;
  text-transform: uppercase;
}


.digitDisplay,
.digitDisplayLarge,
.digitDisplayMedium,
.digitSprite {
  display: none !important;
}

.militaryTextValue {
  display: block !important;
  line-height: 0.92;
  color: #f1f5ea;
  letter-spacing: 1px;
  text-shadow: 0 3px 0 rgba(36, 44, 33, 0.95), 0 7px 18px rgba(0, 0, 0, 0.28);
}

.militaryTextValueLarge {
  font-size: clamp(42px, 6vw, 62px);
}

.militaryTextValueMedium {
  font-size: clamp(34px, 4.8vw, 48px);
}

.pauseLevelBlock {
  gap: 2px;
}

.pauseSectionTitle {
  font-size: clamp(28px, 3.8vw, 38px);
  line-height: 0.95;
}

.pauseStatHeading {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 0.95;
  margin-bottom: 6px;
}

.pauseActionLabel {
  font-size: 14px;
  line-height: 1;
}

.medalsTitle {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 0.95;
}

.medalName {
  font-size: 15px !important;
  line-height: 1;
}

.medalHint {
  font-family: Arial, Helvetica, sans-serif !important;
  text-transform: none;
}

@media (max-width: 700px) {
  .militaryTextValueLarge {
    font-size: 42px;
  }

  .militaryTextValueMedium {
    font-size: 34px;
  }

  .pauseSectionTitle {
    font-size: 26px;
  }

  .pauseStatHeading {
    font-size: 22px;
  }
}



:root {
  --military-font-stack: "Black Ops One", "Black Ops One Regular", "Russo One", "Stencil Std", "Arial Black", Impact, Haettenschweiler, sans-serif;
}

.pauseDialog {
  width: min(94vw, 640px) !important;
  min-height: 430px;
  padding: 26px 28px 22px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(11, 15, 12, 0.10), rgba(6, 8, 7, 0.22)),
    url("assets/pause_background2.webp") center / 100% 100% no-repeat !important;
  border: 0 !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.50) !important;
}

.pauseDialogChrome {
  display: none !important;
}

.pauseHeaderRow {
  align-items: flex-start !important;
  margin-bottom: 18px !important;
}

.pausePanelTitle,
.pauseStatHeading,
.pauseActionLabel,
.medalsTitle,
.medalName,
.militaryTextValue {
  font-family: var(--military-font-stack) !important;
  text-transform: uppercase;
}

.pausePanelTitle {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 0.95;
  color: #dce3d3;
  letter-spacing: 1.4px;
  text-shadow: 0 3px 0 rgba(34, 40, 31, 0.95), 0 9px 18px rgba(0, 0, 0, 0.35);
  padding-top: 6px;
}

.pauseHeaderImageBtn {
  width: 78px !important;
  min-width: 78px !important;
  height: 78px !important;
  margin-top: -4px;
}

.pauseStatsStack {
  gap: 10px !important;
}

.pauseStatCard {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  padding: 10px 16px !important;
  min-height: 72px;
  border-radius: 16px !important;
  background: rgba(10, 13, 10, 0.36) !important;
  border: 1px solid rgba(220, 230, 198, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16) !important;
}

.pauseStatHeading {
  margin: 0 !important;
  font-size: clamp(25px, 3.8vw, 38px) !important;
  line-height: 0.9;
  color: #d9e0d0;
  letter-spacing: 1.2px;
  text-shadow: 0 3px 0 rgba(32, 39, 30, 0.96), 0 8px 15px rgba(0, 0, 0, 0.30);
}

.militaryTextValue {
  display: block !important;
  text-align: right;
  color: #edf3e7;
  letter-spacing: 1px;
  text-shadow: 0 3px 0 rgba(32, 39, 30, 0.96), 0 8px 15px rgba(0, 0, 0, 0.30);
}

.militaryTextValueLarge,
.militaryTextValueMedium {
  font-size: clamp(34px, 4.6vw, 52px) !important;
  line-height: 0.9;
}

.creditsCard {
  grid-template-columns: 1fr auto !important;
}

.pauseCreditsRow {
  justify-self: end;
  display: inline-flex !important;
  align-items: center;
  gap: 12px !important;
}

.pauseCoinIcon {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.30));
}

.premiumActionRow {
  margin-top: 16px !important;
  gap: 26px !important;
}

.pauseImageBtn {
  width: 78px !important;
  min-width: 78px !important;
}

.pauseActionLabel {
  color: #d8dfcf;
  font-size: 14px !important;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(32, 39, 30, 0.96), 0 6px 12px rgba(0, 0, 0, 0.28);
}

@media (max-width: 700px) {
  .pauseDialog {
    width: min(94vw, 430px) !important;
    min-height: 390px;
    padding: 20px 18px 18px !important;
  }

  .pausePanelTitle {
    font-size: 28px;
  }

  .pauseHeaderImageBtn {
    width: 62px !important;
    min-width: 62px !important;
    height: 62px !important;
  }

  .pauseStatCard {
    min-height: 62px;
    padding: 9px 12px !important;
    column-gap: 10px;
  }

  .pauseStatHeading {
    font-size: 23px !important;
  }

  .militaryTextValueLarge,
  .militaryTextValueMedium {
    font-size: 34px !important;
  }

  .pauseCoinIcon {
    width: 36px !important;
    height: 36px !important;
  }

  .pauseImageBtn {
    width: 66px !important;
    min-width: 66px !important;
  }

  .premiumActionRow {
    gap: 14px !important;
  }
}



:root {
  --military-font-stack: "Black Ops One", "Black Ops One Regular", "Russo One", "Stencil Std", "Arial Black", Impact, Haettenschweiler, sans-serif;
}

.pauseDialog {
  width: min(94vw, 640px) !important;
  min-height: 300px !important;
  padding: 18px 24px 18px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(11, 15, 12, 0.08), rgba(6, 8, 7, 0.16)),
    url("assets/pause_background2.webp") center / 100% 100% no-repeat !important;
}

.pauseHeaderRow {
  margin-bottom: 8px !important;
  min-height: 58px;
  align-items: flex-start !important;
}

.pausePanelTitle {
  font-family: var(--military-font-stack) !important;
  font-size: clamp(26px, 3.8vw, 38px) !important;
  letter-spacing: 1.2px;
  padding-top: 5px !important;
}

.pauseHeaderImageBtn,
.pauseImageBtn {
  width: 66px !important;
  min-width: 66px !important;
  height: 66px !important;
  min-height: 66px !important;
  margin: 0 !important;
}

.pauseHeaderImageBtn {
  justify-self: end;
}

.pauseStatsStack {
  gap: 7px !important;
}

.pauseStatCard {
  min-height: 54px !important;
  padding: 7px 14px !important;
  border-radius: 14px !important;
  grid-template-columns: 1fr auto !important;
}

.pauseStatHeading {
  font-family: var(--military-font-stack) !important;
  font-size: clamp(22px, 3.2vw, 31px) !important;
  letter-spacing: 1.15px;
}

.militaryTextValueLarge,
.militaryTextValueMedium {
  font-family: var(--military-font-stack) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  letter-spacing: 1px;
}

.pauseCreditsRow {
  justify-self: end;
  gap: 0 !important;
}

.pauseCoinIcon {
  display: none !important;
}

.premiumActionRow {
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  justify-items: center;
  gap: 0 !important;
  margin-top: 11px !important;
  padding: 0 4px;
}

.premiumActionRow .pauseActionItem:first-child {
  justify-self: start;
}

.premiumActionRow .pauseActionItem:nth-child(2) {
  justify-self: center;
}

.premiumActionRow .pauseActionItem:last-child {
  justify-self: end;
}

.pauseImageBtn.primary {
  transform: none !important;
}

.pauseActionLabel {
  display: none !important;
}

.pauseBtnArt {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.soundBtn {
  display: none !important;
}


.digitDisplay,
.digitDisplayLarge,
.digitDisplayMedium,
.digitSprite {
  display: none !important;
}

.militaryTextValue {
  display: block !important;
}

@media (max-width: 700px) {
  .pauseDialog {
    width: min(94vw, 430px) !important;
    min-height: 282px !important;
    padding: 16px 16px 15px !important;
  }

  .pausePanelTitle {
    font-size: 26px !important;
  }

  .pauseHeaderImageBtn,
  .pauseImageBtn {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
  }

  .pauseStatCard {
    min-height: 50px !important;
    padding: 7px 11px !important;
  }

  .pauseStatHeading {
    font-size: 21px !important;
  }

  .militaryTextValueLarge,
  .militaryTextValueMedium {
    font-size: 31px !important;
  }

  .premiumActionRow {
    margin-top: 9px !important;
  }
}



#pauseOverlay.show {
  align-items: center !important;
}

#pauseOverlay .pauseDialog {
  transform: translateY(-20px) !important;
}



#app.gamePaused > #pauseBtn {
  display: none !important;
}


#soundBtn.soundBtn {
  display: inline-flex !important;
  position: absolute !important;
  z-index: 9 !important;
  width: 66px !important;
  min-width: 66px !important;
  height: 66px !important;
  min-height: 66px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease !important;
}

#soundBtn.soundBtn:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
}

#soundBtn.soundBtn:active:not(:disabled) {
  transform: scale(0.97) !important;
}

#soundBtn .soundBtnArt {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

#soundBtn .artOff {
  display: none;
}

#soundBtn.muted .artOn {
  display: none;
}

#soundBtn.muted .artOff {
  display: block;
}


#app.preGame #soundBtn,
#app:not(.gameStarted):not(.gamePaused) #soundBtn {
  top: max(18px, calc(env(safe-area-inset-top) + 10px)) !important;
  right: max(18px, calc(env(safe-area-inset-right) + 10px)) !important;
  bottom: auto !important;
}


#app.gameStarted:not(.gamePaused) #soundBtn {
  top: auto !important;
  right: calc(max(16px, env(safe-area-inset-right)) + 74px) !important;
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 6px)) !important;
}

#app.gamePaused #soundBtn {
  display: none !important;
}


.pauseImageBtn.primary:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
}

.pauseImageBtn.primary:active {
  transform: scale(0.97) !important;
}

@media (max-width: 700px) {
  #soundBtn.soundBtn {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
  }

  #app.gameStarted:not(.gamePaused) #soundBtn {
    right: calc(max(10px, env(safe-area-inset-right)) + 62px) !important;
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 4px)) !important;
  }

  #app.preGame #soundBtn,
  #app:not(.gameStarted):not(.gamePaused) #soundBtn {
    top: max(12px, calc(env(safe-area-inset-top) + 8px)) !important;
    right: max(12px, calc(env(safe-area-inset-right) + 8px)) !important;
  }
}



#soundBtn.soundBtn {
  display: inline-flex !important;
  position: absolute !important;
  z-index: 9 !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.92), rgba(10, 15, 24, 0.92)) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease, border-color 120ms ease !important;
}

#soundBtn.soundBtn:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

#soundBtn.soundBtn:active:not(:disabled) {
  transform: translateY(0) scale(0.97) !important;
}

#soundBtn.soundBtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 198, 255, 0.22), 0 14px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.07) !important;
}

#soundBtn .soundBtnArt {
  display: none !important;
}

#soundBtn .externalSoundIcon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

#soundBtn .externalSoundIcon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: #ffd982;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 188, 82, 0.20));
}

#soundBtn .externalSoundOff {
  opacity: 0;
  transform: scale(0.82);
}

#soundBtn.muted {
  border-color: rgba(108, 218, 255, 0.34) !important;
  background: linear-gradient(180deg, rgba(14, 37, 52, 0.95), rgba(8, 24, 35, 0.95)) !important;
}

#soundBtn.muted .externalSoundOn {
  opacity: 0;
  transform: scale(0.82);
}

#soundBtn.muted .externalSoundOff {
  opacity: 1;
  transform: scale(1);
}

#soundBtn.muted .externalSoundIcon svg {
  stroke: #7fe6ff;
  filter: drop-shadow(0 0 10px rgba(86, 214, 255, 0.24));
}


#app.preGame #soundBtn,
#app:not(.gameStarted):not(.gamePaused) #soundBtn {
  top: max(18px, calc(env(safe-area-inset-top) + 10px)) !important;
  right: max(18px, calc(env(safe-area-inset-right) + 10px)) !important;
  bottom: auto !important;
}


#app.gameStarted:not(.gamePaused) #soundBtn {
  top: auto !important;
  right: calc(max(16px, env(safe-area-inset-right)) + 70px) !important;
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 6px)) !important;
}


#app.gamePaused #soundBtn {
  display: none !important;
}

@media (max-width: 700px) {
  #soundBtn.soundBtn {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
  }

  #soundBtn .externalSoundIcon svg {
    width: 24px;
    height: 24px;
  }

  #app.gameStarted:not(.gamePaused) #soundBtn {
    right: calc(max(10px, env(safe-area-inset-right)) + 56px) !important;
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 4px)) !important;
  }

  #app.preGame #soundBtn,
  #app:not(.gameStarted):not(.gamePaused) #soundBtn {
    top: max(12px, calc(env(safe-area-inset-top) + 8px)) !important;
    right: max(12px, calc(env(safe-area-inset-right) + 8px)) !important;
  }
}



.startSoundDock {
  position: absolute;
  top: clamp(12px, 4.4%, 38px);
  right: clamp(14px, 4.2%, 46px);
  z-index: 4;
  width: 66px;
  height: 66px;
  pointer-events: auto;
}

.startSoundDock #soundBtn.soundBtn {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}


#app.preGame > #pauseBtn,
#app:not(.gameStarted):not(.gamePaused) > #pauseBtn {
  display: none !important;
}


#app.preGame .startSoundDock #soundBtn,
#app:not(.gameStarted):not(.gamePaused) .startSoundDock #soundBtn {
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
}


#app.gameStarted:not(.gamePaused) > #soundBtn {
  top: auto !important;
  right: calc(max(16px, env(safe-area-inset-right)) + 70px) !important;
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 6px)) !important;
}

@media (max-width: 700px) {
  .startSoundDock {
    width: 54px;
    height: 54px;
    top: clamp(8px, 4%, 24px);
    right: clamp(10px, 4%, 28px);
  }

  #app.gameStarted:not(.gamePaused) > #soundBtn {
    right: calc(max(10px, env(safe-area-inset-right)) + 56px) !important;
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 4px)) !important;
  }
}



#missionOverlay.hidden { display: none; }
#missionOverlay.show { display: flex; }
#missionOverlay {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 19;
  background: rgba(5, 9, 17, 0.74);
  backdrop-filter: blur(4px);
  padding: 18px;
}

.missionDialog {
  position: relative;
  width: min(94vw, 1100px);
  min-height: min(84vh, 620px);
  max-height: min(90vh, 720px);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.42));
}

.missionDialogBg {
  position: absolute;
  inset: 0;
  background: url("assets/pause_background2.webp") center center / cover no-repeat;
  border-radius: 26px;
}

.missionDialogInner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 56px) clamp(20px, 3vw, 36px);
  text-align: center;
}

.missionTitle {
  margin-top: clamp(4px, 1vw, 12px);
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 1.4px;
  color: #ffe3ab;
  text-shadow: 0 3px 0 rgba(52, 23, 2, 0.88), 0 7px 18px rgba(0, 0, 0, 0.4);
}

.missionSubtitle, .missionContinueHint {
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #f7efe0;
  letter-spacing: 0.9px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.missionSubtitle {
  font-size: clamp(16px, 2vw, 26px);
  margin-top: 4px;
}

.missionStatsGrid {
  width: min(100%, 840px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin: auto 0;
}

.missionStatCard {
  min-height: 126px;
  padding: 16px 18px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.78), rgba(7, 12, 24, 0.9));
  border: 1px solid rgba(255, 219, 156, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.missionStatHeading {
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: rgba(255, 234, 196, 0.92);
  font-size: clamp(13px, 1.6vw, 20px);
  letter-spacing: 1px;
}

.missionValue {
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #ffe3ab;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(57, 24, 2, 0.84), 0 8px 18px rgba(0, 0, 0, 0.28);
  word-break: break-word;
}

.missionValueLarge {
  font-size: clamp(34px, 4.8vw, 66px);
}

.missionValueMedium {
  font-size: clamp(26px, 3.4vw, 48px);
}

.missionContinueHint {
  font-size: clamp(14px, 1.8vw, 22px);
  margin: 6px 0 12px;
}

.missionActionRow {
  display: flex;
  justify-content: center;
  width: 100%;
}

.missionPlayButton {
  position: relative;
  width: clamp(112px, 15vw, 158px);
  padding: 0;
  aspect-ratio: 257 / 262;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.missionPlayButton::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 213, 121, 0.2), rgba(255, 213, 121, 0));
  transform: scale(1.12);
}

.missionPlayButton img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.34));
}

.missionPlayButton .startBtnOn {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.missionPlayButton:hover .startBtnOn,
.missionPlayButton:focus-visible .startBtnOn,
.missionPlayButton:active .startBtnOn {
  opacity: 1;
}

.missionPlayButton:hover .startBtnOff,
.missionPlayButton:focus-visible .startBtnOff,
.missionPlayButton:active .startBtnOff {
  opacity: 0;
}

.missionPlayButton:hover, .missionPlayButton:focus-visible {
  filter: brightness(1.04);
}

.missionPlayButton:active {
  transform: translateY(1px) scale(0.992);
}

@media (max-width: 700px) {
  .missionDialog {
    min-height: auto;
  }

  .missionDialogInner {
    padding: 22px 16px 18px;
    gap: 14px;
  }

  .missionStatsGrid {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
  }

  .missionStatCard {
    min-height: 92px;
    border-radius: 18px;
  }
}



#missionOverlay.hidden { display: none !important; }
#missionOverlay.show { display: flex !important; }
#missionOverlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 9 !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(5, 9, 16, 0.52) !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}

#missionOverlay .missionDialog {
  position: relative !important;
  width: min(94vw, 640px) !important;
  min-height: 300px !important;
  max-height: none !important;
  transform: translateY(-20px) !important;
  padding: 18px 24px 18px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(11, 15, 12, 0.08), rgba(6, 8, 7, 0.16)),
    url("assets/pause_background2.webp") center / 100% 100% no-repeat !important;
  border: 1px solid rgba(166, 189, 126, 0.18) !important;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255,255,255,0.03) !important;
  filter: none !important;
  display: block !important;
}

#missionOverlay .missionDialogBg { display: none !important; }

#missionOverlay .missionDialogInner {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  min-height: 264px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  text-align: center !important;
}

#missionOverlay .missionTitle {
  font-family: var(--military-font-stack) !important;
  font-size: clamp(26px, 3.8vw, 38px) !important;
  line-height: 1 !important;
  letter-spacing: 1.2px !important;
  padding-top: 5px !important;
  margin: 0 0 4px !important;
  color: #ffe3ab !important;
  text-shadow: 0 3px 0 rgba(52, 23, 2, 0.88), 0 7px 18px rgba(0,0,0,0.4) !important;
}

#missionOverlay .missionSubtitle {
  display: none !important;
}

#missionOverlay .missionStatsGrid {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  margin: 0 !important;
}

#missionOverlay .missionStatCard {
  min-height: 48px !important;
  padding: 7px 14px !important;
  border-radius: 14px !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  gap: 12px !important;
  background: rgba(8, 15, 24, 0.55) !important;
  border: 1px solid rgba(255, 219, 156, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

#missionOverlay .missionStatHeading {
  font-family: var(--military-font-stack) !important;
  font-size: clamp(21px, 3.1vw, 30px) !important;
  letter-spacing: 1.1px !important;
  color: rgba(255, 234, 196, 0.92) !important;
  text-align: left !important;
}

#missionOverlay .missionValueLarge,
#missionOverlay .missionValueMedium {
  font-family: var(--military-font-stack) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  letter-spacing: 1px !important;
  color: #ffe3ab !important;
  line-height: 1 !important;
  text-align: right !important;
  min-width: 70px !important;
}

#missionOverlay .missionContinueHint {
  font-family: var(--military-font-stack) !important;
  font-size: clamp(15px, 2vw, 21px) !important;
  margin: 5px 0 0 !important;
  color: #f7efe0 !important;
}

#missionOverlay .missionActionRow {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin-top: 5px !important;
}

#missionOverlay .missionPlayButton,
#missionOverlay .pauseImageBtn.missionPlayButton {
  width: 66px !important;
  min-width: 66px !important;
  height: 66px !important;
  min-height: 66px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
}

#missionOverlay .missionPlayButton::before,
#missionOverlay .missionPlayButton::after { display: none !important; }

#missionOverlay .missionPlayButton .pauseBtnArt {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  filter: none !important;
}

@media (max-width: 700px) {
  #missionOverlay .missionDialog {
    width: min(94vw, 430px) !important;
    min-height: 282px !important;
    padding: 16px 16px 15px !important;
  }

  #missionOverlay .missionDialogInner {
    min-height: 251px !important;
    gap: 6px !important;
  }

  #missionOverlay .missionTitle {
    font-size: 26px !important;
  }

  #missionOverlay .missionStatCard {
    min-height: 46px !important;
    padding: 7px 11px !important;
  }

  #missionOverlay .missionStatHeading {
    font-size: 20px !important;
  }

  #missionOverlay .missionValueLarge,
  #missionOverlay .missionValueMedium {
    font-size: 31px !important;
  }

  #missionOverlay .missionPlayButton,
  #missionOverlay .pauseImageBtn.missionPlayButton {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
  }
}


#shopOverlay.hidden { display: none !important; }
#shopOverlay.show { display: flex !important; }
#shopOverlay {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: rgba(5, 9, 17, 0.66);
  backdrop-filter: blur(4px);
  padding: 16px;
}

#shopOverlay .shopDialog {
  position: relative;
  width: min(92vw, 455px);
  min-height: auto;
  max-height: min(92vh, 720px);
  overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: 26px;
  background: url("assets/pause_background2.webp") center center / cover no-repeat;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#shopOverlay .pauseDialogChrome {
  pointer-events: none;
}

.shopHeaderRow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shopPanelTitle {
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #ffe3ab;
  font-size: clamp(20px, 3.2vw, 30px);
  letter-spacing: 1px;
  text-shadow: 0 3px 0 rgba(52, 23, 2, 0.82), 0 7px 18px rgba(0, 0, 0, 0.38);
}

.shopCreditsBox {
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #fff5dc;
  font-size: 14px;
  letter-spacing: 0.7px;
  background: rgba(8, 13, 25, 0.78);
  border: 1px solid rgba(255, 219, 156, 0.28);
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  white-space: nowrap;
}

.shopItemsGrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.shopItemCard {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  grid-template-areas:
    "icon name button"
    "icon cost button"
    "icon status button";
  align-items: center;
  column-gap: 10px;
  min-height: 86px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.78), rgba(7, 12, 24, 0.9));
  border: 1px solid rgba(255, 219, 156, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 22px rgba(0,0,0,0.2);
}

.shopItemIcon {
  grid-area: icon;
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.28));
}

.shopItemName {
  grid-area: name;
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #ffe3ab;
  font-size: 18px;
  letter-spacing: 0.8px;
  line-height: 1.05;
  text-shadow: 0 2px 0 rgba(57,24,2,0.7);
}

.shopItemCost {
  grid-area: cost;
  color: #fff0c5;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.shopItemStatus {
  grid-area: status;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.25px;
  line-height: 1.2;
}

.shopBuyBtn {
  grid-area: button;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 14px;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.8px;
}

.shopBuyBtn:disabled {
  cursor: default;
  opacity: 0.48;
  filter: grayscale(0.35);
}

.shopHintRow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.shopHint {
  text-align: center;
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #fff1d2;
  font-size: 14px;
  letter-spacing: 0.7px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.shopNextLevelBadge {
  justify-self: end;
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #ffe3ab;
  font-size: 11px;
  letter-spacing: 0.7px;
  background: rgba(8, 13, 25, 0.78);
  border: 1px solid rgba(255, 219, 156, 0.26);
  border-radius: 12px;
  padding: 6px 8px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.shopActionRow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 74px 74px 74px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.shopRefundBtn {
  grid-column: 1;
  width: 62px;
  height: 62px;
  min-width: 62px;
  min-height: 62px;
  justify-self: center;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopRefundBtn:disabled {
  opacity: 0.42;
  filter: grayscale(0.55);
  cursor: default;
}

.shopRefundIcon {
  width: 62px;
  height: 62px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

#shopOverlay .shopPlayButton {
  grid-column: 2;
  width: 74px;
  height: 74px;
  min-width: 74px;
  min-height: 74px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

#shopOverlay .shopPlayButton .pauseBtnArt {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

@media (max-width: 520px) {
  #shopOverlay .shopDialog {
    width: min(94vw, 380px);
    padding: 16px 14px 14px;
    gap: 9px;
  }
  .shopHeaderRow {
    flex-direction: column;
    gap: 6px;
  }
  .shopItemCard {
    grid-template-columns: 48px 1fr auto;
    column-gap: 8px;
    min-height: 78px;
    padding: 8px;
  }
  .shopItemIcon {
    width: 46px;
    height: 46px;
  }
  .shopItemName { font-size: 15px; }
  .shopItemCost { font-size: 12px; }
  .shopItemStatus { font-size: 10px; }
  .shopBuyBtn {
    min-width: 62px;
    padding: 8px 9px;
    font-size: 12px;
  }
}


@media (max-width: 520px) {
  .shopHintRow {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .shopNextLevelBadge {
    justify-self: center;
    font-size: 10px;
  }
  .shopActionRow {
    grid-template-columns: 62px 70px 62px;
    gap: 6px;
  }
  .shopRefundBtn {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
  }
  .shopRefundIcon {
    width: 54px;
    height: 54px;
  }
}



.keyHintBtn {
  position: relative;
}

.keyHintBtn::before {
  content: attr(data-key);
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.2px;
  color: #fff2c9;
  background: rgba(7, 11, 20, 0.86);
  border: 1px solid rgba(255, 216, 142, 0.72);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255,255,255,0.12);
  pointer-events: none;
}

.shootBtn.keyHintBtn::before,
.airBtn.keyHintBtn::before {
  top: -7px;
}

.weaponBtn.keyHintBtn::before {
  top: -9px;
}

@media (max-width: 520px) {
  .keyHintBtn::before {
    top: -7px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    padding: 0 4px;
  }
}



.keyHintBtn::before {
  content: none !important;
  display: none !important;
}

.infoActionGroup {
  margin-right: 16px;
}

.controlsInfoBtn {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(10, 14, 28, 0.72);
  color: #fff3d2;
  border: 2px dashed rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
  pointer-events: auto;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.controlsInfoGlyph {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255,255,255,0.02)),
    radial-gradient(circle at 20% 20%, rgba(255, 209, 115, 0.12), transparent 48%),
    rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.controlsInfoGlyph svg {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.controlsInfoGlyph svg circle,
.controlsInfoGlyph svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.controlsInfoGlyph svg .dot {
  fill: currentColor;
  stroke: none;
}

.controlsInfoBtn:hover {
  filter: none;
  border-color: rgba(255, 209, 115, 0.44);
}

.controlsInfoBtn:active,
.controlsInfoBtn.pressed {
  transform: none;
  background: linear-gradient(180deg, rgba(255, 210, 115, 0.2), rgba(255, 159, 56, 0.16)), rgba(10, 14, 28, 0.92);
  color: #fff7e7;
  border-color: rgba(255, 209, 115, 0.92);
  box-shadow: 0 14px 28px rgba(255, 160, 56, 0.28), inset 0 0 0 1px rgba(255, 242, 210, 0.12);
}

.controlsInfoBtn:active .controlsInfoGlyph,
.controlsInfoBtn.pressed .controlsInfoGlyph {
  background:
    linear-gradient(180deg, rgba(255, 209, 115, 0.14), rgba(255, 158, 54, 0.06)),
    rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 227, 173, 0.34);
}

#controlsOverlay.hidden { display: none; }
#controlsOverlay.show { display: flex; }
#controlsOverlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 9, 17, 0.74);
  backdrop-filter: blur(5px);
}

.controlsDialog {
  position: relative;
  width: min(92vw, 880px);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 26px 22px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(19, 30, 52, 0.97), rgba(8, 14, 28, 0.98));
  border: 2px solid rgba(255, 216, 142, 0.26);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.06);
}

.controlsCloseBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #fff3d0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
}

.controlsTitle {
  margin-bottom: 18px;
  text-align: center;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: 1px;
  color: #ffe3ab;
  text-shadow: 0 3px 0 rgba(52, 23, 2, 0.88), 0 7px 18px rgba(0,0,0,0.4);
}

.controlsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.controlsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 22, 38, 0.8), rgba(8, 12, 24, 0.9));
  border: 1px solid rgba(255, 219, 156, 0.16);
}

.controlsLegend {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.controlsLegendWithIcon .controlsLegendIcon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 38px;
}

.controlsLegendShoot {
  width: auto;
  height: 28px;
  max-width: 76px;
  object-fit: contain;
}

.controlsLegendText {
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(14px, 2.4vw, 22px);
  letter-spacing: 0.6px;
  color: #f6f0df;
}

.controlLegendArrow,
.controlLegendPause,
.controlLegendPlay,
.controlLegendInfo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 22px;
  color: #ffe3ab;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.controlsKeys {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.keyCap {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #1a1e27;
  background: linear-gradient(180deg, #fbf6eb, #dcd2c0);
  border: 1px solid rgba(82, 72, 54, 0.42);
  box-shadow: 0 4px 0 rgba(94, 82, 58, 0.5), 0 8px 16px rgba(0,0,0,0.22);
}

.keyCap.wide { min-width: 64px; }
.keyCap.ultraWide { min-width: 104px; }

.controlsFooter {
  margin-top: 16px;
  text-align: center;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 0.5px;
  color: rgba(247, 239, 224, 0.85);
}

@media (max-width: 720px) {
  .infoActionGroup { margin-right: 10px; }
  .controlsInfoBtn { width: 50px; height: 50px; min-width: 50px; min-height: 50px; padding: 4px; }
  .controlsInfoGlyph svg { width: 26px; height: 26px; }
  .controlsDialog { width: min(95vw, 680px); padding: 22px 14px 16px; border-radius: 22px; }
  .controlsRow { padding: 10px 10px; gap: 10px; }
  .controlsLegendText { font-size: 15px; }
  .controlsLegendWithIcon .controlsLegendIcon { width: 32px; height: 32px; flex-basis: 32px; }
  .controlsLegendShoot { height: 24px; }
  .keyCap { min-width: 38px; height: 36px; font-size: 15px; padding: 0 10px; }
  .keyCap.wide { min-width: 56px; }
  .keyCap.ultraWide { min-width: 88px; }
}



.infoActionGroup {
  margin-right: 50px;
}

#controlsOverlay {
  padding: 12px;
}

.controlsDialog {
  width: min(90vw, 980px);
  max-width: 980px;
  max-height: none;
  overflow: hidden;
  padding: 18px 18px 14px;
  border-radius: 26px;
  background: url("assets/pause_background2.webp") center center / cover no-repeat;
  border: 2px solid rgba(255, 216, 142, 0.20);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.06);
}

.controlsDialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.18), rgba(7, 12, 22, 0.36));
  pointer-events: none;
}

.controlsDialog > * {
  position: relative;
  z-index: 1;
}

.controlsCloseBtn {
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 24px;
  color: #fff2ce;
  background: linear-gradient(180deg, rgba(77, 27, 18, 0.86), rgba(40, 13, 9, 0.96));
  border: 1px solid rgba(255, 196, 120, 0.45);
  box-shadow: 0 8px 16px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.10);
}

.controlsCloseBtn:hover {
  filter: brightness(1.08);
}

.controlsTitle {
  margin-bottom: 12px;
  padding-right: 46px;
  font-size: clamp(22px, 3vw, 34px);
  color: #ffe3ab;
}

.controlsGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.controlsRow {
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 22, 38, 0.62), rgba(8, 12, 24, 0.76));
  border: 1px solid rgba(255, 219, 156, 0.12);
}

.controlsLegend {
  gap: 10px;
}

.controlsLegendText {
  font-size: clamp(13px, 1.8vw, 17px);
}

.controlsLegendWithIcon .controlsLegendIcon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.controlsLegendShoot {
  height: 22px;
  max-width: 64px;
}

.controlLegendArrow,
.controlLegendPause,
.controlLegendPlay,
.controlLegendInfo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 18px;
}

.controlsKeys {
  gap: 7px;
}

.keyCap {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 15px;
}

.keyCap.wide {
  min-width: 54px;
}

.keyCap.ultraWide {
  min-width: 84px;
}

.controlsFooter {
  margin-top: 10px;
  font-size: clamp(11px, 1.5vw, 15px);
}

@media (max-width: 860px) {
  .controlsDialog {
    width: min(94vw, 860px);
    padding: 16px 14px 12px;
  }

  .controlsGrid {
    gap: 8px 10px;
  }

  .controlsRow {
    min-height: 48px;
    padding: 7px 10px;
  }

  .controlsLegendText {
    font-size: 14px;
  }

  .keyCap {
    min-width: 34px;
    height: 32px;
    font-size: 14px;
    padding: 0 8px;
  }

  .keyCap.wide { min-width: 50px; }
  .keyCap.ultraWide { min-width: 74px; }
}

@media (max-width: 640px) {
  .controlsDialog {
    width: min(95vw, 640px);
    padding: 14px 12px 10px;
  }

  .controlsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 8px;
  }

  .controlsRow {
    min-height: 44px;
    padding: 6px 8px;
  }

  .controlsLegend {
    gap: 8px;
  }

  .controlsLegendText {
    font-size: 12px;
  }

  .controlsLegendWithIcon .controlsLegendIcon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .controlsLegendShoot {
    height: 18px;
    max-width: 54px;
  }

  .controlLegendArrow,
  .controlLegendPause,
  .controlLegendPlay,
  .controlLegendInfo {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .keyCap {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
    padding: 0 6px;
    border-radius: 8px;
  }

  .keyCap.wide { min-width: 42px; }
  .keyCap.ultraWide { min-width: 62px; }

  .controlsFooter {
    margin-top: 8px;
    font-size: 11px;
  }
}


.controlsDialog > .controlsCloseBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 2;
}


#app.gameStarted:not(.gamePaused) > #soundBtn {
  display: none !important;
}

#bottomActionBar .infoActionGroup {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.pauseHeaderTools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.pauseInfoBtn {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.92), rgba(10, 15, 24, 0.92)) !important;
  border: 1px solid rgba(255, 216, 126, 0.42) !important;
  box-shadow: 0 10px 18px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.05) !important;
  color: #ffd982 !important;
}

.pauseInfoGlyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid currentColor;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.42);
}

#bottomActionBar {
  width: min(98vw, calc(min(100vw, calc(100vh * 1.777)) * 0.985)) !important;
  justify-content: center !important;
  align-items: flex-end !important;
}

.actionGroup + #weaponButtons,
#weaponButtons + .actionGroup {
  margin-left: clamp(14px, 2vw, 28px) !important;
}

.specialControls {
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
}

.rightControls {
  gap: clamp(14px, 2vw, 27px) !important;
  align-items: flex-end !important;
}

.weaponBtn.specialBtn,
.weaponBtn.airBtn {
  position: relative !important;
  width: 92px !important;
  min-width: 92px !important;
  min-height: 70px !important;
  height: 70px !important;
  grid-template-rows: 1fr auto auto !important;
  padding: 4px !important;
  gap: 2px !important;
}

.weaponBtn.specialBtn .weaponBtnFrame,
.weaponBtn.airBtn .weaponBtnFrame,
.specialBtnFrame,
.heliBtnFrame {
  min-height: 30px !important;
  height: 30px !important;
  padding: 1px 3px !important;
}

.weaponBtn.specialBtn .weaponBtnIcon,
.weaponBtn.airBtn .weaponBtnIcon,
.specialBtnIcon,
.heliBtnIcon {
  height: 26px !important;
  max-height: 26px !important;
  width: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

.specialBtnName {
  min-height: 11px !important;
  font-size: 7px !important;
  line-height: 1 !important;
  letter-spacing: 0.2px !important;
}

#grenadeCooldownFill,
#supportCooldownFill,
#heliCooldownFill {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0%;
  background: linear-gradient(90deg, #58c3ff, var(--accent));
  box-shadow: 0 0 12px rgba(88, 195, 255, 0.34);
  transition: width 120ms linear;
}

.weaponBtn.specialBtn.ready,
.weaponBtn.airBtn.ready {
  opacity: 1 !important;
  background: linear-gradient(180deg, rgba(255, 210, 115, 0.2), rgba(255, 159, 56, 0.16)), rgba(10, 14, 28, 0.92) !important;
  color: #fff7e7 !important;
  border-color: rgba(255, 209, 115, 0.92) !important;
  box-shadow: 0 14px 28px rgba(255, 160, 56, 0.24), inset 0 0 0 1px rgba(255, 242, 210, 0.12) !important;
}

.weaponBtn.specialBtn.cooling,
.weaponBtn.airBtn.cooling {
  opacity: 0.72;
  border-color: rgba(88, 195, 255, 0.28) !important;
}

.weaponBtn.specialBtn.locked {
  opacity: 0.45 !important;
  filter: saturate(0.4) grayscale(0.2) !important;
}

.specialCountBadge {
  position: absolute;
  right: 3px;
  top: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(8, 13, 25, 0.92);
  border: 1px solid rgba(255, 219, 156, 0.48);
  color: #fff1c4;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.shopSpecialRow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: -2px;
}

.shopSpecialCard {
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.72), rgba(7, 12, 24, 0.88));
  border: 1px solid rgba(255, 219, 156, 0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 18px rgba(0,0,0,0.18);
}

.shopSpecialIcon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.28));
}

.shopSpecialText {
  min-width: 0;
}

.shopSpecialName {
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #ffe3ab;
  font-size: 14px;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(57,24,2,0.7);
}

.shopSpecialCost {
  color: #fff0c5;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.15px;
  margin-top: 3px;
  line-height: 1.05;
}

.shopSpecialStatus {
  color: rgba(255, 255, 255, 0.80);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.15px;
  margin-top: 3px;
  line-height: 1.1;
}

.shopSpecialBuyBtn {
  min-width: 56px;
  padding: 8px 8px;
  border-radius: 12px;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.45px;
}

.shopSpecialBuyBtn:disabled {
  cursor: default;
  opacity: 0.48;
  filter: grayscale(0.35);
}

@media (max-width: 1200px) {
  .weaponBtn.specialBtn,
  .weaponBtn.airBtn {
    width: 80px !important;
    min-width: 80px !important;
    min-height: 63px !important;
    height: 63px !important;
  }

  .weaponBtn.specialBtn .weaponBtnFrame,
  .weaponBtn.airBtn .weaponBtnFrame,
  .specialBtnFrame,
  .heliBtnFrame {
    min-height: 25px !important;
    height: 25px !important;
  }

  .weaponBtn.specialBtn .weaponBtnIcon,
  .weaponBtn.airBtn .weaponBtnIcon,
  .specialBtnIcon,
  .heliBtnIcon {
    height: 21px !important;
    max-height: 21px !important;
  }

  .specialBtnName { font-size: 6.4px !important; }
}

@media (max-width: 900px) {
  #bottomActionBar { width: min(99vw, calc(min(100vw, calc(100vh * 1.777)) * 0.995)) !important; }
  .actionGroup + #weaponButtons,
  #weaponButtons + .actionGroup { margin-left: 10px !important; }
  .rightControls { gap: 10px !important; }
  .specialControls { gap: 5px; }
  .weaponBtn.specialBtn,
  .weaponBtn.airBtn {
    width: 66px !important;
    min-width: 66px !important;
    min-height: 56px !important;
    height: 56px !important;
    padding: 3px !important;
  }
  .specialBtnName { font-size: 5.6px !important; min-height: 9px !important; }
  .weaponBtnCooldown { height: 5px !important; }
  .specialCountBadge { min-width: 16px; height: 16px; font-size: 9px; }
}

@media (max-width: 700px) {
  .shopSpecialRow { grid-template-columns: 1fr; }
  .shopSpecialCard { min-height: 68px; }
  .shopSpecialName { font-size: 13px; }
  .shopSpecialBuyBtn { min-width: 52px; font-size: 10px; padding: 7px 7px; }
  .weaponBtn.specialBtn,
  .weaponBtn.airBtn {
    width: 56px !important;
    min-width: 56px !important;
    min-height: 52px !important;
    height: 52px !important;
  }
  .specialBtnName { font-size: 5px !important; }
}



.specialKeyBadge {
  position: absolute;
  left: 3px;
  top: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 219, 156, 0.94);
  border: 1px solid rgba(33, 24, 11, 0.85);
  color: #17130c;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 10px;
  line-height: 1;
  text-shadow: none;
  box-shadow: 0 3px 7px rgba(0,0,0,0.28);
}

#shopOverlay .shopDialog {
  max-height: calc(100dvh - 18px) !important;
}

@media (max-height: 760px) {
  #shopOverlay {
    padding: 6px !important;
  }
  #shopOverlay .shopDialog {
    width: min(96vw, 430px) !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 10px !important;
    gap: 6px !important;
    border-radius: 18px !important;
  }
  .shopHeaderRow {
    gap: 4px !important;
  }
  .shopPanelTitle {
    font-size: clamp(18px, 2.6vw, 22px) !important;
  }
  .shopCreditsBox {
    font-size: 11px !important;
    padding: 5px 7px !important;
    border-radius: 12px !important;
  }
  .shopItemsGrid {
    gap: 6px !important;
  }
  .shopItemCard {
    grid-template-columns: 42px 1fr 56px !important;
    column-gap: 6px !important;
    min-height: 62px !important;
    padding: 6px !important;
    border-radius: 14px !important;
  }
  .shopItemIcon {
    width: 40px !important;
    height: 40px !important;
  }
  .shopItemName {
    font-size: 13px !important;
    line-height: 1 !important;
  }
  .shopItemCost {
    font-size: 10px !important;
    line-height: 1.05 !important;
  }
  .shopItemStatus {
    font-size: 8.5px !important;
    line-height: 1.05 !important;
  }
  .shopBuyBtn {
    min-width: 54px !important;
    padding: 6px 6px !important;
    font-size: 10px !important;
    border-radius: 10px !important;
  }
  .shopSpecialRow {
    gap: 6px !important;
    margin-top: 0 !important;
  }
  .shopSpecialCard {
    grid-template-columns: 36px 1fr 44px !important;
    min-height: 54px !important;
    padding: 5px !important;
    gap: 5px !important;
    border-radius: 12px !important;
  }
  .shopSpecialIcon {
    width: 34px !important;
    height: 34px !important;
  }
  .shopSpecialName {
    font-size: 11px !important;
    line-height: 1 !important;
  }
  .shopSpecialCost,
  .shopSpecialStatus {
    font-size: 8px !important;
    line-height: 1.05 !important;
    margin-top: 1px !important;
  }
  .shopSpecialBuyBtn {
    min-width: 42px !important;
    padding: 5px 4px !important;
    font-size: 8.5px !important;
    border-radius: 9px !important;
  }
  .shopHintRow {
    gap: 5px !important;
  }
  .shopHint {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }
  .shopNextLevelBadge {
    font-size: 9px !important;
    padding: 4px 6px !important;
    border-radius: 9px !important;
  }
  .shopActionRow {
    grid-template-columns: 50px 56px 50px !important;
    gap: 4px !important;
  }
  .shopRefundBtn,
  .shopRefundIcon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }
  #shopOverlay .shopPlayButton,
  #shopOverlay .shopPlayButton .pauseBtnArt {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
  }
}

@media (max-height: 640px) {
  #shopOverlay .shopDialog {
    width: min(97vw, 410px) !important;
    padding: 8px !important;
    gap: 5px !important;
  }
  .shopItemCard {
    min-height: 56px !important;
    grid-template-columns: 36px 1fr 50px !important;
  }
  .shopItemIcon { width: 34px !important; height: 34px !important; }
  .shopItemName { font-size: 12px !important; }
  .shopItemCost { font-size: 9px !important; }
  .shopItemStatus { font-size: 7.8px !important; }
  .shopSpecialCard {
    min-height: 48px !important;
    grid-template-columns: 31px 1fr 40px !important;
  }
  .shopSpecialIcon { width: 30px !important; height: 30px !important; }
  .shopSpecialName { font-size: 10px !important; }
  .shopSpecialCost,
  .shopSpecialStatus { font-size: 7.4px !important; }
  .shopHint { font-size: 9px !important; }
  .shopActionRow { grid-template-columns: 44px 50px 44px !important; }
  .shopRefundBtn,
  .shopRefundIcon { width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; }
  #shopOverlay .shopPlayButton,
  #shopOverlay .shopPlayButton .pauseBtnArt { width: 50px !important; height: 50px !important; min-width: 50px !important; min-height: 50px !important; }
}



.pauseInfoBtn {
  width: 66px !important;
  min-width: 66px !important;
  height: 66px !important;
  min-height: 66px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.pauseInfoBtn .pauseBtnArt {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
}


.specialKeyBadge {
  display: none !important;
}



#shopOverlay .shopDialog {
  width: min(92vw, 455px) !important;
  gap: 8px !important;
  padding: 16px 16px 14px !important;
}
.shopItemsGrid {
  gap: 6px !important;
}
.shopItemCard {
  min-height: 66px !important;
  grid-template-columns: 44px 1fr 58px !important;
  column-gap: 7px !important;
  padding: 7px !important;
  border-radius: 15px !important;
}
.shopItemIcon {
  width: 42px !important;
  height: 42px !important;
}
.barricadeShopIcon {
  width: 46px !important;
  height: 46px !important;
}
.shopItemName {
  font-size: 14px !important;
  line-height: 1 !important;
}
.shopItemCost {
  font-size: 10px !important;
  line-height: 1.05 !important;
}
.shopItemStatus {
  font-size: 8.6px !important;
  line-height: 1.06 !important;
}
.shopBuyBtn {
  min-width: 54px !important;
  padding: 6px 5px !important;
  font-size: 10px !important;
  border-radius: 10px !important;
}
.shopSpecialRow {
  gap: 7px !important;
  margin-top: -1px !important;
}
.shopSpecialCard {
  min-height: 62px !important;
  grid-template-columns: 40px 1fr 48px !important;
  gap: 6px !important;
  padding: 6px !important;
}
.shopSpecialIcon {
  width: 38px !important;
  height: 38px !important;
}
.shopSpecialName {
  font-size: 12px !important;
}
.shopSpecialCost,
.shopSpecialStatus {
  font-size: 8px !important;
  line-height: 1.05 !important;
  margin-top: 2px !important;
}
.shopSpecialBuyBtn {
  min-width: 46px !important;
  padding: 6px 5px !important;
  font-size: 9px !important;
}
.shopHint {
  font-size: 11px !important;
}
.shopActionRow {
  grid-template-columns: 56px 62px 56px !important;
  gap: 5px !important;
}
.shopRefundBtn,
.shopRefundIcon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
}
#shopOverlay .shopPlayButton,
#shopOverlay .shopPlayButton .pauseBtnArt {
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  min-height: 62px !important;
}
@media (max-width: 520px), (max-height: 760px) {
  .shopItemCard {
    min-height: 54px !important;
    grid-template-columns: 35px 1fr 45px !important;
    padding: 5px !important;
    gap: 5px !important;
  }
  .shopItemIcon,
  .barricadeShopIcon {
    width: 34px !important;
    height: 34px !important;
  }
  .shopItemName { font-size: 11px !important; }
  .shopItemCost { font-size: 8px !important; }
  .shopItemStatus { font-size: 7px !important; }
  .shopBuyBtn {
    min-width: 42px !important;
    padding: 5px 4px !important;
    font-size: 8px !important;
  }
  .shopSpecialCard {
    min-height: 48px !important;
    grid-template-columns: 31px 1fr 40px !important;
  }
}



#medalsOverlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 38 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(4px, 1.2vw, 18px) !important;
  background: rgba(5, 7, 10, 0.62) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#medalsOverlay.show {
  display: flex !important;
}

#medalsOverlay.hidden {
  display: none !important;
}

.medalsDialog {
  position: relative !important;
  width: min(98vw, calc(96vh * 1.988984088), 1624px) !important;
  height: auto !important;
  aspect-ratio: 1624 / 817 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent url('assets/medals_panel_bg.webp') center center / 100% 100% no-repeat !important;
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.58) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.medalsTitle {
  display: none !important;
}

.medalsProgressText {
  position: absolute !important;
  left: 6.78% !important;
  top: 7.15% !important;
  z-index: 3 !important;
  min-width: 7.5% !important;
  text-align: left !important;
  font-family: 'Black Ops One', Impact, Haettenschweiler, 'Arial Black', sans-serif !important;
  font-size: clamp(13px, 1.85vw, 30px) !important;
  line-height: 1 !important;
  letter-spacing: 0.06em !important;
  color: #f3dfad !important;
  text-shadow: 0 2px 0 rgba(42, 29, 14, 0.95), 0 0 10px rgba(0, 0, 0, 0.85) !important;
  pointer-events: none !important;
}

.medalsCloseBtn {
  position: absolute !important;
  top: 3.65% !important;
  right: 3.20% !important;
  left: auto !important;
  z-index: 5 !important;
  width: 4.9% !important;
  height: 8.9% !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 78px !important;
  max-height: 72px !important;
  padding: 0 !important;
  border-radius: 10% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Black Ops One', Impact, Haettenschweiler, 'Arial Black', sans-serif !important;
  font-size: clamp(20px, 3.2vw, 58px) !important;
  line-height: 1 !important;
  color: #d83a22 !important;
  text-shadow: 0 2px 0 rgba(50, 8, 5, 0.9), 0 0 8px rgba(255, 82, 45, 0.35) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.medalsCloseBtn:hover {
  filter: brightness(1.18) saturate(1.1) !important;
}

.medalsGrid {
  position: absolute !important;
  left: 3.02% !important;
  top: 15.55% !important;
  width: 91.93% !important;
  height: 68.30% !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(10, 1fr) !important;
  grid-template-rows: repeat(3, 1fr) !important;
  column-gap: 1.05% !important;
  row-gap: 11.75% !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.medalCard {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  text-align: center !important;
  transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease !important;
}

.medalArt {
  position: absolute !important;
  top: 5.5% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 82% !important;
  height: 74% !important;
  display: block !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.medalCard .achievedArt {
  display: none !important;
}

.medalCard.achieved .lockedArt {
  display: none !important;
}

.medalCard.achieved .achievedArt {
  display: block !important;
  filter: drop-shadow(0 0 10px rgba(255, 209, 104, 0.40)) !important;
}

.medalCard.locked .lockedArt {
  display: block !important;
  opacity: 0.72 !important;
  filter: grayscale(1) brightness(0.78) contrast(1.08) !important;
}

.medalSrText,
.medalCard .medalName,
.medalCard .medalHint {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
}

@media (max-width: 720px) {
  .medalsProgressText {
    font-size: clamp(10px, 1.9vw, 18px) !important;
  }
  .medalsCloseBtn {
    font-size: clamp(16px, 3vw, 34px) !important;
  }
}


.medalCardProgress {
  position: absolute !important;
  top: 1.5% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
  min-width: 46% !important;
  max-width: 90% !important;
  padding: 0.16em 0.42em 0.10em !important;
  border-radius: 999px !important;
  border: 1px solid rgba(228, 197, 112, 0.50) !important;
  background: rgba(8, 9, 7, 0.72) !important;
  color: #f2ddb0 !important;
  font-family: 'Black Ops One', Impact, Haettenschweiler, 'Arial Black', sans-serif !important;
  font-size: clamp(8px, 0.86vw, 15px) !important;
  line-height: 1.05 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  text-shadow: 0 1px 0 rgba(25, 14, 6, 0.95), 0 0 7px rgba(0, 0, 0, 0.90) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 184, 0.07), 0 2px 5px rgba(0, 0, 0, 0.40) !important;
}

.medalCard.achieved .medalCardProgress {
  border-color: rgba(255, 216, 122, 0.82) !important;
  background: rgba(70, 48, 14, 0.78) !important;
  color: #fff2bc !important;
}

@media (max-width: 720px) {
  .medalCardProgress {
    font-size: clamp(6px, 1.25vw, 10px) !important;
    padding-left: 0.25em !important;
    padding-right: 0.25em !important;
  }
}



.grenadeBtn .specialCountBadge {
  display: none !important;
}


#finalCampaignOverlay.hidden { display: none; }
#finalCampaignOverlay.show { display: flex; }
#finalCampaignOverlay {
  position: fixed;
  inset: 0;
  z-index: 24;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.4vw, 28px);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 219, 156, 0.2), rgba(255, 219, 156, 0) 34%),
    radial-gradient(circle at 16% 80%, rgba(89, 214, 255, 0.16), rgba(89, 214, 255, 0) 32%),
    linear-gradient(180deg, rgba(4, 8, 16, 0.86), rgba(1, 4, 11, 0.95));
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.finalCampaignDialog {
  position: relative;
  width: min(94vw, 1060px);
  min-height: min(88vh, 665px);
  max-height: min(94vh, 735px);
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(54px, auto);
  align-items: center;
  justify-items: center;
  gap: clamp(7px, 1.25vw, 16px);
  padding: clamp(22px, 3.2vw, 44px) clamp(18px, 4vw, 58px);
  border-radius: 30px;
  border: 1px solid rgba(255, 227, 171, 0.38);
  background:
    linear-gradient(180deg, rgba(21, 31, 51, 0.87), rgba(5, 10, 21, 0.94)),
    url("assets/pause_background2.webp") center center / cover no-repeat;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 80px rgba(255, 192, 83, 0.07);
  text-align: center;
  overflow: hidden;
}

.finalCampaignDialog::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 236, 196, 0.13);
  pointer-events: none;
}

.finalCampaignDialog::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 219, 156, 0.08), transparent 22%, transparent 100%);
  animation: finalRadarSpin 12s linear infinite;
  pointer-events: none;
}

.finalCampaignFx,
.finalCampaignHeader,
.finalCampaignSeal,
.finalCampaignMessage,
.finalCampaignStats,
.finalCampaignRank,
.finalCampaignReturnBtn {
  position: relative;
  z-index: 1;
}

.finalSweep {
  position: absolute;
  left: -30%;
  width: 160%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 235, 184, 0.58), transparent);
  filter: blur(0.4px);
  opacity: 0.65;
  animation: finalSweepMove 4.8s ease-in-out infinite;
}
.finalSweepOne { top: 22%; }
.finalSweepTwo { top: 72%; animation-delay: 1.6s; }

.finalSpark {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffe3ab;
  box-shadow: 0 0 20px rgba(255, 227, 171, 0.88), 0 0 42px rgba(89, 214, 255, 0.42);
  opacity: 0.72;
  animation: finalSparkFloat 5.4s ease-in-out infinite;
}
.finalSparkOne { left: 13%; top: 24%; }
.finalSparkTwo { right: 16%; top: 32%; animation-delay: 1.2s; }
.finalSparkThree { left: 24%; bottom: 18%; animation-delay: 2.4s; }

.finalCampaignKicker,
.finalCampaignSubtitle,
.finalCampaignMessage,
.finalCampaignRank,
.finalCampaignStat span {
  font-family: 'Black Ops One', system-ui, sans-serif;
  letter-spacing: 1px;
}

.finalCampaignKicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 12px 3px;
  border-radius: 999px;
  color: #08101c;
  background: linear-gradient(180deg, #ffe3ab, #d6a85d);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: clamp(10px, 1.25vw, 15px);
}

.finalCampaignTitle {
  margin-top: clamp(8px, 1.4vw, 14px);
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(46px, 8.2vw, 102px);
  line-height: 0.88;
  letter-spacing: 2px;
  color: #ffe3ab;
  text-shadow:
    0 4px 0 rgba(74, 29, 2, 0.88),
    0 10px 24px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(255, 203, 112, 0.24);
  animation: finalTitlePulse 2.8s ease-in-out infinite;
}

.finalCampaignSubtitle {
  margin-top: 6px;
  color: #f7efe0;
  font-size: clamp(15px, 2.2vw, 27px);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

.finalCampaignSeal {
  width: clamp(138px, 19vw, 206px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(12, 20, 35, 0.98) 0 43%, rgba(255, 219, 156, 0.17) 44% 47%, rgba(8, 14, 26, 0.96) 48% 100%);
  border: 2px solid rgba(255, 227, 171, 0.58);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.36),
    inset 0 0 24px rgba(255, 219, 156, 0.12),
    0 0 42px rgba(89, 214, 255, 0.12);
}

.finalCampaignSealRing {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 2px dashed rgba(255, 227, 171, 0.52);
  animation: finalSealRotate 10s linear infinite;
}

.finalCampaignSealCore {
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(46px, 7vw, 80px);
  line-height: 0.9;
  color: #ffe3ab;
  text-shadow: 0 4px 0 rgba(52, 23, 2, 0.9), 0 12px 24px rgba(0, 0, 0, 0.42);
}

.finalCampaignSealText {
  position: absolute;
  bottom: 24%;
  width: 100%;
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: rgba(247, 239, 224, 0.9);
  font-size: clamp(8px, 1.1vw, 13px);
  letter-spacing: 0.8px;
}

.finalCampaignMessage {
  width: min(92%, 820px);
  color: rgba(247, 239, 224, 0.95);
  font-size: clamp(14px, 1.75vw, 21px);
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.finalCampaignStats {
  width: min(100%, 840px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
}

.finalCampaignStat {
  min-height: clamp(76px, 10vw, 112px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12, 21, 37, 0.82), rgba(5, 10, 20, 0.92));
  border: 1px solid rgba(255, 227, 171, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 24px rgba(0,0,0,0.2);
}

.finalCampaignStat span {
  color: rgba(255, 234, 196, 0.88);
  font-size: clamp(9px, 1.25vw, 15px);
}

.finalCampaignStat strong {
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #ffe3ab;
  font-size: clamp(24px, 4vw, 48px);
  line-height: 0.95;
  text-shadow: 0 3px 0 rgba(55, 24, 2, 0.8), 0 8px 18px rgba(0, 0, 0, 0.32);
  word-break: break-word;
}

.finalCampaignRank {
  color: #59d6ff;
  font-size: clamp(14px, 2vw, 24px);
  text-shadow: 0 0 18px rgba(89, 214, 255, 0.34), 0 2px 10px rgba(0, 0, 0, 0.4);
}

.finalCampaignReturnBtn {
  min-width: clamp(250px, 34vw, 430px);
  min-height: clamp(50px, 6.6vw, 70px);
  padding: 0 clamp(18px, 2.5vw, 30px);
  border: 1px solid rgba(255, 238, 197, 0.72);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe3ab, #d59c49 48%, #8d4b17);
  color: #0b111d;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(15px, 1.9vw, 24px);
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.36);
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
}

.finalCampaignReturnBtn:hover,
.finalCampaignReturnBtn:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.finalCampaignReturnBtn:active {
  transform: translateY(1px) scale(0.99);
}

.finalCampaignReturnBtn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}


@media (max-height: 760px) {
  .finalCampaignDialog {
    min-height: auto;
    max-height: 96vh;
    gap: 7px;
    padding-top: clamp(14px, 2.2vw, 26px);
    padding-bottom: clamp(14px, 2.2vw, 26px);
  }

  .finalCampaignTitle {
    font-size: clamp(38px, 7vw, 76px);
  }

  .finalCampaignSeal {
    width: clamp(108px, 15vw, 150px);
  }

  .finalCampaignMessage {
    font-size: clamp(12px, 1.45vw, 17px);
    line-height: 1.25;
  }

  .finalCampaignStat {
    min-height: 64px;
    gap: 5px;
    padding: 8px 8px;
  }

  .finalCampaignRank {
    font-size: clamp(12px, 1.65vw, 18px);
  }

  .finalCampaignReturnBtn {
    min-height: 48px;
    margin-top: 2px;
  }
}

@keyframes finalRadarSpin {
  to { transform: rotate(360deg); }
}

@keyframes finalSealRotate {
  to { transform: rotate(360deg); }
}

@keyframes finalTitlePulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.12); transform: scale(1.015); }
}

@keyframes finalSweepMove {
  0%, 100% { transform: translateX(-8%) rotate(-2deg); opacity: 0.2; }
  45%, 55% { transform: translateX(8%) rotate(-2deg); opacity: 0.75; }
}

@keyframes finalSparkFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0.35; }
  50% { transform: translate3d(18px, -22px, 0) scale(1.14); opacity: 0.9; }
}

@media (max-width: 760px) {
  .finalCampaignDialog {
    min-height: auto;
    gap: 8px;
    padding: 18px 14px;
  }
  .finalCampaignStats {
    grid-template-columns: 1fr;
    width: min(100%, 440px);
  }
  .finalCampaignStat {
    min-height: 62px;
    gap: 4px;
  }
  .finalCampaignSeal {
    width: 124px;
  }
  .finalCampaignMessage {
    font-size: 13px;
    line-height: 1.25;
  }
}


.finalCampaignDialog::before,
.finalCampaignDialog::after {
  z-index: 0;
}
.finalCampaignFx {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none;
  overflow: hidden;
}
.finalCampaignHeader,
.finalCampaignSeal,
.finalCampaignMessage,
.finalCampaignStats,
.finalCampaignRank,
.finalCampaignReturnBtn {
  z-index: 1;
}


.tutorialCoach {
  position: absolute;
  z-index: 9200;
  min-width: 150px;
  max-width: min(260px, 74vw);
  padding: 11px 15px 12px;
  border-radius: 18px;
  border: 2px solid rgba(255, 213, 106, 0.96);
  background: linear-gradient(180deg, rgba(22, 25, 19, 0.96), rgba(9, 12, 10, 0.94));
  color: #fff6c4;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.48), 0 0 28px rgba(255, 190, 72, 0.48), 0 18px 42px rgba(0,0,0,0.56);
  font-family: "Black Ops One", Impact, Haettenschweiler, "Arial Black", sans-serif;
  transform-origin: center bottom;
  animation: tutorialCoachFloat 0.78s ease-in-out infinite alternate;
}

.tutorialCoach.hidden { display: none !important; }

.tutorialCoachTap {
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 0.96;
  letter-spacing: 1.5px;
  color: #ffd966;
  text-shadow: 0 3px 0 rgba(0,0,0,0.85), 0 0 14px rgba(255, 198, 72, 0.72);
}

.tutorialCoachText {
  margin-top: 5px;
  font-size: clamp(12px, 1.45vw, 18px);
  line-height: 1.08;
  letter-spacing: 0.9px;
  color: #ecf6d7;
  text-shadow: 0 2px 0 rgba(0,0,0,0.8);
}

.tutorialCoachArrow {
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 18px solid rgba(255, 213, 106, 0.96);
  filter: drop-shadow(0 6px 5px rgba(0,0,0,0.55));
}

.tutorialCoach[data-placement="below"] .tutorialCoachArrow {
  top: -17px;
  bottom: auto;
  border-top: none;
  border-bottom: 18px solid rgba(255, 213, 106, 0.96);
}

.tutorialCoach[data-placement="left"] .tutorialCoachArrow {
  left: auto;
  right: -24px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid rgba(255, 213, 106, 0.96);
  border-right: none;
}

.tutorialCoach[data-placement="right"] .tutorialCoachArrow {
  left: -24px;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 25px solid rgba(255, 213, 106, 0.96);
  border-left: none;
}

.tutorialTargetPulse {
  position: relative !important;
  z-index: 9100 !important;
  animation: tutorialTargetPulse 0.62s ease-in-out infinite alternate !important;
  box-shadow: 0 0 0 4px rgba(255, 217, 102, 0.72), 0 0 28px rgba(255, 209, 70, 0.88), 0 0 54px rgba(255, 120, 42, 0.55) !important;
}

@keyframes tutorialCoachFloat {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-7px) scale(1.035); }
}

@keyframes tutorialTargetPulse {
  from { filter: brightness(1.08) saturate(1.1); }
  to { filter: brightness(1.52) saturate(1.35); }
}

@media (max-width: 760px), (max-height: 540px) {
  .tutorialCoach {
    min-width: 128px;
    padding: 9px 12px 10px;
    border-radius: 15px;
  }
  .tutorialCoachTap {
    font-size: 22px;
  }
  .tutorialCoachText {
    font-size: 11px;
  }
}



#pauseOverlay,
#missionOverlay,
#shopOverlay,
#controlsOverlay,
#gameOver,
#finalCampaignOverlay {
  overflow: hidden !important;
}

.responsiveFitDialog {
  --overlay-scale: 1;
  transform-origin: center center !important;
  will-change: transform;
}

#pauseOverlay .pauseDialog.responsiveFitDialog {
  transform: translateY(-20px) scale(var(--overlay-scale, 1)) !important;
}

#missionOverlay .missionDialog.responsiveFitDialog {
  transform: translateY(-20px) scale(var(--overlay-scale, 1)) !important;
}

#shopOverlay .shopDialog.responsiveFitDialog,
#controlsOverlay .controlsDialog.responsiveFitDialog,
#gameOver .card.responsiveFitDialog,
#finalCampaignOverlay .finalCampaignDialog.responsiveFitDialog {
  transform: scale(var(--overlay-scale, 1)) !important;
}

#shopOverlay .shopDialog,
#controlsOverlay .controlsDialog,
#gameOver .card,
#finalCampaignOverlay .finalCampaignDialog {
  transform-origin: center center !important;
}


#shopOverlay .shopDialog {
  max-height: none !important;
}

#controlsOverlay .controlsDialog {
  max-height: none !important;
}


#gameOver .card {
  max-height: none !important;
}



#bottomActionBar {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(98vw, calc(min(100vw, calc(100vh * 1.777)) * 0.985)) !important;
  max-width: calc(min(100vw, calc(100vh * 1.777)) - 10px) !important;
}

.finalCampaignDialog {
  grid-template-rows: auto auto auto auto auto auto !important;
}

.finalCampaignActions {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 18px);
  flex-wrap: wrap;
}

.finalCampaignActions .finalCampaignReturnBtn {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  flex: 1 1 270px;
  max-width: 410px;
  min-width: min(100%, 260px);
  min-height: clamp(48px, 5.8vw, 64px);
  margin: 0 !important;
  white-space: normal;
}

.finalCampaignActions .finalCampaignReturnBtn:hover,
.finalCampaignActions .finalCampaignReturnBtn:focus-visible {
  transform: translateY(-1px) !important;
}

.finalCampaignActions .finalCampaignReturnBtn:active {
  transform: translateY(1px) scale(0.99) !important;
}

.finalCampaignReplayBtn {
  background: linear-gradient(180deg, #59d6ff, #2e86ad 48%, #12465e) !important;
  color: #f7efe0 !important;
  border-color: rgba(178, 237, 255, 0.78) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.38) !important;
}

@media (max-width: 760px), (max-height: 620px) {
  .finalCampaignActions {
    gap: 8px;
  }
  .finalCampaignActions .finalCampaignReturnBtn {
    flex-basis: min(100%, 330px);
    min-height: 44px;
    font-size: clamp(13px, 4vw, 18px);
  }
}


#finalCampaignOverlay {
  padding: clamp(8px, 1.8vmin, 22px) !important;
  align-items: center !important;
  justify-content: center !important;
}

#finalCampaignOverlay .finalCampaignDialog {
  width: min(94vw, 1060px) !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  grid-template-rows: auto auto auto auto auto auto !important;
  gap: clamp(6px, 1.05vmin, 12px) !important;
  padding: clamp(18px, 2.8vmin, 34px) clamp(16px, 3.6vmin, 48px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#finalCampaignOverlay .finalCampaignKicker {
  min-height: 24px !important;
  padding: 3px 13px 2px !important;
  font-size: clamp(11px, 1.45vmin, 15px) !important;
}

#finalCampaignOverlay .finalCampaignTitle {
  margin-top: clamp(8px, 1.3vmin, 12px) !important;
  font-size: clamp(56px, 9.8vmin, 96px) !important;
  line-height: 0.86 !important;
}

#finalCampaignOverlay .finalCampaignSubtitle {
  margin-top: 6px !important;
  font-size: clamp(18px, 3.1vmin, 27px) !important;
  line-height: 1 !important;
}

#finalCampaignOverlay .finalCampaignSeal {
  width: clamp(130px, 20vmin, 190px) !important;
  position: relative !important;
}

#finalCampaignOverlay .finalCampaignSealCore {
  position: relative !important;
  z-index: 2 !important;
  transform: translateY(-13%) !important;
  font-size: clamp(50px, 8.8vmin, 76px) !important;
}

#finalCampaignOverlay .finalCampaignSealText {
  position: absolute !important;
  left: 50% !important;
  bottom: 13% !important;
  width: 84% !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
  font-size: clamp(8px, 1.35vmin, 12px) !important;
  line-height: 0.9 !important;
  letter-spacing: 0.45px !important;
  text-align: center !important;
  white-space: normal !important;
}

#finalCampaignOverlay .finalCampaignMessage {
  width: min(92%, 850px) !important;
  font-size: clamp(14px, 2.35vmin, 20px) !important;
  line-height: 1.24 !important;
  margin: 0 !important;
}

#finalCampaignOverlay .finalCampaignStats {
  width: min(100%, 840px) !important;
  gap: clamp(8px, 1.45vmin, 16px) !important;
}

#finalCampaignOverlay .finalCampaignStat {
  min-height: clamp(72px, 11.2vmin, 100px) !important;
  padding: clamp(8px, 1.3vmin, 12px) clamp(8px, 1.5vmin, 12px) !important;
  gap: clamp(4px, 0.8vmin, 8px) !important;
}

#finalCampaignOverlay .finalCampaignStat span {
  font-size: clamp(10px, 1.75vmin, 15px) !important;
  line-height: 1.05 !important;
}

#finalCampaignOverlay .finalCampaignStat strong {
  font-size: clamp(30px, 6.1vmin, 48px) !important;
  line-height: 0.95 !important;
}

#finalCampaignOverlay .finalCampaignRank {
  font-size: clamp(16px, 2.65vmin, 24px) !important;
  line-height: 1.05 !important;
}

#finalCampaignOverlay .finalCampaignActions {
  width: min(100%, 860px) !important;
  gap: clamp(10px, 1.8vmin, 16px) !important;
  margin-top: 0 !important;
}

#finalCampaignOverlay .finalCampaignActions .finalCampaignReturnBtn {
  flex: 1 1 310px !important;
  min-width: min(100%, 285px) !important;
  max-width: 410px !important;
  min-height: clamp(48px, 6.5vmin, 62px) !important;
  font-size: clamp(15px, 2.45vmin, 21px) !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  #finalCampaignOverlay .finalCampaignDialog {
    width: min(94vw, 560px) !important;
    padding: 16px 13px !important;
  }
  #finalCampaignOverlay .finalCampaignStats {
    grid-template-columns: 1fr !important;
    width: min(100%, 430px) !important;
  }
  #finalCampaignOverlay .finalCampaignStat {
    min-height: 60px !important;
  }
  #finalCampaignOverlay .finalCampaignActions .finalCampaignReturnBtn {
    flex-basis: min(100%, 340px) !important;
  }
}



#finalCampaignOverlay {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 24 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#finalCampaignOverlay.hidden {
  display: none !important;
}

#finalCampaignOverlay.show {
  display: flex !important;
}

#finalCampaignOverlay .finalCampaignDialog,
#finalCampaignOverlay .finalCampaignDialog.responsiveFitDialog {
  --overlay-scale: 1 !important;
  transform: none !important;
  transform-origin: center center !important;
  width: min(92vw, 760px) !important;
  max-width: calc(100vw - 36px) !important;
  max-height: calc(100vh - 36px) !important;
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-rows: auto auto auto auto auto auto !important;
  align-items: center !important;
  justify-items: center !important;
  gap: clamp(6px, 1.05vmin, 10px) !important;
  padding: clamp(16px, 2.15vmin, 24px) clamp(16px, 2.65vmin, 30px) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#finalCampaignOverlay .finalCampaignHeader,
#finalCampaignOverlay .finalCampaignSeal,
#finalCampaignOverlay .finalCampaignMessage,
#finalCampaignOverlay .finalCampaignStats,
#finalCampaignOverlay .finalCampaignRank,
#finalCampaignOverlay .finalCampaignActions {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

#finalCampaignOverlay .finalCampaignKicker {
  min-height: 20px !important;
  padding: 3px 12px 2px !important;
  font-size: clamp(9px, 1.25vmin, 12px) !important;
  line-height: 1 !important;
}

#finalCampaignOverlay .finalCampaignTitle {
  margin-top: 6px !important;
  font-size: clamp(34px, 7.2vmin, 58px) !important;
  line-height: 0.88 !important;
  animation: none !important;
  transform: none !important;
}

#finalCampaignOverlay .finalCampaignSubtitle {
  margin-top: 4px !important;
  font-size: clamp(12px, 2.1vmin, 18px) !important;
  line-height: 1.05 !important;
}

#finalCampaignOverlay .finalCampaignSeal {
  width: clamp(84px, 15vmin, 126px) !important;
  aspect-ratio: 1 !important;
  position: relative !important;
}

#finalCampaignOverlay .finalCampaignSealCore {
  position: relative !important;
  z-index: 2 !important;
  transform: translateY(-12%) !important;
  font-size: clamp(30px, 6.2vmin, 48px) !important;
  line-height: 0.9 !important;
}

#finalCampaignOverlay .finalCampaignSealText {
  position: absolute !important;
  left: 50% !important;
  bottom: 12% !important;
  width: 88% !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
  font-size: clamp(6px, 1.03vmin, 9px) !important;
  line-height: 0.92 !important;
  letter-spacing: 0.35px !important;
  text-align: center !important;
  white-space: normal !important;
}

#finalCampaignOverlay .finalCampaignMessage {
  width: min(100%, 650px) !important;
  font-size: clamp(11px, 1.65vmin, 15px) !important;
  line-height: 1.22 !important;
  margin: 0 !important;
}

#finalCampaignOverlay .finalCampaignStats {
  width: min(100%, 640px) !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(6px, 1.05vmin, 10px) !important;
}

#finalCampaignOverlay .finalCampaignStat {
  min-height: clamp(50px, 8.3vmin, 66px) !important;
  padding: clamp(6px, 1vmin, 9px) clamp(6px, 1vmin, 9px) !important;
  gap: 4px !important;
  border-radius: 15px !important;
}

#finalCampaignOverlay .finalCampaignStat span {
  font-size: clamp(7px, 1.12vmin, 10px) !important;
  line-height: 1.05 !important;
}

#finalCampaignOverlay .finalCampaignStat strong {
  font-size: clamp(18px, 4.1vmin, 31px) !important;
  line-height: 0.95 !important;
}

#finalCampaignOverlay .finalCampaignRank {
  font-size: clamp(11px, 1.85vmin, 16px) !important;
  line-height: 1.05 !important;
}

#finalCampaignOverlay .finalCampaignActions {
  width: min(100%, 620px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: clamp(7px, 1.25vmin, 10px) !important;
  margin: 0 !important;
}

#finalCampaignOverlay .finalCampaignActions .finalCampaignReturnBtn,
#finalCampaignOverlay .finalCampaignActions .finalCampaignReturnBtn:hover,
#finalCampaignOverlay .finalCampaignActions .finalCampaignReturnBtn:focus-visible,
#finalCampaignOverlay .finalCampaignActions .finalCampaignReturnBtn:active {
  transform: none !important;
}

#finalCampaignOverlay .finalCampaignActions .finalCampaignReturnBtn {
  flex: 1 1 230px !important;
  min-width: min(100%, 220px) !important;
  max-width: 300px !important;
  min-height: clamp(36px, 5.3vmin, 46px) !important;
  padding: 0 14px !important;
  font-size: clamp(11px, 1.9vmin, 15px) !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  #finalCampaignOverlay {
    padding: 12px !important;
  }
  #finalCampaignOverlay .finalCampaignDialog,
  #finalCampaignOverlay .finalCampaignDialog.responsiveFitDialog {
    width: min(94vw, 520px) !important;
    max-height: calc(100vh - 24px) !important;
    padding: 14px 12px !important;
    gap: 6px !important;
  }
  #finalCampaignOverlay .finalCampaignStats {
    grid-template-columns: 1fr !important;
    width: min(100%, 360px) !important;
  }
  #finalCampaignOverlay .finalCampaignStat {
    min-height: 46px !important;
  }
  #finalCampaignOverlay .finalCampaignActions .finalCampaignReturnBtn {
    flex-basis: min(100%, 300px) !important;
  }
}



#controlsOverlay .controlsDialog {
  padding-top: 56px !important;
}

#controlsOverlay .controlsDialog > .controlsCloseBtn {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
}

#controlsOverlay .controlsTitle {
  padding-right: 56px;
}

#tutorialCoach[data-placement="below"] {
  z-index: 9201;
}


#shopOverlay .shopDialog {
  width: min(calc(92vw - 42px), 497px) !important;
  margin-left: 42px !important;
}



#shopOverlay #shopGrenadeBtn,
#shopOverlay #shopSupportBtn {
  position: relative !important;
  left: -3px !important;
}



html, body, button {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-synthesis: none;
}

#shopOverlay .shopPanelTitle,
#shopOverlay .shopCreditsBox,
#shopOverlay .shopItemName,
#shopOverlay .shopItemCost,
#shopOverlay .shopItemStatus,
#shopOverlay .shopBuyBtn,
#shopOverlay .shopSpecialName,
#shopOverlay .shopSpecialCost,
#shopOverlay .shopSpecialStatus,
#shopOverlay .shopSpecialBuyBtn,
#shopOverlay .shopHint,
#shopOverlay .shopNextLevelBadge,
#bottomActionBar .weaponBtnName,
#bottomActionBar .specialBtnName,
#bottomActionBar .specialKeyBadge {
  font-family: "Black Ops One", "Arial Black", Impact, Haettenschweiler, sans-serif !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-synthesis: none;
}


#bottomActionBar {
  width: max-content !important;
  max-width: none !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(5px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) scale(var(--actionbar-scale, 1)) !important;
  transform-origin: center bottom !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  will-change: transform;
}

#bottomActionBar .actionGroup,
#bottomActionBar #weaponButtons,
#bottomActionBar .specialControls,
#bottomActionBar .weaponBtn,
#bottomActionBar .touchBtn,
#bottomActionBar .controlsInfoBtn {
  flex-shrink: 0 !important;
}

#mobileControls {
  overflow: visible !important;
}

@media (max-width: 900px), (max-height: 520px) {
  #bottomActionBar {
    padding: clamp(3px, 0.8vmin, 8px) clamp(4px, 1vmin, 10px) !important;
  }

  #hudTop {
    top: max(4px, env(safe-area-inset-top)) !important;
  }

  #hudTop .panel.left.levelPanel,
  #hudTop .panel.center {
    min-width: clamp(54px, 12vw, 76px) !important;
    padding: clamp(4px, 0.9vmin, 7px) clamp(6px, 1.2vmin, 10px) !important;
  }

  #hudTop .panel.left.levelPanel .label,
  #hudTop .panel.center .label {
    font-size: clamp(7px, 1.5vmin, 9px) !important;
  }

  #hudTop .panel.left.levelPanel div:last-child,
  #hudTop .panel.center div:last-child {
    font-size: clamp(13px, 3vmin, 17px) !important;
  }

  .pauseBtn {
    top: max(6px, env(safe-area-inset-top)) !important;
    right: max(6px, env(safe-area-inset-right)) !important;
    width: clamp(38px, 8vmin, 50px) !important;
    height: clamp(38px, 8vmin, 50px) !important;
    min-width: clamp(38px, 8vmin, 50px) !important;
    min-height: clamp(38px, 8vmin, 50px) !important;
  }
}


/* Controlled tutorial close hint for the first Controls Info display.
   It keeps the real Controls Info dialog, keeps the X fixed on the right,
   and removes the large floating tutorial card that could cover key rows. */
#controlsOverlay .controlsTutorialHint {
  position: absolute;
  top: 16px;
  right: 72px;
  left: auto;
  z-index: 2;
  display: none;
  pointer-events: none;
  text-align: right;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(20px, 2.8vw, 34px);
  line-height: 1;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.78), 0 0 12px rgba(0,0,0,0.45);
  white-space: nowrap;
}

#controlsOverlay .controlsTutorialHint::after {
  content: '▶';
  display: inline-block;
  margin-left: 10px;
  font-size: 0.92em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.78), 0 0 12px rgba(0,0,0,0.45);
  animation: controlsHintArrowBlink 0.85s ease-in-out infinite alternate;
}

#controlsOverlay .controlsTutorialHint.show {
  display: block;
}

#controlsOverlay.tutorialInfoMode .controlsDialog {
  /* Keep the original Controls Info geometry during the tutorial. */
}

#controlsOverlay.tutorialInfoMode .controlsDialog > #controlsCloseBtn.tutorialTargetPulse {
  animation: controlsClosePulse 0.78s ease-in-out infinite alternate !important;
  box-shadow: 0 0 0 3px rgba(255, 217, 102, 0.62), 0 0 22px rgba(255, 207, 80, 0.82), inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

@keyframes controlsClosePulse {
  from { filter: brightness(1.05) saturate(1.05); }
  to { filter: brightness(1.42) saturate(1.25); }
}

@keyframes controlsHintArrowBlink {
  from { opacity: 0.45; transform: translateX(0px); }
  to { opacity: 1; transform: translateX(3px); }
}

@media (max-width: 760px), (max-height: 540px) {
  #controlsOverlay .controlsTutorialHint {
    top: 12px;
    right: 58px;
    font-size: clamp(14px, 2.3vw, 20px);
  }

  #controlsOverlay .controlsTutorialHint::after {
    margin-left: 7px;
  }
}


/* Final guard: the tutorial pulse must never change the original Controls Info X placement. */
#controlsOverlay .controlsDialog > #controlsCloseBtn,
#controlsOverlay .controlsDialog > #controlsCloseBtn.tutorialTargetPulse,
#controlsOverlay.tutorialInfoMode .controlsDialog > #controlsCloseBtn,
#controlsOverlay.tutorialInfoMode .controlsDialog > #controlsCloseBtn.tutorialTargetPulse {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 9101 !important;
}

/* Mobile/tablet operational viewport and safe bottom zone.
   The JS sets --usl-vw/--usl-vh from visualViewport so the game fits the real
   browser viewport instead of an ideal full screen. On touch devices a bottom
   reserve keeps controls away from rounded device/browser edges. */
html,
body {
  width: var(--usl-vw, 100vw) !important;
  height: var(--usl-vh, 100dvh) !important;
  min-height: var(--usl-vh, 100dvh) !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

body {
  align-items: center !important;
  justify-content: center !important;
}

#app {
  width: var(--usl-vw, 100vw) !important;
  height: var(--usl-safe-vh, 100dvh) !important;
  max-width: var(--usl-vw, 100vw) !important;
  max-height: var(--usl-safe-vh, 100dvh) !important;
  margin: 0 0 var(--mobile-edge-reserve, 0px) 0 !important;
  overflow: visible !important;
}

#gameCanvas {
  width: min(var(--usl-vw, 100vw), calc(var(--usl-safe-vh, 100dvh) * 1.7777778)) !important;
  height: min(var(--usl-safe-vh, 100dvh), calc(var(--usl-vw, 100vw) / 1.7777778)) !important;
  max-width: var(--usl-vw, 100vw) !important;
  max-height: var(--usl-safe-vh, 100dvh) !important;
}

body.usl-touch-layout #bottomActionBar {
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  max-width: calc(var(--usl-vw, 100vw) - 24px) !important;
}

body.usl-touch-layout #mobileControls {
  inset: 0 !important;
  height: var(--usl-safe-vh, 100dvh) !important;
}

body.usl-touch-layout #bottomActionBar .specialKeyBadge {
  display: none !important;
}

body.usl-touch-layout #bottomActionBar .specialBtnFrame,
body.usl-touch-layout #bottomActionBar .heliBtnFrame {
  padding-top: 0 !important;
}

body.usl-touch-layout .pauseBtn {
  top: max(8px, env(safe-area-inset-top)) !important;
  right: max(8px, env(safe-area-inset-right)) !important;
}

body.usl-touch-layout #hudTop {
  top: max(6px, env(safe-area-inset-top)) !important;
  width: min(94vw, calc(min(var(--usl-vw, 100vw), calc(var(--usl-safe-vh, 100dvh) * 1.7777778)) * 0.92)) !important;
}

/* Controls Info: PC keeps keyboard keys; touch devices get visual button previews. */
.controlsGridTouch {
  display: none !important;
}

body.usl-touch-layout .controlsGridDesktop {
  display: none !important;
}

body.usl-touch-layout .controlsGridTouch {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

body.usl-touch-layout .controlsFooter {
  display: none !important;
}

body.usl-touch-layout #controlsOverlay {
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
}

body.usl-touch-layout #controlsOverlay .controlsDialog,
body.usl-touch-layout #controlsOverlay .controlsDialog.responsiveFitDialog {
  width: min(calc(var(--usl-vw, 100vw) - 24px), 930px) !important;
  max-height: calc(var(--usl-safe-vh, 100dvh) - 20px) !important;
  overflow: hidden !important;
  padding: 16px 14px 12px !important;
  transform-origin: center center !important;
}

body.usl-touch-layout #controlsOverlay .controlsTitle {
  margin-bottom: 10px !important;
  padding-right: 52px !important;
  font-size: clamp(19px, 4.2vmin, 30px) !important;
}

body.usl-touch-layout #controlsOverlay .controlsCloseBtn {
  width: clamp(36px, 7.3vmin, 44px) !important;
  height: clamp(36px, 7.3vmin, 44px) !important;
  min-width: clamp(36px, 7.3vmin, 44px) !important;
  min-height: clamp(36px, 7.3vmin, 44px) !important;
  font-size: clamp(20px, 4.3vmin, 26px) !important;
}

body.usl-touch-layout .touchInfoRow {
  min-height: clamp(44px, 8.3vmin, 58px) !important;
  padding: clamp(5px, 1vmin, 8px) clamp(7px, 1.4vmin, 11px) !important;
  gap: 8px !important;
}

body.usl-touch-layout .touchInfoRow .controlsLegendText {
  font-size: clamp(11px, 2.25vmin, 15px) !important;
  line-height: 1.02 !important;
}

body.usl-touch-layout .touchInfoRow .controlsLegendIcon,
body.usl-touch-layout .touchInfoRow .controlLegendInfo,
body.usl-touch-layout .touchInfoRow .controlLegendPause,
body.usl-touch-layout .touchInfoRow .controlLegendPlay {
  width: clamp(26px, 5.3vmin, 34px) !important;
  height: clamp(26px, 5.3vmin, 34px) !important;
  flex: 0 0 clamp(26px, 5.3vmin, 34px) !important;
}

.controlsTouchPreview {
  flex: 0 0 auto;
  min-width: clamp(62px, 12vmin, 96px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: 'Black Ops One', system-ui, sans-serif;
  color: #fff4d6;
  text-align: center;
}

.touchPreviewButton.touchPreviewMove {
  width: clamp(32px, 7vmin, 45px);
  height: clamp(46px, 10vmin, 66px);
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,0.34));
}

.touchPreviewShoot {
  position: relative;
  width: clamp(70px, 13vmin, 96px);
  height: clamp(46px, 8.8vmin, 58px);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 45%, rgba(255,231,150,0.32), rgba(120,40,30,0.92));
  border: 2px solid rgba(255, 216, 120, 0.55);
  box-shadow: 0 7px 13px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
}

.touchPreviewShootLabel {
  width: clamp(42px, 8vmin, 58px);
  height: auto;
  object-fit: contain;
}

.touchPreviewCrosshair {
  width: clamp(17px, 3.5vmin, 23px);
  height: clamp(17px, 3.5vmin, 23px);
  border: 2px solid rgba(255,245,220,0.94);
  border-radius: 999px;
  position: relative;
}

.touchPreviewCrosshair::before,
.touchPreviewCrosshair::after {
  content: '';
  position: absolute;
  background: rgba(255,245,220,0.94);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.touchPreviewCrosshair::before { width: 2px; height: 130%; }
.touchPreviewCrosshair::after { width: 130%; height: 2px; }

.touchPreviewCard,
.touchPreviewWeapon,
.touchPreviewMenu {
  min-height: clamp(40px, 7.8vmin, 54px);
  padding: 4px 7px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(46, 57, 72, 0.96), rgba(20, 26, 38, 0.98));
  border: 1px solid rgba(255, 216, 142, 0.28);
  box-shadow: 0 7px 13px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.09);
}

.touchPreviewCard img,
.touchPreviewMenu img {
  width: clamp(28px, 5.8vmin, 38px);
  height: clamp(28px, 5.8vmin, 38px);
  object-fit: contain;
}

.touchPreviewWeapon {
  min-width: clamp(88px, 15.5vmin, 126px);
  flex-direction: column;
  gap: 2px;
}

.touchPreviewWeapon img {
  width: clamp(54px, 10vmin, 80px);
  height: clamp(22px, 4.6vmin, 36px);
  object-fit: contain;
}

.touchPreviewCard span,
.touchPreviewWeapon span,
.touchPreviewMenu span {
  font-size: clamp(8px, 1.65vmin, 11px);
  line-height: 1;
  white-space: nowrap;
}

.touchPreviewMenu {
  min-width: clamp(70px, 12vmin, 94px);
}

.touchPreviewPauseBars {
  width: clamp(30px, 6vmin, 40px);
  height: clamp(30px, 6vmin, 40px);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(180deg, rgba(77, 27, 18, 0.86), rgba(40, 13, 9, 0.96));
  border: 1px solid rgba(255, 196, 120, 0.45);
}

.touchPreviewPauseBars::before,
.touchPreviewPauseBars::after {
  content: '';
  width: 5px;
  height: 18px;
  border-radius: 3px;
  background: #fff2ce;
}

@media (max-width: 760px), (max-height: 430px) {
  body.usl-touch-layout .controlsGridTouch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
  }

  body.usl-touch-layout #controlsOverlay .controlsDialog,
  body.usl-touch-layout #controlsOverlay .controlsDialog.responsiveFitDialog {
    padding: 12px 10px 10px !important;
  }

  body.usl-touch-layout #controlsOverlay .controlsTitle {
    margin-bottom: 7px !important;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  body.usl-touch-layout .controlsGridTouch {
    grid-template-columns: 1fr;
  }
}


/* v2 mobile/tablet layout correction:
   - Desktop returns to the original full-screen canvas behavior.
   - Touch layouts keep strict 16:9 with black side bands when necessary.
   - Pause is anchored inside the real game rectangle, not in the black bands.
   - Touch Controls Info gets more horizontal breathing room. */
body:not(.usl-touch-layout) #app {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body:not(.usl-touch-layout) #gameCanvas {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
}

body:not(.usl-touch-layout) #hudTop {
  width: 92vw !important;
}

body.usl-touch-layout #gameCanvas {
  width: var(--usl-game-w, min(var(--usl-vw, 100vw), calc(var(--usl-safe-vh, 100dvh) * 1.7777778))) !important;
  height: var(--usl-game-h, min(var(--usl-safe-vh, 100dvh), calc(var(--usl-vw, 100vw) / 1.7777778))) !important;
  max-width: var(--usl-vw, 100vw) !important;
  max-height: var(--usl-safe-vh, 100dvh) !important;
}

body.usl-touch-layout .pauseBtn {
  top: calc(var(--usl-game-top-gap, 0px) + max(8px, env(safe-area-inset-top))) !important;
  right: calc(var(--usl-game-side-gap, 0px) + max(8px, env(safe-area-inset-right))) !important;
  bottom: auto !important;
}

body.usl-touch-layout #hudTop {
  top: calc(var(--usl-game-top-gap, 0px) + max(6px, env(safe-area-inset-top))) !important;
  width: min(calc(var(--usl-game-w, 100vw) - 24px), calc(var(--usl-vw, 100vw) - 24px)) !important;
}

body.usl-touch-layout #controlsOverlay .controlsDialog,
body.usl-touch-layout #controlsOverlay .controlsDialog.responsiveFitDialog {
  width: min(calc(var(--usl-vw, 100vw) - 16px), 980px) !important;
  max-height: calc(var(--usl-safe-vh, 100dvh) - 16px) !important;
  padding: 14px 14px 12px !important;
}

@media (orientation: landscape) and (max-height: 560px) {
  body.usl-touch-layout .controlsGridTouch {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px 8px !important;
  }

  body.usl-touch-layout .touchInfoRow {
    min-height: clamp(40px, 10.8vh, 54px) !important;
    padding: clamp(4px, 1.3vh, 7px) clamp(6px, 1.4vw, 10px) !important;
  }

  body.usl-touch-layout .touchInfoRow .controlsLegendText {
    font-size: clamp(10px, 2.55vh, 14px) !important;
  }

  .touchPreviewButton.touchPreviewMove {
    width: clamp(30px, 7.4vh, 42px) !important;
    height: clamp(42px, 10.4vh, 60px) !important;
  }

  .touchPreviewCard,
  .touchPreviewWeapon,
  .touchPreviewMenu {
    min-height: clamp(36px, 9.5vh, 50px) !important;
  }

  .touchPreviewWeapon img {
    width: clamp(48px, 12vh, 74px) !important;
    height: clamp(19px, 5.2vh, 32px) !important;
  }
}

/* Controlled medals-only mobile/tablet top visibility fix.
   Scope is limited to the Medals overlay: it keeps the existing game layout,
   preserves black side bands when 16:9 needs them, and only shrinks/positions
   the medals panel so its top edge and close X stay fully visible on touch screens. */
body.usl-touch-layout #medalsOverlay {
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding-top: calc(var(--usl-game-top-gap, 0px) + max(12px, env(safe-area-inset-top))) !important;
  padding-right: calc(var(--usl-game-side-gap, 0px) + max(6px, env(safe-area-inset-right))) !important;
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  padding-left: calc(var(--usl-game-side-gap, 0px) + max(6px, env(safe-area-inset-left))) !important;
}

body.usl-touch-layout .medalsDialog {
  width: min(
    calc(var(--usl-game-w, 100vw) - 12px),
    calc((var(--usl-safe-vh, 100dvh) - var(--usl-game-top-gap, 0px) - 26px) * 1.988984088),
    1624px
  ) !important;
  max-width: calc(var(--usl-game-w, 100vw) - 12px) !important;
  max-height: calc(var(--usl-safe-vh, 100dvh) - var(--usl-game-top-gap, 0px) - 26px) !important;
}

@media (orientation: landscape) and (max-height: 560px) {
  body.usl-touch-layout #medalsOverlay {
    padding-top: calc(var(--usl-game-top-gap, 0px) + max(10px, env(safe-area-inset-top))) !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  }

  body.usl-touch-layout .medalsDialog {
    width: min(
      calc(var(--usl-game-w, 100vw) - 10px),
      calc((var(--usl-safe-vh, 100dvh) - var(--usl-game-top-gap, 0px) - 20px) * 1.988984088),
      1624px
    ) !important;
    max-height: calc(var(--usl-safe-vh, 100dvh) - var(--usl-game-top-gap, 0px) - 20px) !important;
  }

  body.usl-touch-layout .medalsCloseBtn {
    min-width: 24px !important;
    min-height: 24px !important;
  }
}

/* Mobile multitouch action fix: support buttons must accept an independent
   touch while the Shoot button is still being held. */
body.usl-touch-layout #bottomActionBar .weaponBtn,
body.usl-touch-layout #bottomActionBar .touchBtn,
body.usl-touch-layout #bottomActionBar .controlsInfoBtn {
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}
