/* playcurfew.com. The app's world at web scale: Buffer Black topo bands, light cards riding up over their edges,
   lowercase Archivo Expanded, Archivo Numerals for every code and timer, amber only for pings and the lamp.
   Token values mirror src/theme/ui.ts and DESIGN.md. */

@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/archivo-expanded-extrabold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Numerals";
  src: url("/assets/fonts/archivo-numerals-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0d0d0d;
  --map: #121212;
  --road: #222222;
  --road-major: #2e2e2e;
  --park: #14211a;
  --amber: #ffb000;
  --ember: #e0620e;
  --white: #ffffff;
  --ground: #f3eff4;
  --surface: #fcf8fd;
  --fill: #e6e0e9;
  --ink: #1c1b1f;
  --ink-2: #49454f;
  --ink-3: #7a757f;
  --outline: #79747e;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --dark-fill: rgba(255, 255, 255, 0.12);
  --dark-chip: rgba(255, 255, 255, 0.14);
  --panel: rgba(13, 13, 13, 0.9);
  --panel-edge: rgba(255, 255, 255, 0.14);
  --avatar: #3a3740;
  --sos: #c62828;
  --sos-ring: rgba(198, 40, 40, 0.28);
  --nogo: #e0524f;
  --danger: #a61b1b;

  --display: "Archivo Expanded", "Arial Black", sans-serif;
  --num: "Archivo Numerals", ui-monospace, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;

  --gutter: 16px;
  --ride: 56px;
  --r-card: 26px;
  --r-panel: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);

  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Written for the phone first; each query below adds to it. The hero's phone screen is sized once here so the band,
   the hero grid and the section under it all agree on it. */
@media (min-width: 360px) {
  :root { --gutter: 20px; }
}
@media (min-width: 720px) {
  :root { --screen-w: clamp(280px, 36vw, 380px); --hero-gap: clamp(32px, 5vw, 64px); }
}
@media (min-width: 760px) {
  :root { --gutter: 40px; --ride: 72px; }
}

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

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: var(--outline) var(--black);
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--white); }
.band ::selection, .footer ::selection { background: var(--white); color: var(--black); }

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
/* Hover only where there is a pointer that hovers; on a touchscreen it sticks after the tap. */
@media (hover: hover) {
  a:hover { text-decoration-thickness: 2px; }
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.band :focus-visible, .footer :focus-visible, .screen :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--black);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* viewport-fit=cover lets the page run under the notch in landscape, so the gutter never gets narrower than it. */
.wrap {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.02;
  text-wrap: balance;
  font-synthesis: none;
}
.num {
  font-family: var(--num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
}
.h1 { font-size: clamp(2.25rem, 1rem + 5vw, 4.75rem); }
.h2 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.25rem); }
.h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.625rem); line-height: 1.08; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; max-width: 36ch; }
.label {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- Grounds ---------- */

.band {
  position: relative;
  background-color: var(--black);
  background-image: url("/assets/img/topo.png");
  background-image: image-set(url("/assets/img/topo.png") 1x, url("/assets/img/topo@2x.png") 2x);
  background-size: 390px 390px;
  color: var(--white);
}
.band .lede, .band .muted { color: var(--on-dark-2); }
.ground { background: var(--ground); color: var(--ink); }
.muted { color: var(--ink-2); }

/* A light row that rides up over the band above it, the app's first-card overlap. */
.rides { position: relative; z-index: 1; margin-top: calc(var(--ride) * -1); }
@media (min-width: 1000px) { .rides-lg { position: relative; z-index: 1; margin-top: calc(var(--ride) * -1); } }

/* ---------- Components ---------- */

/* The narrowest phones get the app's own 18 px card padding, and pills in cards drop their icon there so a label
   like the support address still fits on one line. */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 18px;
  color: var(--ink);
}
.card .pill svg { display: none; }
@media (min-width: 360px) { .card { padding: 22px; } .card .pill svg { display: block; } }
@media (min-width: 760px) { .card { padding: 28px; } }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  max-width: 100%;
  font: 600 1rem/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.pill:hover { text-decoration: none; }
