/* Wandering Stars — the app's own materials, rebuilt for the web.
   Every value here comes from the app's design tokens (lib/ui/tokens):
   night enamel, brass, neon tube, and one dark keyline around everything
   you can press. */

@font-face {
  font-family: "Bungee";
  src: url("../fonts/Bungee-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #06060f;
  --night: #111838;
  --enamel: #1e2752;
  --enamel-lo: #141b3c;
  --enamel-hi: #2a3468;
  --brass-lo: #3b2a17;
  --brass: #7a5a2e;
  --brass-hi: #c9a05a;
  --brass-spec: #ffe9b0;
  --keyline: #050410;
  --ink-max: #f8f8fe;
  --ink: #dedeee;
  --ink-dim: #adadc8;
  --magenta: #ff2e9e;
  --magenta-lit: #ff8fd6;
  --magenta-deep: #5e0038;
  --magenta-core: #ffe7f4;
  --violet: #7c46e8;
  --violet-lit: #b49cff;
  --violet-deep: #2e0c6b;
  --gold: #ffc219;
  --gold-band: #fff07e;
  --gold-deep: #7a3400;
  --cyan: #41ddf8;
  --cyan-deep: #00596b;
  --lime: #67e427;
  --lime-deep: #1a5400;
  --danger: #ee1f28;
  --success: #21df9b;
  --ink-pink: #ea2c93;
  --ink-lime: #c4fe8d;
  --ink-cyan: #3ae3fd;
  --ink-orange: #df8600;
  --ink-violet: #9778fc;

  --keyline-w: 3px;
  --r-chip: 11px;
  --r-standard: 14px;
  --r-cta: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-press: cubic-bezier(.3, .9, .4, 1);
  --ease-land: cubic-bezier(.2, .9, .25, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

body {
  margin: 0;
  min-width: 250px;
  background-color: var(--void);
  color: var(--ink);
  font-family: "Rubik", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: rgba(255, 46, 158, .45);
  color: var(--ink-max);
}

:focus-visible {
  outline: 3px solid var(--gold-band);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #3a1c00;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 0 3px var(--keyline);
  transition: top .2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------------------------
   The sky. One fixed layer under every page: nebula blooms in the game's
   colours and three sizes of star, so scrolling moves only the foreground,
   as changing screens does in the app. */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 12% 8%, rgba(65, 221, 248, .10), transparent 70%),
    radial-gradient(55vmax 50vmax at 88% 18%, rgba(255, 46, 158, .16), transparent 70%),
    radial-gradient(70vmax 55vmax at 20% 88%, rgba(124, 70, 232, .30), transparent 70%),
    radial-gradient(60vmax 50vmax at 92% 92%, rgba(255, 46, 158, .22), transparent 72%),
    radial-gradient(120vmax 90vmax at 50% 40%, #1b1450 0%, var(--night) 45%, var(--void) 100%);
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.sky::before {
  opacity: .8;
  background-image:
    radial-gradient(1.2px 1.2px at 22px 38px, rgba(248, 248, 254, .9), transparent 60%),
    radial-gradient(1px 1px at 131px 91px, rgba(58, 227, 253, .8), transparent 60%),
    radial-gradient(1.4px 1.4px at 77px 164px, rgba(255, 143, 214, .85), transparent 60%),
    radial-gradient(1px 1px at 190px 22px, rgba(248, 248, 254, .7), transparent 60%),
    radial-gradient(1.2px 1.2px at 160px 180px, rgba(255, 240, 126, .8), transparent 60%);
  background-size: 210px 210px;
}

.sky::after {
  opacity: .55;
  background-image:
    radial-gradient(2px 2px at 60px 70px, rgba(248, 248, 254, .95), transparent 60%),
    radial-gradient(1.6px 1.6px at 300px 210px, rgba(58, 227, 253, .9), transparent 60%),
    radial-gradient(2.2px 2.2px at 420px 40px, rgba(255, 240, 126, .9), transparent 60%),
    radial-gradient(1.8px 1.8px at 180px 380px, rgba(255, 143, 214, .9), transparent 60%);
  background-size: 480px 460px;
}

/* ---------------------------------------------------------------------------
   Type. Bungee is signage only, never below 20px. Rubik carries the rest. */

.font-display {
  font-family: "Bungee", "Rubik", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
}

/* A lit sign: a hard dark ring, the tube's extrude dropped under it, and the
   glow on top. The ring is a text-shadow outline so it grows outward only and
   never eats into Bungee's counters. */
.sign {
  --sign-color: var(--magenta-lit);
  --sign-extrude: var(--magenta-deep);
  --sign-glow: rgba(255, 46, 158, .55);
  --sign-glow-far: rgba(255, 46, 158, .28);
  font-family: "Bungee", "Rubik", system-ui, sans-serif;
  font-weight: 400;
  line-height: .98;
  letter-spacing: .02em;
  color: var(--sign-color);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow:
    .034em .034em 0 var(--keyline),
    -.034em .034em 0 var(--keyline),
    .034em -.034em 0 var(--keyline),
    -.034em -.034em 0 var(--keyline),
    0 .048em 0 var(--keyline),
    0 -.048em 0 var(--keyline),
    .048em 0 0 var(--keyline),
    -.048em 0 0 var(--keyline),
    0 .085em 0 var(--sign-extrude),
    .03em .11em 0 var(--keyline),
    -.03em .11em 0 var(--keyline),
    0 .13em 0 var(--keyline),
    0 0 .18em var(--sign-glow),
    0 0 .55em var(--sign-glow-far);
}

.sign--gold {
  --sign-color: var(--gold-band);
  --sign-extrude: var(--gold-deep);
  --sign-glow: rgba(255, 194, 25, .5);
  --sign-glow-far: rgba(255, 194, 25, .25);
}

.sign--cyan {
  --sign-color: var(--ink-cyan);
  --sign-extrude: var(--cyan-deep);
  --sign-glow: rgba(65, 221, 248, .5);
  --sign-glow-far: rgba(65, 221, 248, .24);
}

.sign--lime {
  --sign-color: var(--ink-lime);
  --sign-extrude: var(--lime-deep);
  --sign-glow: rgba(103, 228, 39, .5);
  --sign-glow-far: rgba(103, 228, 39, .24);
}

.sign--violet {
  --sign-color: var(--violet-lit);
  --sign-extrude: var(--violet-deep);
  --sign-glow: rgba(124, 70, 232, .55);
  --sign-glow-far: rgba(124, 70, 232, .28);
}

.eyebrow {
  font-family: "Rubik", system-ui, sans-serif;
  font-weight: 700;
  font-size: .8125rem;
  line-height: 1.1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.lead {
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
}

.prose-ws {
  color: var(--ink);
  line-height: 1.7;
  max-width: 72ch;
}

.prose-ws h2,
.prose-ws h3 {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
}

.prose-ws h2 {
  font-family: "Rubik", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  line-height: 1.2;
  color: var(--ink-max);
  margin: 2.4rem 0 .75rem;
  scroll-margin-top: 110px;
}

.prose-ws h3 {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink-max);
  margin: 1.6rem 0 .5rem;
}

.prose-ws p,
.prose-ws ul,
.prose-ws ol {
  margin: 0 0 1rem;
}

.prose-ws ul,
.prose-ws ol {
  padding-left: 1.25rem;
}

.prose-ws li {
  margin: .35rem 0;
}

.prose-ws ul li::marker {
  color: var(--magenta-lit);
}

.prose-ws a,
.link {
  color: var(--magenta-lit);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 143, 214, .45);
  transition: color .2s, text-decoration-color .2s;
  overflow-wrap: anywhere;
}

.prose-ws a:hover,
.link:hover {
  color: var(--magenta-core);
  text-decoration-color: var(--magenta-lit);
}

.prose-ws strong {
  color: var(--ink-max);
  font-weight: 800;
}

/* ---------------------------------------------------------------------------
   Plate: night enamel in a dark keyline, bolted on with four brass rivets. */

.plate {
  position: relative;
  border-radius: var(--r-cta);
  background: linear-gradient(180deg, var(--enamel-hi) 0%, var(--enamel) 34%, var(--enamel-lo) 78%, var(--night) 100%);
  box-shadow:
    0 0 0 var(--keyline-w) var(--keyline),
    0 10px 26px -8px rgba(5, 4, 16, .62),
    0 24px 60px -24px rgba(0, 0, 0, .6);
}

.plate--rivets::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  --rivet: radial-gradient(circle at 38% 34%, var(--brass-spec) 0 .6px, var(--brass-hi) 1.3px, var(--brass) 2.2px, var(--brass-lo) 3px, var(--keyline) 3.1px 4.5px, transparent 4.7px);
  background-image: var(--rivet), var(--rivet), var(--rivet), var(--rivet);
  background-repeat: no-repeat;
  background-size: 9px 9px;
  background-position: 9px 9px, calc(100% - 9px) 9px, 9px calc(100% - 9px), calc(100% - 9px) calc(100% - 9px);
}

.plate--flat {
  background: linear-gradient(180deg, rgba(42, 52, 104, .72), rgba(20, 27, 60, .78));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* A sunken socket, the inverse of a slab: for icon wells and inputs. */
.socket {
  border-radius: var(--r-standard);
  background: linear-gradient(180deg, #0f1433, #1a2148 60%, #212a5c);
  box-shadow:
    0 0 0 var(--keyline-w) var(--keyline),
    inset 0 3px 4px rgba(0, 0, 0, .55),
    inset 0 -2px 0 #2e3878;
}

/* ---------------------------------------------------------------------------
   Slab: the app's pressable key. A face over a side of the same shape, the
   keyline painted outside both, the face travelling down when pressed but
   never all the way, so a pressed slab still has thickness. */

.slab {
  --depth: 7px;
  --radius: var(--r-standard);
  --lip: #ffd2ee;
  --face-hi: #ff7acb;
  --face: var(--magenta);
  --face-lo: #b8006e;
  --shade: #78003f;
  --bounce: #ff6ac4;
  --side: var(--magenta-deep);
  --label: var(--ink-max);
  --label-shadow: rgba(0, 0, 0, .38);
  --height: 56px;
  --pad-x: 26px;
  --font: 1rem;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  min-height: calc(var(--height) + var(--depth));
  padding: 0 0 var(--depth);
  border: 0;
  background: none;
  color: var(--label);
  font-family: "Rubik", system-ui, sans-serif;
  font-weight: 800;
  font-size: var(--font);
  letter-spacing: .06em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: top;
  max-width: 100%;
}

.slab::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--depth);
  bottom: 0;
  border-radius: var(--radius);
  background: var(--side);
  box-shadow:
    0 0 0 var(--keyline-w) var(--keyline),
    0 calc(var(--depth) * .9) calc(var(--depth) * 1.6) calc(var(--depth) * -.5) rgba(0, 0, 0, .75);
}

.slab__face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  width: 100%;
  min-height: var(--height);
  padding: .55em var(--pad-x);
  border-radius: var(--radius);
  text-align: center;
  background:
    radial-gradient(125% 85% at 50% -14%, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .10) 46%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, var(--face-hi) 0%, var(--face) 40%, var(--face-lo) 78%, var(--face-lo) 100%);
  box-shadow:
    0 0 0 var(--keyline-w) var(--keyline),
    inset 0 2px 1px var(--lip),
    inset 2px 0 2px rgba(255, 255, 255, .18),
    inset -2px 0 2px rgba(0, 0, 0, .16),
    inset 0 -7px 9px -4px var(--shade),
    inset 0 -2px 0 var(--bounce);
  text-shadow: 0 2px 0 var(--label-shadow), 0 0 3px rgba(0, 0, 0, .25);
  transform: translateY(0);
  transition: transform .22s var(--ease-land), filter .2s ease;
}

