@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/7cHpv4kjgoGqM7EPCw.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/7cHqv4kjgoGqM7E30-8c4A.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/7cHqv4kjgoGqM7E3t-4c4A.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/7cHqv4kjgoGqM7E3q-0c4A.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/HTxyL3I-JCGChYJ8VI-L6OO_au7B6xTrf3fWvA.ttf) format('truetype');
}
:root {
  color-scheme: dark;
  --base: #0c0a17;
  --panel: #151127;
  --raised: #201936;
  --text: #f8f3ff;
  --muted: #c0b6d3;
  --line: #3f335a;
  --accent: #ff438c;
  --electric: #80deff;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--text); font: 1rem/1.5 var(--body); }
[hidden] { display: none !important; }
a { color: inherit; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 4px; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font: italic 800 3rem/.9 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.frame { width: min(1190px, calc(100% - 48px)); margin-inline: auto; }
.mast { background: #100c20; border-bottom: 1px solid var(--line); }
.mast-inner, nav, footer { display: flex; align-items: center; }
.mast-inner { min-height: 74px; justify-content: space-between; gap: 1.25rem; }
.brand img { display: block; width: 208px; height: auto; }
nav { gap: clamp(.7rem, 2.8vw, 2rem); }
nav a { text-decoration: none; text-transform: uppercase; font-weight: 750; font-size: .85rem; padding-block: .7rem; }
.hero {
  background: linear-gradient(95deg,#0b0819fa 1%,#120b27e8 35%,#140d2533 72%),
              linear-gradient(0deg,#100b22,transparent 48%), url("hero-stage.jpg") center 42%/cover #19112d;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24;
  background: repeating-linear-gradient(125deg, transparent 0 37px, #ca76ff22 38px 39px, transparent 40px 88px);
}
.hero-content { isolation: isolate; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(1.25rem,3vw,3rem); padding-block: clamp(2.5rem,6vw,6rem); min-height: 565px; }
.hero #legend-title { font-size: clamp(3.15rem,6.25vw,6.2rem); margin: .18em 0 .2em; }
.hero #legend-title em { color: var(--accent); font-style: inherit; }
.hero-copy > p:not(.tag) { max-width: 38ch; font-size: 1.1rem; color: #ddd4ec; margin-bottom: 1.65rem; }
.tag { color: #ff81b1; font: 750 .78rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.tag span { display: inline-block; width: 13px; height: 8px; background: var(--accent); transform: skew(-27deg); margin-right: .5rem; vertical-align: 1px; }
.action, .podium-info button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .75rem 1.08rem; border: 1px solid transparent; background: var(--accent); color: #150b20;
  font-weight: 800; text-decoration: none; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}
.action:hover, .podium-info button:hover { color: #150b20; background: #ffa5c8; }
.action:focus-visible, .podium-info button:focus-visible { outline-offset: -4px; }
.champion { background: radial-gradient(ellipse at 20% 44%,#361344,transparent 58%), #120d24; border-block: 1px solid var(--line); }
.champion-inner { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: center; gap: clamp(1.5rem,7vw,7rem); padding-block: clamp(2.5rem,6vw,5rem); }
.champion figure { position: relative; padding: 6px; border: 1px solid #80518b; background: #19112c; }
.champion figure img { display: block; width: 100%; height: auto; }
.champion figcaption { padding: .35rem .35rem .1rem; }
.champion h2 { font-size: clamp(4rem,8vw,7rem); margin: .13em 0; }
.champion p { margin-bottom: .75rem; }
.secondary { margin-top: .45rem; }
.section-banner { padding-block: clamp(2.5rem,6vw,4.65rem); border-block: 1px solid var(--line); background-position: center; background-size: cover; }
.section-banner h2 { margin-top: .18em; font-size: clamp(3rem,7vw,6rem); }
.event-banner { background-image: linear-gradient(90deg,#120d25f5 6%,#18102eb3 52%,#1b0f3470), url("event-stage.jpg"); }
.section { padding-block: 1.55rem 3.65rem; }
.muted { color: var(--muted); }
.footnote { font-size: .85rem; margin-top: .8rem; color: var(--muted); }
.footnote a { text-underline-offset: .18em; }
.event-group { margin-block: 1.3rem; }
.event-group > h3 { margin-bottom: .7rem; }
.events { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: .8rem; }
.events article { padding: 1rem 1.05rem; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid #a951a8; }
.events article h4 { margin: .3rem 0 .2rem; font-size: 1.2rem; line-height: 1.2; }
.events article p { margin-bottom: .35rem; }
.events ol { padding-left: 1.35em; margin: .65rem 0 .2rem; }
.events .tag { font-size: .7rem; }
#live-events-panel { margin-top: 1.3rem; }
#live-events-panel summary { cursor: pointer; padding: .6rem 0; font-weight: 700; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.search { display: grid; gap: .25rem; color: var(--muted); font-size: .86rem; }
input { min-width: 0; width: min(260px,100%); border: 1px solid var(--line); padding: .55rem .7rem; color: var(--text); background: var(--panel); border-radius: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; background: var(--panel); }
th, td { padding: .48rem clamp(.48rem,2vw,1.1rem); border-bottom: 1px solid var(--line); }
th { color: #d7c7ee; background: var(--raised); text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; }
th:last-child, td:last-child { text-align: right; }
td:last-child { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #211831; }
.rank-one { background: linear-gradient(90deg,#321947,#1b1429 55%); }
.rank-one td:first-child { color: #ffdc8b; }
.rank-cell { width: 104px; font-weight: 750; color: var(--muted); }
.rank-label { display: inline-flex; align-items: center; gap: .25rem; }
.rank-badge { display: inline-grid; place-items: center; position: relative; width: 65px; height: 52px; isolation: isolate; }
.rank-badge img { width: 100%; height: 100%; object-fit: contain; }
.rank-badge::before { content: ""; position: absolute; z-index: -1; inset: -13% -16%; background: radial-gradient(ellipse,#b45eff9e,transparent 69%); opacity: .24; animation: badge-aura 5s ease-in-out infinite; }
@keyframes badge-aura { 50% { opacity: .83; } }
.player-button { display: inline-flex; align-items: center; gap: .65rem; text-align: left; background: transparent; border: 1px solid transparent; font-weight: 750; padding: .16rem .38rem .16rem .14rem; }
.player-button:hover, .player-button:focus-visible { color: var(--electric); border-color: #7599c6; background: #24324c; }
.player-avatar { display: inline-grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; overflow: hidden; border: 1px solid #695488; background: #281c3f; color: #e9def8; font-size: .68rem; font-weight: 850; }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#empty { margin-top: .9rem; }
dialog { width: min(720px,calc(100% - 30px)); max-height: calc(100dvh - 30px); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: clamp(1rem,3vw,1.9rem); }
dialog::backdrop { background: #070510d9; backdrop-filter: blur(4px); }
dialog[open] { animation: profile-enter .23s ease-out; }
@keyframes profile-enter { from { transform: translateY(8px) scale(.985); opacity: .6; } }
.close { float: right; background: none; border: 1px solid var(--line); font-size: 1.55rem; line-height: 1; width: 2rem; height: 2rem; }
.profile-intro { display: flex; align-items: center; gap: 1rem; padding-right: 2.2rem; }
.profile-intro h2 { font-size: clamp(2rem,6vw,4rem); margin: .14em 0; overflow-wrap: anywhere; }
.profile-avatar { width: clamp(4.2rem,17vw,8rem); height: auto; aspect-ratio: 1; font-size: 1.2rem; }
dialog h3 { margin: 1.2rem 0 .45rem; }
.profile-table { min-width: 330px; }
.profile-table th, .profile-table td { padding: .35rem .5rem; }
.profile-nav { display: flex; gap: 1rem; padding-top: .7rem; border-top: 1px solid var(--line); }
footer { gap: .7rem; padding-block: 1.15rem; border-top: 1px solid var(--line); font-size: .85rem; }
footer a { margin-left: auto; }
@media (hover:hover) and (pointer:fine) {
  .action, .player-button, .close, .podium-info button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23131b2a' stroke='%235bd6ff' stroke-width='2' d='M3 2l4 17 4-6 7-1z'/%3E%3C/svg%3E") 3 2,pointer;
  }
}
@media (max-width: 720px) {
  .frame { width: calc(100% - 30px); }
  .mast-inner { flex-wrap: wrap; gap: .1rem .8rem; padding-block: .65rem .25rem; }
  .brand img { width: 166px; }
  nav { flex-wrap: wrap; }
  nav a { font-size: .74rem; padding-block: .38rem; }
  .hero-content, .champion-inner { grid-template-columns: 1fr; }
  .hero-content { min-height: 0; }
  .champion-inner { gap: 1.35rem; }
  .champion figure { max-width: 480px; }
  .rank-cell { width: auto; }
  .rank-badge { width: 44px; height: 39px; }
  .ranking-section table { font-size: .88rem; }
  .ranking-section th { font-size: .67rem; }
  .player-button { gap: .36rem; }
  .player-avatar:not(.profile-avatar) { width: 1.75rem; height: 1.75rem; }
}
@media (max-width: 390px) {
  .section-head { align-items: flex-start; flex-direction: column; }
  .hero #legend-title { font-size: 3.3rem; }
  footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rank-badge::before, dialog[open] { animation: none; }
}


.profile-table td small { display: block; color: var(--muted); }
.credits-page { padding-block: 2.5rem; }
.credits-page h2 { margin-top: 2rem; font-size: 2.2rem; }
.credits-page ul { padding-left: 1.2rem; }
.credits-page li { margin-block: .25rem; }
.credits-list { columns: 2 300px; }
.credits-list li { break-inside: avoid; }

.event-banner { background-position: center 18%; }
@media (max-width: 580px) {
  .ranking-section table { table-layout: fixed; }
  .ranking-section :is(th,td) { padding-inline: .38rem; }
  .ranking-section th:first-child { width: 21%; }
  .ranking-section th:nth-child(3) { width: 17%; }
  .ranking-section th:last-child { width: 27%; }
  .ranking-section td:last-child { font-size: .81rem; }
  .player-button { max-width: 100%; }
  .player-button span:last-child { overflow-wrap: anywhere; }
  .rank-badge { width: clamp(29px,10vw,41px); }
}


.mast .brand img { width: 178px; height: auto; }
.mast nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 720px) {
  .mast .brand img { width: 142px; }
  .mast-inner { padding-block: .5rem .28rem; }
}

@media (max-width: 440px) {
  .mast nav { column-gap: .42rem; row-gap: 0; }
  .mast nav a { font-size: .71rem; }
}

#rankings {
  display: grid;
  isolation: isolate;
  background: var(--base);
}
#rankings::before, .rankings-content { grid-area: 1 / 1; }
.rankings-content { min-width: 0; }
#rankings::before {
  content: "";
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100svh;
  z-index: -1;
  background: linear-gradient(115deg, #0c0a17dc 2%, #100c21a8 56%, #100c217d),
              url("ranking-stage.jpg") 57% center / cover;
}
.rankings-banner { background: #100c2140; }
.ranking-section table { background: #151127c7; }
.ranking-section th { background: #201936ed; }
.ranking-section tbody tr:hover { background: #302043eb; }
.ranking-section .rank-one { background: linear-gradient(90deg, #3b1d56e8, #211630ed 64%); }
.ranking-section > .footnote, .ranking-section .section-head > p {
  background: #100c21e8;
  width: fit-content;
  padding: .35rem .55rem;
}


.hero-podium {
  display: grid;
  grid-template-columns: 1.16fr 1fr 1fr;
  align-items: end;
  gap: clamp(.45rem, 1.2vw, .9rem);
}
.podium-card {
  --metal: #f1c566;
  --portrait-height: clamp(8rem, 15vw, 13.4rem);
  min-width: 0;
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  border-top: 2px solid var(--metal);
  background: linear-gradient(165deg, #271632, #110d22 62%);
}
.podium-place-2 { --metal: #d6e4f8; --portrait-height: clamp(7rem, 13.3vw, 11.5rem); }
.podium-place-3 { --metal: #efab83; --portrait-height: clamp(6.5rem, 11.7vw, 10rem); }
.podium-portrait {
  position: relative;
  height: var(--portrait-height);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #171225;
  color: var(--metal);
  font-size: 2.2rem;
  font-weight: 800;
}
.podium-portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.podium-info { padding: .55rem clamp(.6rem, 1.1vw, 1rem) .95rem; }
.podium-rank { color: var(--metal); text-transform: uppercase; letter-spacing: .09em; font-size: .69rem; font-weight: 800; }
.podium-info h2 { font-size: clamp(1.55rem, 2.45vw, 2.75rem); margin: .15em 0 .25em; }
.podium-points { font-size: .85rem; color: var(--muted); }
.podium-info button { margin-top: .65rem; padding: .45rem .56rem; font-size: .79rem; gap: .2rem; }
.podium-credit { display: block; width: fit-content; color: var(--muted); margin-top: .42rem; font-size: .72rem; }
@media (max-width: 850px) {
  .hero-content { grid-template-columns: 1fr; min-height: 0; }
  .hero-podium { width: min(100%, 620px); }
}
@media (max-width: 480px) {
  .hero-podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium-place-1 { grid-column: 1 / -1; --portrait-height: clamp(9rem, 52vw, 13rem); }
  .podium-place-2, .podium-place-3 { --portrait-height: clamp(7rem, 36vw, 11rem); }
  .podium-info h2 { font-size: 1.95rem; }
}


.podium-info h2 { overflow-wrap: anywhere; }


.ranking-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .85rem;
  margin-block: .85rem;
}
.ranking-controls button, .ranking-controls select, #ranking-range {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: .45rem .65rem;
  font: inherit;
}
.ranking-controls button:disabled { color: var(--muted); cursor: default; }
.ranking-controls button:not(:disabled):hover { border-color: var(--accent); }
#ranking-range { color: var(--muted); font-size: .86rem; }
#ranking-range:empty { display: none; }
#ranking-pagination { gap: .45rem; font-size: .85rem; }
#ranking-pagination label { display: inline-flex; align-items: center; gap: .35rem; }


.legends-hero {
  display: flex;
  align-items: end;
  min-height: clamp(18rem, 33vw, 29rem);
  border-bottom: 2px solid #f75282;
  background:
    linear-gradient(90deg, #100c20 3%, #100c20ed 27%, #100c201a 74%),
    linear-gradient(0deg, #100c20 1%, transparent 62%),
    url("hero-stage.jpg") right 34% / cover no-repeat;
}
.legends-intro { padding: 1.5rem clamp(.9rem, 4vw, 3rem); }
.legends-section h1 {
  margin: .4rem 0 .8rem;
  font-size: clamp(2.65rem, 7vw, 6rem);
  line-height: .92;
}
.legends-section h1 em { display: block; color: #ff7299; }
.legends-leader { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.legends-leader strong { font-size: clamp(1.5rem, 3vw, 2.5rem); color: #fff2cc; }
.legends-intro .muted { color: #eee3f7; max-width: 42ch; margin-top: .4rem; }
.legends-table { margin-top: .7rem; }
.legends-table table { background: #151022; }
.legends-table th { background: #21152c; }
.legends-table td { padding-block: .55rem; }
.legends-table td:nth-child(2) { width: 63%; font-weight: 700; }
.legends-table td:first-child { color: #ffa1c1; font-weight: 800; }
.legends-table tr:first-child td { background: #2a1930; color: #fff2cc; }
.legend-health {
  --bar-color: #f04580;
  display: block;
  position: relative;
  height: .6rem;
  margin: .2rem .25rem .1rem;
  overflow: hidden;
  border: 1px solid #aa7093;
  background: #32192e;
  transform: skewX(-12deg);
}
.legend-health::before {
  content: "";
  display: block;
  width: var(--fill);
  height: 100%;
  background:
    repeating-linear-gradient(115deg, transparent 0 1.4rem, #34113055 1.4rem 1.5rem),
    linear-gradient(0deg, var(--bar-color), #fff1e6);
}
.legends-table tr:first-child .legend-health { --bar-color: #ffad28; border-color: #ffc664; }
@media (max-width: 540px) {
  .legends-hero {
    min-height: 23rem;
    background:
      linear-gradient(0deg, #100c20 6%, #100c20e8 38%, transparent 80%),
      url("hero-stage.jpg") 54% top / auto 77% no-repeat;
  }
  .legends-table th, .legends-table td { padding-inline: .35rem; }
  .legends-table td:nth-child(2) { width: 46%; }
}
.legends-archive { margin-top: 1.2rem; }
.legends-archive summary { cursor: pointer; font-weight: 700; }
.legends-archive .search { justify-content: flex-start; }

.legends-hero {
  background:
    linear-gradient(0deg, #100c20 3%, transparent 70%),
    url("https://i.kym-cdn.com/photos/images/original/002/693/652/8b3.png") left top / auto 106% no-repeat,
    url("https://us-east-1-bandai.graphassets.com/AXzioIclSWilEjFtsMJPwz/CSlAd5qETdKPCZ06jH88") right top / auto 145% no-repeat,
    radial-gradient(ellipse at center, #48214c, #131022 72%);
}
.legends-intro { text-shadow: 0 2px 10px #100c20, 0 1px 3px #100c20; }
.legend-name { display: inline-block; font-size: clamp(1rem, 3vw, 1.6rem); }
.legend-trophy {
  display: block;
  width: min(26rem, 100%);
  height: auto;
  margin: 0 0 .45rem;
  mask-image: radial-gradient(ellipse at 50% 56%, black 57%, #000c 73%, transparent 100%);
}
.legend-crown {
  display: inline-block;
  width: 1.35rem;
  height: 1rem;
  margin-right: .5rem;
  background: linear-gradient(0deg, #7b829d, #f2f5ff 75%);
  clip-path: polygon(0 14%, 28% 45%, 50% 0, 72% 45%, 100% 14%, 88% 87%, 12% 87%);
}
.legends-table tr:nth-child(3) .legend-crown { background: linear-gradient(0deg, #8f4b2d, #ffcb9f 75%); }
.legends-table tr:first-child .legend-name,
.legends-table tr:first-child td:first-child {
  font: italic 800 clamp(1.9rem, 5vw, 4.3rem) / 1 var(--display);
}
.legends-table tr:first-child .legend-health { height: clamp(.9rem, 2vw, 1.5rem); margin-block: .65rem .5rem; }
.legends-table tr:first-child td { padding-block: .8rem; }
@media (max-width: 540px) {
  .legends-hero { background-size: auto, 73% auto, 45% auto, auto; }
  .legends-table tr:first-child .legend-name,
  .legends-table tr:first-child td:first-child { font-size: clamp(1.35rem, 7vw, 2rem); }
}

.legend-rank {
  display: flex;
  align-items: center;
  gap: clamp(.3rem, 1.5vw, 1rem);
}
.legend-portrait {
  display: block;
  width: clamp(2.25rem, 6vw, 4.75rem);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #84546c;
  border-radius: .25rem;
}
.legends-table tr:first-child .legend-portrait {
  width: clamp(3.1rem, 9vw, 7rem);
  border-color: #ff6584;
}
.legend-story {
  display: block;
  width: fit-content;
  color: #ff9eb7;
  margin-block: .2rem .35rem;
}
.story-profile a, .story-links a { color: #ff9eb7; }
@media (max-width: 540px) {
  .legend-rank { flex-direction: column; }
  .legends-table th { letter-spacing: 0; }
}
.legends-table tr:first-child .legend-health { --bar-color: #f82654; border-color: #ff6f88; }
.story-page { max-width: 65rem; }
.story-page h1 { font-size: clamp(2.3rem, 7vw, 5rem); line-height: 1; }
.story-links { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; margin-block: 1rem 2rem; }
.story-profile { padding-block: 1.4rem 2rem; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.story-profile h2 { margin: .4rem 0 .6rem; }
.story-profile h3 { margin-bottom: .8rem; color: #ffb1c6; }
.story-profile p:not(.tag) { max-width: 73ch; margin-block: .85rem; line-height: 1.65; }

.story-portrait {
  float: right;
  width: min(12rem, 35%);
  margin: .15rem 0 .6rem 1.1rem;
}
.story-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #75405e;
  border-radius: .25rem;
}
.story-portrait figcaption { color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.story-profile { display: flow-root; }