.pill:active { transform: scale(0.98); }
.pill-white { background: var(--white); color: var(--black); }
.pill-ink { background: var(--ink); color: var(--white); }
.pill-tonal { background: var(--fill); color: var(--ink); }
.pill-dark { background: var(--dark-fill); color: var(--white); }
.pill-white:active { background: #ece8ee; }
.pill-ink:active { background: #34323a; }
.pill-tonal:active { background: #dcd5df; }
.pill-dark:active { background: rgba(255, 255, 255, 0.2); }
@media (hover: hover) {
  .pill-white:hover { background: #ece8ee; }
  .pill-ink:hover { background: #34323a; }
  .pill-tonal:hover { background: #dcd5df; }
  .pill-dark:hover { background: rgba(255, 255, 255, 0.2); }
}
.pill-sm { height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.pill-lg { height: 56px; padding: 0 26px; }
.pill svg { width: 20px; height: 20px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; line-height: 1.35; white-space: nowrap;
  background: var(--fill); color: var(--ink);
}
.chip-dark { background: var(--dark-chip); color: var(--white); }
.chip-white { background: var(--white); color: var(--black); }
.chip-amber { background: var(--amber); color: var(--black); }

.disc {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  font: 700 0.9375rem/1 var(--num); font-variant-numeric: tabular-nums;
}
.band .disc { background: var(--white); color: var(--black); }

.glyph { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Official store badges. Apple's artwork is drawn edge to edge; Google's PNG carries its own padding, trimmed here so
   both read at the same height. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: block; border-radius: 10px; line-height: 0; }
.badge img { height: 52px; width: auto; }
.badge-play { overflow: hidden; height: 52px; width: 175px; }
.badge-play img { height: 80px; max-width: none; margin: -14px 0 0 -12.6px; }
.badge:focus-visible { outline-offset: 4px; }

/* ---------- Header / nav ---------- */

/* Phones: the wordmark, "Get Curfew" and a menu button. From 900 px the links sit in the bar and the menu goes. */
.nav {
  display: flex; align-items: center; gap: 8px;
  min-height: 72px; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: flex; align-items: center; min-height: 44px;
  color: var(--white); text-decoration: none; margin-right: auto; border-radius: 8px;
}
.wordmark { height: 30px; width: auto; overflow: visible; }
.nav .wordmark { height: 24px; }
.wordmark .wm-ink { fill: currentColor; }
.wordmark .wm-lamp { fill: var(--amber); }
.wordmark .wm-ember { fill: var(--ember); fill-opacity: 0; }
.wordmark .wm-pool { fill-opacity: 1; }
.nav > .pill { display: none; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--white); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}
.nav-links a:active { background: var(--dark-fill); }
@media (hover: hover) {
  .nav-links a:hover { background: var(--dark-fill); }
}
@media (min-width: 350px) {
  .nav > .pill { display: inline-flex; }
}
@media (min-width: 380px) {
  .nav { gap: 10px; }
  .nav .wordmark { height: 26px; }
}
@media (min-width: 600px) {
  .nav { min-height: 76px; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .nav .wordmark { height: 30px; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; margin-right: 8px; }
  .nav .wordmark { height: 32px; }
}

/* The menu: a round button (the app's onDark IconButton) and a dark panel like the ones over the map. It's a native
   popover, so it opens, closes on Esc and closes on a tap outside without script. */
.menu-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--dark-fill); color: var(--white); cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}
.menu-btn:active { background: rgba(255, 255, 255, 0.2); }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: inline; }
.menu {
  display: none;
  position: fixed; inset: auto;
  top: calc(env(safe-area-inset-top) + 66px);
  right: max(var(--gutter), env(safe-area-inset-right));
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  margin: 0; padding: 8px; border: 0; border-radius: var(--r-panel); overflow: visible;
  background: var(--panel); color: var(--white);
  box-shadow: inset 0 0 0 1px var(--panel-edge);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform-origin: calc(100% - 22px) -8px;
}
/* Two rules, not one list: a browser that doesn't know :popover-open would drop the fallback with it. */
.menu.open { display: block; }
.menu:popover-open { display: block; }
.menu ul { display: flex; flex-direction: column; }
.menu a {
  display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 14px;
  font-size: 1.0625rem; font-weight: 600; text-decoration: none;
}
.menu a:active { background: var(--dark-fill); }
.menu li + li::before { content: ""; display: block; height: 1px; margin: 0 14px; background: var(--panel-edge); }
.menu :focus-visible { outline-color: var(--white); outline-offset: -2px; }
.motion .menu:popover-open, .motion .menu.open { animation: menu-in 220ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
@media (min-width: 900px) {
  .menu-btn, .menu.open { display: none; }
  .menu:popover-open { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding-bottom: 72px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start;
  padding-top: 20px;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; container-type: inline-size; }
/* The headline fills its column at every width: "you only see" is about 7.5 em wide in Archivo Expanded. */
.hero-copy .h1 { max-width: 12ch; font-size: clamp(2.25rem, 12cqi, 4.75rem); }
.hero-copy .lede { max-width: 34ch; }
.hero-copy .badges { margin-top: 6px; }
.hero-meta { font-size: 0.875rem; color: var(--on-dark-2); }
.hero-screen { justify-self: center; width: min(100%, 350px); margin-bottom: -196px; position: relative; z-index: 2; }

/* The screen never sets the band's height (its bottom margin cancels it), so the copy decides where the band ends
   and the map always hangs past the band's edge into the light ground, like the app's first card. From tablet width
   it stands beside the copy; bottom-aligned, so it hangs the same amount however tall the copy runs. */
@media (min-width: 720px) {
  .hero { padding-bottom: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) var(--screen-w); gap: var(--hero-gap); padding-top: 32px; }
  .hero-copy { padding-top: 12px; gap: 22px; }
  .hero-screen { align-self: end; width: var(--screen-w); margin-bottom: calc(var(--screen-w) * -0.62); }
}
@media (min-width: 1100px) {
  .hero { padding-bottom: calc(var(--ride) + 56px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding-top: 64px; }
  .hero-copy { padding-top: 40px; gap: 26px; }
  .hero-screen { align-self: start; width: 380px; margin-top: 16px; margin-bottom: -260px; }
}

/* ---------- The phone screen (a hunter's map, no device chrome) ---------- */

.screen {
  --u: calc(100cqw / 390);
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 760;
  border-radius: 46px;
  overflow: hidden;
  background: var(--map);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--panel-edge);
  isolation: isolate;
}
.screen-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen-map text { font-family: var(--text); }
.screen-panel {
  position: absolute; left: calc(var(--u) * 16); right: calc(var(--u) * 16); top: calc(var(--u) * 16);
  display: flex; flex-direction: column; gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 14) calc(var(--u) * 16);
  border-radius: calc(var(--u) * 22);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-edge);
}
.screen-panel .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* The screen scales with its width; on a phone its small print would drop to 10 px, so it stops at 11. */
.screen-panel .chip { font-size: max(11px, calc(var(--u) * 12)); padding: calc(var(--u) * 4) calc(var(--u) * 10); }
.screen .small { font-size: max(11px, calc(var(--u) * 12.5)); color: var(--on-dark-2); line-height: 1.4; }
.screen .count { font-size: max(11.5px, calc(var(--u) * 13)); color: var(--on-dark-2); }
.screen .count b { color: var(--white); }
.screen-timers { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 12); }
.screen-timers div { display: flex; flex-direction: column; gap: calc(var(--u) * 2); }
.screen-timers .num { font-size: calc(var(--u) * 38); line-height: 1; }
.screen-timers .next { color: var(--amber); }
.screen-controls {
  position: absolute; left: calc(var(--u) * 16); right: calc(var(--u) * 16); bottom: calc(var(--u) * 28);
  display: flex; flex-direction: column; gap: calc(var(--u) * 10);
}
.screen-controls .line { display: flex; gap: calc(var(--u) * 12); align-items: center; }
.fake-pill {
  display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 8);
  height: calc(var(--u) * 56); border-radius: 999px;
  font-size: calc(var(--u) * 15); font-weight: 600;
}
.fake-pill svg { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
.fake-pill.panel { flex: 1; background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-edge); }
.fake-pill.white { background: var(--white); color: var(--black); font-size: calc(var(--u) * 16); }
.fake-sos {
  flex: none; width: calc(var(--u) * 64); height: calc(var(--u) * 64); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--sos); box-shadow: 0 0 0 calc(var(--u) * 4) var(--sos-ring); line-height: 1.1;
}
.fake-sos b { font-size: max(14px, calc(var(--u) * 17)); font-weight: 800; letter-spacing: 0.04em; }
.fake-sos span { font-size: max(9.5px, calc(var(--u) * 10)); font-weight: 600; opacity: 0.9; }

