/* Arena, quick actions and active deck content. */
.command-arena-card {
  align-content: start;
  border-color: rgba(242, 189, 83, 0.52);
  background:
    linear-gradient(145deg, rgba(27, 35, 42, 0.96), rgba(4, 14, 23, 0.97) 64%),
    radial-gradient(circle at 14% 22%, rgba(242, 189, 83, 0.16), transparent 34%);
}

.command-arena-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  min-height: 116px;
  align-items: center;
}

.command-rank-core {
  gap: 12px;
  min-width: 0;
}

.command-rank-symbol,
.command-hex-icon,
.command-deck-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--command-cyan-soft);
  background: rgba(3, 20, 33, 0.88);
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
}

.command-rank-symbol {
  width: 82px;
  height: 82px;
  color: var(--command-gold);
  border: 1px solid var(--command-gold);
  font-size: 2.1rem;
  text-shadow: 0 0 18px rgba(242, 189, 83, 0.62);
}

.command-rank-core.is-placement .command-rank-symbol {
  color: var(--command-cyan-soft);
}

.command-rank-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.command-rank-copy small {
  color: #91b4c6;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-rank-copy strong {
  color: #fff5cf;
  font-size: 1.42rem;
  line-height: 1;
}

.command-rank-copy em {
  color: #b5d4e2;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.command-metrics > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border-left: 2px solid rgba(85, 214, 255, 0.5);
  background: rgba(2, 10, 18, 0.56);
}

.command-metrics small {
  color: #7fa5b6;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.command-metrics strong {
  overflow: hidden;
  color: #edfaff;
  font-size: 1.05rem;
  text-overflow: ellipsis;
}

.command-progress-block {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
}

.command-progress-block > span {
  justify-content: space-between;
  gap: 10px;
}

.command-progress-block small {
  color: #9fc5d5;
  font-size: 0.68rem;
  font-weight: 800;
}

.command-progress-block strong {
  color: var(--command-gold);
  font-size: 0.74rem;
}

.command-progress-block .rating-progress {
  height: 7px;
}

.command-arena-empty,
.command-deck-empty {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 82px;
}

.command-arena-empty {
  grid-column: 1 / -1;
}

.command-arena-empty strong,
.command-deck-empty strong {
  color: #dff7ff;
  font-size: 1rem;
}

.command-arena-empty span,
.command-deck-empty span {
  color: #97b9c8;
  font-size: 0.78rem;
  line-height: 1.35;
}

.command-arena-auth-choice {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(85, 214, 255, 0.38);
  background: rgba(2, 13, 23, 0.82);
}

.command-arena-auth-choice > strong {
  color: #dff8ff;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.command-arena-auth-choice .lobby-account {
  width: 100%;
}

.command-arena-auth-choice .lobby-account-actions {
  margin-left: auto;
}

.command-action-row {
  flex-wrap: wrap;
  gap: 8px;
}

