:root {
  color-scheme: dark;
  --bg: #04080f;
  --bg-2: #071323;
  --panel: rgba(9, 19, 34, 0.82);
  --panel-2: rgba(11, 28, 50, 0.9);
  --line: rgba(102, 224, 255, 0.22);
  --line-strong: rgba(102, 224, 255, 0.58);
  --ink: #eefbff;
  --muted: #8aa5b5;
  --cyan: #55e6ff;
  --blue: #3a77ff;
  --magenta: #ff4fd8;
  --amber: #ffbc4a;
  --green: #43f6a6;
  --danger: #ff5b6e;
  --shadow: 0 0 40px rgba(55, 202, 255, 0.14), inset 0 0 28px rgba(85, 230, 255, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(85, 230, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(255, 79, 216, 0.12), transparent 24%),
    linear-gradient(145deg, #03060c 0%, var(--bg-2) 52%, #05070f 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(85, 230, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 230, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
}

button,
select,
input {
  font: inherit;
}

button,
select,
input {
  color: var(--ink);
}

#arenaCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.48;
}

.arena-shell {
  position: relative;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero,
.command-grid,
.arena-board,
.content-grid,
.live-grid {
  display: grid;
  gap: 16px;
}

.hero {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 18px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5.8vw, 78px);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(85, 230, 255, 0.38);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: 0;
}

.subline,
.data-notes {
  color: var(--muted);
  font-size: 14px;
}

.status-strip {
  display: flex;
  gap: 8px;
  align-items: center;
}

.status-strip span,
.chip,
.home-return {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(8, 19, 34, 0.82);
  color: var(--cyan);
  padding: 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 0 16px rgba(85, 230, 255, 0.08);
}

.home-return {
  border-color: rgba(255, 188, 74, 0.5);
  color: var(--amber);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-return:hover {
  border-color: var(--amber);
  box-shadow: 0 0 18px rgba(255, 188, 74, 0.16);
  transform: translateY(-2px);
}

.command-grid {
  grid-template-columns: 1.15fr 1fr;
  margin-bottom: 16px;
}

.live-grid {
  grid-template-columns: 0.82fr 1.35fr;
  align-items: start;
  margin-bottom: 16px;
}

.champion-stage,
.panel,
.kpi-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(9, 19, 34, 0.86), rgba(6, 11, 21, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.champion-stage::before,
.panel::before,
.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--cyan), transparent 22%, transparent 78%, var(--magenta)) top / 100% 1px no-repeat,
    linear-gradient(90deg, var(--blue), transparent 35%, transparent 65%, var(--amber)) bottom / 100% 1px no-repeat;
  opacity: 0.72;
  animation: borderScan 4s ease-in-out infinite alternate;
}

.champion-stage {
  min-height: 252px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 10px;
}

.stage-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(85, 230, 255, 0.26);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 230, 255, 0.2), transparent 62%);
  box-shadow: 0 0 60px rgba(85, 230, 255, 0.18);
  animation: stagePulse 4.8s ease-in-out infinite;
}

.stage-copy,
.power-core {
  position: relative;
  z-index: 1;
}

.stage-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(42px, 5vw, 72px);
  color: var(--ink);
}

.power-core {
  display: grid;
  width: min(100%, 190px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(67, 246, 166, 0.18) 0 34%, transparent 35%),
    conic-gradient(from 30deg, var(--cyan), var(--magenta), var(--amber), var(--cyan));
  box-shadow: 0 0 42px rgba(85, 230, 255, 0.24);
  animation: coreSpin 9s linear infinite;
}

.power-core::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(5, 9, 18, 0.92);
}

.power-core span,
.power-core small {
  position: relative;
  z-index: 1;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
  animation: counterGlow 2.8s ease-in-out infinite alternate;
}

.power-core span {
  align-self: end;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.9;
  color: var(--green);
}

.power-core small {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
}

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

.kpi-card {
  min-height: 120px;
  border-radius: 8px;
  padding: 18px;
}

.kpi-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.kpi-value {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.kpi-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.arena-board {
  grid-template-columns: 1.55fr 1fr;
  margin-bottom: 14px;
}

.lower-board {
  margin-top: 2px;
}

.panel {
  border-radius: 10px;
  padding: 20px;
}

.panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.mode-switch,
.tabs,
.table-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mode-switch button,
.tab,
select,
input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 16, 29, 0.86);
  color: var(--muted);
  padding: 0 12px;
  font-weight: 900;
}

.mode-switch button,
.tab {
  cursor: pointer;
}

