/* Vohu Studios — site styles
   Light = Cascades at dawn, dark = Cascades at night (follows the device setting). */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-normal.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrumentserif-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrumentserif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #f6f1ea;
  --card: #fbf8f3;
  --ink: #1f1715;
  --ink-2: #5c514c;
  --ink-3: #857a73;
  --line: rgba(31, 23, 21, 0.12);
  --accent: #a94b2a;
  --focus: #a94b2a;

  /* dawn sky + scene */
  --sky-1: #f1dcc2;
  --sky-2: #f5c79d;
  --sky-3: #f2ad80;
  --sun: #fff4e3;
  --glow-in: rgba(255, 238, 210, 0.85);
  --glow-out: rgba(255, 238, 210, 0);
  --m1: #ebb38c;
  --snow: #fae4cf;
  --m2: #da9173;
  --m3: #bd7262;
  --m4: #8a4c4e;
  --m5: #4e2c33;
  --star-o: 0;

  /* Mat Season arena (same in both themes) */
  --arena: #0e0b08;
  --arena-2: #17120c;
  --arena-ink: #f3ede2;
  --arena-ink-2: #bdb19f;
  --gold: #e2aa2f;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1200px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --card: #12151f;
    --ink: #ece7df;
    --ink-2: #aaa49f;
    --ink-3: #7c7880;
    --line: rgba(236, 231, 223, 0.12);
    --accent: #eba06c;
    --focus: #eba06c;

    --sky-1: #050712;
    --sky-2: #0c1129;
    --sky-3: #1b2246;
    --sun: #ece6d4;
    --glow-in: rgba(205, 214, 255, 0.22);
    --glow-out: rgba(205, 214, 255, 0);
    --m1: #2a3460;
    --snow: #4b578b;
    --m2: #212a4d;
    --m3: #192040;
    --m4: #121730;
    --m5: #0d1122;
    --star-o: 1;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

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

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; color: var(--bg); }

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

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display em, .title em { font-style: italic; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; max-width: 36em; }
.muted { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 0.95rem/1 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { color: var(--bg); background: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold { background: var(--gold); color: #1a1206; }
.btn-gold:hover { background: #f1bd47; color: #1a1206; }
.btn-line-light { border-color: rgba(243, 237, 226, 0.22); color: var(--arena-ink); }
.btn-line-light:hover { border-color: var(--arena-ink); color: var(--arena-ink); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.page .site-header {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; color: var(--ink); padding: 8px 0; }
.brand:hover { color: var(--ink); }
.brand svg { height: 22px; width: auto; }
.nav ul { display: flex; gap: clamp(18px, 3.4vw, 36px); margin: 0; padding: 0; list-style: none; }
.nav a.link {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 10px 0; position: relative;
}
.nav a.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a.link:hover { color: var(--ink); }
.nav a.link:hover::after, .nav a.link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(620px, 100svh);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 100%);
}
.hero .stars {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  fill: #f4f1ff; opacity: var(--star-o); transition: opacity 0.6s;
}
.stars .tw { animation: twinkle 4.5s ease-in-out infinite alternate; }
.stars .tw:nth-child(3n) { animation-delay: -1.5s; animation-duration: 6s; }
.stars .tw:nth-child(3n + 1) { animation-delay: -3s; }
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.25; } }

.hero-copy {
  position: relative; z-index: 2;
  padding-top: clamp(116px, 17vh, 190px);
  text-align: center;
}
.hero-copy .eyebrow { color: var(--ink); opacity: 0.78; }
.hero-copy .display em { white-space: nowrap; }
.hero-copy .lede { margin: 26px auto 0; color: var(--ink); opacity: 0.82; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero .btn-ghost { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }

.scene-wrap {
  position: relative; z-index: -1;
  flex: 1 0 auto;
  height: clamp(250px, 44svh, 620px);
  margin-top: clamp(-150px, -9vw, -36px);
}
.scene { width: 100%; height: 100%; overflow: visible; }
.scene .L { transform: translate3d(0, calc(var(--p, 0) * var(--k, 0) * 1px), 0); will-change: transform; }
.scene .L-sun { --k: 0.42; }
.scene .L-birds { --k: 0.36; }
.scene .L-1 { --k: 0.3; }
.scene .L-2 { --k: 0.22; }
.scene .L-3 { --k: 0.14; }
.scene .L-4 { --k: 0.07; }
.scene .L-5 { --k: 0.02; }
.sun { fill: var(--sun); }
.glow-in { stop-color: var(--glow-in); }
.glow-out { stop-color: var(--glow-out); }
.m1 { fill: var(--m1); }
.snow { fill: var(--snow); }
.m2 { fill: var(--m2); }
.m3 { fill: var(--m3); }
.m4 { fill: var(--m4); }
.m5 { fill: var(--m5); }
.fg { fill: var(--bg); }
.birds { fill: none; stroke: var(--m5); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .birds { animation: drift 70s linear infinite; }
  .hero-copy > * { animation: rise 1.2s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .scene .L-1, .scene .L-2, .scene .L-3 { animation: settle 1.8s var(--ease) both; }
  .scene .L-sun { animation: sunrise 2.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { opacity: 0; translate: 0 26px; } }
@keyframes sunrise { from { opacity: 0; translate: 0 60px; } }
@keyframes drift {
  0% { transform: translate(-120px, 10px); }
  50% { transform: translate(240px, -14px); }
  100% { transform: translate(600px, 6px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); max-width: 760px; }

/* Reveal on scroll (only when JS is running and motion is OK) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="2"] { transition-delay: 0.1s; }
  .js [data-reveal="3"] { transition-delay: 0.2s; }
  .js [data-reveal="4"] { transition-delay: 0.3s; }
}

/* ---------- Mat Season arena ---------- */
.arena {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--arena); color: var(--arena-ink);
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(28px, 6vw, 80px);
}
.arena::before {
  /* the spotlight */
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: -30%; width: 140%; height: 120%; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(226, 170, 47, 0.32), rgba(226, 170, 47, 0.08) 55%, transparent 75%);
  pointer-events: none;
}
.arena::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 214, 120, 0.06) 46%, transparent 54%),
    linear-gradient(75deg, transparent 40%, rgba(255, 214, 120, 0.05) 48%, transparent 56%);
}
@media (prefers-reduced-motion: no-preference) {
  .arena::before { animation: breathe 9s ease-in-out infinite alternate; }
}
@keyframes breathe { from { opacity: 0.75; } to { opacity: 1; } }

