/* ═══════════════════════════════════════════════════════════════════════════
   Ali vs Tyson — Boxing matchup
   Extends shared/style.css. Owns the ruleset note, the fixed-venue block, the
   live fight status banner, and the three-judge running scorecard.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Ruleset note ─────────────────────────────────────────────────────────── */
.ruleset-note {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--dim);
    letter-spacing: 0.01em;
}

/* ── Fighter names (FIGHTERS group) — gold, bold, no underline ─────────────── */
.fighter-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--yellow);
}
.fighter-name-link {
    text-decoration: none;
    color: var(--yellow);
}
.fighter-name-link:hover {
    color: var(--yellow-dim);
    text-decoration: none;
}

/* ── Fixed venue block ────────────────────────────────────────────────────── */
.venue-fixed {
    border: 1px solid var(--border-hi);
    padding: 12px 14px;
    background: rgba(255, 204, 0, 0.03);
}
.venue-fixed-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--yellow);
}
.venue-fixed-loc {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--dim);
}

/* ── Live fight status banner ─────────────────────────────────────────────── */
.boxing-status {
    text-align: center;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 10px 0 14px;
    min-height: 1em;
    opacity: 0;
    transition: opacity 200ms ease;
}
.boxing-status.revealed { opacity: 1; }

.boxing-status.is-kd {
    color: var(--orange);
    animation: kd-flash 560ms ease;
}
.boxing-status.is-stop {
    color: var(--yellow);
    font-size: 15px;
    letter-spacing: 0.16em;
}
.boxing-status.is-decision {
    color: var(--secondary);
}

@keyframes kd-flash {
    0%   { background: rgba(212, 98, 26, 0.30); }
    100% { background: rgba(212, 98, 26, 0.00); }
}

/* ── Three-judge scorecard ────────────────────────────────────────────────── */
.scorecard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 4px 0 6px;
}

.scorecard-judge {
    border: 1px solid var(--border-hi);
    background: rgba(12, 12, 12, 0.45);
    display: flex;
    flex-direction: column;
}

.judge-head {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--label);
    padding: 7px 0 6px;
    border-bottom: 1px solid var(--border-hi);
}

.judge-fighters {
    display: flex;
    justify-content: space-between;
    padding: 5px 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--dim);
    border-bottom: 1px solid var(--border);
}

/* Per-round entries — fixed-height region so the card doesn't jump as it fills */
.judge-rounds {
    flex: 1;
    padding: 4px 0;
    min-height: 120px;
}

.judge-round {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 1px 12px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.55;
    color: var(--secondary);
    animation: jr-in 220ms ease;
}

@keyframes jr-in {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jr-label { color: var(--dim); font-size: 10px; letter-spacing: 0.04em; }
.jr-a, .jr-b {
    width: 16px;
    text-align: right;
    color: var(--secondary);
}
.jr-win  { color: var(--yellow); font-weight: 700; }
.jr-big  { color: var(--orange); }          /* the fighter who was dropped (8 / 7) */

.judge-total {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding: 8px 12px;
    border-top: 1px solid var(--border-hi);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
}
.judge-total-a, .judge-total-b { color: var(--white); min-width: 22px; text-align: right; }

/* ── Decisive-factor condition flag (boxing variant) ──────────────────────── */
.result-legality.is-boxing {
    color: var(--secondary);
    border-left: 2px solid var(--yellow);
    padding-left: 12px;
    font-style: italic;
    line-height: 1.55;
    white-space: pre-line;   /* renders the "◆ Venue · N rounds" header line */
}
/* The venue/ruleset header line (first line) reads as a non-italic gold label */
.result-legality.is-boxing::first-line {
    font-style: normal;
    color: var(--yellow);
    letter-spacing: 0.04em;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .scorecard { gap: 6px; }
    .judge-round { padding: 1px 7px; gap: 5px; font-size: 11px; }
    .judge-total { padding: 7px; gap: 9px; font-size: 14px; }
    .judge-rounds { min-height: 100px; }
    .judge-fighters { padding: 5px 7px; }
}
