/* ============================================================
   TAPPED WRESTLING FEDERATION — style.css
   Brand constants (from the TWF logo + every poster): chalk
   black, poster gold, cream paper, heavy condensed caps.
   Each show tints the hero via --ev1/--ev2, set from the
   event's `accent`/`accent2` fields in js/data.js.
   ============================================================ */

:root {
  --ink: #141114;          /* chalk black, like the logo backdrop */
  --ink-2: #201c20;        /* raised panels */
  --line: #363037;         /* hairlines */
  --canvas: #f0e7d6;       /* printed program paper */
  --canvas-2: #e7dcc4;     /* paper panel */
  --canvas-line: #d5c6a8;  /* hairlines on paper */
  --canvas-ink: #221c22;   /* ink on paper */
  --gold: #f3be20;         /* poster gold — THE brand accent */
  --gold-deep: #d99b07;    /* pressed/hover gold */
  --gold-ink: #241a02;     /* dark text on gold */
  --red: #c8372e;          /* poster red — rule breakers, sold out */
  --blue: #7f9fc7;         /* denim blue, small utility labels */
  --steel: #a49da6;        /* secondary text gray */
  --white: #f7f2e9;

  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --slab: "Alfa Slab One", Georgia, serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- the three-tap mark /// ---------- */
.taps {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.taps i {
  width: 6px;
  height: 20px;
  background: var(--gold);
  transform: skewX(-20deg);
}
.taps.gold i { background: var(--gold); }
.taps.small i { width: 4px; height: 13px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 17, 20, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo span {
  font-family: var(--cond);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--steel);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  padding: 0.45rem 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* ---------- hero (fight poster) ----------
   --ev1/--ev2 are the featured show's poster colors,
   set inline by app.js; gold is the fallback. */
.hero {
  --ev1: var(--gold);
  --ev2: var(--gold);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--ev1) 24%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 20%, color-mix(in srgb, var(--ev2) 12%, transparent), transparent 70%);
}
.hero::after {
  /* hazard stripes along the bottom edge, in the show's colors */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ev1) 0 14px,
    var(--gold) 14px 28px,
    var(--ev2) 28px 42px
  );
  opacity: 0.9;
}
.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.eyebrow .hot { color: var(--gold); }
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-size: clamp(4rem, 13vw, 9.5rem);
  margin: 1.2rem 0 0.5rem;
  transform: rotate(-1.5deg);
}
/* In Your House-homage mixed lettering, colored per show */
.hero-title .w1 {
  display: inline-block;
  color: var(--ev1, var(--white));
}
.hero-title .wmid {
  display: inline-block;
  font-family: var(--slab);
  font-size: 0.30em;
  text-transform: lowercase;
  color: var(--gold);
  transform: rotate(-7deg) translateY(-0.9em);
  margin: 0 0.08em;
}
.hero-title .wlast {
  display: block;
  color: var(--ev2, transparent);
  -webkit-text-stroke: 3px var(--white);
}
.hero-tagline {
  font-family: var(--slab);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ev2, var(--gold));
  font-weight: 400;
  margin-bottom: 1.8rem;
}
.hero-meta {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  color: var(--steel);
  font-family: var(--cond);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta i { font-size: 1.25rem; color: var(--white); }

/* countdown */
.countdown {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}
.count-block {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ev1, var(--gold));
  min-width: 78px;
  padding: 0.7rem 0.6rem 0.55rem;
  text-align: center;
}
.count-block b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-block span {
  font-family: var(--cond);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

/* buttons */
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--gold);
  transition: transform 0.12s, background 0.12s, color 0.12s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--gold); color: var(--gold-ink); }