.command-primary,
.command-secondary {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid rgba(85, 214, 255, 0.56);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.command-auth-cta {
  width: 100%;
}

.command-primary {
  color: #effcff;
  background: linear-gradient(180deg, #0e739f, #07415e);
  box-shadow: 0 0 18px rgba(85, 214, 255, 0.18);
}

.command-secondary {
  color: #cfeeff;
  background: rgba(3, 20, 33, 0.78);
}

.command-primary:disabled,
.command-secondary:disabled,
.command-quick-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.command-primary:not(:disabled):hover,
.command-primary:not(:disabled):focus-visible,
.command-secondary:not(:disabled):hover,
.command-secondary:not(:disabled):focus-visible {
  border-color: #d6f8ff;
  color: #fff;
  box-shadow: 0 0 22px rgba(85, 214, 255, 0.32);
}

.command-inline-status,
.command-deck-warning {
  padding: 8px 10px;
  border: 1px solid rgba(242, 189, 83, 0.42);
  color: #ffe5a9;
  background: rgba(66, 43, 7, 0.38);
  font-size: 0.72rem;
  font-weight: 800;
}

.command-active-deck {
  gap: 12px;
  min-width: 0;
  min-height: 86px;
}

.command-active-deck.is-large {
  min-height: 110px;
}

.command-deck-mark {
  width: 62px;
  height: 70px;
  color: var(--command-cyan);
  font-size: 1.8rem;
  box-shadow: inset 0 0 28px rgba(85, 214, 255, 0.12);
}

.command-active-deck strong {
  overflow-wrap: anywhere;
  color: #f1fbff;
  font-size: 1.08rem;
}

.command-active-deck small {
  margin-top: 4px;
  color: #8fb2c2;
  font-size: 0.72rem;
  font-weight: 800;
}

.command-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.command-section-heading {
  display: grid;
  gap: 1px;
  padding-inline: 4px;
}

.command-section-heading h2 {
  font-size: 1rem;
}

.command-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.command-quick-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid rgba(85, 214, 255, 0.32);
  border-radius: 3px;
  background: rgba(3, 18, 30, 0.82);
  text-align: left;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.command-quick-action:hover:not(:disabled),
.command-quick-action:focus-visible:not(:disabled) {
  border-color: rgba(85, 214, 255, 0.8);
  background: rgba(5, 35, 54, 0.92);
}

.command-hex-icon {
  width: 38px;
  height: 42px;
  color: var(--command-cyan);
  font-size: 1.25rem;
}

.command-hex-icon.is-large {
  width: 62px;
  height: 68px;
  font-size: 1.8rem;
}

.command-quick-action strong {
  overflow-wrap: anywhere;
  color: #edfaff;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.command-quick-action small {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #82a6b7;
  font-size: 0.67rem;
  font-weight: 750;
}

.command-quick-action > b {
  display: grid;
  place-items: center;
  color: var(--command-cyan);
  font-size: 1.6rem;
}

.command-arena-mode-card {
  border-color: rgba(242, 189, 83, 0.5);
  background:
    linear-gradient(145deg, rgba(26, 32, 38, 0.96), rgba(3, 14, 23, 0.97) 68%),
    radial-gradient(circle at 18% 22%, rgba(242, 189, 83, 0.14), transparent 34%);
}

.command-arena-mode-status {
  min-height: 2.5em;
  color: #ffe5a6 !important;
  font-weight: 850 !important;
}

.command-primary-scenario {
  align-content: center;
  min-height: 260px;
}

.command-scenario-body {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 14px;
  border-left: 2px solid rgba(85, 214, 255, 0.58);
  background: rgba(2, 14, 24, 0.62);
}

.command-scenario-body strong {
  color: #eafaff;
  font-size: 1.1rem;
}

.command-scenario-body p,
.command-hangar-empty-state p {
  margin: 0;
  color: #91b5c5;
  line-height: 1.45;
}

.command-locked-modes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid rgba(105, 139, 153, 0.22);
  background: rgba(4, 15, 23, 0.58);
  color: #7793a0;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.command-locked-modes .command-icon {
  color: #7292a0;
  font-size: 1.1rem;
}

.command-locked-modes strong {
  color: #a6bcc5;
  font-size: 0.65rem;
}

.command-hangar-empty-state {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 220px;
}

.command-hangar-empty-state h2 {
  margin: 3px 0 8px;
  color: #effbff;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.command-hangar-empty-state small {
  color: var(--command-cyan);
  font-weight: 850;
  text-transform: uppercase;
}

.command-matchmaking-banner {
  position: fixed;
  z-index: 79;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 189, 83, 0.68);
  background: rgba(5, 15, 24, 0.98);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.62), 0 0 22px rgba(242, 189, 83, 0.14);
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}

.command-matchmaking-banner.is-above-dock {
  bottom: calc(90px + env(safe-area-inset-bottom));
}

.command-matchmaking-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.command-matchmaking-copy small,
.command-matchmaking-copy strong,
.command-matchmaking-copy em,
.command-matchmaking-copy span {
  overflow-wrap: anywhere;
}

.command-matchmaking-copy small {
  color: #f2bd53;
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-matchmaking-copy strong {
  color: #f2fbff;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.command-matchmaking-copy em,
.command-matchmaking-copy span {
  color: #8fb1c0;
  font-size: 0.68rem;
  font-style: normal;
}

.command-matchmaking-copy b {
  color: #fff0b8;
}

.command-matchmaking-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.has-matchmaking-banner.has-command-dock .command-shell-content {
  padding-bottom: calc(190px + env(safe-area-inset-bottom));
}
