:root {
  color-scheme: dark;
  --bg: #090c11;
  --surface: #11151d;
  --surface-raised: #171c25;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f1eee6;
  --muted: #9299a5;
  --accent: #d7ff64;
  --accent-warm: #ff9c6b;
  font-family: "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px), var(--bg);
  background-size: 64px 64px;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one {
  top: -22rem;
  right: -8rem;
  background: var(--accent);
}

.ambient-two {
  top: 62rem;
  left: -28rem;
  background: #4d74ff;
}

.hero,
.collection,
footer {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.hero {
  min-height: min(900px, 96vh);
  padding: 28px 0 80px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font: 500 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: -0.08em;
}

.hero-feature {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(48px, 6vw, 92px);
  padding: 78px 0 58px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font: 500 11px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(58px, 7.4vw, 106px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.hero-subtitle {
  margin-bottom: 30px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-warm);
  font-size: clamp(24px, 3vw, 38px);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 34px;
}

.hero-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font: 400 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-play {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 248px);
  padding: 17px 18px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #10130a;
  font: 600 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.hero-play:hover,
.hero-play:focus-visible {
  transform: translateY(-3px);
  background: transparent;
  color: var(--accent);
  outline: none;
}

.hero-art {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 29, 0.74);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.hero-art::before {
  position: absolute;
  z-index: -1;
  inset: 8% -8% -10% 14%;
  content: "";
  background: rgba(255, 156, 107, 0.16);
  filter: blur(80px);
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.hero-art figcaption {
  display: flex;
  justify-content: space-between;
  padding: 13px 5px 3px;
  color: var(--muted);
  font: 400 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font: 400 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scroll-line {
  width: 76px;
  height: 1px;
  background: var(--line);
}

.collection {
  padding: 108px 0 80px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 50px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.game-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 280ms ease, border-color 280ms ease, background 280ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  z-index: 1;
  transform: translateY(-6px);
  border-color: rgba(215, 255, 100, 0.56);
  background: var(--surface-raised);
  outline: none;
}

.game-card:last-child {
  width: calc(50% - 12px);
  grid-column: 1 / -1;
  justify-self: center;
}

.card-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070a;
}

.card-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.card-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 300ms ease;
}

.game-card:hover img,
.game-card:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.04);
}

.card-number {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 20px;
  color: rgba(255, 255, 255, 0.82);
  font: 400 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.card-copy {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 27px 28px 25px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}

.tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font: 400 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-copy strong {
  margin-bottom: 13px;
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.description {
  max-width: 600px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.play {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent);
  font: 500 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .hero,
  .collection,
  footer {
    width: min(100% - 30px, 1280px);
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 58px;
  }

  .hero-feature {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 82px 0 52px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .hero-subtitle {
    margin-bottom: 24px;
  }

  .hero-meta {
    margin: 26px 0 30px;
  }

  .hero-art {
    padding: 7px;
  }

  .collection {
    padding-top: 72px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }

  .section-heading .eyebrow {
    grid-column: 1;
  }

  .section-heading > p:last-child {
    justify-self: start;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-card:last-child {
    width: 100%;
    grid-column: auto;
  }

  .card-copy {
    min-height: 224px;
  }
}

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

  .game-card,
  .card-visual img,
  .hero-play {
    transition: none;
  }
}
