/* Cubby Hole — studio site.
   The studio is a shelf of cubbies: a chalk-painted frame, recessed compartments, brass label holders
   with stencilled cards. Each game brings its own world (night colours, display face) into its cubby
   and onto its own page; the studio frame around it stays quiet. */

@font-face { font-family: "Big Shoulders Stencil"; src: url(/fonts/stencil-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Stencil"; src: url(/fonts/stencil-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/fonts/atkinson-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/fonts/atkinson-latin-ext.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url(/fonts/atkinson-mono-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #eef0eb;      /* page: chalk paint, cool not cream */
  --frame: #f8f9f6;      /* shelf boards, catching the light */
  --hole: #dde1da;       /* back of a compartment */
  --hole-shade: rgba(27, 32, 39, 0.42);
  --ink: #1b2027;
  --ink-2: #4b535d;
  --line: rgba(27, 32, 39, 0.14);
  --brass: #7a5a12;      /* text-weight brass: links, small labels */
  --brass-fill: #c9a04a; /* label holders, the dot in the mark */
  --brass-hi: #e6c77c;
  --card: #fbfaf4;       /* the card behind a label holder */
  --card-ink: #1b2027;
  --focus: #2d5bd7;
  --shadow: 0 24px 48px -28px rgba(27, 32, 39, 0.5), 0 0 0 1px rgba(27, 32, 39, 0.07);

  --font-display: "Big Shoulders Stencil", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13161a;
    --frame: #1d2127;
    --hole: #0b0d10;
    --hole-shade: rgba(0, 0, 0, 0.75);
    --ink: #e8ebe5;
    --ink-2: #a6adb5;
    --line: rgba(232, 235, 229, 0.13);
    --brass: #dcbb6c;
    --brass-fill: #b8913f;
    --brass-hi: #d9b766;
    --card: #e9e5d6;
    --card-ink: #16140e;
    --focus: #8fb0ff;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(232, 235, 229, 0.06);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; }
code { font: 0.92em var(--font-mono); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- mark + header + footer ---------- */
.mark__frame { fill: var(--ink); }
.mark__hole { fill: var(--paper); }
.mark__dot { fill: var(--brass-fill); }

.site-head {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font: 800 1.3rem/1 var(--font-display);
  letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
  min-height: 44px;
}
@media (max-width: 400px) { .site-head .brand { letter-spacing: 0.08em; font-size: 1.15rem; } .site-head nav a { padding: 0 0.6rem; } }
.site-head nav { display: flex; gap: 0.25rem; }
.site-head nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
  text-decoration: none; font-weight: 600; border-radius: 999px;
}
.site-head nav a:hover { background: var(--line); }
.site-head nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.site-foot { border-top: 1px solid var(--line); margin-top: clamp(4rem, 10vw, 7rem); }
.site-foot__in {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto;
  padding-block: 2rem 2.5rem;
  display: grid; gap: 1rem;
}
.brand--foot { font-size: 1.05rem; min-height: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.site-foot__legal { color: var(--ink-2); font-size: 0.875rem; }
@media (min-width: 760px) {
  .site-foot__in { grid-template-columns: auto 1fr; align-items: center; }
  .site-foot nav { justify-content: flex-end; }
  .site-foot__legal { grid-column: 1 / -1; }
}

/* ---------- type ---------- */
.display {
  font: 800 clamp(2.75rem, 11vw, 6.25rem)/0.9 var(--font-display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.display--m { font-size: clamp(2.5rem, 9vw, 4.5rem); }
.display--s { font-size: clamp(2rem, 7vw, 3.25rem); }
.lede { font-size: clamp(1.125rem, 2.4vw, 1.3rem); color: var(--ink-2); max-width: 38rem; text-wrap: pretty; }

/* ---------- label holder: brass frame, stencilled card ---------- */
.plate {
  display: inline-flex;
  padding: 4px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass-fill) 55%, color-mix(in srgb, var(--brass-fill) 70%, #000));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 2px 4px rgba(0, 0, 0, 0.25);
}
.plate > span {
  display: block;
  padding: 0.28em 0.8em 0.22em;
  background: var(--card);
  color: var(--card-ink);
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
  font: 800 1.25rem/1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.plate--blank > span { color: color-mix(in srgb, var(--card-ink) 55%, var(--card)); }

/* ---------- home: the game leads ---------- */
/* the hero is Starmere's own screen: the painted night sky on top, a little pond board below it */
.h-hero {
  position: relative;
  background: var(--g-night);
  color: var(--g-night-ink);
  overflow: hidden;
  isolation: isolate;
}
.h-hero__sky {
  position: absolute; inset: 0 0 auto 0; z-index: -2;
  width: 100%; height: 26rem;
  object-fit: cover; object-position: 50% 0;
}
.h-hero::before {
  /* the sky fades into the night the pond sits in; a darker patch behind the title keeps it legible */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 26.5rem; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 18% 22%, color-mix(in srgb, var(--g-night) 55%, transparent), transparent),
    linear-gradient(to bottom, transparent 40%, var(--g-night));
}
.h-hero__in {
  display: grid; grid-template-areas: "head" "stage" "cta";
  gap: 1.5rem;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(2.5rem, 6vw, 4rem);
}
.h-hero__head { grid-area: head; }
.h-hero__head .g-title { margin-top: 0; text-shadow: 0 2px 18px rgba(7, 11, 26, 0.6); }
.h-hero__pitch { margin-top: 1rem; max-width: 29rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--g-night-ink); text-wrap: pretty; text-shadow: 0 1px 10px rgba(7, 11, 26, 0.8); }
.h-hero__stage { grid-area: stage; margin-inline: -0.25rem; }
.h-hero__cta { grid-area: cta; display: grid; gap: 0.75rem; justify-items: start; }
@media (min-width: 860px) {
  .h-hero__sky, .h-hero::before { height: 100%; }
  .h-hero__sky { object-position: 50% 30%; }
  .h-hero__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "head stage" "cta stage";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 2rem;
    align-items: start;
    padding-block: clamp(3.5rem, 7vw, 6rem);
  }
  .h-hero__head { align-self: end; }
  .h-hero__stage { margin: 0; align-self: center; }
}

/* ---------- pond scenes (inline SVG built from the game's sprites) ---------- */
.scene { width: 100%; height: auto; overflow: visible; }
.s-pond { stop-color: var(--g-pond); }
.s-deep { stop-color: var(--g-pond-deep); }
.s-star { stop-color: var(--g-star); }
.pond__rim { fill: none; stroke: var(--g-rim); stroke-width: 12; }
.scene--hero .pond__rim { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); }
.ripple { fill: none; stroke: rgba(233, 241, 255, 0.22); stroke-width: 1.5; }
.ripple--2 { stroke: rgba(233, 241, 255, 0.1); }
.pad { opacity: 0.92; }
.reed { opacity: 0.95; }
.loop__glow { fill: none; stroke: #9fdcff; stroke-width: 11; stroke-linecap: round; opacity: 0.55; }
.loop__line { fill: none; stroke: #f4fbff; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 0; }
.loop__glow { stroke-dasharray: 1 0; }
.loop__tip { fill: #fff; filter: drop-shadow(0 0 6px #bfe8ff) drop-shadow(0 0 12px #9fdcff); }
.arrow { fill: none; stroke: rgba(233, 241, 255, 0.75); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.constellation { fill: none; stroke: rgba(233, 241, 255, 0.35); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.star { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--g-star) 70%, transparent)); }

@media (prefers-reduced-motion: no-preference) {
  .bob, .star, .twinkle, .glow, .rise { transform-box: fill-box; transform-origin: center; }
  .bob { animation: bob 4.6s ease-in-out infinite alternate; }
  .bob--2 { animation-duration: 5.4s; animation-delay: -2s; }
  .bob--3 { animation-duration: 3.9s; animation-delay: -1.2s; }
  .rise { animation: rise 6s ease-in-out infinite alternate; }
  .twinkle { animation: twinkle 2.8s ease-in-out infinite alternate; }
  .twinkle--2 { animation-delay: -1.1s; }
  .twinkle--3 { animation-delay: -2s; animation-duration: 3.4s; }
  .glow { animation: glow 3.2s ease-in-out infinite alternate; }
  .loop--once .loop__line, .loop--once .loop__glow { animation: draw 1.6s 0.3s cubic-bezier(0.45, 0, 0.25, 1) both; }
  .loop--once .loop__tip { animation: tip 1.9s both; }
  .loop--cycle .loop__line, .loop--cycle .loop__glow { animation: draw-cycle 5s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
  .loop--cycle .loop__tip { animation: tip-cycle 5s infinite; }
}
@keyframes bob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes rise { from { transform: translateY(4px); } to { transform: translateY(-4px); } }
@keyframes twinkle { from { opacity: 0.25; transform: scale(0.7); } to { opacity: 1; transform: scale(1.1); } }
@keyframes glow { from { opacity: 0.6; } to { opacity: 1; } }
@keyframes draw { from { stroke-dasharray: 0 1; } to { stroke-dasharray: 1 0; } }
@keyframes tip { 0%, 84% { opacity: 0; } 100% { opacity: 1; } }
@keyframes draw-cycle {
  0% { stroke-dasharray: 0 1; opacity: 1; }
  45%, 80% { stroke-dasharray: 1 0; opacity: 1; }
  95%, 100% { stroke-dasharray: 1 0; opacity: 0; }
}
@keyframes tip-cycle { 0%, 40% { opacity: 0; } 46%, 80% { opacity: 1; } 95%, 100% { opacity: 0; } }

/* ---------- how to play ---------- */
.howto { padding-block: clamp(3rem, 8vw, 5.5rem) 0; }
.steps { margin-top: 1.5rem; display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); } }
.step .scene { border-radius: 30px; box-shadow: var(--shadow); }
.step__h {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.1rem;
  font: 900 1.45rem/1.1 var(--g-font);
  color: var(--g-accent);
}
.step__n {
  flex: none; display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--g-night); color: var(--g-star);
  font: 900 1.05rem/1 var(--g-font);
}
.step p { margin-top: 0.4rem; color: var(--ink-2); text-wrap: pretty; }
.step .step__chain { margin-top: 0.6rem; font: 600 0.78rem/1.5 var(--font-mono); letter-spacing: 0.03em; }
.howto__more {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem; border-top: 1.5px solid var(--line);
  display: grid; gap: 0.6rem;
  color: var(--ink-2);
}
.howto__more p { max-width: 44rem; text-wrap: pretty; }
.howto__rules { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); font-weight: 600; }
.howto__rules img { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--g-night); padding: 5px; }
.howto__more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--g-accent); }

