/* Illustration-first custom operation selection. PC/Steam is the supported release surface. */

body.deployment-operation-open > .settings-button {
  display: none;
}

#deploymentScreen {
  background:
    radial-gradient(circle at 50% 42%, rgba(70, 83, 76, 0.18), transparent 48%),
    rgba(4, 8, 8, 0.94);
}

#deploymentScreen .deployment-card {
  position: relative;
  width: min(1180px, 100%);
  height: min(690px, calc(100dvh - 56px));
  grid-template-columns: minmax(390px, 0.82fr) minmax(500px, 1.18fr);
  border-color: rgba(218, 225, 218, 0.14);
  border-radius: 3px;
  background: #0a1111;
}

#deploymentScreen .deployment-map-wrap {
  min-width: 0;
  padding: 0;
  border-right-color: rgba(218, 225, 218, 0.1);
  background:
    radial-gradient(ellipse at 50% 48%, rgba(58, 78, 78, 0.38), transparent 64%),
    linear-gradient(145deg, #17252b, #0c171c 72%);
}

#deploymentScreen .deployment-map.has-region-overview {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 34% 20%, rgba(111, 132, 133, 0.12), transparent 34%),
    repeating-radial-gradient(circle at 50% 50%, rgba(210, 220, 214, 0.018) 0 1px, transparent 1px 4px),
    linear-gradient(150deg, #17262c, #0d191e 74%);
}

#deploymentScreen .deployment-region-stage {
  width: 100%;
  height: 100%;
}

#deploymentScreen .deployment-region-peninsula {
  left: 50%;
  top: 50%;
  width: auto;
  height: min(94%, 650px);
  max-width: 94%;
  max-height: 94%;
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%);
}

#deploymentScreen .deployment-map-silhouette {
  object-fit: contain;
  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.52))
    saturate(0.82)
    contrast(1.04);
  opacity: 0.94;
}

#deploymentScreen .deployment-region-pin {
  min-width: 0;
  min-height: 30px;
  grid-template-columns: 8px max-content;
  gap: 7px;
  transform: translate(-8px, -50%);
  padding: 5px 8px;
  border-color: rgba(226, 231, 224, 0.28);
  border-radius: 2px;
  background: rgba(8, 14, 14, 0.88);
  color: rgba(226, 231, 224, 0.72);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.46);
}

#deploymentScreen .deployment-region-pin i {
  width: 7px;
  height: 7px;
  border-width: 1px;
  box-shadow: none;
}

#deploymentScreen .deployment-region-pin strong {
  font-size: 12px;
  letter-spacing: 0.02em;
}

#deploymentScreen .deployment-region-pin.is-ready {
  border-color: rgba(197, 211, 191, 0.34);
  color: rgba(224, 232, 218, 0.8);
}

#deploymentScreen .deployment-region-pin.is-ready:hover,
#deploymentScreen .deployment-region-pin.is-ready:focus-visible,
#deploymentScreen .deployment-region-pin.is-active {
  transform: translate(-8px, -50%) scale(1.04);
  border-color: rgba(205, 220, 194, 0.72);
  background: rgba(27, 34, 24, 0.94);
  color: #d7e2cf;
}

#deploymentScreen .deployment-region-pin.is-locked {
  cursor: default;
}

#deploymentScreen .deployment-briefing-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #0a1111;
}

.deployment-operation-visual {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #10191b;
}

.deployment-operation-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 10, 10, 0.04) 56%, rgba(8, 14, 14, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 10, 10, 0.12), transparent 32%);
}

.deployment-operation-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04) brightness(0.84);
}

.deployment-operation-copy {
  display: grid;
  gap: 10px;
  min-height: 154px;
  padding: 22px 28px 20px;
  background:
    linear-gradient(180deg, rgba(10, 17, 17, 0.98), #0a1111),
    #0a1111;
}

#deploymentScreen .deployment-operation-copy h1 {
  margin: 0;
  color: #e4e9e1;
  font: 950 clamp(25px, 2.35vw, 34px) / 1.08 Rajdhani, Inter, sans-serif;
  letter-spacing: 0.02em;
}

.deployment-operation-copy p {
  max-width: 62ch;
  margin: 0;
  color: rgba(222, 229, 222, 0.66);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.72;
  word-break: keep-all;
}

.deployment-operation-copy .is-typewriting::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.88em;
  margin-left: 0.12em;
  vertical-align: -0.06em;
  background: rgba(205, 220, 194, 0.82);
  animation: deployment-typewriter-caret 0.72s steps(1, end) infinite;
}

@keyframes deployment-typewriter-caret {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deployment-operation-copy .is-typewriting::after {
    animation: none;
  }
}

