:root {
  color-scheme: dark;
  --ink: #080a0b;
  --surface: #111719;
  --surface-raised: #182023;
  --line: #344044;
  --line-soft: #20292c;
  --text: #f5f6f3;
  --muted: #aab7b4;
  --red: #ff6268;
  --yellow: #f6ca57;
  --cyan: #5cd5e6;
  --green: #64d69f;
  --blue: #6b94ff;
  --wrap: 1320px;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 1px solid var(--cyan);
  background: var(--ink);
  color: var(--text);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 10, 11, 0.94);
}

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

.brand {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 26px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--text); }

.nav-link[aria-current="page"] { color: var(--text); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--red);
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050607;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 44%;
  opacity: 0.64;
  filter: saturate(1.18) contrast(1.06);
}

.hero-shade { background: rgba(4, 6, 7, 0.74); }

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 78px 132px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

.t-star { color: var(--cyan); }
.t-smash { color: var(--yellow); }
.t-mario { color: var(--red); }

.hero-copy {
  max-width: 770px;
  margin-top: 30px;
  color: #d3dcda;
  font-size: 16px;
}

.hero-copy p { margin: 0; }
.hero-copy p + p { margin-top: 12px; }
.hero-copy strong { color: var(--text); }
.hero-copy a { color: var(--green); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  border-color: var(--yellow) !important;
  background: var(--yellow);
  color: #16130a;
}

.secondary-action { background: rgba(8, 10, 11, 0.78); }

.hero-actions a:hover,
.hero-actions a:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.hero-stats {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 10, 11, 0.92);
}

.stat-strip {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.stat-strip > * {
  min-width: 0;
  padding: 0 24px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.stat-strip > *:first-child { padding-left: 0; }
.stat-strip > * + * { border-left: 1px solid var(--line); }
.stat-strip strong { color: var(--text); }
.stat-strip a:hover strong,
.stat-strip a:focus-visible strong { color: var(--cyan); }

.feature-section,
.matches-section { padding-block: 74px 88px; }

.matches-section {
  border-top: 1px solid var(--line-soft);
  background: #0b0e0f;
}

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

.section-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.collage {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.match-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.match-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.match-info {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
}

.match-number {
  color: var(--yellow);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.match-info h3 {
  min-width: 0;
  margin: 0;
  font-size: 15px;
}

.site-footer { border-top: 1px solid var(--line); }

.footer-bar {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-bar p { margin: 0; }
.footer-bar a { text-decoration: underline; text-underline-offset: 4px; }
.footer-bar a:hover,
.footer-bar a:focus-visible { color: var(--cyan); }

@media (max-width: 980px) {
  h1 { font-size: 54px; }
  .hero { min-height: 700px; }
  .hero-content { padding-top: 70px; }
  .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .header-bar { min-height: 58px; gap: 14px; }
  nav { gap: 14px; }
  .nav-link { font-size: 11px; }
  .hero { min-height: 730px; align-items: start; }
  .hero-image { object-position: 55% center; }
  .hero-content { padding-block: 54px 216px; }
  h1 { font-size: 42px; line-height: 1.02; }
  .hero-copy { margin-top: 22px; font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions a { justify-content: space-between; }
  .hero-stats { background: rgba(8, 10, 11, 0.96); }
  .stat-strip { min-height: 184px; display: block; padding-block: 5px; }
  .stat-strip > * {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
  }
  .stat-strip > * + * { border-top: 1px solid var(--line); border-left: 0; }
  .feature-section,
  .matches-section { padding-block: 52px 64px; }
  .section-head { display: block; margin-bottom: 18px; }
  .section-head h2 { font-size: 28px; }
  .section-head > p { margin-top: 7px; }
  .match-grid { grid-template-columns: 1fr; gap: 14px; }
  .match-card:hover { transform: none; }
  .footer-bar { min-height: 134px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
}

@media (max-width: 390px) {
  .brand { font-size: 11px; }
  nav { gap: 10px; }
  h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .match-card { transition: none; }
}
