.damage-view-switch, .damage-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.damage-view-switch {
  margin: .85rem 0;
}

.damage-view-switch button[aria-pressed="true"] {
  border-color: #e9df70;
  color: #fff5a0;
}

.damage-neon {
  --damage-glow: #67edee;
  --damage-yellow: #fff18b;
  padding: clamp(.8rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
  border: 1px solid #37536f;
  border-radius: 1.1rem;
  background: radial-gradient(ellipse at 86% 0, #24365a 0, transparent 56%), #0c1222;
}

.damage-neon .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: .95rem;
  perspective: 800px;
}

.damage-neon .metric-card {
  min-width: 0;
  border: 1px solid #4b708d;
  border-top-color: var(--damage-glow);
  border-bottom: 5px solid #243b57;
  background: linear-gradient(135deg, #162940, #11182d 76%);
  box-shadow: 0 .65rem 1rem #060a18a1, 0 -.2rem .8rem #69edf01f;
  transition: transform .2s ease, box-shadow .2s ease;
}

.damage-neon .metric-card:hover {
  transform: translateZ(14px) rotateX(4deg);
  box-shadow: 0 .9rem 1.2rem #060a18b0, 0 0 1rem #69edf048;
}

.damage-neon .metric-card span {
  color: #d0dced;
}

.damage-neon .metric-card strong {
  color: var(--damage-yellow);
  overflow-wrap: anywhere;
  text-shadow: 0 0 .75rem #ffeb7145;
}

.damage-ranking-panel {
  margin-top: .8rem;
  padding: max(.75rem, 1vw);
  border: 1px solid #344a65;
  border-radius: .85rem;
  background: #0e1729;
}

.damage-ranking-heading, .damage-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.damage-ranking-heading {
  flex-wrap: wrap;
  margin-bottom: .85rem;
}

.damage-ranking-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.damage-ranking-heading select {
  max-width: 100%;
}

.damage-ranking {
  display: grid;
  gap: .9rem;
  margin: 0;
  padding: 0 .45rem .5rem 0;
  list-style: none;
}

.damage-bar-label {
  margin-bottom: .4rem;
  color: #e9f2ff;
  overflow-wrap: anywhere;
}

.damage-bar-label small {
  color: #a7c1dd;
  margin-right: .25rem;
}

.damage-bar-label strong {
  color: var(--damage-yellow);
  white-space: nowrap;
}

.damage-bar-track {
  height: .75rem;
  background: #1c293f;
  border-radius: 2px;
}

.damage-bar {
  position: relative;
  width: var(--share);
  height: 100%;
  background: linear-gradient(90deg, #4081d2, var(--damage-glow));
  box-shadow: 0 0 .6rem #67edee48;
}

.damage-bar::before, .damage-bar::after {
  content: "";
  position: absolute;
  background: #80f6f3a1;
}

.damage-bar::before {
  inset: -.25rem 0 auto;
  height: .25rem;
  transform: skewX(-45deg);
  transform-origin: bottom;
}

.damage-bar::after {
  top: 0;
  left: 100%;
  width: .25rem;
  height: 100%;
  transform: skewY(-45deg);
  transform-origin: left;
  background: #459ab4;
}

@media (prefers-reduced-motion: reduce) {
  .damage-neon .metric-card { transition: none; }
  .damage-neon .metric-card:hover { transform: none; }
}
