/* Pre-match screens: readable at every height; scroll content instead of shrinking type. */
#menu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 10%, #37534c8c, transparent 65%),
    linear-gradient(115deg, #102731fa, #142e34f2);
  font-size: 16px;
}
#menu .secondary,
#matchSettings .secondary,
#arsenal .secondary {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
  letter-spacing: 0.2px;
  border-color: #93aea568;
  color: #e3e9d8;
  background: #203c43;
  border-radius: 6px;
}
#menu .secondary:hover,
#matchSettings .secondary:hover,
#arsenal .secondary:hover {
  border-color: #ead69c;
  background: #2c484b;
}
.selection-header {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px max(32px, calc((100vw - 1360px) / 2));
  border-bottom: 1px solid #a3c0ad26;
  flex-shrink: 0;
  background: #122b35a6;
}
.selection-brand {
  min-width: 265px;
}
.selection-brand .wordmark {
  font-size: 25px;
  letter-spacing: 4px;
  white-space: nowrap;
}
.selection-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  color: #a7beb5;
  margin-top: 8px;
}
.selection-title {
  flex: 1;
  min-width: 0;
}
#menu .selection-title h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 0;
  text-shadow: none;
  font-weight: 750;
}
.selection-title p {
  color: #a9bfb8;
  font-size: 14px;
  margin: 7px 0 0;
}
.selection-header > button {
  flex-shrink: 0;
}
.selection-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #58766f #132d34;
}
.selection-body {
  width: 100%;
  max-width: 1360px;
  margin: auto;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 305px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin: 0 0 16px;
  color: #dfe7d8;
  line-height: 1.4;
}
.section-label > span {
  font-size: 12px;
  color: #e7ce93;
  background: #e7ce9312;
  border: 1px solid #e7ce9335;
  border-radius: 4px;
  padding: 3px 5px;
}
.section-label > small {
  margin-left: auto;
  color: #a6beb5;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
}
.operation-options {
  display: grid;
  gap: 12px;
}
.operation-choice {
  position: relative;
  display: flex;
  gap: 15px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 20px 16px;
  text-align: left;
  border: 1px solid #91ada740;
  border-radius: 8px;
  background: #17343ee6;
  color: #eceddd;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.operation-choice:hover {
  background: #29454a;
  border-color: #a7beb5;
}
.operation-choice.selected {
  border-color: #e7ce93;
  background: linear-gradient(105deg, #d4bc7030, #223e43);
  box-shadow: inset 4px 0 #e7ce93;
}
.operation-choice b {
  display: block;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.operation-choice small {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #acc3ba;
  margin-top: 7px;
}
.operation-choice.selected small {
  color: #d2ddcb;
}
.operation-symbol {
  width: 28px;
  flex-shrink: 0;
  text-align: center;
  color: #a6c1b7;
  font-size: 29px;
}
.operation-choice.selected .operation-symbol {
  color: #f0d895;
}
.operation-check {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #efd99c;
  font-size: 14px;
  opacity: 0;
}
.operation-choice.selected .operation-check {
  opacity: 1;
}
.solo-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a9bfb8;
  font-size: 13px;
  margin: 20px 0 0 2px;
}
.solo-note > span {
  width: 6px;
  height: 6px;
  background: #b5d5a3;
  border-radius: 50%;
}
.battlefield-card {
  border: 1px solid #8aa79d55;
  border-radius: 9px;
  overflow: hidden;
  background: #18343dd9;
  box-shadow: 0 14px 40px #071a272b;
}
.battlefield-preview {
  position: relative;
  display: flex;
  justify-content: center;
  height: 270px;
  border-bottom: 1px solid #8aa79d55;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, #a6c0aa09 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #a6c0aa09 31px 32px), #102b34;
}
#selectedMapPreview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px 0 32px;
  filter: saturate(0.85);
}
.preview-legend {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  color: #d7dfc7;
}
.preview-legend span:first-child {
  color: #85cee6;
}
.preview-legend span:nth-child(2) {
  color: #f0ac8a;
}
.battlefield-briefing {
  padding: 20px 24px;
}
.battlefield-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
#selectedMapName {
  font-size: 27px;
  letter-spacing: -0.6px;
  font-weight: 650;
  margin: 0;
  color: #f2e6bf;
}
#menu .mode-tag {
  font-size: 12px;
  gap: 10px;
  letter-spacing: 0.2px;
  flex-wrap: wrap;
  line-height: 1.4;
}
#menu .mode-tag span {
  padding: 5px 7px;
  font-size: 12px;
}
#missionText {
  font-size: 16px;
  line-height: 1.55;
  color: #c0d1c7;
  margin: 14px 0 0;
  max-width: 78ch;
}
.battlefield-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.battlefield-choice {
  text-align: left;
  position: relative;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #91ada750;
  border-radius: 5px;
  background: #102c35;
  color: #d2ddd0;
}
.battlefield-choice b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.battlefield-choice small {
  display: block;
  font-size: 12px;
  color: #a9beb5;
  margin-top: 6px;
}
.battlefield-choice:hover {
  background: #2a4547;
  border-color: #a8c5b3;
}
.battlefield-choice.selected {
  border-color: #efd79a;
  background: #d0bd7024;
  box-shadow: inset 0 -3px #e7ce93;
  color: #f2dfaa;
}
.battlefield-choice.selected small {
  color: #d4d6bc;
}
.battlefield-intel {
  margin-top: 16px;
  color: #c1d0c5;
  font-size: 15px;
}
.battlefield-intel summary,
.controls-disclosure summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  align-content: center;
  color: #bfd2c5;
  font-size: 14px;
  padding: 10px 0;
  list-style-position: inside;
  border-top: 1px solid #96b2a52e;
}
.battlefield-intel summary:hover,
.controls-disclosure summary:hover {
  color: #f1dba3;
}
.battlefield-intel p {
  line-height: 1.55;
  margin: 10px 0;
}
.battlefield-intel p:last-of-type {
  color: #e3d4a8;
}
.battlefield-intel small {
  display: block;
  color: #98b3a9;
  font-size: 12px;
  margin-top: 16px;
}
.deployment-bar {
  flex-shrink: 0;
  border-top: 1px solid #a3c0ad40;
  background: #102a34f5;
  box-shadow: 0 -8px 32px #09212d42;
}
.deployment-inner {
  max-width: 1360px;
  margin: auto;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 32px;
}
.deployment-loadout {
  flex: 1;
  min-width: 0;
}
.deployment-label {
  font-size: 14px;
  color: #c6d4c8;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.deployment-label > span {
  font-size: 12px;
  color: #eddaaa;
  border: 1px solid #daca8a42;
  padding: 3px 6px;
  border-radius: 3px;
}
#menu #loadoutSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
#menu #loadoutSummary > span {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e3e7d5;
  background: transparent;
  border: none;
  padding: 0 8px 0 0;
  white-space: nowrap;
}
#menu #loadoutSummary i {
  font-size: 12px;
  font-style: normal;
  border: 1px solid #9bb5ab50;
  border-radius: 3px;
  padding: 3px 5px;
  color: #b4c9bc;
  margin: 0;
}
#menu .settings-launch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 170px;
}
#settingsSummary {
  font-size: 12px;
  color: #b2c7b9;
  letter-spacing: 0;
}
#menu #deploy {
  min-width: 210px;
  min-height: 64px;
  padding: 18px 24px;
  font-size: 19px;
  letter-spacing: 2px;
  border-radius: 6px;
}
#menu #deploy span {
  font-size: 26px;
}
#matchSettings {
  z-index: 10;
  background: #0a202de8;
  font-size: 16px;
}
.settings-dialog {
  width: min(680px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: linear-gradient(135deg, #28474e, #15343e);
  border: 1px solid #7d9e9e;
  border-top: 3px solid #f0d895;
  border-radius: 9px;
  padding: 30px;
  box-shadow: 0 20px 80px #061c39aa;
}
.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.settings-heading h2 {
  font-size: 28px;
  font-weight: 650;
  margin: 8px 0;
  color: #f1e5bf;
  letter-spacing: -0.5px;
}
.settings-heading .selection-kicker {
  margin: 0;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 24px 0;
  border-top: 1px solid #93aea533;
}
.setting-row > div {
  flex: 1;
}
.setting-row label,
.setting-row b {
  font-size: 18px;
  font-weight: 600;
  color: #ebeddb;
}
.setting-row p {
  font-size: 15px;
  color: #b8cec2;
  line-height: 1.55;
  margin: 8px 0 0;
}
.setting-row select {
  min-height: 48px;
  min-width: 170px;
  background: #122e37;
  border: 1px solid #93aea580;
  border-radius: 5px;
  padding: 10px 14px;
  color: #efedda;
  font-size: 16px;
}
#matchSettings #fogToggle {
  flex-shrink: 0;
  min-width: 170px;
  font-size: 13px;
}
#matchSettings #fogToggle[aria-pressed='true'] {
  color: #f3dea8;
  border-color: #edd698;
  background: #d0bd7024;
}
.controls-disclosure dl {
  margin: 8px 0 16px;
}
.controls-disclosure dl > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.5;
}
.controls-disclosure dt {
  color: #f1dfb3;
}
.controls-disclosure dd {
  margin: 0;
  color: #bdcec2;
}
.settings-note {
  font-size: 13px;
  line-height: 1.5;
  color: #a1b9ae;
  margin: 16px 0 0;
}
@media (min-width: 901px) and (max-height: 800px) {
  .selection-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .selection-body {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .battlefield-preview {
    height: 205px;
  }
  .battlefield-briefing {
    padding: 16px 22px;
  }
  .battlefield-intel {
    margin-top: 10px;
  }
  .deployment-inner {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .operation-choice {
    min-height: 108px;
  }
}
@media (max-width: 1100px) {
  .selection-header {
    gap: 24px;
  }
  .selection-brand {
    min-width: 245px;
  }
  .selection-body {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
  }
  .deployment-inner {
    gap: 12px;
  }
  #menu #deploy {
    min-width: 170px;
  }
  #menu .settings-launch {
    min-width: 155px;
  }
  #menu .secondary {
    padding-inline: 15px;
  }
  .battlefield-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .selection-header {
    padding: 20px 24px;
    flex-wrap: wrap;
    gap: 18px;
  }
  .selection-brand {
    min-width: 0;
    flex: 1;
  }
  .selection-title {
    order: 3;
    flex-basis: 100%;
  }
  .selection-title p {
    display: none;
  }
  .selection-body {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .operation-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .operation-choice {
    min-height: 130px;
    padding: 18px 14px;
    align-items: flex-start;
  }
  .operation-symbol {
    display: none;
  }
  .operation-choice b {
    font-size: 19px;
  }
  .operation-choice small {
    font-size: 14px;
  }
  .solo-note {
    margin-top: 12px;
  }
  .battlefield-preview {
    height: 260px;
  }
  .battlefield-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .deployment-inner {
    padding: 18px 24px;
    flex-wrap: wrap;
  }
  .deployment-loadout {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .deployment-label {
    margin: 0;
    flex-shrink: 0;
  }
  #menu #deploy {
    margin-left: auto;
    min-width: 220px;
  }
  .section-label {
    margin-bottom: 12px;
  }
  .selection-kicker {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .selection-header {
    padding: 16px;
    gap: 14px;
  }
  .selection-brand .wordmark {
    font-size: 20px;
    letter-spacing: 3px;
  }
  .selection-brand .selection-kicker {
    display: none;
  }
  #menu .selection-title h1 {
    font-size: 25px;
  }
  .selection-body {
    padding: 20px 16px;
  }
  .operation-options {
    grid-template-columns: 1fr;
  }
  .operation-choice {
    min-height: 106px;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
  }
  .operation-symbol {
    display: block;
  }
  .operation-choice b {
    font-size: 20px;
  }
  .operation-choice small {
    font-size: 15px;
  }
  .battlefield-preview {
    height: 235px;
  }
  .battlefield-briefing {
    padding: 18px;
  }
  .battlefield-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-label > small {
    font-size: 12px;
  }
  .deployment-inner {
    padding: 14px 16px;
    gap: 10px;
  }
  .deployment-loadout {
    display: none;
  }
  #menu .deployment-inner > .secondary {
    flex: 1;
    min-width: 0;
  }
  #menu #deploy {
    width: 100%;
    min-height: 56px;
    justify-content: space-between;
    margin: 0;
  }
  .preview-legend {
    gap: 12px;
    font-size: 11px;
  }
  #selectedMapName {
    font-size: 26px;
  }
  .settings-dialog {
    padding: 22px;
    max-height: calc(100dvh - 32px);
  }
  #matchSettings,
  #arsenal {
    padding: 16px;
  }
  .setting-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .setting-row > select {
    width: 100%;
  }
  .settings-heading {
    gap: 12px;
  }
  .settings-heading h2 {
    font-size: 25px;
  }
  .controls-disclosure dl > div {
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }
}

