@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #161023;
  --hero: #1b1231;
  --panel: #241939;
  --ink: #fff8ef;
  --muted: #d9cde9;
  --subtle: #bca8d3;
  --line: #514068;
  --gold: #ffbf68;
  --mint: #93ebd4;
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.55 "DM Sans", system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.04; font-weight: 800; overflow-wrap: anywhere; }
h2 { font-size: clamp(2rem, 4.8vw, 3.75rem); letter-spacing: -.055em; }
p { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--page); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }

.site-header { background: #171025; border-bottom: 1px solid #36244a; }
.nav, .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; flex-wrap: wrap; }
.nav { min-height: 4.6rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; letter-spacing: -.037em; text-decoration: none; }
.brand img { border-radius: .72rem; }
nav { display: flex; align-items: center; gap: clamp(.6rem, 2.5vw, 2.2rem); flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 650; color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav-beta { color: var(--gold); }
@media (max-width: 29rem) {
  .nav { min-height: 3.75rem; padding-block: .35rem; column-gap: .5rem; }
  .nav nav { column-gap: .95rem; font-size: .87rem; }
  .nav .brand { font-size: .95rem; }
  .nav .brand img { width: 30px; height: 30px; }
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid #483460;
  background: radial-gradient(ellipse at 76% 46%, #342052, transparent 56%), var(--hero);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding-top: 2.4rem; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #e1c9ff;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.signal { width: .55rem; height: .55rem; flex: none; background: var(--mint); transform: rotate(45deg); border-radius: 2px; }
.hero h1 {
  margin: .9rem 0 .9rem;
  font-size: clamp(3.25rem, 11.2vw, 8.2rem);
  letter-spacing: -.086em;
  line-height: .85;
}
.hero h1 span { color: var(--gold); }
.hero-tagline { font-size: clamp(1.3rem, 4.5vw, 2.2rem); font-weight: 800; color: var(--ink); letter-spacing: -.045em; }
.lede { max-width: 32ch; margin-top: .65rem; font-size: 1.08rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  min-height: 3rem;
  max-width: 100%;
  padding: .68rem min(1rem, 4vw);
  border: 1px solid transparent;
  border-radius: .8rem;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.button-primary { background: var(--gold); color: #281331; box-shadow: 0 4px 0 #a85652; }
.button-primary:hover { background: #ffcf90; }
.button-quiet { border-color: #74578e; background: #241734; color: var(--ink); }
.button-quiet:hover { background: #3b2555; }

.hero-art { position: relative; width: min(100%, 35rem); aspect-ratio: 1.11; margin: .65rem auto .55rem; isolation: isolate; }
.orb {
  position: absolute;
  inset: 7% 8% 5%;
  border-radius: 50%;
  border: 1px solid #9d74df;
  background:
    radial-gradient(ellipse at 43% 32%, #9565e7 0%, #7345c2 48%, #4d298a 89%);
  box-shadow: inset 0 0 3.5rem #321751, 0 0 5rem #7841c040;
}
.orb::before, .orb::after { content: ""; position: absolute; border: 1px solid #d7adff48; border-radius: inherit; }
.orb::before { inset: 7%; }
.orb::after { inset: 14%; }
.hero-fox, .hero-cards { position: absolute; height: auto; filter: drop-shadow(0 1rem 1.2rem #21103494); }
.hero-fox { width: 68%; top: 6%; left: 16%; transform: rotate(-5deg); }
.hero-cards { width: 87%; left: 6.5%; top: 56%; transform: rotate(5deg); }
.spark { position: absolute; color: #ffe5a5; font-size: clamp(1.4rem, 5vw, 3.4rem); line-height: 1; z-index: 1; }
.spark-one { top: 23%; left: 3%; }
.spark-two { top: 19%; right: 7%; color: #ffc3f8; }
.spark-three { top: 53%; right: 0; font-size: 1.7rem; color: #adf3dc; }
@media (min-width: 49rem) {
  .hero-grid { grid-template-columns: 1fr 1.07fr; min-height: 38rem; padding-block: 1.6rem; }
  .hero h1 { font-size: clamp(4.1rem, 9.9vw, 8.2rem); }
  .hero h1 span { display: block; }
  .hero-art { margin: 0 auto; }
}
@media (max-width: 23rem) {
  .hero h1 { font-size: min(2.9rem, 14.7vw); }
  .wrap { width: calc(100% - 2rem); }
}

.memory { padding-block: clamp(3rem, 7vw, 6rem); background: #1c142d; }
.memory-heading { display: grid; gap: .8rem 2.5rem; align-items: end; margin-bottom: 1.65rem; }
.memory-heading h2, .beta h2 { margin-top: .55rem; }
.memory-heading > p { max-width: 45ch; }
.gallery { display: grid; gap: 1.35rem; }
.screen {
  display: grid;
  place-items: center;
  grid-template-rows: minmax(0, 1fr);
  height: clamp(21rem, 77vw, 26rem);
  padding: .85rem;
  margin-bottom: .85rem;
  border: 1px solid #ffffff42;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at center 72%, #a16be0, #422367);
}
.screen-match { background: radial-gradient(ellipse at center 72%, #4a97a0, #183b50); }
.screen-map { background: radial-gradient(ellipse at center 72%, #9a6c6f, #543454); }
.screen img {
  min-height: 0;
  height: auto;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border: .35rem solid #1d1528;
  border-radius: 1.3rem;
  box-shadow: 0 1rem 3rem #1c112d9c;
}
.screen:hover { border-color: var(--mint); }
figcaption { display: grid; gap: .12rem; }
figcaption strong { font-size: 1.18rem; }
figcaption span { color: var(--muted); }
@media (min-width: 40rem) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screen { height: clamp(15rem, 28vw, 25rem); }
}
@media (min-width: 49rem) {
  .memory-heading { grid-template-columns: 1fr .65fr; }
  .memory-heading > p { justify-self: end; }
}

.roadmap { padding-block: clamp(2.8rem, 6vw, 5.1rem) 1rem; }
.roadmap h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.15rem; }
.upcoming { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; }
.upcoming-card { display: flex; align-items: center; gap: min(1rem, 4vw); min-height: 7rem; padding: min(1rem, 4vw); border: 1px solid var(--line); border-radius: 1.05rem; background: #261934; }
.upcoming-card.sort { background: #212137; }
.upcoming-card h3 { font-size: 1.35rem; }
.upcoming-card p { margin-top: .28rem; color: #e1c7fb; font-size: .87rem; font-weight: 700; }
.sort p { color: #b9f3e5; }
.game-icon { position: relative; display: flex; flex: none; align-items: center; justify-content: center; gap: 2px; width: 56px; height: 56px; border-radius: .95rem; background: #593680; }
.blocks i { position: absolute; width: 13px; height: 13px; border-radius: .19rem; border: 1px solid #ffd3fa; background: #e5a9fe; }
.blocks i:nth-child(1) { top: 25%; left: 29%; }
.blocks i:nth-child(2) { top: 51%; left: 29%; }
.blocks i:nth-child(3) { top: 51%; left: 55%; background: #ffc781; }
.tubes { align-items: end; padding-bottom: 13px; background: #265364; }
.tubes i { width: 7px; height: 23px; border: 1px solid #b6f5ff; border-radius: .1rem .1rem .3rem .3rem; background: linear-gradient(transparent 36%, #92edcf 37%); transform: rotate(12deg); }
.tubes i:nth-child(2) { height: 28px; background: linear-gradient(transparent 39%, #ffbc72 40%); }
.tubes i:nth-child(3) { background: linear-gradient(transparent 28%, #dba7ff 29%); }
@media (min-width: 40rem) { .upcoming { grid-template-columns: 1fr 1fr; } }

.beta { padding-block: 2rem clamp(3rem, 7vw, 5.5rem); }
.beta-panel {
  display: grid;
  gap: 1.3rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(min(1.35rem, 6vw), 4vw, 3rem);
  border: 1px solid #9164bb;
  border-radius: 1.35rem;
  background: radial-gradient(ellipse at 100% 0, #5b3583, transparent 75%), #32204a;
}
.beta h2 { font-size: clamp(1.8rem, 5vw, 3.4rem); }
.beta-panel p:not(.eyebrow) { max-width: 52ch; margin-top: .8rem; }
.beta-actions { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: .85rem; }
.text-link { color: #f2d7ff; overflow-wrap: anywhere; text-underline-offset: 4px; font-weight: 700; }
.text-link:hover { color: var(--gold); }
@media (min-width: 49rem) { .beta-panel { grid-template-columns: 1fr auto; } }

.document { max-width: 64rem; padding-block: clamp(2.6rem, 6vw, 5.25rem); }
.document-intro {
  padding: clamp(min(1.25rem, 6vw), 4vw, 3rem);
  border: 1px solid #67468e;
  border-radius: 1.35rem;
  background: radial-gradient(ellipse at 98% 0, #513277, transparent 86%), var(--panel);
}
.document-intro h1 { margin: .8rem 0 .6rem; font-size: min(14vw, clamp(2.7rem, 7vw, 5.2rem)); letter-spacing: -.072em; }
.document-intro p { max-width: 56ch; font-size: 1.1rem; }
.document-intro .button { margin-top: 1rem; }
.document-intro .byline { margin-top: 1rem; font-size: .92rem; color: #e4cff7; }
.reading { width: min(100%, 47rem); margin: 1.15rem auto 0; }
.reading section { padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.reading section:last-child { border-bottom: 0; }
.reading h2 { font-size: clamp(1.45rem, 4.7vw, 2.05rem); margin-bottom: .55rem; }
.reading p + p { margin-top: .68rem; }
.reading ol { padding-left: 1.45rem; margin-block: .55rem; color: var(--muted); }
.reading li + li { margin-top: .34rem; }
.reading a { color: #f4cdff; text-underline-offset: 3px; overflow-wrap: anywhere; }

.site-footer { padding-block: 1.3rem; border-top: 1px solid #4a385e; background: #140e20; }
.site-footer p { margin: .45rem 0 0; color: var(--subtle); font-size: .88rem; }
.site-footer nav { gap: .25rem 1.15rem; font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
