@import url("./styles-admin.css?v=f9ef3cb28eb81e48");

:root {
  --ink: #edf4ef;
  --muted: #a9b8b0;
  --panel: rgba(13, 21, 18, 0.78);
  --panel-strong: rgba(9, 15, 13, 0.9);
  --line: rgba(237, 244, 239, 0.16);
  --blue: #6bbcff;
  --red: #ff6d66;
  --amber: #ffd166;
  --green: #78d68c;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #132118;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#game {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  background: #17281c;
  outline: none;
  touch-action: none;
}

.orientation-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(5, 9, 8, 0.92);
  text-align: center;
}

.orientation-overlay.visible {
  display: grid;
}

.orientation-overlay strong,
.orientation-overlay span {
  display: block;
}

.orientation-overlay strong {
  font-size: 28px;
  font-weight: 950;
}

.orientation-overlay span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.mobile-controls {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  touch-action: none;
}

.mobile-controls.hidden {
  display: none;
}

.mobile-stick,
.mobile-action {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-stick {
  position: fixed;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 244, 239, 0.22);
  border-radius: 50%;
  background: rgba(8, 14, 12, 0.42);
  box-shadow: inset 0 0 0 1px rgba(237, 244, 239, 0.08), 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.mobile-stick span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(237, 244, 239, 0.84);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.move-stick {
  left: max(28px, env(safe-area-inset-left));
  bottom: max(28px, env(safe-area-inset-bottom));
}

.mobile-aim-zone {
  position: fixed;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  width: 240px;
  height: 194px;
  display: block;
  pointer-events: none;
}

.aim-stick {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 138px;
  height: 138px;
}

.aim-stick span {
  width: 48px;
  height: 48px;
  background: rgba(107, 188, 255, 0.88);
}

.mobile-action-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mobile-action {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 244, 239, 0.18);
  border-radius: 50%;
  background: rgba(8, 14, 12, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0;
  font-weight: 950;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.mobile-action {
  width: 68px;
  height: 68px;
}

.mobile-action.fire {
  right: 30px;
  bottom: 138px;
  width: 78px;
  height: 78px;
  border-color: rgba(255, 209, 102, 0.66);
  background: rgba(255, 209, 102, 0.22);
}

.mobile-action[data-mobile-mouse="2"] {
  position: fixed;
  left: calc(max(28px, env(safe-area-inset-left)) + 35px);
  right: auto;
  bottom: calc(max(28px, env(safe-area-inset-bottom)) + 154px);
  z-index: 2;
}

.mobile-action span,
.mobile-action::before,
.mobile-action::after {
  pointer-events: none;
}

.mobile-action.fire span {
  position: relative;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 241, 190, 0.96);
  border-radius: 50%;
}

.mobile-action.fire::before {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  border: 3px solid rgba(255, 241, 190, 0.96);
  border-radius: 50%;
}

.mobile-action.fire::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 241, 190, 0.92);
  box-shadow: 0 0 0 0 rgba(255, 241, 190, 0), 0 -16px 0 -1px rgba(255, 241, 190, 0), 0 16px 0 -1px rgba(255, 241, 190, 0);
}

.mobile-action.fire span::before,
.mobile-action.fire span::after,
.mobile-action[data-mobile-mouse="2"]::before,
.mobile-action[data-mobile-mouse="2"]::after {
  content: "";
  position: absolute;
  display: block;
}

.mobile-action.fire span::before {
  left: 50%;
  top: -12px;
  width: 4px;
  height: 50px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 241, 190, 0.92);
}

.mobile-action.fire span::after {
  left: -12px;
  top: 50%;
  width: 50px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 241, 190, 0.92);
}

.mobile-action[data-mobile-mouse="2"]::before {
  width: 31px;
  height: 31px;
  border: 3px solid rgba(237, 244, 239, 0.9);
  border-radius: 50%;
}

.mobile-action[data-mobile-mouse="2"]::after {
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: rgba(237, 244, 239, 0.82);
  box-shadow: 0 15px 0 rgba(237, 244, 239, 0), 0 -15px 0 rgba(237, 244, 239, 0);
}

.mobile-action.weapon-cycle {
  position: fixed;
  right: calc(max(28px, env(safe-area-inset-right)) + 142px);
  bottom: calc(max(28px, env(safe-area-inset-bottom)) + 48px);
  border-color: rgba(107, 188, 255, 0.58);
  background: rgba(42, 92, 126, 0.58);
  color: rgba(237, 244, 239, 0.96);
}

.mobile-action.weapon-cycle.hidden {
  display: none;
}

.mobile-action.weapon-cycle.pressed,
.mobile-action.weapon-cycle:active {
  transform: scale(0.96);
}

.mobile-action.weapon-cycle span {
  position: relative;
  width: 34px;
  height: 14px;
  border-radius: 999px 6px 6px 999px;
  background: rgba(237, 244, 239, 0.9);
  transform: rotate(-18deg);
  box-shadow: inset -9px 0 0 rgba(107, 188, 255, 0.46);
}

.mobile-action.weapon-cycle span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.92);
  transform: translateY(-50%);
}

.mobile-action.weapon-cycle::after {
  content: attr(data-weapon);
  position: absolute;
  left: 50%;
  bottom: -19px;
  min-width: 36px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 14, 12, 0.76);
  color: rgba(237, 244, 239, 0.92);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
}

