/* Campout landing: "campfire at night". Palette and type from .context/landing-research/report.md */
:root {
  color-scheme: dark;

  /* Color */
  --night: #14100c;
  --night-2: #1b1611;
  --well: #0f0c09;
  --pine: #101712;
  --ember: #ff7a2f;
  --ember-hover: #ff8f50;
  --ember-wash: rgba(255, 122, 47, 0.14);
  --fire: #ffc56b;
  --smoke: #ede6da;
  --smoke-2: #d6cec1;
  --ash: #8a8178;
  --ok: #5cd18a;
  --err: #ff9a8a;
  --line: rgba(237, 230, 218, 0.12);
  --line-strong: rgba(237, 230, 218, 0.4);

  /* Native surfaces we imitate. Kept separate on purpose. */
  --dc-bg: #313338;
  --dc-bg-2: #2b2d31;
  --dc-bg-3: #383a40;
  --dc-text: #dbdee1;
  --dc-head: #f2f3f5;
  --dc-muted: #949ba4;
  --dc-blurple: #5865f2;
  --dc-link: #00a8fc;
  --im-bg: #000;
  --im-in: #262628;
  --im-out: #0b84fe;
  --im-muted: #8e8e93;

  /* Type */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-h3: 22px;
  --fs-h2: clamp(32px, 4.2vw, 48px);
  --fs-h1: clamp(44px, 5vw, 68px);

  /* Space (4px base) and shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: 20px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --max: 1160px;
  --nav-h: 64px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 600ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s4)); }
body {
  margin: 0;
  background: var(--night);
  color: var(--smoke);
  font: var(--fs-md)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--ember);
  caret-color: var(--ember);
}
::selection { background: rgba(255, 122, 47, 0.35); color: var(--smoke); }
a { color: var(--fire); text-underline-offset: 3px; }
a:visited { color: #e9b25e; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--ember-wash); color: var(--fire); padding: 1px 6px; border-radius: 6px; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--ash); }
.skip { position: absolute; left: -9999px; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--smoke); color: var(--night); padding: var(--s2) var(--s3); border-radius: var(--r-sm); z-index: 10; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  background: var(--ember); color: var(--night); border: 0; border-radius: var(--r-pill);
  font: 600 var(--fs-md)/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.btn:visited { color: var(--night); }
.btn:hover { background: var(--ember-hover); }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--smoke); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { background: rgba(237, 230, 218, 0.06); }
.btn-small { min-height: 44px; padding: 0 var(--s4); font-size: var(--fs-sm); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  background: rgba(20, 16, 12, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--smoke); text-decoration: none; font: 600 22px/1 var(--serif); }
.brand:visited { color: var(--smoke); }
.brand-mark { width: 24px; height: 36px; }
.nav-links { display: flex; gap: var(--s2); }
.nav-links a { color: var(--ash); text-decoration: none; font-size: 15px; padding: var(--s3) var(--s3); border-radius: var(--r-sm); transition: color var(--dur-1) var(--ease-out); }
.nav-links a:hover { color: var(--smoke); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(900px, calc(100svh - var(--nav-h))); padding: var(--s7) var(--gutter) 96px; display: grid; align-items: center; }
.sky { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #0b0a0f 0%, #120f0e 50%, #1c1510 100%); }
.stars {
  position: absolute; inset: 0 0 auto; width: 100%; height: 70%; opacity: 0.8;
  /* Keep the sky clear behind the headline and lede. */
  -webkit-mask-image: radial-gradient(ellipse 34% 42% at 24% 62%, transparent 70%, #000 100%);
  mask-image: radial-gradient(ellipse 34% 42% at 24% 62%, transparent 70%, #000 100%);
}
.stars .tw { animation: twinkle 5s var(--ease-in-out) infinite; }
.stars .tw1 { animation-duration: 6.5s; animation-delay: -2s; }
.stars .tw2 { animation-duration: 4.2s; animation-delay: -1s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: var(--s7); align-items: center;
}
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: var(--s5); }
h1 .rise { display: inline-block; }
.lede { font-size: var(--fs-xl); color: var(--smoke-2); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s6) 0 var(--s4); }
.hero-meta { font-size: var(--fs-sm); color: var(--ash); }
.hero-meta b { color: var(--fire); font-weight: 500; }
@media (min-width: 981px) and (max-height: 880px) {
  .hero { padding-top: var(--s5); padding-bottom: var(--s6); }
  .hero-demo { padding-bottom: 200px; }
}
@media (min-width: 981px) and (max-width: 1100px) {
  h1 { font-size: min(var(--fs-h1), calc((100vw - 590px) / 9)); }
}

