/* Found Horizons - the front page.
   The game's own paper, ink, coral and gold (client/src/palette.ts), its own Archivo. */

@font-face {
  font-family: 'Archivo';
  src: url('assets/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #F2ECDD;
  --paper-2: #E9E2D0;
  --paper-hi: #FBF8F0;
  --edge: #D9CFB6;
  --ink: #2A2418;
  --quiet: #6B6250;
  --coral: #EC3322;
  --gold: #FFC93C;
  --gold-deep: #B56F0A;
  --night: #171A2B;
  --night-2: #20243A;
  --night-ink: #F2ECDD;
  --night-quiet: #A9AAC0;
  --navy: #1F3FA8;
  --device: #17181C;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.center { text-align: center; }

/* ---------------------------------------------------------------- type */
.display {
  font-size: clamp(2.55rem, 6.4vw, 5.75rem);
  line-height: .98;
  font-weight: 820;
  font-stretch: 88%;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.headline {
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 90%;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.13rem, 1.55vw, 1.42rem);
  line-height: 1.42;
  font-weight: 480;
  color: var(--quiet);
  letter-spacing: -.008em;
  text-wrap: pretty;
}
.kicker {
  font-size: clamp(.95rem, 1.2vw, 1.12rem);
  font-weight: 750;
  color: var(--coral);
  letter-spacing: -.005em;
  margin-bottom: .55em;
}
h3 { font-size: 1.3rem; line-height: 1.15; font-weight: 780; font-stretch: 94%; letter-spacing: -.02em; text-wrap: balance; }
.section-head { max-width: 760px; }
.section-head .lede { margin-top: 1.1rem; max-width: 40ch; }
.section-head.center { margin-inline: auto; }
.section-head.center .lede { margin-inline: auto; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.nav.scrolled { border-bottom-color: color-mix(in srgb, var(--ink) 10%, transparent); }
.nav-in { height: 100%; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 92%; letter-spacing: -.02em; font-size: 1.05rem; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .88rem; font-weight: 520; }
.nav-links a { text-decoration: none; color: color-mix(in srgb, var(--ink) 78%, transparent); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  margin-left: 6px; text-decoration: none; font-size: .82rem; font-weight: 700;
  background: var(--coral); color: #fff; padding: 6px 14px; border-radius: 999px;
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-cta:hover { background: #C42A1C; }
.nav-cta:active { transform: scale(.96); }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ---------------------------------------------------------------- the phone */
.phone {
  --pw: 320px;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .165);
  background: var(--device);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 4px #2B2C31,
    0 2px 4px rgba(23, 24, 28, .12),
    0 18px 40px -12px rgba(23, 24, 28, .35),
    0 50px 90px -30px rgba(23, 24, 28, .35);
  flex: none;
}
.screen {
  position: relative;
  aspect-ratio: 1080 / 2232;
  border-radius: calc(var(--pw) * .135);
  overflow: hidden;
  background: #222;
  isolation: isolate;
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen .shot { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-io); }
.screen .shot.on { opacity: 1; }

/* ---------------------------------------------------------------- the hero */
.hero {
  position: relative;
  min-height: max(100svh, 680px);
  display: grid;
  overflow: hidden;
  background: #CFE3EC;
}
.film { position: absolute; inset: 0; }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 55%, transparent) 0%, transparent 16%),
    linear-gradient(0deg, color-mix(in srgb, #1b1a14 62%, transparent) 0%, color-mix(in srgb, #1b1a14 30%, transparent) 26%, transparent 48%);
}
.film-sound {
  position: absolute; z-index: 3; right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 30px;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: rgba(20, 20, 18, .38); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transition: background-color .3s, transform .3s var(--ease);
}
.film-sound:hover { background: rgba(20, 20, 18, .55); transform: scale(1.06); }
.film-sound:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.film-sound svg { width: 24px; }
.film-sound .snd-on, .film-sound[aria-pressed="true"] .snd-off { display: none; }
.film-sound[aria-pressed="true"] .snd-on { display: block; }

/* ---------------------------------------------------------------- the living town */
.live-town {
  position: relative;
  min-height: max(100svh, 680px);
  display: grid;
  overflow: hidden;
  background: #E0E7BD;
}
.town { position: absolute; inset: 0; }
.town-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.town-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.town.gl .town-layer { display: none; }
.js .town { opacity: 0; transition: opacity 1.4s var(--ease); }
.js .town.ready { opacity: 1; }
.town-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 70%, transparent) 14%, transparent 34%),
    linear-gradient(90deg, var(--paper) 0%, var(--paper) 30%, color-mix(in srgb, var(--paper) 80%, transparent) 40%, transparent 54%);
}
.town-copy {
  position: relative; z-index: 2;
  align-self: center;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: flex; flex-direction: column; align-items: flex-start;
}
.town-copy .display { max-width: 9ch; }
.town-copy .lede { margin-top: 1.1rem; max-width: 30ch; }
.hero-copy {
  position: relative; z-index: 2;
  align-self: end;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  padding: var(--nav-h) 70px clamp(40px, 7svh, 72px) 0;
  display: flex; flex-direction: column; align-items: flex-start;
  color: #fff;
}
.hero h1 { max-width: 14ch; font-size: clamp(2.5rem, 5vw, 4.8rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero .lede { margin-top: 1rem; max-width: 36ch; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.hero .cta-row { justify-content: flex-start; margin-top: 1.5rem; }
.hero .store-pill { background: #fff; color: var(--device); }
.hero .fine { color: rgba(255, 255, 255, .78); }
/* the film opens on the logo; the words rise once it has had its moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: hero-rise 1s var(--ease) both; animation-delay: calc(2.7s + var(--k, 0) * 120ms); }
  .js .hero-copy > :nth-child(2) { --k: 1; }
  .js .hero-copy > :nth-child(3) { --k: 2; }
  .js .hero-copy > :nth-child(4) { --k: 3; }
  @keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } }
}
.cta-row { margin-top: 1.8rem; display: flex; gap: 12px; justify-content: center; }
@media (max-width: 819px) {
  .town-veil {
    background:
      linear-gradient(180deg, var(--paper) 0%, var(--paper) 40%, color-mix(in srgb, var(--paper) 80%, transparent) 50%, transparent 64%);
  }
  .town-copy { align-self: start; align-items: center; text-align: center; padding-top: 9svh; }
  .town-copy .display { font-size: clamp(2.1rem, 9.4vw, 3.2rem); max-width: 11ch; }
  .town-copy .lede { font-size: 1.04rem; margin-top: .8rem; }
  /* the film is wide: on a phone it sits under the bar at its own shape, the words beneath */
  .hero { min-height: 0; display: block; background: var(--paper); padding-top: var(--nav-h); }
  .film { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .film::after { background: linear-gradient(180deg, transparent 75%, color-mix(in srgb, var(--paper) 60%, transparent) 100%); }
  .film-sound { bottom: 12px; right: 12px; width: 42px; height: 42px; }
  .film-sound svg { width: 20px; }
  .hero-copy { align-items: center; text-align: center; padding: 26px 0 56px; color: var(--ink); }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 3.2rem); max-width: 12ch; text-shadow: none; }
  .hero .lede { font-size: 1.04rem; margin-top: .8rem; color: color-mix(in srgb, var(--ink) 74%, transparent); text-shadow: none; }
  .hero .cta-row { justify-content: center; margin-top: 1.2rem; }
  .hero .store-pill { background: var(--device); color: #fff; }
  .hero .fine { display: none; }
  .scroll-cue { display: none; }
}
.store-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--device); color: #fff;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  box-shadow: 0 10px 24px -10px rgba(23, 24, 28, .55);
}
.fine { margin-top: .85rem; font-size: .9rem; color: color-mix(in srgb, var(--ink) 60%, transparent); font-weight: 520; }
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; translate: -50% 0;
  width: 30px; height: 48px; border-radius: 20px;
  border: 2px solid color-mix(in srgb, var(--ink) 55%, transparent);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@supports (animation-timeline: view()) {
  .hero-copy { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
  @keyframes hero-out { to { opacity: 0; transform: translateY(-60px) scale(.96); } }
}

/* ---------------------------------------------------------------- the story */
.story {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: 0 auto;
  padding-block: 8svh 0;
}
.story-stage {
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  display: grid; place-items: center;
}
.story-stage .phone { --pw: min(340px, calc((100svh - var(--nav-h) - 90px) * .468)); transition: transform .9s var(--ease); }
.story-steps { padding-bottom: 20svh; }
.step {
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  max-width: 470px;
  opacity: .18;
  transition: opacity .6s var(--ease);
}
.step.on { opacity: 1; }
.step-card p:last-child { margin-top: 1.1rem; font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.5; color: var(--quiet); text-wrap: pretty; }

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; padding-top: 0; }
  .story-stage { place-items: start center; padding-top: 3svh; }
  .story-stage .phone { --pw: min(66vw, calc((100svh - var(--nav-h)) * .31)); }
  .story-steps { margin-top: calc(-1 * (100svh - var(--nav-h))); position: relative; z-index: 2; padding-bottom: 6svh; }
  .step { min-height: 96svh; justify-content: flex-end; max-width: none; opacity: 0; padding-bottom: 3svh; }
  .step.on { opacity: 1; }
  .step-card {
    padding: 20px 22px 22px; border-radius: 26px;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 14px 40px -18px rgba(42, 36, 24, .35);
  }
  .step .kicker { margin-bottom: .3em; }
  .step .headline { font-size: clamp(1.7rem, 7.6vw, 2.15rem); }
  .step-card p:last-child { font-size: 1.03rem; margin-top: .55rem; }
}

