.championship-promos {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: min(1240px, calc(100% - 2rem));
  margin: 1.2rem auto 3rem;
}
.championship-promos article {
  min-height: 250px;
  padding: clamp(1rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: white;
  background: linear-gradient(90deg, #090912e8, #09091221), var(--promo) center / cover;
  border: 8px solid white;
}
.championship-promos h2 { max-width: 22ch; text-shadow: var(--outlined); }
.championship-promos p { margin: 1rem 0; }
.championship-video, .championship-standings, .championship-compete { text-align: center; padding: clamp(2.5rem, 6vw, 5rem) 1rem; }
.championship-video { background: #242424 url("./event-art/leaderboard/stats-paper.jpg") center / 470px; background-blend-mode: multiply; color: white; }
.championship-video a { position: relative; display: block; width: min(800px, 100%); margin: 1.5rem auto 0; }
.championship-video img { display: block; width: 100%; border: 8px solid white; }
.championship-video .game-button { position: absolute; inset: auto auto 12% 50%; transform: translateX(-50%); }
.championship-standings { background: url("./event-art/leaderboard/graffiti.png") center / max(1300px, 100%) auto no-repeat; }
.championship-standings > div { max-width: 700px; margin: 1.1rem auto 1.6rem; text-align: left; }
.championship-standings > p { text-transform: uppercase; }
.championship-compete { background: #c5eb0e url("./event-paper.jpg"); background-blend-mode: multiply; }
.championship-compete img { display: block; width: min(1040px, 100%); margin: .65rem auto; }
body:has(#leader-dialog[open]) { overflow: hidden; }
#leader-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 55px 0 0;
  overflow: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #0c0c0c;
  scrollbar-width: thin;
}
#leader-dialog::backdrop { background: #000c; }
.leader-paper {
  position: relative;
  min-height: calc(100dvh - 55px);
  padding: 37px 1rem 3rem;
  background:
    url("./event-art/leaderboard/graffiti.png") center 188px / max(1070px, 100%) auto no-repeat,
    url("./event-art/paper-frame.webp") center top / 400px;
}
.leader-paper::before {
  position: absolute;
  inset: -16px 0 auto;
  height: 35px;
  background: url("./event-art/leaderboard/edge.png") center top / auto 53px repeat-x;
  content: "";
  pointer-events: none;
}
.leader-brand { display: block; width: 172px; height: 105px; object-fit: contain; margin: 0 auto 46px; }
.leader-close, .leader-back { position: fixed; top: 32px; z-index: 3; font-size: 2rem; text-decoration: none; }
.leader-close { right: 10px; }
.leader-back { left: 10px; }
.leader-board { width: min(700px, 100%); margin-inline: auto; }
.leader-select {
  appearance: none;
  width: 100%;
  min-height: 36px;
  padding: 5px 2.5rem 5px 14px;
  border: 2px solid #000;
  border-radius: 0;
  background: #292929;
  color: white;
  box-shadow: inset 0 2px #fff4, 0 2px 5px #0004;
  font: 800 1rem/1 var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.leader-board { position: relative; }
.leader-board::before { content: ""; position: absolute; right: 13px; top: 15px; border: 7px solid transparent; border-bottom: 0; border-top-color: white; pointer-events: none; }
.leader-meta { display: flex; justify-content: space-between; gap: .5rem; margin: 16px 0 17px; padding-inline: 15px; font-weight: 750; text-transform: uppercase; }
.leader-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.leader-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 4px clamp(8px, 2vw, 24px) 4px 12px;
  border: 2px solid #111;
  background: linear-gradient(#12a9e8, #12a9e8) left center / 8px calc(100% - 8px) no-repeat, #ffffff30;
  text-transform: uppercase;
  font-weight: 850;
}
a.leader-row:hover { background-color: #fff9; }
.leader-team, .leader-points { display: flex; align-items: center; gap: .65rem; }
.leader-team { min-width: 0; overflow-wrap: anywhere; }
.leader-team-icon { width: 23px; height: 23px; flex: none; object-fit: contain; }
.leader-trophy { width: 42px; height: 34px; object-fit: contain; }
.leader-note { margin: 29px 0; font-size: .78rem; line-height: 1.12; text-transform: uppercase; }
.team-profile { width: min(1320px, 100%); margin-inline: auto; }
.team-overview { display: grid; grid-template-columns: minmax(0, 445px) minmax(0, 490px); justify-content: center; align-items: start; gap: 24px; }
.team-plate {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  padding: 0 10% 9%;
  color: #383838;
  text-align: center;
}
.team-plate::before, .team-plate::after { content: ""; position: absolute; pointer-events: none; }
.team-plate::before { inset: -9%; z-index: -2; background: #13aef0; mask: url("./event-art/leaderboard/paint.png") center / contain no-repeat; }
.team-plate::after { inset: 0; z-index: -1; background: url("./event-art/leaderboard/plate.webp") center / contain no-repeat; }
.team-plate-logo { position: absolute; top: 31%; left: 31%; width: 38%; height: 40%; object-fit: contain; }
.team-plate h1 { font-size: clamp(1.25rem, 4vw, 3rem); line-height: 1; font-weight: 900; text-shadow: 1px 1px 1px #fff9; }
.team-plate-region { font-weight: 800; text-transform: uppercase; }
.team-stats { margin-top: 40px; border: 2px solid #111; text-transform: uppercase; font-weight: 850; }
.team-stats h2 { padding: .68rem .5rem; font-size: 1rem; letter-spacing: 0; text-align: center; color: white; background: #323232 url("./event-art/leaderboard/stats-paper.jpg") center / cover; background-blend-mode: multiply; }
.team-stats dl { margin: 0; }
.team-stat, .team-extras { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 2px solid #111; }
.team-stat { min-height: 42px; padding: .4rem 12px; }
.team-stat dd { margin: 0; display: flex; align-items: center; gap: .55rem; text-align: right; }
.team-stat .leader-trophy { width: 31px; height: 25px; }
.team-extras { min-height: 63px; }
.team-extras > * { display: flex; flex: 1 1 50%; min-height: 63px; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: .35rem .5rem; }
.team-extras > :nth-child(2) { border-left: 2px solid #111; }
.team-video-link::before { content: "▶"; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid #000; border-radius: 50%; color: white; background: #292929; box-shadow: 0 3px 3px #0006; }
.team-sponsor img { max-width: 65px; max-height: 40px; object-fit: contain; }
.team-roster { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 240px),1fr)); gap: 14px; margin-top: 55px; }
.team-player { padding: 12px; border: 8px solid #fff; }
.team-player h2 { display: flex; align-items: center; gap: .55rem; font-size: clamp(1.1rem, 3vw, 2rem); }
.player-flag { width: 34px; }
.player-photo { width: 100%; height: 265px; object-fit: contain; }
.team-matches { max-width: 960px; margin: 2rem auto; }
.team-match { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: .65rem; border-bottom: 1px solid #222; padding: .65rem .45rem; }
.team-match span { display: flex; align-items: center; gap: .45rem; overflow-wrap: anywhere; }
.team-match span:nth-of-type(2) { justify-content: end; text-align: right; }
.team-match time { font-size: .84rem; }
@media (max-width: 760px) {
  .leader-paper { background-position: center 190px, center top; }
  .leader-brand { height: 83px; margin-bottom: 25px; }
  .leader-meta, .leader-row { font-size: .875rem; }
  .leader-trophy { width: 28px; }
  .team-overview { grid-template-columns: minmax(0, 520px); }
  .team-plate { width: min(350px, 87%); margin-inline: auto; }
  .team-stats { margin-top: 0; font-size: .875rem; }
  .team-roster { margin-top: 25px; }
  .team-match { grid-template-columns: 1fr auto 1fr; font-size: .84rem; }
  .team-match time { grid-column: 1 / -1; text-align: center; }
}
.leader-more { display: flex; margin: 1rem auto 0; }
.championship-prediction, .championship-signin { padding: clamp(2rem,6vw,4.5rem) 1rem; text-align: center; }
.championship-prediction { background: #39244c url("./event-art/leaderboard/prediction-stickers.png") center / cover; color: white; }
.prediction-match { display: flex; justify-content: center; align-items: center; gap: .7rem; margin: 1rem auto; }
.prediction-match img { width: min(31%, 213px); object-fit: contain; }
.prediction-match img:nth-child(2) { width: min(12%,70px); }
.championship-signin { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; background: #292929 url("./event-art/leaderboard/stats-paper.jpg") center / 400px; background-blend-mode: multiply; color: white; }
.championship-signin img { width: min(300px,80%); }
.championship-signin h2 { margin-bottom: 1rem; }

.tournament-links, .tournament-leader-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.tournament-links { padding-inline: 1rem; }
.tournament-leader-tabs { justify-content: flex-start; margin: 1rem 0; }
.leader-empty { border: 2px dashed #383838; padding: 1rem; }
.leader-rank { flex: none; font-weight: 900; }
.leader-points { text-align: right; }
.team-plate-initial { position: absolute; inset: 35% 0 auto; font: clamp(3rem,9vw,7rem)/1 var(--heavy); color: #1c2345; text-shadow: 2px 2px #fff; }
.championship-compete ol { max-width: 680px; margin: 1rem auto 1.5rem; text-align: left; line-height: 1.6; }

.leader-player-identity { min-width: 0; display: flex; align-items: center; gap: .6rem; }
.leader-player-labels { display: grid; gap: .15rem; }
.leader-player-account { color: #464646; font-size: .76rem; text-transform: none; }
.leader-player-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 2px solid #111;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--scid-avatar-start, #273d80), var(--scid-avatar-end, #5a6ab1));
  color: white;
  text-shadow: -1px -1px #000, 1px 1px #000;
  font-weight: 900;
}

.leader-player-avatar { overflow: hidden; }
.leader-player-portrait { display: block; width: 100%; height: 100%; object-fit: contain; }