.slab__face > i {
  font-size: 1.15em;
}

.slab__caption {
  display: block;
  font-size: .68em;
  letter-spacing: .08em;
  opacity: .92;
  margin-top: .25em;
}

.slab:hover .slab__face {
  filter: brightness(1.06) saturate(1.05);
}

.slab:active .slab__face,
.slab.is-pressed .slab__face {
  transform: translateY(calc(var(--depth) - 2px));
  transition: transform .08s var(--ease-press);
}

.slab:focus-visible {
  outline: none;
}

.slab:focus-visible .slab__face {
  box-shadow:
    0 0 0 var(--keyline-w) var(--keyline),
    0 0 0 calc(var(--keyline-w) + 3px) var(--gold-band),
    inset 0 2px 1px var(--lip),
    inset 0 -7px 9px -4px var(--shade),
    inset 0 -2px 0 var(--bounce);
}

.slab[disabled],
.slab[aria-disabled="true"] {
  --lip: #66667e;
  --face-hi: #4e4e64;
  --face: #3e3e52;
  --face-lo: #2f2f3e;
  --shade: #1e1e28;
  --bounce: #4a4a5e;
  --side: #24242f;
  --label: #9a9ab0;
  cursor: not-allowed;
}

.slab[disabled] .slab__face {
  filter: none;
}

