:root {
  color-scheme: light;
  --background: #f7f6f2;
  --surface: #ffffff;
  --text: #171717;
  --muted: #676767;
  --line: #d9d7d0;
  --accent: #a52337;
  --page: min(1180px, calc(100vw - 64px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection { color: #fff; background: var(--accent); }

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

.wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

nav { display: flex; gap: 32px; }

nav a,
.footer-links a {
  color: var(--muted);
  font-size: .83rem;
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover { color: var(--text); }

.game-feature {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.game-art { overflow: hidden; background: #090816; }
.game-art img { width: 100%; height: auto; }

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

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.game-copy h1 {
  margin: 0 0 24px;
  max-width: 100%;
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: .95;
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}

.game-copy > p:not(.kicker) {
  max-width: 430px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.plain-section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 116px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.plain-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.035em;
}

.plain-section p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact { padding-bottom: clamp(88px, 11vw, 150px); }

.contact-email {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

footer {
  width: var(--page);
  min-height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.footer-wordmark { font-size: .95rem; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: .78rem;
}

.legal-main {
  width: min(760px, calc(100vw - 64px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow span { display: none; }

.legal-header h1,
.error-page h1 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.legal-updated,
.legal-content p,
.legal-content li { color: var(--muted); }

.legal-updated { margin: 0; font-size: .85rem; }
.legal-content { padding-top: 22px; }
.legal-content h2 { margin: 44px 0 12px; font-size: 1.1rem; }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--text); text-underline-offset: 4px; }

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.error-page main { max-width: 620px; }
.error-page .wordmark { margin: 0 0 40px; color: var(--text); }
.error-page p { color: var(--muted); }
.error-page .text-link { display: inline-block; margin-top: 20px; text-underline-offset: 5px; }
.error-page .text-link span { color: var(--accent); }

@media (max-width: 760px) {
  :root { --page: calc(100vw - 32px); }
  .site-header { min-height: 76px; }
  .wordmark { font-size: 1.05rem; }
  nav { gap: 16px; }
  nav a { font-size: .75rem; }

  .game-feature {
    padding: 56px 0 80px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .game-copy h1 { font-size: clamp(2.25rem, 11vw, 3.25rem); }

  footer {
    min-height: 190px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
  }

  .legal-main { width: calc(100vw - 32px); }
}

@media (max-width: 420px) {
  nav { gap: 12px; }
  nav a { font-size: .7rem; }
}

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