/* Porch Pirates — website design system.
   The game's logo sets the palette (cream, terracotta red, dark brown) and the display face (Bungee); everything
   else is quiet: a warm light ground, big screenshots from the game, generous space, rounded media. */

@font-face { font-family: "Bungee"; src: url("fonts/bungee.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Kanit"; font-weight: 400; src: url("fonts/kanit-400.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Kanit"; font-weight: 600; src: url("fonts/kanit-600.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Kanit"; font-weight: 700; src: url("fonts/kanit-700.woff") format("woff"); font-display: swap; }

/* ================= tokens ================= */
:root {
  /* colour: from the logo */
  --cream: #f6ecdc;        /* page ground */
  --paper: #fffaf2;        /* raised surfaces */
  --sand: #ead9bf;         /* quiet fills, borders on cream */
  --ink: #22130f;          /* text */
  --muted: #6b5244;        /* secondary text on cream (6.2:1) */
  --brand: #b8432a;        /* the logo's red: actions, accents (white on it 5.4:1) */
  --brand-hover: #a03822;
  --brand-ink: #a83c25;    /* red text on cream (5.4:1) */
  --night: #1c1311;        /* dark sections */
  --night-2: #2b1e1a;      /* raised on dark */
  --on-night: #f6ecdc;
  --on-night-muted: #c9b39c;
  --brand-light: #f08a6e;  /* red on dark (6.8:1 on night) */
  --steam-dark: #111d2e;   /* Steam: the logo's gradient, navy to blue */
  --steam-mid: #0e2f5c;
  --steam-blue: #1387b8;
  --blurple: #5865f2;      /* Discord */
  --blurple-deep: #1f1c66;
  --line: rgba(34, 19, 15, .12);
  --line-night: rgba(246, 236, 220, .14);

  /* type */
  --font-display: "Bungee", "Arial Black", Impact, sans-serif;
  --font-text: "Kanit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-display: clamp(2.6rem, 6.4vw, 5.6rem);
  --t-h1: clamp(1.7rem, 3.4vw, 2.75rem);
  --t-h2: clamp(1.9rem, 3.6vw, 3rem);
  --t-h3: 1.25rem;
  --t-lead: clamp(1.25rem, 2.1vw, 1.6rem);
  --t-body: 1.125rem;
  --t-small: .9375rem;
  --t-label: .8125rem;

  /* space: 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: clamp(80px, 11vw, 144px);
  --gutter: clamp(16px, 4vw, 48px);
  --cut-h: clamp(28px, 4.2vw, 64px);   /* height of the wavy edge between sections */
  --max: 1200px;

  /* shape and depth */
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(34, 19, 15, .06), 0 4px 12px rgba(34, 19, 15, .06);
  --shadow-2: 0 2px 4px rgba(34, 19, 15, .06), 0 18px 40px -12px rgba(34, 19, 15, .28);

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: .18s;
  --slow: .7s;

  color-scheme: light;
  accent-color: var(--brand);
}

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--muted) var(--cream); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--brand); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -80px; z-index: 100; padding: var(--s3) var(--s4); background: var(--ink); color: var(--cream); border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: var(--s4); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: var(--section) 0; }
.section--first { padding-top: calc(var(--section) * .55); }
.cut { position: relative; background: var(--cream); }
.section--paper { background: var(--paper); }
/* no straight seams: every section starts with a soft wave of its own colour, laid over the one before */
.cut::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(1px - var(--cut-h)); height: var(--cut-h); pointer-events: none;
  background: inherit;
  -webkit-mask: var(--cut-shape) 0 100% / 100% 100% no-repeat; mask: var(--cut-shape) 0 100% / 100% 100% no-repeat;
}
.cut--a { --cut-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V30C160 8 330 2 520 18S880 58 1080 50 1340 18 1440 26V64Z'/%3E%3C/svg%3E"); }
.cut--b { --cut-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V40C140 20 300 4 500 12S860 54 1100 46 1360 8 1440 14V64Z'/%3E%3C/svg%3E"); }

/* type roles */
.h2 { font: 400 var(--t-h2)/1.05 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.body { font-size: var(--t-body); line-height: 1.65; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.note { margin-top: var(--s5); font-size: var(--t-small); color: var(--muted); }
.note:empty { display: none; }

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 2px solid transparent;
  font: 600 1.0625rem/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast), transform var(--fast) var(--ease), box-shadow var(--fast);
}
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(184, 67, 42, .7); }
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { cursor: default; background: var(--brand); opacity: 1; box-shadow: none; transform: none; }
.btn--primary:disabled .btn__icon { opacity: .75; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { color: var(--on-night); border-color: rgba(246, 236, 220, .45); }
.btn--on-dark:hover { border-color: var(--on-night); background: rgba(246, 236, 220, .08); }
.btn--large { min-height: 60px; padding: 0 32px; font-size: 1.125rem; }
/* Steam: the wishlist button, in the colours of Steam's logo */
.btn--steam {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(180deg, #1b3a6b 0%, #144b7e 45%, var(--steam-blue) 100%) 0 0 / 100% 200%;
  border-color: rgba(160, 215, 245, .35);
  box-shadow: 0 12px 26px -12px rgba(19, 103, 152, .9), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: background-position .5s var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast);
}
.btn--steam::after { /* a slow shine across the button */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat;
  animation: shine 5s ease-in-out 1.6s infinite;
}
@keyframes shine { 0%, 55% { background-position: -150% 0; } 85%, 100% { background-position: 250% 0; } }
.btn--steam:hover { background-position: 0 35%; border-color: rgba(190, 230, 250, .6); transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(19, 135, 184, .95), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--steam:hover .btn__icon { animation: spin .7s var(--ease); }
.btn--steam:active { transform: translateY(0); }
.btn--steam .btn__icon { width: 22px; height: 22px; }
@keyframes spin { from { transform: rotate(-360deg) scale(.6); } }

/* ================= navigation ================= */
.nav { position: fixed; inset: 12px 0 auto 0; z-index: 50; pointer-events: none; color: var(--on-night); }
.nav__inner {
  position: relative; pointer-events: auto;
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; height: 68px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: var(--s6);
  border-radius: 22px; border: 1px solid rgba(246, 236, 220, .16);
  background: rgba(28, 19, 17, .38);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 12px 32px -14px rgba(20, 12, 10, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: background-color .3s, box-shadow .3s;
  animation: drop-in .8s var(--ease) both;
}
.nav.is-solid .nav__inner { background: rgba(28, 19, 17, .82); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-24px); } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand__badge { width: 34px; height: 34px; transition: transform .3s var(--ease); }
.brand:hover .brand__badge { transform: rotate(-10deg); }
.brand__name { font: 400 1.05rem/1 var(--font-display); letter-spacing: .01em; }
.nav__links { display: flex; gap: var(--s1); margin-inline: auto; }
.nav__links a { white-space: nowrap; padding: 10px 14px; border-radius: var(--r-pill); font: 600 1rem/1 var(--font-text); text-decoration: none; opacity: .82; transition: opacity var(--fast), background-color var(--fast); }
.nav__links a:hover { opacity: 1; background: rgba(246, 236, 220, .12); }
.nav__links a[aria-current="true"] { opacity: 1; background: rgba(246, 236, 220, .18); }
.nav__tools { display: flex; align-items: center; gap: var(--s2); }
@keyframes wiggle { 30% { transform: rotate(-14deg) scale(1.1); } 60% { transform: rotate(10deg); } }
/* Steam and Discord: just the logos, white and the same size; on hover they turn black on a light circle */
.nav__icon, .social {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav__icon svg, .social svg { width: 24px; height: 24px; fill: currentColor; }
.nav__icon:hover, .social:hover, .nav__icon:focus-visible, .social:focus-visible { background: var(--cream); color: var(--ink); transform: translateY(-1px); }
.nav__icon:hover svg, .social:hover svg { animation: wiggle .5s var(--ease); }
.nav__links + .nav__tools { margin-left: 0; }

.lang-pick { position: relative; }
.lang-pick__btn {
  height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 12px; cursor: pointer;
  background: rgba(246, 236, 220, .08); color: inherit; border: 1px solid rgba(246, 236, 220, .22); border-radius: var(--r-pill);
  transition: background-color var(--fast), border-color var(--fast);
  font: 600 .95rem/1 var(--font-text);
}
.lang-pick__btn svg { width: 18px; height: 18px; }
.lang-pick__btn .lang-pick__chevron { width: 14px; height: 14px; transition: transform var(--fast) var(--ease); }
.lang-pick__btn[aria-expanded="true"] .lang-pick__chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 260px; z-index: 60;
  background: var(--paper); color: var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  border: 1px solid var(--line); overflow: hidden;
}
.lang-menu:not([hidden]) { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lang-menu ul { max-height: min(58vh, 440px); overflow-y: auto; padding: 6px; }
.lang-menu li > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); font: 600 .975rem/1.2 var(--font-text); text-decoration: none; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--cream); outline-offset: -2px; }
.lang-menu a[aria-current]::after { content: ""; width: 16px; height: 16px; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%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' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.lang-menu__soon { color: rgba(34, 19, 15, .4); }
.lang-menu__soon small { font: 600 .72rem/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--cream); padding: 4px 7px; border-radius: var(--r-pill); }
.lang-menu__note { padding: 12px 18px 14px; font-size: .85rem; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line); }