.slab--cta {
  --depth: 9px;
  --radius: var(--r-cta);
  --height: 68px;
  --pad-x: 30px;
  --font: 1.12rem;
}

.slab--chip {
  --depth: 5px;
  --radius: var(--r-chip);
  --height: 40px;
  --pad-x: 16px;
  --font: .8125rem;
}

.slab--block {
  display: flex;
  width: 100%;
}

.slab--violet {
  --lip: #dacefe;
  --face-hi: #a97cff;
  --face: var(--violet);
  --face-lo: #4e19b8;
  --shade: #1f0450;
  --bounce: #9a78ff;
  --side: var(--violet-deep);
}

.slab--gold {
  --lip: #fff8de;
  --face-hi: var(--gold-band);
  --face: var(--gold);
  --face-lo: #f0900a;
  --shade: #8a3d00;
  --bounce: #ffd874;
  --side: var(--gold-deep);
  --label: #3a1c00;
  --label-shadow: rgba(255, 255, 255, .5);
}

.slab--gold .slab__face {
  background:
    radial-gradient(120% 80% at 50% -6%, rgba(255, 252, 232, .95) 0%, rgba(255, 240, 190, .55) 30%, rgba(255, 255, 255, 0) 66%),
    linear-gradient(180deg, var(--gold-band) 0%, var(--gold) 34%, #f0900a 68%, #d2600a 88%, #b04a02 100%);
  text-shadow: 0 1px 0 var(--label-shadow);
}

.slab--cyan {
  --lip: #e4fcff;
  --face-hi: #a8f1ff;
  --face: var(--cyan);
  --face-lo: #0fa8c8;
  --shade: #00404f;
  --bounce: #7febff;
  --side: var(--cyan-deep);
  --label: var(--keyline);
  --label-shadow: rgba(255, 255, 255, .45);
}

.slab--cyan .slab__face {
  text-shadow: 0 1px 0 var(--label-shadow);
}

.slab--neutral {
  --lip: #6672b8;
  --face-hi: #454f92;
  --face: #2e3568;
  --face-lo: #1b2144;
  --shade: #080b1e;
  --bounce: #48539a;
  --side: #0f1330;
  --label: var(--ink);
}

.slab--lime {
  --lip: #eaffd0;
  --face-hi: #d3ff93;
  --face: var(--lime);
  --face-lo: #2f9400;
  --shade: #124000;
  --bounce: #a8f76b;
  --side: var(--lime-deep);
  --label: #0e2c00;
  --label-shadow: rgba(255, 255, 255, .45);
}

/* The store badge: a black slab in the app's keyline, Apple's wording. */
.slab--store {
  --lip: #3a3a52;
  --face-hi: #22222f;
  --face: #111118;
  --face-lo: #07070b;
  --shade: #000;
  --bounce: #26263a;
  --side: #000;
  --label: var(--ink-max);
  --height: 62px;
  --pad-x: 22px;
  text-transform: none;
  letter-spacing: 0;
}

.slab--store .slab__face {
  justify-content: flex-start;
  gap: .75rem;
  text-align: left;
}

.slab--store .fa-apple {
  font-size: 2rem;
}

.store-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store-lines small {
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.store-lines span {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: .01em;
}

/* ---------------------------------------------------------------------------
   Header and navigation. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 6, 15, .78);
  box-shadow: 0 1px 0 rgba(42, 52, 104, .9), 0 12px 30px -18px rgba(0, 0, 0, .8);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 0 0 var(--keyline-w) var(--keyline), 0 6px 16px -6px rgba(255, 46, 158, .6);
  flex: none;
}

.brand .sign {
  font-size: 1.22rem;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .55rem .8rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover {
  color: var(--ink-max);
  background: rgba(42, 52, 104, .55);
}

.nav-link[aria-current="page"] {
  color: var(--magenta-lit);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .25rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--magenta), var(--gold));
  box-shadow: 0 0 10px rgba(255, 46, 158, .6);
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
}

.mobile-nav {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .45s var(--ease-out), opacity .3s ease;
}

.mobile-nav.is-open {
  max-height: 760px;
  opacity: 1;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: rgba(42, 52, 104, .6);
  color: var(--ink-max);
}

.mobile-nav a[aria-current="page"] {
  color: var(--magenta-lit);
}

/* ---------------------------------------------------------------------------
   The title screen's neon floor: magenta rails running to a vanishing point,
   rungs crowding in the distance, a white-hot horizon. */

.neon-floor {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 0;
  height: 46%;
  pointer-events: none;
  perspective: 360px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.neon-floor__grid {
  position: absolute;
  inset: 0 0 -60%;
  transform-origin: 50% 0%;
  transform: rotateX(62deg);
  background-image:
    linear-gradient(rgba(255, 143, 214, .55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 143, 214, .55) 2px, transparent 2px);
  background-size: 64px 64px;
  background-position: center top;
}

.neon-floor__horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--magenta-lit) 20%, var(--ink-max) 50%, var(--magenta-lit) 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 46, 158, .55), 0 0 60px 12px rgba(255, 46, 158, .25);
}

