/* Fighter panels: a slanted colour slab, a huge cut-out portrait and a name plate with arcade stat bars. */
.fighter { position: relative; min-height: 0; }
.fighter--p1 { margin-left: calc(var(--gutter) * -1); }
.fighter--p2 { margin-right: calc(var(--gutter) * -1); }
.fighter__inner { position: absolute; inset: 0; }

.fighter__slab-wrap { position: absolute; inset: 0 0 18px; }
.fighter__slab {
  --lean: min(120px, 22%);
  position: absolute; inset: 0; overflow: hidden;
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
}
.fighter--p1 .fighter__slab {
  background: var(--p1); clip-path: polygon(0 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
}
.fighter--p2 .fighter__slab { background: var(--p2); clip-path: polygon(0 0, 100% 0, 100% 100%, var(--lean) 100%); }
.fighter__dots { position: absolute; inset: 0; opacity: .22; background-size: 10px 10px; }

.fighter__big {
  position: absolute; top: 6px; font-size: clamp(120px, 15vw, 230px); line-height: .8;
  color: transparent; -webkit-text-stroke: 3px var(--chalk); opacity: .9; pointer-events: none;
}
.fighter--p1 .fighter__big { left: calc(var(--gutter) + 4px); }
.fighter--p2 .fighter__big { right: calc(var(--gutter) + 20px); }

.fighter__art {
  position: absolute; bottom: 150px; height: min(calc(100% - 150px), 540px); aspect-ratio: 240 / 288; max-width: 100%;
}
.fighter--p1 .fighter__art { left: max(var(--gutter), calc(100% - 430px)); }
.fighter--p2 .fighter__art { right: max(var(--gutter), calc(100% - 430px)); }
.fighter__img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  filter:
    drop-shadow(3px 0 0 var(--ink)) drop-shadow(-3px 0 0 var(--ink))
    drop-shadow(0 -3px 0 var(--ink)) drop-shadow(10px 6px 0 var(--ink));
}
.fighter.is-swap .fighter__art { animation: swap-p1 calc(var(--frame) * 6) steps(3, end); }
.fighter--p2.is-swap .fighter__art { animation-name: swap-p2; }
/* Opaque photos (streamer avatars, some CS shots) can't be cut out, so they sit in a tilted ink-framed card. */
@media (min-width: 901px) {
  .fighter.is-framed .fighter__art { height: min(calc(100% - 170px), 420px); bottom: 164px; }
}
.fighter.is-framed .fighter__img {
  object-fit: cover; object-position: center; border: var(--line-lg) solid var(--ink); background: var(--chalk);
  box-shadow: 10px 10px 0 var(--ink); filter: none; transform: rotate(-3deg);
}
.fighter--p2.is-framed .fighter__img { transform: rotate(3deg); }
@keyframes swap-p1 { 0% { transform: translateX(-28px); opacity: .4; } 100% { transform: none; opacity: 1; } }
@keyframes swap-p2 { 0% { transform: translateX(28px); opacity: .4; } 100% { transform: none; opacity: 1; } }

/* ---------- name plate: one ink sticker block so it reads on the slab and on the yellow alike ---------- */
.fighter__plate {
  position: absolute; bottom: 0; display: grid; gap: 0; width: min(calc(100% - var(--gutter) - 40px), 360px);
  color: var(--chalk);
}
.fighter--p1 .fighter__plate { left: var(--gutter); }
.fighter--p2 .fighter__plate { right: var(--gutter); justify-items: end; text-align: right; }
.fighter__who {
  display: flex; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 10px;
  padding: 4px 8px 3px 0; background: var(--ink); width: max-content;
}
.fighter__who b { padding: 4px 7px 3px; margin: -4px 0 -3px; font-weight: 400; }
.fighter--p1 .fighter__who b { background: var(--p1); border-right: 2px solid var(--ink); }
.fighter--p2 .fighter__who { padding: 4px 0 3px 8px; flex-direction: row-reverse; }
.fighter--p2 .fighter__who b { background: var(--p2); }
.fighter__ready {
  display: none; padding: 4px 7px 3px; margin: -4px 0 -3px; background: var(--yellow); color: var(--ink);
  animation: blink .5s steps(2, jump-none) 6;
}
.fighter.is-ready .fighter__ready { display: inline-block; }
.fighter__card {
  display: grid; gap: 10px; width: 100%; padding: 12px 18px 14px;
  background: var(--ink); transform: skewX(calc(var(--slash) * -1));
  box-shadow: var(--drop) var(--drop) 0 var(--yellow);
}
.fighter__card > * { transform: skewX(var(--slash)); }
.fighter__name { color: var(--chalk); white-space: nowrap; line-height: .9; margin-top: 2px; overflow: hidden; }
.fighter__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 800; font-stretch: 125%; text-transform: uppercase;
}
.fighter--p2 .fighter__meta { flex-direction: row-reverse; }
.fighter__rtg {
  display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding: 0 8px;
  background: var(--yellow); color: var(--ink); font-size: 16px;
}

.fighter__stats { display: grid; gap: 6px; }
.stat { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; }
.fighter--p2 .stat { grid-template-columns: 1fr 36px; }
.fighter--p2 .stat dt { order: 2; text-align: right; }
.stat dt { font-size: 10px; }
.stat dd { display: flex; align-items: center; gap: 10px; }
.fighter--p2 .stat dd { flex-direction: row-reverse; }
.stat dd b { font-family: var(--f-pix); font-weight: 400; font-size: 12px; min-width: 28px; }
.stat__track {
  --seg: calc(100% / 10);
  position: relative; flex: 1; height: 12px;
  background: repeating-linear-gradient(
    90deg, var(--ink-soft) 0 calc(var(--seg) - 3px), transparent calc(var(--seg) - 3px) var(--seg)
  );
}
.stat__fill {
  position: absolute; inset: 0; background:
    repeating-linear-gradient(
      90deg, var(--yellow) 0 calc(var(--seg) - 3px), transparent calc(var(--seg) - 3px) var(--seg)
    );
  clip-path: inset(0 calc((1 - var(--lit, 0)) * 100%) 0 0);
  transition: clip-path calc(var(--frame) * 8) steps(4, end);
}
.fighter--p2 .stat__fill { clip-path: inset(0 0 0 calc((1 - var(--lit, 0)) * 100%)); }
