:root {
  color-scheme: dark;
  --ink: #0d1110;
  --ink-deep: #090c0b;
  --surface: #151b18;
  --surface-alt: #1d2520;
  --surface-raised: #222c26;
  --line: #344039;
  --line-bright: #58675e;
  --text: #f3f1e7;
  --muted: #aeb8b0;
  --green: #6df35c;
  --green-ink: #071006;
  --gold: #f2c14e;
  --urgent: #ff6b4a;
  --silver: #c3ccc7;
  --bronze: #c98a54;
  --font-display: "Arial Black", "Arial Narrow", Impact, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-meta: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(100% - 2rem, 76rem);
  --header-height: 4.5rem;
  --section-space: clamp(5rem, 11vw, 9rem);
  --shadow: 0 1.5rem 5rem rgb(0 0 0 / 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(109 243 92 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(109 243 92 / 0.025) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select,
summary,
[tabindex="0"] {
  outline-offset: 0.25rem;
}

:focus-visible {
  outline: 0.2rem solid var(--green);
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  min-height: var(--header-height);
  padding: 0.75rem max(1rem, calc((100% - 76rem) / 2));
  border-bottom: 1px solid rgb(243 241 231 / 0.14);
  background: rgb(9 12 11 / 0.86);
  backdrop-filter: blur(1rem);
}

.site-header > .action {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand small {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.64rem;
  font-weight: 500;
}

.brand-mark,
.team-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--font-meta);
  font-size: 0.76rem;
  font-weight: 900;
  clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 18% 100%, 0 82%);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border: 1px solid var(--line-bright);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span[aria-hidden] {
  display: block;
  width: 1.2rem;
  height: 1px;
  background: currentColor;
}

.js .menu-toggle {
  display: grid;
}

.site-nav {
  grid-column: 1 / -1;
  padding-top: 0.75rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: 0.65rem;
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--green);
}

.js .site-nav {
  display: none;
}

.js .site-nav[data-open="true"] {
  display: block;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  color: var(--green-ink);
  font-family: var(--font-meta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 0.6rem) 0, 100% 0.6rem, 100% 100%, 0.6rem 100%, 0 calc(100% - 0.6rem));
}

.action--primary {
  background: var(--green);
}

.action--primary:hover {
  background: #91fa84;
}

.action--secondary {
  border-color: var(--line-bright);
  background: rgb(13 17 16 / 0.62);
  color: var(--text);
}

.action--secondary:hover {
  border-color: var(--text);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-media,
.registration-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media::after,
.registration-backdrop::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 12 9 / 0.96) 0%, rgb(7 12 9 / 0.78) 52%, rgb(7 12 9 / 0.3) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 45%);
  content: "";
}

.hero-media img,
.registration-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--green) 1px, transparent 1px),
    linear-gradient(90deg, var(--green) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.hero-content {
  display: grid;
  align-content: end;
  gap: 2rem;
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 5rem;
}

.hero-copy {
  max-width: 47rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--green);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid currentColor;
}

.hero h1,
.section-heading h2,
.result-page h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 12vw, 8.5rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-tagline {
  margin: 1.5rem 0 0;
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 38rem;
  margin: 1.25rem 0 1.75rem;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-status {
  max-width: 34rem;
  padding: 1rem;
  border: 1px solid var(--line-bright);
  border-left: 0.2rem solid var(--green);
  background: rgb(13 17 16 / 0.75);
}

.hero-status > p {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--text);
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status--live > span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.2rem rgb(109 243 92 / 0.15);
  animation: status-pulse 2s ease-out infinite;
}

.coordinates {
  font-family: var(--font-meta);
  font-size: 0.68rem !important;
  letter-spacing: 0.05em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line-bright);
  border-left: 1px solid var(--line-bright);
  background: rgb(9 12 11 / 0.72);
}

.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 1rem;
  border-right: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
}

.hero-stats dt {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
}

