.clash-band {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 4px 12px;
  border: 1px solid rgba(245, 223, 170, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 52%, rgba(245, 207, 120, 0.1), transparent 42%),
    linear-gradient(90deg, rgba(64, 142, 188, 0.1), rgba(245, 223, 170, 0.055), rgba(194, 70, 63, 0.1)),
    rgba(12, 13, 12, 0.54);
  color: #ded9bd;
}

.clash-band::before,
.clash-band::after {
  grid-area: 1 / 1;
  width: min(32%, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 223, 170, 0.28));
  content: "";
}

.clash-band::before {
  justify-self: start;
}

.clash-band::after {
  justify-self: end;
  transform: scaleX(-1);
}

.round-count {
  display: none;
  gap: 2px;
  justify-items: start;
  justify-self: start;
  width: 100%;
  color: rgba(244, 236, 216, 0.76);
  font-size: 16px;
  font-weight: 900;
}

.round-count b {
  color: #7ee5b4;
  font-size: 22px;
}

.round-count small {
  color: rgba(244, 236, 216, 0.58);
  font-size: 13px;
}

.clash-band .result-chip {
  min-width: 118px;
  min-height: 32px;
  border: 1px solid rgba(245, 223, 170, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(245, 223, 170, 0.12), rgba(245, 223, 170, 0.04)),
    rgba(9, 10, 9, 0.72);
  color: #f0c86a;
  font-size: 20px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
  text-shadow: 0 1px 8px rgba(215, 170, 71, 0.22);
}

.clash-band .result-chip[data-result="player"] {
  color: #d9b458;
}

.clash-band .result-chip[data-result="enemy"] {
  color: #c8655e;
}

.clash-band .result-chip[data-result="draw"] {
  color: #c9c1a6;
}

@media (max-height: 960px) and (min-width: 821px) {
  .app-shell {
    padding: 12px 16px 16px;
  }

  .topbar {
    min-height: 70px;
    padding: 10px 14px;
  }

  .layout {
    margin-top: 12px;
  }

  .battlefield {
    height: calc(100vh - 94px);
  }

  .war-map {
    --battle-card-width: 174px;
    --battle-card-gap: 12px;
    gap: 8px;
    padding: 10px 12px;
  }

  .unit-portrait {
    aspect-ratio: 1 / 0.94;
  }

  .unit-portrait .skill-list {
    gap: 3px;
    padding: 8px 7px 6px;
  }

  .unit-portrait .skill-chip {
    min-height: 20px;
    padding: 3px 7px;
    font-size: 11px;
  }
}

@media (max-height: 840px) and (min-width: 821px) {
  .battlefield .battle-header {
    padding-block: 7px;
  }

  .war-map {
    --battle-card-width: 148px;
    --battle-card-gap: 10px;
    grid-template-rows: minmax(max-content, 1fr) minmax(42px, auto) minmax(max-content, 1fr);
    gap: 6px;
    padding: 9px 12px 10px;
  }

  .army-title {
    min-height: 28px;
    padding-block: 3px;
  }

  .army-title span {
    font-size: 16px;
  }

  .position-row {
    gap: 10px;
  }

  .position-row span {
    min-height: 20px;
    font-size: 12px;
  }

  .line {
    gap: 10px;
  }

  .unit-portrait {
    aspect-ratio: 1 / 0.86;
  }

  .unit-portrait::before {
    transform: scale(1.03);
  }

  .unit-nameplate {
    min-height: 20px;
    padding-block: 2px;
  }

  .unit-troops {
    padding: 3px 5px 5px;
  }

  .unit-troop-row {
    font-size: 11px;
  }

  .unit-portrait .skill-list {
    gap: 3px;
    padding: 8px 6px 6px;
  }

  .unit-portrait .skill-chip {
    min-height: 19px;
    padding: 3px 6px;
    font-size: 11px;
  }

  .clash-band {
    min-height: 36px;
    padding-block: 3px;
  }

  .clash-band .result-chip {
    min-height: 30px;
    font-size: 24px;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .war-map {
    --battle-card-width: 124px;
    --battle-card-gap: 8px;
    grid-template-rows: minmax(max-content, 1fr) minmax(34px, auto) minmax(max-content, 1fr);
    gap: 5px;
    padding-block: 7px 8px;
  }

  .army-title {
    min-height: 25px;
    padding-block: 2px;
  }

  .army-title span {
    font-size: 15px;
  }

  .position-row span {
    min-height: 18px;
  }

  .unit-stars {
    top: 5px;
    left: 6px;
    font-size: 12px;
  }

  .unit-nameplate {
    width: 100%;
    min-height: 19px;
  }

  .unit-portrait {
    aspect-ratio: 1 / 0.82;
  }

  .unit-nameplate .unit-name,
  .unit-arm {
    font-size: 10px;
  }

  .unit-troops {
    padding-bottom: 4px;
  }

  .unit-portrait .skill-list {
    padding: 5px 4px 4px;
  }

  .unit-portrait .skill-chip {
    min-height: 16px;
    padding: 1px 4px;
    font-size: 10px;
  }

  .clash-band {
    min-height: 30px;
    padding-block: 2px;
  }

  .clash-band .result-chip {
    min-height: 26px;
    font-size: 22px;
  }
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(215, 170, 71, 0.18);
}

.stats-strip div {
  display: grid;
  gap: 4px;
  padding: 13px 16px;
  border-right: 1px solid rgba(215, 170, 71, 0.14);
}

.stats-strip div:last-child {
  border-right: 0;
}

.stats-strip span {
  color: var(--muted);
  font-size: 12px;
}

.stats-strip strong {
  color: #f5dfaa;
  font-size: 20px;
}

.troop-summary-text {
  display: block;
  color: #fff0c2;
  font-size: 18px;
  line-height: 1.1;
}

.troop-summary-text small {
  color: rgba(244, 236, 216, 0.54);
  font-size: 12px;
}

.team-troop-bar {
  position: relative;
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(244, 236, 216, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  --wounded-separator: rgba(255, 255, 255, 0.82);
  --wounded-separator-core: rgba(255, 255, 255, 0.96);
  --wounded-separator-glow: rgba(255, 255, 255, 0.42);
  --wounded-separator-aura: rgba(255, 255, 255, 0.18);
}

