@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  --bg: #101010;
  --surface: #181818;
  --surface-2: #202020;
  --ink: #f3f1ec;
  --muted: #8c8c88;
  --line: #30302e;
  --accent: #f4512b;
  --blue: #668cbd;
  --max: 1320px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px var(--body);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
}
h1 {
  font-size: clamp(42px, 6vw, 80px);
  line-height: 0.96;
  letter-spacing: -1.3px;
}
h1 > span {
  color: var(--accent);
}
h2 {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.4px;
}
button {
  border: 0;
}
input,
select,
textarea {
  min-width: 0;
}
img,
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 30;
  background: var(--accent);
  padding: 14px;
}
.skip:focus {
  top: 10px;
}
.header {
  min-height: 90px;
  border-bottom: 1px solid var(--line);
  max-width: 1500px;
  margin: auto;
  padding: 0 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.logo-corner, .logo-center { fill: var(--accent); }
.logo-opponent { fill: currentColor; }
.logo-wordmark { letter-spacing: .5px; }
.logo-wordmark > span { color: var(--accent); font-weight: 600; }
.logo-dot {
  font: 10px var(--body);
  align-self: flex-start;
  margin-top: 6px;
  margin-left: -3px;
  color: var(--muted);
}
.header nav {
  display: flex;
  gap: 27px;
  align-items: center;
}
.header nav a {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 34px 0;
  white-space: nowrap;
  position: relative;
}
.header nav a.active,
.header nav a:hover {
  color: var(--ink);
}
.header nav a.active:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--accent);
  bottom: 0;
  left: 0;
  right: 0;
}
.header nav a > span {
  font-size: 7px;
  background: #f4512b22;
  color: var(--accent);
  padding: 3px 4px;
  border-radius: 2px;
}
.header nav b {
  font-size: 8px;
  border: 1px solid var(--line);
  padding: 2px 5px;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 11px;
  font-weight: 700;
  padding: 15px 20px;
  min-height: 43px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.button {
  background: var(--accent);
  color: #fff;
}
.button:hover {
  background: #db3f1e;
}
.outline-button {
  background: none;
  border-color: var(--line);
  color: var(--ink);
}
.outline-button:hover,
.outline-button[aria-pressed="true"] {
  background: var(--surface-2);
  border-color: var(--accent);
}
.small {
  font-size: 10px;
  padding: 10px 14px;
  min-height: 35px;
}
.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: none;
  display: inline-grid;
  place-items: center;
  font-size: 19px;
}
.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
main {
  max-width: var(--max);
  margin: auto;
  padding: 0 32px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
}
.top-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 27px 0 18px;
  font-size: 8px;
}
.top-kicker > span:last-child {
  margin-left: auto;
  letter-spacing: 0.8px;
  color: var(--muted);
  text-transform: uppercase;
}
.live-dot {
  height: 5px;
  width: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #f4512b50;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 475px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: #121212;
}
.hero-copy {
  padding: 43px 40px 25px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.hero-tag {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #a3a29e;
  display: flex;
  gap: 13px;
  align-items: center;
}
.hero-tag > span {
  font-size: 8px;
  border: 1px solid #f4512b65;
  color: var(--accent);
  padding: 6px 8px;
}
.hero h1 {
  font-size: clamp(54px, 6.6vw, 94px);
  line-height: 0.89;
  letter-spacing: -1.3px;
  margin: 31px 0 22px;
  color: #f3f1ec;
  font-weight: 800;
}
.hero-copy > p {
  color: #969691;
  font-size: 11px;
  line-height: 1.9;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  margin: 27px 0 33px;
}
.hero-bottom {
  display: flex;
  gap: 35px;
  justify-content: space-between;
  width: 100%;
  font-size: 7px;
  letter-spacing: 1px;
  color: #6c6c67;
  margin-top: auto;
}
.hero-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.hero-art img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.arena-label {
  position: absolute;
  top: 28px;
  right: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #afaca7;
  font-size: 7px;
  letter-spacing: 1.7px;
}
.art-coordinate {
  position: absolute;
  right: 24px;
  bottom: 25px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #7b776f;
}
.ticker {
  border: 1px solid var(--line);
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 27px;
  padding: 15px 20px;
  overflow: hidden;
  white-space: nowrap;
  font: 600 18px var(--display);
  letter-spacing: 2px;
  color: #8a8983;
}
.ticker i {
  color: var(--accent);
  font-size: 22px;
  font-style: normal;
}
.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 34px 0 45px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 29px;
}
.overview-stats article {
  padding: 0 29px;
  border-right: 1px solid var(--line);
}
.overview-stats article:first-child {
  padding-left: 0;
}
.overview-stats article:last-child {
  border: 0;
}
.overview-stats article > span {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.overview-stats strong {
  display: block;
  font: 600 47px var(--display);
  margin: 9px 0 3px;
}
.overview-stats p {
  color: var(--muted);
  font-size: 10px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 42px 0 23px;
}
.section-heading .eyebrow {
  margin-bottom: 9px;
}
.text-link {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 10px;
  padding: 0;
  cursor: pointer;
}
.text-link:hover {
  color: var(--accent);
}
.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.event-info {
  padding: 27px 30px;
}
.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.badge {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid var(--line);
  padding: 7px 9px;
  color: var(--muted);
  white-space: nowrap;
}
.badge.orange {
  color: var(--accent);
  border-color: #f4512b66;
}
.event-bookmark {
  background: none;
  color: var(--muted);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
}
.event-bookmark:hover {
  color: var(--accent);
}
.event-info h3 {
  font-size: 40px;
  margin: 7px 0 13px;
  overflow-wrap: anywhere;
}
.event-location {
  font-size: 11px;
  color: var(--muted);
}
.event-date {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  margin: 13px 0;
}
.event-date > span {
  color: var(--accent);
  font-size: 16px;
}
.event-date small {
  font-size: 8px;
  color: var(--muted);
}
.countdown {
  display: flex;
  gap: 24px;
  margin: 20px 0 23px;
}
.countdown strong {
  font: 600 28px var(--display);
  font-variant-numeric: tabular-nums;
}
.countdown small {
  display: block;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 1px;
  margin-top: 4px;
}
.ended-label {
  font-size: 10px;
  color: var(--muted);
}
.event-matchup {
  padding: 35px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 90% 0, #f4512b14, transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  position: relative;
  overflow: hidden;
}
.event-matchup:before {
  content: "FIGHT";
  position: absolute;
  right: -20px;
  bottom: 0;
  font: 800 180px var(--display);
  color: var(--ink);
  opacity: 0.025;
  transform: rotate(-90deg);
  pointer-events: none;
}
.event-rounds {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 21px;
}
.matchup-name > span {
  font-size: 11px;
  color: var(--muted);
}
.matchup-name > strong {
  display: block;
  font: 700 48px/0.95 var(--display);
  text-transform: uppercase;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.blue-name > strong {
  color: var(--ink);
}
.vs-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 16px var(--display);
  color: var(--muted);
  margin: 13px 0;
}
.vs-rule:after {
  content: "";
  width: 120px;
  height: 1px;
  background: var(--line);
}
.event-matchup > p {
  font-size: 6px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-top: 22px;
}
.delete-event {
  margin-left: 15px;
  color: var(--muted);
}
.fighter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fighter-card {
  border: 1px solid var(--line);
  position: relative;
  background: var(--surface);
  overflow: hidden;
}
.fighter-portrait {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 100%,
    color-mix(in srgb, var(--fighter-color) 55%, #171717),
    #1b1b1b 90%
  );
}
.portrait-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 30px 30px;
}
.portrait-number {
  position: absolute;
  top: 19px;
  left: 20px;
  font: 600 10px var(--display);
  letter-spacing: 2px;
  color: #b7b5ac;
}
.portrait-initials {
  font: 800 150px var(--display);
  letter-spacing: -10px;
  position: absolute;
  inset: 40px 0 auto 0;
  text-align: center;
  color: var(--fighter-color);
  opacity: 0.17;
}
.fighter-portrait svg {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  height: 220px;
  color: #0c0d0de6;
  filter: drop-shadow(0 0 18px #0003);
}
.portrait-label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 6px;
  color: #b4ada1;
  letter-spacing: 1.8px;
  z-index: 1;
}
.favorite-button {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  background: #10101080;
  color: #d0c6bb;
  border: 1px solid #ffffff20;
  font-size: 22px;
}
.favorite-button.selected {
  color: var(--accent);
  border-color: var(--accent);
}
.fighter-card-body {
  padding: 21px 22px 0;
}
.fighter-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  color: var(--muted);
}
.fighter-card-meta > span:last-child {
  color: var(--fighter-color);
}
.fighter-name {
  background: none;
  color: var(--ink);
  display: block;
  text-align: left;
  font: 500 21px var(--display);
  padding: 0;
  margin: 17px 0 9px;
}
.fighter-name strong {
  display: block;
  font: 700 36px/0.95 var(--display);
  text-transform: uppercase;
}
.fighter-name:hover {
  color: var(--accent);
}
.fighter-card-body p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.fighter-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 14px 0;
}
.fighter-card-footer > span {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.fighter-card-footer .icon-button {
  width: 28px;
  height: 28px;
  font-size: 17px;
}
.lab-banner {
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 44px 0 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 35px 40px;
  overflow: hidden;
}
.lab-banner h2 {
  font-size: 43px;
  margin: 15px 0;
}
.lab-banner p:not(.eyebrow) {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 350px;
}
.lab-banner .button {
  margin-top: 24px;
}
.lab-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
}
.lab-art > span {
  font: 800 130px var(--display);
  color: var(--accent);
  transform: skewX(-9deg);
}
.lab-orbit {
  position: absolute;
  border: 1px solid #f4512b50;
  width: 250px;
  height: 250px;
  clip-path: polygon(
    30% 0,
    70% 0,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0 70%,
    0 30%
  );
  background: linear-gradient(45deg, #f4512b10, transparent);
  transform: rotate(23deg);
}
.lab-orbit.second {
  transform: rotate(67deg);
  width: 290px;
  height: 290px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 48px 0 32px;
}
.page-heading .eyebrow {
  margin-bottom: 17px;
}
.page-heading h1 {
  font-size: 64px;
}
.page-heading p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin-top: 17px;
  line-height: 1.8;
  max-width: 620px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  gap: 6px;
}
.segmented button {
  background: none;
  color: var(--muted);
  font-size: 11px;
  padding: 10px 14px;
  border: 1px solid transparent;
}
.segmented .active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 23px;
}
.search-box input {
  padding: 10px 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 11px;
  width: 210px;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  padding: 10px 12px;
}
.data-note {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 18px 0;
}
.event-list {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}
.view[data-view="luchadores"] .fighter-grid {
  margin: 26px 0 45px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
}
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 23px;
  margin-bottom: 48px;
}
.comparison-selects {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  gap: 16px;
  align-items: end;
}
.comparison-selects label {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.comparison-selects select {
  display: block;
  width: 100%;
  margin-top: 9px;
}
.comparison-selects label:first-child {
  color: var(--accent);
}
.comparison-selects label:last-child {
  color: var(--blue);
}
.comparison-selects .icon-button {
  height: 35px;
}
.versus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  text-align: center;
}
.versus-header small {
  font-size: 11px;
  color: var(--muted);
}
.versus-header strong {
  font: 700 35px var(--display);
  display: block;
  color: var(--accent);
}
.versus-header > div:last-child strong {
  color: var(--blue);
}
.versus-header > span {
  font: 700 20px var(--display);
  color: var(--muted);
}
.radar-wrapper {
  max-width: 420px;
  margin: 0 auto;
}
.comparison-row {
  display: grid;
  grid-template-columns: 25px 1fr 78px 1fr 25px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}