.image-direction {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.image-direction span {
  color: var(--green);
}

.section {
  position: relative;
  padding-block: var(--section-space);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.section:nth-child(even) {
  background: var(--ink-deep);
}

.section-heading {
  max-width: 55rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.section-heading h2,
.result-page h1 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 8vw, 5.5rem);
  line-height: 0.92;
}

.section-intro {
  max-width: 48rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.route-layout,
.split-feature,
.rewards-layout,
.community-layout {
  display: grid;
  gap: 2rem;
}

.quest-route {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quest-route::before {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1.45rem;
  width: 1px;
  background: linear-gradient(var(--green), var(--gold));
  content: "";
}

.quest-route li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 0 0 2rem;
}

.quest-route li:last-child {
  padding-bottom: 0;
}

.quest-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--green);
  background: var(--surface);
  color: var(--green);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 800;
}

.quest-route h3,
.quest-card h3,
.team-card h3,
.prize h3,
.subheading {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.quest-route p,
.quest-card > p,
.team-card p {
  margin: 0;
  color: var(--muted);
}

.media-frame {
  position: relative;
  min-height: 18rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
}

.media-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(9 12 11 / 0.78));
  content: "";
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  transition: transform 500ms ease;
}

.media-frame:hover img {
  transform: scale(1.02);
}

.media-frame figcaption {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-frame figcaption span:first-child {
  color: var(--green);
}

.media-frame--banner {
  min-height: clamp(20rem, 45vw, 36rem);
  margin-bottom: 1rem;
}

.media-frame--banner img {
  min-height: clamp(20rem, 45vw, 36rem);
}

.section--leaderboard {
  background:
    radial-gradient(circle at 90% 0%, rgb(242 193 78 / 0.08), transparent 30rem),
    var(--surface);
}

.section-heading-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.section-heading-row .section-heading {
  margin-bottom: 1rem;
}

.leaderboard-frame {
  overflow-x: auto;
  border: 1px solid var(--line-bright);
  background: var(--ink-deep);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

thead th {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody th {
  font-size: 0.95rem;
}

tbody td {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.78rem;
}

tbody td strong {
  color: var(--gold);
  font-size: 1rem;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--surface-alt);
}

.rank-mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-bright);
  color: var(--text);
}

.rank-1 .rank-mark {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.rank-2 .rank-mark {
  border-color: var(--silver);
  color: var(--silver);
}

.rank-3 .rank-mark {
  border-color: var(--bronze);
  color: var(--bronze);
}

.section-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.quest-board {
  display: grid;
  gap: 0.75rem;
}

.quest-card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-left: 0.22rem solid var(--gold);
  background: var(--surface);
}

.quest-card--complete {
  border-left-color: var(--green);
}

.quest-card--complete::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.quest-card--locked {
  border-left-color: var(--line-bright);
  opacity: 0.74;
}

.quest-card--locked::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--muted);
  content: "LOCKED";
  font-family: var(--font-meta);
  font-size: 0.65rem;
}

.quest-card--in-progress {
  border-left-color: var(--urgent);
}

.quest-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 3.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quest-meta strong {
  color: var(--gold);
}

