@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas-neue-v16-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas-neue-v16-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-v19-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-v19-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #111;
  --surface: #141414;
  --surface-gold: #1a1408;
  --line: rgba(212,169,63,.22);
  --gold: #d4a93f;
  --gold-light: #f4d36b;
  --gold-pale: #f7e9bf;
  --gold-dark: #8a6a1c;
  --text: #f5f1e6;
  --muted: #b9b2a3;
  --grad-gold: linear-gradient(var(--gold-angle, 180deg), #f7e9bf 0%, #f4d36b 35%, #d4a93f 70%, #8a6a1c 100%);
  --radius: 16px;
  --heading-font: "Bebas Neue", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(1rem, 1.5vw, 1.125rem)/1.6 "Nunito Sans", system-ui, sans-serif;
}

h1, h2, h3, p, figure { margin: 0; }
p + p { margin-top: .75rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: .2em; }
a:hover { color: var(--gold-pale); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 400;
  line-height: 1.05;
}

h1 { font-size: clamp(2.75rem, 8vw, 6rem); }
h2 { margin-bottom: .75rem; font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.text-gold { color: var(--gold-light); white-space: nowrap; }

@supports (background-clip: text) {
  .text-gold, .prize-amount {
    background: var(--grad-gold);
    background-clip: text;
    color: transparent;
  }
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(48px, 8vw, 96px); }

.section-alt {
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at top, rgba(212, 169, 63, .08), transparent 65%), var(--bg-2);
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: .75rem auto auto .75rem;
  padding: .65rem 1rem;
  background: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.logo-link { display: flex; align-items: center; min-height: 44px; }
.site-logo { width: auto; height: 48px; }
.site-nav { display: none; }
.site-nav a { color: var(--text); font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--gold-light); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  --gold-angle: 90deg;
  background: var(--grad-gold);
  color: var(--bg);
  box-shadow: 0 3px 18px rgba(212, 169, 63, .18);
}

.button-primary:hover { color: var(--bg); filter: brightness(1.08); }
.button-secondary { border-color: var(--gold); color: var(--gold-light); }
.button-secondary:hover { background: var(--surface-gold); }
.button-compact { min-height: 44px; padding-inline: 1rem; }
.button-large { min-height: 60px; padding-inline: 1.6rem; font-size: 1.125rem; }

.hero {
  padding-block: clamp(64px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at top, var(--surface-gold), var(--bg) 70%);
}

.hero-short { padding-block: clamp(64px, 8vw, 96px); }
.hero-photo {
  background: linear-gradient(90deg, rgba(10, 10, 10, .88), rgba(10, 10, 10, .62)),
    url("/assets/img/cup-floor-720.webp") center / cover no-repeat;
}

.eyebrow {
  color: var(--gold-light);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero .eyebrow { margin-bottom: .75rem; }

.hero .container > .eyebrow,
.home-hero-main > .eyebrow {
  display: inline-block;
  padding: .45rem 1.1rem;
  border: 1px solid rgba(244, 211, 107, .3);
  border-radius: 999px;
  background: rgba(244, 211, 107, .1);
}

.hero-detail { max-width: 65ch; margin-top: 1rem; color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
}

.action-note {
  max-width: 60ch;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .9375rem;
}

.action-note small { font-size: inherit; }

.card-grid, .stats-grid, .sponsor-grid, .upcoming-grid {
  display: grid;
  gap: 1rem;
}

.card, .stat, .upcoming-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p > a { display: inline-block; padding-block: .6rem; }

.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding-inline: clamp(.625rem, 2vw, 1.75rem); }

.stat-value {
  display: block;
  color: var(--gold-light);
  font: 400 clamp(2.25rem, 4.5vw, 3.5rem)/1 var(--heading-font);
  white-space: nowrap;
}

.timeline {
  margin: 0;
  padding-inline-start: 1.25rem;
  border-inline-start: 1px solid var(--line);
  list-style: none;
}

