:root {
  --text: #dbcaa1;
  --hud-stone: #5e4f3a;
  --hud-rust: #8f5f34;
  --hud-deep: #21180f;
  --hud-shadow: #100b07;
  --warn: #d45f34;
  --safe: #7bb84f;
  --menu-bg-url: url("./assets/ui/final_open_scene.png");
  --menu-dim: 0.22;
  --menu-dim-soft: 0.13;
  --menu-radial-inner: 0.07;
  --menu-radial-mid: 0.34;
  --menu-radial-outer: 0.42;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(180deg, rgba(8, 6, 5, var(--menu-dim-soft)), rgba(8, 6, 5, var(--menu-dim))),
    radial-gradient(circle at 50% 16%, rgba(18, 14, 11, var(--menu-radial-inner)) 0%, rgba(8, 6, 5, var(--menu-radial-mid)) 68%, rgba(8, 6, 5, var(--menu-radial-outer)) 100%),
    var(--menu-bg-url) center / cover no-repeat,
    radial-gradient(circle at 50% 0%, #2a2520 0%, #1a1511 48%, #080605 100%);
  color: var(--text);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  display: grid;
  place-items: center;
  transition: background 220ms ease-out;
  overscroll-behavior: none;
}

body.mobileLite {
  place-items: stretch;
  overflow: hidden;
}

body.mobileLite #boot {
  justify-self: center;
  align-self: center;
}

.hidden {
  display: none !important;
}

#boot {
  width: min(860px, 92vw);
  border: 3px solid #6e5638;
  border-top-color: #ae8758;
  border-left-color: #ae8758;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.83), rgba(12, 8, 6, 0.83));
  padding: 24px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

#boot h1 {
  margin-top: 0;
  color: #f7bf70;
  letter-spacing: 1.6px;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.05;
  text-shadow:
    0 2px 0 #5f3f24,
    0 6px 16px rgba(0, 0, 0, 0.58),
    0 0 24px rgba(255, 173, 86, 0.26);
  transform: skew(-1deg);
}

#bootTagline {
  margin: 8px 0 14px;
  color: #ffd58f;
  font-size: clamp(1.25rem, 3.2vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 #6d4726,
    0 8px 22px rgba(0, 0, 0, 0.62),
    0 0 20px rgba(239, 143, 61, 0.25);
  animation: bootTaglinePulse 2.15s ease-in-out infinite;
}

#bootRotateNotice {
  margin: 0 auto 12px;
  width: fit-content;
  max-width: min(760px, 96%);
  padding: 7px 12px;
  border: 2px solid #7d5f3c;
  border-top-color: #d8ad6b;
  border-left-color: #d8ad6b;
  background: linear-gradient(180deg, rgba(56, 34, 16, 0.86), rgba(31, 19, 10, 0.9));
  color: #ffdca0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.bootRotatePulse {
  animation: bootRotatePulse 0.85s ease-in-out;
}

@keyframes bootRotatePulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  35% { filter: brightness(1.18); transform: scale(1.01); }
  70% { filter: brightness(1.06); transform: scale(1.005); }
}

@keyframes bootTaglinePulse {
  0%, 100% { transform: translateY(0) scale(1); filter: saturate(1); }
  50% { transform: translateY(-1px) scale(1.02); filter: saturate(1.12); }
}

#bootHelp {
  width: min(760px, 96%);
  margin: 0 auto 8px;
  display: grid;
  gap: 8px;
}

.bootHelpSection {
  border: 2px solid #5b4732;
  border-top-color: #8f6f49;
  border-left-color: #8f6f49;
  background: linear-gradient(180deg, rgba(26, 18, 12, 0.72), rgba(15, 10, 7, 0.8));
  text-align: left;
  padding: 8px 10px;
}

.bootHelpTitle {
  color: #f2cb88;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.bootHelpList {
  margin: 0;
  padding-left: 18px;
  list-style: square;
}

.bootHelpList li {
  margin: 3px 0;
  color: #e1c79e;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
}

#boot button {
  margin-top: 14px;
  cursor: pointer;
  border: 2px solid #6e4a2a;
  border-top-color: #cd8f4a;
  border-left-color: #cd8f4a;
  background: linear-gradient(180deg, #ca8d49, #8f5b2f);
  color: #120d08;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 18px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

#bootButtons {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#bootButtons button {
  margin-top: 0;
}