/* ---------- the studio, below the game ---------- */
.studio {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1.5px solid var(--line);
  display: grid; gap: 2rem;
}
.studio__about { display: grid; gap: 0.9rem; align-content: start; }
.studio__about .shelf__h { margin: 0; }
.studio__about .display { max-width: 16ch; }
.studio__intro { color: var(--ink-2); max-width: 34rem; text-wrap: pretty; }
.studio__next { grid-template-columns: minmax(0, 1fr); }
.studio__next .cubby--empty .cubby__hole { aspect-ratio: 16 / 9; height: auto; }
.contact { display: grid; gap: 0.5rem; }
.contact__h { font: 800 clamp(1.75rem, 5.5vw, 2.4rem)/1 var(--font-display); }
@media (min-width: 860px) {
  .studio { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 6vw, 5rem); }
  .studio__next { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}

.shelf { position: relative; }
.shelf__h {
  font: 700 0.8rem/1 var(--font-mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 0.9rem;
}
.shelf__grid {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--frame);
  border-radius: calc(var(--radius) + 6px);
  /* the board's front edge, then the shelf's shadow on the wall */
  box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--frame) 86%, #000), var(--shadow);
  padding-bottom: calc(clamp(0.75rem, 2vw, 1.25rem) + 5px);
}
@media (min-width: 900px) {
  .shelf__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.cubby { display: grid; }
.cubby__link { display: grid; grid-template-rows: auto auto 1fr; text-decoration: none; border-radius: var(--radius); }
.cubby__link:focus-visible { outline-offset: 6px; }
.cubby__hole {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius) - 4px);
  background: var(--hole);
  overflow: hidden;
  isolation: isolate;
}
/* the compartment's depth: a shadow cast by the shelf board above, a lit lip below */
.cubby__hole::after {
  content: "";
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 16px 22px -10px var(--hole-shade),
    inset 10px 0 16px -12px var(--hole-shade),
    inset -10px 0 16px -12px var(--hole-shade),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}