/* ---------------------------------------------------------------------------
   Board: rows of key-cap cells, the play screen's own grid, used as a pattern. */

.board {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--r-cta);
  background: linear-gradient(180deg, #1a2046, #10142e);
  box-shadow: 0 0 0 var(--keyline-w) var(--keyline), inset 0 1px 0 rgba(102, 114, 184, .35), 0 20px 50px -20px rgba(0, 0, 0, .7);
}

.board__cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(180deg, #2b3470 0%, #222a5c 55%, #1b2150 100%);
  box-shadow:
    0 0 0 2.5px var(--keyline),
    inset 0 2px 0 rgba(102, 114, 184, .55),
    inset 0 -4px 6px -2px rgba(8, 11, 30, .9);
}

/* ---------------------------------------------------------------------------
   Phone: the screenshot inside a black glass bezel in the game's keyline. */

.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1206 / 2622;
  border-radius: clamp(26px, 13%, 46px) / clamp(26px, 6%, 46px);
  padding: 3.2%;
  background: linear-gradient(160deg, #2a2f4d 0%, #0d0f1c 30%, #06060f 70%, #1d2140 100%);
  box-shadow:
    0 0 0 var(--keyline-w) var(--keyline),
    inset 0 0 0 1.5px rgba(180, 156, 255, .25),
    0 30px 60px -20px rgba(0, 0, 0, .85),
    0 0 80px -10px rgba(255, 46, 158, .28);
  flex: none;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(20px, 10.5%, 38px) / clamp(20px, 4.9%, 38px);
  background: var(--void);
}