.mobile-spectator-action {
  position: fixed;
  right: max(28px, env(safe-area-inset-right));
  width: 76px;
  height: 52px;
  border-radius: 12px;
  border-color: rgba(142, 216, 255, 0.38);
  background: rgba(9, 16, 18, 0.82);
  color: rgba(237, 244, 239, 0.96);
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(142, 216, 255, 0.12);
}

.mobile-spectator-chat {
  bottom: calc(max(28px, env(safe-area-inset-bottom)) + 72px);
}

.mobile-spectator-home {
  bottom: max(28px, env(safe-area-inset-bottom));
}

.mobile-spectator-action.hidden {
  display: none;
}

.mobile-controls.spectator-controls .mobile-aim-zone,
.mobile-controls.spectator-controls .mobile-action.fire,
.mobile-controls.spectator-controls .mobile-action[data-mobile-mouse],
.mobile-controls.spectator-controls .mobile-action[data-mobile-key],
.mobile-controls.spectator-controls .mobile-action.weapon-cycle,
.mobile-controls.spectator-controls .mobile-ammo-row {
  display: none;
}

.mobile-action[data-mobile-key="KeyE"],
.mobile-action[data-mobile-key="KeyF"] {
  display: none;
  position: fixed;
  left: 50%;
  bottom: max(36px, env(safe-area-inset-bottom));
  width: 76px;
  height: 76px;
  transform: translateX(-50%);
  border-color: rgba(120, 214, 140, 0.68);
  background: rgba(12, 20, 16, 0.82);
  color: #edf4ef;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(120, 214, 140, 0.18);
}

.mobile-controls.can-interact .mobile-action[data-mobile-key="KeyE"],
.mobile-controls.can-interact .mobile-action[data-mobile-key="KeyF"] {
  display: grid;
}

.mobile-ammo-row {
  display: none;
}

.mobile-ammo-row button {
  display: none;
}

.deployment-screen,
.lobby-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding:
    max(28px, env(safe-area-inset-top))
    max(28px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(28px, env(safe-area-inset-left));
  background: rgba(5, 9, 8, 0.9);
  pointer-events: auto;
}

.deployment-screen.hidden,
.lobby-screen.hidden {
  display: none;
}

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding:
    max(28px, env(safe-area-inset-top))
    max(28px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(28px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 18% 18%, rgba(142, 216, 255, 0.12), transparent 30%),
    rgba(5, 9, 8, 0.92);
  pointer-events: auto;
}

.entry-screen.hidden {
  display: none;
}

