.back-link { font-size: 12px; color: var(--muted); }
.league-intro { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding: 38px 0 20px; }
.league-intro h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -2px; margin: 12px 0; }
.league-intro h1 span { color: var(--accent); }
.league-intro > div > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.8; }
.file-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: end; padding-bottom: 10px; }
.file-actions button { padding: 10px 13px; font-size: 11px; }
.file-actions button[aria-pressed="true"] { color: var(--accent); border-color: #89a957; background: #2b3823; }
.evolution-summary { border-left: 2px solid var(--accent); background: #1c291c; padding: 12px 15px; margin: 0 0 22px; color: #c6d8b0; font-size: 12px; line-height: 1.9; }
#notice { text-align: left; margin: 0 0 16px; min-height: 0; }
#notice:empty { display: none; }
.league-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; padding-bottom: 35px; }
.replay-stage { min-width: 0; }
.replay-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 22px; }
.replay-heading h2 { font-size: 20px; letter-spacing: -.7px; margin: 10px 0 0; }
.replay-heading .eyebrow { margin: 0; font-size: 10px; }
.verified { border: 1px solid #4c6239; border-radius: 20px; padding: 6px 9px; color: #c4df9f; font-size: 10px; white-space: nowrap; }
.replay-stage .battlefield { grid-template-columns: minmax(0, 1fr) 85px minmax(0, 1fr); gap: 12px; }
.replay-stage .player-card { padding: 18px 16px; }
.replay-stage .card-heading { font-size: 13px; gap: 8px; flex-wrap: wrap; }
.replay-stage .hand { height: 130px; font-size: 78px; }
.replay-stage h3 { margin: 0 0 24px; font-size: 14px; }
.replay-stage .score { flex-direction: column; gap: 3px; align-items: center; }
.replay-stage .score strong { font-size: 30px; }
.replay-stage .mine[data-outcome="lose"] .score strong { color: #efb8a8; }
.replay-stage .mine[data-outcome="tie"] .score strong { color: #d1dbd0; }
#current-outcome { color: var(--muted); font-size: 11px; text-align: center; line-height: 1.8; }
.replay-stage #timer { font-size: 35px; }
.replay-stage .match-center .eyebrow { font-size: 9px; letter-spacing: 1px; }
.replay-stage .score-balance { margin-bottom: 26px; }
.playback-box { padding: 18px; background: #19221b; border: 1px solid var(--border); border-radius: 12px; }
.playback-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 15px; }
.playback-status strong { color: var(--accent); font-size: 12px; }
#elapsed { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.timeline-strip { display: flex; height: 9px; overflow: hidden; border-radius: 4px; background: #627067; }
.timeline-strip > span { flex-shrink: 0; background: #69776c; }
.timeline-strip > span[data-winner="0"] { background: #b9d86d; }
.timeline-strip > span[data-winner="1"] { background: #cc9685; }
#seek { width: 100%; margin: 4px 0 0; display: block; accent-color: var(--accent); cursor: pointer; }
.timeline-legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 9px; margin: 5px 0 18px; }
.timeline-legend span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #b9d86d; }
.timeline-legend span:nth-child(2)::before { background: #cc9685; }
.timeline-legend span:nth-child(3)::before { background: #69776c; }
.playback-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.playback-controls button { padding: 10px 13px; font-size: 12px; }
#play { min-width: 112px; }
.event-controls { display: flex; gap: 5px; }
.speed-label { margin-left: auto; display: flex; gap: 8px; align-items: center; }
select { background: #111a13; color: #edf1ec; border: 1px solid var(--border); border-radius: 6px; padding: 8px; font: inherit; }
select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.match-navigation { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.match-navigation button { border: none; background: transparent; padding: 5px 0; font-size: 11px; color: var(--muted); }
.match-navigation label { display: flex; align-items: center; white-space: nowrap; font-size: 11px; }
input[type="checkbox"] { accent-color: var(--accent); }
.last-move { margin: 18px 0; display: flex; gap: 15px; align-items: center; font-size: 12px; color: #bbc8b6; min-height: 30px; line-height: 1.8; }
.last-move .eyebrow { white-space: nowrap; font-size: 9px; }
.replay-note { font-size: 11px; line-height: 1.9; color: var(--muted); margin-bottom: 0; }
.standings-panel, .matches-panel { border: 1px solid var(--border); background: #19221b; border-radius: 12px; padding: 18px; }
.standings-panel h2, .matches-panel h2 { font-size: 16px; margin: 9px 0 18px; letter-spacing: -.5px; }
.standings-panel .eyebrow { margin: 0; font-size: 9px; }
.standings-panel table { width: 100%; border-collapse: collapse; font-size: 12px; }
.standings-panel th { font-size: 10px; font-weight: 400; color: var(--muted); text-align: right; padding: 0 0 9px; }
.standings-panel th:first-child { text-align: left; }
.standings-panel td { border-top: 1px solid var(--border); padding: 13px 0; text-align: right; font-variant-numeric: tabular-nums; }
.standings-panel td:first-child { text-align: left; }
.rank { color: var(--accent); font-size: 11px; margin-right: 10px; }
.standing-record { display: block; padding-left: 22px; margin-top: 5px; font-size: 10px; color: var(--muted); }
.standing-rule { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 3px 0 0; }
.matches-panel { margin-top: 15px; }
.list-heading { display: flex; justify-content: space-between; align-items: baseline; }
.list-heading h2 { margin: 0 0 14px; }
#match-count { color: var(--muted); font-size: 10px; }
.match-list { display: grid; gap: 7px; max-height: 440px; overflow-y: auto; }
.match-list button { width: 100%; white-space: normal; text-align: left; padding: 12px; background: #151e17; }
.match-list button[aria-current="true"] { border-color: var(--accent); background: #2b3823; }
.match-list strong { display: block; font-size: 11px; font-weight: 600; }
.match-list small { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; font-weight: 400; line-height: 1.7; }
.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; }
@media (max-width: 1050px) { .league-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 20px; } .replay-stage .player-card { padding: 15px 10px; } .replay-stage .hand { height: 115px; font-size: 65px; } .replay-stage .battlefield { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 8px; } }
@media (max-width: 800px) { .league-layout { grid-template-columns: 1fr; } .league-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } .matches-panel { margin-top: 0; } .league-intro { align-items: start; flex-direction: column; gap: 8px; } .file-actions { justify-content: start; } .replay-heading h2 { font-size: 18px; } }
@media (max-width: 500px) { .league-sidebar { grid-template-columns: 1fr; } .replay-stage .battlefield { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); gap: 6px; } .replay-stage .hand { font-size: 51px; height: 90px; } .replay-stage .card-heading { flex-direction: column; gap: 8px; font-size: 12px; } .replay-stage .score strong { font-size: 25px; } .replay-stage #timer { font-size: 27px; } .verified { font-size: 9px; padding: 5px 7px; } .playback-box { padding: 12px; } .playback-controls { gap: 7px; } #play { min-width: 95px; } .playback-controls button { padding: 9px 10px; } .speed-label { margin-left: 0; } .replay-heading { flex-wrap: wrap; } }