.timeline li { position: relative; padding-block: .75rem; }
.timeline li::before {
  position: absolute;
  inset: 1.4rem auto auto calc(-1.25rem - 5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.prize-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prize-list li {
  display: grid;
  align-content: center;
  gap: .4rem;
  padding: clamp(1rem, 2vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.prize-list li:first-child {
  border-color: var(--gold-dark);
  background: var(--surface-gold);
  box-shadow: 0 0 0 1px var(--gold-dark), 0 24px 60px rgba(212, 169, 63, .18);
}

.prize-rank {
  color: var(--gold-light);
  font: 800 .8125rem/1.6 "Nunito Sans", system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.prize-amount {
  display: block;
  font: 400 clamp(3.5rem, 9vw, 4.5rem)/1 var(--heading-font);
}

@supports not (background-clip: text) {
  .prize-amount { color: var(--gold-light); }
}

.prize-list li:first-child .prize-amount { font-size: clamp(4.5rem, 12vw, 6rem); }
.prize-label { color: var(--muted); font-size: 1rem; }

.countdown {
  width: fit-content;
  min-height: 120px;
  max-width: 100%;
  margin-top: 1.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.countdown-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.countdown-grid span { min-width: 3.4rem; color: var(--muted); font-size: .8125rem; }
.countdown-grid strong {
  display: block;
  color: var(--gold-light);
  font: 400 clamp(2rem, 5vw, 3rem)/1 var(--heading-font);
  font-variant-numeric: tabular-nums;
}

.countdown-status:empty { margin: 0; }
.countdown.is-live { min-height: 0; border-color: var(--gold); background: var(--surface-gold); color: var(--gold-light); }
.countdown.is-finished { display: none; }
.countdown-status { font-weight: 800; }

.ranking-embed {
  position: relative;
  height: calc(100vh - 64px - 2rem);
  height: calc(100svh - 64px - 2rem);
  margin-block: 1.25rem .75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f172a;
  color: var(--muted);
}

.ranking-fallback { margin-top: 1rem; }

.ranking-embed::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  pointer-events: none;
}

.ranking-embed iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  visibility: hidden;
}

.ranking-embed.is-loaded iframe { visibility: visible; }

.ranking-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-top: 1.25rem; }
.sponsor-grid figure { text-align: center; }
.sponsor-card {
  display: grid;
  min-height: 88px;
  place-items: center;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: #fff;
}
.sponsor-card img { width: auto; max-height: 44px; object-fit: contain; }
.sponsor-grid figcaption { margin-top: .75rem; }

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
}

.site-footer .site-logo { height: 36px; margin-bottom: .75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-block: 1rem; }

.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 639.98px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-actions .button { width: 100%; }
  .hero .container > .eyebrow,
  .home-hero-main > .eyebrow { font-size: .75rem; letter-spacing: .1em; }
}

@media (min-width: 640px) {
  .upcoming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
  .hero-photo { background-image: linear-gradient(90deg, rgba(10, 10, 10, .88), rgba(10, 10, 10, .62)), url("/assets/img/cup-floor-1200.webp"); }
  .card-grid, .prize-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-prizes { grid-column: 1 / -1; }
  .card-grid:has(> .card-prizes) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prize-list { margin-top: 1.5rem; }
  .prize-list li:first-child { order: 2; transform: translateY(-12px); }
  .prize-list li:nth-child(2) { order: 1; }
  .prize-list li:nth-child(3) { order: 3; }
}

@media (min-width: 900px) {
  .header-inner { min-height: 72px; }
  .site-header .site-logo { height: 56px; }
  .site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
  .ranking-embed { height: 720px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.home-hero {
  --hero-padding: clamp(40px, 10vw, 120px);
  position: relative;
  isolation: isolate;
  padding-block: var(--hero-padding);
  background: var(--bg);
}

.home-hero-image,
.home-hero-image::after {
  position: absolute;
  inset: 0;
}

.home-hero-image { z-index: -1; }

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.home-hero-image::after {
  background: linear-gradient(180deg, rgba(10, 10, 10, .82), rgba(10, 10, 10, .74) 60%, var(--bg));
  content: "";
}

.home-hero-subtitle { display: block; font-size: .55em; }

.home-hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  max-width: none;
  margin-bottom: 0;
  padding: 0;
  color: var(--text);
  list-style: none;
}

.home-hero-details svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-inline-end: .4rem;
  color: var(--gold-light);
  flex: none;
}

.hero-prizes { margin-top: 1.5rem; }

.hero-prizes ol {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-prizes .prize-rank { font-size: .75rem; }
.hero-prizes .prize-amount { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.hero-prizes li:first-child .prize-amount { font-size: clamp(2.75rem, 7vw, 4rem); }

.home-details { align-items: start; }
.home-festival-logo { width: 150px; margin-block: 1rem; }

.home-about {
  display: grid;
  align-items: center;
  gap: 1.5rem;
}

.home-audience { border-radius: var(--radius); }
.home-stats { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.home-timeline { margin-top: 1.25rem; }

.home-featured {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: var(--gold-dark);
  background: var(--surface-gold);
}

.home-badge {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .25rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.home-season { margin-block: 2rem .5rem; }
.home-upcoming { margin-top: 1.25rem; }

.home-upcoming h4 {
  margin: 0;
  font: 400 clamp(1.5rem, 3vw, 2rem)/1.05 var(--heading-font);
}

.home-cta { background: var(--surface-gold); text-align: center; }
.home-cta .button { margin-top: 1.25rem; }

@media (min-width: 768px) {
  .home-details, .home-about { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .stats-grid, .home-upcoming { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .home-hero .container {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 3rem;
    align-items: center;
  }

  .home-hero-image::after {
    background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .70) 55%, rgba(10, 10, 10, .55) 100%),
      linear-gradient(180deg, transparent 70%, var(--bg));
  }

  .hero-prizes { margin-top: 0; }
  .hero-prizes ol { flex-direction: column; }
  .hero-prizes li {
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 10, 10, .55);
    backdrop-filter: blur(6px);
  }
}

.upcoming-card .upcoming-event {
  margin: 0 0 .5rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.upcoming-card .upcoming-event--tf { color: var(--gold-light); }
.upcoming-card .upcoming-event--fx { color: var(--gold-pale); }

p[hidden] + p[data-from] { margin-top: 0; }