.deployment-actions {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(220px, 1fr);
  gap: 10px;
  margin: 0 28px 24px;
}

#deploymentScreen .deployment-start,
#deploymentScreen .deployment-main-menu {
  position: static;
  min-height: 58px;
  margin: 0;
  border-radius: 2px;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
}

#deploymentScreen .deployment-start {
  border: 1px solid rgba(205, 220, 194, 0.36);
  background: linear-gradient(180deg, rgba(93, 111, 76, 0.92), rgba(52, 66, 44, 0.96));
  color: #edf0e8;
  font-size: 16px;
  letter-spacing: 0.1em;
}

#deploymentScreen .deployment-main-menu {
  border: 1px solid rgba(220, 226, 220, 0.18);
  background: rgba(220, 226, 220, 0.045);
  color: rgba(229, 234, 228, 0.68);
  font-size: 13px;
  font-weight: 850;
}

#deploymentScreen .deployment-main-menu:hover {
  border-color: rgba(205, 220, 194, 0.48);
  background: rgba(93, 111, 76, 0.14);
  color: rgba(229, 235, 225, 0.9);
}

#deploymentScreen .deployment-start:not(:disabled):hover {
  border-color: rgba(205, 220, 194, 0.72);
  background: linear-gradient(180deg, rgba(111, 127, 85, 0.96), rgba(64, 77, 51, 0.98));
}

.deployment-custom-toggle {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(232, 236, 228, 0.82);
  box-shadow: none;
  cursor: pointer;
}

.deployment-custom-toggle:hover {
  color: #c5d3bf;
  background: transparent;
}

.deployment-custom-toggle[aria-expanded="true"] {
  visibility: hidden;
  pointer-events: none;
}

.deployment-custom-toggle svg {
  width: 29px;
  height: 29px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deployment-custom-drawer {
  position: absolute;
  z-index: 5;
  inset: 0 0 0 auto;
  width: min(360px, 78%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-left: 1px solid rgba(229, 235, 227, 0.15);
  background: rgba(8, 14, 14, 0.97);
  box-shadow: -24px 0 50px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
  overflow-y: auto;
}

.deployment-custom-drawer.hidden {
  display: none;
}

.deployment-custom-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 0;
  border-bottom: 1px solid rgba(229, 235, 227, 0.12);
}

.deployment-custom-head strong {
  color: rgba(232, 236, 228, 0.86);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.deployment-custom-head button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(232, 236, 228, 0.58);
  font: 400 28px/1 Inter, sans-serif;
  cursor: pointer;
}

.deployment-custom-drawer .deployment-difficulty,
.deployment-custom-factions {
  display: grid;
  gap: 10px;
}

.deployment-custom-factions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deployment-custom-factions .deployment-setting {
  grid-template-columns: 1fr;
}

.deployment-custom-factions .deployment-setting span {
  font-size: 11px;
}

.deployment-custom-factions select {
  width: 100%;
}

.deployment-force-settings {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(229, 235, 227, 0.1);
}

.deployment-force-head,
.deployment-force-row {
  display: grid;
  grid-template-columns: minmax(58px, 0.72fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.deployment-force-head {
  min-height: 29px;
  color: rgba(232, 236, 228, 0.5);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.deployment-force-head span {
  text-align: left;
}

.deployment-force-head strong {
  color: rgba(232, 236, 228, 0.72);
  font-size: 11px;
}

.deployment-force-row > span {
  color: rgba(232, 236, 228, 0.7);
  font-size: 12px;
  font-weight: 850;
}

.deployment-force-row.is-detail > span {
  padding-left: 9px;
  color: rgba(232, 236, 228, 0.54);
  font-size: 11px;
}

.deployment-force-row input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(229, 235, 227, 0.18);
  border-radius: 3px;
  background: rgba(229, 235, 227, 0.05);
  color: #edf0e8;
  font: 900 14px Rajdhani, Inter, sans-serif;
  text-align: center;
}

.deployment-force-row input:focus {
  border-color: rgba(205, 220, 194, 0.68);
  outline: 1px solid rgba(205, 220, 194, 0.22);
}

#deploymentScreen .deployment-noncustom-options {
  display: none;
}

@media (max-height: 620px) and (min-width: 821px) {
  #deploymentScreen .deployment-card {
    height: calc(100dvh - 24px);
  }

  .deployment-operation-copy {
    min-height: 116px;
    gap: 7px;
    padding: 14px 22px;
  }

  .deployment-operation-copy p {
    font-size: 11px;
    line-height: 1.5;
  }

  .deployment-actions {
    margin: 0 22px 16px;
  }

  #deploymentScreen .deployment-start,
  #deploymentScreen .deployment-main-menu {
    min-height: 44px;
  }
}
