.battle-entry-btn,
.battle-command-btn,
.battle-icon-btn {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.battle-entry-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #17191c;
  border-radius: 6px;
  color: #fff;
  background: #17191c;
  box-shadow: 3px 3px 0 #f05d4f;
  font-weight: 800;
}

.battle-entry-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #f05d4f;
}

.sales-battle-screen {
  position: fixed;
  inset: 0;
  z-index: 1800;
  min-width: 320px;
  overflow: auto;
  color: #f7f4ed;
  background: #111315;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  scrollbar-color: #445057 #111315;
}

.battle-grid-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.battle-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(16px, 3vw, 48px);
  border-bottom: 1px solid #31383c;
  background: rgba(17, 19, 21, 0.96);
  backdrop-filter: blur(14px);
}

.battle-topbar-start,
.battle-topbar-actions,
.battle-brand-lockup,
.battle-date-control,
.battle-command-btn,
.battle-icon-btn {
  display: flex;
  align-items: center;
}

.battle-topbar-start,
.battle-topbar-actions {
  gap: 12px;
}

.battle-icon-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  justify-content: center;
  border: 1px solid #394146;
  border-radius: 6px;
  color: #f7f4ed;
  background: #1b1f22;
}

.battle-icon-btn:hover {
  color: #111315;
  border-color: #62d6c7;
  background: #62d6c7;
}

.battle-icon-btn.light {
  color: #1b1f22;
  border-color: #d7d3ca;
  background: #fff;
}

.battle-icon-btn svg,
.battle-command-btn svg,
.battle-entry-btn svg,
.battle-date-control svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.battle-brand-lockup {
  gap: 10px;
}

.battle-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #111315;
  background: #f2c94c;
  font-weight: 950;
  font-size: 20px;
}

.battle-brand-lockup div {
  display: grid;
  gap: 2px;
}

.battle-brand-lockup strong {
  font-size: 15px;
  letter-spacing: 0;
}

.battle-brand-lockup span:last-child {
  color: #99a4aa;
  font-size: 11px;
}

.battle-date-control {
  height: 42px;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #394146;
  border-radius: 6px;
  background: #1b1f22;
}

.battle-date-control span {
  color: #99a4aa;
  font-size: 12px;
  font-weight: 800;
}

.battle-date-control input {
  width: 132px;
  border: 0;
  outline: 0;
  color: #f7f4ed;
  background: transparent;
  font-weight: 800;
  color-scheme: dark;
}

.battle-command-btn {
  min-height: 42px;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid #485159;
  border-radius: 6px;
  color: #f7f4ed;
  background: #22272b;
  font-weight: 800;
}

.battle-command-btn:hover {
  border-color: #62d6c7;
}

.battle-command-btn.primary {
  color: #111315;
  border-color: #62d6c7;
  background: #62d6c7;
}

.battle-command-btn.subtle {
  color: #4e5a61;
  border-color: #c9c5bd;
  background: #f4f1ea;
}

.battle-stage {
  position: relative;
  z-index: 1;
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px) 56px;
}

.battle-hero-band {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(620px, 1.28fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding: 32px 0;
  border-bottom: 1px solid #353c40;
}

.battle-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #aab4b8;
  font-size: 12px;
  font-weight: 850;
}

.battle-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f05d4f;
  box-shadow: 0 0 16px #f05d4f;
  animation: battle-pulse 1.6s ease-in-out infinite;
}

.battle-kicker b {
  color: #f7f4ed;
}