.arena a:hover { color: var(--gold); }
.arena-top { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .arena-top { grid-template-columns: 1.1fr 0.9fr; } }

.game-id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.app-icon { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 30px rgba(0,0,0,0.45); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid rgba(226, 170, 47, 0.45); color: var(--gold);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(226,170,47,0.18); }
@media (prefers-reduced-motion: no-preference) { .pill .dot { animation: pulse 2.4s ease-in-out infinite; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(226,170,47,0); } }

.game-title {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 0.92;
  letter-spacing: -0.01em; text-transform: uppercase;
}
.game-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--gold); margin: 12px 0 22px; line-height: 1.2; }
.arena .lede { color: var(--arena-ink-2); }
.arena-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { font-size: 0.85rem; color: var(--arena-ink-2); margin-top: 16px; }

.hero-phone { justify-self: center; position: relative; }
.hero-phone .phone { width: min(300px, 72vw); transform: rotate(-3deg); }
@media (min-width: 900px) { .hero-phone .phone { width: 320px; } }

.phone {
  position: relative; border-radius: 15% / 7%;
  padding: 7px; background: linear-gradient(145deg, #2b2620, #0b0a08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 80px -20px rgba(226, 170, 47, 0.35);
}
.phone img { border-radius: 13% / 6%; width: 100%; aspect-ratio: 920 / 2000; background: #16110c; }

.features {
  display: grid; gap: 28px; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(243, 237, 226, 0.12); padding-top: clamp(32px, 5vw, 48px);
}
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.features h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 8px; }
.features p { color: var(--arena-ink-2); font-size: 0.98rem; }
.features .num { display: block; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.3rem; margin-bottom: 10px; }

/* Screenshot gallery: swipe on phones, grid on desktop */
.gallery {
  margin: clamp(56px, 8vw, 96px) calc(-1 * clamp(28px, 6vw, 80px)) 0;
  padding: 10px clamp(28px, 6vw, 80px) 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(28px, 6vw, 80px);
  scrollbar-width: none; list-style: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: start; margin: 0; }
.gallery .phone { transition: transform 0.6s var(--ease); }
.gallery figcaption { margin-top: 16px; font-size: 0.9rem; color: var(--arena-ink-2); text-align: center; }
.gallery figure { margin: 0; }
@media (min-width: 1000px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 28px; }
  .gallery li:nth-child(even) { transform: translateY(36px); }
  .gallery li:hover .phone { transform: translateY(-6px); }
}

.faq { margin-top: clamp(64px, 9vw, 110px); display: grid; gap: 28px; }
@media (min-width: 900px) { .faq { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.faq h3 { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.1; }
.faq details { border-bottom: 1px solid rgba(243, 237, 226, 0.12); }
.faq details:first-child { border-top: 1px solid rgba(243, 237, 226, 0.12); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 500; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg); transition: transform 0.3s var(--ease), margin 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--arena-ink-2); padding: 0 40px 22px 0; margin: 0; }