.cubby__art {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 50%;
  filter: brightness(0.84) saturate(0.9);
  transform: scale(1.02);
  transition: filter 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cubby__link:hover .cubby__art,
.cubby__link:focus-visible .cubby__art { filter: brightness(1.04) saturate(1.05); transform: scale(1.06); }

.cubby__label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; padding: 1rem 0.25rem 0.35rem; }
.cubby__label .plate { transition: transform 0.25s ease; }
.cubby__link:hover .plate { transform: translateY(-2px); }
.cubby__status { font: 600 0.8rem/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.cubby__text { padding: 0.25rem 0.25rem 0.5rem; max-width: 36rem; color: var(--ink-2); }

.cubby--empty .cubby__hole { display: grid; place-items: center; padding: 1.25rem; }
.cubby--empty .cubby__hole::before {
  /* pencil guide lines on the compartment floor */
  content: ""; position: absolute; inset: auto 12% 16% 12%; height: 1px; background: var(--line);
}
.note {
  position: relative; z-index: 1;
  max-width: 17rem;
  padding: 0.9rem 1rem 1rem;
  background: var(--card); color: var(--card-ink);
  font: 400 0.92rem/1.45 var(--font-mono);
  border-radius: 2px;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
}
@media (min-width: 900px) {
  .cubby--empty .cubby__hole { aspect-ratio: auto; height: 100%; min-height: 0; }
  .cubby--empty { grid-template-rows: 1fr auto; }
  .cubby--game .cubby__hole { aspect-ratio: 2.05 / 1; }
}

.contact p { color: var(--ink-2); }
.mail {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 clamp(1.15rem, 4.2vw, 1.75rem)/1.2 var(--font-mono);
  color: var(--brass);
  overflow-wrap: anywhere;
}

/* ---------- game page ---------- */
.game { font-family: var(--font-body); }
.g-hero {
  position: relative;
  background: var(--g-night);
  color: var(--g-night-ink);
  overflow: hidden;
  isolation: isolate;
}
.g-hero__media { position: relative; }
.g-hero__art {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 70% 40%;
}
.g-hero__media::after {
  /* the art dissolves into the night below it */
  content: ""; position: absolute; inset: 45% 0 0 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--g-night));
}
.g-hero__in { position: relative; z-index: 2; padding-block: 0 clamp(2.5rem, 6vw, 4rem); margin-top: -4.5rem; }
.g-hero__icon {
  width: 88px; height: 88px; border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.g-title {
  font: 900 clamp(3.25rem, 14vw, 6.5rem)/0.95 var(--g-font);
  letter-spacing: -0.025em;
  margin-top: 1rem;
}
.g-title span {
  display: block;
  font-size: clamp(1.25rem, 4.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--g-star);
  margin-top: 0.35rem;
}
.g-hero__text { margin-top: 1rem; max-width: 30rem; font-size: 1.125rem; color: var(--g-night-dim); }
.g-hero__store { margin-top: 1.75rem; display: grid; gap: 0.75rem; justify-items: start; }
.store--soon {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.1rem 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1.5px dashed color-mix(in srgb, var(--g-night-ink) 45%, transparent);
  color: var(--g-night-ink);
}
.store__icon { fill: var(--g-star); flex: none; }
.store--soon span { display: grid; line-height: 1.2; }
.store--soon strong { font-size: 1.05rem; }
.store--soon small { font: 600 0.75rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-night-dim); }
.g-hero__note { font-size: 0.95rem; color: var(--g-night-dim); max-width: 28rem; }