.phone--tilt-left {
  transform: rotate(-4deg);
}

.phone--tilt-right {
  transform: rotate(4deg);
}

/* ---------------------------------------------------------------------------
   Creatures standing on the floor, bobbing on the game's beat (100 BPM). */

.creature {
  position: relative;
  display: block;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .55));
  transform-origin: 50% 100%;
}

.creature--bob {
  animation: bob 1.2s var(--ease-land) infinite;
}

.creature--bob:nth-child(2n) {
  animation-delay: -.6s;
}

.creature--bob:nth-child(3n) {
  animation-delay: -.3s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  45% {
    transform: translateY(-6px) scaleY(1.015);
  }
  60% {
    transform: translateY(0) scaleY(.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .creature--bob {
    animation: none;
  }
}

/* ---------------------------------------------------------------------------
   Pieces of UI used across pages. */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-max);
  background: linear-gradient(180deg, #a97cff, var(--violet) 55%, #4e19b8);
  box-shadow: 0 0 0 var(--keyline-w) var(--keyline), inset 0 2px 1px #dacefe, inset 0 -2px 0 #9a78ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  white-space: nowrap;
}

.pill--neutral {
  background: linear-gradient(180deg, #454f92, #2e3568 55%, #1b2144);
  box-shadow: 0 0 0 var(--keyline-w) var(--keyline), inset 0 2px 1px #6672b8, inset 0 -2px 0 #48539a;
  color: var(--ink);
}

.pill--gold {
  color: #3a1c00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  background: linear-gradient(180deg, var(--gold-band), var(--gold) 50%, #f0900a);
  box-shadow: 0 0 0 var(--keyline-w) var(--keyline), inset 0 2px 1px #fff8de, inset 0 -2px 0 #ffd874;
}

.coin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-band), var(--gold) 55%, #b04a02);
  box-shadow: 0 0 0 2px var(--keyline);
  flex: none;
}