.entry-card {
  width: min(1060px, calc(100vw - 48px));
  height: min(680px, calc(100vh - 56px));
  height: min(680px, calc(100dvh - 56px));
  min-height: 0;
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(340px, 0.72fr);
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 8px;
  background: rgba(9, 15, 13, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.entry-faction-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid rgba(237, 244, 239, 0.14);
  background:
    linear-gradient(160deg, rgba(35, 54, 39, 0.72), rgba(11, 18, 15, 0.72)),
    repeating-linear-gradient(90deg, rgba(237, 244, 239, 0.028) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(237, 244, 239, 0.024) 0 1px, transparent 1px 82px);
}

.entry-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.entry-brief {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 420px;
  padding: 34px;
  border-right: 1px solid rgba(237, 244, 239, 0.14);
  background:
    linear-gradient(160deg, rgba(48, 71, 50, 0.72), rgba(17, 27, 21, 0.72)),
    repeating-linear-gradient(90deg, rgba(237, 244, 239, 0.035) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(237, 244, 239, 0.03) 0 1px, transparent 1px 84px);
}

.entry-mark {
  width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(255, 209, 102, 0.46);
  border-radius: 4px;
  color: #ffd166;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.entry-head h1 {
  margin: 0;
  color: #edf4ef;
  font-size: 30px;
  line-height: 1;
}

.entry-brief h1 {
  margin: 0;
  color: #edf4ef;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.entry-head p {
  margin: 6px 0 0;
  color: rgba(237, 244, 239, 0.68);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.entry-brief p {
  max-width: 320px;
  margin: 0;
  color: rgba(237, 244, 239, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.entry-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 36px;
}

.entry-session-pane {
  min-width: 0;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(5, 10, 8, 0.36);
}

.entry-field,
.entry-skin-wrap {
  display: grid;
  gap: 8px;
}

.entry-skin-wrap.hidden {
  display: none;
}

.entry-field span,
.entry-label {
  color: rgba(237, 244, 239, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.entry-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(237, 244, 239, 0.18);
  border-radius: 6px;
  background: rgba(2, 5, 4, 0.52);
  color: #edf4ef;
  font: 900 18px Inter, system-ui, sans-serif;
  outline: none;
}

.entry-field input:focus {
  border-color: rgba(142, 216, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(142, 216, 255, 0.12);
}

.entry-skin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.entry-skin-card {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(237, 244, 239, 0.13);
  border-radius: 6px;
  background: rgba(237, 244, 239, 0.06);
  color: #edf4ef;
  text-align: left;
  cursor: pointer;
}

.entry-skin-card.active {
  border-color: rgba(255, 209, 102, 0.78);
  background: rgba(255, 209, 102, 0.12);
}

.entry-skin-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(237, 244, 239, 0.22);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 36%, var(--skin-accent) 0 18%, transparent 19%),
    linear-gradient(90deg, var(--skin-vest) 0 42%, var(--skin-cloth) 43% 100%);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.18);
}

.entry-skin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entry-skin-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.entry-skin-text strong,
.entry-skin-text small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.entry-skin-text strong {
  font-size: 14px;
}

.entry-skin-text small {
  color: rgba(237, 244, 239, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.entry-status {
  min-height: 18px;
  margin: 0;
  color: rgba(237, 244, 239, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.entry-enter {
  min-height: 50px;
  border: 1px solid rgba(255, 209, 102, 0.66);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.95), rgba(216, 155, 54, 0.95));
  color: #0b0d09;
  font: 1000 17px Inter, system-ui, sans-serif;
  cursor: pointer;
}

.result-screen {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 9, 8, 0.56);
  backdrop-filter: blur(5px);
}

.death-screen {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background: transparent;
}

.death-screen.hidden,
.result-screen.hidden {
  display: none;
}

.result-card {
  width: min(360px, calc(100vw - 48px));
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 147, 140, 0.32);
  border-radius: 8px;
  background: rgba(8, 14, 12, 0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.death-card {
  position: absolute;
  top: clamp(34px, 8vh, 72px);
  left: 50%;
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
  text-align: center;
}

.result-card {
  border-color: rgba(142, 216, 255, 0.34);
}

.result-card.lost {
  border-color: rgba(255, 147, 140, 0.32);
}

.result-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.result-card.lost span {
  color: var(--red);
}

.result-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 44px;
  font-weight: 950;
  line-height: 1;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.result-card button {
  min-width: 160px;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 7px;
  background: linear-gradient(180deg, #ffe08a, #d59f35);
  color: #14140f;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

.death-card h2 {
  margin: 0;
  color: rgba(255, 210, 198, 0.96);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(5, 7, 7, 0.9);
}

.death-card p,
.death-card small,
.death-card span {
  display: none;
}

.death-card button {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(237, 244, 239, 0.76);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  pointer-events: auto;
  cursor: pointer;
}

.deployment-card,
.lobby-card {
  width: min(1080px, 100%);
  height: min(720px, calc(100vh - 56px));
  height: min(720px, calc(100dvh - 56px));
  min-height: 0;
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 380px);
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.2);
  border-radius: 8px;
  background: rgba(8, 14, 12, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.deployment-card {
  width: min(1200px, 100%);
  grid-template-columns: minmax(420px, 1fr) minmax(270px, 300px);
}

.deployment-map-wrap,
.lobby-map-wrap {
  min-height: 0;
  padding: 16px;
  border-right: 1px solid rgba(237, 244, 239, 0.16);
}

.deployment-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 7px;
  background:
    linear-gradient(rgba(237, 244, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 244, 239, 0.06) 1px, transparent 1px),
    linear-gradient(140deg, rgba(61, 89, 67, 0.88), rgba(30, 52, 37, 0.94));
  background-size: 40px 40px, 40px 40px, auto;
}

.deployment-map::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 8%;
  top: 49%;
  height: 7%;
  transform: rotate(-13deg);
  border-top: 2px solid rgba(255, 209, 102, 0.18);
  border-bottom: 2px solid rgba(255, 209, 102, 0.14);
  background: rgba(116, 116, 94, 0.22);
}

.map-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(237, 244, 239, 0.45);
  border-radius: 6px;
  background: rgba(9, 15, 13, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
}

.map-marker.objective {
  background: rgba(255, 209, 102, 0.2);
  border-color: rgba(255, 209, 102, 0.72);
}

.map-marker.base-blue,
.map-marker.unit-blue {
  background: rgba(107, 188, 255, 0.18);
  border-color: rgba(107, 188, 255, 0.78);
}

.map-marker.base-red,
.map-marker.unit-red {
  background: rgba(255, 109, 102, 0.18);
  border-color: rgba(255, 109, 102, 0.78);
}

.map-marker.unit-blue,
.map-marker.unit-red {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0;
}
.map-marker.player-human{z-index:3;width:22px;height:22px;border-color:rgba(186,255,197,.92);border-radius:50%;background:#2ee86f;color:#07120a;font-size:11px}
.map-marker.player-human.local{background:#b6ff82}
.map-marker-name{position:absolute;left:50%;top:calc(100% + 3px);transform:translateX(-50%);padding:1px 5px;border-radius:999px;background:rgba(5,12,8,.88);color:#baffc5;font-size:10px;line-height:1.2;white-space:nowrap;pointer-events:none}
.map-marker-name.above{top:auto;bottom:calc(100% + 3px)}

.map-marker.inspectable {
  cursor: pointer;
  pointer-events: auto;
}

.map-marker.inspectable:hover,
.map-marker.selected {
  z-index: 2;
  border-color: rgba(255, 209, 102, 0.92);
  box-shadow:
    0 0 0 4px rgba(255, 209, 102, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.34);
}

.map-marker.selected {
  transform: translate(-50%, -50%) scale(1.18);
}

.deployment-panel,
.lobby-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.deployment-header {
  display: none;
}

.lobby-header {
  display: grid;
  gap: 7px;
}

.lobby-header span,
.lobby-room span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.lobby-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.lobby-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.lobby-room,
.lobby-summary,
.lobby-slots {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.lobby-room strong {
  color: #dcefff;
  font-size: 18px;
  font-weight: 950;
}

.lobby-slots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lobby-slot {
  min-height: 64px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 7px;
  background: rgba(5, 10, 9, 0.26);
}

.lobby-slot strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.lobby-slot span,
.lobby-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.lobby-actions {
  display: grid;
  gap: 8px;
}

.lobby-actions button {
  min-height: 42px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 7px;
  background: rgba(237, 244, 239, 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.lobby-actions button:hover:not(:disabled),
.lobby-slot-action:hover:not(:disabled) {
  border-color: rgba(255, 209, 102, 0.54);
}

.lobby-actions #lobbyStartButton {
  min-height: 52px;
  border-color: rgba(126, 222, 161, 0.4);
  background: rgba(126, 222, 161, 0.16);
  color: #d9ffe3;
}

.lobby-card {
  width: min(1240px, 100%);
  grid-template-columns: minmax(400px, 0.82fr) minmax(520px, 1.18fr);
  border-color: rgba(237, 244, 239, 0.16);
  background: rgba(7, 12, 11, 0.92);
}

.lobby-map-wrap {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  background: rgba(6, 12, 11, 0.34);
}

.lobby-map {
  min-height: 0;
}

.lobby-room {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.lobby-room span {
  color: var(--muted);
}

.lobby-room strong {
  padding: 5px 9px;
  border: 1px solid rgba(107, 188, 255, 0.28);
  border-radius: 6px;
  background: rgba(107, 188, 255, 0.1);
  font-size: 14px;
}

.lobby-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}

.lobby-team {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 7px;
  background: rgba(6, 12, 11, 0.56);
}

.lobby-team-blue {
  border-color: rgba(107, 188, 255, 0.28);
}

.lobby-team-red {
  border-color: rgba(255, 109, 102, 0.26);
}

.lobby-team-spectator {
  grid-column: 1 / -1;
  border-color: rgba(190, 170, 255, 0.24);
}

.lobby-team-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(237, 244, 239, 0.12);
  background: rgba(5, 10, 9, 0.28);
}

.lobby-team-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lobby-team-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.lobby-team-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.lobby-team-head em {
  min-width: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(237, 244, 239, 0.1);
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.lobby-roster {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding: 9px;
  scrollbar-width: thin;
}

.lobby-player-card {
  min-height: 54px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 6px;
  background: rgba(12, 20, 18, 0.72);
}

.lobby-player-card.is-local {
  border-color: rgba(255, 209, 102, 0.44);
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.14), rgba(12, 20, 18, 0.72));
}

.lobby-player-card.is-ready {
  box-shadow: inset 3px 0 0 rgba(126, 222, 161, 0.7);
}

.lobby-player-card.is-ai {
  opacity: 0.78;
  border-style: dashed;
  box-shadow: inset 3px 0 0 rgba(237, 244, 239, 0.22);
}

.lobby-player-card.spectator {
  border-color: rgba(190, 170, 255, 0.22);
  background: rgba(38, 32, 58, 0.42);
  box-shadow: inset 3px 0 0 rgba(190, 170, 255, 0.44);
}

.lobby-player-card.empty {
  opacity: 0.46;
  border-style: dashed;
}

.lobby-player-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(237, 244, 239, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.lobby-team-blue .lobby-player-avatar {
  background: rgba(107, 188, 255, 0.2);
}

.lobby-team-red .lobby-player-avatar {
  background: rgba(255, 109, 102, 0.18);
}

.lobby-player-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lobby-player-main strong,
.lobby-player-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-player-main strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.lobby-player-main span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.lobby-player-card em {
  min-width: 42px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(237, 244, 239, 0.09);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.lobby-slot-action {
  min-width: 46px;
  min-height: 30px;
  border: 1px solid rgba(255, 209, 102, 0.32);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.lobby-slot-action:disabled {
  cursor: default;
  opacity: 0.68;
}

.lobby-player-card.is-ready em {
  background: rgba(126, 222, 161, 0.14);
  color: #bfffd3;
}

.lobby-player-card:not(.is-ready):not(.is-ai):not(.empty):not(.spectator) em {
  background: rgba(255, 209, 102, 0.12);
  color: #ffe2a3;
}

.lobby-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lobby-summary-tile {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lobby-summary-tile span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
}

.lobby-summary-tile strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lobby-actions button.active {
  border-color: rgba(126, 222, 161, 0.46);
  background: rgba(126, 222, 161, 0.16);
  color: #d9ffe3;
}

.lobby-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.lobby-actions #lobbyStartButton {
  grid-column: 1 / -1;
}

.lobby-actions #lobbyBackButton {
  grid-column: 1 / -1;
}

.online-host-lobby .lobby-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.online-host-lobby .lobby-ready-actions {
  grid-column: auto;
  order: 2;
}

.online-host-lobby .lobby-actions #lobbyStartButton {
  grid-column: auto;
  order: 1;
}

.online-host-lobby .lobby-actions #lobbyLoadoutButton {
  min-height: 52px;
}

.deployment-kicker {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.deployment-panel h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

.deployment-pick-section {
  display: grid;
  gap: 8px;
}

.deployment-class-list {
  display: grid;
  gap: 8px;
}

.deployment-class-list.hidden {
  display: none;
}

.deployment-mode-section {
  display: grid;
  gap: 8px;
}

.deployment-section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.deployment-mode-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 7px;
}

.deployment-class,
.deployment-mode,
.deployment-start {
  appearance: none;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.deployment-class {
  display: grid;
  gap: 8px;
  min-height: 76px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.055);
}

.deployment-class-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deployment-class-head em {
  display: none;
}

.deployment-class-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.deployment-mini-slot {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 5px;
  background: rgba(3, 8, 7, 0.22);
}

.deployment-mini-slot b {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(237, 244, 239, 0.12);
  color: var(--amber);
  font-size: 11px;
  font-weight: 950;
}

.deployment-mini-slot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.deployment-mini-slot.empty {
  opacity: 0.48;
}

.deployment-loadout {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.deployment-loadout.hidden {
  display: none;
}

.deployment-loadout-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.deployment-loadout-head span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.deployment-loadout-head small {
  color: var(--amber);
  font-size: 10px;
  font-weight: 950;
}

.deployment-loadout-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.05;
}

.deployment-loadout-head em {
  display: none;
}

.deployment-loadout-change {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 6px;
  background: rgba(237, 244, 239, 0.07);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.deployment-loadout-change:hover {
  border-color: rgba(255, 209, 102, 0.58);
  background: rgba(255, 209, 102, 0.12);
}

.deployment-loadout-slots {
  display: grid;
  gap: 6px;
}

.deployment-loadout-slot {
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid rgba(237, 244, 239, 0.11);
  border-radius: 6px;
  background: rgba(5, 10, 9, 0.3);
}

.deployment-loadout-slot.empty {
  opacity: 0.52;
}

.loadout-key {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.38);
  border-radius: 6px;
  background: rgba(255, 209, 102, 0.11);
  color: var(--amber);
  font-size: 15px;
  font-weight: 950;
}

.loadout-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.loadout-body small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.loadout-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
}

.loadout-actions {
  min-width: 58px;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.loadout-ammo {
  min-width: 44px;
  padding: 5px 7px;
  border-radius: 5px;
  background: rgba(107, 188, 255, 0.12);
  color: #dcefff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.loadout-swap {
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 5px;
  background: rgba(237, 244, 239, 0.07);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.loadout-swap:hover {
  border-color: rgba(255, 209, 102, 0.58);
  background: rgba(255, 209, 102, 0.13);
}

.deployment-loadout-summary {
  display: none;
}

.deployment-mode {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
}

.deployment-mode strong {
  font-size: 16px;
}

.deployment-mode span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.deployment-class-head strong {
  font-size: 17px;
  line-height: 1.1;
}

.deployment-class > span:not(.deployment-class-head):not(.deployment-class-slots) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.deployment-class.active {
  border-color: rgba(255, 209, 102, 0.9);
  background: rgba(255, 209, 102, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.28);
}

.deployment-mode.active {
  border-color: rgba(107, 188, 255, 0.84);
  background: rgba(107, 188, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(107, 188, 255, 0.25);
}

.deployment-mode.locked {
  cursor: default;
  opacity: 0.55;
}

.deployment-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.deployment-setting {
  display: grid;
  gap: 4px;
}

.deployment-setting span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.deployment-setting input,
.deployment-setting select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  outline: none;
  padding: 6px 10px;
}

.deployment-setting select option {
  background: #111a15;
  color: var(--ink);
}

.deployment-start {
  display: grid;
  place-items: center;
  position: sticky;
  bottom: -1px;
  min-height: 52px;
  margin-top: 2px;
  background: var(--amber);
  color: #12160f;
  font-weight: 950;
  text-align: center;
}

.scoreboard {
  position: fixed;
  left: 50%;
  top: 88px;
  z-index: 12;
  width: min(760px, 92vw);
  display: none;
  padding: 14px;
  border: 1px solid rgba(237, 244, 239, 0.18);
  border-radius: 8px;
  background: rgba(8, 14, 12, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  transform: translateX(-50%);
  pointer-events: none;
}

.scoreboard.visible {
  display: block;
}

.scoreboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 12px;
  color: var(--ink);
}

.scoreboard-head strong {
  font-size: 20px;
}

.scoreboard-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(5, minmax(74px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 7px;
}

.scoreboard-cell {
  min-height: 38px;
  display: grid;
  align-items: center;
  padding: 8px 10px;
  border-right: 1px solid rgba(237, 244, 239, 0.1);
  border-bottom: 1px solid rgba(237, 244, 239, 0.1);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 850;
}

.scoreboard-cell:nth-child(6n) {
  border-right: 0;
}

.scoreboard-grid.conquest .scoreboard-cell:nth-child(6n) {
  border-right: 1px solid rgba(237, 244, 239, 0.1);
}

.scoreboard-grid.conquest .scoreboard-cell:nth-child(7n) {
  border-right: 0;
}

.scoreboard-cell.header {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.075);
  font-size: 11px;
  text-transform: uppercase;
}

.scoreboard-cell.team-blue {
  color: var(--blue);
}

.scoreboard-cell.team-red {
  color: var(--red);
}

.hud {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

.hud-top {
  top: 12px;
  left: 50%;
  width: min(92vw, 520px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
}

.hud-bottom {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
}

.hud-bottom.hidden {
  display: none;
}

.prone-indicator {
  width: max-content;
  min-width: 68px;
  margin: 0 auto 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: 6px;
  background: rgba(9, 15, 13, 0.76);
  color: var(--amber);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.prone-indicator.hidden {
  display: none;
}

.prone-indicator.transitioning {
  color: rgba(237, 244, 239, 0.92);
  border-color: rgba(237, 244, 239, 0.28);
}

.command-panel {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 28px));
  z-index: 14;
  width: min(292px, calc(100vw - 28px));
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 18px 18px 16px 16px;
  background: transparent;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46);
  pointer-events: auto;
}

.command-radio-device {
  isolation: isolate;
}

.command-radio-device::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 92px;
  width: 8px;
  height: 76px;
  border: 1px solid rgba(21, 28, 24, 0.92);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #232b24, #0f1512);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.06);
}

.command-radio-device::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 10px;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.42);
}

.command-radio-antenna {
  position: absolute;
  left: 38px;
  bottom: calc(100% - 14px);
  width: 10px;
  height: 64px;
  border: 1px solid rgba(12, 17, 14, 0.9);
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(90deg, #0a0d0c, #3a4038 42%, #101411);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.command-radio-antenna::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -10px;
  width: 18px;
  height: 14px;
  border: 1px solid rgba(7, 12, 10, 0.9);
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #333c34, #101512);
}

.command-radio-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 15px 14px 14px;
  border: 2px solid rgba(15, 22, 18, 0.96);
  border-radius: 18px 18px 16px 16px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(145deg, #334036 0%, #18221d 46%, #101613 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -18px 24px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.command-radio-shell::before,
.command-radio-shell::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(4, 9, 7, 0.84);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(145deg, #4b574b, #151b17);
  box-shadow: inset 0 -5px 7px rgba(0, 0, 0, 0.35);
}

.command-radio-shell::before {
  right: 48px;
}

.command-radio-shell::after {
  right: 14px;
}

.command-radio-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 25px;
  padding-right: 78px;
  color: rgba(236, 242, 232, 0.82);
  letter-spacing: 0;
}

.command-radio-brand span {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-radio-brand b {
  padding: 4px 7px;
  color: #ffe5a8;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 950;
  white-space: nowrap;
}

.command-radio-toggle {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 22px));
  z-index: 15;
  min-width: 86px;
  min-height: 48px;
  padding: 7px 13px 7px 32px;
  border: 1px solid rgba(35, 43, 35, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(145deg, #3a473c, #161f1a 64%, #101512),
    rgba(8, 14, 12, 0.9);
  color: #f1f5ea;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.command-radio-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 18px;
  border: 1px solid rgba(8, 12, 10, 0.82);
  border-radius: 3px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 4px),
    #202920;
  transform: translateY(-50%);
}

.command-radio-toggle::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: #ffcf65;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.48);
}

.command-radio-toggle.active {
  border-color: rgba(255, 209, 102, 0.48);
  background: linear-gradient(145deg, #47563f, #1d281f 64%, #121915);
  color: #fff2bf;
}

.command-radio-toggle.hidden {
  display: none;
}

.command-panel.hidden {
  display: none;
}

.command-head {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 11px 12px;
  border: 1px solid rgba(21, 34, 24, 0.86);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(170, 205, 139, 0.2), rgba(36, 58, 38, 0.28)),
    #18251c;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.22),
    inset 0 0 22px rgba(164, 255, 149, 0.06);
}

.command-head strong {
  overflow: hidden;
  color: #d8f4c7;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(149, 255, 136, 0.18);
}

.command-head span {
  color: rgba(208, 240, 192, 0.74);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.command-speaker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  min-height: 48px;
  padding: 9px 12px 10px;
  border: 1px solid rgba(7, 11, 9, 0.72);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #111814;
  box-shadow: inset 0 7px 18px rgba(0, 0, 0, 0.3);
}

.command-speaker i {
  display: block;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.44));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42);
}

.command-speaker i:nth-child(2n) {
  height: 36px;
}

.command-control-deck {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(3, 8, 7, 0.34);
}

.command-assets,
.command-buttons,
.command-specials {
  display: grid;
  gap: 6px;
}

.command-assets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-assets[hidden] {
  display: none;
}

.command-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-assets button,
.command-buttons button,
.command-specials button {
  min-height: 34px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(9, 14, 11, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #233027;
  color: rgba(239, 246, 236, 0.94);
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 0 rgba(0, 0, 0, 0.36);
}

.command-assets button.active,
.command-buttons button.active,
.command-specials button.active {
  border-color: rgba(255, 209, 102, 0.64);
  background:
    linear-gradient(180deg, rgba(255, 228, 146, 0.22), rgba(111, 77, 28, 0.26)),
    #384126;
  color: #fff4bd;
}

.command-assets button.ordered {
  border-color: rgba(142, 216, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(142, 216, 255, 0.12);
}

.command-buttons button[data-command-type="close"] {
  grid-column: 1 / -1;
  border-color: rgba(255, 138, 125, 0.3);
  color: #ffb0ab;
}

.command-assets button:disabled,
.command-buttons button:disabled,
.command-specials button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.command-assets span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.command-specials {
  align-items: center;
  min-height: 28px;
}

.command-specials.hidden {
  display: none;
}

.command-specials button {
  border-color: rgba(142, 216, 255, 0.32);
  background: rgba(142, 216, 255, 0.1);
}

.command-specials span {
  min-width: 0;
  overflow: hidden;
  color: rgba(237, 244, 239, 0.62);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-map {
  height: 146px;
  min-height: 146px;
  cursor: crosshair;
}

.command-tactical-map {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(160px, calc(env(safe-area-inset-bottom) + 160px));
  z-index: 14;
  width: min(380px, calc(100vw - 360px));
  height: min(260px, 36vh);
  min-width: 260px;
  min-height: 190px;
  cursor: crosshair;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
}

.command-tactical-map::before {
  content: "거점을 선택하세요";
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: 6px;
  background: rgba(7, 12, 11, 0.82);
  color: #fff2bf;
  font-size: 12px;
  font-weight: 950;
  pointer-events: none;
}

.command-tactical-map[data-command-mode="attack"]::before {
  content: "공격할 거점을 선택하세요";
}

.command-tactical-map[data-command-mode="defend"]::before {
  content: "방어할 거점을 선택하세요";
}

.command-tactical-map.hidden {
  display: none;
}

.command-map .map-marker.objective,
.command-tactical-map .map-marker.objective {
  cursor: pointer;
  pointer-events: auto;
}

@media (max-width: 760px) {
  .command-tactical-map {
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: max(236px, calc(env(safe-area-inset-bottom) + 236px));
    width: auto;
    min-width: 0;
    height: 190px;
  }
}

.command-log {
  display: grid;
  gap: 3px;
  min-height: 15px;
  padding-top: 2px;
}

.command-log span {
  overflow: hidden;
  color: rgba(218, 229, 211, 0.62);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-log span.rejected {
  color: var(--red);
}

.objective-strip,
.weapon-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.objective-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 7px;
}

.objective-strip.holding::after {
  content: attr(data-hold);
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  min-width: 190px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 6px;
  background: rgba(9, 15, 13, 0.82);
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.objective-node {
  position: relative;
  width: 44px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(237, 244, 239, 0.34);
  border-radius: 6px;
  background: rgba(237, 244, 239, 0.06);
}

.objective-node strong {
  position: relative;
  z-index: 2;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.objective-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  opacity: 0.82;
  transition: height 160ms linear, background-color 160ms linear;
}

.objective-node.pressure-blue .objective-fill {
  background: linear-gradient(180deg, rgba(107, 188, 255, 0.5), rgba(107, 188, 255, 0.95));
}

.objective-node.pressure-red .objective-fill {
  background: linear-gradient(180deg, rgba(255, 109, 102, 0.52), rgba(255, 109, 102, 0.95));
}

.objective-node.owner-blue {
  border-color: rgba(107, 188, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(107, 188, 255, 0.24);
}

.objective-node.owner-red {
  border-color: rgba(255, 109, 102, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 109, 102, 0.24);
}

.objective-node.contested {
  border-color: var(--amber);
  animation: objective-pulse 0.72s ease-in-out infinite alternate;
}

.hud-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.weapon-panel strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

@keyframes objective-pulse {
  from {
    box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.2), 0 0 0 rgba(255, 209, 102, 0);
  }

  to {
    box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.44), 0 0 18px rgba(255, 209, 102, 0.32);
  }
}

.weapon-panel {
  width: min(92vw, 500px);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 7px;
  background: var(--panel-strong);
}

.hud-bottom.infantry-weapons .weapon-panel {
  width: min(92vw, 440px);
}

.hud-bottom.infantry-simple-weapons .weapon-panel {
  width: auto;
  grid-template-columns: 1fr;
  gap: 0;
}

.hud-bottom.infantry-simple-weapons .reload-readout {
  display: none;
}

.reload-readout {
  min-width: 150px;
}

.reload-track {
  width: 100%;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(237, 244, 239, 0.12);
}

.reload-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), #ffffff);
  transition: width 80ms linear;
}

.ammo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 74px));
  gap: 6px;
}