/* Pings on the map */
.ping-reach path { fill: rgba(255, 176, 0, 0.08); stroke: var(--amber); stroke-opacity: 0.7; stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.ping-reach { transform-origin: 0 0; }
.ping-halo { fill: rgba(255, 176, 0, 0.2); stroke: var(--amber); stroke-opacity: 0.6; }
.ping-dot { fill: var(--amber); stroke: var(--black); stroke-width: 2; }
.ping-wave { fill: none; stroke: var(--amber); stroke-width: 2; opacity: 0; transform-origin: 0 0; }
.ping-body { transform-origin: 0 0; }
.map-label { font-size: 12px; font-weight: 600; fill: var(--white); stroke: var(--black); stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; }
.map-label.sub { font-size: 11px; font-weight: 500; fill: rgba(255, 255, 255, 0.72); }
.map-street { font-size: 10px; font-weight: 500; fill: #6e6e6e; stroke: var(--black); stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; }
.map-street.park { fill: #5e7a68; }

/* ---------- Section rhythm ---------- */

.section { padding: 96px 0; }
@media (min-width: 900px) { .section { padding: 128px 0; } }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 40rem; }
.section-head .lede { max-width: 44ch; }
.step-head { display: flex; align-items: flex-start; gap: 14px; }
.step-head .disc { margin-top: 1px; }

/* How it works. On a phone the hero screen hangs 124 px into this section, so the heading starts below it; from
   tablet width the heading sits beside it instead. */
.how { padding-top: 212px; padding-bottom: 0; }
@media (min-width: 720px) {
  .how { padding-top: 72px; }
  .how .section-head { max-width: min(40rem, calc(100% - var(--screen-w) - var(--hero-gap))); }
}
@media (min-width: 1100px) {
  .how { padding-top: 96px; }
  .how .section-head { max-width: calc(100% - 460px); }
}
.steps { display: grid; gap: 14px; margin-top: 44px; }
.step-copy { display: flex; flex-direction: column; gap: 14px; }
/* Tablet and small laptop: every step is one full-width card, words left and the app right, the same shape as
   steps 5 and 6 below. The three-column layout takes over at 1200. */
@media (min-width: 720px) and (max-width: 1199.98px) {
  .steps .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 14px 32px; }
  .steps .step > .step-head, .steps .step > p, .steps .step > .step-copy { grid-column: 1; }
  .steps .step > .step-art { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; padding-top: 0; }
  .steps .step.step-start { grid-template-rows: auto; align-items: center; }
  .steps .step.step-start > .step-art { grid-row: 1; }
}
@media (min-width: 1200px) {
  .how { padding-top: 0; }
  .how .section-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 444px; align-items: start; margin-top: calc(var(--ride) * -1); position: relative; z-index: 1; }
  .steps .step-art { margin-top: 0; }
  .step-area { grid-column: 1; }
  .step.step-start { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; margin-top: 176px; }
  .step.step-start .step-art { margin-top: auto; padding-top: 10px; }
}
.step { display: flex; flex-direction: column; gap: 14px; }
.step p { color: var(--ink-2); max-width: 46ch; }
.step-art { margin-top: auto; padding-top: 10px; }

