.deployment-setting-difficulty {
  grid-column: 1 / -1;
}

.deployment-faction-matchup {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.deployment-faction-matchup > b {
  color: rgba(237, 244, 239, 0.42);
  font: 900 11px Rajdhani, Inter, sans-serif;
  letter-spacing: 0.12em;
}

.deployment-faction-side {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.deployment-faction-side img {
  width: 44px;
  height: 46px;
  object-fit: cover;
}

.deployment-faction-side strong {
  overflow: hidden;
  padding: 0 5px;
  color: rgba(244, 248, 245, 0.9);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deployment-faction-side.is-blue {
  box-shadow: inset 3px 0 rgba(79, 210, 255, 0.52);
}

.deployment-faction-side.is-red {
  box-shadow: inset -3px 0 rgba(255, 103, 97, 0.52);
}

.deployment-difficulty-description {
  min-height: 36px;
  padding: 9px 11px;
  border-left: 3px solid rgba(205, 220, 194, 0.62);
  border-radius: 2px 6px 6px 2px;
  background: rgba(93, 111, 76, 0.12);
  color: rgba(244, 238, 217, 0.82);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.deployment-difficulty-description[data-difficulty="hard"] {
  border-left-color: rgba(216, 74, 74, 0.82);
  background: rgba(150, 41, 41, 0.12);
  color: rgba(255, 220, 214, 0.9);
}

/* Operation briefing: one screen, one decision path. */
.deployment-card {
  grid-template-columns: minmax(420px, 1fr) minmax(310px, 340px);
  background:
    linear-gradient(90deg, rgba(6, 13, 11, 0.72), rgba(7, 12, 10, 0.96)),
    rgba(8, 14, 12, 0.94);
}

.deployment-briefing-panel {
  display: flex;
  flex-direction: column;
  align-content: initial;
  gap: 18px;
  padding: 32px 28px 24px;
  border-left: 1px solid rgba(205, 220, 194, 0.08);
  background:
    linear-gradient(rgba(205, 220, 194, 0.025) 1px, transparent 1px),
    rgba(8, 14, 12, 0.72);
  background-size: 100% 42px, auto;
}

.deployment-briefing-header {
  display: grid;
  gap: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(237, 244, 239, 0.1);
  text-align: center;
}

.deployment-briefing-header > span {
  color: rgba(237, 244, 239, 0.68);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.deployment-briefing-panel .deployment-briefing-header h1 {
  color: #c5d3bf;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.1;
  text-wrap: balance;
}

.deployment-briefing-header p {
  margin: 0;
  color: rgba(237, 244, 239, 0.46);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.4;
}

.deployment-briefing-panel .deployment-faction-matchup {
  gap: 7px;
}

.deployment-briefing-panel .deployment-faction-side {
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 42px;
  border-radius: 3px;
  background: rgba(237, 244, 239, 0.035);
}

.deployment-briefing-panel .deployment-faction-side img {
  width: 40px;
  height: 40px;
}

.deployment-briefing-panel .deployment-faction-side strong {
  font-size: 11px;
  text-align: center;
}

.deployment-difficulty {
  display: grid;
  gap: 8px;
}

.deployment-player-start {
  display: grid;
  gap: 8px;
}

.deployment-difficulty > .deployment-section-label,
.deployment-player-start > .deployment-section-label {
  color: rgba(237, 244, 239, 0.58);
  font-size: 11px;
  font-weight: 900;
}

.deployment-difficulty-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 3px;
  background: rgba(237, 244, 239, 0.025);
}

.deployment-difficulty-options button {
  min-width: 0;
  min-height: 42px;
  padding: 0 5px;
  border: 0;
  border-right: 1px solid rgba(237, 244, 239, 0.1);
  background: transparent;
  color: rgba(237, 244, 239, 0.52);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.deployment-difficulty-options button:last-child {
  border-right: 0;
}

.deployment-difficulty-options button:hover {
  background: rgba(93, 111, 76, 0.14);
  color: rgba(244, 238, 217, 0.88);
}

.deployment-difficulty-options button.active {
  background:
    linear-gradient(180deg, rgba(93, 111, 76, 0.32), rgba(52, 66, 44, 0.24));
  color: #d7e2cf;
  box-shadow: inset 0 0 0 1px rgba(205, 220, 194, 0.48);
}

.deployment-player-start-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 3px;
  background: rgba(237, 244, 239, 0.025);
}

.deployment-player-start-options button {
  min-width: 0;
  min-height: 38px;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid rgba(237, 244, 239, 0.1);
  background: transparent;
  color: rgba(237, 244, 239, 0.5);
  font: 900 11px/1 Inter, sans-serif;
  cursor: pointer;
}

.deployment-player-start-options button:last-child {
  border-right: 0;
}

.deployment-player-start-options button:hover {
  background: rgba(93, 111, 76, 0.14);
  color: rgba(244, 238, 217, 0.88);
}

.deployment-player-start-options button.active {
  background:
    linear-gradient(180deg, rgba(93, 111, 76, 0.32), rgba(52, 66, 44, 0.24));
  color: #d7e2cf;
  box-shadow: inset 0 0 0 1px rgba(205, 220, 194, 0.48);
}

.deployment-ai-start {
  padding-top: 4px;
  border-top: 1px solid rgba(237, 244, 239, 0.1);
}

.deployment-ai-start-setting {
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
}

.deployment-ai-start-setting > span:first-child {
  color: rgba(237, 244, 239, 0.64);
  font-size: 11px;
  font-weight: 900;
}

.deployment-ai-start-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.deployment-ai-start-input input {
  min-width: 0;
  min-height: 34px;
  text-align: center;
}

.deployment-ai-start-input small {
  color: rgba(237, 244, 239, 0.5);
  font-size: 10px;
  font-weight: 850;
}

.deployment-briefing-panel .deployment-difficulty-description {
  min-height: 52px;
  display: grid;
  align-items: center;
  margin-top: 2px;
}

.deployment-rule {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(237, 244, 239, 0.1);
  border-radius: 3px;
  background: rgba(237, 244, 239, 0.035);
}

.deployment-rule span {
  color: rgba(237, 244, 239, 0.45);
  font-size: 11px;
  font-weight: 850;
}

.deployment-rule strong {
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 950;
}

.deployment-noncustom-options {
  display: grid;
  gap: 8px;
}

.deployment-noncustom-options.hidden {
  display: none;
}

.deployment-briefing-panel .deployment-start {
  position: static;
  min-height: 58px;
  margin: 0;
  border-color: rgba(205, 220, 194, 0.5);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(112, 125, 81, 0.72), rgba(63, 73, 48, 0.84));
  color: #e7eadc;
  font-size: 17px;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 0 0 1px rgba(237, 244, 239, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.deployment-briefing-panel .deployment-start:not(:disabled):hover {
  border-color: rgba(205, 220, 194, 0.78);
  background:
    linear-gradient(180deg, rgba(132, 146, 93, 0.86), rgba(73, 85, 52, 0.92));
}

.deployment-briefing-panel .deployment-start:disabled {
  cursor: default;
  opacity: 0.42;
  filter: saturate(0.55);
}

.deployment-start-hint {
  min-height: 16px;
  margin: -8px 0 0;
  color: rgba(237, 244, 239, 0.34);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

@media (max-height: 620px) {
  .deployment-briefing-panel {
    gap: 10px;
    padding: 18px 20px 14px;
  }

  .deployment-briefing-header {
    gap: 5px;
    padding-bottom: 10px;
  }

  .deployment-briefing-header > span {
    font-size: 15px;
  }

  .deployment-briefing-panel .deployment-difficulty-description {
    min-height: 42px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .deployment-rule {
    min-height: 38px;
  }

  .deployment-briefing-panel .deployment-start {
    min-height: 44px;
  }
}