/* Operation cards keep their full-size labels; short windows scroll. */
.solo-note > span#participantNote {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}
@media (min-width: 601px) and (max-width: 900px) {
  .operation-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#mode-zombies.selected {
  border-color: #b4e77c;
  box-shadow: inset 4px 0 #b4e77c;
}

/* Compact armory: four cards across a desktop, with readable stat comparisons. */
#arsenal .arsenal-dialog {
  width: min(1720px, 100%);
  padding: 18px;
  border-radius: 9px;
  max-height: calc(100dvh - 48px);
  scrollbar-color: #71968b #18343e;
}
#arsenal .arsenal-heading {
  position: sticky;
  top: -18px;
  z-index: 2;
  margin: -18px -18px 10px;
  padding: 12px 18px;
  background: #1c3c46;
  border-bottom: 1px solid #829f9455;
  gap: 16px;
}
#arsenal .arsenal-heading h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 5px 0;
}
#arsenal .arsenal-heading p {
  font-size: 14px;
  line-height: 1.4;
}
#arsenal .eyebrow {
  font-size: 11px;
}
#arsenal .inventory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
#arsenal .inventory-weapon {
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
#arsenal .weapon-heading {
  padding-right: 66px;
  min-height: 40px;
}
#arsenal .weapon-heading b {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.4px;
}
#arsenal .weapon-heading small {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.4px;
  margin-top: 4px;
}
#arsenal .inventory-weapon > .weapon-art {
  width: 64px;
  height: 40px;
  right: 10px;
  top: 9px;
}
#arsenal .inventory-weapon p {
  font-size: 13px;
  line-height: 1.35;
  min-height: 2.7em;
  margin: 6px 0;
  color: #c3d4c9;
}
#arsenal .weapon-stats {
  grid-template-columns: 1fr;
  gap: 2px;
  width: 100%;
}
#arsenal .weapon-stat-row {
  display: grid;
  grid-template-columns: 94px minmax(30px, 1fr) 76px;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}