/* Step 1: the boundary editor */
.tile-map { border-radius: 18px; overflow: hidden; background: var(--map); color: var(--white); }
.tile-map svg { width: 100%; height: auto; }
.draw-line { fill: none; stroke: var(--white); stroke-opacity: 0.85; stroke-width: 2; stroke-linejoin: round; }
.handle { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Step 2: code and lobby */
.code-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.code-slots span {
  display: grid; place-items: center; height: 52px; border-radius: 10px; background: var(--fill);
  font: 700 1.375rem/1 var(--num); font-variant-numeric: tabular-nums; color: var(--ink);
}
.lobby { margin-top: 14px; display: flex; flex-direction: column; }
.lobby .label { margin: 6px 0 2px; }
.player { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.avatar {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--avatar); color: var(--white); font-size: 0.75rem; font-weight: 700;
}
.player .name { font-weight: 600; font-size: 0.9375rem; flex: 1; }

/* Step 3 and step 5: small full-topo screens */
.mini-screen {
  border-radius: 22px; padding: 22px; color: var(--white);
  display: flex; flex-direction: column; gap: 14px;
}
.mini-screen .big { font-size: clamp(3.5rem, 2.8rem + 2vw, 4.5rem); line-height: 1; }
.mini-screen p { color: var(--on-dark-2); font-size: 0.9375rem; line-height: 1.45; }
.mini-screen .small { display: block; font-size: 0.8125rem; margin-bottom: 4px; }
.mini-screen .display { color: var(--white); }
.mini-screen .chiprow { display: flex; justify-content: space-between; gap: 8px; }

/* ---------- Step 4: the ping band ---------- */

.ping-band { padding-bottom: calc(var(--ride) + 96px); }
.ping-grid { display: grid; gap: 48px; }
.ping-copy { display: flex; flex-direction: column; gap: 20px; }
.ping-copy .lede { max-width: 40ch; }
.notes { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1000px) { .notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.note-card {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-edge);
}
.note-card img { width: 40px; height: 40px; border-radius: 10px; }
.note-card p { font-size: 0.9375rem; line-height: 1.35; }
.note-top { display: flex; justify-content: space-between; gap: 8px; }
.note-top span { font-size: 0.8125rem; color: var(--on-dark-2); }
.ping-fine { color: var(--on-dark-2); max-width: 44ch; }
@media (min-width: 1000px) {
  .ping-band { padding-bottom: calc(var(--ride) + 128px); }
  .ping-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 56px; align-items: start; }
}
.reach-demo {
  margin: 0; border-radius: var(--r-panel); overflow: hidden; background: var(--map);
  box-shadow: inset 0 0 0 1px var(--panel-edge);
}
.reach-demo svg { width: 100%; height: auto; }
.reach-controls {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 18px 18px; background: var(--panel); box-shadow: inset 0 1px 0 var(--panel-edge);
}
.reach-controls .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reach-next { display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; color: var(--on-dark-2); }
.reach-next .num { font-size: 1.75rem; line-height: 1; color: var(--amber); }
.reach-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--on-dark-2); }
.reach-key li { display: flex; align-items: center; gap: 8px; }
.reach-key svg { width: 22px; height: 22px; flex: none; }
.reach-demo .map-street { font-size: 17px; }
.reach-demo .map-label { font-size: 21px; }
.reach-demo .map-label.sub { font-size: 17px; }
.reach-demo .map-street { transition: opacity 240ms var(--ease-out); }
.reach-demo .map-street.give-way { opacity: 0; }
@media (max-width: 640px) {
  .reach-demo .map-street, .reach-demo .map-label.sub { font-size: 21px; }
  .reach-demo .map-label { font-size: 25px; }
}
.reach-area { fill: rgba(255, 176, 0, 0.08); stroke: var(--amber); stroke-opacity: 0.7; stroke-width: 1.5; stroke-dasharray: 5 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* Where the runner really is, which hunters never see: a hollow amber ring and a dotted trail, amber like a replay's
   runner routes, so it can't be mistaken for a ping or a hunter. */
.runner-real { fill: var(--map); stroke: var(--amber); stroke-width: 3; }
.runner-trail { fill: none; stroke: var(--amber); stroke-opacity: 0.55; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 9; }
.demo-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--dark-fill); color: var(--white); cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}
@media (hover: hover) { .demo-toggle:hover { background: rgba(255, 255, 255, 0.2); } }
.demo-toggle:active { background: rgba(255, 255, 255, 0.2); }
.demo-toggle .i-play, .demo-toggle.paused .i-pause { display: none; }
.demo-toggle.paused .i-play { display: inline; }

