@font-face {
  font-family: 'Archivo Black';
  src: url('/archivo-black.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101119;
  --panel: #181b2a;
  --panel-2: #232636;
  --ink: #f5f6fc;
  --muted: #a8adbf;
  --accent: #d6fb84;
  --line: #ffffff17;
  --green: #d6fb84;
  --red: #ffa5ab;
  --sans: Inter, 'Segoe UI', system-ui, sans-serif;
  --display: 'Archivo Black', 'Arial Black', 'Segoe UI Black', var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }
.shell { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.subtle { color: var(--muted); }
.logo { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .99rem; font-weight: 800; letter-spacing: -.035em; }
.mark { position: relative; display: inline-block; flex: none; width: 21px; height: 20px; color: var(--accent); }
.mark::before, .mark::after { content: ''; position: absolute; bottom: 3px; width: 5px; height: 13px; background: currentColor; transform: skew(-28deg); }
.mark::before { left: 3px; }
.mark::after { left: 12px; height: 17px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 13px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 700;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.button.primary { color: #192110; background: var(--accent); }
.button.primary:hover { background: #e4ffa8; }
.button.secondary { color: var(--ink); background: #ffffff14; }
.button.secondary:hover { background: #ffffff23; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .46; }

.tournament { background: #101119 radial-gradient(ellipse at 80% 32%, #1c1e2c 0, #101119 57%) no-repeat; }
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--bg); }
.skip-link:not(:focus) { clip-path: inset(50%); pointer-events: none; }
.top { position: sticky; z-index: 3; top: 0; background: #11121bdf; backdrop-filter: blur(16px); }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 65px; }
.bar .logo { justify-self: start; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); font-size: .9rem; font-weight: 600; }
.bar nav a, .footer-links a { color: #c7cbd8; transition: color .18s ease; }
.bar nav a:hover, .footer-links a:hover { color: var(--accent); }
.top-status { display: inline-flex; align-items: center; justify-self: end; gap: 7px; color: #b7bacb; white-space: nowrap; font-size: .82rem; font-weight: 600; }
.top-status i, .chip::before { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.top-status.live { color: var(--accent); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: clamp(430px, 42vw, 540px);
  gap: 30px;
  margin-top: 19px;
  padding: clamp(34px, 5.25vw, 73px) clamp(27px, 5.15vw, 72px) clamp(40px, 4.8vw, 67px);
  overflow: hidden;
  border-radius: 25px;
  background: #26252c;
  box-shadow: 0 24px 55px #0809106e;
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0d0e16f2 0%, #10111cbd 34%, #15162236 69%, #14152216), linear-gradient(0deg, #12131bdd, transparent 48%); }
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/arena.webp') 58% 55% / cover no-repeat;
  animation: arena-enter .9s ease-out both;
}
.hero-copy { position: relative; align-self: center; animation: arrive .52s cubic-bezier(.2,.8,.2,1) both; }
.event-type { display: flex; align-items: center; gap: 10px; color: #ebeaf1; font-size: .94rem; font-weight: 650; }
.format-label { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; color: #dfdfec; background: #b5bbec19; white-space: nowrap; font-size: .77rem; font-weight: 650; line-height: 1.4; }
.hero h1 { display: flex; gap: .11em; margin: 12px 0 16px; color: #fff; font: 400 clamp(3.9rem, 8.5vw, 8.2rem)/.91 var(--display); letter-spacing: -.095em; white-space: nowrap; }
.hero h1 span { color: var(--accent); }
.date { color: #f0f0f6; font-size: clamp(1rem, 2.2vw, 1.26rem); font-weight: 650; letter-spacing: -.025em; }
.hero-note { margin-top: 4px; color: #c2c4d3; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero .button.secondary { background: #222430b5; backdrop-filter: blur(10px); box-shadow: inset 0 1px #ffffff16; }
.hero .button.secondary:hover { background: #323541df; }
.hero-meta { display: flex; align-items: center; gap: 16px; justify-self: end; padding: 11px 14px; color: #d8d9e6; border-radius: 10px; background: #1e202bb8; backdrop-filter: blur(13px); box-shadow: inset 0 1px #ffffff19; white-space: nowrap; font-size: .81rem; }
.hero-meta b { margin-right: 2px; color: #fff; font-weight: 750; }

.featured {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.65fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 92px;
  margin-top: 17px;
  padding: 17px 22px;
  border-radius: 17px;
  background: #1d2030b3;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px #ffffff11, 0 16px 32px #07080e27;
  animation: arrive .5s .09s both;
}
.broadcast-title { display: flex; align-items: center; gap: 11px; }
.broadcast-title h2 { font-size: 1.09rem; font-weight: 700; letter-spacing: -.02em; }
.broadcast-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: #c4c1ff; background: #aaa3f920; }
.broadcast-icon svg { width: 24px; height: 24px; }
.featured.has-match .broadcast-icon { color: var(--accent); background: #d6fb8419; }
#featured-info { color: #c7cad9; font-size: .91rem; }
#featured-info .subtle { margin-top: 3px; font-size: .79rem; }
.broadcast-match { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; color: var(--ink); }
.broadcast-match strong { font-weight: 700; }
.broadcast-match > span { color: var(--muted); font-size: .81rem; }
.featured .button { min-height: 39px; padding: 8px 12px; }
.notice { margin-top: 18px; padding: 11px 14px; border-radius: 9px; color: #f1d4b4; background: #7b523034; font-size: .87rem; }

.tournament-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: start; gap: clamp(24px, 3.2vw, 44px); margin-top: clamp(35px, 5vw, 68px); }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.section-title h2 { color: var(--ink); font-size: clamp(1.53rem, 2.7vw, 2.1rem); line-height: 1.13; font-weight: 740; letter-spacing: -.045em; }
.section-title p { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.table-wrap, .round, .empty, .match { border-radius: 13px; background: #1a1d2a; box-shadow: inset 0 1px #ffffff0d, 0 10px 26px #07080f2b; }
.table-wrap { overflow: auto; }
.tournament table { width: 100%; border-collapse: collapse; text-align: left; font-size: .89rem; }
.tournament thead { background: #ffffff07; color: var(--muted); }
.tournament th, .tournament td { padding: 10px 14px; }
.tournament thead th { color: #bfc3d4; font-size: .77rem; font-weight: 650; white-space: nowrap; }
.tournament tbody th { font-weight: 600; }
.tournament tbody tr + tr > * { border-top: 1px solid #ffffff0d; }
.tournament tbody tr { transition: background-color .15s ease; }
.tournament tbody tr:hover { background: #ffffff05; }
.tournament td:nth-child(2), .tournament td:nth-child(3), .tournament thead th:nth-child(2), .tournament thead th:nth-child(3) { text-align: center; }
.tournament td:nth-child(2), .tournament td:nth-child(3) { width: 10%; color: #ebecf5; font-weight: 650; font-variant-numeric: tabular-nums; }
.tournament td:last-child { width: 22%; }
.team { display: inline-flex; align-items: center; min-width: 0; gap: 8px; }
.badge { display: inline-grid; place-items: center; flex: none; width: 31px; height: 30px; border-radius: 7px; background: #a5ace51a; color: #cbd1fb; font-size: .8rem; font-weight: 750; }
.badge[data-team='t1'] { color: #ffc0a9; background: #ff9b7d1a; }
.badge[data-team='t2'] { color: #b7e9fc; background: #92d9f61a; }
.badge[data-team='t3'] { color: #d4c3ff; background: #c5afff1a; }
.badge[data-team='t4'] { color: #ffdaa5; background: #ffcf811a; }
.badge[data-team='t5'] { color: #bfd0ff; background: #a9c2ff1a; }
.badge[data-team='t6'] { color: #c3efd2; background: #ace2aa1a; }
.badge[data-team='t7'] { color: #fbc8e7; background: #f5a9c21a; }
.badge[data-team='t8'] { color: #e8f0bc; background: #e0e98d1a; }
.players { line-height: 1.25; overflow-wrap: anywhere; }
.chip { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip::before { content: ''; width: 5px; height: 5px; opacity: .66; }
.chip.pass, .chip.live { color: var(--accent); }
.chip.out { color: #f1a8ad; }
.chip.live::before { animation: live-dot 2.4s ease-out infinite; }

.empty { padding: 25px 21px; }
.empty h3 { font-size: 1rem; font-weight: 650; }
.empty p { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.round + .round { margin-top: 9px; }
.round summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 14px; border-radius: inherit; cursor: pointer; list-style: none; }
.round summary::-webkit-details-marker { display: none; }
.round summary:hover { background: #ffffff06; }
.qualifier-rules { margin-top: 12px; }
.qualifier-rules summary { justify-content: space-between; }
.qualifier-rules ol { display: grid; gap: 8px; margin: 0; padding: 0 16px 16px 34px; color: var(--muted); font-size: .85rem; }
.round-name { font-weight: 700; }
.round-progress { margin-left: auto; color: var(--muted); font-size: .78rem; }
.chevron { flex: none; width: 8px; height: 8px; border-right: 1px solid #b4bad0; border-bottom: 1px solid #b4bad0; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.round[open] .chevron { transform: translateY(2px) rotate(225deg); }
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 8px 8px; }
.round[open] .match-grid { animation: arrive .25s ease-out both; }
.match { min-width: 0; padding: 10px 12px; }
.round .match { background: #272a39; box-shadow: none; border-radius: 8px; }
.match.featured-match { background: #30372c; }
.match-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted); font-size: .74rem; }
.round .match-meta { justify-content: flex-end; }
.match-day { margin-right: auto; }
.match-name { color: #e2e4ee; font-size: .9rem; font-weight: 700; }
.match-format { font-weight: 650; }
.match-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding-block: 4px; color: #bbc0d3; font-size: .82rem; }
.match-line .team { color: #e9ebf4; }
.match-line .badge { width: 26px; height: 24px; font-size: .7rem; }
.match-line b { color: #c9cddd; font-size: .99rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.match-line.winner b { color: var(--accent); }

.playoff { margin-top: clamp(36px, 5vw, 68px); }
.bracket { display: grid; grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); align-items: center; max-width: 940px; }
.bracket .match { padding: 13px 16px; }
.semis { display: grid; gap: 10px; }
.bracket-line { position: relative; width: 50%; height: 52%; border-block: 1px solid #5a607a; border-right: 1px solid #5a607a; }
.bracket-line::after { content: ''; position: absolute; left: 100%; top: 50%; width: 100%; border-top: 1px solid #5a607a; }
.champion { margin-top: 8px; color: var(--accent); font-size: .85rem; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: clamp(44px, 6vw, 78px); padding-block: 22px 32px; border-top: 1px solid #ffffff12; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 18px; color: var(--muted); text-align: right; font-size: .81rem; }
.footer-links span { margin-left: 3px; }

@keyframes arena-enter { from { opacity: .58; transform: scale(1.026); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: .2; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes live-dot { 0%, 100% { opacity: .66; } 45% { opacity: 1; } }

@media (max-width: 960px) {
  .shell { width: calc(100% - 44px); }
  .hero { min-height: 420px; }
  .hero h1 { font-size: clamp(3.75rem, 9.7vw, 6.5rem); }
  .featured { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) auto; gap: 15px; padding-inline: 16px; }
  .tournament th, .tournament td { padding-inline: 9px; }
}

@media (max-width: 760px) {
  .tournament-overview { grid-template-columns: 1fr; gap: 36px; }
  .tournament th, .tournament td { padding-inline: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 420px; gap: 17px; }
  .hero-copy { align-self: end; }
  .hero-meta { justify-self: start; padding: 7px 10px; }
  .hero::after { background: linear-gradient(90deg, #0d0e16ec, #11121ba6 50%, #12131a39), linear-gradient(0deg, #12131bf5, #12131b15 88%); }
  .hero h1 { font-size: clamp(3.3rem, 11vw, 5.9rem); }
  .featured { grid-template-columns: auto minmax(0, 1fr); }
  .featured .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 24px); }
  .bar { grid-template-columns: auto 1fr; min-height: 55px; gap: 12px; }
  .bar nav { justify-content: end; gap: 13px; font-size: .8rem; }
  .bar .logo { font-size: .87rem; gap: 4px; }
  .bar .mark { transform: scale(.83); transform-origin: left; }
  .top-status { display: none; }
  .hero { min-height: 405px; margin-top: 7px; padding: 24px 17px; border-radius: 16px; }
  .hero-image { background-position: 61% center; }
  .hero h1 { margin-block: 13px; font-size: clamp(3rem, 13vw, 4.25rem); }
  .hero-meta { gap: 10px; }
  .actions { margin-top: 19px; }
  .actions .button { min-height: 40px; padding-inline: 11px; font-size: .82rem; }
  .featured { margin-top: 11px; padding: 12px; gap: 7px 13px; }
  .broadcast-title h2 { font-size: .97rem; }
  .broadcast-title { gap: 7px; }
  .broadcast-icon { width: 28px; height: 28px; border-radius: 6px; }
  .broadcast-icon svg { width: 20px; height: 20px; }
  #featured-info { font-size: .8rem; }
  .tournament th, .tournament td { padding-inline: 8px; }
  .tournament table { font-size: .81rem; }
  .tournament thead th { font-size: .72rem; }
  .chip { font-size: .69rem; }
  .team { gap: 6px; }
  .badge { width: 27px; height: 26px; font-size: .72rem; }
  .bracket { grid-template-columns: 1fr; gap: 12px; }
  .bracket-line { display: none; }
  .footer-links { gap: 4px 10px; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image, .hero-copy, .featured, .round[open] .match-grid, .chip.live::before { animation: none; }
  .button, .chevron { transition: none; }
  .button:hover:not(:disabled) { transform: none; }
}