.mode-switch button.is-active,
.tab.is-active {
  border-color: var(--cyan);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(85, 230, 255, 0.28), rgba(58, 119, 255, 0.18));
  box-shadow: 0 0 18px rgba(85, 230, 255, 0.15);
}

.featured-arena {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

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

.fighter-card {
  min-height: 168px;
  border: 1px solid rgba(102, 224, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 9, 18, 0.72);
  padding: 16px;
}

.fighter-card.is-winner {
  border-color: var(--amber);
  box-shadow: 0 0 28px rgba(255, 188, 74, 0.18);
}

.fighter-role {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.fighter-name,
.rank-name,
.arena-name {
  font-weight: 900;
  overflow-wrap: anywhere;
}

.fighter-name {
  display: block;
  min-height: 34px;
  font-size: 22px;
}

.fighter-score {
  margin: 12px 0 8px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 28px;
  font-weight: 900;
}

.fighter-meta,
.rank-meta,
.bar-meta,
.arena-meta {
  color: var(--muted);
  font-size: 13px;
}

.ring-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ring-stat {
  min-height: 74px;
  border: 1px solid rgba(102, 224, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 16, 29, 0.72);
  padding: 12px;
}

.ring-stat strong {
  display: block;
  margin-bottom: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
}

.battle-split {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.split-orb {
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--defense), var(--magenta) 0);
  box-shadow: 0 0 34px rgba(85, 230, 255, 0.18);
}

.split-orb span {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #07101e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 26px;
  font-weight: 900;
}

.split-copy {
  display: grid;
  gap: 10px;
}

.split-row,
.module-row,
.rank-row,
.arena-card {
  border-top: 1px solid rgba(102, 224, 255, 0.14);
}

.split-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}