/* ---------- Steps 5 and 6: catch and replay ---------- */

.after { padding-bottom: 96px; }
@media (min-width: 900px) { .after { padding-bottom: 128px; } }
.pair { display: grid; gap: 14px; }
/* Two across only once each card is wide enough for its own two columns. */
@media (min-width: 1200px) { .pair { grid-template-columns: 1fr 1fr; } }
.split { display: grid; gap: 22px; align-items: start; }
@media (min-width: 560px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.split .copy { display: flex; flex-direction: column; gap: 14px; }
.split .copy p { color: var(--ink-2); }
.catch-screen .display { font-size: 1.625rem; line-height: 1.04; }
.catch-screen .timer { display: flex; flex-direction: column; gap: 4px; }
.catch-screen .timer .num { font-size: 2.75rem; line-height: 1; }
.catch-screen .timer p { font-size: 0.8125rem; }
.catch-screen .actions { display: flex; flex-direction: column; gap: 8px; }
.fake-btn {
  display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600;
}
.fake-btn.white { background: var(--white); color: var(--black); }
.fake-btn.dark { background: var(--dark-fill); color: var(--white); }
.fake-btn.ink { background: var(--ink); color: var(--white); }
.fake-btn.tonal { background: var(--fill); color: var(--ink); }

.replay-screen { position: relative; border-radius: 22px; overflow: hidden; background: var(--map); color: var(--white); }
.replay-screen svg { width: 100%; height: auto; }
.replay-panel {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 10px; padding: 12px 14px;
  border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-edge); color: var(--white);
}
.replay-panel .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.replay-panel .num { font-size: 1.25rem; }
.replay-panel .small { font-size: 0.8125rem; color: var(--on-dark-2); }
.scrub { position: relative; height: 18px; }
.scrub .track, .scrub .fill { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 9999px; }
.scrub .track { right: 0; background: rgba(255, 255, 255, 0.2); }
.scrub .fill { width: 57%; background: var(--white); }
.scrub .tick { position: absolute; top: 2px; width: 3px; height: 14px; border-radius: 9999px; background: var(--amber); }
.scrub .knob { position: absolute; top: 0; left: 57%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--white); }
.scrub .tick:nth-of-type(3) { left: 8%; }
.scrub .tick:nth-of-type(4) { left: 25%; }
.scrub .tick:nth-of-type(5) { left: 42%; }
.scrub .tick:nth-of-type(6) { left: 58%; }
.scrub .tick:nth-of-type(7) { left: 75%; }
.scrub .tick:nth-of-type(8) { left: 92%; }
.trail { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Safety ---------- */

.safety { padding-bottom: calc(var(--ride) + 96px); }
@media (min-width: 900px) { .safety { padding-bottom: calc(var(--ride) + 128px); } }
.pieces { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 760px) { .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; } }
@media (min-width: 1100px) { .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Two across, roll call would sit alone; it takes the full row with its words beside the card. */
@media (min-width: 760px) and (max-width: 1099.98px) {
  .piece:last-child {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; gap: 10px 24px;
  }
  .piece:last-child > .app-card { grid-column: 1; grid-row: 1 / -1; }
  .piece:last-child > h3 { grid-column: 2; grid-row: 2; margin-top: 0; }
  .piece:last-child > p { grid-column: 2; grid-row: 3; }
}
.piece { display: flex; flex-direction: column; gap: 10px; }
.piece > h3 { margin-top: 12px; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.piece > p { color: var(--on-dark-2); max-width: 40ch; }
.sos-demo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center;
  min-height: 330px; padding: 36px 24px 24px; border-radius: var(--r-panel); background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-edge);
}
.app-card {
  display: flex; flex-direction: column; gap: 12px; min-height: 330px;
  padding: 22px; border-radius: var(--r-card); background: var(--surface); color: var(--ink);
}
.app-card .display { font-size: 1.75rem; line-height: 1.04; }
.app-card .small { font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.app-card .small b { color: var(--ink); font-variant-numeric: tabular-nums; }
.app-card .fake-btn { height: 48px; }
.asker { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--ink-2); }
.asker .avatar, .roll .avatar { width: 30px; height: 30px; font-size: 0.6875rem; }
.roll { display: flex; flex-direction: column; margin-top: 2px; }
.roll-row { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 0.9375rem; }
.roll-row > span:nth-child(2) { flex: 1; }
.roll-row .glyph { width: 18px; height: 18px; }
.roll-row em { font-style: normal; font-size: 0.8125rem; color: var(--ink-2); }
/* The rest of what comes with every game: short rows under a hairline, in the same columns as the pieces above. */
.safety-more { display: grid; gap: 28px 24px; margin-top: 64px; }
@media (min-width: 760px) { .safety-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .safety-more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.safety-more li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--panel-edge); }
.safety-more b { font-size: 1.0625rem; font-weight: 600; color: var(--white); }
.safety-more span { max-width: 40ch; color: var(--on-dark-2); }
.sos-button {
  position: relative; display: grid; place-items: center; width: 132px; height: 132px; padding: 0;
  border: 0; border-radius: 50%; background: var(--sos); color: var(--white); cursor: pointer;
  box-shadow: 0 0 0 8px var(--sos-ring);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none;
  transition: transform 200ms var(--ease-out);
}
.sos-button:active, .sos-button.holding { transform: scale(0.96); }
.sos-button:focus-visible { outline: 2px solid var(--white); outline-offset: 12px; border-radius: 50%; }
.sos-button .words { display: flex; flex-direction: column; align-items: center; line-height: 1.1; pointer-events: none; }
.sos-button b { font-size: 2rem; font-weight: 800; letter-spacing: 0.04em; }
.sos-button small { font-size: 0.8125rem; font-weight: 600; opacity: 0.9; }
.sos-ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); pointer-events: none; max-width: none; }
.sos-ring circle { fill: none; stroke: var(--white); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sos-status { min-height: 3em; font-size: 0.9375rem; color: var(--on-dark-2); max-width: 30ch; }
.sos-status b { color: var(--white); font-weight: 600; }
.sos-foot { font-size: 0.8125rem; color: var(--on-dark-2); max-width: 32ch; }

/* ---------- Questions ---------- */

.faq { padding-bottom: 96px; }
@media (min-width: 900px) { .faq { padding-bottom: 128px; } }
.faq-grid { display: grid; gap: 14px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 72px; align-items: start; } }
.faq-intro { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; }
@media (min-width: 1000px) { .faq-intro { padding-top: calc(var(--ride) + 28px); } }
.faq-intro p { color: var(--ink-2); }
.qa-list { padding: 8px 0; }
@media (min-width: 760px) { .qa-list { padding: 8px 0; } }
.qa { border-top: 1px solid var(--fill); }
.qa:first-child { border-top: 0; }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 22px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; border-radius: 18px;
}
@media (min-width: 760px) { .qa summary { padding: 16px 28px; } }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:active { background: rgba(28, 27, 31, 0.06); }
@media (hover: hover) {
  .qa summary:hover { background: rgba(28, 27, 31, 0.04); }
}
.qa summary .glyph { color: var(--ink-2); transition: transform 240ms var(--ease-out); }
.qa[open] summary .glyph { transform: rotate(45deg); }
.qa .answer { padding: 0 22px 22px; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 760px) { .qa .answer { padding: 0 28px 24px; } }
.qa .answer p + p { margin-top: 10px; }