.quest-card dl,
.team-card dl,
.team-dialog dl {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.quest-card dl div,
.team-card dl div,
.team-dialog dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.quest-card dt,
.team-card dt,
.team-dialog dt {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quest-card dd,
.team-card dd,
.team-dialog dd {
  margin: 0;
  font-size: 0.78rem;
  text-align: right;
}

.drop-notice {
  margin: 1.5rem 0 0;
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drop-notice span {
  margin-right: 0.5rem;
}

.team-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.team-card {
  position: relative;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.team-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.25rem;
  background: var(--team-color, var(--green));
  content: "";
}

.team-card--red { --team-color: #df4b43; }
.team-card--green { --team-color: #6df35c; }
.team-card--crimson { --team-color: #a53845; }
.team-card--copper { --team-color: #c97842; }

.team-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.team-card .team-mark {
  border-color: var(--team-color);
  background: var(--team-color);
}

.team-position {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.75rem;
}

.team-points {
  color: var(--gold) !important;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.team-points span {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.text-button {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0 0;
  margin-top: 1rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.text-button span {
  float: right;
}

.rewards-layout {
  align-items: start;
}

.podium {
  display: grid;
  gap: 0.75rem;
}

.prize {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.prize > p:first-child {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prize > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.prize--1 {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgb(242 193 78 / 0.12), var(--surface) 50%);
}

.subheading {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
}

.badge-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.badge-wall details {
  border: 1px solid var(--line);
  background: var(--surface);
}

.badge-wall summary {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.2rem;
  padding: 0.7rem;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.badge-wall summary::-webkit-details-marker {
  display: none;
}

.badge-wall details[open] {
  border-color: var(--gold);
}

.badge-wall details p {
  padding: 0 0.8rem 0.8rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.badge-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.small-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.community-stat {
  display: grid;
  width: fit-content;
  margin: 0 0 2rem;
  font-family: var(--font-meta);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.community-stat strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
}

.community-stat span {
  color: var(--muted);
  font-size: 0.62rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.25rem;
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list span {
  color: var(--green);
  font-family: var(--font-meta);
}

.registration {
  min-height: 100svh;
  padding-bottom: 0;
  border-bottom: 0;
  isolation: isolate;
}

.registration-backdrop::after {
  background:
    linear-gradient(90deg, rgb(7 12 9 / 0.98) 0%, rgb(7 12 9 / 0.88) 55%, rgb(7 12 9 / 0.65) 100%),
    linear-gradient(0deg, var(--ink-deep), transparent 65%);
}

.registration-shell {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.capacity {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.capacity span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.8rem;
}

.registration-path {
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.registration-path li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.registration-path span {
  color: var(--green);
  font-family: var(--font-meta);
  font-size: 0.7rem;
}

.registration-form {
  padding: clamp(1.1rem, 4vw, 2rem);
  border: 1px solid var(--line-bright);
  border-top: 0.22rem solid var(--green);
  background: rgb(13 17 16 / 0.94);
  box-shadow: var(--shadow);
}

.form-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-header p {
  margin: 0;
}

.form-header p:last-child {
  color: var(--green);
}

.progress-track {
  height: 0.22rem;
  margin: 0.75rem 0 1rem;
  overflow: hidden;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--green);
  transition: width 240ms ease;
}

.form-note,
.field-help {
  color: var(--muted);
  font-size: 0.8rem;
}

.form-step {
  display: grid;
  gap: 0.7rem;
  padding: 1.5rem 0 0;
  margin: 0;
  border: 0;
}

.js .form-step[hidden] {
  display: none;
}

.form-step legend {
  width: 100%;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.form-step legend span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green);
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.form-step > label:not(.check-row) {
  margin-top: 0.35rem;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
}

input:hover,
select:hover {
  border-color: var(--muted);
}

.choice-group {
  display: grid;
  gap: 0.5rem;
}

.choice-group label {
  position: relative;
  cursor: pointer;
}

.choice-group input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-group span {
  display: grid;
  min-height: 4.25rem;
  padding: 0.8rem 0.8rem 0.8rem 2.4rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
}

.choice-group span::before {
  position: absolute;
  top: 1.45rem;
  left: 0.85rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--line-bright);
  content: "";
}

.choice-group strong {
  color: var(--text);
  font-size: 0.9rem;
}

.choice-group input:checked + span {
  border-color: var(--green);
}

.choice-group input:checked + span::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 0.18rem var(--surface);
}

.choice-group input:focus-visible + span {
  outline: 0.2rem solid var(--green);
  outline-offset: 0.2rem;
}

.check-row {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  min-height: 2.75rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}

.check-row input {
  width: 1.15rem;
  min-height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--green);
}

.rules-summary,
.review-panel {
  padding: 1rem;
  border-left: 0.2rem solid var(--gold);
  background: var(--surface);
}

.rules-summary h3,
.rules-summary p,
.review-panel p,
.review-panel strong,
.review-panel span {
  margin: 0;
}

.rules-summary h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
}

.rules-summary p,
.review-panel span {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-panel {
  display: grid;
  gap: 0.45rem;
  border-left-color: var(--green);
}

.review-panel p {
  color: var(--green);
  font-family: var(--font-meta);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

.site-footer {
  display: grid;
  gap: 0.75rem;
  padding-block: 4rem 6rem;
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

.team-dialog {
  width: min(100% - 2rem, 34rem);
  padding: 1.5rem;
  border: 1px solid var(--line-bright);
  border-top: 0.22rem solid var(--green);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.team-dialog::backdrop {
  background: rgb(0 0 0 / 0.76);
  backdrop-filter: blur(0.25rem);
}

.team-dialog h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1.5rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-register {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 45;
  display: flex;
  justify-content: space-between;
  min-height: 3.2rem;
  padding: 0.85rem 1rem;
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--font-meta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.35);
}

.result-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 1rem;
}

.result-page main {
  width: min(100%, 46rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line-bright);
  border-top: 0.25rem solid var(--green);
  background: var(--surface);
}

.result-page p:not(.eyebrow) {
  max-width: 38rem;
  margin: 1.5rem 0;
  color: var(--muted);
}

@keyframes status-pulse {
  50% { box-shadow: 0 0 0 0.5rem rgb(109 243 92 / 0); }
}

@media (max-width: 43.99rem) {
  .leaderboard-frame {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  tbody {
    display: grid;
    gap: 0.75rem;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: var(--ink-deep);
  }

  tbody th,
  tbody td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

  tbody th::before,
  tbody td::before {
    margin-bottom: 0.25rem;
    color: var(--muted);
    content: attr(data-label);
    font-family: var(--font-meta);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  tbody tr > :nth-child(2) {
    justify-content: center;
  }

  tbody tr > :last-child,
  tbody tr > :nth-last-child(2) {
    border-bottom: 0;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .action {
    width: 100%;
  }
}

@media (min-width: 44rem) {
  :root { --shell: min(100% - 3rem, 76rem); }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-copy,
  .hero-stats {
    grid-column: 1 / -1;
  }

  .hero-status {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-heading-row {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .quest-board,
  .team-grid,
  .podium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prize--1 {
    grid-column: 1 / -1;
  }

  .registration-form {
    min-height: 36rem;
  }

  .choice-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr 2fr auto;
  }

  .mobile-register {
    right: 1.5rem;
    left: auto;
    width: 14rem;
  }
}

@media (min-width: 64rem) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
  }

  .js .menu-toggle,
  .menu-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: block;
    grid-column: auto;
    padding: 0;
  }

  .site-nav ul {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.15rem;
  }

  .site-nav a {
    min-height: auto;
    padding-block: 0.4rem;
    font-size: 0.66rem;
  }

  .site-header > .action {
    display: inline-flex;
    min-height: 2.75rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 2fr) minmax(20rem, 1fr);
  }

  .hero-copy {
    grid-column: 1;
  }

  .hero-status {
    grid-column: 2;
  }

  .hero-stats {
    grid-column: 1 / -1;
  }

  .route-layout {
    grid-template-columns: minmax(25rem, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .route-layout .media-frame {
    min-height: 42rem;
  }

  .route-layout .media-frame img {
    min-height: 42rem;
  }

  .split-feature {
    grid-template-columns: minmax(0, 0.9fr) minmax(34rem, 1.1fr);
    align-items: stretch;
  }

  .split-feature .media-frame,
  .split-feature .media-frame img {
    min-height: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rewards-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(24rem, 0.85fr);
  }

  .rewards-layout .media-frame {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    min-height: 38rem;
  }

  .rewards-layout .media-frame img {
    min-height: 38rem;
  }

  .community-layout,
  .registration-shell {
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.9fr);
  }

  .community-layout .media-frame {
    min-height: 42rem;
  }

  .community-layout .media-frame img {
    min-height: 42rem;
  }

  .mobile-register {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