#menuVisualControls {
  margin: 14px auto 6px;
  width: min(560px, 92%);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  justify-items: center;
  border: 2px solid #5b4732;
  border-top-color: #8f6f49;
  border-left-color: #8f6f49;
  background: linear-gradient(180deg, rgba(26, 18, 12, 0.72), rgba(15, 10, 7, 0.8));
  padding: 8px 10px;
}

#menuVisualControls label {
  margin-right: 0;
  font-size: 0.9rem;
  color: #e7c68f;
}

#menuOverlayRange {
  width: min(280px, 42vw);
  accent-color: #ca8d49;
}

#menuOverlayValue {
  min-width: 46px;
  text-align: right;
  font-family: "Courier New", Courier, monospace;
  color: #f2cf92;
}

#menuOverlayResetBtn {
  margin-top: 0 !important;
  padding: 6px 10px !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.4px !important;
}

#boot label {
  margin-right: 8px;
}

#boot select {
  margin-top: 10px;
  margin-left: 8px;
  padding: 6px 8px;
  border: 2px solid #544332;
  border-top-color: #8b6f52;
  border-left-color: #8b6f52;
  background: #16100a;
  color: #e8d3ae;
  font-family: "Courier New", Courier, monospace;
}

kbd {
  border: 1px solid #77634c;
  border-bottom-width: 2px;
  padding: 1px 6px;
  background: #140f0b;
}

#hud {
  width: min(98vw, 1680px);
  position: relative;
}

#pauseMenu {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(5, 4, 3, 0.52);
  backdrop-filter: blur(2px);
}

#pausePanel {
  width: min(540px, 90%);
  border: 3px solid #6d5638;
  border-top-color: #b18a58;
  border-left-color: #b18a58;
  background: linear-gradient(180deg, rgba(23, 16, 11, 0.95), rgba(12, 8, 6, 0.95));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 16px 18px;
}

#pauseTitle {
  color: #f4c277;
  font-size: 1.7rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pauseRow {
  display: grid;
  grid-template-columns: 110px 1fr 54px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.pauseRow label {
  color: #e5c695;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
}

.pauseRow input[type="range"] {
  width: 100%;
  accent-color: #ca8d49;
}

.pauseRow span {
  color: #f5d18f;
  font-family: "Courier New", Courier, monospace;
  text-align: right;
}

#pauseActions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

#pauseActions button {
  cursor: pointer;
  border: 2px solid #6e4a2a;
  border-top-color: #cd8f4a;
  border-left-color: #cd8f4a;
  background: linear-gradient(180deg, #ca8d49, #8f5b2f);
  color: #120d08;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#pauseHint {
  margin-top: 10px;
  color: #ccb08a;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.86rem;
}

#mobileHud {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

#mobilePortraitNotice {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 4, 3, 0.75);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

#mobilePortraitCard {
  width: min(440px, 86vw);
  border: 3px solid #6d5638;
  border-top-color: #b18a58;
  border-left-color: #b18a58;
  background: linear-gradient(180deg, rgba(23, 16, 11, 0.95), rgba(12, 8, 6, 0.95));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 14px 16px;
  text-align: center;
}

#mobilePortraitTitle {
  color: #f4c277;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

#mobilePortraitCard p {
  margin: 6px 0;
  color: #dec49a;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
}

#mobileControls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mobilePad {
  position: absolute;
  width: min(28vw, 170px);
  height: min(28vw, 170px);
  border-radius: 50%;
  border: 2px solid rgba(192, 150, 92, 0.72);
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 179, 108, 0.16) 0%, rgba(18, 12, 8, 0.36) 66%, rgba(8, 5, 3, 0.58) 100%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.42), 0 8px 20px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
  touch-action: none;
}

#mobileLeftPad {
  left: 14px;
  bottom: 118px;
}

#mobileRightPad {
  right: 14px;
  bottom: 118px;
}

.mobileStick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(241, 198, 118, 0.9);
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 234, 183, 0.42) 0%, rgba(234, 162, 72, 0.35) 40%, rgba(47, 29, 16, 0.75) 100%);
}