.module-status,
.rank-list,
.bar-stack,
.arena-cards,
.duel-feed {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.compact-rank {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.module-row,
.bar-item {
  padding-top: 10px;
}

.module-line,
.bar-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.meter {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(102, 224, 255, 0.1);
  overflow: hidden;
}

.meter span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.tabs {
  margin: 10px 0 14px;
  overflow-x: auto;
}

.tab {
  flex: 0 0 auto;
}

.content-grid {
  grid-template-columns: 1.22fr 1fr 0.8fr;
  align-items: start;
  margin-bottom: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  animation: rowRise 420ms ease both;
}

.rank-row:first-child,
.split-row:first-child,
.module-row:first-child,
.arena-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.rank-index {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
}

.rank-value {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
  white-space: nowrap;
}

.rank-meter {
  grid-column: 2 / 4;
}

.live-arena-panel {
  min-height: 580px;
}

.duel-feed {
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.duel-card {
  position: relative;
  display: grid;
  width: 100%;
  gap: 10px;
  border: 1px solid rgba(102, 224, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 19, 34, 0.86), rgba(5, 10, 19, 0.9)),
    radial-gradient(circle at 16% 50%, rgba(85, 230, 255, 0.12), transparent 34%);
  color: var(--ink);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: rowRise 420ms ease both;
}

.duel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 38%, rgba(85, 230, 255, 0.16) 48%, transparent 58% 100%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.duel-card:hover,
.duel-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(85, 230, 255, 0.62);
  box-shadow: 0 0 26px rgba(85, 230, 255, 0.15);
}

.duel-card:hover::after,
.duel-card.is-selected::after {
  animation: cardSweep 1.4s ease;
}

.duel-head,
.duel-row,
.duel-score {
  display: flex;
  align-items: center;
}

.duel-head {
  justify-content: space-between;
  gap: 12px;
}

.duel-row {
  display: grid;
  grid-template-columns: minmax(132px, 0.9fr) minmax(190px, 1.35fr) minmax(132px, 0.9fr);
  gap: 12px;
}

.duel-side {
  min-width: 0;
  border: 1px solid rgba(102, 224, 255, 0.12);
  border-radius: 6px;
  background: rgba(4, 11, 21, 0.58);
  padding: 10px;
}

.duel-side.is-winner {
  border-color: rgba(255, 188, 74, 0.48);
  box-shadow: inset 0 0 20px rgba(255, 188, 74, 0.06);
}

.duel-side.attack.is-winner {
  border-color: rgba(255, 79, 216, 0.56);
  box-shadow: inset 0 0 20px rgba(255, 79, 216, 0.06);
}

.duel-label {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.duel-side.attack .duel-label {
  color: var(--magenta);
}

.duel-side strong {
  display: block;
  min-height: 24px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.duel-side small,
.duel-subline {
  color: var(--muted);
  font-size: 12px;
}

.duel-versus {
  display: grid;
  gap: 7px;
  align-self: center;
}

.duel-score {
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
}

.duel-score b {
  color: var(--amber);
  text-shadow: 0 0 12px rgba(255, 188, 74, 0.5);
}

.versus-meter {
  display: flex;
  height: 14px;
  border-radius: 999px;
  background: rgba(102, 224, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.versus-meter span {
  display: block;
  height: 100%;
  transition: width 420ms ease;
}

.defense-bar {
  width: var(--def);
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.attack-bar {
  width: var(--atk);
  background: linear-gradient(90deg, var(--magenta), var(--amber));
}

.line-chart {
  min-height: 250px;
}

.chart-svg {
  width: 100%;
  height: 250px;
  overflow: visible;
}

.axis-label {
  fill: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.bar-item:first-child {
  padding-top: 0;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(102, 224, 255, 0.1);
  overflow: hidden;
}

.bar-track span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.arena-table-panel {
  margin-bottom: 14px;
}

.table-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
}

select,
input {
  max-width: 240px;
}

input::placeholder {
  color: #627b8c;
}

.arena-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.arena-card {
  min-height: 176px;
  border: 1px solid rgba(102, 224, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 11, 21, 0.72);
  padding: 14px;
}

.arena-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 4px;
  background: rgba(67, 246, 166, 0.12);
  color: var(--green);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.result-tag.attack {
  background: rgba(255, 79, 216, 0.12);
  color: var(--magenta);
}

.arena-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.member-pill {
  border: 1px solid rgba(102, 224, 255, 0.15);
  border-radius: 4px;
  color: var(--muted);
  padding: 3px 6px;
  font-size: 12px;
}

.member-pill.win {
  border-color: rgba(255, 188, 74, 0.5);
  color: var(--amber);
}

.data-notes {
  margin: 0;
}

.moba-theme {
  background:
    radial-gradient(circle at 18% 15%, rgba(39, 142, 255, 0.18), transparent 28%),
    radial-gradient(circle at 83% 18%, rgba(255, 73, 89, 0.15), transparent 30%),
    radial-gradient(circle at 50% 52%, rgba(255, 188, 74, 0.08), transparent 24%),
    linear-gradient(145deg, #02060d 0%, #07182a 48%, #11070d 100%);
}

.moba-theme::before {
  background:
    linear-gradient(30deg, transparent 0 49.5%, rgba(85, 230, 255, 0.08) 50%, transparent 50.5%) 0 0 / 96px 96px,
    linear-gradient(-30deg, transparent 0 49.5%, rgba(255, 91, 110, 0.07) 50%, transparent 50.5%) 0 0 / 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}

.moba-theme h1 {
  background: linear-gradient(90deg, #dff8ff, #82d8ff 48%, #ffd3d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.moba-theme .champion-stage,
.moba-theme .panel,
.moba-theme .kpi-card {
  background: linear-gradient(145deg, rgba(7, 23, 41, 0.92), rgba(15, 9, 19, 0.9));
  backdrop-filter: none;
}

.moba-theme #arenaCanvas {
  opacity: 0.22;
}

.moba-theme .champion-stage::before,
.moba-theme .panel::before,
.moba-theme .kpi-card::before,
.moba-theme .stage-glow,
.moba-theme .power-core,
.moba-theme .power-core span,
.moba-theme .power-core small {
  animation: none;
}

.moba-theme .stage-glow {
  border-color: rgba(255, 188, 74, 0.28);
  background: radial-gradient(circle, rgba(255, 188, 74, 0.16), transparent 64%);
}

.moba-theme .power-core {
  background:
    radial-gradient(circle, rgba(67, 246, 166, 0.18) 0 34%, transparent 35%),
    conic-gradient(from 30deg, #55e6ff, #3a77ff, #ffbc4a, #ff5b6e, #55e6ff);
}

.moba-theme .live-arena-panel {
  min-height: 720px;
}

.moba-theme .duel-feed {
  max-height: 760px;
}

.moba-theme .live-arena-panel .panel-head h2 {
  font-size: clamp(18px, 1.8vw, 24px);
}

.moba-theme .duel-card {
  gap: 12px;
  background:
    linear-gradient(90deg, rgba(23, 91, 151, 0.13), transparent 42%, rgba(174, 46, 65, 0.14)),
    linear-gradient(145deg, rgba(6, 18, 33, 0.96), rgba(19, 9, 16, 0.94));
}

.moba-theme .duel-side {
  padding: 11px;
}

.moba-theme .duel-side.defense {
  border-color: rgba(85, 230, 255, 0.3);
  background: linear-gradient(145deg, rgba(18, 78, 126, 0.25), rgba(4, 16, 29, 0.7));
}

.moba-theme .duel-side.attack {
  border-color: rgba(255, 91, 110, 0.34);
  background: linear-gradient(145deg, rgba(131, 31, 48, 0.22), rgba(29, 8, 15, 0.72));
}

.moba-theme .duel-side.attack .duel-label {
  color: var(--danger);
}

.side-emblem {
  margin-right: 3px;
  color: inherit;
  font-style: normal;
}

.tower-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--amber);
}

.tower-line i {
  width: 9px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.tower-line .blue-tower {
  color: var(--cyan);
  background: rgba(85, 230, 255, 0.2);
}

.tower-line .red-tower {
  color: var(--danger);
  background: rgba(255, 91, 110, 0.2);
}

.tower-line b {
  font-size: 14px;
}

.contribution-panel {
  margin-top: 11px;
  border-top: 1px solid rgba(102, 224, 255, 0.13);
  padding-top: 9px;
}

.attack .contribution-panel {
  border-color: rgba(255, 91, 110, 0.16);
}

.contribution-head,
.contribution-row > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.contribution-head {
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 900;
}

.contribution-head em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.contribution-list {
  display: grid;
  gap: 6px;
}

.contribution-row strong,
.contribution-row small {
  font-size: 10px;
  line-height: 1.2;
}

.contribution-row strong {
  min-height: 0;
  color: var(--ink);
  font-weight: 800;
}

.contribution-row small {
  color: var(--muted);
  white-space: nowrap;
}

.contribution-row i {
  display: block;
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(102, 224, 255, 0.1);
  overflow: hidden;
}

.contribution-row i b {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.attack .contribution-row i b {
  background: linear-gradient(90deg, var(--danger), var(--amber));
}

.empty-contribution {
  color: var(--muted);
  font-size: 10px;
}

.lineup-label {
  color: var(--danger);
  font-size: 11px;
  font-weight: 900;
}

@keyframes borderScan {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 0.9;
  }
}

@keyframes stagePulse {
  0%, 100% {
    transform: translateY(-50%) scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-50%) scale(1.04);
    opacity: 1;
  }
}

@keyframes coreSpin {
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes counterGlow {
  from {
    text-shadow: 0 0 10px rgba(67, 246, 166, 0.34);
  }
  to {
    text-shadow: 0 0 22px rgba(67, 246, 166, 0.72);
  }
}

@keyframes rowRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardSweep {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@media (max-width: 1180px) {
  .arena-board,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .arena-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .arena-shell {
    width: min(100% - 24px, 980px);
  }

  .champion-stage {
    grid-template-columns: minmax(0, 1fr) 150px;
    min-height: 214px;
    gap: 14px;
    padding: 20px;
  }

  .stage-copy h2 {
    font-size: 46px;
    line-height: 1;
  }

  .power-core {
    width: 150px;
  }

  .kpi-card {
    min-height: 108px;
    padding: 12px;
  }

  .kpi-label {
    margin-bottom: 14px;
  }

  .kpi-value {
    font-size: 20px;
    line-height: 1.08;
  }

  .live-grid {
    grid-template-columns: 0.9fr 1.45fr;
  }

  .panel {
    padding: 18px;
  }

  .duel-row {
    grid-template-columns: minmax(102px, 0.85fr) minmax(146px, 1.1fr) minmax(102px, 0.85fr);
    gap: 8px;
  }

  .duel-side {
    padding: 8px;
  }

  .duel-side strong {
    font-size: 16px;
  }

  .duel-score {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .arena-shell {
    width: min(100% - 20px, 720px);
    padding-top: 18px;
  }

  .hero,
  .champion-stage,
  .command-grid,
  .live-grid,
  .versus-row,
  .duel-row,
  .ring-summary,
  .battle-split,
  .kpi-grid,
  .arena-cards {
    grid-template-columns: 1fr;
  }

  .status-strip {
    justify-content: flex-start;
  }

  .champion-stage {
    padding: 18px;
  }

  .power-core {
    justify-self: start;
  }

  .panel-head,
  .table-tools {
    display: grid;
    justify-content: stretch;
  }

  select,
  input {
    width: 100%;
    max-width: none;
  }

  .rank-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .rank-value,
  .rank-meter {
    grid-column: 2;
  }
}