/* Ground: pixel horizon + the campfire */
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: -1; pointer-events: none; }
.horizon { position: absolute; inset: 0; width: 100%; height: 100%; }
.campfire { position: absolute; bottom: 30px; left: calc(50% + 150px); width: 72px; height: 108px; }
.fire { position: relative; width: 72px; height: 108px; }
.firelight {
  position: absolute; left: 50%; bottom: -22px; width: 420px; height: 90px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255, 122, 47, 0.32), rgba(255, 122, 47, 0.08) 60%, transparent);
  animation: firelight 2.4s var(--ease-in-out) infinite;
}
@keyframes firelight { 0%, 100% { opacity: 0.8; scale: 1; } 40% { opacity: 1; scale: 1.04 1; } 70% { opacity: 0.9; } }
/* Flame: a 3-frame sprite flip, like the game it belongs in. */
.frame { opacity: 0; animation: frame 0.54s steps(1, end) infinite; }
.fa { opacity: 1; }
.fb { animation-delay: -0.18s; }
.fc { animation-delay: -0.36s; }
@keyframes frame { 0% { opacity: 1; } 33.33% { opacity: 0; } 100% { opacity: 0; } }
/* The fire's face: blinks, glances at the chat while it plays, and grins when the ❤️ lands. */
.face-happy { opacity: 0; }
.lids { transform-box: fill-box; transform-origin: 50% 100%; animation: blink 5.2s steps(1, end) infinite; }
@keyframes blink { 0%, 93% { transform: none; } 94%, 96% { transform: scaleY(0.5); } 97%, 100% { transform: none; } }
.fire.is-happy .face-normal { opacity: 0; }
.fire.is-happy .face-happy { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero:has(.hero-demo.play) .fire .look { animation: glance 8.6s steps(1, end) 0.3s both; }
  .hero:has(.hero-demo.play) .fire .face-normal { animation: grin-off 2.4s steps(1, end) 7.6s; }
  .hero:has(.hero-demo.play) .fire .face-happy { animation: grin-on 2.4s steps(1, end) 7.6s; }
}
@keyframes glance { 0% { transform: none; } 6% { transform: translateX(1px); } 92% { transform: translateX(1px); } 100% { transform: none; } }
@keyframes grin-off { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes grin-on { 0% { opacity: 1; } 100% { opacity: 0; } }
/* Friends sitting around the fire, on the same 6px pixel grid. They react to the chat above. */
.friend { position: absolute; bottom: 0; width: 54px; height: 78px; }
.friend-nico { left: -156px; }
.friend-jess { left: -84px; }
.friend-sam { left: 102px; }
.say { position: absolute; bottom: 90px; white-space: nowrap; padding: 2px 8px; border-radius: 4px; background: var(--smoke); color: var(--night); font: 600 12px/1.5 var(--mono); opacity: 0; }
.say::after { content: ""; position: absolute; left: 12px; bottom: -5px; width: 6px; height: 6px; background: var(--smoke); clip-path: polygon(0 0, 100% 0, 0 100%); }
.say-jess { left: -92px; }
.phone-glow { position: absolute; left: -86px; bottom: 4px; width: 60px; height: 60px; background: radial-gradient(closest-side, rgba(120, 190, 255, 0.5), transparent); opacity: 0; }
.say-nico { left: -164px; }
.say-sam { left: 94px; }
@media (prefers-reduced-motion: no-preference) {
  /* Each friend's bubble pops when their Discord message lands; everyone hops on the reaction. */
  .hero:has(.hero-demo.play) .say { animation: say 1.3s var(--ease-out) both; }
  .hero:has(.hero-demo.play) .say-jess { animation-delay: 3.95s; }
  .hero:has(.hero-demo.play) .say-sam { animation-delay: 4.55s; }
  .hero:has(.hero-demo.play) .say-nico { animation-delay: 5.15s; }
  .hero:has(.hero-demo.play) .friend { animation: hop 360ms steps(1, end) 7.5s 2; }
  .hero:has(.hero-demo.play) .friend-jess { animation-delay: 7.58s; }
  .hero:has(.hero-demo.play) .friend-sam { animation-delay: 7.66s; }
  .hero:has(.hero-demo.play) .phone-glow { animation: say 3.2s linear 0.3s both; }
}
@keyframes say { 0% { opacity: 0; transform: translateY(4px); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hop { 0% { transform: translateY(-6px); } 50% { transform: none; } }
.ember { position: absolute; left: 33px; top: 10px; width: 6px; height: 6px; background: var(--fire); opacity: 0; animation: ember 2.6s var(--ease-out) infinite; }
.e1 { --dx: -18px; animation-delay: 0s; }
.e2 { --dx: 14px; animation-delay: -0.5s; animation-duration: 3s; background: var(--ember); }
.e3 { --dx: -6px; animation-delay: -1.1s; animation-duration: 2.2s; }
.e4 { --dx: 22px; animation-delay: -1.6s; animation-duration: 3.2s; background: var(--ember); }
.e5 { --dx: -26px; animation-delay: -2s; animation-duration: 2.8s; }
.e6 { --dx: 6px; animation-delay: -2.4s; animation-duration: 2.4s; background: var(--ember); }
@keyframes ember {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -150px); }
}

/* Demo: Discord channel */
.hero-demo { position: relative; width: 100%; padding-bottom: 200px; }
.discord {
  margin: 0; width: 100%;
  background: var(--dc-bg); color: var(--dc-text); border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  font: 15px/1.375 "gg sans", "Noto Sans", var(--sans);
}
.dc-head { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); border-bottom: 1px solid #1f2124; font-weight: 600; color: var(--dc-head); }
.dc-hash { color: #80848e; font-size: 20px; font-weight: 400; }
.dc-topic { color: var(--dc-muted); font-weight: 400; font-size: 13px; margin-left: var(--s1); padding-left: 10px; border-left: 1px solid #3f4147; }
.dc-log { padding: var(--s2) 0; }
.msg { display: flex; gap: 14px; padding: 4px var(--s4); }
.avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.avatar svg { width: 34px; height: 34px; margin-top: 10px; }
.av-jess { background: var(--dc-blurple); }
.av-sam { background: #3ba55c; }
.av-nico { background: #ed4245; }
.av-bot { background: var(--night); }
.av-bot svg { width: 30px; height: 35px; margin-top: 7px; }
.who { color: var(--dc-head); font-weight: 600; margin-bottom: 2px; }
.who time { color: var(--dc-muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.dc-tag { background: var(--dc-blurple); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; vertical-align: 2px; margin-left: var(--s1); }
.embed { margin: var(--s2) 0; padding: 10px 14px; background: var(--dc-bg-2); border-left: 4px solid var(--ember); border-radius: 4px; }
.embed-title { color: var(--dc-head); font-weight: 600; }
.embed-link { color: var(--dc-link); font-size: var(--fs-sm); }
.embed-body { font-size: var(--fs-sm); margin-top: var(--s1); }
.dc-note { color: #b5bac1; font-size: var(--fs-sm); }
.reaction { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 8px; border-radius: var(--r-sm); background: rgba(88, 101, 242, 0.15); box-shadow: inset 0 0 0 1px var(--dc-blurple); color: #c9cdfb; font-size: 14px; font-weight: 600; }
.reaction svg { width: 12px; height: 18px; }
.dc-composer { padding: 0 var(--s4) 6px; }
.dc-input { display: flex; align-items: center; gap: var(--s3); background: var(--dc-bg-3); border-radius: var(--r-sm); padding: 10px var(--s4); color: #6d6f78; font-size: 15px; }
.dc-plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #b5bac1; color: var(--dc-bg-3); font-weight: 700; line-height: 1; }
.dc-typing { height: 22px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dc-text); opacity: 0; }
.dc-typing b { font-weight: 600; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: dot 1.2s var(--ease-in-out) infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Demo: iMessage (dark mode), owner approvals */
.imessage {
  position: absolute; right: clamp(-40px, 576px - 50vw, -4px); bottom: 0; width: 264px; margin: 0;
  background: var(--im-bg); color: #fff; border-radius: 26px; padding: 10px 12px 12px;
  font: 15px/1.32 -apple-system, "SF Pro Text", var(--sans);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.im-head { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--im-muted); margin-bottom: 4px; }
.im-avatar { width: 32px; height: 32px; border-radius: 50%; background: #1c1712; display: grid; place-items: center; overflow: hidden; }
.im-avatar svg { width: 24px; height: 28px; margin-top: 6px; }
.bubble { max-width: 84%; padding: 7px 12px; font-size: 14px; border-radius: 18px; margin: 2px 0; width: fit-content; }
.bubble.in { background: var(--im-in); }
.bubble.in.tail, .bubble.out { position: relative; }
.bubble.in.tail::before, .bubble.in.tail::after, .bubble.out::before, .bubble.out::after { content: ""; position: absolute; bottom: 0; height: 18px; }
.bubble.in.tail::before { left: -6px; width: 18px; background: var(--im-in); border-bottom-right-radius: 14px 12px; }
.bubble.in.tail::after { left: -10px; width: 10px; background: var(--im-bg); border-bottom-right-radius: 10px; }
.bubble.out::before { right: -6px; width: 18px; background: var(--im-out); border-bottom-left-radius: 14px 12px; }
.bubble.out::after { right: -10px; width: 10px; background: var(--im-bg); border-bottom-left-radius: 10px; }
.im-compose { display: flex; align-items: center; height: 28px; margin-top: 8px; padding: 0 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px #3a3a3c; color: #5a5a5f; font-size: 14px; }
.bubble.out { background: var(--im-out); color: #fff; margin: 10px 0 2px auto; border-bottom-right-radius: 6px; }
.bubble-slot { margin-top: 10px; }
.has-tapback { position: relative; margin-top: 12px; }
.tapback { position: absolute; top: -14px; right: -12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--im-out); box-shadow: 0 0 0 2px var(--im-bg); font-size: 12px; line-height: 1; }
.bubble-slot { display: grid; justify-items: start; }
.bubble-slot > * { grid-area: 1 / 1; }
.bubble.typing { color: #9a9aa0; padding: 11px 14px; align-self: start; opacity: 0; }
.im-day { text-align: center; font-size: 11px; color: var(--im-muted); margin: 2px 0 6px; }
.im-day b { font-weight: 600; }
.im-meta { text-align: right; font-size: 11px; color: var(--im-muted); padding-right: 4px; }

/* Hero playback. Runs once when the demo scrolls into view (app.js adds .play).
   Without JS, or with reduced motion, everything shows in its final state. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .rise { animation: rise var(--dur-3) var(--ease-out) both; }
  .js .hero h1 .rise:nth-child(2) { animation-delay: 70ms; }
  .js .hero .lede { animation-delay: 140ms; }
  .js .hero .cta-row { animation-delay: 210ms; }
  .js .hero .hero-meta { animation-delay: 280ms; }

  .js [data-play] .seq, .js [data-play] .seq-card, .js [data-play] .pop { opacity: 0; }
  .js [data-play].play .seq { animation: msg-in var(--dur-2) var(--ease-out) var(--at, 0s) both; }
  .js [data-play].play .seq-card { animation: card-in 480ms var(--ease-out) var(--at, 0s) both; }
  .js [data-play].play .pop { animation: pop 420ms var(--ease-pop) var(--at, 0s) both; }
  .js [data-play].play .blink-in { animation: blink-in var(--for, 1s) linear var(--at, 0s) both; }
  .bubble.out.pop { transform-origin: 100% 100%; }
  .reaction.pop { transform-origin: 0 50%; }
}
/* Desktop: the text thread plays centered in the chat area, then docks to its corner as Discord opens.
   app.js measures --im-dx / --im-dy (the offset from the corner to the center). */
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .js .hero-demo.play .imessage { animation: im-intro 4s both; animation-delay: 0.1s; }
}
@keyframes im-intro {
  0% { opacity: 0; transform: translate(var(--im-dx, 0), calc(var(--im-dy, 0px) + 28px)) scale(0.98); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  12% { opacity: 1; transform: translate(var(--im-dx, 0), var(--im-dy, 0)); }
  82% { transform: translate(var(--im-dx, 0), var(--im-dy, 0)); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.6); } 100% { opacity: 1; transform: scale(1); } }
@keyframes blink-in { 0% { opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }

/* What goes away */
.goneband { border-block: 1px solid var(--line); background: var(--night-2); }
.goneband ul {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s5) var(--gutter); list-style: none;
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: var(--s3) var(--s6);
  font-size: var(--fs-lg); color: var(--smoke-2);
}
.goneband s { text-decoration: none; position: relative; color: var(--ash); }
.goneband s::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--ember);
  transform-origin: 0 50%;
}
.goneband li:nth-child(2) s { --d: 300ms; }
.goneband li:nth-child(3) s { --d: 600ms; }
.goneband li:nth-child(4) s { --d: 900ms; }
@media (prefers-reduced-motion: no-preference) {
  .js .goneband s { color: var(--smoke-2); transition: color 400ms var(--ease-out) calc(var(--d, 0ms) + 600ms); }
  .js .goneband.play s { color: var(--ash); }
  .js .goneband s::after { transform: scaleX(0); transition: transform 380ms var(--ease-in-out) calc(var(--d, 0ms) + 250ms); }
  .js .goneband.play s::after { transform: scaleX(1); }
}

/* Sections */
.section { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s10) var(--gutter) 0; }
.section > h2, .section-head { margin-bottom: var(--s7); }
.section { scroll-margin-top: calc(var(--s6) - var(--s10)); }
.section-head { max-width: 760px; }
h2 { font-size: var(--fs-h2); }
.sub { color: var(--ash); font-size: var(--fs-lg); margin-top: var(--s3); }

/* How it works: three product moments */
#how h2 .nowrap { white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.steps h3 { font-size: var(--fs-h3); margin: var(--s5) 0 var(--s2); display: flex; align-items: center; gap: var(--s3); }
.steps > li > p { color: var(--smoke-2); }
.step-n { flex: 0 0 auto; display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--ember); color: var(--night); font: 600 var(--fs-sm)/1 var(--mono); }
.step-visual { height: 280px; border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--line); display: grid; align-items: stretch; justify-items: center; padding: var(--s5) var(--s5) 0; overflow: hidden; }

.mini-discord { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; background: var(--dc-bg); color: var(--dc-text); border-radius: var(--r-md) var(--r-md) 0 0; padding: var(--s2) 0; font: 14px/1.375 "gg sans", "Noto Sans", var(--sans); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.mini-discord .dc-head { margin: calc(var(--s2) * -1) 0 auto; font-size: 14px; }
.mini-discord .msg { padding: 6px var(--s3); gap: var(--s3); }
.mini-discord .avatar { flex-basis: 32px; height: 32px; }
.mini-discord .avatar svg { width: 28px; height: 28px; margin-top: 8px; }
.mini-discord .av-bot svg { width: 24px; height: 28px; margin-top: 6px; }
.mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }

.step-visual:has(.phone) { padding-bottom: 0; }
.phone {
  width: 100%;
  background: #f6f2ea; color: #1b1611; border-radius: 10px 10px 0 0; padding: 0 18px 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.5); font-size: 13px;
}
.ph-url { display: flex; align-items: center; gap: 6px; margin: 0 -18px 16px; padding: 8px 10px; border-radius: 10px 10px 0 0; background: #e2dacd; font: 500 10px/1 var(--mono); color: #4f463e; }
.ph-url i { flex: 0 0 8px; height: 8px; border-radius: 50%; background: #c4b9a8; }
.ph-url span { flex: 1; text-align: center; background: #f6f2ea; border-radius: 5px; padding: 4px 6px; margin-right: 30px; }
.ph-title { font: 600 19px/1.15 var(--serif); }
.ph-sub { color: #6b6158; font-size: 12px; margin: 4px 0 12px; }
.ph-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.ph-steps li { display: flex; align-items: center; gap: 8px; }
.ph-steps li.done { color: #6b6158; }
.ph-steps code { font-size: 10px; background: #e8e1d5; color: #1b1611; padding: 1px 4px; }
.ph-check, .ph-num { flex: 0 0 18px; height: 18px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.ph-check { background: #2f9e62; color: #fff; }
.ph-num { background: var(--ember); color: #1b1611; }
.ph-btn { display: block; text-align: center; background: #1b1611; color: #f6f2ea; border-radius: var(--r-pill); padding: 9px; font-weight: 600; font-size: 12px; }

.log { width: 100%; background: var(--well); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; padding: var(--s4) 18px; font: 13px/1.95 var(--mono); }
.log-head { color: var(--ash); border-bottom: 1px solid var(--line); padding-bottom: var(--s2); margin-bottom: 6px; }
.log ul { list-style: none; margin: 0; padding: 0; color: var(--smoke-2); }
.log time { color: var(--ash); margin-right: 10px; }
.ok { color: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .js .log li { opacity: 0; transition: opacity 90ms linear var(--at, 0s); }
  .js .log.play li { opacity: 1; transform: none; }
}

/* Games: a library shelf */
.shelf { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s4); }
.cover { display: grid; gap: 2px; color: var(--smoke); text-decoration: none; border-radius: var(--r-md); }
.cover:visited { color: var(--smoke); }
.cover img, .more-art {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--s2);
  background: var(--night-2); box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.cover:hover img, .cover:hover .more-art, .cover:focus-visible img, .cover:focus-visible .more-art { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--ember), 0 18px 34px rgba(0, 0, 0, 0.5); }
.cover:focus-visible { outline: none; }
.cover img, .more-art { grid-area: 1 / 1; }
.cover::after { content: "Pick this →" / "Pick this game"; grid-area: 1 / 1; align-self: end; justify-self: start; margin: 0 0 var(--s4) var(--s2); padding: 4px 10px; border-radius: var(--r-pill); background: var(--ember); color: var(--night); font: 600 var(--fs-xs)/1.2 var(--sans); opacity: 0; pointer-events: none; transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.cover:hover::after, .cover:focus-visible::after { opacity: 1; transform: translateY(-6px); }
.cover-more::after { content: none; }
.cover-name { font: 600 var(--fs-md)/1.3 var(--sans); }
.cover-note { font-size: var(--fs-xs); color: var(--ash); line-height: 1.4; }
.more-art { display: grid; place-items: center; background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); font: 400 48px/1 var(--sans); color: var(--ash); }
.cover-more:hover .more-art, .cover-more:focus-visible .more-art { box-shadow: inset 0 0 0 2px var(--ember); }
.fine { color: var(--ash); font-size: 12px; line-height: 1.5; margin-top: var(--s7); max-width: 640px; }

/* Safety: a game-style load screen, then the disasters it covers */
.safe-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s8); align-items: start; }
.saves { position: sticky; top: calc(var(--nav-h) + var(--s6)); background: var(--well); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.saves-head { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s1) var(--s2) var(--s3); font: 500 var(--fs-xs)/1.4 var(--mono); color: var(--ash); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.slot { display: flex; align-items: center; gap: var(--s4); padding: 10px var(--s3); border-radius: var(--r-md); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.thumb { flex: 0 0 80px; height: 50px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.thumb svg { width: 100%; height: 100%; }
.slot-main { flex: 1 1 auto; display: grid; min-width: 0; }
.slot-main b { font: 600 var(--fs-md)/1.3 var(--serif); color: var(--smoke); }
.slot-main span { font-size: var(--fs-sm); color: var(--ash); }
.slot-pick .slot-main span { color: var(--smoke-2); }
.tag { flex: 0 0 auto; font: 500 12px/1 var(--mono); color: var(--ash); padding: 5px 7px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag-change { color: var(--fire); box-shadow: inset 0 0 0 1px rgba(255, 197, 107, 0.4); }
.slot-pick { background: var(--ember-wash); box-shadow: inset 0 0 0 1.5px var(--ember); }
.saves-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); padding: var(--s4) var(--s2) var(--s1); }
.load-btn { position: relative; isolation: isolate; overflow: hidden; border: 0; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-sm); background: var(--ember); color: var(--night); font: 500 13px/1 var(--mono); }
.load-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fire); transform: scaleX(0); transform-origin: 0 50%; }
.toast { display: inline-flex; align-items: center; gap: var(--s2); font: 600 var(--fs-md)/1.3 var(--sans); color: var(--smoke); }
@media (prefers-reduced-motion: no-preference) {
  .js .saves .slot { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
  .js .saves.play .slot { opacity: 1; transform: none; }
  .js .saves .slot-pick { background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
  .js .saves:has(.saves-foot.play) .slot-pick { animation: slot-pick 360ms var(--ease-out) 0.3s forwards; }
  .js .saves .load-btn { opacity: 0.45; transition: opacity var(--dur-1) var(--ease-out) 0.5s; }
  .js .saves-foot.play .load-btn { opacity: 1; animation: load-press 260ms var(--ease-out) 0.9s; }
  .js .saves-foot.play .load-btn::after { animation: load-fill 900ms var(--ease-in-out) 1.1s forwards; }
  .js .saves .toast { opacity: 0; }
  .js .saves-foot.play .toast { animation: msg-in var(--dur-2) var(--ease-out) 2.05s both; }
}
@keyframes slot-pick { to { background: var(--ember-wash); box-shadow: inset 0 0 0 1.5px var(--ember); } }
@keyframes load-press { 50% { transform: scale(0.94); } }
@keyframes load-fill { to { transform: scaleX(1); } }

.ifs { display: grid; margin: 0; max-width: 640px; }
.ifs div { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.ifs div:first-child { border-top: 0; padding-top: 0; }
.ifs dt { font: 600 var(--fs-xl)/1.3 var(--serif); margin-bottom: var(--s1); }
.ifs dd { margin: 0; color: var(--smoke-2); }

/* Join: the closing pitch. The form itself opens in the signup takeover. */
.join { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s8); align-items: start; }
.join .cta-row { margin-bottom: 0; }
.join .btn-ghost { font-size: var(--fs-lg); }
.btn-big { min-height: 56px; padding: 0 var(--s6); font-size: var(--fs-lg); }
.price { padding: var(--s6); border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--line); }
.amount { font: 600 72px/1 var(--serif); letter-spacing: -0.02em; }
.amount span { font: 400 var(--fs-xl) var(--sans); color: var(--ash); margin-left: var(--s1); letter-spacing: 0; }
.price-line { font-size: var(--fs-lg); margin-top: var(--s3); }
.per-head-static { color: var(--fire); margin: var(--s1) 0 var(--s5); }
.per-head { color: var(--fire); margin-top: var(--s4); min-height: 1.6em; }
.per-head.swap { animation: msg-in var(--dur-2) var(--ease-out); }
.included { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.included li { padding: var(--s2) 0 var(--s2) 28px; position: relative; color: var(--smoke-2); }
.included li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* Signup takeover */
html:has(.signup[open]) { overflow: hidden; }
.signup {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: radial-gradient(60% 40% at 50% 112%, rgba(255, 122, 47, 0.16), transparent 70%), var(--night);
  color: var(--smoke); overflow: auto;
}
.signup::backdrop { background: rgba(10, 8, 6, 0.7); }
.signup-top { position: sticky; top: 0; z-index: 1; background: var(--night); display: flex; align-items: center; justify-content: space-between; padding: var(--s4) max(var(--gutter), 3vw); }
.signup-top .brand-mark { width: 16px; height: 24px; }
.signup-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(237, 230, 218, 0.06); color: var(--smoke); font-size: 18px; cursor: pointer; transition: background-color var(--dur-1) var(--ease-out); }
.signup-close:hover { background: rgba(237, 230, 218, 0.12); }
.signup-body { width: min(720px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 4vh 0 160px; }
.signup-fire { position: fixed; left: 50%; bottom: 28px; width: 32px; height: 48px; translate: -50% 0; opacity: 0.9; pointer-events: none; }
.signup .form { background: none; border: 0; padding: 0; border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
  .signup[open] { animation: signup-in 320ms var(--ease-out); }
  .signup[open]::backdrop { animation: fade-in 320ms var(--ease-out); }
}
@keyframes signup-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }

.form { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); display: grid; gap: var(--s6); }

/* Signup flow: one question at a time once JS is running. Without JS every question stacks and the form still submits. */
.step-top, .progress, .btn-ok, .skip-q, .hint { display: none; }
.js .stepper { gap: var(--s5); align-content: start; }
.js .stepper .step-top { display: flex; align-items: center; justify-content: space-between; }
.js .stepper .progress { display: block; height: 3px; margin-top: calc(var(--s4) * -1); background: var(--line); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ember); transform-origin: 0 50%; transform: scaleX(var(--p, 0.14)); transition: transform 520ms var(--ease-out); }
.js .stepper .step:not(.is-current) { display: none; }
.js .stepper .btn-ok, .js .stepper .skip-q { display: inline-flex; }
.js .stepper .hint { display: inline; }
.back { min-height: 44px; padding: 0; background: none; border: 0; color: var(--ash); font: 500 var(--fs-sm) var(--sans); cursor: pointer; transition: color var(--dur-1) var(--ease-out); }
.back:hover { color: var(--smoke); }
.back[disabled] { visibility: hidden; }
.step-count { font: 500 var(--fs-xs)/1 var(--mono); color: var(--ash); }
.q { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); padding: 0; margin-bottom: var(--s6); font: 600 clamp(26px, 3.2vw, 40px)/1.15 var(--serif); letter-spacing: -0.01em; }
.q:focus { outline: none; }
.q-n { font: 500 var(--fs-sm)/1 var(--mono); color: var(--ember); }
.q-n::after { content: " →" / ""; }
.q .opt { font-size: var(--fs-sm); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); counter-reset: key; }
.choices-wide { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.choice {
  position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 52px; padding: var(--s2) 14px var(--s2) 10px;
  border-radius: var(--r-md); background: rgba(237, 230, 218, 0.02); box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--smoke-2); cursor: pointer; counter-increment: key;
  transition: background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform 80ms var(--ease-out);
}
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
@media (hover: hover) { .choice:hover { background: rgba(237, 230, 218, 0.06); } }
@media (hover: none) { .js .stepper .hint, .choices .key { display: none !important; } }
.choice:active { transform: scale(0.985); }
.choice:has(input:checked) { background: var(--ember-wash); box-shadow: inset 0 0 0 1.5px var(--ember); color: var(--smoke); }
.choice:has(input:focus-visible) { outline: 2px solid var(--fire); outline-offset: 2px; }
.key { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 12px/1 var(--mono); color: var(--smoke-2); transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.key::before { content: counter(key, upper-alpha); }
.choice:has(input:checked) .key { background: var(--ember); color: var(--night); box-shadow: none; }
.choice img, .thumb-q { flex: 0 0 24px; width: 24px; height: 36px; border-radius: 3px; object-fit: cover; }
.thumb-q { display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fire); font: 600 16px/1 var(--serif); }
.choice.picked { animation: picked 380ms steps(1, end); }
@keyframes picked { 0%, 50% { box-shadow: inset 0 0 0 1.5px var(--ember); } 25%, 75% { box-shadow: inset 0 0 0 1.5px transparent; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.step-actions { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s5); }
.btn-ok { min-height: 44px; padding: 0 var(--s5); }
.skip-q { min-height: 44px; align-items: center; padding: 0 var(--s2); background: none; border: 0; color: var(--ash); font: 500 var(--fs-sm) var(--sans); cursor: pointer; }
.skip-q:hover { color: var(--smoke); }
.hint { font-size: var(--fs-xs); color: var(--ash); }
kbd { font: 500 12px/1 var(--mono); padding: 3px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--smoke-2); }
.stepper .submit-row { margin-top: var(--s5); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 600 var(--fs-lg)/1.3 var(--serif); margin-bottom: var(--s3); padding: 0; }
.opt { font: 400 var(--fs-xs) var(--sans); color: var(--ash); margin-left: 6px; }
.field { display: grid; gap: var(--s2); align-content: start; }
.field > label, .field > span { font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: var(--fs-md)/1.4 var(--sans); color: var(--smoke); background: var(--well);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--fire); outline-offset: 2px; border-color: var(--ember); }
.field textarea::placeholder { color: #6f675f; }
.other-game { margin-top: var(--s4); max-width: 360px; }
.error { color: var(--err); font-size: var(--fs-sm); }
.error:empty { display: none; }
.form-error { margin-top: var(--s3); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: grid; gap: var(--s4); justify-items: start; padding-top: 8vh; }
.thanks h3 { font-size: clamp(32px, 4vw, 48px); }
.thanks p { font-size: var(--fs-lg); color: var(--smoke-2); max-width: 32em; }
.thanks .cta-row { margin: var(--s3) 0 0; }
.thanks-fire { width: 32px; height: 48px; }
.signup:has(.thanks:not([hidden])) .signup-fire { display: none; }
.thanks:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .thanks:not([hidden]) { animation: card-in 520ms var(--ease-out) both; }
  .thanks:not([hidden]) .thanks-fire { animation: pop 520ms var(--ease-pop) 160ms both; transform-origin: 50% 100%; }
}

/* FAQ */
.faq-list { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 var(--fs-xl)/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember); font: 500 24px/1 var(--mono); transition: transform var(--dur-2) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--smoke-2); padding-bottom: var(--s5); max-width: 720px; }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-2) var(--ease-out), content-visibility var(--dur-2) allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}

.footer {
  max-width: var(--max); width: calc(100% - 2 * var(--gutter)); margin: var(--s10) auto 0; padding: var(--s6) 0 var(--s7); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3);
}
.footer a { color: var(--smoke); }

/* Responsive */
@media (max-width: 1100px) {
  .shelf { gap: var(--s3); }
}
@media (max-width: 980px) {
  .shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 22%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: var(--s2) var(--gutter) var(--s3); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf li { scroll-snap-align: start; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding-top: var(--s8); }
  .stars { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 60px, transparent 120px, transparent 360px, #000 440px); mask-image: linear-gradient(180deg, #000 0, #000 60px, transparent 120px, transparent 360px, #000 440px); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-demo { max-width: 520px; margin-left: auto; margin-right: var(--s5); }
  .campfire { left: calc(max(4vw, 24px) + 156px); }
  .goneband ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: var(--s7); }
  .steps > li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto auto 1fr; column-gap: var(--s6); }
  .steps .step-visual { grid-row: 1 / -1; }
  .steps h3, .steps > li > p { grid-column: 2; }
  .steps h3 { grid-row: 2; margin-top: 0; }
  .steps > li > p { grid-row: 3; }
  .join, .safe-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .saves { position: static; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  /* Phones: the campfire scene sits at the top as the first thing you see, then the pitch, then the chat. */
  .hero { padding: 214px var(--gutter) var(--s8); min-height: 0; }
  .ground { top: 0; bottom: auto; height: 200px; }
  .stars { height: 200px; }
  h1 { font-size: clamp(34px, calc((100vw - 32px) / 9), 44px); }
  .lede { font-size: var(--fs-lg); }
  .cta-row .btn { flex: 1 1 auto; }
  .hero-demo { margin-right: 0; padding-bottom: 0; }
  .hero-demo { display: flex; flex-direction: column; }
  .imessage { order: -1; position: relative; right: auto; bottom: auto; margin: 0 0 var(--s3); width: min(272px, 84%); }
  .discord { font-size: 14px; }
  .campfire { right: auto; left: 180px; bottom: 30px; }
  .goneband ul { grid-template-columns: 1fr; font-size: var(--fs-md); }
  .steps > li { display: block; }
  .steps h3 { margin-top: var(--s5); }
  .section { padding-top: var(--s8); scroll-margin-top: calc(var(--s6) - var(--s8)); }
  .section > h2, .section-head { margin-bottom: var(--s6); }
  .step-visual { height: auto; padding: var(--s4) var(--s4) 0; }
  .mini-discord { justify-content: flex-start; }
  .mini-discord .dc-head { margin-bottom: var(--s1); }
  .log { min-height: 0; }
  .ifs dt, .faq summary { font-size: var(--fs-lg); }
  .faq summary { padding: var(--s4) 0; }
  .goneband ul { padding-block: var(--s4); gap: var(--s2); }
  .shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: var(--s2) var(--gutter) var(--s3); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf li { scroll-snap-align: start; }
  .fields, .choices { grid-template-columns: 1fr; }
  .choices-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag, .saves-head span + span { display: none; }
  /* On phones the form comes right after the heading; the price follows it. */
  .price { padding: var(--s5); }
  .signup-body { padding-top: 1vh; padding-bottom: var(--s7); }
  .signup-fire { display: none; }
  .stars { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70px, transparent 130px); mask-image: linear-gradient(180deg, #000 0, #000 70px, transparent 130px); }
  .js .stepper { min-height: 0; }
  .hint { display: none !important; }
  .form { padding: var(--s5) 18px; }
  .amount { font-size: 60px; }
  .btn-small { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame { animation: none; }
  .fb, .fc { opacity: 0; }
  .ember, .dots i, .stars .tw, .firelight, .lids { animation: none; }
  .ember { display: none; }
}