.icon-well {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  font-size: 1.35rem;
}

.icon-well--magenta {
  color: var(--magenta-lit);
}

.icon-well--cyan {
  color: var(--ink-cyan);
}

.icon-well--gold {
  color: var(--gold-band);
}

.icon-well--lime {
  color: var(--ink-lime);
}

.icon-well--violet {
  color: var(--violet-lit);
}

.meter {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: var(--enamel-lo);
  box-shadow: 0 0 0 var(--keyline-w) var(--keyline), inset 0 3px 4px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.meter > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--gold-band), var(--gold) 45%, var(--gold-deep));
}

.beat-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.beat-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--enamel-hi);
  box-shadow: 0 0 0 2px var(--keyline);
}

.beat-dots span.is-on {
  background: radial-gradient(circle at 35% 30%, #fff, var(--magenta-lit) 45%, var(--magenta));
  box-shadow: 0 0 0 2px var(--keyline), 0 0 10px rgba(255, 46, 158, .7);
}

.divider-neon {
  height: 3px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--magenta-lit) 25%, var(--gold-band) 50%, var(--magenta-lit) 75%, transparent);
  box-shadow: 0 0 14px rgba(255, 46, 158, .5);
  opacity: .8;
}

/* Horizontal screenshot rail with snap points. */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 250px);
  gap: clamp(18px, 3vw, 34px);
  padding: 20px 4px 34px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--magenta) transparent;
  -webkit-overflow-scrolling: touch;
}

.rail > figure {
  scroll-snap-align: center;
  margin: 0;
}

.rail::-webkit-scrollbar {
  height: 8px;
}

.rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--magenta), var(--violet));
  border-radius: 8px;
}

.rail-button {
  width: 48px;
  height: 48px;
}

/* ---------------------------------------------------------------------------
   FAQ: each question a plate that opens in place. */

.faq-item {
  border-radius: var(--r-standard);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--ink-max);
  font-size: 1.02rem;
  line-height: 1.35;
  border-radius: var(--r-standard);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--magenta-core);
}

.faq-item .faq-chevron {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--gold-band);
  transition: transform .3s var(--ease-out);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--ink);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0 0 .75rem;
}

/* ---------------------------------------------------------------------------
   Forms: sunken wells in a keyline, lit magenta while they hold the cursor. */

.field-label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.field {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  border: 2.5px solid var(--keyline);
  border-radius: var(--r-standard);
  background: var(--enamel-lo);
  color: var(--ink-max);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field::placeholder {
  color: rgba(173, 173, 200, .6);
}

.field:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 1px var(--magenta), 0 0 18px rgba(255, 46, 158, .35);
}

.field[aria-invalid="true"] {
  border-color: var(--danger);
}

.field:disabled {
  color: var(--ink-dim);
  background: var(--void);
}

select.field {
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-band) 50%), linear-gradient(135deg, var(--gold-band) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 15px) 55%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

select.field option {
  background: var(--enamel-lo);
  color: var(--ink-max);
}

textarea.field {
  min-height: 160px;
  resize: vertical;
}

.field-error {
  margin-top: .45rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--magenta-lit);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .45rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink-dim);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.5;
}

.checkbox input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: .1rem 0 0;
  accent-color: var(--magenta);
}