/* ---------- Download ---------- */

.download { text-align: center; padding: 120px 0 112px; overflow: hidden; }
.download .inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.download .wordmark { height: clamp(48px, 8vw, 84px); margin-bottom: 14px; }
.download .h2 { max-width: 18ch; }
.download .badges { justify-content: center; }

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

.footer {
  background: var(--black); color: var(--on-dark-2); font-size: 0.875rem; border-top: 1px solid var(--panel-edge);
  padding: 40px 0 max(48px, calc(env(safe-area-inset-bottom) + 32px));
}
.footer .wrap { display: flex; flex-direction: column; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:active { text-decoration: underline; }
@media (hover: hover) {
  .footer-links a:hover { text-decoration: underline; }
}
.footer .fine { font-size: 0.75rem; line-height: 1.5; color: rgba(255, 255, 255, 0.6); max-width: 80ch; }
.footer .wordmark { height: 22px; color: var(--white); }

/* ---------- The dock: a way to download that stays in reach on a phone ---------- */

/* Home page, phones only. site.js shows it once the hero's store badges have scrolled away and hides it again at
   the download band and the footer. It is the notification card from step 4 floating over the page, and its
   button goes straight to the phone's store. */
.dock { display: none; }
@media (max-width: 899.98px) {
  .js .dock {
    display: flex; align-items: center; gap: 12px;
    position: fixed; z-index: 20;
    left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: 440px; margin: 0 auto;
    padding: 8px 8px 8px 10px; border-radius: 22px;
    background: var(--panel); color: var(--white);
    box-shadow: inset 0 0 0 1px var(--panel-edge);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    visibility: hidden; opacity: 0;
    transition: opacity 200ms linear, visibility 0s linear 200ms;
  }
  .js .dock.on { visibility: visible; opacity: 1; transition: opacity 200ms linear, visibility 0s; }
  .motion .dock { transform: translateY(calc(100% + 24px)); transition: transform 280ms var(--ease-in), opacity 280ms linear, visibility 0s linear 280ms; }
  .motion .dock.on { transform: none; transition: transform 420ms var(--ease-out), opacity 200ms linear, visibility 0s; }
}
.dock img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.dock p { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.dock p b { font-size: 0.9375rem; }
.dock p span { font-size: 0.8125rem; color: var(--on-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .pill { padding: 0 22px; }
.dock :focus-visible { outline-color: var(--white); }

/* ---------- Document pages (privacy, terms, support, delete account, join, get) ---------- */

.page-band { padding-bottom: calc(var(--ride) + 56px); }
.page-band .page-title { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 40px; }
.page-band .page-title .lede { max-width: 44ch; }
@media (min-width: 900px) { .page-band .page-title { padding-top: 64px; } .page-band { padding-bottom: calc(var(--ride) + 72px); } }
.page-main { padding-bottom: 96px; }
.doc { max-width: 52rem; }
/* The Privacy Policy and Terms are mostly read on a phone, in the app's in-app browser. There the card is a sheet: full
   width with its top corners rounded, riding up over the band and running on into the footer, so the words get the
   whole screen less the band gutter. From 760 px it's a card on the ground again. */
.doc-main { padding-bottom: 0; }
.doc-card {
  margin-left: calc(max(var(--gutter), env(safe-area-inset-left)) * -1);
  margin-right: calc(max(var(--gutter), env(safe-area-inset-right)) * -1);
  padding: 28px max(var(--gutter), env(safe-area-inset-right)) 56px max(var(--gutter), env(safe-area-inset-left));
  border-radius: 28px 28px 0 0;
}
@media (min-width: 760px) {
  .doc-main { padding-bottom: 96px; }
  .doc-card { margin-left: 0; margin-right: 0; padding: 48px 56px; border-radius: var(--r-card); }
}
.prose { color: var(--ink); font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.012em; font-size: 1.375rem; line-height: 1.15; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; font-weight: 700; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul { padding-left: 1.25em; list-style: disc; }
.prose ul li + li { margin-top: 0.4em; }
.prose ul li::marker { color: var(--ink-3); }
.prose p, .prose li { max-width: 68ch; }
.prose .note { color: var(--ink-2); font-size: 0.9375rem; }

/* Contents: one row under a hairline that opens to the list of sections, each a 44 px target. Rows press like the
   FAQ's, their highlight reaching a little past the words. */
.contents { border-top: 1px solid var(--fill); border-bottom: 1px solid var(--fill); }
.contents summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; margin: 0 -12px; padding: 0 12px; border-radius: 14px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.contents summary::-webkit-details-marker { display: none; }
.contents summary .glyph { color: var(--ink-2); transition: transform 240ms var(--ease-out); }
.contents[open] summary .glyph { transform: rotate(45deg); }
.contents ol { padding-bottom: 10px; }
.contents a {
  display: flex; align-items: center; min-height: 44px; margin: 0 -12px; padding: 6px 12px; border-radius: 12px;
  color: var(--ink-2); line-height: 1.35; text-decoration: none;
}
.contents summary:active, .contents a:active { background: rgba(28, 27, 31, 0.06); }
@media (hover: hover) {
  .contents summary:hover, .contents a:hover { background: rgba(28, 27, 31, 0.04); }
}

/* What we collect: one entry per kind of data, hairlines between them, with why and how long we keep it under its name
   on a phone and side by side from 760 px. */
.prose .data-list { padding-left: 0; list-style: none; }
.prose .data-list > li { max-width: none; padding: 20px 0; }
.prose .data-list > li:first-child { padding-top: 6px; }
.prose .data-list > li + li { margin-top: 0; border-top: 1px solid var(--fill); }
.prose .data-list h3 { margin-top: 0; }
.prose .data-list h3 + p { margin-top: 4px; }
.prose .data-list dl { display: grid; gap: 14px; margin: 14px 0 0; }
.prose .data-list dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.4; text-transform: uppercase; color: var(--ink-2); }
.prose .data-list dd { margin: 2px 0 0; }
@media (min-width: 760px) {
  .prose .data-list dl { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; }
}

.stack { display: flex; flex-direction: column; gap: 14px; }
.cards-2 { display: grid; gap: 14px; }
@media (min-width: 860px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.card h2.h3, .card h3.h3 { margin-bottom: 10px; }
.card .muted + .pill, .card .muted + .badges { margin-top: 18px; }
.steps-list { counter-reset: s; display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.steps-list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.steps-list li .disc { margin-top: -3px; }

/* Join page */
.code-slots-dark { width: min(100%, 460px); gap: 8px; margin-top: 10px; }
.code-slots-dark span { height: clamp(58px, 12vw, 76px); background: var(--dark-fill); color: var(--white); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); border-radius: 12px; }
.band .label { color: var(--on-dark-2); }
.join-badges, .page-title .badges { margin-top: 18px; }
.join-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.copy-status { min-height: 1.5em; font-size: 0.875rem; color: var(--ink-2); margin-top: 10px; }

/* ---------- Motion (only when JS runs and the visitor allows motion) ---------- */

.motion .will-draw .draw-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .will-draw .handle, .motion .will-draw .nogo { opacity: 0; }
.motion .will-draw.in .draw-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease-out) 150ms; }
.motion .will-draw.in .handle { opacity: 1; transition: opacity 240ms var(--ease-out); transition-delay: calc(250ms + var(--i, 0) * 180ms); }
.motion .will-draw.in .nogo { opacity: 1; transition: opacity 400ms var(--ease-out) 1300ms; }

.motion .will-type .code-slots b { opacity: 0; transform: translateY(4px); display: inline-block; }
.motion .will-type .player { opacity: 0; transform: translateY(8px); }
.motion .will-type.in .code-slots b { opacity: 1; transform: none; transition: opacity 120ms linear, transform 200ms var(--ease-out); transition-delay: calc(200ms + var(--i, 0) * 110ms); }
.motion .will-type.in .player { opacity: 1; transform: none; transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); transition-delay: calc(1000ms + var(--i, 0) * 260ms); }

.motion .replay-screen .trail { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trail 9s linear infinite paused; }
.motion .replay-screen .catch-mark { opacity: 0; animation: catchmark 9s linear infinite paused; }
.motion .replay-screen .fill { animation: fill 9s linear infinite paused; }
.motion .replay-screen .knob { animation: knob 9s linear infinite paused; }
.motion .replay-screen.in .trail, .motion .replay-screen.in .catch-mark,
.motion .replay-screen.in .fill, .motion .replay-screen.in .knob { animation-play-state: running; }
@keyframes trail { 0% { stroke-dashoffset: 1; } 78% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes catchmark { 0%, 74% { opacity: 0; } 78%, 100% { opacity: 1; } }
@keyframes fill { 0% { width: 0; } 78%, 100% { width: 57%; } }
@keyframes knob { 0% { left: 0; } 78%, 100% { left: 57%; } }

/* The lamp waits unlit until site.js strikes it (lampOn). */
.motion svg.wordmark[data-lamp] .wm-lamp { fill-opacity: 0.16; }
.motion svg.wordmark[data-lamp] .wm-pool { fill-opacity: 0; }

/* ---------- Invite page on phones ---------- */

/* site.js marks the phone (.ios / .android). Phones see only their own store; "Open in Curfew" is for phones only,
   since a computer has no app to open. Without JS both badges show and the open button stays hidden. */
.ios .join-badges .badge-play, .android .join-badges .badge-ios { display: none; }
.js:not(.ios):not(.android) .phone-only { display: none; }

/* Support: each list of answers opens with its own heading, on the rows' inset. */
.qa-head { padding: 20px 22px 12px; }
@media (min-width: 760px) { .qa-head { padding: 24px 28px 12px; } }
