:root {
  color-scheme: dark;
  --gold: #f2bd45;
  --gold-soft: #e2a938;
  --ink: #090b0c;
  --panel: #121719;
  --paper: #edf0ea;
  --muted: #a8b0ac;
  --line: rgba(242, 189, 69, 0.25);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 50% 0, rgba(242, 189, 69, 0.08), transparent 34rem),
    var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

.hero {
  position: relative;
  min-height: min(84svh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(2rem, env(safe-area-inset-top)) 1.5rem 4rem;
  isolation: isolate;
}

.backdrop {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url("/site/images/world.png") center 54% / cover no-repeat;
  image-rendering: pixelated;
  filter: saturate(0.83) contrast(1.08);
  transform: scale(1.04);
}

.veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 8, 0.42), rgba(5, 7, 8, 0.12) 42%, #090b0c 100%),
    radial-gradient(circle at center, transparent 5%, rgba(4, 5, 6, 0.62) 95%);
}

.hero-content {
  width: min(760px, 94vw);
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.game-logo {
  width: min(720px, 92vw);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 4px rgba(0, 0, 0, 0.7));
}

.tagline {
  max-width: 650px;
  margin: 0;
  color: #fff8e7;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  line-height: 1.35;
  text-wrap: balance;
  text-shadow: 0 2px 5px #000;
}

.status {
  margin: 0.5rem 0 0;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(242, 189, 69, 0.6);
  background: rgba(9, 11, 12, 0.78);
  color: var(--gold);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  max-width: 780px;
  margin: 0 0 1.5rem;
  color: #fff8e7;
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

.about > p:not(.eyebrow, .age-note) {
  max-width: 760px;
  margin: 0;
  color: #c6ccc8;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.6;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: clamp(3rem, 7vw, 6rem) 0 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.features article {
  min-height: 240px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(145deg, #151b1d, #0f1315);
}

.features span {
  color: var(--gold-soft);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.78rem;
}

.features h3 {
  margin: 2.5rem 0 0.8rem;
  color: #fff8e7;
  font-size: 1.35rem;
}

.features p, .age-note {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

.age-note {
  margin: 0;
  font-size: 0.88rem;
}

footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.84rem;
}

footer img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

footer p { margin: 0 0 0.45rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; }
footer a { color: #d8dcda; text-underline-offset: 0.25em; }
footer a:hover, footer a:focus-visible { color: var(--gold); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .hero { min-height: 76svh; }
  .features { grid-template-columns: 1fr; }
  .features article { min-height: auto; }
  .features h3 { margin-top: 1.25rem; }
}

@media (max-width: 460px) {
  .hero { padding-inline: 0.75rem; }
  .about, footer { width: min(100% - 1.25rem, 1120px); }
  footer { align-items: flex-start; }
}

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