/* ── CHARACTERS ── */
.char-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.char {
  border: 1px solid var(--c-line);
  background: var(--c-bg2);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--theme-t), border-color .3s;
}
.char:hover { border-color: var(--c-line2); }

/* top accent line */
.char--villain::before,
.char--victim::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.char--villain::before { background: var(--c-red); }
.char--victim::before  { background: var(--c-amber); }

/* bg glow on hover */
.char__glow {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.char--villain .char__glow { background: radial-gradient(ellipse at 50% 0%, rgba(224,48,48,.06), transparent 70%); }
.char--victim  .char__glow { background: radial-gradient(ellipse at 50% 0%, rgba(232,160,32,.06), transparent 70%); }
.char:hover .char__glow { opacity: 1; }

/* avatar */
.char__av {
  width: 64px; height: 64px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.char--villain .char__av { background: rgba(224,48,48,.1); }
.char--victim  .char__av { background: rgba(232,160,32,.1); }

.char__av-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid;
  animation: spin 9s linear infinite;
}
.char--villain .char__av-ring { border-color: rgba(224,48,48,.28); }
.char--victim  .char__av-ring { border-color: rgba(232,160,32,.28); }
@keyframes spin { to { transform: rotate(360deg); } }

.char__av img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.char--villain .char__av img { box-shadow: 0 0 0 2px var(--c-red2); }
.char--victim  .char__av img { box-shadow: 0 0 0 2px var(--c-amber2); }
.char__av-icon { font-size: calc(26px * var(--fs-mul)); position: relative; z-index: 1; }

/* text */
.char__name {
  font-family: var(--f-serif);
  font-size: calc(22px * var(--fs-mul));
  font-weight: 700;
  margin-bottom: 4px;
}
.char__handle {
  font-family: var(--f-mono);
  font-size: calc(11px * var(--fs-mul));
  color: var(--c-dim);
  margin-bottom: 20px;
}

/* data list */
.char__divider { height: 1px; background: var(--c-line); margin-bottom: 16px; }
.char__data { list-style: none; }
.char__data li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: calc(12px * var(--fs-mul));
  line-height: 1.4;
}
.char__data li:last-child { border-bottom: none; }
.ck { color: var(--c-dim); flex-shrink: 0; }
.cv { font-family: var(--f-mono); text-align: right; }
.cv--r { color: var(--c-red); }
.cv--a { color: var(--c-amber); }

/* verdict */
.char__verdict {
  margin-top: 20px;
  padding: 9px 14px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: calc(9px * var(--fs-mul));
  letter-spacing: .16em;
  text-transform: uppercase;
}
.char--villain .char__verdict {
  background: var(--c-red-a);
  color: var(--c-red);
  border: 1px solid var(--c-red2);
}
.char--victim .char__verdict {
  background: var(--c-amber-a);
  color: var(--c-amber);
  border: 1px solid var(--c-amber2);
}

/* VS spacer */
.char__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  color: var(--c-faint);
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: calc(16px * var(--fs-mul));
  letter-spacing: -.04em;
  position: relative;
}
.char__vs-sparks { position: absolute; inset: 0; pointer-events: none; }
.sp {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--c-red);
  border-radius: 50%;
  animation: spFloat 3s ease-in-out infinite;
}
.sp:nth-child(1){ top:20%; left:15%; animation-delay:0s; }
.sp:nth-child(2){ top:60%; right:15%; animation-delay:.8s; }
.sp:nth-child(3){ top:15%; right:25%; animation-delay:1.5s; }
.sp:nth-child(4){ bottom:20%; left:25%; animation-delay:2.2s; }
@keyframes spFloat {
  0%,100%{ transform:translate(0,0) scale(1); opacity:.5; }
  50%{ transform:translate(4px,-8px) scale(1.6); opacity:1; }
}