#arsenal .weapon-stat-row small {
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0;
  color: #c4d5c9;
}
#arsenal .weapon-stat-row b {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 650;
  margin: 0;
  text-align: right;
  color: #f1e5be;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#arsenal .stat-track {
  position: relative;
  display: block;
  height: 8px;
  background: #081e28;
  border: 1px solid #76998f55;
  border-radius: 3px;
  overflow: hidden;
}
#arsenal .stat-track i {
  display: block;
  height: 100%;
  background: #83ccd7;
  border-radius: 2px;
}
#arsenal .stat-damage i {
  background: #926848;
}
#arsenal .stat-damage .stat-retained {
  position: absolute;
  top: 0;
  left: 0;
  background: #f0ce9c;
}
#arsenal .stat-rate i {
  background: #b6d98f;
}
#arsenal .stat-mag i {
  background: #aba9dc;
}
#arsenal .stat-reload i {
  background: #e2cf91;
}
#arsenal .equip-state {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  width: 100%;
  padding-top: 5px;
  margin-top: 7px;
}
#arsenal .arsenal-footer {
  font-size: 13px;
  gap: 18px;
  margin-top: 8px;
}
#arsenal .arsenal-footer > span:last-child {
  font-size: 12px;
  max-width: none;
}
@media (max-width: 1199px) {
  #arsenal .inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 949px) {
  #arsenal .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #arsenal .arsenal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  #arsenal .arsenal-footer > span:last-child {
    text-align: left;
  }
}
@media (max-width: 639px) {
  #arsenal {
    padding: 12px;
  }
  #arsenal .arsenal-dialog {
    padding: 14px;
    max-height: calc(100dvh - 24px);
  }
  #arsenal .arsenal-heading {
    top: -14px;
    margin: -14px -14px 12px;
    padding: 12px 14px;
    align-items: center;
    gap: 12px;
  }
  #arsenal .arsenal-heading h2 {
    font-size: 21px;
  }
  #arsenal .arsenal-heading .secondary {
    min-width: 74px;
    padding: 10px 12px;
  }
  #arsenal .inventory-grid {
    grid-template-columns: 1fr;
  }
  #arsenal .inventory-weapon p {
    min-height: 0;
  }
}