/* ---------------------------------------------------------------- dark bands */
.dark { background: var(--night); color: var(--night-ink); }
.dark .lede, .dark p { color: var(--night-quiet); }
.dark h3, .dark .display, .dark .headline { color: var(--night-ink); }
.dark .kicker { color: #FF6B57; }

/* ---------------------------------------------------------------- places */
.places { padding-block: clamp(96px, 16vh, 180px); overflow: hidden; }
.trio { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 3.5vw, 48px); margin-top: clamp(56px, 9vh, 96px); }
.trio .phone { --pw: clamp(220px, 24vw, 300px); }
.trio .phone:nth-child(2) { margin-top: -40px; }
.trio .phone:nth-child(odd) { margin-top: 40px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(64px, 10vh, 110px); }
.facts li { border-top: 1px solid rgba(242, 236, 221, .16); padding-top: 22px; }
.facts p { margin-top: .5rem; line-height: 1.5; }
@media (max-width: 760px) {
  .trio { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 50px var(--gutter) 30px; scrollbar-width: none; }
  .trio::-webkit-scrollbar { display: none; }
  .trio .phone { --pw: 62vw; scroll-snap-align: center; margin-top: 0 !important; }
  .facts { grid-template-columns: 1fr; gap: 28px; }
}
@supports (animation-timeline: view()) {
  @media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
    .trio .phone:nth-child(1) { animation: drift-a linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .trio .phone:nth-child(3) { animation: drift-b linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift-a { from { translate: 0 70px; } to { translate: 0 -40px; } }
    @keyframes drift-b { from { translate: 0 110px; } to { translate: 0 -70px; } }
  }
}

/* ---------------------------------------------------------------- the sky */
.sky {
  --sky-top: #9FD3F7;
  --sky-bot: #E8F3F7;
  --sky-ink: #1B2440;
  --sky-quiet: #3F4B6B;
  position: relative;
  height: 330vh;
  background: var(--sky-bot);
  color: var(--sky-ink);
}
.sky-stage::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 100%);
}
.sky-stage {
  position: sticky; top: 0;
  height: 100svh;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding-top: var(--nav-h);
  isolation: isolate;
}
.sky .kicker { color: var(--sky-ink); opacity: .7; }
.sky .lede { color: var(--sky-quiet); margin-top: 1.1rem; max-width: 34ch; }
.sky-times { display: flex; gap: 8px; margin-top: 2rem; }
.sky-times li {
  font-size: .9rem; font-weight: 700; padding: 7px 15px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--sky-ink) 30%, transparent);
  color: var(--sky-quiet);
  transition: background-color .5s, color .5s, border-color .5s;
}
.sky-times li.on { background: var(--sky-ink); color: var(--sky-top); border-color: var(--sky-ink); }
.sky-music {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  margin-top: clamp(28px, 6svh, 56px); padding: 22px 28px 22px 22px; border-radius: 30px; max-width: 48ch;
  background: color-mix(in srgb, var(--sky-ink) 9%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sky-music h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.12; letter-spacing: -.015em; }
.sky-music p { margin-top: .45rem; color: var(--sky-quiet); }
.sky-music .listen-now { margin-top: .7rem; font-size: .92rem; font-weight: 700; color: var(--sky-ink); }
.listen {
  position: relative; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--sky-ink); color: var(--sky-top);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); transition: transform .35s var(--ease), background-color .5s, color .5s;
}
.listen:hover { transform: scale(1.06); }
.listen:active { transform: scale(.96); }
.listen:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 4px; }
.listen svg { width: 30px; margin-left: 4px; }
.listen::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--sky-ink);
  animation: listen-ping 2.4s var(--ease) infinite; pointer-events: none;
}
@keyframes listen-ping { from { transform: scale(1); opacity: .55; } to { transform: scale(1.5); opacity: 0; } }
.listen .eq { display: none; gap: 4px; align-items: flex-end; height: 26px; }
.listen .eq i { display: block; width: 5px; height: 6px; border-radius: 3px; background: currentColor; animation: eq .8s ease-in-out infinite alternate; }
.listen .eq i:nth-child(2) { animation-delay: -.35s; animation-duration: .7s; }
.listen .eq i:nth-child(3) { animation-delay: -.6s; animation-duration: .9s; }
.listen .eq i:nth-child(4) { animation-delay: -.2s; animation-duration: .75s; }
@keyframes eq { from { height: 6px; } to { height: 26px; } }
.listen[aria-pressed="true"] svg { display: none; }
.listen[aria-pressed="true"] .eq { display: flex; }
.listen[aria-pressed="true"]::after { animation: none; opacity: 0; }
.sky-phone { --pw: min(340px, calc((100svh - var(--nav-h) - 90px) * .468)); justify-self: center; }
@media (max-width: 760px) {
  .sky-stage { grid-template-columns: 1fr; align-content: start; gap: 18px; padding-top: calc(var(--nav-h) + 3svh); }
  .sky .display { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .sky .lede { font-size: 1.02rem; margin-top: .6rem; }
  .sky-times { margin-top: 1rem; }
  .sky-music { gap: 14px; margin-top: 2px; padding: 10px 16px 10px 10px; border-radius: 24px; }
  .sky-music h3 { font-size: 1.02rem; }
  .sky-music p:not(.listen-now) { display: none; }
  .sky-music .listen-now { margin-top: .2rem; font-size: .8rem; }
  .listen { width: 54px; height: 54px; }
  .listen svg { width: 22px; margin-left: 3px; }
  .listen .eq { height: 20px; gap: 3px; }
  .listen .eq i { width: 4px; }
  .sky-phone { --pw: min(48vw, calc((100svh - 465px) * .468)); }
}

/* ---------------------------------------------------------------- bento */
.more { background: var(--paper-2); padding-block: clamp(96px, 15vh, 170px); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: clamp(44px, 7vh, 72px); }
.tile {
  position: relative; overflow: hidden;
  background: var(--paper-hi);
  border-radius: 30px;
  padding: clamp(26px, 3vw, 40px);
  min-height: 300px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 1px 2px rgba(42, 36, 24, .05);
}
.tile h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); }
.tile p { margin-top: .7rem; color: var(--quiet); line-height: 1.5; max-width: 38ch; text-wrap: pretty; }
.tile.dark p { color: var(--night-quiet); }
.tile-phone { position: absolute; --pw: 270px; }
.t-challenges { grid-column: span 4; min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.t-challenges .tile-phone { position: relative; justify-self: center; align-self: start; margin-top: 10px; margin-bottom: -260px; }
.t-today { grid-column: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, #FFF6D9, var(--paper-hi) 60%); }
.t-today .today-pic {
  display: block; width: calc(100% + 2 * clamp(26px, 3vw, 40px)); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  margin: calc(-1 * clamp(26px, 3vw, 40px)) calc(-1 * clamp(26px, 3vw, 40px)) auto; padding-bottom: 0;
}
.t-today h3 { margin-top: 26px; }
@keyframes spin { to { rotate: 360deg; } }
.t-ride { grid-column: span 2; min-height: 560px; }
.t-ride .tile-phone { --pw: 240px; left: 50%; translate: -50% 0; bottom: -250px; }
.t-boards { grid-column: span 4; min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.t-boards .tile-phone { position: relative; justify-self: center; align-self: start; margin-top: 10px; margin-bottom: -260px; }
.t-watch { grid-column: span 3; min-height: 440px; background: var(--night); }
.watches { display: flex; gap: 16px; margin-top: 28px; }
.watches img { width: calc(50% - 8px); max-width: 190px; border-radius: 30%/25%; box-shadow: 0 0 0 7px #0B0C10, 0 0 0 9px #33353C, 0 20px 40px -14px rgba(0, 0, 0, .7); }
.t-widget { grid-column: span 3; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; }
.widget-pic { display: block; width: 100%; max-width: 340px; height: auto; margin-bottom: 28px; filter: drop-shadow(0 18px 26px rgba(42, 36, 24, .22)); }
.t-together, .t-faces { grid-column: span 3; display: flex; flex-direction: column; justify-content: flex-start; }
/* the face card: the game's map full width at the top, the shelf's faces across its bottom edge */
.t-faces .face-map {
  display: block; width: calc(100% + 2 * clamp(26px, 3vw, 40px)); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  margin: calc(-1 * clamp(26px, 3vw, 40px)) calc(-1 * clamp(26px, 3vw, 40px)) 0;
}
.t-faces .faces { margin: -32px 0 0; padding-bottom: 0; position: relative; }
.t-faces h3 { margin-top: 24px; }
.faces { display: flex; margin-bottom: auto; padding-bottom: 28px; }
/* the game's group card, as its page draws it */
.group-card {
  margin-bottom: 0; margin-top: -4px; padding: 20px 22px 6px; max-width: 420px;
  background: #F6EEDE; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(42, 36, 24, .06), 0 22px 40px -22px rgba(42, 36, 24, .35);
}
.tile .group-card p { margin: 0; max-width: none; }
.group-card .gc-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.group-card .gc-fact { margin-top: 6px !important; font-size: .82rem; line-height: 1.4; color: #6B6355; }
.group-card .gc-kick { margin-top: 16px !important; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8C8372; }
.group-card ul { margin-top: 8px; }
.group-card li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(42, 36, 24, .08); }
.group-card li img { width: 40px; height: 40px; border-radius: 50%; }
.group-card li span { display: grid; line-height: 1.25; }
.group-card li b { font-size: .9rem; font-weight: 700; color: var(--ink); }
.group-card li i { font-style: normal; font-size: .75rem; font-weight: 700; color: #D9822B; }
.group-card .gc-add { padding: 12px 0 10px; font-size: .88rem; font-weight: 700; color: var(--ink); }
.t-together { padding-bottom: clamp(26px, 3vw, 40px); }
.t-together h3 { margin-top: 34px; }
.faces img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--paper-hi); margin-left: -14px; box-shadow: 0 6px 14px -6px rgba(42, 36, 24, .4); }
.faces img:first-child { margin-left: 0; }
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-challenges, .t-boards { grid-column: span 2; }
  .t-today, .t-ride, .t-watch, .t-widget, .t-together, .t-faces { grid-column: span 1; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento > .tile { grid-column: auto; }
  .t-challenges, .t-boards { grid-template-columns: 1fr; min-height: 0; }
  .t-challenges .tile-phone, .t-boards .tile-phone { --pw: 230px; margin-bottom: -200px; }
  .tile.t-ride { min-height: 500px; }
  .t-ride .tile-phone { --pw: 220px; bottom: -220px; }
  .tile { border-radius: 26px; min-height: 0; }
  .t-today, .t-widget, .t-together, .t-faces { min-height: 0; }
  .t-today .today-pic { margin-bottom: 0; }
  .t-watch { min-height: 0; }
}

/* ---------------------------------------------------------------- medals */
.medals { padding-block: clamp(96px, 15vh, 170px) clamp(80px, 12vh, 140px); overflow: hidden; }
.marquee {
  margin-top: clamp(48px, 8vh, 80px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: clamp(20px, 3vw, 36px); width: max-content; animation: marquee 60s linear infinite; padding-block: 20px; }
/* every medal wears the game's ring: complete in the street ink when earned,
   inked part of the way round when it's on its way (client/src/medals/combLook.ts) */
.medal {
  position: relative; flex: none; width: clamp(120px, 13vw, 180px); aspect-ratio: 1; border-radius: 50%;
  filter: drop-shadow(0 14px 22px rgba(42, 36, 24, .22)); transition: transform .5s var(--ease);
}
.medal img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.medal svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.medal circle { fill: none; stroke-width: 5; }
.medal .trk { stroke: #E0D4B9; }
.medal .ink {
  stroke: #EC3322; stroke-linecap: round; stroke-dasharray: 0 100;
  transition: stroke-dasharray 1.6s var(--ease) .2s;
}
.medal.won .ink { stroke-linecap: butt; }
.medals.inked .medal .ink { stroke-dasharray: calc(var(--f) * 100) 100; }
.medal:hover { transform: scale(1.08) rotate(-3deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- pass */
.pass {
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(124, 149, 240, .28), transparent 60%),
    linear-gradient(180deg, #1F3FA8 0%, #142C7E 45%, #0E1E57 100%);
  padding-block: clamp(96px, 15vh, 170px);
  overflow: hidden;
}
.pass .kicker { color: var(--gold); }
.pass .lede, .pass p { color: #C9D2F2; }
.pass-banner {
  display: inline-block; margin-bottom: 26px;
  background: var(--gold); color: var(--ink) !important;
  font-weight: 800; font-size: .95rem; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(255, 201, 60, .6);
}
.pass-top { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 819px) {
  .pass-top { grid-template-columns: 1fr; }
  .pass-phone { --pw: min(62vw, 280px); justify-self: center; }
}
.pass-phone { --pw: clamp(240px, 24vw, 320px); }
.pass-sub { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold) !important; }
.pass-medals { margin-top: clamp(64px, 9vh, 96px); text-align: center; }
.pass-medals ul { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); margin-top: 22px; }
.pass-medals li { width: clamp(96px, 11vw, 140px); display: grid; justify-items: center; gap: 12px; }
.pass-medals img { width: 100%; border-radius: 50%; box-shadow: 0 0 0 4px #EC3322, 0 18px 30px -12px rgba(0, 0, 0, .55); transition: transform .5s var(--ease); }
.pass-medals li:hover img { transform: translateY(-6px) rotate(-3deg); }
.pass-medals span { font-size: .9rem; font-weight: 650; color: #E8ECFA; line-height: 1.3; }
.perks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 30px; }
.perks li { display: grid; justify-items: center; gap: 12px; text-align: center; font-size: .92rem; font-weight: 650; color: #E8ECFA; line-height: 1.3; }
.perk-pic {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 201, 60, .28), rgba(255, 201, 60, .1)); color: var(--gold);
  box-shadow: inset 0 0 0 1.5px rgba(255, 201, 60, .45);
}
.perk-pic svg { width: 30px; }
.perk-pic img { width: 56px; border-radius: 14px; }
.track { margin-top: clamp(56px, 8vh, 84px); position: relative; padding-block: 10px; }
.track-line { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.track-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 2.4s var(--ease-io) .2s; }
.track.in .track-fill { transform: scaleX(1); }
.track-steps { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: clamp(34px, 5vw, 64px); }
.track-steps li {
  position: relative; flex: none;
  width: clamp(14px, 2.2vw, 26px); height: clamp(14px, 2.2vw, 26px); border-radius: 50%;
  background: #213A94; border: 2px solid rgba(255, 255, 255, .28);
  display: grid; place-items: center;
  transition: background-color .4s var(--ease), border-color .4s, transform .5s var(--ease);
  transition-delay: calc(var(--i) * 110ms + 200ms);
}
.track.in .track-steps li { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
.track-steps li.free { outline: 2px solid var(--gold); outline-offset: 4px; }
.track-steps li.free::after { content: 'Free'; position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; font-size: .72rem; font-weight: 750; color: var(--gold); }
/* every step shows its prize, as the game's strip does: lit up in turn as the track fills */
.track-steps li { width: clamp(30px, 4.1vw, 54px); height: auto; aspect-ratio: 1; border-radius: 28%; border: 0; background: transparent; overflow: visible; }
.track-steps li img { width: 100%; border-radius: 28%; opacity: .5; filter: saturate(.4); transition: opacity .5s, filter .5s, box-shadow .5s; transition-delay: calc(var(--i) * 110ms + 200ms); }
.track.in .track-steps li { background: transparent; transform: none; }
.track.in .track-steps li img { opacity: 1; filter: none; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .5); }
.track-steps li.free { outline: 0; }
.track-steps li.free img { box-shadow: 0 0 0 2.5px var(--gold); }
.track.in .track-steps li.free img { box-shadow: 0 0 0 2.5px var(--gold), 0 8px 18px -6px rgba(0, 0, 0, .5); }
.track-steps li:hover img { transform: translateY(-4px) scale(1.12); }
.track-steps li img { transition-property: opacity, filter, box-shadow, transform; }
.duo { margin-top: clamp(80px, 11vh, 120px); }
.card-supporter {
  position: relative;
  border-radius: 32px; padding: clamp(30px, 4.5vw, 56px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.card-supporter .mark { width: 72px; margin-bottom: 22px; }
.card-supporter p { margin-top: 1rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; max-width: 60ch; }
.card-supporter .thanks { color: var(--gold); font-weight: 700; }
.compare { margin-top: clamp(48px, 7vh, 72px); }
.compare table { width: 100%; border-collapse: collapse; font-size: clamp(.86rem, 1.2vw, 1rem); }
.compare th, .compare td { padding: 15px 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); text-align: center; }
.compare thead th { font-size: clamp(.9rem, 1.3vw, 1.08rem); font-weight: 800; color: #fff; padding-bottom: 18px; position: sticky; top: var(--nav-h); background: #132B7B; z-index: 1; }
.compare thead th:nth-child(3) { color: var(--gold); }
.compare tbody th { text-align: left; font-weight: 560; color: #E8ECFA; width: 52%; padding-left: 0; }
.compare td { color: #fff; font-weight: 700; }
.compare td:nth-child(3) { background: rgba(255, 201, 60, .07); }
.compare td.yes, .compare td.no { font-size: 0; }
.compare td.yes::before { content: ''; display: inline-block; width: 20px; height: 20px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.compare td.no::before { content: ''; display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .3); vertical-align: middle; }
.compare small { display: block; font-size: .78rem; color: var(--gold); font-weight: 600; margin-top: 3px; }
.plain { margin-top: 26px; font-size: .98rem; max-width: 70ch; }
@media (max-width: 680px) {
  .compare th, .compare td { padding: 13px 4px; }
  .compare tbody th { width: 46%; }
  .track-steps li.free::after { font-size: .62rem; }
  /* twenty steps don't fit one row on a phone: two rows of ten, each with its own line */
  .track-line { display: none; }
  .track-steps { display: grid; grid-template-columns: repeat(10, 1fr); grid-auto-rows: 34px; row-gap: 46px; justify-items: center; isolation: isolate; }
  .track-steps::before, .track-steps::after {
    content: ''; position: absolute; left: 5%; right: 5%; top: 15px; height: 4px; border-radius: 2px; z-index: -1;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold)) left / 0% 100% no-repeat, rgba(255, 255, 255, .14);
    transition: background-size 1.2s var(--ease-io) .2s;
  }
  .track-steps::after { top: 95px; transition-delay: 1.3s; }
  .track.in .track-steps::before, .track.in .track-steps::after { background-size: 100% 100%; }
  .track-steps li { width: 30px; }
  .perks { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .perk-pic { width: 56px; height: 56px; }
}

/* ---------------------------------------------------------------- how to play */
.how { padding-block: clamp(96px, 15vh, 170px); overflow: hidden; }
.how-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.how-head > div { max-width: 640px; }
.how-nav { display: flex; gap: 12px; flex: none; }
.round {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink);
  display: grid; place-items: center; transition: background-color .2s, opacity .3s, transform .3s var(--ease);
}
.round svg { width: 22px; }
.round:hover { background: color-mix(in srgb, var(--ink) 15%, transparent); }
.round:active { transform: scale(.94); }
.round:disabled { opacity: .35; cursor: default; }
.cards {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: clamp(40px, 6vh, 60px) max(var(--gutter), calc((100% - var(--wrap)) / 2)) 30px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.cards li {
  flex: none; width: min(78vw, 340px);
  scroll-snap-align: start;
  background: var(--paper-hi); border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(42, 36, 24, .06), 0 20px 40px -26px rgba(42, 36, 24, .3);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cards li:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(42, 36, 24, .06), 0 28px 50px -26px rgba(42, 36, 24, .38); }
.cards img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #D9B98F; }
.cards .card-body { padding: 22px 28px 30px; }
.cards .n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); color: #fff; font-size: .9rem; font-weight: 800; margin-bottom: 14px;
}
.cards h3 { font-size: 1.4rem; }
.cards p { margin-top: .55rem; color: var(--quiet); line-height: 1.5; }
@media (max-width: 680px) { .how-nav { display: none; } }

/* ---------------------------------------------------------------- get */
.get { padding-block: clamp(80px, 13vh, 150px) clamp(100px, 16vh, 180px); background: radial-gradient(70% 60% at 50% 100%, #FFE7A8 0%, transparent 70%), var(--paper); }
.get-mark { width: clamp(200px, 26vw, 320px); margin: 0 auto 34px; filter: drop-shadow(0 12px 22px rgba(42, 36, 24, .16)); }
.get .lede { margin: 1.1rem auto 0; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--paper-2); padding-block: 36px 48px; font-size: .82rem; color: var(--quiet); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 18px; font-size: .9rem; font-weight: 600; }
.foot-links a { text-decoration: none; color: var(--ink); }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot p + p { margin-top: 6px; }

/* ---------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ================================================== SUPPORT, PRIVACY, TERMS (site/_make_help.py) */
.doc-page .nav { background: color-mix(in srgb, var(--paper) 92%, transparent); }
.doc-page .nav-links.doc-links { display: flex; gap: 20px; }
.doc-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.doc { padding: calc(var(--nav-h) + clamp(36px, 7vw, 72px)) var(--gutter) clamp(56px, 9vw, 96px); }
.doc-in { max-width: 680px; margin-inline: auto; }
.doc h1.display { font-size: clamp(2.4rem, 7vw, 3.6rem); margin: 6px 0 28px; }
.doc p, .doc li { font-size: 1.02rem; line-height: 1.65; color: color-mix(in srgb, var(--ink) 86%, transparent); margin: 0 0 16px; }
.doc ul { margin: 0 0 18px; padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--ink); text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc hr { border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); margin: 28px 0; }
.doc-page .brand span { white-space: nowrap; }
@media (max-width: 520px) { .doc-page .nav-in { gap: 12px; } .doc-page .nav-links.doc-links { gap: 12px; font-size: .8rem; } .doc-page .brand { font-size: .92rem; gap: 8px; } }