.btn-solid:hover { background: var(--gold-deep); }
.btn-ghost { color: var(--white); }
.btn-ghost:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.section-head .taps { transform: translateY(-2px); }
.section-head .more {
  margin-left: auto;
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.section-head .more:hover { text-decoration: underline; }

/* the "program paper" world */
.program {
  background:
    repeating-linear-gradient(-45deg, rgba(25, 20, 32, 0.025) 0 2px, transparent 2px 6px),
    var(--canvas);
  color: var(--canvas-ink);
}
.program .section-head h2 { color: var(--canvas-ink); }
.program .eyebrow { color: #7a7261; }

/* ---------- match / result rows ---------- */
.match-list { display: grid; gap: 0.75rem; }
.match-list > * { min-width: 0; } /* grid cells must be allowed to shrink below their content */
.bout-stage, .fighter { min-width: 0; }
.match-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.program .match-row {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--canvas-line);
}
.match-row .bout {
  flex: 1 1 260px;
  font-size: 1.02rem;
}
.match-row .bout .win { font-weight: 700; }
.match-row .bout .vs {
  color: var(--gold);
  font-family: var(--cond);
  font-weight: 700;
  padding: 0 0.2rem;
}
.match-row .method {
  font-family: var(--cond);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--steel);
}
.program .match-row .method { color: #6d6553; }

.tag {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.tag-card { color: var(--steel); }
.tag-title { color: var(--gold); }
.tag-main { color: var(--white); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}
.chip i { font-size: 1.05rem; }
.chip-play { background: var(--gold); color: var(--gold-ink); }
.chip-play:hover { background: var(--gold-deep); }
.chip-soon { color: var(--steel); border: 1px dashed var(--steel); opacity: 0.75; }
.chip-photos { background: transparent; border: 1px solid var(--gold); color: var(--gold); cursor: pointer; font-family: var(--cond); }
.chip-photos:hover, .chip-photos:focus-visible { background: var(--gold); color: var(--gold-ink); outline: none; }
.program .chip-photos { border-color: #b98a05; color: #8a6403; }
.program .chip-photos:hover, .program .chip-photos:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
/* result rows: three fixed columns so every row lines up —
   label | who beat whom | stacked title / photos / highlights */
.match-list .match-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) 12.5rem;
  align-items: center;
  gap: 1rem 1.2rem;
}
.match-list .match-row .tag-card { white-space: normal; text-align: center; line-height: 1.25; }
.row-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem; }
.row-actions > * { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; text-align: center; white-space: normal; }
.face-none {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink-2); color: var(--gold); font-size: 1.1rem;
}
.program .face-none { background: var(--canvas-2); color: #8a6403; }
.more-past { margin-top: 1rem; }
@media (max-width: 720px) {
  .match-list .match-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .match-list .match-row .tag-card { justify-self: start; }
  .row-actions { flex-direction: row; flex-wrap: wrap; }
}
.program .chip-soon { color: #8a8170; border-color: #8a8170; }

/* ---------- event cards ---------- */
.event-card {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}
.event-card h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
  margin: 0.35rem 0 0.3rem;
}
.event-card .hero-meta { margin-bottom: 1.2rem; font-size: 0.98rem; }
.event-card .hero-tagline { font-size: 1rem; margin-bottom: 1.2rem; }

details.past-event {
  border: 1px solid var(--canvas-line);
  background: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}
details.past-event summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.3rem;
}
details.past-event summary::-webkit-details-marker { display: none; }
details.past-event summary h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1;
}
details.past-event summary .date {
  font-family: var(--cond);
  color: #7a7261;
  letter-spacing: 0.08em;
}
details.past-event summary .toggle-hint {
  margin-left: auto;
  font-family: var(--cond);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
details.past-event .past-body { padding: 0 1.3rem 1.3rem; }

/* ---------- roster ---------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
/* ---------- roster rolodex (homepage) ---------- */
.rolodex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rolodex:focus-visible { outline-offset: 8px; }
.rol-stage {
  position: relative;
  flex: 1;
  height: 500px;
  perspective: 1400px;
  overflow: hidden;
}
.rol-item {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 250px;
  margin-left: -125px;
  transition: transform 0.45s ease, opacity 0.45s ease;
  cursor: pointer;
}
.rol-item.is-active { cursor: default; }
.rol-item:not(.is-active) .wrestler-card:hover { transform: none; }
.rol-item.is-active .wrestler-card { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); }
.rol-btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rol-btn:hover { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 560px) {
  .rol-stage { height: 460px; }
  .rol-item { width: 220px; margin-left: -110px; }
}

.wrestler-card {
  border: 1px solid var(--line);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}
