:root {
  color-scheme: light dark;
  --bg: #0b0c10;
  --surface: #13151b;
  --surface-raised: #1a1d25;
  --text: #f4f1e9;
  --muted: #aaa9a5;
  --line: #30323a;
  --accent: #e79a3b;
  --accent-ink: #24170a;
  --error: #ffb2a3;
  --subtle: #9c9da3;
  --disabled-text: #aeadb0;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgb(231 154 59 / 0.08), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.shell {
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.identity span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  letter-spacing: 0;
}

.header-link,
.text-link {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.header-link:hover,
.text-link:hover {
  color: var(--text);
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(48px, 7vh, 84px);
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.availability,
.success-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9ch;
  margin: 18px 0 24px;
  font-size: clamp(3.8rem, 7.2vw, 7.4rem);
  font-weight: 560;
  letter-spacing: -0.072em;
  line-height: 0.89;
}

.hero-intro {
  max-width: 28rem;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.52;
}

.access-stage {
  position: relative;
  min-height: min(690px, calc(100dvh - 156px));
  overflow: hidden;
  border-radius: var(--radius);
  background: #141329;
  box-shadow: 0 40px 120px rgb(3 4 8 / 0.52);
}

.access-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.02);
}

.access-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(8 8 20 / 0.06), rgb(8 8 20 / 0.88) 76%);
  pointer-events: none;
}

.access-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: var(--radius);
  background: rgb(15 16 24 / 0.92);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  backdrop-filter: blur(18px);
}

.access-heading h2,
.access-success h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.access-heading p,
.access-success p {
  max-width: 24ch;
  margin: 0;
  color: #c3c1bc;
  font-size: 0.9rem;
  line-height: 1.5;
}

#access-form {
  display: grid;
  gap: 12px;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #dfddd7;
  font-size: 0.79rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #565863;
  border-radius: 10px;
  background: #0c0e14;
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

.field input::placeholder {
  color: #8f9097;
}

.turnstile-wrap {
  min-height: 65px;
}

#unlock-button,
.play-link,
.access-success a,
.dispatch a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

#unlock-button:hover,
.play-link:hover,
.access-success a:hover,
.dispatch a:hover {
  background: #f2ae59;
}

#unlock-button:active,
.play-link:active,
.access-success a:active,
.dispatch a:active {
  transform: translateY(1px) scale(0.99);
}

#unlock-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-note,
.form-status {
  margin: 0;
  color: #a9a8a5;
  font-size: 0.72rem;
  line-height: 1.45;
}

.form-status:not(:empty) {
  color: var(--error);
}

.access-success {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
  align-items: end;
  gap: 18px;
}

.access-success .success-kicker {
  grid-column: 1 / -1;
}

.access-success h2 {
  margin: 0;
}

.catalog {
  padding-block: clamp(96px, 12vw, 176px);
}

.catalog-heading {
  max-width: 680px;
  margin-bottom: 48px;
}

.catalog-heading h2,
.dispatch h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  font-weight: 570;
  letter-spacing: -0.064em;
  line-height: 0.94;
}

.catalog-heading p {
  max-width: 36ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

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

.game-card {
  grid-column: span 7;
}

.game-card:nth-child(even) {
  grid-column: span 5;
  margin-top: 148px;
}

.game-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #171922;
}

.game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 540ms cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .game-art img {
  transform: scale(1.025);
}

.game-card--tiles .game-art {
  background:
    linear-gradient(145deg, rgb(16 25 31 / 0.22), rgb(4 6 8 / 0.88)),
    #15242c;
}

.game-card--tiles .game-art img {
  object-fit: cover;
  object-position: 48% 35%;
  filter: saturate(0.82) brightness(0.88);
}

.game-card--space .game-art img {
  object-position: 62% center;
}

.game-copy {
  padding-top: 22px;
}

.game-copy h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 610;
  letter-spacing: -0.045em;
}

.game-copy > p:not(.availability) {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.game-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.game-copy dl div {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.game-copy dt {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-copy dd {
  margin: 5px 0 0;
  font-size: 0.88rem;
}

.play-link {
  min-width: 160px;
  padding-inline: 22px;
}

.play-link.is-locked {
  background: var(--surface-raised);
  color: var(--disabled-text);
  cursor: not-allowed;
}

.play-link.is-locked::after {
  content: " after access";
  margin-left: 0.25em;
  font-size: 0.72em;
  opacity: 0.76;
}

.dispatch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding-block: 48px 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dispatch h2 {
  max-width: 13ch;
  font-size: clamp(2.1rem, 4.5vw, 4.5rem);
}

.dispatch a {
  min-width: 150px;
  padding-inline: 22px;
}

.site-footer {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer a {
  color: var(--text);
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .access-stage {
    animation: arrive 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 130ms; }
  .hero-copy > :nth-child(4) { animation-delay: 190ms; }
  .access-stage { animation-delay: 120ms; }

  @keyframes arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f0f1f3;
    --surface: #e5e7ea;
    --surface-raised: #d9dce1;
    --text: #17191e;
    --muted: #565a62;
    --line: #c7cad0;
    --accent: #d47a25;
    --accent-ink: #211104;
    --subtle: #565a62;
    --disabled-text: #50545c;
  }

  body {
    background:
      radial-gradient(circle at 88% 8%, rgb(212 122 37 / 0.08), transparent 25rem),
      var(--bg);
  }

  .access-stage {
    box-shadow: 0 40px 120px rgb(40 45 56 / 0.2);
  }
}

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

  .hero-copy {
    padding-top: 22px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(4rem, 12vw, 7.2rem);
  }

  .access-stage {
    min-height: 680px;
  }

  .dispatch {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 767px) {
  .shell {
    width: min(100% - 32px, 1360px);
  }

  .site-header {
    min-height: 64px;
  }

  .header-link {
    font-size: 0.7rem;
  }

  .hero {
    min-height: auto;
    gap: 42px;
    padding-block: 48px 72px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(3.55rem, 18vw, 5.8rem);
  }

  .hero-intro {
    font-size: 1rem;
  }

  .access-stage {
    min-height: 690px;
  }

  .access-panel {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .access-success {
    grid-template-columns: 1fr;
  }

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

  .game-card,
  .game-card:nth-child(even) {
    grid-column: auto;
    margin-top: 0;
  }

  .catalog {
    padding-block: 96px;
  }

  .game-copy dl {
    grid-template-columns: 1fr;
  }

  .dispatch {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dispatch a {
    width: 100%;
  }

  .site-footer {
    min-height: 148px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

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

@media (prefers-reduced-transparency: reduce) {
  .access-panel {
    background: #0f1018;
    backdrop-filter: none;
  }
}