@media (min-width: 760px) {
  .g-hero { min-height: min(46vw, 640px); display: grid; align-items: center; }
  .g-hero__media { position: absolute; inset: 0; }
  .g-hero__art { height: 100%; aspect-ratio: auto; object-position: 62% 50%; }
  .g-hero__media::after {
    inset: 0 30% 0 0;
    background: linear-gradient(90deg, var(--g-night) 0%, color-mix(in srgb, var(--g-night) 78%, transparent) 45%, transparent 100%);
  }
  .g-hero__in { margin-top: 0; padding-block: clamp(3rem, 6vw, 5rem); }
  .g-hero__in > * { max-width: 30rem; }
}

.g-hero__text a { color: var(--g-night-ink); font-weight: 700; }
.g-h2 {
  font: 900 clamp(1.6rem, 5vw, 2.25rem)/1.05 var(--g-font);
  letter-spacing: -0.015em;
}
.g-lede { margin-top: 0.5rem; color: var(--ink-2); }

.worlds { padding-block: clamp(3rem, 8vw, 5.5rem) 0; }
.worlds__list { margin-top: 1.5rem; display: grid; gap: 2rem; }
@media (min-width: 760px) {
  .worlds__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
  .world img { aspect-ratio: 16 / 10; }
}
.world img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); background: var(--g-night); box-shadow: var(--shadow); }
.world h3 { margin-top: 1rem; font: 900 1.4rem/1.1 var(--g-font); color: var(--g-accent); }
.world p { margin-top: 0.4rem; color: var(--ink-2); text-wrap: pretty; }

.modes { padding-block: clamp(3rem, 8vw, 5.5rem); }
.modes__list { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .modes__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); } }
.mode { display: flex; gap: 1rem; align-items: flex-start; }
.mode img { flex: none; width: 56px; height: 56px; padding: 6px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, var(--g-wash), var(--g-night) 75%); }
.mode h3 { font: 900 1.2rem/1.2 var(--g-font); }
.mode p { margin-top: 0.25rem; color: var(--ink-2); text-wrap: pretty; }