#mobileButtons {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 86px));
  gap: 8px;
  pointer-events: auto;
}

#mobileButtons button {
  min-height: 46px;
  border: 2px solid #6e4a2a;
  border-top-color: #cd8f4a;
  border-left-color: #cd8f4a;
  background: linear-gradient(180deg, rgba(202, 141, 73, 0.95), rgba(138, 86, 41, 0.95));
  color: #1a1109;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  touch-action: none;
  pointer-events: auto;
}

#mobileButtons button:active,
#mobileButtons button.mobileActive {
  filter: brightness(1.08) saturate(1.12);
  transform: translateY(1px);
}

#hud::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 28;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0, rgba(0, 0, 0, 0.12) 1px, transparent 2px, transparent 4px),
    radial-gradient(circle at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.24) 100%);
  mix-blend-mode: multiply;
}

#game {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid #5c4b35;
  border-top-color: #98754e;
  border-left-color: #98754e;
  background: #000;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
}

body.mobileLite #hud {
  width: 100vw;
  height: 100dvh;
}

body.mobileLite #game {
  width: 100vw !important;
  height: 100dvh !important;
  border-width: 2px;
}

#weaponOverlay {
  position: absolute;
  right: 0;
  left: auto;
  bottom: 112px;
  width: 0;
  height: 0;
  z-index: 8;
  pointer-events: none;
  overflow: visible;
}

#weaponOverlayImg {
  position: absolute;
  right: 0;
  left: auto;
  bottom: 0;
  max-width: none;
  max-height: none;
  transform-origin: 100% 100%;
  image-rendering: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55));
  opacity: 1;
}

#weaponOverlay.firing #weaponOverlayImg {
  filter:
    drop-shadow(0 0 28px rgba(255, 173, 71, 0.55))
    drop-shadow(0 16px 22px rgba(0, 0, 0, 0.55))
    brightness(1.11)
    saturate(1.12);
  animation: weaponFirePulse 90ms steps(2, end) infinite;
}

@keyframes weaponFirePulse {
  0% {
    opacity: 0.98;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.98;
  }
}

#hud.mouseCaptured #game {
  cursor: none;
}

#hud.cinematicMode #hudTop,
#hud.cinematicMode #crosshairWrap,
#hud.cinematicMode #hudBottom,
#hud.cinematicMode #messageStack,
#hud.cinematicMode #weaponOverlay {
  display: none !important;
}

#hudTop {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 15;
  display: grid;
  gap: 4px;
  pointer-events: none;
}

#levelName,
#objective {
  display: inline-block;
  width: fit-content;
  max-width: 74%;
  padding: 3px 8px;
  border: 2px solid #564936;
  border-top-color: #8d7557;
  border-left-color: #8d7557;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.86), rgba(12, 8, 6, 0.86)), url("./assets/ui/panel_plate.png") center / cover no-repeat;
  color: #f3c985;
  text-shadow: 1px 1px 0 #1a120b;
  letter-spacing: 0.4px;
}

#objective {
  color: #d8c4a1;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
}

#crosshairWrap {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 18;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#crosshair {
  width: 28px;
  height: 28px;
  background: url("./assets/ui/crosshair.png") center / contain no-repeat;
  image-rendering: pixelated;
}

#hudBottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  min-height: 136px;
  display: grid;
  grid-template-columns: minmax(148px, 1fr) minmax(220px, 1.4fr) minmax(148px, 1fr) minmax(180px, 1fr);
  gap: 10px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(18, 13, 9, 0.1), rgba(9, 5, 3, 0.24)),
    url("./assets/hud/statusbar_bg.png") center / cover no-repeat;
  border-top: 3px solid #a28055;
  box-shadow: inset 0 10px 16px rgba(0, 0, 0, 0.36);
  pointer-events: none;
}

.statusPanel,
#panelCenter {
  border: 3px solid #443221;
  border-top-color: #846545;
  border-left-color: #846545;
  background: linear-gradient(180deg, rgba(34, 24, 15, 0.85), rgba(22, 14, 9, 0.94)), url("./assets/ui/panel_plate.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 224, 173, 0.06);
  padding: 7px 9px;
}