.spinner {
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: var(--ink-max);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------------------
   Legal documents: a contents rail beside long text. */

.toc a {
  display: block;
  padding: .45rem .75rem;
  border-radius: 10px;
  color: var(--ink-dim);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  line-height: 1.35;
  transition: color .2s, background .2s;
}

.toc a:hover {
  color: var(--ink-max);
  background: rgba(42, 52, 104, .55);
}

/* ---------------------------------------------------------------------------
   Footer. */

.site-footer a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer a:hover {
  color: var(--magenta-lit);
}

/* ---------------------------------------------------------------------------
   Very small screens: keep everything inside 250px without sideways scroll. */

@media (max-width: 380px) {
  .slab {
    --pad-x: 16px;
  }

  .slab--cta {
    --height: 60px;
    --font: 1rem;
  }

  .slab--store {
    --pad-x: 14px;
  }

  .slab--store .fa-apple {
    font-size: 1.6rem;
  }

  .store-lines span {
    font-size: .98rem;
  }

  .brand .sign {
    font-size: 1rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 300px) {
  body {
    font-size: 15px;
  }

  .brand .sign {
    display: none;
  }

  .plate--rivets::after {
    display: none;
  }

  .store-lines small {
    font-size: .64rem;
  }
}

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

/* ---------------------------------------------------------------------------
   Additions for the pages. */

/* Scripts off: nothing waits for a scroll reveal that will never run. */
html:not(.js) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.slab--store-sm {
  --height: 46px;
  --pad-x: 14px;
  --depth: 6px;
}

.slab--store-sm .fa-apple {
  font-size: 1.45rem;
}

.slab--store-sm .store-lines small {
  font-size: .6rem;
}

.slab--store-sm .store-lines span {
  font-size: .92rem;
}

.slab--icon {
  --pad-x: 0px;
  width: 48px;
}

.slab--icon .slab__face {
  padding: 0;
}

/* Board diagrams on How to play. */
.board--diagram .board__cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hole {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #06060f 0 42%, var(--hole, var(--ink-pink)) 46% 62%, rgba(0, 0, 0, .6) 66%, transparent 70%);
  box-shadow: 0 0 0 2px var(--keyline), 0 0 16px var(--hole, var(--ink-pink));
}

.path-dot {
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dot, var(--ink-pink));
  box-shadow: 0 0 0 2px var(--keyline), 0 0 8px var(--dot, var(--ink-pink));
}

.piece {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: clamp(.8rem, 3.2vw, 1.25rem);
  color: var(--keyline);
  background: linear-gradient(180deg, var(--gold-band), var(--gold) 55%, #f0900a);
  box-shadow: 0 0 0 2px var(--keyline), inset 0 2px 0 #fff8de, 0 4px 10px -2px rgba(0, 0, 0, .6);
}

.piece--violet {
  color: var(--ink-max);
  background: linear-gradient(180deg, #a97cff, var(--violet) 55%, #4e19b8);
  box-shadow: 0 0 0 2px var(--keyline), inset 0 2px 0 #dacefe, 0 4px 10px -2px rgba(0, 0, 0, .6);
}

.piece--pink {
  color: var(--ink-max);
  background: linear-gradient(180deg, #ff7acb, var(--magenta) 55%, #b8006e);
  box-shadow: 0 0 0 2px var(--keyline), inset 0 2px 0 #ffd2ee, 0 4px 10px -2px rgba(0, 0, 0, .6);
}

.board__cell .creature {
  position: absolute;
  bottom: 8%;
  width: 118%;
  height: 118%;
  object-fit: contain;
  object-position: 50% 100%;
}

.ink-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ink-chip::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--chip, var(--ink-pink));
  box-shadow: 0 0 0 2px var(--keyline), 0 0 10px var(--chip, var(--ink-pink));
}

.creature-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 190px;
  overflow: hidden;
  border-radius: var(--r-standard);
  background:
    radial-gradient(70% 60% at 50% 100%, var(--glow, rgba(255, 46, 158, .35)), transparent 70%),
    linear-gradient(180deg, rgba(17, 24, 56, .2), rgba(6, 6, 15, .65));
}

.creature-stage img {
  height: 160px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .6));
  transition: transform .5s var(--ease-out);
}

.creature-card:hover .creature-stage img {
  transform: translateY(-6px) scale(1.03);
}

.cta-art {
  background-image:
    linear-gradient(90deg, rgba(6, 6, 15, .92) 0%, rgba(6, 6, 15, .72) 45%, rgba(6, 6, 15, .2) 100%),
    url("../brand/splash.webp");
  background-size: cover;
  background-position: 70% 42%;
}

@media (max-width: 640px) {
  .cta-art {
    background-image:
      linear-gradient(180deg, rgba(6, 6, 15, .55) 0%, rgba(6, 6, 15, .9) 60%),
      url("../brand/splash.webp");
    background-position: 50% 30%;
  }
}
