@font-face {
  font-family: "Triforce";
  src: url("Triforce.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Hylia Serif";
  src: url("HyliaSerif-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b121b;
  --navy: #101b29;
  --navy-soft: #17283a;
  --panel: rgba(14, 24, 36, 0.94);
  --panel-hover: rgba(24, 42, 59, 0.97);
  --gold: #d6bb78;
  --gold-bright: #f0c36a;
  --cyan: #8be2f2;
  --blue: #78abd4;
  --text: #dce9f2;
  --muted: #9eafbd;
  --line: #52677c;
  --heading: #c9ddff;
  --shadow: rgba(0, 0, 0, 0.48);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--ink) url("new-pattern.jpeg") repeat fixed;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 14, 22, 0.12), rgba(7, 14, 22, 0.72)),
    transparent;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(8, 15, 24, 0.98) 0%, rgba(9, 18, 29, 0.88) 47%, rgba(9, 18, 29, 0.38) 100%),
    linear-gradient(0deg, rgba(9, 17, 27, 0.98) 0%, transparent 36%),
    url("dark-triforce-bg.jpg") center right / cover no-repeat;
  box-shadow: 0 14px 40px var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 226, 242, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 226, 242, 0.15) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
}

.hero__glow {
  position: absolute;
  top: -150px;
  left: 36%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(69, 142, 168, 0.17);
  filter: blur(85px);
  pointer-events: none;
}

.topbar,
.hero__content,
.lineup,
footer {
  width: min(1380px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  border-bottom: 1px solid rgba(214, 187, 120, 0.45);
}

.brand img {
  display: block;
  width: min(178px, 42vw);
  height: auto;
  transition: transform 180ms ease;
}

.brand:hover img {
  transform: scale(1.025);
}

.edition-mark {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.edition-mark i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding: 44px 0 58px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 8px;
  font-size: 0.66rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  color: var(--heading);
  font-family: "Triforce", "Hylia Serif", Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 6.1rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.015em;
  text-shadow: 0 7px 26px rgba(0, 0, 0, 0.75);
}

h1 em {
  color: var(--gold-bright);
  font-style: normal;
}

.hero__intro {
  max-width: 610px;
  margin: 22px 0 0;
  color: #c2d1dc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.9rem, 1.25vw, 1.06rem);
  line-height: 1.65;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(214, 187, 120, 0.62);
  border-radius: var(--radius);
  background: rgba(8, 17, 27, 0.83);
  box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
}

.stat {
  padding: 17px 18px 15px;
}

.stat:nth-child(2) {
  border-left: 1px solid rgba(82, 103, 124, 0.66);
}

.stat--wide {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(82, 103, 124, 0.66);
}

.stat strong {
  display: block;
  color: var(--cyan);
  font-family: "Triforce", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 0.9;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__rule {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--gold);
  opacity: 0.7;
}

.hero__rule span {
  width: 80px;
  height: 1px;
  background: currentColor;
}

.hero__rule span:first-child {
  flex: 1;
}

.hero__rule i {
  font-style: normal;
  font-size: 0.65rem;
}

main {
  position: relative;
}

.lineup {
  padding: 58px 0 96px;
}

.lineup__heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-kicker {
  margin-bottom: 8px;
}

.lineup h2 {
  margin: 0;
  color: var(--heading);
  font-family: "Hylia Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
}

.results-count {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.run-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.run-card {
  --accent: var(--cyan);
  position: relative;
  display: flex;
  min-height: 215px;
  overflow: hidden;
  border: 1px solid rgba(82, 103, 124, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(37, 63, 84, 0.18), transparent 45%),
    var(--panel);
  box-shadow: 5px 7px 20px rgba(0, 0, 0, 0.33);
  opacity: 0;
  transform: translateY(12px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    opacity 340ms ease;
}

.run-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.run-card:hover {
  z-index: 1;
  border-color: var(--accent);
  background-color: var(--panel-hover);
  transform: translateY(-4px);
}

.run-card:nth-child(5n + 2) { --accent: #86b8e5; }
.run-card:nth-child(5n + 3) { --accent: #d6bb78; }
.run-card:nth-child(5n + 4) { --accent: #88d3c1; }
.run-card:nth-child(5n) { --accent: #b9a8e8; }

.run-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border: 1px solid var(--accent);
  opacity: 0.1;
  transform: rotate(45deg);
}

.run-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 15px color-mix(in srgb, var(--accent) 60%, transparent);
}

.run-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 16px;
}

.run-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.run-card__meta span + span::before {
  content: "◆";
  margin-right: 6px;
  color: var(--accent);
  font-size: 0.45rem;
  vertical-align: middle;
}

.run-card h3 {
  margin: 0;
  color: var(--heading);
  font-family: "Hylia Serif", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.78rem);
  font-weight: 400;
  line-height: 1.08;
}

.run-card__full-name {
  margin: 6px 0 0;
  color: #71889a;
  font-size: 0.72rem;
  line-height: 1.3;
}

.run-card__category {
  margin: 12px 0 0;
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.run-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: auto;
  padding-top: 15px;
}

.runner-label,
.estimate-label {
  display: block;
  margin-bottom: 7px;
  color: #768b9b;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.runner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.runner {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  max-width: 100%;
  padding: 5px 7px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(82, 103, 124, 0.75);
  border-radius: 5px;
  background: rgba(35, 54, 71, 0.62);
  font-size: 0.71rem;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  transition: 140ms ease;
}

a.runner:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(45, 103, 136, 0.28);
}

.runner b {
  color: var(--cyan);
  font-size: 0.66rem;
}

.estimate {
  min-width: 112px;
  padding: 9px 11px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  border-radius: 7px;
  background: rgba(6, 14, 22, 0.72);
  text-align: right;
}

.estimate strong {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 0.9;
  white-space: nowrap;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px 0 40px;
  border-top: 1px solid rgba(214, 187, 120, 0.5);
}

footer img {
  width: 150px;
  height: auto;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer p span {
  margin: 0 6px;
  color: var(--gold);
}

.footer-note {
  color: #687b8b;
  text-align: right;
}

@media (max-width: 760px) {
  .topbar,
  .hero__content,
  .lineup,
  footer {
    width: min(100% - 28px, 1380px);
  }

  .hero {
    min-height: auto;
    background-position: 58% center;
  }

  .topbar {
    min-height: 58px;
  }

  .edition-mark {
    font-size: 0;
  }

  .edition-mark i {
    width: 9px;
    height: 9px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 0 50px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5.3rem);
  }

  .hero__intro {
    margin-top: 19px;
  }

  .lineup {
    padding: 54px 0 70px;
  }

  .lineup__heading {
    display: block;
  }

  .results-count {
    margin-top: 12px;
  }

  .run-grid {
    grid-template-columns: 1fr;
  }

  .run-card {
    min-height: 205px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }

  footer img {
    margin: auto;
  }

  .footer-note {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .stat:nth-child(2) {
    border-top: 1px solid rgba(82, 103, 124, 0.66);
    border-left: 0;
  }

  .stat--wide {
    grid-column: auto;
  }

  .run-card__footer {
    grid-template-columns: 1fr;
  }

  .estimate {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .run-card {
    opacity: 1;
    transform: none;
  }
}