.nav__menu { display: none; width: 44px; height: 44px; place-items: center; padding: 0; background: transparent; color: inherit; border: 0; border-radius: var(--r-pill); cursor: pointer; }
.nav__menu svg { width: 24px; height: 24px; }
.nav__menu .i-close, .nav.is-open .nav__menu .i-menu { display: none; }
.nav.is-open .nav__menu .i-close { display: block; }

/* ================= hero ================= */
.hero { --sea-h: clamp(64px, 8vw, 116px); position: relative; min-height: min(100svh, 1000px); display: grid; place-items: center; overflow: hidden; color: var(--on-night); background: var(--night); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.03); animation: settle 2.4s var(--ease) both, drift 28s ease-in-out 2.4s infinite alternate; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.09) translate(-1.2%, -.8%); } }
.hero__media::after { /* keep the copy readable over the photo */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 19, 17, .5) 0%, rgba(28, 19, 17, .18) 32%, rgba(28, 19, 17, .3) 70%, rgba(28, 19, 17, .45) 100%),
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(28, 19, 17, .45), rgba(28, 19, 17, 0) 75%);
}
@keyframes settle { from { transform: scale(1.12); } }
.hero__content { width: min(900px, 100% - 2 * var(--gutter)); padding: 128px 0 calc(var(--sea-h) + 88px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { width: min(520px, 80vw); }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); }
.hero__title { margin-top: var(--s5); font: 400 clamp(2.3rem, 5.6vw, 4.6rem)/1 var(--font-display); text-wrap: balance; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.slogan em { display: inline-block; font-style: normal; color: var(--brand-light); }
.js .hero__title em { animation: stamp .7s cubic-bezier(.3, 1.6, .5, 1) .75s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.6) rotate(-8deg); } 60% { opacity: 1; } to { transform: rotate(-2deg); } }
.hero__text { margin-top: var(--s4); max-width: 46ch; font-size: var(--t-lead); line-height: 1.45; color: rgba(246, 236, 220, .88); text-wrap: balance; }
.hero__actions { margin-top: var(--s7); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.hero__meta { font: 600 var(--t-small)/1.3 var(--font-text); letter-spacing: .02em; color: rgba(246, 236, 220, .82); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hero__scroll {
  position: absolute; left: 50%; bottom: calc(var(--sea-h) + 18px); width: 42px; height: 42px; margin-left: -21px;
  display: grid; place-items: center; border-radius: 50%; color: var(--on-night); border: 1.5px solid rgba(246, 236, 220, .5);
  background: rgba(28, 19, 17, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: nudge 2.4s ease-in-out 1.6s infinite; transition: background-color var(--fast), border-color var(--fast);
}
.hero__scroll:hover { background: rgba(246, 236, 220, .16); border-color: var(--on-night); }
.hero__scroll svg { width: 20px; height: 20px; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(7px); } }
/* the hero ends in the sea: three crests sliding at different speeds, the front one the colour of the page */
.hero__sea { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--sea-h); pointer-events: none; }
.hero__sea .wave { bottom: 0; }
.wave--h1 { --h: var(--sea-h); --c: rgba(246, 236, 220, .22); --dur: 26s; }
.wave--h2 { --h: calc(var(--sea-h) * .78); --c: rgba(246, 236, 220, .45); --dur: 19s; }
.wave--h2 svg { animation-direction: reverse; }
.wave--h3 { --h: calc(var(--sea-h) * .56); --c: var(--cream); --dur: 32s; }
.js .hero__content > * { animation: rise .9s var(--ease) both; }
.js .hero__content > :nth-child(2) { animation-delay: .1s; }
.js .hero__content > :nth-child(3) { animation-delay: .18s; }
.js .hero__content > :nth-child(4) { animation-delay: .26s; }
.js .hero__content > :nth-child(5) { animation-delay: .34s; }
.js .hero__scroll { animation: rise .9s var(--ease) .6s both, nudge 2.4s ease-in-out 1.6s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ================= launch: countdown, prices, downloads ================= */
.launch { background: var(--paper); }
.launch__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.launch__main { display: grid; gap: var(--s4); }
.countdown { margin-top: var(--s4); }
.countdown__label, .downloads__label { font: 600 var(--t-label)/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.countdown__units { margin-top: var(--s3); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.cd {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: var(--s5) var(--s2) var(--s4); overflow: hidden;
  border-radius: var(--r-md); background: var(--night); color: var(--on-night);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.cd::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .45); box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
.cd__n { font: 400 clamp(2rem, 4.4vw, 3.4rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.cd__n.tick { animation: flip .45s var(--ease); }
@keyframes flip { from { opacity: 0; transform: translateY(-45%) rotateX(70deg); } }
.cd__l { font: 600 var(--t-label)/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-muted); }
.cd:last-child .cd__n { color: var(--brand-light); }
.countdown__date { margin-top: var(--s3); font-size: var(--t-small); color: var(--muted); }
.countdown.is-done .countdown__units { display: none; }
.launch__actions { margin-top: var(--s5); display: grid; justify-items: start; gap: var(--s2); }
.launch__actions .note { margin-top: 0; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.price {
  position: relative; display: grid; gap: 6px; padding: var(--s5); border-radius: var(--r-lg);
  background: var(--cream); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.price--best { background: #fff; border: 2px solid var(--brand); box-shadow: 0 18px 40px -18px rgba(184, 67, 42, .55); }
.price__tag { position: absolute; top: -12px; left: var(--s5); padding: 5px 10px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font: 600 .75rem/1 var(--font-text); letter-spacing: .04em; text-transform: uppercase; }
.price__label { font: 600 1rem/1.2 var(--font-text); }
.price__value { font: 400 clamp(1.9rem, 3.2vw, 2.6rem)/1 var(--font-display); color: var(--ink); white-space: nowrap; }
.price--best .price__value { color: var(--brand-ink); }
.price__text { font-size: var(--t-small); color: var(--muted); line-height: 1.4; }

.downloads { margin-top: var(--s5); padding: var(--s5); border-radius: var(--r-lg); background: var(--night); color: var(--on-night); }
.downloads__label { display: flex; align-items: center; gap: 8px; color: var(--on-night-muted); }
.downloads__label svg { width: 18px; height: 18px; color: var(--brand-light); }
.odo { margin-top: var(--s3); display: flex; gap: 6px; font: 400 clamp(2rem, 4vw, 3rem)/1 var(--font-display); }
.odo__digit { height: 1.3em; width: .95em; display: block; overflow: hidden; text-align: center; border-radius: 8px; background: var(--night-2); box-shadow: inset 0 -10px 16px -10px rgba(0, 0, 0, .7); }
.odo__digit:nth-last-child(4) { margin-right: 10px; }  /* thousands gap: 000 000 */
.odo__wheel { display: block; line-height: 1.3; transform: translateY(calc(var(--d) * -1.3em)); }
.js .launch__side:not(.is-in) .odo__wheel { transform: translateY(-11.7em); }
.js .launch__side.is-in .odo__wheel { transition: transform 2.2s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .12s); }
.downloads__note { margin-top: var(--s3); font-size: var(--t-small); color: var(--on-night-muted); }

/* ================= features: image + text rows ================= */
.features { display: grid; gap: var(--s10); }
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature--flip .feature__media { order: 2; }
.feature__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); background: var(--sand); }
.feature__body { display: grid; gap: var(--s4); align-content: center; }
.feature__label { margin-top: var(--s3); font: 600 var(--t-label)/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font: 600 1rem/1 var(--font-text); }
.chip__key { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--cream); font: 400 .85rem/1 var(--font-display); }
.chip--accent .chip__key { background: var(--brand); color: #fff; }
.feature-dots { display: none; }

/* screenshots open in the viewer */
.shot__link { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; cursor: zoom-in; }
.shot__link img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.shot__link:hover img, .shot__link:focus-visible img { transform: scale(1.04); }

/* ================= the path: a road the parcel travels, step by step ================= */
.section__head { display: grid; gap: var(--s4); max-width: 720px; }
.section__head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5) var(--s8); align-items: end; }
.path { --step: .5s; --road: cubic-bezier(.45, .05, .55, .95); position: relative; margin-top: calc(var(--s8) + 56px); }
.path__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
.path__track {
  position: absolute; left: calc((100% - 4 * var(--s4)) / 10); right: calc((100% - 4 * var(--s4)) / 10); top: 26px; height: 4px; margin-top: -2px;
  border-radius: 4px; background: repeating-linear-gradient(90deg, var(--sand) 0 12px, transparent 12px 20px);
}
.path__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ink), var(--brand)); transform-origin: 0 50%; }
.path__parcel { position: absolute; left: 0; bottom: 36px; width: 52px; height: 52px; margin-left: -26px; color: var(--brand); }
.path__parcel svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 6px rgba(34, 19, 15, .22)); }
.path__steps > li { position: relative; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: var(--s4); text-align: center; }
.path__n {
  position: relative; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--ink); font: 400 1.15rem/1 var(--font-display);
  transition: scale .35s var(--ease), rotate .35s var(--ease), background-color .3s, color .3s;
}
.path__steps > li:hover .path__n { scale: 1.12; rotate: -10deg; background: var(--ink); color: var(--cream); }
.path__card {
  width: 100%; height: 100%; display: grid; gap: var(--s2); align-content: start; padding: var(--s4) var(--s4) var(--s5);
  border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line);
  transition: translate .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.path__steps > li:hover .path__card { translate: 0 -4px; box-shadow: var(--shadow-2); background: #fff; }
.path h3 { font: 400 var(--t-h3)/1.15 var(--font-display); }
.path p { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.path__goal .path__n { background: var(--brand); border-color: var(--brand); color: #fff; }
.path__steps > li.path__goal:hover .path__n { background: var(--brand-hover); color: #fff; }
.path__goal .path__card { background: #fff; border: 2px solid var(--brand); box-shadow: 0 18px 40px -20px rgba(184, 67, 42, .6); }
.path__goal .path__n::after { /* the bank calls you */
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--brand); opacity: 0;
  animation: ring 2.2s ease-out calc(1s + 5 * var(--step)) infinite;
}
@keyframes ring { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* the journey, played once when the path comes into view */
.js .path__fill { transform: scaleX(0); }
.js .path.is-in .path__fill { transform: none; transition: transform calc(4 * var(--step)) var(--road) .35s; }
.js .path.is-in .path__parcel { left: 100%; transition: left calc(4 * var(--step)) var(--road) .35s; }
.js .path.is-in .path__parcel svg { animation: hop calc(var(--step) / 2) ease-in-out .35s 8 alternate, idle 2.6s ease-in-out calc(.6s + 4 * var(--step)) infinite; }
@keyframes hop { to { transform: translateY(-12px) rotate(-12deg); } }
@keyframes idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(6deg); } }
.js .path:not(.is-in) .path__n, .js .path:not(.is-in) .path__card { opacity: 0; }
.js .path.is-in .path__n { animation: pop-in .6s cubic-bezier(.3, 1.6, .5, 1) calc(.3s + var(--i) * var(--step)) both; }
.js .path.is-in .path__card { animation: card-in .7s var(--ease) calc(.4s + var(--i) * var(--step)) both; }
@keyframes pop-in { from { opacity: 0; transform: scale(.3); } }
@keyframes card-in { from { opacity: 0; transform: translateY(22px); } }
.js .path.reveal { opacity: 1; transform: none; }

/* ================= the town ================= */
.stats { margin-top: var(--s8); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats div { padding: var(--s5) var(--s5) 0 0; }
.stats div + div { padding-left: var(--s5); border-left: 1px solid var(--line); }
.stats dt { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1 var(--font-display); color: var(--ink); }
.stats dd { margin-top: var(--s2); font-size: var(--t-small); color: var(--muted); }
.gallery { margin-top: var(--s8); display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: var(--s4); }
.shot { border-radius: var(--r-md); overflow: hidden; background: var(--sand); }
.shot--lead { grid-column: span 2; grid-row: span 2; }
.shot--wide { grid-column: span 2; }
/* big tiles take the height their row already has, so the mosaic closes without gaps */
@media (min-width: 961px) {
  .shot--lead .shot__link, .shot--wide .shot__link { height: 100%; }
  .shot--lead .shot__link img, .shot--wide .shot__link img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
.shot__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(180deg, rgba(28, 19, 17, 0), rgba(28, 19, 17, .75));
  font: 600 var(--t-small)/1.3 var(--font-text); opacity: 0; transform: translateY(6px); transition: opacity var(--fast), transform .3s var(--ease);
}
.shot__link:hover .shot__caption, .shot__link:focus-visible .shot__caption { opacity: 1; transform: none; }
@media (hover: none) { .shot__caption { opacity: 1; transform: none; } }

/* ================= co-op (dark) ================= */
.section--dark { background: var(--night); color: var(--on-night); }
.section--dark .body { color: var(--on-night-muted); }
.coop { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.coop__body { display: grid; gap: var(--s4); }
.ticks { margin-top: var(--s3); display: grid; gap: var(--s3); }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: var(--s3); align-items: start; font-size: 1.0625rem; line-height: 1.45; }
.ticks svg { width: 22px; height: 22px; margin-top: 2px; color: #f08a6e; }
.coop__media { justify-self: center; width: min(420px, 100%); border-radius: var(--r-lg); overflow: hidden; background: var(--night-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.coop__media img { width: 100%; height: auto; aspect-ratio: 532 / 534; object-fit: cover; }
.coop__media figcaption { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); font: 600 var(--t-small)/1.2 var(--font-text); }
.crew { margin-left: auto; display: flex; gap: 6px; }
.crew > * { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.crew b { background: var(--brand); color: #fff; font: 400 .6rem/1 var(--font-display); }
.crew i { border: 1.5px dashed rgba(246, 236, 220, .35); }
.crew i svg { width: 14px; height: 14px; color: var(--on-night-muted); }
.crew__count { color: var(--on-night-muted); white-space: nowrap; }

/* ================= FAQ: soft cards that open smoothly ================= */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s8); align-items: start; }
.faq__intro { display: grid; gap: var(--s4); justify-items: start; position: sticky; top: 120px; }
.faq__mail {
  margin-top: var(--s2); display: grid; gap: 6px; padding: var(--s4) var(--s5); border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.faq__mail span { font: 600 var(--t-label)/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.faq__mail b { font: 600 1.125rem/1.2 var(--font-text); color: var(--brand-ink); overflow-wrap: anywhere; }
.faq__mail:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.faq__list { display: grid; gap: var(--s3); }
.faq details { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.js .faq details.reveal {
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), background-color .3s, box-shadow .4s var(--ease), border-color .3s;
  transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s, 0s;
}
.faq details:hover { border-color: rgba(34, 19, 15, .24); }
.faq details[open] { background: #fff; border-color: transparent; box-shadow: var(--shadow-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: 20px 18px 20px 24px; border-radius: 18px; font: 600 1.1875rem/1.3 var(--font-text); transition: color var(--fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-ink); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq summary i { /* plus that turns into a minus */
  flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--cream);
  transition: background-color .3s, transform .5s var(--ease);
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; border-radius: 2px;
  background: var(--ink); transition: transform .5s var(--ease), background-color .3s;
}
.faq summary i::after { transform: rotate(90deg); }
.faq summary:hover i { background: var(--sand); }
.faq details[open] summary i { background: var(--brand); transform: rotate(180deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details.is-closing { background: var(--paper); border-color: var(--line); box-shadow: none; }
.faq details.is-closing summary i { background: var(--cream); transform: none; }
.faq details.is-closing summary i::before, .faq details.is-closing summary i::after { background: var(--ink); }
.faq details.is-closing summary i::after { transform: rotate(90deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 24px 24px; color: var(--muted); max-width: 60ch; }

/* ================= Discord: a sea of moving waves ================= */
.discord { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--section) + 40px) 0; color: #fff;
  background: radial-gradient(ellipse at 30% 40%, #3a40c8 0%, rgba(58, 64, 200, 0) 60%), linear-gradient(180deg, #2a2a8f 0%, var(--blurple-deep) 100%); }
.discord__sea { position: absolute; inset: 0; z-index: -1; }
.wave { position: absolute; left: 0; right: 0; height: var(--h); }
/* the crest is two periods wide and slides by one, so the loop never shows a seam */
.wave svg { display: block; width: 200%; max-width: none; height: var(--h); fill: var(--c); animation: sea var(--dur, 22s) linear infinite; }
@keyframes sea { to { transform: translateX(-50%); } }
/* inner waves: the moving crest plus the still water under it */
.wave--fill { bottom: 0; height: auto; }
.wave--fill::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--h) - 1px); bottom: 0; background: var(--c); }
.wave--edge-top { --h: 90px; --c: var(--cream); --dur: 30s; top: -1px; transform: scaleY(-1); }
.wave--edge-bottom { --h: 90px; --c: var(--night); --dur: 26s; bottom: -1px; }
.wave--edge-bottom svg { animation-direction: reverse; }
.wave--1 { --h: 100px; --c: #4a52d8; --dur: 34s; top: 14%; opacity: .45; }
.wave--2 { --h: 120px; --c: #3b42c4; --dur: 28s; top: 40%; opacity: .55; }
.wave--2 svg { animation-direction: reverse; }
.wave--3 { --h: 130px; --c: #262a92; --dur: 20s; top: 66%; opacity: .75; }

.discord__card {
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s6); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 32px;
  background: linear-gradient(135deg, rgba(88, 101, 242, .35), rgba(31, 28, 102, .55));
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 40px 80px -30px rgba(10, 8, 50, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.discord__art { position: relative; display: grid; place-items: center; }
.discord__art::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(140, 150, 255, .55), rgba(140, 150, 255, 0) 70%); animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { to { transform: scale(1.15); opacity: .7; } }
.discord__mascot { position: relative; width: min(340px, 100%); height: auto; filter: drop-shadow(0 24px 30px rgba(10, 8, 50, .55)); animation: bob 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.discord__body { display: grid; justify-items: start; gap: var(--s4); }
.discord__tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); font: 600 .8rem/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; }
.discord__tag svg { width: 18px; height: 18px; }
.discord__title { font: 400 clamp(2.4rem, 5.6vw, 4.4rem)/.98 var(--font-display); text-wrap: balance; text-shadow: 0 6px 30px rgba(10, 8, 50, .45); }
.discord__count { display: flex; align-items: center; gap: 8px; font: 600 1.05rem/1 var(--font-text); }
.discord__count[hidden] { display: none; }
.discord__count svg { width: 20px; height: 20px; opacity: .85; }
.discord__count b { font: 400 1.35rem/1 var(--font-display); }
.discord__text { max-width: 44ch; font: 600 1.1875rem/1.55 var(--font-text); color: rgba(255, 255, 255, .9); }
.btn--discord { margin-top: var(--s2); background: #fff; color: #3c45c9; box-shadow: 0 14px 30px -12px rgba(10, 8, 50, .8); }
.btn--discord:hover { transform: translateY(-2px) scale(1.02); background: #eef0ff; }
.btn--discord:hover .btn__icon { animation: wiggle .5s var(--ease); }

/* ================= footer ================= */
.footer { background: var(--night); color: var(--on-night-muted); padding: var(--s9) 0 var(--s7); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s7); }
.footer__credits a { color: var(--on-night); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(246, 236, 220, .35); transition: color var(--fast), text-decoration-color var(--fast); }
.footer__credits a:hover { color: var(--brand-light); text-decoration-color: currentColor; }
.socials { display: flex; gap: var(--s1); margin: var(--s1) 0 0 -9px; }
.social { width: 40px; height: 40px; }
.footer__col .social:hover { text-decoration: none; }
.footer__brand { display: grid; gap: var(--s4); align-content: start; }
.footer .brand { color: var(--on-night); }
.footer__brand p { max-width: 36ch; }
.footer__col { display: grid; gap: var(--s3); align-content: start; }
.footer__col a { color: var(--on-night); text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__col a[aria-current] { text-decoration: underline; }
.footer__title { font: 600 var(--t-label)/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); justify-content: space-between; padding-top: var(--s6); border-top: 1px solid var(--line-night); font-size: .875rem; line-height: 1.55; }
.footer__legal p { max-width: 90ch; }
.footer__legal a { color: var(--on-night); white-space: nowrap; }
.joke { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: var(--s5); font-size: .85rem; color: rgba(201, 179, 156, .7); text-align: center; }
.joke__box { flex: none; width: 26px; height: 26px; padding: 0; border: 0; background: none; color: var(--on-night-muted); cursor: pointer; }
.joke__box svg { width: 100%; height: 100%; }
.joke:hover .joke__box, .joke__box.is-kicked { animation: tumble .9s var(--ease); }
@keyframes tumble { 20% { transform: translateY(-10px) rotate(-20deg); } 45% { transform: translateY(2px) rotate(200deg); } 65% { transform: translateY(-4px) rotate(340deg) scaleY(.85); } 100% { transform: rotate(360deg); } }
.joke__almost { display: inline-block; transition: transform .3s var(--ease), color .3s; }
.joke:hover .joke__almost { transform: rotate(-6deg) scale(1.15); color: var(--brand-light); }

/* ================= toast ================= */
.toast {
  position: fixed; left: 50%; top: 92px; z-index: 90; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: var(--r-pill); color: #fff;
  background: linear-gradient(120deg, var(--steam-dark), var(--steam-mid) 55%, var(--steam-blue));
  box-shadow: 0 20px 40px -14px rgba(10, 20, 40, .7), inset 0 1px 0 rgba(255, 255, 255, .14);
  font: 600 1rem/1.3 var(--font-text); pointer-events: none;
  opacity: 0; transform: translate(-50%, -24px); transition: transform .5s var(--ease), opacity .3s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { flex: none; width: 26px; height: 26px; }

/* ================= photo viewer ================= */
.lightbox { width: fit-content; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 13, 11, .9); backdrop-filter: blur(4px); }
.lightbox[open] { animation: pop .3s var(--ease); }
.lightbox__frame { margin: 0; display: grid; gap: var(--s3); }
.lightbox__img { width: auto; height: auto; max-width: min(1280px, 100vw - 120px); max-height: calc(100svh - 120px); border-radius: var(--r-md); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.lightbox__caption { text-align: center; color: var(--on-night); font: 600 1rem/1.3 var(--font-text); }
.lightbox__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(246, 236, 220, .14); color: var(--on-night); transition: background-color var(--fast); }
.lightbox__btn:hover { background: rgba(246, 236, 220, .28); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: -8px; right: -60px; }
.lightbox__prev { left: -64px; top: calc(50% - 24px); }
.lightbox__next { right: -64px; top: calc(50% - 24px); }

/* ================= standalone pages (404, /secret) ================= */
.solo { min-height: 100svh; display: grid; place-items: center; padding: var(--s7) var(--gutter); background: var(--night); color: var(--on-night); text-align: center; }
.solo__card { display: grid; justify-items: center; gap: var(--s4); max-width: 560px; }
.solo__card img { width: 96px; height: 96px; }
.solo__card .h2 { margin-top: var(--s3); }
.solo__card .body { color: var(--on-night-muted); }
.solo__card .btn { margin-top: var(--s4); }

/* ================= 404: 4, the pirate badge, 4 ================= */
.lost {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: var(--s5);
  padding: var(--s5) var(--gutter) var(--s5); background: var(--night); color: var(--on-night); text-align: center;
}
.lost__bg { position: absolute; inset: -60px; z-index: -1; background: url("img/hero-900.webp") 50% 60% / cover; filter: blur(16px) saturate(1.1); opacity: .32; }
.lost::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(28, 19, 17, .2), rgba(28, 19, 17, .85) 100%); }
.lost__brand { color: var(--on-night); animation: rise .8s var(--ease) both; }
.lost__card { align-self: center; display: grid; justify-items: center; gap: var(--s4); width: min(640px, 100%); }
.lost__code { display: flex; align-items: center; justify-content: center; gap: clamp(2px, 1.4vw, 18px); font: 400 clamp(7.2rem, 27vw, 15rem)/.9 var(--font-display); color: var(--cream); }
.lost__digit { display: inline-block; text-shadow: 0 .055em 0 var(--brand), 0 .12em .35em rgba(0, 0, 0, .55); }
.lost__digit--a { animation: digit-drop .9s cubic-bezier(.3, 1.45, .5, 1) .1s both; --tilt: -7deg; transform: rotate(var(--tilt)); }
.lost__digit--b { animation: digit-drop .9s cubic-bezier(.3, 1.45, .5, 1) .25s both; --tilt: 6deg; transform: rotate(var(--tilt)); }
@keyframes digit-drop { from { opacity: 0; transform: translateY(-70%) rotate(0deg); } 50% { opacity: 1; } to { transform: rotate(var(--tilt)); } }
.lost__badge { width: clamp(6.2rem, 23vw, 12.5rem); height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5));
  animation: badge-in 1s cubic-bezier(.3, 1.5, .5, 1) .45s both, badge-sway 3.4s ease-in-out 1.5s infinite; }
@keyframes badge-in { from { opacity: 0; transform: scale(.1) rotate(-220deg); } 40% { opacity: 1; } }
@keyframes badge-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: translateY(-8px) rotate(6deg); } }
.lost__title { font: 400 clamp(1.7rem, 5vw, 2.8rem)/1 var(--font-display); animation: rise .8s var(--ease) .7s both; }
.lost__text { max-width: 40ch; font-size: var(--t-lead); line-height: 1.45; color: var(--on-night-muted); text-wrap: balance; animation: rise .8s var(--ease) .8s both; }

/* the parcel's tracking: delivered as far as the porch, then gone */
.track { position: relative; width: min(520px, 100%); margin: var(--s3) 0 var(--s2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.track::before { content: ""; position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: 17px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--cream) 0 50%, var(--brand-light) 50% 100%); opacity: .7; transform-origin: 0 50%; animation: track-fill 1.2s var(--ease) 1s both; }
@keyframes track-fill { from { transform: scaleX(0); } }
.track li { position: relative; display: grid; justify-items: center; gap: var(--s2); padding: 0 4px; font: 600 .875rem/1.25 var(--font-text); color: var(--on-night-muted); }
.track li:nth-child(1) { animation: rise .6s var(--ease) 1s both; }
.track li:nth-child(2) { animation: rise .6s var(--ease) 1.3s both; }
.track li:nth-child(3) { animation: rise .6s var(--ease) 1.6s both; }
.track i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--night); }
.track i svg { width: 18px; height: 18px; }
.track .is-lost i { background: var(--brand); color: #fff; animation: lost-ping 2s ease-out 2.2s infinite; }
.track .is-lost span { color: var(--brand-light); }
@keyframes lost-ping { 0% { box-shadow: 0 0 0 0 rgba(240, 138, 110, .6); } 100% { box-shadow: 0 0 0 16px rgba(240, 138, 110, 0); } }

.lost__actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); animation: rise .8s var(--ease) 1.8s both; }
.lost__joke { align-self: end; font-size: .85rem; color: rgba(201, 179, 156, .7); }
@media (max-width: 600px) {
  .lost__actions { width: 100%; flex-direction: column; }
  .lost__actions .btn { width: 100%; }
  .track li { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lost *, .lost__brand, .track::before { animation: none !important; }
}

/* ================= scroll reveals: content is visible without JS ================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img, .js .hero__content > *, .js .hero__title em, .nav__inner, .wave svg, .discord__mascot, .discord__art::before, .cd__n.tick, .joke__box,
  .hero__scroll, .js .hero__scroll, .btn--steam::after, .path__parcel svg, .path__n, .path__card, .path__goal .path__n::after { animation: none !important; }
  .js .path:not(.is-in) .path__n, .js .path:not(.is-in) .path__card { opacity: 1; }
  .js .path__fill { transform: none; }
  .js .path__parcel { left: 100%; }
  .js .launch__side .odo__wheel { transform: translateY(calc(var(--d) * -1.3em)); transition: none; }
  .shot__link img, .btn { transition: none; }
}

/* ================= responsive ================= */
/* the bar folds its links into a menu before they get crowded */
@media (max-width: 1100px) {
  .nav__menu { display: grid; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0;
    flex-direction: column; gap: 2px; padding: 8px; background: var(--paper); color: var(--ink);
    border-radius: var(--r-md); box-shadow: var(--shadow-2); border: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .25s var(--ease), visibility 0s; }
  .nav__links a { padding: 15px 16px; border-radius: var(--r-sm); font: 400 1.05rem/1 var(--font-display); opacity: 1; }
  .nav.is-open .nav__links a { animation: rise .4s var(--ease) both; }
  .nav.is-open .nav__links a:nth-child(2) { animation-delay: .04s; }
  .nav.is-open .nav__links a:nth-child(3) { animation-delay: .08s; }
  .nav.is-open .nav__links a:nth-child(4) { animation-delay: .12s; }
  .nav.is-open .nav__links a:nth-child(5) { animation-delay: .16s; }
  .nav__tools, .nav__links + .nav__tools { margin-left: auto; }
  .launch__grid { grid-template-columns: 1fr; gap: var(--s7); }
  .launch__side { width: min(640px, 100%); }
}
@media (max-width: 960px) {
  .feature, .feature--flip, .coop, .faq, .section__head--split, .launch__grid, .discord__card { grid-template-columns: 1fr; }
  .discord__mascot { width: min(240px, 70%); }
  .feature--flip .feature__media { order: 0; }
  .features { gap: var(--s9); }
  /* the path turns vertical: each step draws its own stretch of road down to the next */
  .path { margin-top: var(--s7); }
  .path__track { display: none; }
  .path__steps { grid-template-columns: 1fr; gap: 0; }
  .path__steps > li { grid-template-rows: auto; grid-template-columns: 52px minmax(0, 1fr); justify-items: stretch; align-items: start; column-gap: var(--s4); padding-bottom: var(--s4); text-align: left; }
  .path__steps > li:not(:last-child)::before, .path__steps > li:not(:last-child)::after {
    content: ""; position: absolute; left: 24px; top: 26px; width: 4px; height: 100%; border-radius: 4px;
  }
  .path__steps > li:not(:last-child)::before { background: repeating-linear-gradient(180deg, var(--sand) 0 10px, transparent 10px 16px); }
  .path__steps > li:not(:last-child)::after { background: linear-gradient(180deg, var(--ink), var(--brand)); transform-origin: 50% 0; }
  .js .path__steps > li:not(:last-child)::after { transform: scaleY(0); }
  .js .path.is-in .path__steps > li:not(:last-child)::after { transform: none; transition: transform var(--step) linear calc(.45s + var(--i) * var(--step)); }
  .path__card { padding: var(--s4); }
  .path__steps > li:hover .path__card { translate: 4px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div { padding-bottom: var(--s5); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .faq__intro { position: static; }
  .shot--lead { grid-column: 1 / -1; grid-row: auto; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .lightbox__img { max-width: calc(100vw - 32px); }
  .lightbox__close { right: 0; top: -60px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}
@media (max-width: 600px) {
  :root { --t-body: 1.0625rem; --section: 72px; }
  .brand__name { font-size: .95rem; }
  .nav { top: 8px; }
  .nav__inner { height: 60px; gap: var(--s2); padding: 0 6px 0 12px; border-radius: 18px; }
  .nav__icon { width: 40px; height: 40px; }
  .lang-pick__btn { padding: 0 10px; }
  .lang-pick__btn .lang-pick__chevron { display: none; }
  .hero { --sea-h: 64px; }
  .hero__content { padding-bottom: calc(var(--sea-h) + 76px); }
  .hero__logo { width: min(400px, 84vw); }
  .hero__text { font-size: 1.125rem; }
  .hero__actions { margin-top: var(--s6); }
  .section__head--split { gap: var(--s4); }
  .countdown__units { gap: 6px; }
  .cd { padding: var(--s4) 2px var(--s3); }
  .cd__l { font-size: .68rem; letter-spacing: .02em; }
  .prices { gap: var(--s3); }
  .price { padding: var(--s5) var(--s4) var(--s4); border-radius: var(--r-md); }
  .price__tag { left: var(--s4); }
  .price__value { font-size: 1.55rem; }
  .price__label { font-size: .9375rem; }
  .stats dt { font-size: 1.4rem; }
  .odo { gap: 4px; }
  .odo__digit:nth-last-child(4) { margin-right: 6px; }
  .launch__actions { justify-items: stretch; }
  .hero__content { padding-top: 104px; }
  .hero__actions { align-items: stretch; width: 100%; }
  .btn { width: 100%; }
  .btn--large { min-height: 58px; padding: 0 20px; }
  /* the gallery becomes a row you swipe, the next photo peeking in */
  .gallery {
    display: flex; gap: var(--s3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--s2); scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .shot, .shot--lead, .shot--wide { flex: 0 0 86%; scroll-snap-align: start; }
  .stats div { padding-right: var(--s3); }
  .stats div + div { padding-left: var(--s4); }
  .faq { gap: var(--s6); }
  .faq summary { padding: 18px 14px 18px 18px; font-size: 1.0625rem; }
  .faq summary i { width: 32px; height: 32px; }
  .faq__a p { padding: 0 18px 20px; }
  .faq__mail { width: 100%; }
  .path__card { padding: var(--s3) var(--s4) var(--s4); }
  .toast { top: 78px; font-size: .9375rem; }

  /* the three gameplay rows become cards you swipe, with dots underneath */
  .features {
    width: auto; display: flex; gap: var(--s3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: 0;  /* the track is the section's full width; the padding below lines the cards up with the text */ padding: 6px var(--gutter) var(--s4); scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .features::-webkit-scrollbar { display: none; }
  .feature, .feature--flip {
    flex: 0 0 86%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
  }
  .js .features .reveal { opacity: 1; transform: none; }
  .feature__media, .feature--flip .feature__media { order: 0; border-radius: 0; box-shadow: none; }
  .feature__body { padding: var(--s5) var(--s5) var(--s6); gap: var(--s3); align-content: start; }
  .feature .h2 { font-size: 1.55rem; }
  .feature .body { font-size: 1rem; line-height: 1.6; }
  .feature__label { margin-top: var(--s1); }
  .chips li { padding: 5px 12px 5px 5px; font-size: .9375rem; }
  .chip__key { width: 24px; height: 24px; font-size: .75rem; }
  .feature-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--s2); }
  .feature-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--sand); cursor: pointer; transition: width .35s var(--ease), background-color .35s; }
  .feature-dots button.is-on { width: 26px; background: var(--brand); }

  /* Discord: no mascot, one centred card */
  .discord { padding: calc(var(--section) + 36px) 0 calc(var(--section) + 44px); }
  .discord__art { display: none; }
  .discord__card { padding: var(--s7) var(--s5) var(--s6); border-radius: 24px; text-align: center; }
  .discord__body { justify-items: center; gap: var(--s3); }
  .discord__title { font-size: 2.5rem; }
  .discord__text { font-size: 1.0625rem; }
  .btn--discord { margin-top: var(--s3); }

  /* footer: one tidy column */
  .footer { padding: var(--s8) 0 var(--s6); }
  .footer__inner { grid-template-columns: 1fr; gap: var(--s6); }
  .footer__brand { order: 1; gap: var(--s3); }
  .footer__inner > nav.footer__col { order: 2; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
  .footer__inner > .footer__col:nth-child(4) { order: 3; }
  .footer__inner > .footer__col:nth-child(3) { order: 4; }
  .footer__legal { order: 5; flex-direction: column; gap: var(--s3); padding-top: var(--s5); }
  .joke { order: 6; justify-content: flex-start; text-align: left; padding-top: 0; }
}
@media (max-width: 420px) {
  .nav .brand__name { display: none; }
  .nav__inner { gap: var(--s2); }
  .nav__tools { gap: 6px; }
}