.shots { padding-block: 0 clamp(3rem, 8vw, 5.5rem); }
.shots__strip {
  margin-top: 1.25rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(58vw, 216px);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(var(--gutter), (100% - var(--wrap)) / 2) 1.25rem;
  scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
}
.shot { scroll-snap-align: start; }
.shot img {
  width: 100%;
  border-radius: 18px;
  background: var(--g-night);
  box-shadow: 0 0 0 5px #0d0f13, 0 0 0 6px var(--line), 0 18px 32px -18px rgba(0, 0, 0, 0.6);
}
.shot p { margin-top: 0.9rem; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
@media (min-width: 1100px) {
  .shots__strip { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-inline: 5px; }
}

.facts { display: grid; gap: 1.5rem; }
.facts__list { display: grid; gap: 1.25rem; }
.facts__list > div { border-top: 1.5px solid var(--line); padding-top: 1rem; }
.facts__list dt { font: 800 1.2rem/1.2 var(--g-font); }
.facts__list dd { margin-top: 0.35rem; color: var(--ink-2); }
@media (min-width: 760px) { .facts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.facts__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.facts__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--g-accent); }

/* ---------- documents: privacy, support ---------- */
.doc { padding-top: clamp(2rem, 6vw, 4rem); display: grid; gap: 2.5rem; }
.doc > * { max-width: 44rem; }
@media (min-width: 1100px) {
  /* rows collapse to their content; spacing moves to margins so the TOC's row span adds no gaps */
  .doc { grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); row-gap: 0; }
  .doc > * { grid-column: 1; margin-bottom: 2.5rem; }
  .doc > .doc__toc { grid-column: 2; grid-row: 1 / span 20; align-self: start; position: sticky; top: 2rem; max-width: 20rem; margin-top: 0.5rem; }
}
.doc__head { display: grid; gap: 1rem; }
.doc__meta { font: 600 0.82rem/1.4 var(--font-mono); letter-spacing: 0.05em; color: var(--ink-2); }
.doc__toc {
  display: grid; gap: 0.1rem;
  padding: 1rem 1.25rem;
  background: var(--frame);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.doc__toc a { display: flex; align-items: center; min-height: 44px; font-weight: 600; }
.doc h2 {
  font: 800 clamp(1.75rem, 5.5vw, 2.4rem)/1 var(--font-display);
  letter-spacing: 0.01em;
  scroll-margin-top: 1.5rem;
}
.doc section { display: grid; gap: 0.9rem; scroll-margin-top: 1.5rem; }
.doc h3 { font-size: 1.15rem; line-height: 1.3; margin-top: 1rem; }
.doc p { text-wrap: pretty; }
.doc p a, .doc summary + p a, .doc__more a { color: var(--brass); font-weight: 600; }
.doc__game { padding-top: 2rem; border-top: 1.5px solid var(--line); }
.doc__gh { display: flex; align-items: center; gap: 0.75rem; }
.doc__gh img { width: 40px; height: 40px; border-radius: 10px; }

.faq { display: grid; gap: 0.75rem; }
.faq__item { background: var(--frame); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.15rem 1.1rem; display: grid; gap: 0.4rem; }
.doc .faq__item h3 { margin: 0; font-size: 1.05rem; }
.faq__item p { color: var(--ink-2); }

/* ---------- 404 ---------- */
.lost { padding-top: clamp(3rem, 10vw, 6rem); display: grid; gap: 1.25rem; justify-items: start; }
.lost__hole {
  width: 9rem; aspect-ratio: 1; border-radius: 12px; background: var(--hole);
  box-shadow: inset 0 16px 22px -10px var(--hole-shade), 0 0 0 0.9rem var(--frame), 0 0 0 calc(0.9rem + 1px) var(--line);
  margin: 1rem 0 1.5rem 1rem;
}
.lost__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.lost__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--brass); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .cubby__link:hover .cubby__art, .cubby__link:focus-visible .cubby__art { transform: scale(1.02); }
}

/* games (generated from games/*/game.json) */
@font-face{font-family:"Nunito";src:url(/fonts/starmere-nunito-latin.woff2) format("woff2");font-weight:200 1000;font-display:swap}
.theme-starmere{--g-night:#070b1a;--g-night-ink:#eef3ff;--g-night-dim:#aeb8d8;--g-wash:#262b6a;--g-pond:#16505c;--g-pond-deep:#071925;--g-rim:#34422a;--g-accent:#4b3fa8;--g-star:#ffd36b;--g-font:"Nunito", var(--font-body)}
@media (prefers-color-scheme: dark){.theme-starmere{--g-accent:#ffd36b}}