.wrestler-card:hover { transform: translateY(-4px); border-color: var(--steel); }
.wrestler-card.champ { border-color: var(--gold); }
.wrestler-card .portrait {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 15%, rgba(146, 152, 165, 0.22), transparent 70%),
    linear-gradient(180deg, #1b1b24, #101016);
  border-bottom: 3px solid var(--line);
}
.wrestler-card.champ .portrait { border-bottom-color: var(--gold); }
.wrestler-card .portrait svg { width: 100%; height: auto; color: #05050a; }
.wrestler-card .champ-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wrestler-card .champ-badge i { font-size: 1.15rem; }
.wrestler-card .card-body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.5rem; }
.wrestler-card .nick {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.wrestler-card h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.55rem;
  line-height: 0.95;
}
.wrestler-card .statline {
  font-family: var(--cond);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.wrestler-card .statline b { color: var(--white); font-weight: 600; }
.wrestler-card .bio { font-size: 0.92rem; color: #c9c6bd; }
.wrestler-card .record-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
}
.wrestler-card .record {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.align-tag { font-family: var(--cond); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.align-face { color: var(--steel); }
.align-heel { color: var(--red); }

/* ---------- history table ---------- */
.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.6rem;
}
.filters label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cond);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.filters select {
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--ink-2);
  color: var(--white);
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
}
.filters input[type="checkbox"] { accent-color: var(--gold); width: 1rem; height: 1rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table.history {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 720px;
}
table.history th {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  color: var(--steel);
  background: var(--ink-2);
  padding: 0.7rem 0.9rem;
  border-bottom: 2px solid var(--gold);
}
table.history td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.history td .win { font-weight: 700; }
table.history td.date-cell, table.history td.event-cell {
  font-family: var(--cond);
  color: var(--steel);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.empty-note { color: var(--steel); padding: 1.5rem 0; font-style: italic; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-inner .tagline {
  font-family: var(--cond);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  font-size: 0.85rem;
}
.socials { display: flex; gap: 0.9rem; }
.socials a { color: var(--steel); font-size: 1.5rem; transition: color 0.15s; }
.socials a:hover { color: var(--gold); }

/* ---------- page header (interior pages) ---------- */
.page-head {
  padding: 3.2rem 0 2.6rem;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.9;
  transform: rotate(-1deg);
  margin-top: 0.9rem;
}
.page-head p { color: var(--steel); margin-top: 0.8rem; max-width: 52ch; }

/* ---------- motion & small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 560px) {
  .countdown { flex-wrap: wrap; }
  .count-block { min-width: 64px; }
  .nav-inner { justify-content: center; }
}

/* ---------- real brand assets ---------- */
.logo-img { height: 52px; width: auto; }
footer .logo-img { height: 44px; }

/* hero: text left, tilted show poster right (collage style) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-poster {
  justify-self: center;
  max-width: 330px;
  transform: rotate(2deg);
  border: 8px solid var(--white);
  outline: 3px solid var(--ev1, var(--gold));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.event-flex { display: flex; gap: 1.8rem; align-items: flex-start; }
.event-flex .event-info { flex: 1 1 auto; min-width: 0; }
.poster-thumb {
  /* explicit width — flex-basis alone loses to an img's intrinsic
     min-width, which let big posters overflow the card */
  flex: 0 0 auto;
  width: 200px;
  min-width: 0;
  height: auto;
  align-self: flex-start;
  transform: rotate(-2deg);
  border: 6px solid var(--white);
  outline: 2px solid var(--gold);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
/* ---------- versus stage (upcoming match panels) ---------- */
.bout-panel {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 1.2rem 1.2rem 1.5rem;
}
.title-bout {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  background-image: radial-gradient(
    ellipse 75% 70% at 50% 100%,
    color-mix(in srgb, var(--gold) 10%, transparent),
    transparent 75%
  );
}
.bout-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.bout-stage {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.fighter {
  flex: 1 1 0;
  max-width: 230px;
  min-width: 0;
  text-align: center;
}
.fighter .pic {
  height: clamp(110px, 20vw, 195px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  overflow: hidden;
  background: radial-gradient(
    ellipse 70% 75% at 50% 100%,
    rgba(146, 152, 165, 0.16),
    transparent 72%
  );
}
.title-bout .fighter .pic {
  /* the championship aura — golden spotlight rising behind the portraits */
  background: radial-gradient(
    ellipse 70% 85% at 50% 100%,
    color-mix(in srgb, var(--gold) 38%, transparent),
    color-mix(in srgb, var(--gold) 10%, transparent) 55%,
    transparent 78%
  );
}
.fighter .pic img,
.fighter .pic svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 78%, transparent 100%);
  mask-image: linear-gradient(#000 78%, transparent 100%);
}
.fighter .pic img.cut {
  /* background-removed cutouts blend on their own — just soften
     the bottom crop where the torso meets the stage edge */
  max-width: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(#000 92%, transparent 100%);
  mask-image: linear-gradient(#000 92%, transparent 100%);
}
.fighter .pic svg { aspect-ratio: 5 / 6; color: #0a090c; }
.bout-panel:not(.title-bout) .fighter .pic { height: clamp(90px, 14vw, 140px); }
.fighter-name {
  font-family: var(--display);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 0.55rem;
}
.title-bout .fighter-name { color: var(--gold); }
.cmark { color: var(--gold); font-size: 0.7em; vertical-align: 0.15em; }
.title-bout .cmark { color: var(--white); }
.fighter-sub {
  font-family: var(--cond);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.2rem;
}
.vs-badge {
  align-self: center;
  font-family: var(--slab);
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  text-transform: uppercase;
  color: var(--steel);
  padding: 0 0.15rem;
}
.title-bout .vs-badge { color: var(--gold); }
.bout-note {
  text-align: center;
  margin-top: 0.9rem;
  font-family: var(--cond);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}

/* real photos in the roster card portrait frame */
.wrestler-card .portrait {
  aspect-ratio: 5 / 6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.wrestler-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wrestler-card .portrait img.cut {
  /* cutout floats on the card's spotlight, softened at the crop line */
  width: auto;
  max-width: 100%;
  height: 96%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(#000 92%, transparent 100%);
  mask-image: linear-gradient(#000 92%, transparent 100%);
}

/* small round headshots inside match listings */
.face {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
  border: 2px solid var(--gold);
  vertical-align: middle;
  margin: -4px 0.45rem -2px 0;
}

/* "more matches to be announced" — its own line under the card */
.card-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-family: var(--cond);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.card-note i { font-size: 1.15rem; color: var(--gold); }

.role-tag {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-poster { max-width: 260px; justify-self: start; margin-top: 1rem; }
  .event-flex { flex-direction: column; }
  .poster-thumb { width: 180px; }
}

/* ---------- photo galleries: "program spread" ---------- */
.gallery { margin-top: 1.6rem; }
.gallery-head {
  display: flex; align-items: center; gap: 0.45rem; margin-bottom: 1rem;
  font-family: var(--cond); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--canvas-ink);
}
.gallery-head i { font-size: 1.15rem; }
.gallery-head .credit { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: #7a7261; }
.gallery-head .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gallery-head .credit a:hover { color: var(--canvas-ink); }
.lb-cap a { color: var(--gold); }
.match-row.pending .bout { color: var(--steel); }
.program .match-row.pending .bout { color: #6d6553; }
.gallery-group { margin: 0 0 2.2rem; }
.photo {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--canvas-line); overflow: hidden; cursor: zoom-in; text-align: left;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.photo:hover img { transform: scale(1.03); }
.photo:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.photo.lead { aspect-ratio: 2 / 1; background: var(--ink); }
.lead-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1.1rem 0.75rem;
  background: linear-gradient(transparent, rgba(20, 17, 20, 0.9)); color: var(--white);
  font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.8rem); line-height: 0.95;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.lead-title small {
  display: block; margin-bottom: 0.3rem; font-family: var(--cond); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.16em; color: var(--gold);
}
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 3px; }
.photo-grid .photo { aspect-ratio: 1; }
.photo-grid .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.35rem 0.5rem;
  font-family: var(--cond); font-size: 0.8rem; line-height: 1.15; color: var(--white);
  background: rgba(20, 17, 20, 0.84); border-top: 2px solid var(--gold);
  transform: translateY(101%); transition: transform 0.2s ease;
}
.photo:hover .cap, .photo:focus-visible .cap { transform: none; }
@media (max-width: 720px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .photo.lead { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .photo img, .photo-grid .cap { transition: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 17, 20, 0.95); touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(96vw, 1600px); max-height: 86vh; object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65); background: var(--ink-2);
}
.lightbox button {
  position: absolute; border: 0; background: transparent; color: var(--white);
  font-size: 2.2rem; line-height: 1; padding: 0.6rem; cursor: pointer; opacity: 0.85;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; color: var(--gold); outline: none; }
.lb-close { top: 0.5rem; right: 0.7rem; }
.lb-prev { left: 0.3rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.3rem; top: 50%; transform: translateY(-50%); }
.lb-cap {
  position: absolute; left: 0; right: 0; bottom: 0.9rem; padding: 0 4rem; text-align: center;
  font-family: var(--cond); font-size: 0.9rem; letter-spacing: 0.06em; color: var(--steel);
}
.lb-cap b { color: var(--white); font-weight: 600; }
.lb-cap .lb-desc { display: block; color: var(--white); font-family: var(--body); font-size: 1rem; letter-spacing: 0; margin-bottom: 0.25rem; }
@media (max-width: 560px) {
  .lightbox img { max-height: 78vh; max-width: 100vw; }
  .lightbox button { font-size: 1.7rem; }
  .lb-cap { padding: 0 1rem; }
}

/* ---------- versus stage on phones: everything must fit the panel ---------- */
@media (max-width: 560px) {
  .event-card { padding: 1rem 0.8rem 1.2rem; }
  .bout-panel { padding: 0.9rem 0.5rem 1.1rem; }
  .bout-head { gap: 0.4rem; margin-bottom: 0.8rem; }
  .bout-head .tag { white-space: normal; text-align: center; line-height: 1.2; font-size: 0.66rem; padding: 0.2rem 0.45rem; }
  .bout-stage { gap: 0.25rem; }
  .vs-badge { padding: 0; font-size: 0.85rem; }
  .fighter .pic { height: clamp(88px, 26vw, 130px); }
  .bout-panel:not(.title-bout) .fighter .pic { height: clamp(80px, 22vw, 110px); }
  .fighter-name { font-size: 0.82rem; letter-spacing: 0.03em; overflow-wrap: anywhere; }
  .fighter-sub { font-size: 0.7rem; }
}