.panelTitle {
  color: #e4c48f;
  font-size: 0.78rem;
  letter-spacing: 1px;
}

.doomNumber {
  font-size: clamp(1.45rem, 3.4vw, 2.4rem);
  line-height: 1;
  color: #f6e08f;
  text-shadow: 2px 2px 0 #382616;
  letter-spacing: 1.2px;
}

#healthBar {
  margin-top: 6px;
  width: 100%;
  height: 12px;
  border: 2px solid #483321;
  border-top-color: #7f6243;
  border-left-color: #7f6243;
  background: #120c08;
}

#healthFill {
  height: 100%;
  width: 100%;
  background: #6cad40;
}

#panelCenter {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 8px;
}

#portraitFrame {
  width: 128px;
  height: 108px;
  border: 3px solid #4f3a26;
  border-top-color: #8d6b45;
  border-left-color: #8d6b45;
  background: #090705;
  overflow: hidden;
  position: relative;
}

#portraitImage {
  position: absolute;
  inset: 0;
  background-image: url("./assets/hud/portrait.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: contrast(1.15) saturate(0.9) brightness(0.9);
}

#foodStrip {
  width: 100%;
  height: 64px;
  border: 2px solid #4d3824;
  border-top-color: #8a6945;
  border-left-color: #8a6945;
  background:
    linear-gradient(180deg, rgba(30, 20, 12, 0.86), rgba(15, 10, 6, 0.9)),
    url("./assets/hud/food_strip.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#panelAmmo,
#panelMeta {
  display: grid;
  align-content: start;
  gap: 6px;
}

#ammoStrip {
  width: 100%;
  height: 40px;
  border: 2px solid #4d3824;
  border-top-color: #8a6945;
  border-left-color: #8a6945;
  background:
    linear-gradient(180deg, rgba(28, 18, 11, 0.84), rgba(11, 8, 5, 0.9)),
    url("./assets/hud/ammo_strip.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#panelMeta {
  background:
    linear-gradient(180deg, rgba(34, 24, 15, 0.78), rgba(22, 14, 9, 0.95)),
    url("./assets/ui/jukebox_wall.png") center / cover no-repeat;
}

#modName,
#difficulty,
#oxygen,
#beerTimer,
#heatMeter {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: #cdb58f;
  text-shadow: 1px 1px 0 #180f08;
}

#modName {
  color: #f7c780;
}

#oxygen {
  color: #8ed5ff;
}

#beerTimer {
  color: #ffe39a;
}

#heatMeter {
  color: #ffaf7f;
}

#messageStack {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 148px;
  z-index: 17;
  display: grid;
  gap: 6px;
  pointer-events: none;
}

#pickupToast,
#messageBox {
  display: inline-block;
  width: fit-content;
  max-width: 84%;
  padding: 5px 8px;
  border: 2px solid #4b3a28;
  border-top-color: #876848;
  border-left-color: #876848;
  background: rgba(12, 8, 6, 0.84);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  color: #f2d7a2;
}

#pickupToast {
  color: #f7e3a8;
}

#damageOverlay,
#beerOverlay {
  position: absolute;
  inset: 0;
  z-index: 24;
  pointer-events: none;
}

#damageOverlay {
  background: radial-gradient(circle at center, transparent 34%, rgba(168, 39, 24, 0.54) 100%);
  opacity: 0;
}

#beerOverlay {
  background:
    radial-gradient(circle at center, rgba(255, 227, 139, 0.02) 0%, rgba(255, 163, 59, 0.15) 55%, rgba(255, 115, 28, 0.25) 100%),
    linear-gradient(120deg, rgba(255, 219, 96, 0.05), rgba(255, 180, 91, 0.05));
  mix-blend-mode: screen;
}

#hud.lowHealth #portraitFrame {
  border-color: #5a1d15;
  border-top-color: #aa3f2d;
  border-left-color: #aa3f2d;
}

#hud.lowHealth #portraitImage {
  filter: contrast(1.24) saturate(1.2) sepia(0.25) hue-rotate(-12deg) brightness(0.82);
}

#hud.godMode #portraitImage {
  filter: contrast(1.2) saturate(1.18) hue-rotate(-8deg) brightness(1.06);
}

