.bio-frame { container-type: size; overflow: hidden; background: transparent; }
.bio-anchor {
  position: absolute; top: 8%; left: 4%; box-sizing: border-box;
  width: 25.4em; height: 44.5em; padding-left: .38em;
  font: 700 min(1cqw, 1.7778cqh)/1.15 "OPL Bracket SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.bio-anchor::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: .38em;
  background: #ea5516; border-radius: .2em 0 0 .2em;
}
.bio-card {
  box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: .9em 1.05em 1.15em;
  display: flex; flex-direction: column; min-width: 0; background: #162421; color: #f5f1e8;
  border-radius: 0 .45em .45em 0; overflow: hidden; text-align: left;
  animation: bio-reveal 500ms cubic-bezier(.2,.75,.22,1) both;
}
@keyframes bio-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.bio-heading { font: 700 1.58em/1.2 Arial,sans-serif; letter-spacing: .06em; color: #bdd8c8; }
.bio-portrait {
  width: 100%; height: 13.7em; flex: none; margin: 1.65em 0 1.05em; overflow: hidden;
  display: grid; place-items: center; background: #32443c; color: #bdd8c8; font-size: 1em;
}
.bio-initial { font-size: 3em; }
.bio-portrait img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 30%; filter: grayscale(1); }
.bio-example { background: url("/static/matchup-sample.webp") left 26% / 400% auto no-repeat; }
.bio-name { font-size: 3em; line-height: 1.22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bio-position { font-size: 1.28em; margin-top: .35em; color: #bdd8c8; }
.bio-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3em .35em;
  margin: 1.2em 0 0; padding: 1.3em 0 0; border-top: .11em solid #42584e;
}
.bio-stats dt { font: 600 1.02em/1.22 sans-serif; color: #bdd8c8; }
.bio-stats dd { margin: .17em 0 0; font-size: 2.8em; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; }
.bio-credit {
  display: flex; justify-content: flex-end; align-items: center; gap: .5em; margin-top: auto;
  padding-top: 1em; border-top: .12em solid #42584e; font: 600 .92em/1 sans-serif;
}
.bio-credit img { width: 5.2em; height: auto; }
@container (orientation: portrait) { .bio-anchor { font-size: 2cqw; top: 5%; } }
@media (prefers-reduced-motion: reduce) { .bio-card { animation: none; } }
.bio-analysis .bio-name { margin-top: .7em; }
.analysis-caption {
  display: flex; align-items: baseline; justify-content: space-between; margin-top: .55em; padding-top: .5em;
  border-top: .08em solid #42584e; font-size: 1.7em;
}
.analysis-caption span { color: #bdd8c8; font: 500 .6em/1 sans-serif; }
.analysis-chart { display: block; width: 100%; flex: 1; min-height: 0; }
.analysis-grid { stroke: #526b61; stroke-width: .8; fill: none; }
.analysis-value { fill: #99adec; fill-opacity: .34; stroke: #b1c1ff; stroke-width: 1.6; }
.analysis-point { fill: #c2cfff; }
.analysis-label { fill: #e7eee8; font: 500 10px/1 sans-serif; }
.analysis-label tspan:first-child { fill: #bdd8c8; font-size: 8px; }
.player-overlay {position:absolute; inset:0; pointer-events:none; z-index:51}
.player-overlay[data-anchor$="right"] .bio-anchor {left:auto; right:4%}
.player-overlay[data-anchor^="bottom"] .bio-anchor {top:auto; bottom:6%}