.comparison-row > b {
  font-size: 10px;
  text-align: center;
}
.comparison-row > span {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
}
.compare-track {
  height: 4px;
  background: var(--surface-2);
}
.compare-track span {
  display: block;
  height: 100%;
}
.compare-track.red {
  display: flex;
  justify-content: end;
}
.compare-track.red span {
  background: var(--accent);
}
.compare-track.blue span {
  background: var(--blue);
}
.model-result {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 20px;
}
.result-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.result-caption > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
}
.result-caption strong {
  font: 600 24px var(--display);
}
.result-caption i {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
  margin: 0 10px;
}
.result-track {
  height: 7px;
  background: var(--blue);
  margin-top: 14px;
}
.result-track > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.result-names {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  margin-top: 9px;
  color: var(--muted);
}
.model-result > p {
  font-size: 12px;
  color: var(--muted);
}
.weights > .eyebrow {
  margin-bottom: 12px;
}
.weights h2 {
  font-size: 32px;
}
.weights > p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0 25px;
}
.weight-control {
  font-size: 11px;
  display: block;
  margin-top: 22px;
}
.weight-control output {
  float: right;
  font-size: 10px;
  color: var(--muted);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin: 12px 0 0;
  height: 5px;
  cursor: pointer;
}
.weights > .outline-button {
  margin-top: 28px;
  width: 100%;
}
.weights hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 27px 0;
}
.weights > .button {
  width: 100%;
  margin-top: 16px;
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 19px;
  font-size: 11px;
  color: var(--muted);
}
.field-label input,
.field-label textarea,
.field-label select {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  font-size: 12px;
}
.field-label textarea {
  resize: vertical;
  min-height: 100px;
}
.backup-buttons {
  display: flex;
  gap: 10px;
}
.saved-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 35px 0 48px;
}
.saved-layout .section-heading {
  margin: 0 0 15px;
  align-items: center;
}
.saved-layout h2 {
  font-size: 28px;
}
.saved-item {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.saved-item:first-child {
  border: 0;
}
.saved-item small {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.saved-item h3 {
  font-size: 24px;
  margin: 9px 0;
}
.saved-item p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.saved-item .text-link {
  margin-top: 12px;
}
.saved-item .icon-button {
  flex-shrink: 0;
}
.saved-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.empty-state {
  grid-column: 1/-1;
  border: 1px dashed var(--line);
  padding: 40px;
  text-align: center;
  color: var(--muted);
  width: 100%;
}
.empty-state > span {
  color: var(--accent);
  font-size: 30px;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 12px;
}
footer {
  max-width: var(--max);
  padding: 31px 32px 40px;
  margin: 35px auto 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 35px;
  align-items: start;
  justify-content: space-between;
}
.footer-brand {
  font: 700 22px var(--display);
  letter-spacing: 1px;
}
.footer-brand > span {
  display: block;
  font: 7px var(--body);
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 7px;
}
footer > p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.9;
}
footer > div:last-child {
  font-size: 9px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer > div:last-child > span {
  font-size: 8px;
  color: var(--muted);
}
dialog {
  width: min(920px, calc(100% - 32px));
  max-height: 90vh;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 35px;
  box-shadow: 0 40px 140px #0008;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
dialog .dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 2;
  background: var(--bg);
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 30px;
}
.fighter-portrait.large {
  height: auto;
  min-height: 470px;
}
.large.fighter-portrait svg {
  height: 360px;
  max-width: 100%;
  bottom: -20px;
}
.large .portrait-initials {
  font-size: 160px;
  top: 80px;
}
.profile-copy {
  padding-top: 18px;
}
.profile-copy h2 {
  font-size: 62px;
  text-transform: uppercase;
  margin: 16px 0;
}
.profile-copy > p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 0;
}
.profile-stats {
  display: grid;
  gap: 17px;
  margin: 22px 0;
}
.profile-stats > div {
  font-size: 10px;
}
.profile-stats strong {
  float: right;
}
.profile-track {
  height: 4px;
  background: var(--surface-2);
  margin-top: 8px;
}
.profile-track > i {
  display: block;
  height: 100%;
}
.profile-copy > .outline-button {
  margin-left: 6px;
}
.event-dialog-title {
  font-size: 58px;
  margin: 13px 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.bout {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.bout-heading {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 14px;
}
.bout-buttons {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  gap: 15px;
  align-items: center;
}
.pick-button {
  text-align: left;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 20px;
}
.pick-button small {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--accent);
}
.pick-button strong {
  display: block;
  font: 600 27px var(--display);
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.pick-button span {
  font-size: 9px;
  color: var(--muted);
}
.pick-button.picked {
  border-color: var(--accent);
  background: #f4512b0a;
}
.blue-pick small {
  color: var(--blue);
}
.blue-pick.picked {
  border-color: var(--blue);
  background: #668cbd0a;
}
.pick-button.picked > span {
  color: var(--ink);
}
.bout-vs {
  font: 600 22px var(--display);
  color: var(--muted);
}
.bout > .text-link {
  margin-top: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 12px;
  margin-top: 27px;
}
#confirm-dialog {
  max-width: 450px;
}
#confirm-dialog h2 {
  font-size: 32px;
}
#confirm-dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 15px 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  font-size: 12px;
  max-width: calc(100% - 30px);
  width: max-content;
  box-shadow: 0 10px 30px #0004;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 25;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.noscript {
  padding: 30px;
  text-align: center;
  color: var(--accent);
}
.light {
  --bg: #f4f2ed;
  --surface: #fff;
  --surface-2: #eae7e1;
  --ink: #1f211f;
  --muted: #737670;
  --line: #dad8d0;
  color-scheme: light;
}
.light .hero .outline-button {
  border-color: #444;
  color: #eee;
}
.light .hero .eyebrow {
  color: #aaa;
}
@media (min-width: 1450px) {
  .hero h1 {
    font-size: 100px;
  }
  .hero {
    min-height: 510px;
  }
  .hero-copy {
    padding-top: 50px;
  }
}
@media (max-width: 1150px) {
  .header {
    padding: 0 25px;
    gap: 20px;
  }
  .header nav {
    gap: 17px;
  }
  .header-actions .button {
    font-size: 9px;
    padding: 9px;
  }
  .hero-copy {
    padding: 32px 28px 23px;
  }
  .hero h1 {
    font-size: 72px;
  }
  .hero-buttons {
    gap: 9px;
  }
  .hero-buttons .button,
  .hero-buttons .outline-button {
    padding: 13px 14px;
    font-size: 10px;
    gap: 10px;
  }
  .hero-bottom {
    gap: 12px;
    font-size: 6px;
  }
  .event-info {
    padding: 24px;
  }
  .event-info h3 {
    font-size: 35px;
  }
  .fighter-grid {
    gap: 16px;
  }
  .fighter-card-body {
    padding: 18px 18px 0;
  }
  .lab-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  }
  .panel {
    padding: 22px;
  }
}
@media (max-width: 950px) {
  .header {
    flex-wrap: wrap;
    padding: 20px 25px 0;
    gap: 15px;
  }
  .header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 15px;
  }
  .header nav a {
    padding: 15px 0;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1.1fr 1fr;
    min-height: 440px;
  }
  .hero h1 {
    font-size: 65px;
  }
  .hero-copy > p br {
    display: none;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: start;
  }
  .hero-art img {
    object-position: center;
  }
  .hero-bottom > span:last-child {
    display: none;
  }
  .fighter-portrait {
    height: 200px;
  }
  .fighter-card-meta {
    flex-direction: column;
    gap: 5px;
  }
  .lab-layout {
    grid-template-columns: 1fr;
  }
  .weights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 25px;
  }
  .weights > .eyebrow,
  .weights > h2,
  .weights > p,
  .weights > hr,
  .weights > .field-label,
  .weights > .button {
    grid-column: 1/-1;
  }
  .weights > p {
    margin-bottom: 8px !important;
  }
  #weight-controls {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .weights > .outline-button {
    grid-column: 1/-1;
  }
  .profile-copy h2 {
    font-size: 50px;
  }
  .profile-layout {
    gap: 22px;
  }
  footer {
    gap: 24px;
  }
  footer > p {
    max-width: 390px;
  }
}
@media (max-width: 700px) {
  main {
    padding: 0 20px;
  }
  .header {
    padding: 17px 20px 0;
  }
  .header nav {
    overflow-x: auto;
    gap: 25px;
    justify-content: start;
  }
  .header nav a {
    font-size: 10px;
  }
  .header-actions .button {
    min-height: 32px;
  }
  .logo {
    font-size: 24px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-copy {
    padding: 31px 26px 27px;
  }
  .hero h1 {
    font-size: 79px;
    margin-top: 24px;
  }
  .hero-art {
    height: 255px;
    border-top: 1px solid #282828;
  }
  .hero-art img {
    object-position: center 51%;
  }
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 25px;
  }
  .hero-bottom > span:last-child {
    display: block;
  }
  .top-kicker > span:last-child {
    font-size: 6px;
  }
  .top-kicker {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .ticker {
    font-size: 15px;
    padding: 12px;
    gap: 25px;
    justify-content: start;
  }
  .overview-stats {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 30px;
  }
  .overview-stats article {
    padding: 0 0 0 18px;
  }
  .overview-stats article:nth-child(3) {
    padding-left: 0;
  }
  .overview-stats article:nth-child(2) {
    border: 0;
  }
  .overview-stats strong {
    font-size: 40px;
  }
  .section-heading {
    margin-top: 33px;
    align-items: start;
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .section-heading .text-link {
    font-size: 9px;
    max-width: 110px;
    line-height: 1.6;
    text-align: right;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
  .event-info {
    padding: 23px;
  }
  .event-matchup {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px;
  }
  .matchup-name > strong {
    font-size: 45px;
  }
  .event-matchup:before {
    font-size: 150px;
  }
  .event-rounds {
    margin-bottom: 17px;
  }
  .fighter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .fighter-card-body {
    padding: 16px 13px 0;
  }
  .fighter-name strong {
    font-size: 31px;
  }
  .fighter-name {
    font-size: 19px;
  }
  .fighter-portrait {
    height: 185px;
  }
  .fighter-portrait svg {
    height: 180px;
  }
  .portrait-initials {
    font-size: 125px;
    letter-spacing: -6px;
  }
  .fighter-card-footer > span {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .fighter-card-body p {
    font-size: 9px;
  }
  .portrait-label {
    font-size: 5px;
    letter-spacing: 0.8px;
  }
  .lab-banner {
    padding: 28px;
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }
  .lab-banner h2 {
    font-size: 39px;
  }
  .lab-art {
    display: none;
  }
  .page-heading {
    padding: 33px 0 25px;
    align-items: start;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 53px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 11px;
  }
  .toolbar {
    gap: 14px;
  }
  .search-box {
    width: 100%;
  }
  .search-box input {
    flex: 1;
    width: auto;
  }
  .filters {
    width: 100%;
    gap: 8px;
  }
  .filters select {
    flex: 1;
    font-size: 10px;
    padding: 9px 8px;
  }
  .filters .outline-button {
    width: 100%;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    font-size: 10px;
    padding: 9px 7px;
  }
  .lab-layout {
    gap: 17px;
  }
  .panel {
    padding: 20px;
  }
  .comparison-selects {
    gap: 9px;
    grid-template-columns: 1fr 30px 1fr;
  }
  .comparison-selects select {
    font-size: 10px;
    padding: 10px 6px;
  }
  .comparison-selects .icon-button {
    width: 30px;
  }
  .versus-header strong {
    font-size: 30px;
  }
  .comparison-row {
    grid-template-columns: 20px 1fr 64px 1fr 20px;
    gap: 6px;
  }
  .comparison-row > span {
    font-size: 8px;
  }
  .result-caption > span {
    font-size: 6px;
  }
  .result-names {
    font-size: 7px;
  }
  .saved-layout {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .fighter-portrait.large {
    min-height: 230px;
    height: 230px;
  }
  .large.fighter-portrait svg {
    height: 230px;
  }
  .large .portrait-initials {
    top: 35px;
  }
  .profile-copy {
    padding-top: 0;
  }
  .profile-copy h2 {
    font-size: 49px;
  }
  .profile-copy > .outline-button {
    margin: 8px 0 0;
  }
  dialog {
    padding: 25px 20px;
  }
  .dialog-close {
    background: var(--bg) !important;
  }
  .event-dialog-title {
    font-size: 45px;
    margin-top: 20px;
  }
  .bout-buttons {
    gap: 7px;
    grid-template-columns: 1fr 20px 1fr;
  }
  .pick-button {
    padding: 13px 10px;
  }
  .pick-button strong {
    font-size: 22px;
  }
  .pick-button small {
    font-size: 6px;
  }
  .pick-button span {
    font-size: 8px;
  }
  .bout-vs {
    font-size: 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dialog-actions .button,
  .dialog-actions .outline-button {
    font-size: 10px;
    padding: 12px 15px;
  }
  .event-info h3 {
    font-size: 39px;
  }
  footer {
    padding: 25px 20px;
    flex-wrap: wrap;
    margin-top: 25px;
    gap: 20px;
  }
  footer > p {
    order: 3;
    max-width: none;
    width: 100%;
  }
  .empty-state {
    padding: 25px;
  }
  .top-kicker {
    margin-top: 20px;
  }
}
@media (max-width: 380px) {
  .hero h1 {
    font-size: 67px;
  }
  .hero-copy {
    padding: 25px 20px;
  }
  .hero-buttons {
    gap: 8px;
  }
  .hero-buttons a {
    font-size: 9px !important;
    padding: 12px 10px !important;
  }
  .fighter-grid {
    grid-template-columns: 1fr;
  }
  .header-actions {
    gap: 6px;
  }
  .logo {
    font-size: 21px;
  }
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  .hero-bottom {
    font-size: 5px;
  }
  .page-heading h1 {
    font-size: 47px;
  }
  .weights {
    display: block;
  }
  #weight-controls {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
/* Rankings: posiciones oficiales en una copia fechada. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ranking-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 22px;
}
.ranking-source > span:last-child {
  margin-left: auto;
  font-size: 8px;
}
.ranking-toolbar {
  align-items: center;
}
.ranking-category-label {
  margin: 0;
  gap: 6px;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ranking-category-label select {
  min-width: 250px;
}
.ranking-local-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
}
.ranking-local-filter input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}
.rankings-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 22px;
  margin: 26px 0 48px;
}
.ranking-panel .section-heading {
  margin: 0 0 22px;
  align-items: start;
}
.ranking-panel h2 {
  font-size: 32px;
}
.ranking-panel .data-note {
  margin: 9px 0 0;
}
.ranking-panel .badge {
  font-size: 7px;
}
.ranking-table-wrapper {
  overflow-x: auto;
}
#ranking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
#ranking-table thead th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 500;
}
#ranking-table tbody td,
#ranking-table tbody th {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
}
#ranking-table tbody tr:last-child > * {
  border-bottom: 0;
}
#ranking-table tbody th {
  width: 64px;
}
.rank-position {
  font: 600 25px var(--display);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rank-position.podium {
  color: var(--accent);
}
.rank-champion {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 700 22px var(--display);
}
.champion-row {
  background: #f4512b08;
}
.ranking-name {
  font: 600 21px var(--display);
  color: var(--ink);
  background: none;
  text-align: left;
  padding: 0;
  overflow-wrap: anywhere;
}
.ranking-name > span {
  color: var(--accent);
  font: 12px var(--body);
  margin-left: 7px;
}
button.ranking-name:hover {
  color: var(--accent);
}
.ranking-status {
  font-size: 8px;
  color: var(--muted);
}
.ranking-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}
.ranking-leader {
  background:
    radial-gradient(ellipse at top right, #f4512b19, transparent 70%),
    var(--surface);
}
.ranking-leader .eyebrow {
  font-size: 7px;
}
.ranking-leader-symbol {
  font: 700 100px/0.95 var(--display);
  color: var(--accent);
  margin: 27px 0 18px;
}
.ranking-leader h3 {
  font-size: 36px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.ranking-leader > p {
  font-size: 10px;
  color: var(--muted);
  margin: 14px 0 25px;
}
.ranking-explanation h3 {
  font-size: 27px;
  margin: 14px 0;
}
.ranking-explanation p:not(.eyebrow) {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
  margin: 13px 0;
}
.ranking-explanation .text-link {
  display: inline-block;
  margin-top: 9px;
}
.ranking-panel .empty-state .outline-button {
  margin-top: 18px;
}
@media (max-width: 1100px) {
  .header {
    flex-wrap: wrap;
    padding: 20px 25px 0;
    gap: 15px;
  }
  .header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 15px;
  }
  .header nav a {
    padding: 15px 0;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 800px) {
  .rankings-layout {
    grid-template-columns: 1fr;
  }
  .ranking-sidebar {
    grid-template-columns: 1fr 1fr;
  }
  .ranking-source > span:last-child {
    margin-left: 0;
  }
  .ranking-leader-symbol {
    font-size: 65px;
  }
  .ranking-leader h3 {
    font-size: 30px;
  }
}
@media (max-width: 700px) {
  .header {
    padding: 17px 20px 0;
  }
  .header nav {
    justify-content: start;
    gap: 25px;
    overflow-x: auto;
  }
  .ranking-category-label {
    width: 100%;
  }
  .ranking-category-label select {
    min-width: 0;
  }
  .ranking-sidebar {
    grid-template-columns: 1fr;
  }
  .ranking-panel .section-heading {
    flex-direction: column;
    gap: 12px;
  }
  .ranking-panel h2 {
    font-size: 29px;
  }
  #ranking-table thead th {
    font-size: 7px;
    padding: 10px 5px;
  }
  #ranking-table tbody td,
  #ranking-table tbody th {
    padding: 14px 5px;
  }
  .ranking-name {
    font-size: 20px;
  }
  .ranking-status {
    font-size: 7px;
  }
  #ranking-table tbody th {
    width: 42px;
  }
  .ranking-source {
    padding: 13px;
    font-size: 8px;
  }
  .ranking-toolbar .search-box {
    width: 100%;
  }
  .ranking-panel {
    padding: 18px;
  }
  .ranking-leader-symbol {
    margin: 20px 0 15px;
  }
}

/* Fotografías oficiales: recorte superior para tarjetas y cuerpo completo en ficha. */
.fighter-photo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 155%;
  width: auto;
  max-width: none;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 8px 12px #0005);
}
.fighter-portrait .portrait-number,
.fighter-portrait .portrait-label {
  z-index: 2;
  text-shadow: 0 1px 4px #000;
  background: #10101088;
  padding: 4px 6px;
}
.fighter-portrait .portrait-number {
  left: 12px;
  top: 12px;
}
.fighter-portrait .portrait-label {
  left: 12px;
  bottom: 10px;
}
.fighter-portrait.large .fighter-photo {
  height: 110%;
  top: 12px;
}
.photo-unavailable .portrait-initials {
  opacity: 0.7;
}
.fighter-card-body .fighter-division {
  color: var(--ink);
  font-size: 9px;
  margin-bottom: 7px;
  font-weight: 600;
}
.official-facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 18px 0;
}
.official-facts dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 14px;
  margin: 19px 0;
}
.official-facts dt {
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 6px;
}
.official-facts dd {
  font-size: 11px;
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.official-facts > p {
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 700px) {
  .fighter-portrait.large .fighter-photo {
    height: 155%;
    top: 0;
  }
  .official-facts dl {
    gap: 15px 12px;
  }
  .filters select {
    min-width: 130px;
  }
  .profile-layout .official-facts .badge {
    font-size: 7px;
  }
}

/* Palmarés, guardia y formación marcial. */
.championship-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 8px;
  margin: 14px 0 0;
  border: 1px solid;
  color: #c5a469;
  background: #c5a4690c;
}
.championship-badge svg {
  width: 26px;
  height: 15px;
}
.championship-badge.former {
  color: #9b9d9b;
  border-color: #9b9d9b66;
  background: #9b9d9b08;
}
.championship-badge.current {
  border-color: #c5a46988;
}
.fighter-card:has(.championship-badge.current) {
  border-top: 2px solid #c5a469;
}
.fighter-card:has(.championship-badge.former) {
  border-top: 2px solid #858781;
}
.fighter-name {
  margin-top: 15px;
}
.card-combat-info {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  margin: 14px 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.card-combat-info dt {
  font-size: 6px;
  letter-spacing: 1px;
  color: var(--muted);
}
.card-combat-info dd {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.combat-details {
  margin: 24px 0;
}
.combat-stance {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--bg);
}
.stance-emblem {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
  font: 600 24px var(--display);
}
.combat-stance h3 {
  font-size: 24px;
  margin: 7px 0 9px;
}
.combat-stance .eyebrow {
  font-size: 7px;
}
.martial-base {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.martial-base h3 {
  font-size: 27px;
  margin: 10px 0;
}
.martial-base > p:not(.eyebrow) {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.championship-history {
  border: 1px solid var(--line);
  padding: 18px;
  margin: 24px 0;
}
.championship-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.championship-heading h3 {
  font-size: 27px;
}
.championship-heading .badge {
  font-size: 7px;
}
.championship-history ul {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}
.belt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.belt-row:first-child {
  border-top: 0;
}
.belt-symbol {
  color: #c5a469;
  flex-shrink: 0;
}
.belt-symbol svg {
  width: 45px;
  height: 24px;
}
.belt-row.former .belt-symbol {
  color: #949a98;
}
.belt-row strong {
  font: 600 23px var(--display);
  display: block;
}
.belt-row small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
}
.belt-status {
  font-size: 7px;
  letter-spacing: 1px;
  padding: 5px 7px;
  background: #c5a46910;
  color: #c5a469;
  margin-left: auto;
  white-space: nowrap;
}
.belt-row.former .belt-status {
  color: var(--muted);
  background: var(--surface-2);
}
.belt-scope,
.no-belts {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.9;
  margin-top: 12px;
}
.belt-scope {
  font-size: 8px;
}
.view[data-view="luchadores"] .filters {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}
.view[data-view="luchadores"] .search-box {
  width: 100%;
}
.view[data-view="luchadores"] .filters select {
  width: 100%;
  min-width: 0;
}
.light .championship-badge.current,
.light .belt-status,
.light .belt-symbol {
  color: #8b641f;
}
@media (max-width: 950px) {
  .view[data-view="luchadores"] .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .view[data-view="luchadores"] .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-combat-info {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .card-combat-info dd {
    font-size: 9px;
  }
  .championship-badge {
    font-size: 7px;
    letter-spacing: 0.4px;
    padding: 4px 5px;
    gap: 5px;
  }
  .championship-badge svg {
    width: 20px;
  }
  .belt-row {
    gap: 9px;
  }
  .belt-symbol svg {
    width: 35px;
  }
  .belt-row strong {
    font-size: 22px;
  }
  .combat-stance h3 {
    font-size: 22px;
  }
  .championship-history {
    padding: 14px;
  }
  .championship-heading h3 {
    font-size: 25px;
  }
}

.official-bout-names { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding: 1.2rem 0; }
.official-bout-names > strong:last-child { text-align: right; }
.official-bout-names > span { color: var(--muted); }
.official-result { line-height: 1.7; }
@media (max-width: 600px) { .official-bout-names { gap: .6rem; font-size: .9rem; } .bout-heading { flex-wrap: wrap; gap: .5rem; } }

.official-event-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.event-poster { margin: 0; display: flex; flex-direction: column; justify-content: center; background: #101114; border-left: 1px solid var(--line); min-width: 0; }
.event-poster-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.event-poster figcaption { padding: 12px 18px; color: #d0d0d0; font-size: 10px; letter-spacing: .12em; text-align: center; }
.segmented { flex-wrap: wrap; }
@media (max-width: 700px) { .official-event-card { grid-template-columns: 1fr; } .event-poster { order: -1; border-left: 0; border-bottom: 1px solid var(--line); } }

.extended-fighter-info h3 {
  margin: 24px 0 12px;
  font-size: 14px;
}
.extended-fighter-info dd {
  font-size: 13px;
  font-weight: 600;
}
.extended-fighter-info dt {
  font-size: 10px;
  line-height: 1.5;
}
.extended-fighter-info > p {
  font-size: 10px;
}

.bout-fighter-name {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.bout-fighter-name:hover { color: var(--accent); }
.official-bout-names > .bout-fighter-name:last-child { text-align: right; }

/* Official Fight Lab comparison. */
.lab-comparator { margin-bottom: 48px; }
.lab-comparator .comparison-selects { grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); }
.lab-comparator .comparison-selects label { min-width: 0; }
.lab-comparator .comparison-selects select { min-width: 0; text-overflow: ellipsis; }
.lab-status { margin: 22px 0; color: var(--muted); font-size: 12px; }
.lab-fighter-summaries { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.lab-fighter { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 18px; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.lab-fighter.blue { border-top-color: var(--blue); }
.lab-fighter h2 { font: 700 27px var(--display); margin: 8px 0; overflow-wrap: anywhere; }
.lab-fighter p:not(.eyebrow):not(.data-note) { font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
.lab-fighter .data-note { line-height: 1.7; margin: 12px 0; }
.lab-fighter-photo { align-self: start; background: var(--bg); overflow: hidden; }
.lab-fighter-photo img { display: block; width: 100%; height: auto; }
.lab-stance-source { display: block; margin-top: 8px; }
.lab-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 30px; }
.lab-table caption { text-align: left; font: 700 22px var(--display); padding: 0 0 14px; }
.lab-table th, .lab-table td { border-bottom: 1px solid var(--line); padding: 14px 12px; overflow-wrap: anywhere; vertical-align: middle; }
.lab-table thead th { font-size: 12px; background: var(--bg); text-align: center; }
.lab-table thead th:first-child { width: 36%; text-align: left; }
.lab-table tbody th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.6; }
.lab-value { text-align: center; font-size: 13px; line-height: 1.6; font-weight: 600; }
.lab-table thead th:nth-child(2) { color: var(--accent); }
.lab-table thead th:nth-child(3) { color: var(--blue); }
.lab-percent { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.lab-percent span { display: block; height: 100%; background: var(--accent); }
.lab-value.blue .lab-percent span { background: var(--blue); }
.lab-comparison-notes { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.lab-comparison-notes p { color: var(--muted); font-size: 11px; line-height: 1.8; margin-bottom: 10px; }
@media (max-width: 700px) {
  .lab-comparator { padding: 14px; }
  .lab-comparator .comparison-selects { gap: 8px; }
  .lab-comparator .comparison-selects select { font-size: 11px; padding: 8px 4px; }
  .lab-fighter-summaries { gap: 10px; }
  .lab-fighter { display: flex; flex-direction: column; padding: 10px; gap: 10px; min-width: 0; }
  .lab-fighter-photo { width: 80px; }
  .lab-fighter h2 { font-size: 21px; }
  .lab-fighter .text-link { font-size: 10px; }
  .lab-table th, .lab-table td { padding: 10px 5px; }
  .lab-table thead th, .lab-table tbody th, .lab-value { font-size: 10px; }
  .lab-table caption { font-size: 20px; }
}

/* Mi esquina: followed fighters and official event agenda. */
.following-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.following-stats article { padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.following-stats strong { display: block; font: 700 40px var(--display); color: var(--accent); }
.following-stats span { font-size: 12px; color: var(--muted); }
.follow-picker { margin-bottom: 16px; }
.follow-picker label { font-size: 14px; font-weight: 600; }
.follow-picker > div { display: flex; gap: 12px; margin-top: 14px; }
.follow-picker select { min-width: 0; flex: 1; }
.follow-picker .data-note { margin-top: 12px; }
#following-feed-status { margin-bottom: 24px; line-height: 1.8; }
.following-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 38px; }
.following-layout .section-heading { margin: 0 0 18px; flex-wrap: wrap; gap: 8px; }
.following-layout h2 { font-size: 25px; }
.following-bout { padding: 20px 0; border-top: 1px solid var(--line); }
.following-bout:first-child { border-top: 0; padding-top: 0; }
.following-bout-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 11px; }
.following-bout-names { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 18px 0 12px; }
.following-bout-names > :last-child { text-align: right; }
.following-bout-names > span { font-size: 10px; color: var(--muted); }
.following-bout p { font-size: 12px; line-height: 1.7; margin: 10px 0; }
.following-bout-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.following-result { font-weight: 600; }
.following-fighter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 42px; }
.followed-fighter { padding: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.followed-fighter-heading { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.followed-fighter-heading img { display: block; width: 64px; height: 97px; object-fit: cover; }
.followed-fighter-heading p { font-size: 11px; line-height: 1.6; }
.followed-fighter-name { display: block; padding: 0; border: 0; background: none; color: var(--ink); font: 700 23px var(--display); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.followed-fighter-name:hover { color: var(--accent); }
.followed-ranking { font-size: 10px; color: var(--muted); line-height: 1.7; margin: 16px 0; }
.followed-next { border-top: 1px solid var(--line); padding: 16px 0; }
.followed-next p { font-size: 12px; line-height: 1.7; }
.followed-next .eyebrow { font-size: 9px; margin-bottom: 10px; }
.followed-next strong { font: 700 22px var(--display); }
.followed-fighter > .outline-button { margin-top: 6px; white-space: normal; }
@media (max-width: 1000px) { .following-fighter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
 .following-stats { gap: 8px; }
 .following-stats article { padding: 12px; }
 .following-stats strong { font-size: 30px; }
 .following-stats span { font-size: 10px; line-height: 1.5; }
 .following-layout, .following-fighter-grid { grid-template-columns: minmax(0, 1fr); }
 .following-layout > .panel, .follow-picker { padding: 16px; }
 .follow-picker > div { gap: 8px; }
 .follow-picker select { font-size: 11px; padding: 8px 4px; }
 .follow-picker .button { padding-left: 12px; padding-right: 12px; }
}

.account-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.account-panel > div { min-width: 0; }
.account-panel h2 { font: 700 23px var(--display); overflow-wrap: anywhere; margin-bottom: 8px; }
.account-panel p { font-size: 12px; line-height: 1.8; color: var(--muted); }
#account-sync-status { margin-top: 8px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
#auth-dialog { width: min(480px, calc(100% - 24px)); padding: 32px; }
#auth-dialog h2 { font: 700 36px var(--display); margin: 10px 0 24px; }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.auth-tabs [aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
#auth-form > input { display: block; width: 100%; margin: 8px 0 18px; }
#auth-form .data-note { font-size: 11px; line-height: 1.8; margin-bottom: 18px; }
.auth-import-local { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.7; margin: 12px 0 20px; }
.auth-import-local input { width: auto; flex-shrink: 0; margin-top: 4px; }
#auth-submit { width: 100%; }
.auth-error { color: var(--accent); line-height: 1.8; font-size: 12px; margin-top: 18px; }
#auth-signed-in p { overflow-wrap: anywhere; margin-bottom: 16px; font-size: 13px; }
@media (max-width: 700px) {
 .account-panel { align-items: stretch; flex-direction: column; padding: 16px; gap: 14px; }
 #auth-dialog { padding: 24px 18px; }
 .header-actions #account-open { font-size: 10px; padding: 8px; }
}

.following-pinned { margin-bottom: 24px; border-color: var(--accent); }
.following-pinned .section-heading { margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.following-pinned h2 { font-size: 25px; }
.following-pinned .following-bout { border-top: 0; padding-top: 0; }

#spoiler-button { white-space: nowrap; }
#spoiler-button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1200px) {
  .header { flex-wrap: wrap; }
  .header nav { order: 3; width: 100%; justify-content: space-between; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 600px) {
  .header-actions { width: 100%; justify-content: flex-start; }
  #spoiler-button { font-size: 10px; padding: 10px; }
}

.language-picker select { width: auto; min-width: 94px; padding: 9px 24px 9px 10px; font-size: 12px; }
.language-picker { display: flex; align-items: center; }

/* Small, finite movements keep the interface calm. */
@media (prefers-reduced-motion: no-preference) {
  .view:not([hidden]) {
    animation: view-arrive 260ms ease-out both;
  }

  dialog[open] {
    animation: dialog-arrive 180ms ease-out both;
  }

  dialog[open]::backdrop {
    animation: backdrop-arrive 180ms ease-out both;
  }

  .fighter-card,
  .event-card,
  .followed-fighter {
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
  }

  .button,
  .outline-button,
  .icon-button,
  .header nav a,
  .text-link {
    transition: color 160ms ease-out, background-color 160ms ease-out,
      border-color 160ms ease-out, transform 160ms ease-out;
  }

  .header nav a.active::after {
    transform-origin: left;
    animation: nav-arrive 200ms ease-out both;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fighter-card:hover,
  .event-card:hover,
  .followed-fighter:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
  }

  .button:not(:disabled):hover,
  .outline-button:not(:disabled):hover {
    transform: translateY(-1px);
  }

  .button:not(:disabled):active,
  .outline-button:not(:disabled):active {
    transform: translateY(1px);
  }
}

@keyframes view-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dialog-arrive {
  from { opacity: 0; transform: translateY(4px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdrop-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nav-arrive {
  from { transform: scaleX(.65); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Reported matchups retain their original attribution. */
.rumor-toolbar { flex-wrap: wrap; gap: 12px; }
.rumor-toolbar .search-box { flex: 1 1 260px; }
.rumor-toolbar select { width: auto; max-width: 100%; }
.rumor-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
#rumor-count { margin-bottom: 16px; }
.rumor-list { display: grid; gap: 20px; margin-bottom: 40px; }
.rumor-card-top, .rumor-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.rumor-matchup { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 22px 0 16px; }
.rumor-matchup > span { font: 11px var(--body); color: var(--muted); }
.rumor-fighter { background: none; color: var(--ink); padding: 0; text-align: left; font: 700 30px var(--display); }
.rumor-fighter:hover { color: var(--accent); }
.rumor-summary { line-height: 1.8; margin-bottom: 22px; }
.rumor-byline { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; }
.rumor-byline a { color: var(--ink); font-weight: 600; }
.rumor-byline time { flex-basis: 100%; color: var(--muted); }
.rumor-actions { justify-content: flex-start; margin: 16px 0; }
.rumor-confirmed { color: var(--ink); border-color: var(--blue); background: var(--surface-2); }
.rumor-sidebar h2 { font-size: 28px; margin: 10px 0 22px; }
.rumor-sidebar .data-note { margin-top: 18px; line-height: 1.8; }
.rumor-source-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 12px; }
.rumor-source-link small { display: block; color: var(--muted); margin-top: 5px; }
.rumor-source-link:hover { color: var(--accent); }
.rumor-group-sources { list-style: none; padding: 0; margin: 16px 0; }
.rumor-group-sources li { padding: 12px 0; border-top: 1px solid var(--line); }
.rumor-group-sources small { display: block; color: var(--muted); margin-top: 6px; }
.rumor-review-panel { margin-bottom: 28px; }
.rumor-review-panel > summary { cursor: pointer; font-weight: 700; }
.rumor-review-panel > .data-note { margin: 16px 0; }
.rumor-review-upload { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 12px 12px 0; }
.rumor-review-upload input { max-width: 100%; }
.rumor-review-card { margin-top: 20px; }
.rumor-review-card h3 { font: 700 24px var(--display); }
.rumor-review-post { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rumor-review-post summary { cursor: pointer; }
.rumor-review-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; padding: 14px 0; }
.rumor-review-form { display: grid; gap: 16px; margin-top: 20px; }
.rumor-review-form label { display: grid; gap: 8px; }
.rumor-review-form input:not([type="checkbox"]), .rumor-review-form textarea { width: 100%; padding: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font: inherit; border-radius: 4px; }
.rumor-review-names { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; }
.rumor-review-form .rumor-review-check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
@media (max-width: 1150px) { .header { flex-wrap: wrap; } .header nav { order: 3; width: 100%; overflow-x: auto; } }
@media (max-width: 850px) { .rumor-layout { grid-template-columns: minmax(0,1fr); } .rumor-toolbar select { flex: 1 1 160px; } }

/* Useful homepage agenda, driven by the official events feed. */
.info-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.info-hero .hero-copy { min-width: 0; padding: 36px; }
.info-hero h1 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08; margin: 24px 0; overflow-wrap: anywhere; }
.info-hero .hero-versus { display: block; font-size: 18px; color: var(--accent); margin: 10px 0; letter-spacing: 2px; }
.info-hero .hero-tag { flex-wrap: wrap; font-size: 10px; }
.hero-facts { margin: 0; display: grid; gap: 18px; }
.hero-facts dt { font-size: 10px; letter-spacing: 1.5px; color: #aaa9a4; margin-bottom: 6px; }
.hero-facts dd { margin: 0; font-size: 14px; color: #f3f1ec; line-height: 1.6; }
.info-hero .hero-buttons { flex-wrap: wrap; margin: 24px 0 14px; }
.info-hero .data-note { font-size: 11px; line-height: 1.7; color: #aaa9a4; }
.hero-agenda { min-width: 0; padding: 36px; border-left: 1px solid #ffffff20; background: radial-gradient(ellipse at top right, #f4512b18, transparent 70%); display: flex; flex-direction: column; align-items: start; gap: 14px; color: #f3f1ec; }
.hero-agenda > .eyebrow { color: var(--accent); margin: 0; }
.hero-agenda h2 { margin: 0; font-size: 34px; }
.hero-agenda h2 > span { font-size: 16px; font-weight: 400; }
.hero-bouts { width: 100%; }
.hero-bouts > div { padding: 14px 0; border-bottom: 1px solid #ffffff20; }
.hero-bouts .eyebrow { font-size: 9px; color: #aaa9a4; }
.hero-bouts p { margin: 8px 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.hero-bouts p span { color: var(--accent); }
.hero-bouts small { color: #aaa9a4; }
.hero-agenda .text-link { color: var(--accent); }
.light .info-hero .outline-button { color: #f3f1ec; border-color: #ffffff40; }
@media (max-width: 760px) {
  .info-hero { grid-template-columns: 1fr; }
  .info-hero .hero-copy, .hero-agenda { padding: 24px; }
  .hero-agenda { border-left: 0; border-top: 1px solid #ffffff20; }
  .info-hero h1 { font-size: 38px; }
  .info-hero .hero-buttons { width: 100%; }
}

 .event-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.event-kind-buttons { border-left: 1px solid var(--line); padding-left: 12px; }
@media (max-width: 760px) {
  .event-filters { width: 100%; gap: 8px; }
  .event-kind-buttons { border-left: 0; padding-left: 0; }
}

/* Desktop fighter sheet: compact portrait in the header, full-width details. */
@media (min-width: 701px) {
  #fighter-dialog {
    width: min(980px, calc(100% - 48px));
    padding: 40px;
  }

  #fighter-dialog .profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: auto auto auto;
    gap: 12px 32px;
    align-items: start;
  }

  #fighter-dialog .profile-copy { display: contents; }
  #fighter-dialog .profile-copy > * { grid-column: 1 / -1; min-width: 0; }

  #fighter-dialog .profile-copy > .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 16px 0 0;
    align-self: end;
  }

  #fighter-dialog .profile-copy > h2 {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: clamp(40px, 4.5vw, 60px);
    line-height: 1.06;
    overflow-wrap: anywhere;
    align-self: center;
  }

  #fighter-dialog .profile-copy > h2 + p {
    grid-column: 1;
    grid-row: 3;
    margin: 0 0 16px;
  }

  #fighter-dialog .fighter-portrait.large {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 220px;
    height: 260px;
    min-height: 0;
    align-self: start;
    border-radius: 12px;
    overflow: hidden;
  }

  #fighter-dialog .fighter-portrait.large .fighter-photo {
    width: 100%;
    max-width: 100%;
    height: 100%;
    inset: 0;
    transform: none;
    object-fit: contain;
    object-position: center bottom;
  }

  #fighter-dialog .large .portrait-initials { font-size: 86px; top: 72px; }
  #fighter-dialog .portrait-label { font-size: 8px; }
  #fighter-dialog .official-facts { margin-top: 20px; }
  #fighter-dialog .official-facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #fighter-dialog .profile-copy > a,
  #fighter-dialog .profile-copy > button { justify-self: start; margin-left: 0; }
}

/* Neutral headshots use their original proportions in cards and profile dialogs. */
.fighter-portrait.neutral-headshot .fighter-photo {
  width: 100%; max-width: 100%; height: 100%; left: 0; bottom: 0;
  transform: none; object-fit: contain; object-position: center bottom;
}

/* Desktop follow feedback: action-only, with no layout movement. */
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  [data-favorite].follow-celebrate {
    animation: desktop-follow-heartbeat 680ms cubic-bezier(.2,.8,.3,1);
    isolation: isolate;
    overflow: visible;
  }
  [data-favorite].follow-celebrate:not(.favorite-button) { position: relative; }
  [data-favorite].follow-celebrate::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    animation: desktop-follow-ring 760ms ease-out;
  }
  .follow-card-celebrate {
    animation: desktop-follow-glow 850ms ease-out;
  }
}
@keyframes desktop-follow-heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.16) rotate(-5deg); }
  48% { transform: scale(.96) rotate(3deg); }
  70% { transform: scale(1.06) rotate(0); }
}
@keyframes desktop-follow-ring {
  0% { opacity: .8; transform: scale(.95); }
  100% { opacity: 0; transform: scale(1.5); }
}
@keyframes desktop-follow-glow {
  0%, 100% { box-shadow: inset 0 0 0 1px transparent; }
  28% { box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 38px rgb(255 82 38 / 15%); }
}

.bout-section-heading { margin: 28px 0 12px; padding: 12px 0; border-bottom: 2px solid var(--accent); font: 700 24px var(--display); }

.data-health { margin: 24px auto; padding: 18px; width: min(1200px, calc(100% - 32px)); border: 1px solid var(--line); box-sizing: border-box; }
.data-health summary { cursor: pointer; font-weight: 600; }
.data-health-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-top: 18px; }
.data-health-item { display: flex; flex-direction: column; gap: 8px; }
.data-health-state { font-size: 13px; }
.data-health-state:not([data-status="recent"]) { color: var(--accent); }
.data-health-list > .data-note { grid-column: 1 / -1; }

.catalog-more { display: flex; justify-content: center; margin: 24px 0 40px; }
.catalog-more button { min-height: 44px; min-width: 180px; }

/* Retired legends: violet laurels; gold remains reserved for current champions. */
.legend-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  margin: 12px 8px 0 0;
  border: 1px solid #bba0ed70;
  background: #a78bfa12;
  color: #d8c4ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.legend-badge svg { width: 23px; height: 23px; flex: 0 0 auto; }
.legend-status { border-left: 1px solid currentColor; padding-left: 8px; font-size: 9px; font-weight: 400; }
.fighter-card.fighter-legend, .followed-fighter.fighter-legend {
  border-top: 3px solid #ae8cde;
  background: linear-gradient(135deg, #a78bfa0c, transparent 55%), var(--surface);
}
.legacy-details { margin: 18px 0; padding: 16px; border-left: 3px solid #ae8cde; background: #a78bfa0c; }
.legacy-details .legend-badge { margin-top: 0; }
.legacy-details > p { margin: 12px 0; }
.light .legend-badge { color: #69449b; background: #7854ad0c; border-color: #7854ad70; }
@media (max-width: 700px) {
  .legend-badge { letter-spacing: .5px; padding: 6px 8px; }
  .legacy-details { padding: 12px; }
}
