/*
 * detourapp.eu. Dark only, like the app: warm night, paper ink, and one lime
 * turn. Lime marks the route, the action, and what you've earned; nothing else.
 */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-500.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-700.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-800.woff2) format('woff2'); }

:root {
  --bg: #121210;
  --bg-deep: #0d0d0b;
  --card: #1c1b19;
  --shade: #262522;
  --line: #2e2d29;
  --line-strong: #3e3d38;
  --text: #f3f1ea;
  --muted: #aba9a2;
  --faint: #8f8d86;
  --lime: #a7e83f;
  --lime-ink: #b9ee66;
  --lime-deep: #3f5a12;
  --lime-soft: rgba(167, 232, 63, 0.13);
  --lime-line: rgba(167, 232, 63, 0.36);
  --crown: #f0c46a;
  --crown-soft: rgba(240, 196, 106, 0.14);
  --crown-line: rgba(240, 196, 106, 0.45);
  --violet: #b7a2ea;
  --ember: #f2814d;
  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Springs are for earned moments only: a stop reached, a crown, a reaction. */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line-strong) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, sans-serif;
  font-feature-settings: 'ss01' 0;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--lime);
  overflow-x: clip;
}
::selection { background: var(--lime); color: #151515; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 12px; border: 3px solid var(--bg); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
a { color: var(--lime-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--text); color: #151515; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ type */

.display {
  font-weight: 800;
  font-size: clamp(3rem, 1.4rem + 5.6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.headline {
  font-weight: 800;
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.display i, .headline i, h3 i, .xp-label i { font-style: normal; color: var(--lime); }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 34ch; margin: 26px 0 0; }
.fine { font-size: 14px; color: var(--faint); margin: 18px 0 0; }
.fine a { color: var(--muted); }

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

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  background: rgba(18, 18, 16, 0);
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.nav.is-scrolled { background: rgba(18, 18, 16, 0.96); border-bottom-color: var(--line); }
.nav-brand { color: var(--text); display: block; padding: 6px 0; }
.wordmark { width: 104px; height: auto; }
.nav nav { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 999px; }
.nav-link:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 14px;
  background: var(--text); color: #151515; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform 150ms var(--ease-out), background 150ms;
}
.nav-cta:hover { background: #fff; }
.nav-cta:active { transform: scale(0.97); }

/* ------------------------------------------------------------------ stores */

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.badge { display: inline-flex; align-items: center; position: relative; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.badge { transition: transform 180ms var(--ease-out); }
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: scale(0.97); }

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: var(--wide); margin: 0 auto;
  padding: clamp(24px, 6vh, 72px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  min-height: min(calc(100svh - 80px), 860px);
  position: relative; z-index: 2;
}
.hero-copy { padding-bottom: 40px; container-type: inline-size; }
/* Two lines, always: the longer line ("your crew has 24h.") spans the column. */
.hero .display { font-size: clamp(2.4rem, 11.2cqi, 5.6rem); }
.hero .display span { white-space: nowrap; }
.hero-quest {
  margin: 0; position: relative; justify-self: end; width: 100%; max-width: 460px;
  /* The art's top 1000px: it ends just below where its road leaves the card. */
  aspect-ratio: 896 / 1000; border-radius: 30px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 500ms var(--ease-out);
  will-change: transform;
}
.hero-quest img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.quest-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px;
  padding: 20px; pointer-events: none;
}
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.chip-glass { background: rgba(0, 0, 0, 0.45); color: #faf9f5; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-common { background: var(--faint); }
.dot-rare { background: var(--lime); }
.dot-epic { background: var(--violet); }
.dot-legendary { background: var(--crown); }
/* The title sits in the sky, so the art's road runs untouched out of the card's bottom edge. */
.quest-head {
  margin: -20px -20px 0; padding: 22px 22px 60px;
  background: linear-gradient(180deg, rgba(14, 14, 12, 0.82) 0%, rgba(14, 14, 12, 0.55) 55%, rgba(14, 14, 12, 0) 100%);
  display: grid; gap: 10px;
}
.quest-title { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; color: #faf9f5; }
.quest-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: #d9d6cf; }
.quest-meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.meta-clock { display: inline-flex; align-items: center; gap: 6px; }
.meta-clock svg { flex: none; }
.meta-clock time { color: #faf9f5; font-weight: 600; }
.meta-done { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #faf9f5; }
.faces { display: inline-flex; }
.face { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: inline-block; flex: none; box-shadow: 0 0 0 2px var(--lime); }
.faces .face + .face { margin-left: -7px; }
.face svg { width: 100%; height: 100%; }
.face-lg { width: 42px; height: 42px; box-shadow: none; }

/* ------------------------------------------------------------------ the road */

.road {
  position: relative; max-width: var(--wide); margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter) 0;
}
.road-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.road-bed { fill: none; stroke: url(#road-fade); stroke-width: 54; stroke-linecap: round; stroke-linejoin: round; }
.road-lane { fill: none; stroke: #34322d; stroke-width: 2.5; stroke-dasharray: 14 18; stroke-linecap: round; }
.road-route { fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.road-traveller { fill: var(--lime); stroke: rgba(167, 232, 63, 0.28); stroke-width: 14; paint-order: stroke; }

.stop {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  grid-template-areas: 'copy road demo';
  align-items: center; gap: 0;
  min-height: 66vh; padding: 56px 0;
}
.stop-flip { grid-template-areas: 'demo road copy'; }
.stop-copy { grid-area: copy; max-width: 440px; }
.stop-flip .stop-copy { justify-self: start; }
.stop:not(.stop-flip) .stop-copy { justify-self: end; text-align: left; }
.stop-copy p { color: var(--muted); font-size: 1.12rem; margin: 0; max-width: 36ch; }
.stop-demo { grid-area: demo; width: 100%; max-width: 420px; }
.stop:not(.stop-flip) .stop-demo { justify-self: start; }
.stop-flip .stop-demo { justify-self: end; }

/* A ringed destination, as in the quest art. Lit once the route reaches it. */
.node {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--line-strong);
  box-shadow: 0 0 0 7px var(--bg);
  transition: border-color 300ms, background 300ms, transform 500ms var(--spring);
  z-index: 1;
}
.node::after {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px solid var(--lime); opacity: 0; transform: scale(0.6);
}
.is-reached > .node { border-color: var(--lime); background: var(--lime); transform: scale(1.08); }
.is-reached > .node::after { animation: ring 900ms var(--ease-out) 1 both; }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.2); } }

/* ------------------------------------------------------------------ cards */

.card, .quest-card, .reveal, .post {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 22px; border-radius: 18px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 160ms var(--ease-out), background 160ms, border-color 160ms, color 160ms;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-paper { background: var(--text); color: #151515; width: 100%; white-space: nowrap; }
.btn-paper:hover { background: #fff; }
.btn-paper svg { color: var(--lime-deep); stroke-width: 2.4; }
.btn-paper:hover svg { transform: translateX(4px); }
.btn-paper .xp { background: rgba(167, 232, 63, 0.55); color: var(--lime-deep); border-radius: 999px; padding: 2px 10px; font-size: 14px; }
.btn-quiet { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.btn-quiet:hover { border-color: var(--muted); }
.btn-quiet:disabled { color: var(--faint); border-color: var(--line); cursor: default; }

/* Stop 1: the drop */
.dealer { display: grid; gap: 14px; }
.push {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 20px; background: #2b2a26; border: 1px solid #3a3934;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  font-size: 14px; line-height: 1.35;
}
.push img { width: 40px; height: 40px; border-radius: 10px; }
.push b { display: block; font-weight: 600; font-size: 15px; }
.push-body { color: #d9d6cf; }
.push-time { color: var(--faint); font-size: 13px; align-self: start; }
.js .stop .push { opacity: 0; transform: translateY(-26px) scale(0.96); }
.js .is-reached .push { opacity: 1; transform: none; transition: opacity 400ms var(--ease-out) 150ms, transform 700ms var(--spring) 150ms; }
.quest-card { overflow: hidden; }
.quest-art { height: 210px; overflow: hidden; background: var(--shade); }
.quest-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.quest-body { padding: 18px 22px 22px; }
.rarity { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.rarity svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.quest-body h3 { margin: 0 0 8px; font-size: 27px; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.quest-body p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; min-height: 3em; }
.quest-card.is-dealing { animation: deal 520ms var(--ease-out); }
@keyframes deal {
  0% { transform: none; }
  35% { transform: translateX(-30px) rotate(-4deg) scale(0.97); opacity: 0; }
  36% { transform: translateX(40px) rotate(4deg) scale(0.97); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.btn-quiet svg { width: 19px; height: 19px; }
.dealer .btn { justify-self: start; }

/* Stop 2: submit to see */
.reveal { padding: 22px; }
.reveal-head h3 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.reveal-head p { margin: 6px 0 18px; color: var(--muted); font-size: 15px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.tile { margin: 0; }
.tile img {
  width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-position: 50% 30%; object-fit: cover; border-radius: 16px; border: 1px solid var(--line);
  filter: blur(18px) saturate(0.6) brightness(0.7); transform: scale(1);
  transition: filter 700ms var(--ease-out), box-shadow 600ms;
  clip-path: inset(0 round 16px);
}
.tile { position: relative; }
.lock {
  position: absolute; left: 50%; top: calc(50% - 16px); width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.35); display: grid; place-items: center;
  transition: transform 450ms var(--spring), opacity 300ms;
}
.lock svg { width: 22px; height: 22px; fill: none; stroke: #faf9f5; stroke-width: 1.8; stroke-linecap: round; }
.lock .fill { fill: #faf9f5; }
.tile figcaption { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.tile .face { width: 22px; height: 22px; box-shadow: none; }
.reveal.is-open .tile img { filter: none; box-shadow: 0 0 0 3px var(--lime); }
.reveal.is-open .tile:nth-child(2) img { transition-delay: 90ms; }
.reveal.is-open .tile:nth-child(3) img { transition-delay: 180ms; }
.reveal.is-open .tile:nth-child(4) img { transition-delay: 270ms; }
.reveal.is-settled .tile img { box-shadow: 0 0 0 0 transparent; }
.reveal.is-open .lock { transform: scale(1.8); opacity: 0; }
.reveal.is-open .tile:nth-child(2) .lock { transition-delay: 90ms; }
.reveal.is-open .tile:nth-child(3) .lock { transition-delay: 180ms; }
.reveal.is-open .tile:nth-child(4) .lock { transition-delay: 270ms; }

/* Stop 3: the vote */
.vote { display: grid; justify-items: center; gap: 22px; }
.deck { position: relative; width: 100%; max-width: 360px; aspect-ratio: 360 / 470; }
.vote-card {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  transition: transform 450ms var(--ease-out);
}
.vote-card.is-dragging { transition: none; cursor: grabbing; }
.vote-card.is-gone { transition: transform 500ms cubic-bezier(0.4, 0, 1, 1), opacity 500ms; opacity: 0; }
.vote-card:nth-last-child(2) { transform: translateY(14px) scale(0.95); }
.vote-card:nth-last-child(3) { transform: translateY(28px) scale(0.9); }
.vote-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vote-card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(14,14,12,0.92) 100%); }
.vote-who { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #faf9f5; }
.vote-who header { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.vote-who .face { width: 38px; height: 38px; box-shadow: none; }
.vote-who q { display: block; margin-top: 10px; font-size: 19px; font-weight: 500; }
.vote-who small { display: block; margin-top: 6px; opacity: 0.7; font-size: 13px; }
.vote-ask { position: absolute; left: 20px; right: 20px; top: 18px; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: #faf9f5; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.stamp {
  position: absolute; top: 64px; padding: 4px 14px; border-radius: 12px; border: 4px solid;
  font-weight: 800; font-size: 30px; letter-spacing: -0.03em; background: rgba(0, 0, 0, 0.25);
  opacity: 0; pointer-events: none;
}
.stamp-yes { left: 20px; color: var(--lime); border-color: var(--lime); transform: rotate(-12deg); }
.stamp-no { right: 20px; color: var(--text); border-color: var(--text); transform: rotate(12deg); }
.vote-buttons { display: flex; gap: 46px; }
.round {
  width: 74px; height: 74px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms;
}
.round svg { width: 30px; height: 30px; fill: none; stroke: #151515; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.round-no { background: var(--text); }
.round-yes { background: var(--lime); }
.round:hover { transform: translateY(-3px); }
.round:active { transform: scale(0.9); }
.round:disabled { opacity: 0.35; cursor: default; transform: none; }
.round-yes:hover { box-shadow: 0 0 0 8px rgba(167, 232, 63, 0.18); }
.round-no:hover { box-shadow: 0 0 0 8px rgba(243, 241, 234, 0.12); }
.deck-done {
  position: absolute; inset: 0; border-radius: 24px; border: 2px dashed var(--line-strong);
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 24px;
  opacity: 0; transition: opacity 400ms;
}
.deck.is-done .deck-done { opacity: 1; }
.xp-burst { font-weight: 800; font-size: 92px; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.xp-burst::before { content: ''; }
.xp-label { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 1; }
/* The earned number stays readable over the burst. */
.deck.is-done .deck-done { z-index: 2; }
.deck-done .xp-burst, .deck-done .xp-label { position: relative; text-shadow: 0 2px 18px var(--bg), 0 0 4px var(--bg); }
.bit { position: absolute; left: 50%; top: 45%; width: 12px; height: 12px; }
.bit svg { width: 100%; height: 100%; overflow: visible; }

/* Stop 4: the crown */
.post { padding: 18px; }
.post-head { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.3; margin-bottom: 14px; }
.post-art { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 4.2; }
.post-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.post-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(12,12,10,0.85)); }
.post-art figcaption { position: absolute; left: 18px; bottom: 14px; z-index: 1; font-weight: 800; font-size: 26px; letter-spacing: -0.035em; color: #faf9f5; }
.crown-chip {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: rgba(20, 18, 12, 0.72); border: 1px solid var(--crown-line);
  color: var(--crown); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.crown-chip svg { width: 16px; height: 16px; fill: none; stroke: var(--crown); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.crown-chip .fill { fill: var(--crown); }
.js .stop .crown-chip { opacity: 0; transform: translateY(-40px) scale(0.6); }
.js .is-reached .crown-chip { opacity: 1; transform: none; transition: opacity 300ms 300ms, transform 800ms var(--spring) 300ms; }
.post-quest { font-size: 15px; margin: 12px 2px 14px; }
.reactions { display: flex; gap: 10px; flex-wrap: wrap; }
.react {
  height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--shade); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px;
  transition: transform 220ms var(--spring), background 160ms, border-color 160ms, color 160ms;
}
.react span { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; }
.react:hover { border-color: var(--line-strong); }
.react[aria-pressed='true'] { background: var(--lime-soft); border-color: var(--lime-line); color: var(--lime-ink); }
.react[aria-pressed='true'] span { color: var(--lime-ink); }
.react.is-bumped { transform: scale(1.12); }

/* ------------------------------------------------------------------ destination */

.destination { position: relative; padding: clamp(120px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); text-align: center; }
.node-end { top: 40px; }
.display-close { font-size: clamp(3.2rem, 1.2rem + 7vw, 6rem); }
.finale {
  margin-top: clamp(56px, 9vh, 96px);
  display: grid; grid-template-columns: auto minmax(0, 420px); justify-content: center; align-items: center;
  gap: clamp(32px, 6vw, 88px); text-align: left;
}
.film {
  position: relative; width: clamp(240px, 26vw, 300px); aspect-ratio: 720 / 1280;
  border-radius: 44px; padding: 9px; background: linear-gradient(160deg, #3a3a35, #23231f 45%, #2e2e2a);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 1.5px #46463f;
}
.film video { width: 100%; height: 100%; border-radius: 36px; object-fit: cover; background: var(--bg-deep); }
.film-play {
  position: absolute; inset: 9px; border: 0; border-radius: 36px; cursor: pointer;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65));
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding-bottom: 28px;
  font-weight: 600; font-size: 16px; color: #faf9f5;
}
.film-play svg { width: 74px; height: 74px; padding: 22px 20px 22px 24px; border-radius: 50%; background: var(--lime); transition: transform 250ms var(--ease-out); }
.film-play svg .fill { fill: #151515; }
.film-play:hover svg { transform: scale(1.08); }
.film.is-playing .film-play { display: none; }
.finale .lede { margin-top: 0; }

/* ------------------------------------------------------------------ footer */

.foot {
  border-top: 1px solid var(--line); max-width: var(--wide); margin: 0 auto;
  padding: 44px var(--gutter) 56px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start;
}
.foot-brand { color: var(--text); }
.foot-brand .wordmark { width: 92px; }
.foot-brand p { margin: 10px 0 0; color: var(--faint); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; justify-content: flex-end; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-links a, .foot-fine a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover, .foot-fine a:hover { color: var(--text); }
.foot-fine { grid-column: 1 / -1; margin: 0; color: var(--faint); font-size: 13.5px; }

/* ------------------------------------------------------------------ legal pages */

.doc-body { max-width: 72ch; margin: 0 auto; padding: 40px var(--gutter) 96px; }
.doc-body h1 i { font-style: normal; color: var(--lime); }
.doc-body h1 { text-transform: lowercase; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 28px; text-wrap: balance; }
.doc-body h2 { font-size: 1.5rem; letter-spacing: -0.025em; font-weight: 700; margin: 56px 0 10px; }
.doc-body h3 { font-size: 1.12rem; font-weight: 700; margin: 32px 0 6px; }
.doc-body p, .doc-body li { color: #dcdad3; }
.doc-body strong { color: var(--text); font-weight: 650; }
.doc-body ol, .doc-body ul { padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-body li::marker { color: var(--faint); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.doc-body code { background: var(--shade); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 650; color: var(--text); background: rgba(255, 255, 255, 0.02); }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; }
  .hero-copy { padding-bottom: 0; }
  .hero-quest { justify-self: start; max-width: 380px; }
  .road { padding-top: 64px; }
  .stop, .stop-flip {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas: 'road copy' 'road demo';
    gap: 26px 0; min-height: 0; padding: 70px 0;
  }
  .stop-copy, .stop-flip .stop-copy, .stop:not(.stop-flip) .stop-copy { justify-self: start; }
  .stop-demo, .stop-flip .stop-demo, .stop:not(.stop-flip) .stop-demo { justify-self: start; }
  .node { left: 18px; top: 92px; margin-left: -15px; }
  .destination { padding-left: 56px; text-align: left; }
  .node-end { left: 18px; }
  .finale { grid-template-columns: 1fr; justify-content: start; }
  .film { width: min(280px, 100%); }
  .foot { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .hero-quest { max-width: 420px; }
  .stop-copy, .stop-flip .stop-copy, .stop:not(.stop-flip) .stop-copy { max-width: 560px; }
  .stop-demo, .stop-flip .stop-demo, .stop:not(.stop-flip) .stop-demo { max-width: 480px; }
}
@media (max-width: 480px) {
  .btn-paper { font-size: 15px; gap: 8px; padding: 0 16px; }
  .btn-paper .xp { font-size: 13px; padding: 2px 8px; }
  /* 4. the close fits in two or three lines on a small phone. */
  .display-close { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .stop, .stop-flip { padding: 56px 0; }
  .finale { margin-top: 44px; }
  /* Keep the road's junction and the first lime turn inside a phone's first screen. */
  .hero { padding-top: 12px; gap: 22px; }
  .hero .lede { margin-top: 18px; }
  .hero .stores { margin-top: 22px; }
  .hero .fine { margin-top: 12px; }
  .hero-quest { max-width: 300px; }
  .quest-title { font-size: 24px; }
  .quest-meta { font-size: 13px; gap: 8px; }
  .quest-meta > span { white-space: nowrap; }
  .quest-meta .face { width: 20px; height: 20px; }
  .nav-link { display: none; }
  .wordmark { width: 92px; }
  .badge img { height: 48px; }
  .stores { gap: 12px; }
  .quest-title { font-size: 26px; }
  .stop, .stop-flip { grid-template-columns: 40px minmax(0, 1fr); }
  .node { left: 12px; }
  .node-end { left: 12px; }
  .destination { padding-left: 40px; }
  .road-bed { stroke-width: 34; }
  .xp-burst { font-size: 76px; }
  .vote-buttons { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .hero-quest { transform: none; }
}

/* ------------------------------------------------------------------ invite links */

.invite-card { max-width: 30rem; margin: 0 auto; padding: 56px var(--gutter) 96px; }
.invite-card .eyebrow { margin: 0 0 14px; color: var(--faint); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.invite-card h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; margin: 0; }
.invite-card h1 i { font-style: normal; color: var(--lime); }
.invite-card .lede { margin: 18px 0 0; }
.invite-code { margin: 26px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: 0.18em; }
.invite-card .btn { margin-top: 28px; }
.invite-card .stores { margin-top: 18px; }
