:root {
  color-scheme: dark;
  --background: #08171a;
  --surface: #102529;
  --line: #2a4246;
  --text: #f5f0e3;
  --muted: #b8c9c6;
  --gold: #ffc66a;
  --teal: #b1e6db;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.58 var(--body);
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

img, video { display: block; max-width: 100%; }
p, h1, h2, h3, h4, figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.07;
  font-weight: 700;
}

h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.045em; }
h3 { font-size: clamp(1.46rem, 2.6vw, 2rem); letter-spacing: -0.032em; }
h4 { font-size: 1.55rem; letter-spacing: -0.025em; }
section[id] { scroll-margin-top: 1rem; }

.wrap {
  width: min(71.25rem, calc(100% - 5rem));
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.header-content, .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font: bold 1.52rem/1 var(--display);
  text-decoration: none;
  letter-spacing: -0.045em;
}

.mark {
  display: grid;
  grid-template-columns: repeat(2, 0.375rem);
  gap: 0.105rem;
  transform: rotate(45deg);
  margin-inline: 0.2rem;
}

.mark i { aspect-ratio: 1; background: var(--gold); border-radius: 1px; }
.mark i:nth-child(2) { opacity: 0.72; }
.mark i:nth-child(3) { opacity: 0.55; }
.mark i:nth-child(4) { opacity: 0.34; }

nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
nav a, .footer-content a { font-size: 0.9rem; font-weight: 650; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.75rem);
  padding-block: clamp(2.6rem, 6.1vw, 5.25rem);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.eyebrow::before { content: ""; width: 1.65rem; height: 1px; background: currentColor; }

h1 {
  font-size: clamp(2.8rem, 5.25vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.067em;
}

h1 em { color: var(--gold); font-weight: inherit; }
.intro { color: var(--muted); margin-top: 1.2rem; font-size: 1.08rem; max-width: 31rem; }
.hero-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1.45rem; }

.hero-art {
  width: 100%;
  height: auto;
  border: 1px solid #395256;
  border-radius: 0.65rem;
  box-shadow: 0 1.5rem 3.5rem #0005, 0 0 3.5rem #27484244;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.33rem;
  font-weight: 750;
  font-size: 0.94rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  transition: background 160ms, border-color 160ms, color 160ms;
}

.primary { background: var(--gold); color: #241606; }
.primary:hover { background: #ffdb9b; color: #241606; }
.secondary { border-color: #456060; }
.secondary:hover { border-color: var(--gold); }
.play { background: var(--teal); color: #0a2a27; }
.play:hover { background: #d7f6ee; color: #0a2a27; }

.join-section {
  padding-block: clamp(2rem, 5vw, 3.65rem);
  background: linear-gradient(115deg, #163135 0%, #102327 75%);
  border-block: 1px solid var(--line);
}

.section-heading { display: grid; gap: 0.65rem; margin-bottom: 1.35rem; }
.section-heading p { color: var(--muted); }

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

.step {
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border: 1px solid #3a5252;
  border-top-color: var(--gold);
  border-radius: 0.48rem;
  background: #0c2023;
}

.step:nth-child(2) { border-top-color: var(--teal); }

.step-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 2.42rem;
  aspect-ratio: 1;
  border-radius: 0.33rem;
  background: #312a1b;
  color: var(--gold);
  font: bold 1.05rem/1 var(--body);
}

.step:nth-child(2) .step-number { background: #193733; color: var(--teal); }
.step > div { display: flex; flex-direction: column; align-items: flex-start; }
.step p { color: var(--muted); margin-block: 0.44rem 0.95rem; }
.step strong { color: var(--text); font-weight: 650; }
.step .button { margin-top: auto; }
.tester-note { color: var(--muted); margin-top: 1.05rem; }

.gameplay-section { padding-block: clamp(3rem, 6vw, 5rem); }
.gameplay-heading { max-width: 48rem; margin-bottom: 1.45rem; }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.highlight {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}

.highlight video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: #0a1112;
}

.highlight figcaption { padding: 0.95rem; }
.highlight h3 { font-size: 1.38rem; }
.highlight figcaption p {
  margin-top: 0.4rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.modes { margin-top: clamp(2rem, 4.5vw, 3.4rem); }
.modes > h3 { margin-bottom: 1rem; }

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

.mode {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}

.mode video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0a1112; }
.mode-copy { padding: 1.1rem; }
.mode p { margin-top: 0.5rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-content { font-size: 0.9rem; }

@media (max-width: 56rem) {
  .wrap { width: min(50rem, calc(100% - 3rem)); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .hero-break { display: none; }
  .intro { max-width: 40rem; }
  .hero-art { max-width: 44rem; }
  .highlight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 41rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-content { min-height: 3.8rem; }
  nav { gap: 0.8rem; }
  .brand { font-size: 1.25rem; gap: 0.53rem; }
  .steps, .mode-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .highlight figcaption { padding: 0.75rem; }
  .highlight h3 { font-size: 1.25rem; }
  .step { padding: 1rem; gap: 0.65rem; }
  .footer-content { min-height: 4.2rem; flex-wrap: wrap; padding-block: 0.8rem; gap: 0.35rem 1rem; }
}

@media (max-width: 22rem) {
  nav { gap: 0.45rem; }
  .brand { font-size: 1.12rem; }
  .header-content { gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