.battle-headline h1 {
  margin: 0;
  color: #fffdf7;
  font-size: clamp(44px, 5vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.battle-headline > p:last-child {
  margin: 14px 0 0;
  color: #98a3a8;
  font-size: 14px;
}

.battle-team-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  border-top: 1px solid #3a4247;
  border-bottom: 1px solid #3a4247;
}

.battle-total-item {
  min-width: 0;
  padding: 20px clamp(14px, 2vw, 28px);
  border-left: 1px solid #3a4247;
}

.battle-total-item:first-child {
  border-left: 0;
}

.battle-total-item span {
  display: block;
  margin-bottom: 8px;
  color: #8f9ba1;
  font-size: 11px;
  font-weight: 800;
}

.battle-total-item strong {
  display: block;
  color: #fffdf7;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
  white-space: nowrap;
}

.battle-total-item.teal strong { color: #62d6c7; }
.battle-total-item.coral strong { color: #ff796c; }
.battle-total-item.gold strong { color: #f2c94c; }
.battle-total-item.cobalt strong { color: #78a8ff; }

.battle-podium-band,
.battle-progress-band,
.battle-intel-band {
  padding: 34px 0 0;
}

.battle-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.battle-section-heading > div {
  min-width: 0;
}

.battle-section-heading span {
  display: block;
  margin-bottom: 4px;
  color: #62d6c7;
  font-size: 10px;
  font-weight: 950;
}

.battle-section-heading h2 {
  margin: 0;
  color: #fffdf7;
  font-size: 24px;
  letter-spacing: 0;
}

.battle-section-heading p {
  max-width: 680px;
  margin: 0;
  color: #8f9ba1;
  font-size: 12px;
  text-align: right;
}

.battle-section-heading.compact {
  margin-bottom: 14px;
}

.battle-section-heading.compact h2 {
  font-size: 20px;
}

.battle-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.battle-rank-card,
.battle-player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #3a4247;
  border-radius: 8px;
  background: #1a1e21;
}

.battle-rank-card {
  min-height: 222px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  padding: 20px;
  cursor: pointer;
}

.battle-rank-card:hover,
.battle-player-card:hover {
  border-color: var(--battle-accent, #62d6c7);
  transform: translateY(-2px);
}

.battle-rank-card.rank-1 {
  border-color: #8c7938;
  background: #211f18;
}

.battle-rank-index {
  position: absolute;
  top: 10px;
  right: 14px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 64px;
  font-weight: 950;
  line-height: 1;
}

.battle-avatar-frame {
  position: relative;
  width: 128px;
  aspect-ratio: 1;
  padding: 5px;
  border: 2px solid var(--battle-accent, #62d6c7);
  border-radius: 50%;
  background: #111315;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--battle-accent, #62d6c7) 15%, transparent);
}

.battle-avatar-frame img,
.battle-mini-avatar img,
.celebration-content img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.battle-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: #111315;
  background: var(--battle-accent, #62d6c7);
  font-size: 22px;
  font-weight: 950;
}

.battle-avatar-fallback[hidden] {
  display: none;
}

.battle-avatar-frame img {
  border-radius: 50%;
}

.battle-crown {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translateX(-50%) rotate(-6deg);
  color: #111315;
  border-radius: 50%;
  background: #f2c94c;
  box-shadow: 0 0 24px rgba(242, 201, 76, 0.45);
}

.battle-rank-copy {
  min-width: 0;
}

.battle-rank-label {
  color: var(--battle-accent, #62d6c7);
  font-size: 10px;
  font-weight: 950;
}

.battle-rank-copy h3 {
  margin: 6px 0 2px;
  color: #fff;
  font-size: 26px;
}

.battle-power-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0;
}

.battle-power-row strong {
  color: #fffdf7;
  font-size: 36px;
  line-height: 1;
}

.battle-power-row span {
  color: #8e999e;
  font-size: 11px;
  font-weight: 800;
}

.battle-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #9ca7ac;
  font-size: 11px;
}

.battle-mini-metrics b {
  color: #f7f4ed;
}

.battle-tag-row {
  min-height: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.battle-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

.battle-tag.gold { color: #f2c94c; background: rgba(242, 201, 76, 0.08); }
.battle-tag.coral { color: #ff796c; background: rgba(255, 121, 108, 0.08); }
.battle-tag.teal { color: #62d6c7; background: rgba(98, 214, 199, 0.08); }
.battle-tag.cobalt { color: #78a8ff; background: rgba(120, 168, 255, 0.08); }
.battle-tag.slate { color: #b2bbc0; background: rgba(178, 187, 192, 0.08); }

.battle-player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.battle-player-card {
  min-width: 0;
  padding: 18px;
}

.battle-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.battle-player-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.battle-mini-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  overflow: hidden;
  border: 2px solid var(--battle-accent, #62d6c7);
  border-radius: 50%;
}

.battle-player-identity h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.battle-player-identity span {
  color: #8f9ba1;
  font-size: 10px;
}

.battle-sparkline {
  width: 92px;
  height: 36px;
  flex: 0 0 92px;
}

.battle-sparkline polyline {
  fill: none;
  stroke: var(--battle-accent, #62d6c7);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battle-goal-lane + .battle-goal-lane {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #343b3f;
}

.battle-goal-meta,
.battle-goal-foot,
.battle-bonus-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.battle-goal-meta span,
.battle-goal-foot,
.battle-bonus-steps {
  color: #919ca1;
  font-size: 10px;
  font-weight: 750;
}

.battle-goal-meta strong {
  color: #fff;
  font-size: 21px;
}

.battle-progress-track {
  position: relative;
  height: 11px;
  margin: 10px 0 9px;
  overflow: hidden;
  border-radius: 3px;
  background: #30373b;
}

.battle-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  max-width: 100%;
  border-radius: inherit;
  background: var(--battle-accent, #62d6c7);
  transform-origin: left center;
  animation: battle-progress-in 900ms cubic-bezier(.2,.8,.2,1) both;
}

.battle-progress-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #111315;
}

.battle-bonus-steps span.achieved {
  color: var(--battle-accent, #62d6c7);
}

.battle-goal-foot strong {
  color: #f7f4ed;
}

.battle-intel-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.battle-event-zone,
.battle-history-zone {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid #3a4247;
}

.battle-event-feed,
.battle-history-list {
  display: grid;
  gap: 8px;
}

.battle-event-item,
.battle-history-item {
  min-height: 64px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #343b3f;
  border-radius: 6px;
  background: #181c1f;
}

.battle-event-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.battle-history-item {
  grid-template-columns: 70px 38px minmax(0, 1fr) auto;
}

.battle-event-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #111315;
  border-radius: 50%;
  background: var(--battle-accent, #62d6c7);
}

.battle-event-icon svg {
  width: 19px;
}

.battle-event-copy,
.battle-history-copy {
  min-width: 0;
}

.battle-event-copy strong,
.battle-history-copy strong {
  display: block;
  margin-bottom: 3px;
  color: #fffdf7;
  font-size: 13px;
}

.battle-event-copy span,
.battle-history-copy span,
.battle-event-item time,
.battle-history-item > span {
  color: #8f9ba1;
  font-size: 10px;
}

.battle-history-item > b {
  color: #f2c94c;
  font-size: 12px;
}

.battle-history-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.battle-empty-state {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed #41494e;
  border-radius: 6px;
  color: #89949a;
  text-align: center;
}

.battle-loading {
  position: fixed;
  inset: 68px 0 0;
  z-index: 30;
  display: grid;
  place-content: center;
  gap: 16px;
  color: #fff;
  background: rgba(17, 19, 21, 0.92);
  text-align: center;
}

.battle-loader {
  width: 54px;
  height: 54px;
  margin: auto;
  border: 4px solid #3a4247;
  border-top-color: #62d6c7;
  border-radius: 50%;
  animation: battle-spin 800ms linear infinite;
}

.battle-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: min(840px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f4f1ea;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.battle-dialog::backdrop {
  background: rgba(10, 12, 13, 0.72);
  backdrop-filter: blur(6px);
}

.battle-dialog-shell {
  color: #1a1e21;
}

.battle-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #d1cdc4;
  background: #ebe7de;
}

.battle-dialog-header span {
  display: block;
  margin-bottom: 3px;
  color: #087f74;
  font-size: 10px;
  font-weight: 900;
}

.battle-dialog-header h3 {
  margin: 0;
  font-size: 22px;
}

.battle-admin-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 560px;
}

.battle-record-form {
  align-content: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-right: 1px solid #d1cdc4;
  background: #fffdf8;
}

.battle-record-form label {
  min-width: 0;
}

.battle-record-form label.wide,
.battle-form-hint,
.battle-form-status,
.battle-form-actions {
  grid-column: 1 / -1;
}

.battle-record-form label span {
  display: block;
  margin-bottom: 6px;
  color: #59646a;
  font-size: 11px;
  font-weight: 800;
}

.battle-record-form input,
.battle-record-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #c5c0b7;
  border-radius: 5px;
  color: #1a1e21;
  background: #fff;
}

.battle-record-form input:focus,
.battle-record-form select:focus {
  outline: 2px solid rgba(8, 127, 116, 0.24);
  border-color: #087f74;
}

.battle-form-hint {
  margin: 0;
  color: #6b767c;
  font-size: 11px;
  line-height: 1.6;
}

.battle-form-status {
  min-height: 18px;
  color: #b83a31;
  font-size: 11px;
}

.battle-form-status.success { color: #087f74; }

.battle-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.battle-record-list-wrap {
  min-width: 0;
  padding: 20px;
  overflow: hidden;
}

.battle-record-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.battle-record-list-head span {
  color: #6b767c;
  font-size: 11px;
}

.battle-record-list {
  max-height: 510px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.battle-record-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 100px auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid #d4d0c7;
  border-radius: 6px;
  background: #fff;
}

.battle-record-item > span {
  color: #566169;
  font-size: 11px;
}

.battle-record-main {
  min-width: 0;
}

.battle-record-main strong,
.battle-record-main span {
  display: block;
}

.battle-record-main strong {
  overflow: hidden;
  color: #1a1e21;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-record-main em {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(8, 127, 116, 0.12);
  color: #087f74;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  vertical-align: 1px;
}

.battle-record-main span {
  margin-top: 4px;
  color: #7a858b;
  font-size: 10px;
}

.battle-record-amount {
  color: #087f74;
  font-size: 13px;
  text-align: right;
}

.battle-record-actions {
  display: flex;
  gap: 4px;
}

.battle-record-actions button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #cec9c0;
  border-radius: 4px;
  color: #59646a;
  background: #f7f4ed;
  cursor: pointer;
}

.battle-record-actions button:hover { color: #087f74; border-color: #087f74; }
.battle-record-actions button.danger:hover { color: #b83a31; border-color: #b83a31; }
.battle-record-actions svg { width: 15px; }

.battle-record-lock {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e9edf0;
  color: #59646a;
  font-size: 11px;
  font-weight: 900;
}

.person-dialog {
  width: min(720px, calc(100vw - 28px));
  overflow: visible;
  color: #f7f4ed;
  background: #171b1e;
}

.battle-person-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.battle-person-detail {
  min-height: 480px;
  padding: 34px;
}

.battle-detail-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #394146;
}

.battle-detail-hero h2 {
  margin: 4px 0 10px;
  font-size: 34px;
}

.battle-detail-rank {
  color: var(--battle-accent, #62d6c7);
  font-size: 11px;
  font-weight: 900;
}

.battle-detail-score {
  color: #fff;
  font-size: 44px;
  font-weight: 950;
}

.battle-detail-score span {
  color: #8f9ba1;
  font-size: 11px;
}

.battle-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.battle-detail-metric {
  min-height: 112px;
  padding: 16px;
  border-left: 3px solid var(--battle-accent, #62d6c7);
  background: #202529;
}

.battle-detail-metric span,
.battle-detail-metric small {
  display: block;
  color: #929da2;
  font-size: 10px;
}

.battle-detail-metric strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 25px;
}

.battle-celebration {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(12, 14, 15, 0.94);
}

#battle-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.celebration-rings,
.celebration-content {
  position: relative;
  z-index: 2;
}

.celebration-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 201, 76, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: battle-ring 2.2s ease-out infinite;
}

.celebration-rings span:nth-child(2) { animation-delay: 0.7s; }
.celebration-rings span:nth-child(3) { animation-delay: 1.4s; }

.celebration-content {
  width: min(520px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  text-align: center;
}

.celebration-content > p:first-child {
  margin: 0 0 12px;
  color: #f2c94c;
  font-size: 13px;
  font-weight: 950;
}

.celebration-content img {
  width: 170px;
  height: 170px;
  border: 4px solid #f2c94c;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(242, 201, 76, 0.35);
  animation: battle-avatar-enter 700ms cubic-bezier(.15,.8,.2,1) both;
}

.celebration-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: -27px 0 8px;
  z-index: 2;
  color: #111315;
  border-radius: 50%;
  background: #f2c94c;
}

.celebration-badge svg {
  width: 30px;
  height: 30px;
}

.celebration-content h2 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(30px, 6vw, 54px);
  letter-spacing: 0;
}

.celebration-content > strong {
  color: #62d6c7;
  font-size: 20px;
}

.celebration-content > p:not(:first-child) {
  margin: 8px 0 22px;
  color: #c4ccd0;
}

body.battle-open {
  overflow: hidden;
}

@keyframes battle-pulse {
  50% { opacity: 0.45; transform: scale(0.75); }
}

@keyframes battle-spin {
  to { transform: rotate(360deg); }
}

@keyframes battle-progress-in {
  from { transform: scaleX(0); }
}

@keyframes battle-ring {
  from { opacity: 0.8; transform: translate(-50%, -50%) scale(0.5); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

@keyframes battle-avatar-enter {
  from { opacity: 0; transform: translateY(28px) scale(0.72) rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .battle-kicker span,
  .battle-loader,
  .battle-progress-fill,
  .celebration-rings span,
  .celebration-content img {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .battle-hero-band {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .battle-podium,
  .battle-player-grid {
    grid-template-columns: 1fr;
  }

  .battle-rank-card {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 178px;
  }

  .battle-avatar-frame {
    width: 102px;
  }

  .battle-player-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .battle-brand-lockup div {
    display: none;
  }

  .battle-team-totals {
    grid-template-columns: repeat(2, 1fr);
  }

  .battle-total-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #3a4247;
  }

  .battle-total-item:nth-child(4) {
    border-top: 1px solid #3a4247;
  }

  .battle-player-grid,
  .battle-intel-band {
    grid-template-columns: 1fr;
  }

  .battle-admin-layout {
    grid-template-columns: 1fr;
  }

  .battle-record-form {
    border-right: 0;
    border-bottom: 1px solid #d1cdc4;
  }
}

@media (max-width: 640px) {
  .battle-topbar {
    padding: 9px 12px;
  }

  .battle-topbar-start,
  .battle-topbar-actions {
    gap: 7px;
  }

  .battle-date-control {
    padding: 0 7px;
  }

  .battle-date-control svg,
  .battle-date-control span {
    display: none;
  }

  .battle-date-control input {
    width: 110px;
  }

  .battle-topbar-actions .battle-command-btn {
    width: 42px;
    padding: 0;
  }

  .battle-topbar-actions .battle-command-btn span {
    display: none;
  }

  .battle-stage {
    padding-inline: 12px;
  }

  .battle-hero-band {
    min-height: 0;
    padding: 26px 0;
  }

  .battle-headline h1 {
    font-size: 46px;
  }

  .battle-team-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battle-total-item {
    padding: 16px 12px;
  }

  .battle-total-item strong {
    font-size: 22px;
  }

  .battle-section-heading {
    align-items: start;
    display: grid;
  }

  .battle-section-heading p {
    text-align: left;
  }

  .battle-rank-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 158px;
    padding: 14px;
  }

  .battle-avatar-frame {
    width: 78px;
  }

  .battle-rank-copy h3 {
    font-size: 21px;
  }

  .battle-power-row strong {
    font-size: 30px;
  }

  .battle-record-form {
    grid-template-columns: 1fr;
  }

  .battle-record-form label,
  .battle-form-hint,
  .battle-form-status,
  .battle-form-actions {
    grid-column: 1;
  }

  .battle-record-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .battle-record-amount {
    display: none;
  }

  .battle-detail-hero {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
  }

  .battle-detail-hero .battle-avatar-frame {
    width: 92px;
  }

  .battle-detail-grid {
    grid-template-columns: 1fr;
  }

  .battle-person-detail {
    padding: 26px 16px;
  }

  .battle-history-item {
    grid-template-columns: 58px 34px minmax(0, 1fr);
  }

  .battle-history-item > span:last-child {
    display: none;
  }
}