/* ---------- Next project ---------- */
.next {
  margin-top: clamp(20px, 3vw, 28px);
  display: grid; gap: 28px; align-items: center;
  border: 1px solid var(--line); border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(28px, 6vw, 64px); background: var(--card);
  position: relative; overflow: hidden;
}
@media (min-width: 800px) { .next { grid-template-columns: 1fr auto; } }
.next h3 { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.08; margin-bottom: 12px; }
.next .pill { border-color: var(--line); color: var(--ink-2); margin-bottom: 18px; }
.next .pill .dot { background: var(--accent); box-shadow: none; animation: none; }
.next-mark {
  width: clamp(120px, 18vw, 180px); aspect-ratio: 1; justify-self: start; border-radius: 30%;
  border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  display: grid; place-items: center; color: var(--ink-3);
  font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 5vw, 3.6rem);
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(circle at 70% 75%, color-mix(in srgb, var(--m1) 30%, transparent), transparent 60%);
}
@media (min-width: 800px) { .next-mark { justify-self: end; } }
@media (prefers-reduced-motion: no-preference) {
  .next-mark { animation: float 7s ease-in-out infinite alternate; }
}
@keyframes float { to { transform: translateY(-8px) rotate(2deg); } }

/* ---------- Studio ---------- */
.studio-grid { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .studio-grid { grid-template-columns: 1.15fr 0.85fr; align-items: end; } }
.principles { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.principles li { border-top: 1px solid var(--line); padding: 26px 0; }
.principles h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; margin-bottom: 10px; }
.principles p { color: var(--ink-2); font-size: 0.98rem; }
.legal-note { font-size: 0.9rem; color: var(--ink-3); margin-top: 22px; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding-bottom: clamp(100px, 14vw, 170px); }
.cta .title { max-width: 16ch; margin: 0 auto 30px; }
.cta .hero-actions { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.92rem; color: var(--ink-2); }
.foot { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1fr auto; align-items: start; } }
.foot .brand svg { height: 20px; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot nav a { text-decoration: none; color: var(--ink); }
.foot nav a:hover { color: var(--accent); }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 36px; color: var(--ink-3); font-size: 0.85rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); transition: border-color 0.25s, color 0.25s;
}
.socials a:hover { border-color: var(--ink); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Inner pages ---------- */
.page main { padding-top: 68px; }
.page-head { padding: clamp(64px, 10vw, 120px) 0 clamp(32px, 5vw, 56px); }
.page-head .lede { margin-top: 20px; }
.crumbs { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.prose { padding-bottom: clamp(80px, 12vw, 140px); }
.prose h2 {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15;
  margin: 2.2em 0 0.6em; padding-top: 1.2em; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); max-width: 40em; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent); }
.effective { display: inline-block; margin-top: 4px; font-size: 0.9rem; color: var(--ink-3); }

.app-list { list-style: none; margin: 0 0 clamp(80px, 12vw, 140px); padding: 0; display: grid; gap: 14px; }
.app-row {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px 18px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  text-decoration: none; transition: border-color 0.25s, transform 0.35s var(--ease);
}
.app-row:hover { border-color: var(--ink); color: inherit; transform: translateY(-2px); }
.app-row img { width: 56px; height: 56px; border-radius: 22.5%; flex: none; }
.app-row .name { font-weight: 500; font-size: 1.1rem; display: block; }
.app-row .meta { color: var(--ink-3); font-size: 0.9rem; }
.app-row .go { margin-left: auto; color: var(--ink-3); transition: transform 0.3s var(--ease), color 0.25s; }
.app-row:hover .go { transform: translateX(4px); color: var(--ink); }
.small-note { color: var(--ink-3); font-size: 0.92rem; margin-top: -40px; margin-bottom: clamp(80px, 12vw, 140px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 12vw, 140px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 0.7fr; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.two { display: grid; gap: 18px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { font-size: 0.95rem; color: var(--ink-2); min-height: 1.5em; }
.form-status.ok { color: #3f7d4f; }
.form-status.err { color: #b3402b; }
@media (prefers-color-scheme: dark) { .form-status.ok { color: #8fd19e; } .form-status.err { color: #f08a75; } }
.form.is-sending button { opacity: 0.6; pointer-events: none; }

.aside { display: grid; gap: 28px; align-content: start; }
.aside h2 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; font-family: var(--sans); }
.aside p { color: var(--ink-2); }
.aside a { color: var(--ink); }
.aside a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px 0; }
.lost .hero-actions { margin-top: 30px; }

@media print {
  .site-header, .site-footer, .skip { display: none; }
  .page main { padding-top: 0; }
  body { background: #fff; color: #000; }
}
.lost .lede { margin-inline: auto; }

/* ---------- Refinements ---------- */
.display, .title, .game-tag, .hero-copy .lede { text-wrap: balance; }
p { text-wrap: pretty; }
.game-id { flex-wrap: wrap; }
.pill { white-space: nowrap; }
@media (max-width: 420px) { .pill { letter-spacing: 0.12em; font-size: 0.68rem; } }
@media (min-width: 900px) {
  .scene-wrap { margin-top: -48px; }
  .sunpos { transform: translate(-330px, 18px); }
}