.hud-bottom.infantry-weapons .ammo-row {
  grid-template-columns: repeat(3, minmax(68px, 82px));
}

.ammo-slot {
  height: 50px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
}

.ammo-slot.hidden {
  display: none;
}

.ammo-slot span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ammo-slot strong {
  margin-top: 3px;
  font-size: 18px;
}

.ammo-slot.active {
  border-color: rgba(255, 209, 102, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.35);
}

.ammo-slot.empty {
  opacity: 0.45;
}

body.mobile-controls-active .hud-bottom {
  display: none;
}

body.mobile-controls-active .hud-top {
  top: 10px;
  width: auto;
}

body.mobile-controls-active .objective-strip {
  min-height: 42px;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 14, 12, 0.72);
}

body.mobile-controls-active .objective-node {
  width: 42px;
  height: 32px;
}

body.mobile-controls-active .objective-node strong {
  font-size: 16px;
}

@media (max-width: 720px) {
  .entry-screen,
  .deployment-screen,
  .lobby-screen {
    align-items: stretch;
    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));
  }

  .entry-card,
  .deployment-card,
  .lobby-card {
    width: 100%;
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .entry-card {
    grid-template-columns: 1fr;
  }

  .entry-faction-pane {
    min-height: 0;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(237, 244, 239, 0.14);
  }

  .entry-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .entry-head h1 {
    font-size: 27px;
  }

  .entry-brief {
    min-height: 180px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(237, 244, 239, 0.14);
  }

  .entry-panel {
    padding: 18px;
  }

  .entry-skin-list {
    grid-template-columns: 1fr;
  }

  .lobby-map-wrap {
    height: clamp(220px, 36vh, 320px);
    height: clamp(220px, 36dvh, 320px);
    min-height: 0;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(237, 244, 239, 0.16);
  }

  .deployment-map {
    min-height: 0;
  }

  .deployment-panel,
  .lobby-panel {
    padding: 18px;
  }

  .deployment-loadout-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .deployment-loadout-head em {
    grid-column: 1 / -1;
    max-width: none;
    text-align: left;
  }

  .deployment-start {
    position: static;
  }

  .deployment-mode-row,
  .deployment-settings {
    grid-template-columns: 1fr;
  }

  .lobby-slots {
    grid-template-columns: 1fr;
  }

  .lobby-teams,
  .lobby-summary,
  .lobby-actions {
    grid-template-columns: 1fr;
  }

  .lobby-actions #lobbyStartButton {
    grid-column: auto;
  }

  .lobby-actions #lobbyBackButton {
    grid-column: auto;
  }

  .scoreboard {
    top: 76px;
    padding: 10px;
  }

  .scoreboard-grid {
    grid-template-columns: 1.2fr repeat(5, minmax(46px, 1fr));
  }

  .scoreboard-cell {
    min-height: 34px;
    padding: 7px 6px;
    font-size: 11px;
  }

  .hud-top {
    width: min(94vw, 520px);
  }

  .objective-strip {
    gap: 6px;
    min-height: 48px;
    padding: 7px 10px;
  }

  .objective-node {
    width: 42px;
    height: 32px;
  }

  .objective-node strong {
    font-size: 16px;
  }

  .weapon-panel strong {
    font-size: 14px;
  }

  .weapon-panel {
    width: min(94vw, 400px);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .command-panel {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
    width: min(286px, calc(100vw - 20px));
    gap: 6px;
    padding: 8px;
  }

  .command-map {
    height: 128px;
    min-height: 128px;
  }

  .ammo-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hud-bottom.infantry-weapons .ammo-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .entry-screen,
  .deployment-screen,
  .lobby-screen {
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .entry-card,
  .deployment-card,
  .lobby-card {
    width: 100%;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.78fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }

  .entry-card {
    grid-template-columns: minmax(390px, 1fr) minmax(270px, 0.72fr);
  }

  .entry-faction-pane,
  .entry-brief,
  .entry-panel {
    min-height: 0;
    padding: 14px;
  }

  .entry-faction-pane {
    gap: 10px;
  }

  .entry-head {
    gap: 10px;
  }

  .entry-head h1 {
    font-size: 24px;
  }

  .entry-head p {
    font-size: 12px;
    line-height: 1.35;
  }

  .entry-brief {
    justify-content: center;
  }

  .entry-panel {
    height: 100%;
    align-content: start;
    gap: 9px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .entry-skin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .entry-skin-card {
    min-height: 56px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
  }

  .entry-skin-preview {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .entry-skin-detail {
    min-height: 0;
    gap: 6px;
    padding: 10px;
  }

  .lobby-map-wrap {
    height: auto;
    min-height: 0;
    padding: 10px;
    border-right: 1px solid rgba(237, 244, 239, 0.16);
    border-bottom: 0;
  }

  .deployment-map {
    min-height: 0;
  }

  .deployment-panel,
  .lobby-panel {
    gap: 5px;
    padding: 10px;
  }

  .deployment-kicker {
    font-size: 10px;
  }

  .deployment-panel h1 {
    margin-top: 2px;
    font-size: 23px;
  }

  .deployment-mode-section {
    gap: 4px;
  }

  .deployment-section-label {
    font-size: 10px;
  }

  .deployment-mode-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .deployment-class-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .deployment-class,
  .deployment-mode {
    min-height: 64px;
    padding: 7px 9px;
  }

  .deployment-class-head strong,
  .deployment-mode strong {
    font-size: 14px;
  }

  .deployment-class-head em,
  .deployment-mode span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }

  .deployment-class-slots {
    gap: 3px;
  }

  .deployment-mini-slot {
    min-height: 26px;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 3px;
    padding: 3px 4px;
  }

  .deployment-mini-slot b {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }

  .deployment-mini-slot span {
    font-size: 9px;
  }

  .deployment-loadout {
    gap: 6px;
    padding: 8px;
  }

  .deployment-loadout-head strong {
    font-size: 16px;
  }

  .deployment-loadout-head em,
  .deployment-loadout-summary {
    font-size: 10px;
  }

  .deployment-loadout-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .deployment-loadout-slot {
    min-height: 38px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    padding: 5px 6px;
  }

  .loadout-key {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .loadout-ammo {
    min-width: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
  }

  .loadout-actions {
    grid-column: 2;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .loadout-swap {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 9px;
  }

  .deployment-settings {
    grid-template-columns: repeat(5, minmax(56px, 1fr));
    gap: 5px;
  }

  .deployment-setting span {
    font-size: 8px;
  }

  .deployment-setting input,
  .deployment-setting select {
    min-height: 28px;
    padding: 5px 7px;
    font-size: 11px;
  }

  .deployment-start {
    position: static;
    min-height: 38px;
  }

  .map-marker {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .map-marker.unit-blue,
  .map-marker.unit-red {
    width: 16px;
    height: 16px;
  }
}

@media (max-height: 480px) and (max-width: 720px) and (orientation: landscape) {
  .deployment-panel {
    gap: 4px;
    padding: 8px;
  }

  .deployment-kicker {
    display: none;
  }

  .deployment-panel h1 {
    margin: 0;
    font-size: 20px;
  }

  .deployment-mode,
  .deployment-class {
    min-height: 54px;
    padding: 5px 7px;
  }

  .deployment-mode strong,
  .deployment-class-head strong {
    font-size: 13px;
  }

  .deployment-mode span,
  .deployment-class-head em {
    font-size: 9px;
  }

  .deployment-loadout-summary {
    display: none;
  }

  .deployment-settings {
    gap: 4px;
  }

  .deployment-setting span {
    display: none;
  }

  .deployment-setting input,
  .deployment-setting select {
    min-height: 26px;
    padding: 4px 6px;
    font-size: 11px;
  }

  .deployment-start {
    min-height: 34px;
  }
}
