:root {
  color-scheme: light;
  --paper: #f4f5f4;
  --ink: #18191d;
  --blue: #315e9e;
  --light-blue: #82a6d5;
  --rule: #18191d32;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Barlow, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper) url("./paper.webp");
  font: 400 1rem/1.55 var(--body);
}
h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { color: white; background: var(--blue); }

.wrap { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper) url("./paper.webp");
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 3px 0 #18191d12;
}
.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wordmark, .nav, .button, .tournament, .hero-line, .event-date, .session-strip,
h1, h2, h3, .cash, .payouts caption, .back-to-top {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}
.wordmark { font-size: clamp(1.2rem, 2.4vw, 2rem); line-height: 1; text-decoration: none; }
.wordmark span, .hero h1 em { color: var(--blue); }
.nav { display: flex; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
.nav a { position: relative; padding-block: .65rem; text-decoration: none; }
.nav a::after {
  position: absolute;
  inset: auto 0 .27rem;
  height: 2px;
  content: "";
  background: var(--blue);
  opacity: 0;
  transform: scaleX(.6);
  transform-origin: left;
  transition: transform 140ms ease, opacity 140ms ease;
}
.nav a:hover, .nav a[aria-current="location"], .text-link:hover { color: var(--blue); }
.nav a[aria-current="location"]::after { opacity: 1; transform: scaleX(1); }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  padding: .55rem 1.35rem;
  color: white;
  background: var(--ink);
  border-radius: 2px;
  font-size: 1.25rem;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.button:hover { background: var(--blue); }
.header-action { gap: .22em; min-height: 2.65rem; font-size: 1.05rem; }

.back-to-top {
  position: fixed;
  z-index: 4;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .35rem .85rem;
  color: white;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--ink), 0 0 0 1px var(--paper);
  font-size: 1.15rem;
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s;
}
.back-to-top:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition-delay: 0s, 0s, 150ms;
}
.back-to-top:hover { background: var(--ink); }
.back-to-top::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-top: 2px solid;
  border-left: 2px solid;
  transform: translateY(.1rem) rotate(45deg);
}

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .hero::after, .session-strip::before, .section:not(.prizes)::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, var(--light-blue) 1px, transparent 1.75px) 0 0 / 7px 7px;
}
.hero::before {
  inset: 0 auto auto 0;
  width: min(30vw, 22rem);
  height: 13rem;
  mask-image: radial-gradient(ellipse at top left, #000 8%, transparent 73%);
}
.hero::after {
  inset: auto auto 0 0;
  width: 25rem;
  height: 6rem;
  mask-image: radial-gradient(ellipse at bottom left, #000, transparent 70%);
}
.hero-copy { position: relative; z-index: 1; width: 54%; padding: clamp(3rem, 5.7vw, 5.5rem) 0; }
.tournament { margin-bottom: 1.45rem; color: var(--blue); font-size: 1.1rem; letter-spacing: .055em; }
.hero h1 {
  width: fit-content;
  margin: 0 .12em 1.7rem 0;
  font-size: clamp(4.35rem, 10.3vw, 9.55rem);
  line-height: .81;
  font-weight: 900;
  letter-spacing: -.035em;
  transform: skewY(-5deg);
  text-shadow: 2px 3px var(--paper);
}
.hero h1 span { display: block; }
.hero h1 span + span { margin-left: .15em; }
.hero h1 em {
  position: relative;
  font-style: inherit;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  inset: auto -8% .09em -60%;
  z-index: -1;
  height: .1em;
  background: var(--light-blue);
  clip-path: polygon(14% 0, 100% 22%, 86% 66%, 98% 100%, 0 76%);
}
.hero-line {
  color: var(--blue);
  font-size: clamp(1.4rem, 2.85vw, 2.3rem);
  line-height: 1.05;
}
.event-details { margin-top: 1.1rem; padding-left: .9rem; border-left: 4px solid var(--light-blue); }
.event-date { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.05; }
.event-venue { margin-top: .14rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem 1.2rem; align-items: center; margin-top: 1.5rem; }
.text-link { font-weight: 700; text-decoration-thickness: .12em; }
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.session-strip {
  position: relative;
  isolation: isolate;
  color: white;
  background: var(--blue);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.15;
}
.session-strip::before {
  inset: 0;
  opacity: .9;
  mask-image: linear-gradient(90deg, #000, transparent 13%, transparent 86%, #000);
}
.session-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  text-align: center;
}
.session-inner span { display: grid; place-items: center; padding: 1rem .7rem; }
.session-inner span + span { border-left: 1px solid #ffffff75; }

.section { position: relative; isolation: isolate; padding: clamp(3rem, 7vw, 6rem) 0; }
.section:not(.prizes)::before {
  inset: auto 0 0 auto;
  width: min(32vw, 25rem);
  height: 15rem;
  mask-image: radial-gradient(ellipse at bottom right, #000, transparent 70%);
}
.section-intro { margin-bottom: 1.65rem; }
.section-intro p { max-width: 34ch; margin-top: 1rem; color: #3c4c63; font-size: 1.0625rem; font-weight: 500; }
.section-title {
  position: relative;
  z-index: 0;
  width: fit-content;
  font-size: clamp(3rem, 6.3vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .86;
  transform: skewY(-4deg);
}
.section-title span::after {
  content: "";
  position: absolute;
  inset: auto -.15em -.04em -.12em;
  z-index: -1;
  height: .18em;
  background: var(--light-blue);
  clip-path: polygon(8% 15%, 100% 0, 81% 77%, 90% 100%, 0 88%);
}
h3 { font-size: clamp(1.5rem, 2.65vw, 2.25rem); line-height: 1.04; letter-spacing: -.01em; }

.pass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(1rem, 2.4vw, 2rem); }
.pass {
  --ticket-rule: #315e9e66;
  padding: clamp(.9rem, 2.15vw, 1.5rem);
  background: linear-gradient(135deg, #ffffffa0, transparent 70%), #dbe6f5;
  border-top: 4px solid var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - .9rem), calc(100% - .9rem) 100%, 0 100%);
}
.pass-vip {
  --ticket-rule: #ffffff90;
  color: white;
  background: linear-gradient(135deg, #ffffff12, transparent 65%), var(--blue);
  border-color: var(--light-blue);
}
.pass dl { margin-top: .8rem; }
.pass dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .55rem;
  padding: .5rem 0 .12rem;
  border-top: 1px dashed var(--ticket-rule);
}
.pass dl div + div { margin-top: .35rem; }
.pass dd { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; line-height: 1; }
.pass small { display: block; font-size: .86rem; color: var(--blue); font-weight: 600; }
.pass-vip small { color: #e2ecff; }
.early-bird {
  display: flex;
  align-items: center;
  gap: .75rem 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem 1.3rem;
  color: white;
  background: repeating-linear-gradient(125deg, transparent 0 1rem, #ffffff10 1rem 1.18rem) right / 5rem 100% no-repeat, var(--ink);
  border-left: 5px solid var(--light-blue);
}
.early-bird p { flex: 1 1 20rem; }
.early-bird h3 { color: #b0ccf2; }
.pass-footer { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; justify-content: space-between; }

.prizes {
  --rule: #ffffff48;
  color: #f8f9f9;
  background: #222630 url("./paper.webp");
  background-blend-mode: multiply;
  border-block: 4px solid var(--blue);
}
.prizes .section-intro { display: flex; flex-wrap: wrap; align-items: end; gap: .95rem 2rem; }
.prizes .section-intro p { color: #d2def1; margin: 0; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.prize {
  --prize-accent: var(--light-blue);
  padding: clamp(.9rem, 2vw, 1.5rem);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--prize-accent);
  background: linear-gradient(140deg, #353c4a, #1c212b 80%);
}
.prize-champion { --prize-accent: #ecc476; }
.prize-art {
  position: relative;
  isolation: isolate;
  height: clamp(8.5rem, 15vw, 13rem);
  margin: .55rem 0;
}
.prize-art::before {
  position: absolute;
  z-index: -1;
  inset: 9% 0 7%;
  content: "";
  opacity: .45;
  background: radial-gradient(circle, var(--prize-accent) 1px, transparent 1.5px) 0 0 / 6px 6px;
  mask-image: radial-gradient(ellipse, #000 12%, transparent 72%);
}
.prize-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 5px #0008);
}
.prize:nth-child(2) .prize-art img { --prize-delay: 40ms; }
.prize:nth-child(3) .prize-art img { --prize-delay: 80ms; }
.prize-art.is-pending img { opacity: 0; }
.prize-art.is-revealed img { animation: reveal-prize 220ms ease var(--prize-delay, 0ms) both; }

@keyframes reveal-prize {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cash {
  display: inline-block;
  padding: .05em .22em .13em;
  color: var(--ink);
  background: var(--prize-accent);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: .95;
}
.prize ul { list-style: none; padding: 0; margin: .7rem 0 0; }
.prize li + li { margin-top: .2rem; }
.prize-extras { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 1.2rem 2rem; margin-top: 1.8rem; }
.payouts {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.payouts caption { padding: 0 0 .55rem; font-size: clamp(1.5rem, 2.65vw, 2.25rem); line-height: 1.04; }
.payouts th, .payouts td { width: 50%; padding: .55rem .8rem; border-bottom: 1px solid var(--rule); }
.payouts thead { background: #ffffff10; }
.payouts tbody th { font-weight: 500; }
.payouts td { font-weight: 700; }
.lucky-draw {
  padding: 1rem 1.2rem;
  color: var(--ink);
  background: #d6e2f4 url("./paper.webp");
  background-blend-mode: multiply;
  border-left: 4px solid var(--light-blue);
}
.lucky-draw p { margin-top: .35rem; }
.lucky-draw img { width: min(100%, 24rem); margin: .7rem auto 0; mix-blend-mode: multiply; }

.format-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem; }
.stages { list-style: none; padding: 0 0 0 1.25rem; margin: 0; border-left: 2px solid var(--light-blue); }
.stages li { position: relative; padding: .95rem 1rem; background: #fff9; border: 1px solid var(--rule); }
.stages li::before {
  content: "";
  position: absolute;
  inset: 1.25rem auto auto -1.63rem;
  width: .52rem;
  height: .52rem;
  background: var(--blue);
  transform: rotate(45deg);
}
.stages li + li { margin-top: .9rem; }
.stages p { margin-top: .45rem; }
.format-note { font-size: .9rem; color: #414855; }
.format-note a { font-weight: 700; color: var(--blue); }
.rules { align-self: start; padding: 1.2rem 1.25rem; color: white; background: var(--blue); border-top: 5px solid var(--light-blue); }
.rules ul { padding-left: 1.15rem; margin-bottom: 0; }
.rules li + li { margin-top: .35rem; }

.site-footer { border-top: 2px solid var(--blue); padding-block: 1.4rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: center; justify-content: space-between; }
.footer-inner h2 { font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.05; }
.sponsor-logos { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; list-style: none; margin: 0; padding: 0; }
.sponsor-logos img { width: auto; height: auto; max-width: 5.5rem; max-height: 4rem; mix-blend-mode: multiply; }

@media (min-width: 67rem) {
  .section:not(.prizes) > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 0 clamp(1.5rem, 4vw, 4rem);
    align-items: start;
  }
  .section:not(.prizes) .section-intro { grid-row: 1 / span 3; margin-right: 1rem; }
  .section:not(.prizes) .section-title span { display: block; }
  .pass-grid, .early-bird, .pass-footer, .format-grid { grid-column: 2; }
}

@media (max-width: 47rem) {
  html { scroll-padding-top: 6.5rem; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(3rem, auto) auto;
    gap: 0 .75rem;
  }
  .header-action { grid-area: 1 / 2; min-height: 2.2rem; padding-inline: .8rem; font-size: .95rem; }
  .header-action-prefix { display: none; }
  .nav {
    grid-area: 2 / 1 / 3 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    text-align: center;
  }
  .nav a { min-height: 2.75rem; padding: .53rem .3rem; }
  .nav a::after { inset-inline: 22%; }
  .hero-copy { width: 100%; padding: clamp(1.75rem, 5vw, 2.5rem) 0 1.05rem; }
  .tournament { margin-bottom: 1rem; font-size: 1rem; }
  .hero h1 { font-size: clamp(3.9rem, 17vw, 7rem); margin-bottom: 1.15rem; }
  .hero-actions { gap: .65rem 1rem; margin-top: 1.2rem; }
  .hero-art {
    position: relative;
    width: 100%;
    height: clamp(12rem, 63vw, 23rem);
    object-position: center 43%;
    clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  }
  .session-inner span { padding-block: .75rem; }
  .section { padding-block: clamp(2.55rem, 6vw, 3.2rem); }
  .section-intro { margin-bottom: 1.35rem; }
  .section-intro p { margin-top: .8rem; }
  .early-bird { gap: .45rem .85rem; }
  .format-grid { grid-template-columns: 1fr; gap: 1rem; }
  .site-footer { padding-bottom: max(4.7rem, calc(3.7rem + env(safe-area-inset-bottom))); }
}

@media (max-width: 36rem) {
  .podium { grid-template-columns: 1fr; }
  .prize {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(6rem, 38%);
    align-items: start;
    gap: .45rem .75rem;
  }
  .prize-art { grid-column: 2; grid-row: 1 / span 3; align-self: center; height: 7rem; margin: 0; }
  .prize .cash { width: max-content; }
  .prize ul { font-size: .9rem; margin: 0; }
  .prize-extras { grid-template-columns: 1fr; }
  .sponsor-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: .65rem; }
  .sponsor-logos img { max-width: min(100%, 4.65rem); }
}

@media (max-width: 23rem) {
  .pass-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .session-inner span { padding-inline: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .nav a::after, .nav a[aria-current="location"]::after { transform: none; transition: opacity 90ms ease; }
  .back-to-top { transition: opacity 90ms ease, visibility 0s; }
  .back-to-top:disabled { transform: none; transition-delay: 0s, 90ms; }
  .prize-art.is-revealed img { animation: reveal-prize-opacity 100ms ease both; }
}

@keyframes reveal-prize-opacity {
  from { opacity: 0; }
  to { opacity: 1; }
}