@media (max-width: 980px) {
  #menuVisualControls {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  #menuVisualControls label,
  #menuOverlayValue {
    text-align: center;
  }

  #menuOverlayRange {
    width: 100%;
  }

  #menuOverlayResetBtn {
    justify-self: center;
  }

  #weaponOverlay {
    right: 0;
    bottom: 164px;
  }

  .pauseRow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pauseRow span {
    text-align: left;
  }

  #hudBottom {
    grid-template-columns: 1fr 1fr;
    min-height: 180px;
  }

  #panelCenter {
    grid-column: 1 / -1;
  }

  #messageStack {
    bottom: 190px;
  }

  #mobileLeftPad,
  #mobileRightPad {
    bottom: 128px;
  }
}

@media (max-width: 640px) {
  #boot {
    padding: 16px;
  }

  #weaponOverlay {
    right: 0;
    bottom: 194px;
  }

  #hudBottom {
    min-height: 214px;
  }

  #panelCenter {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #portraitFrame {
    width: 110px;
    height: 92px;
  }

  #foodStrip {
    height: 52px;
  }

  #messageStack {
    bottom: 224px;
  }

  #mobileLeftPad,
  #mobileRightPad {
    width: min(28vw, 124px);
    height: min(28vw, 124px);
    bottom: 118px;
  }

  #mobileButtons {
    grid-template-columns: repeat(3, minmax(62px, 80px));
    gap: 6px;
    right: 8px;
  }

  #mobileButtons button {
    min-height: 42px;
    font-size: 0.74rem;
  }

  #levelName,
  #objective {
    max-width: 96%;
    font-size: 0.78rem;
  }
}

@media (pointer: fine) {
  #mobileHud {
    display: none !important;
  }
}

.mobileLite #hudBottom {
  grid-template-columns: 1fr 1fr;
  min-height: 88px;
  padding: 4px 6px;
  gap: 6px;
  border-top-width: 2px;
  background: linear-gradient(180deg, rgba(14, 9, 6, 0.5), rgba(8, 5, 3, 0.72));
}

.mobileLite #hudTop {
  top: 6px;
  left: 6px;
  right: 6px;
  gap: 2px;
}

.mobileLite #levelName {
  max-width: 92%;
  font-size: 0.7rem;
  padding: 2px 6px;
}

.mobileLite #objective {
  display: none;
}

.mobileLite .statusPanel {
  padding: 4px 6px;
  border-width: 2px;
}

.mobileLite .panelTitle {
  font-size: 0.62rem;
}

.mobileLite .doomNumber {
  font-size: clamp(1.1rem, 5.2vw, 1.55rem);
}

.mobileLite #healthBar {
  margin-top: 4px;
  height: 8px;
}

.mobileLite #ammoStrip,
.mobileLite #modName {
  display: none;
}

.mobileLite #panelCenter,
.mobileLite #panelMeta,
.mobileLite #foodStrip,
.mobileLite #portraitFrame {
  display: none !important;
}

.mobileLite #messageStack {
  top: 42px;
  bottom: auto;
  left: 6px;
  right: 6px;
  gap: 4px;
}

.mobileLite #pickupToast,
.mobileLite #messageBox {
  max-width: 74%;
  padding: 3px 6px;
  font-size: 0.74rem;
}

.mobileLite #crosshair {
  width: 22px;
  height: 22px;
}

.mobileLite #weaponOverlay {
  bottom: 74px;
  transform: scale(0.74);
  transform-origin: 100% 100%;
}

.mobileLite .mobilePad {
  width: min(24vw, 132px);
  height: min(24vw, 132px);
}

.mobileLite #mobileLeftPad,
.mobileLite #mobileRightPad {
  bottom: 110px;
}

.mobileLite #mobileButtons {
  right: 8px;
  bottom: 8px;
  gap: 6px;
}

.mobileLite #mobileButtons button {
  min-height: 40px;
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .mobileLite #mobileLeftPad,
  .mobileLite #mobileRightPad {
    width: min(27vw, 116px);
    height: min(27vw, 116px);
    bottom: 104px;
  }

  .mobileLite #mobileButtons button {
    min-height: 36px;
    font-size: 0.68rem;
  }

  .mobileLite #hudBottom {
    min-height: 82px;
  }
}
