/* Shelf & Sell landing page.
   One world: the sky and paved square outside, the wood wall inside, and the
   game's own sprites and typeface throughout. */

/* ------------------------------------------------------------------ tokens */
@font-face { font-family: Pally; font-weight: 400; font-display: swap; src: url(../fonts/Pally-Regular.woff2) format('woff2'); }
@font-face { font-family: Pally; font-weight: 500; font-display: swap; src: url(../fonts/Pally-Medium.woff2) format('woff2'); }
@font-face { font-family: Pally; font-weight: 700; font-display: swap; src: url(../fonts/Pally-Bold.woff2) format('woff2'); }

:root {
  /* Colours: the game's palette (lib/ui/theme.dart). */
  --ink: #5B2E12;
  --ink-soft: #7A4A26;
  --cream: #FFF3D6;
  --sand: #EBCF9F;
  --sand-line: #D3AF78;
  --wood-light: #CB8748;
  --wood: #A8632F;
  --wood-dark: #7A431E;
  --wood-deep: #552A10;
  --green: #1FB45A;
  --green-dark: #0D7438;
  --yellow: #FFC62B;
  --orange: #F2921B;
  --orange-dark: #B45A0C;
  --red: #E5483B;
  --blue: #2A7BEA;
  --blue-dark: #16469B;
  --sky: #7CCBF6;
  --sky-pale: #D9F1FC;
  --grass: #BFE39A;
  --board: #24483C;

  --font: Pally, ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --peek: 18px;
  --page: 1180px;
  --pop: cubic-bezier(.3, 1.6, .5, 1);
  --card-shadow: 0 6px 0 -1px rgba(60, 25, 6, .34);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  --wall:
    var(--grain),
    repeating-linear-gradient(90deg, rgba(40, 18, 4, .16) 0 2px, transparent 2px 148px),
    linear-gradient(180deg, #8A4E25, #6B3A19);
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.55 var(--font);
  color: var(--ink);
  background: var(--wood-deep);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; z-index: 100; left: 12px; top: -80px;
  padding: 10px 16px; border-radius: 12px; background: var(--cream); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* Outlined game lettering: white fill, ink rim, a hard drop underneath. */
.title {
  --rim: var(--ink);
  font-weight: 700; line-height: 1.08; letter-spacing: .012em; text-wrap: balance;
  color: #fff;
  text-shadow: .05em 0 var(--rim), -.05em 0 var(--rim), 0 .05em var(--rim), 0 -.05em var(--rim),
    .04em .04em var(--rim), -.04em .04em var(--rim), .04em -.04em var(--rim), -.04em -.04em var(--rim),
    0 .12em var(--rim);
}
@supports (paint-order: stroke fill) and (-webkit-text-stroke: 1px black) {
  .title { -webkit-text-stroke: .17em var(--rim); paint-order: stroke fill; text-shadow: 0 .085em 0 var(--rim); }
}
h2.title { font-size: clamp(2.05rem, 1.25rem + 4vw, 4.1rem); }

.head { max-width: 44rem; margin: 0 auto clamp(2.2rem, 5vw, 3.6rem); text-align: center; }
.head p { max-width: 36rem; margin: 1em auto 0; font-size: clamp(1.05rem, .96rem + .45vw, 1.28rem); line-height: 1.5; }
.head-ink p { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------- kit buttons */
/* Three-slice art from the game's UI kit: two caps that keep their shape and
   a middle that stretches under them with a pixel of overlap, so no seam shows. */
.kit-btn {
  --h: 60px; --cap: .5234; --rim: var(--green-dark);
  --art-l: url(../img/btn_green_l.webp); --art-m: url(../img/btn_green_m.webp); --art-r: url(../img/btn_green_r.webp);
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); min-width: calc(var(--h) * 2.5); padding: 0 calc(var(--h) * var(--cap)) calc(var(--h) * .07);
  border: 0; border-radius: 999px;
  background:
    var(--art-l) 0 0 / auto 100% no-repeat,
    var(--art-r) 100% 0 / auto 100% no-repeat,
    var(--art-m) 50% 0 / calc(100% - var(--h) * var(--cap) * 2 + 2px) 100% no-repeat;
  font-weight: 700; font-size: calc(var(--h) * .36); line-height: 1; letter-spacing: .015em; white-space: nowrap;
  color: #fff; text-decoration: none; text-shadow: 0 .09em 0 var(--rim);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: filter .15s, transform .09s;
}
@supports (paint-order: stroke fill) and (-webkit-text-stroke: 1px black) {
  .kit-btn { -webkit-text-stroke: .2em var(--rim); paint-order: stroke fill; }
}
.kit-btn:hover { filter: brightness(1.07) saturate(1.1); }
.kit-btn:active { transform: scale(.97, .93) translateY(2px); filter: brightness(.95); }
.kit-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 9px var(--ink); border-radius: 999px; }
.kit-btn-blue {
  --h: 48px; --cap: .5315; --rim: var(--blue-dark);
  --art-l: url(../img/btn_blue_l.webp); --art-m: url(../img/btn_blue_m.webp); --art-r: url(../img/btn_blue_r.webp);
}

.quiet-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.quiet-link:hover { color: var(--orange-dark); }

/* -------------------------------------------------------- the hanging sign */
.sign {
  position: fixed; z-index: 50; inset: 0 0 auto; display: flex; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 10px) 10px 0; pointer-events: none;
}
.sign-plank {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; gap: clamp(6px, 1.2vw, 16px);
  padding: 5px 7px 5px 10px; border-radius: 16px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood) 58%, #96552A);
  border: 3px solid var(--wood-deep);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(60, 25, 6, .32), 0 5px 0 -1px rgba(60, 25, 6, .4);
  transform-origin: 50% -60px; transform: rotate(var(--sway, 0deg));
}
.sign-plank::before, .sign-plank::after {
  content: ""; position: absolute; bottom: 100%; width: 5px; height: 80px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, #6B3A19 0 5px, #8C5A34 5px 9px);
}
.sign-plank::before { left: 26px; }
.sign-plank::after { right: 26px; }
.sign-logo { display: block; flex: none; border-radius: 10px; }
.sign-logo img { display: block; height: 46px; width: auto; }
.sign-links { display: flex; align-items: center; gap: 2px; }
.sign-links a {
  padding: .45em .72em; border-radius: 10px;
  color: var(--cream); font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.sign-links a:hover { background: rgba(60, 25, 6, .3); color: #fff; }
.sign-links a[aria-current] { color: var(--yellow); }
.sign-links a:focus-visible, .sign-logo:focus-visible, .sign-toggle:focus-visible { outline-color: #fff; }
.sign-get { --h: 44px; flex: none; }
.sign-toggle {
  display: none; flex: none; width: 46px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: rgba(60, 25, 6, .3); color: var(--cream); cursor: pointer; place-items: center;
}

@media (max-width: 899px) {
  .sign-plank { width: min(100%, 440px); }
  .sign-get { margin-left: auto; }
  .js .sign-toggle { display: grid; order: 3; }
  .sign-links {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    border-radius: 16px; background: linear-gradient(180deg, var(--wood-light), var(--wood));
    border: 3px solid var(--wood-deep); box-shadow: 0 5px 0 -1px rgba(60, 25, 6, .4);
  }
  .sign-links a { padding: .8em 1em; font-size: 1.08rem; }
  .sign-plank.is-open .sign-links { display: flex; }
}

/* ------------------------------------------------------------------- hero */
.act { position: relative; }
.hero {
  --scene-w: min(90vw, 42vh);
  --scene-w: min(90vw, 42svh);
  --scene-h: calc(var(--scene-w) * 1.1385);
  --scene-lift: clamp(84px, 15vh, 128px);
  --px: 0; --py: 0;
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px;
  overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky), var(--sky-pale) 72%);
}
.hero-sky { position: absolute; inset: 0; z-index: 0; translate: calc(var(--px) * -12px) calc(var(--py) * -6px); }
.hero-town {
  position: absolute; z-index: 0; left: -40px; right: -40px;
  bottom: calc(var(--scene-lift) + var(--scene-h) * .64); height: calc(var(--scene-h) * .4);
  background: url(../img/town.svg) 50% 100% / auto 100% repeat-x;
  translate: calc(var(--px) * -20px) 0;
}
.hero-ground {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  height: calc(var(--scene-lift) + var(--scene-h) * .64);
  background: var(--sand) url(../img/paving.svg) 0 26px / 216px 60px;
  border-top: 4px solid var(--sand-line);
}

.cloud { position: absolute; left: -220px; width: var(--w); height: auto; animation: drift var(--dur) linear infinite; animation-delay: calc(var(--dur) * var(--at) * -1); }
.cloud-a { --w: 150px; --dur: 120s; --at: .18; top: 9%; }
.cloud-b { --w: 90px; --dur: 76s; --at: .62; top: 21%; }
.cloud-c { --w: 124px; --dur: 98s; --at: .84; top: 4%; }
.cloud-front { --w: 132px; --dur: 86s; --at: .4; top: 31%; z-index: 0; }
@keyframes drift { to { transform: translateX(calc(100vw + 440px)); } }

.hero-copy {
  position: relative; z-index: 3; padding: calc(env(safe-area-inset-top) + 78px) 16px 0;
  text-align: center; pointer-events: none;
}
.hero-logo { display: block; margin: 0 auto; width: min(62vw, 28.5vh); width: min(62vw, 28.5svh); }
.hero-title { margin-top: .12em; font-size: clamp(1.6rem, min(7.4vw, 4.6vh), 4.6rem); font-size: clamp(1.6rem, min(7.4vw, 4.6svh), 4.6rem); }
.hero-line { display: inline-block; white-space: nowrap; }

/* A scene is the game's 390 x 444 street; props sit on their own feet. */
.scene { position: relative; aspect-ratio: 390 / 444; }
.prop {
  position: absolute; z-index: var(--z);
  left: calc((var(--x) - var(--w) / 2) / 390 * 100%);
  bottom: calc((444 - var(--y)) / 444 * 100%);
  width: calc(var(--w) / 390 * 100%); height: auto; max-width: none;
  transform-origin: 50% 100%;
}
.hero-scene {
  position: absolute; z-index: 2; left: 50%; bottom: var(--scene-lift);
  width: var(--scene-w); margin-left: calc(var(--scene-w) / -2);
  transform-origin: 50% 52%;
}

.say {
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 12px;
  padding: 14px 16px 14px 4px;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--wood); border-radius: 22px;
  box-shadow: inset 0 0 0 3px #FFFAEC, var(--card-shadow);
}
.say-face { display: block; width: 118px; margin: -34px 0 -14px; clip-path: inset(-80px -20px 0 0 round 0 0 0 17px); }
.say-name { font-weight: 700; color: var(--orange-dark); line-height: 1.2; }
.say-body p { font-size: .98rem; line-height: 1.38; }
.say-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: .65em; }
.hero-say {
  position: absolute; z-index: 6; left: 12px; right: 12px; margin-inline: auto;
  width: min(100% - 24px, 470px); bottom: calc(env(safe-area-inset-bottom) + var(--peek) + 10px);
}
.hero-say .kit-btn { --h: 52px; }
@media (max-width: 999px) {
  .hero-say { display: block; padding: 10px 16px 14px; }
  .hero-say .say-face { position: absolute; left: 12px; bottom: calc(100% - 3px); width: 92px; margin: 0; clip-path: none; }
  .hero-say .say-name { padding-left: 104px; margin-top: -2px; }
}
.hero-queue { display: none; }

@media (min-width: 1000px) {
  :root { --peek: 30px; }
  .hero {
    --scene-w: min(600px, 54vh);
    --scene-w: min(600px, 54svh);
    --scene-lift: 34px;
  }
  .hero-logo { width: min(380px, 30vh); width: min(380px, 30svh); }
  .hero-title { font-size: clamp(2rem, min(5.4vw, 6.4vh), 4.6rem); font-size: clamp(2rem, min(5.4vw, 6.4svh), 4.6rem); }
  .hero-say {
    left: auto; margin: 0; right: calc(50% + var(--scene-w) * .47);
    width: min(390px, 50vw - var(--scene-w) * .47 - 22px); bottom: calc(7vh + 24px);
  }
  .hero-queue {
    display: block; position: absolute; z-index: 4; bottom: calc(3vh + 30px);
    left: calc(50% + var(--scene-w) * .5); width: min(350px, 50vw - var(--scene-w) * .5 - 18px); aspect-ratio: 350 / 230;
  }
  .waiting { position: absolute; bottom: 14%; width: 37%; }
  .waiting:nth-child(1) { left: -2%; }
  .waiting:nth-child(2) { left: 30%; bottom: 20%; }
  .waiting:nth-child(3) { left: 62%; }
  .waiting .face { display: block; width: 100%; }
  .waiting .want {
    position: absolute; left: 50%; bottom: 96%; width: 46%; aspect-ratio: 1; margin-left: -23%;
    padding: 9%; object-fit: contain; background: #fff; border: 3px solid var(--ink); border-radius: 50%;
  }
  .hedge { position: absolute; bottom: 0; left: -6%; width: 46%; }
  .hedge-b { left: 35%; width: 30%; }
  .hedge-c { left: 60%; width: 46%; }
}

/* ------------------------------------------------- striped awning (edge) */
.awning {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--peek) * -1); height: calc(var(--peek) + 50px);
  pointer-events: none; filter: drop-shadow(0 7px 0 rgba(50, 20, 4, .4));
}
.awning::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(60, 20, 6, .22), transparent 34%),
    repeating-linear-gradient(90deg, var(--red) 0 52px, #FFF6E0 52px 104px);
  -webkit-mask:
    radial-gradient(26px 26px at 26px 0, #000 97%, transparent) 0 100% / 52px 26px repeat-x,
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - 25px) no-repeat;
  mask:
    radial-gradient(26px 26px at 26px 0, #000 97%, transparent) 0 100% / 52px 26px repeat-x,
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - 25px) no-repeat;
}

/* --------------------------------------------------------- inside: demo */
.inside {
  position: relative; z-index: 2; color: var(--cream); background: var(--wall);
  padding: clamp(6.5rem, 13vw, 9rem) 0 clamp(4.5rem, 9vw, 7rem);
  border-bottom: 22px solid #3F1E0A;
}
.demo { width: min(100%, 560px); margin-inline: auto; }
.orders { display: flex; justify-content: center; gap: clamp(10px, 3vw, 26px); margin-bottom: 20px; }
.order { position: relative; flex: 0 1 230px; padding-top: 64px; }
.order-face { position: absolute; top: 0; left: 50%; width: 96px; margin-left: -48px; transform-origin: 50% 100%; }
.order-card {
  position: relative; padding: 8px 10px 10px; color: var(--ink);
  background: var(--cream); border: 3px solid var(--wood); border-radius: 18px;
  box-shadow: inset 0 0 0 3px #FFFAEC, 0 6px 0 -1px rgba(30, 12, 2, .45);
}
.order-name {
  position: relative; width: fit-content; margin: -22px auto 6px; padding: 1px 18px 3px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood)); border: 3px solid var(--wood-dark); border-radius: 12px;
  color: #fff; font-weight: 700; font-size: .96rem; text-shadow: 0 2px 0 var(--wood-dark);
}
.order-needs { display: flex; justify-content: center; gap: clamp(10px, 4vw, 22px); }
.order-needs li { display: grid; justify-items: center; gap: 1px; }
.order-needs img { display: block; height: 46px; width: auto; }
.count { font-weight: 700; font-size: .98rem; font-variant-numeric: tabular-nums; }
.order-needs li.is-done .count { color: var(--green-dark); }
.order.is-served .order-card::after {
  content: ""; position: absolute; right: -12px; top: -14px; width: 44px; height: 44px;
  background: url(../img/icon_check.webp) center / contain no-repeat; animation: stamp .45s var(--pop);
}
.order.is-served .order-face { animation: hop .55s var(--pop); }
@keyframes stamp { from { transform: scale(0) rotate(-40deg); } }
@keyframes hop { 40% { transform: translateY(-16%) scale(1.04, .98); } }

.cabinet {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 14px 12px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood));
  border: 3px solid var(--wood-deep); border-radius: 20px 20px 12px 12px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .28), 0 10px 0 -2px #45210B, 0 22px 14px -12px rgba(20, 8, 1, .6);
}
.shelf {
  display: grid; grid-template-columns: repeat(3, 1fr); aspect-ratio: 3 / 1.55; padding: 0 5px;
  background: linear-gradient(180deg, #E9CFA0, #F6E4BC);
  border-radius: 8px; border-bottom: 9px solid #8F5226;
  box-shadow: inset 0 9px 9px -6px rgba(91, 46, 18, .45);
}
.slot { position: relative; display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.spot {
  position: absolute; inset: 16% 7% 4%; padding: 0; border: 0; border-radius: 12px;
  background: rgba(91, 46, 18, .11); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.item {
  position: relative; z-index: 1; display: block; width: 100%; height: 84%; padding: 0 5%;
  background: none; border: 0; cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.item img {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  pointer-events: none; transform-origin: 50% 100%; transition: transform .18s var(--pop);
  filter: drop-shadow(0 3px 0 rgba(91, 46, 18, .22));
}
.item[aria-pressed="true"] img { transform: translateY(-13%) scale(1.1) rotate(-4deg); }
.item.is-dragging { z-index: 6; cursor: grabbing; }
.item.is-dragging img { transition: none; }
.is-holding .spot:not([hidden]) { background: rgba(31, 180, 90, .2); outline: 3px dashed var(--green-dark); outline-offset: -3px; animation: nudge 1s ease-in-out infinite; }
.item.is-hint img { animation: wiggle .9s ease-in-out infinite; }
.spot.is-hint { outline: 3px dashed var(--orange-dark); outline-offset: -3px; animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(.93); } }
@keyframes wiggle { 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }

.cabinet-wrap { position: relative; }
.demo-win { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; }
.demo-win[hidden] { display: none; }
.demo-stars { display: flex; gap: 4px; }
.demo-stars img { display: block; width: clamp(46px, 12vw, 66px); animation: stamp .5s var(--pop) backwards; }
.demo-stars img:nth-child(2) { translate: 0 -12px; animation-delay: .12s; }
.demo-stars img:nth-child(3) { animation-delay: .24s; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.demo-status { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.is-won .demo-status { color: var(--yellow); }
.demo-note { margin-top: 1em; font-size: .95rem; }
.burst { position: fixed; z-index: 90; left: 0; top: 0; width: 30px; height: auto; pointer-events: none; }

/* Three vignettes standing on one long shelf. */
.subhead { margin: clamp(4rem, 9vw, 6.5rem) auto clamp(1.8rem, 4vw, 2.8rem); max-width: 20ch; text-align: center; font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.7rem); }
.beats { display: grid; gap: 2.4rem 0; }
.beat { text-align: center; }
.beat-art {
  position: relative; height: 150px; display: flex; align-items: flex-end; justify-content: center; gap: 6px;
  border-bottom: 14px solid var(--wood-light); box-shadow: 0 9px 0 -3px rgba(30, 12, 2, .42);
}
.beat-art img { display: block; width: auto; transform-origin: 50% 100%; }
.beat h4 { margin: 1.2em 1rem .3em; font-size: 1.5rem; line-height: 1.1; color: var(--yellow); }
.beat p { margin-inline: auto; padding-inline: 1rem; max-width: 30ch; }
@media (min-width: 760px) { .beats { grid-template-columns: repeat(3, 1fr); } }

.beat-sort img { height: 74px; }
.beat-sort .gap { width: 84px; height: 66px; margin-bottom: 4px; border-radius: 12px; background: rgba(255, 243, 214, .1); outline: 3px dashed rgba(255, 243, 214, .5); outline-offset: -3px; }
.beat-sort .mover { position: absolute; left: 50%; bottom: 0; margin-left: -42px; animation: sort-in 3.4s var(--pop) infinite; }
@keyframes sort-in {
  0% { transform: translate(84px, -74px) rotate(26deg); }
  26% { transform: translate(0, -6px) rotate(0); }
  32% { transform: scale(1.1, .88); }
  40%, 84% { transform: none; }
  92%, 100% { transform: scale(0); }
}
.beat-match img:not(.spark) { height: 88px; animation: match-pop 3.4s ease-in-out infinite; }
.beat-match img:nth-child(1) { --pull: 22px; }
.beat-match img:nth-child(3) { --pull: -22px; }
@keyframes match-pop {
  0%, 44% { transform: none; }
  54% { transform: translateX(var(--pull, 0px)) scale(1.14); }
  61%, 88% { transform: translateX(var(--pull, 0px)) scale(0); }
  100% { transform: none; }
}
.spark { position: absolute; left: 50%; bottom: 44px; height: 34px; margin-left: -17px; transform: scale(0); animation: spark 3.4s ease-out infinite; }
.spark-a { --dx: -74px; --dy: -42px; }
.spark-b { --dx: 4px; --dy: -70px; }
.spark-c { --dx: 78px; --dy: -34px; }
@keyframes spark {
  0%, 58% { transform: scale(0); }
  68% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(50deg); }
  82%, 100% { transform: translate(calc(var(--dx) * 1.35), calc(var(--dy) * 1.35)) scale(0) rotate(120deg); }
}
.beat-serve .server { height: 112px; }
.beat-serve .served { height: 60px; margin-left: 4px; }
.stamp { position: absolute; left: calc(50% + 70px); bottom: 50px; height: 34px; animation: stamp-loop 3.4s var(--pop) infinite; }
@keyframes stamp-loop { 0%, 30% { transform: scale(0) rotate(-40deg); } 42%, 90% { transform: none; } 100% { transform: scale(0); } }
.tip { position: absolute; left: calc(50% + 30px); bottom: 70px; height: 26px; transform: scale(0); animation: tip 3.4s ease-out infinite; }
.tip-b { left: calc(50% + 56px); animation-delay: .18s; }
@keyframes tip {
  0%, 44% { transform: scale(0); }
  54% { transform: translateY(-18px) scale(1); }
  74% { transform: translateY(-46px) scale(1); }
  84%, 100% { transform: translateY(-52px) scale(0); }
}

/* ------------------------------------------------------------- the street */
.street {
  position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(180deg, var(--sky), var(--sky-pale) 58%);
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.rebuild { position: relative; width: min(100%, 580px); margin-inline: auto; }
.rebuild-stage { position: relative; }
.rebuild-town { left: -100vw; right: -100vw; bottom: 64%; height: 40%; translate: none; }
.rebuild-ground {
  position: absolute; z-index: 0; left: -100vw; right: -100vw; top: 36%; bottom: -3000px;
  background: var(--sand) url(../img/paving.svg) 50% 26px / 216px 60px; border-top: 4px solid var(--sand-line);
}
.rebuild-scene { z-index: 1; }
.rebuild-scene .prop { transition: filter .45s, opacity .45s; }
.rebuild-scene .prop.is-worn { filter: sepia(.95) saturate(.42) brightness(1.1) contrast(.86); opacity: .36; }
.rebuild-scene .prop-shop.is-worn { opacity: 1; }
.rebuild-scene .prop.is-fresh { animation: restore .62s var(--pop); }
@keyframes restore { from { transform: scale(.8); } }

.rebuild-control { position: relative; z-index: 2; margin-top: 22px; }
.rebuild-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; }
.rebuild-label output { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rebuild-range { --fill: 100%; display: block; width: 100%; height: 56px; margin: 0; background: none; cursor: grab; -webkit-appearance: none; appearance: none; }
.rebuild-range::-webkit-slider-runnable-track {
  height: 18px; border-radius: 12px; border: 3px solid var(--ink);
  background: linear-gradient(90deg, var(--green) var(--fill), #C9A46E var(--fill));
}
.rebuild-range::-moz-range-track {
  height: 12px; border-radius: 12px; border: 3px solid var(--ink);
  background: linear-gradient(90deg, var(--green) var(--fill), #C9A46E var(--fill));
}
.rebuild-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 54px; height: 54px; margin-top: -22px; border: 0;
  background: url(../img/icon_hammer.webp) center / contain no-repeat;
}
.rebuild-range::-moz-range-thumb { width: 54px; height: 54px; border: 0; border-radius: 0; background: url(../img/icon_hammer.webp) center / contain no-repeat; }
.rebuild-range:focus-visible { outline-offset: 4px; }

.stages { position: relative; z-index: 2; display: grid; gap: 10px; margin-top: 14px; }
.stage {
  display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 10px;
  background: var(--cream); border: 3px solid var(--wood); border-radius: 18px;
  box-shadow: inset 0 0 0 3px #FFFAEC, var(--card-shadow);
}
.stage img { flex: none; width: 56px; transition: filter .3s; }
.stage h3 { font-size: 1.12rem; line-height: 1.2; }
.stage p { font-size: .92rem; line-height: 1.3; }
.js .stage:not(.is-open) img { filter: grayscale(1) brightness(1.15) opacity(.55); }
.stage.is-open img { animation: hop .5s var(--pop); }
@media (min-width: 900px) {
  .stages { grid-template-columns: repeat(3, 1fr); width: min(92vw, 940px); margin-left: 50%; translate: -50% 0; }
}

/* --------------------------------------------------------------- the map */
.map {
  position: relative; overflow-x: clip; color: var(--ink); padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(6rem, 12vw, 9rem);
  background:
    radial-gradient(ellipse 130px 36px at 9% 12%, rgba(158, 205, 122, .6) 98%, transparent),
    radial-gradient(ellipse 170px 44px at 86% 30%, rgba(158, 205, 122, .6) 98%, transparent),
    radial-gradient(ellipse 150px 40px at 22% 58%, rgba(158, 205, 122, .6) 98%, transparent),
    radial-gradient(ellipse 190px 46px at 74% 82%, rgba(158, 205, 122, .6) 98%, transparent),
    var(--grass);
}
.map-edge {
  position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 30px;
  background: radial-gradient(56px 30px at 56px 100%, var(--grass) 98%, transparent) 0 100% / 112px 30px repeat-x;
}
.route { position: relative; }
.road { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.road-bed { fill: none; stroke: #EFD9AC; stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
.road-marks { fill: none; stroke: #E0C48E; stroke-width: 15; stroke-linecap: round; stroke-dasharray: 26 36; }
.route-cart { position: absolute; z-index: 3; left: 0; top: 0; width: 60px; margin: -52px 0 0 -30px; pointer-events: none; will-change: transform; visibility: hidden; }
.route.is-ready .route-cart { visibility: visible; }
.stops { position: relative; z-index: 1; display: grid; gap: 18px; }
.stop { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; }
.stop-node {
  justify-self: center; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%;
  font-weight: 700; font-size: 2rem; line-height: 1; color: #fff; text-shadow: 0 3px 0 var(--green-dark);
  background: radial-gradient(circle at 34% 26%, #6BE59A, var(--green) 52%, var(--green-dark));
  border: 4px solid #fff; box-shadow: 0 6px 0 -1px rgba(70, 105, 45, .5);
  transition: filter .3s;
}
.stop:nth-child(odd) .stop-node { translate: -9px 0; }
.stop:nth-child(even) .stop-node { translate: 10px 0; }
.stop.is-ahead .stop-node { filter: grayscale(1) brightness(1.08); }
.stop.is-reached .stop-node { animation: hop .5s var(--pop); }
.stop-card {
  padding: 12px 16px 12px; background: var(--cream); border: 3px solid var(--wood); border-radius: 18px;
  box-shadow: inset 0 0 0 3px #FFFAEC, var(--card-shadow);
}
.stop-card h3 { font-size: 1.28rem; line-height: 1.15; }
.stop-meta { margin: .15em 0 .4em; font-weight: 700; font-size: .86rem; line-height: 1.3; color: var(--orange-dark); }
.stop-card p { font-size: .95rem; line-height: 1.4; }
.stop-goods { display: flex; align-items: flex-end; gap: 8px; margin-top: .6em; }
.stop-goods img { height: 40px; width: auto; }
@media (min-width: 1000px) {
  .stops { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .stop { grid-template-columns: none; grid-template-rows: 1fr auto 1fr; row-gap: 26px; justify-items: stretch; }
  .stop-node { grid-row: 2; }
  .stop:nth-child(odd) .stop-node { translate: 0 -16px; }
  .stop:nth-child(even) .stop-node { translate: 0 16px; }
  .stop:nth-child(odd) .stop-card { grid-row: 3; align-self: start; }
  .stop:nth-child(even) .stop-card { grid-row: 1; align-self: end; }
  .stop-card { padding: 12px 13px; }
}

/* ----------------------------------------------------- indoors: the wall */
.indoors { position: relative; z-index: 2; color: var(--cream); background: var(--wall); border-bottom: 22px solid #3F1E0A; }
.indoors > section { padding: clamp(4rem, 9vw, 6.5rem) 0 0; }
.indoors > .regulars { padding-top: clamp(6.5rem, 13vw, 9rem); }
.indoors > .faq { padding-bottom: clamp(4.5rem, 9vw, 7rem); }

.queue { display: grid; grid-template-columns: repeat(2, 1fr); }
.regular { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; justify-items: center; align-items: end; }
.regular:nth-child(n + 3) .regular-list { margin-top: 2.2rem; }
.regular-list {
  position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 7px;
  margin-bottom: 12px; padding: 9px 13px; background: #fff; border: 3px solid var(--ink); border-radius: 24px;
}
.regular-list::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 14px; height: 14px; margin: -8px 0 0 -7px;
  background: #fff; border: solid var(--ink); border-width: 0 3px 3px 0; rotate: 45deg;
}
.regular-list img { display: block; height: 38px; width: auto; transform-origin: 50% 100%; }
.regular-face { display: block; width: min(76%, 190px); transform-origin: 50% 100%; }
.regular-plate {
  position: relative; z-index: 1; align-self: stretch; width: 100%; min-height: 128px; padding: 16px 12px 20px; text-align: center;
  background: linear-gradient(180deg, #E0A262 0 12px, #7A431E 12px 17px, #A8632F 17px, #96552A);
  box-shadow: 0 8px 0 -2px rgba(30, 12, 2, .45);
}
.regular-plate h3 {
  display: inline-block; margin-top: 12px; padding: 1px 16px 2px; font-size: 1.12rem; line-height: 1.3; color: var(--ink);
  background: linear-gradient(180deg, #FFD95A, var(--yellow)); border: 2px solid var(--orange-dark); border-radius: 8px;
}
.regular-plate p { margin-top: .5em; font-size: .95rem; line-height: 1.35; }
.queue.is-in .regular-face, .regular:hover .regular-face { animation: hop .6s var(--pop); }
.queue.is-in .regular:nth-child(2) .regular-face { animation-delay: .12s; }
.queue.is-in .regular:nth-child(3) .regular-face { animation-delay: .24s; }
.queue.is-in .regular:nth-child(4) .regular-face { animation-delay: .36s; }
.regular:hover .regular-list img { animation: wiggle .5s ease-in-out; }
.regular:hover .regular-list img:nth-child(2) { animation-delay: .08s; }
.regular:hover .regular-list img:nth-child(3) { animation-delay: .16s; }
@media (min-width: 860px) {
  .queue { grid-template-columns: repeat(4, 1fr); }
  .regular:nth-child(n + 3) .regular-list { margin-top: 0; }
}

.tools {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; padding: clamp(22px, 4vw, 40px) clamp(12px, 3vw, 32px);
  color: var(--ink);
  background: radial-gradient(circle, rgba(91, 46, 18, .2) 2.2px, transparent 2.7px) 15px 15px / 30px 30px, #DCAE70;
  border: 10px solid; border-color: #B8733A #8F5226 #7A431E #A8632F; border-radius: 16px;
  box-shadow: 0 10px 0 -3px rgba(30, 12, 2, .45);
}
.tool { display: grid; grid-template-rows: auto auto 1fr auto; text-align: center; }
.tool-btn {
  position: relative; display: block; width: min(100%, 132px); aspect-ratio: 1; margin: 0 auto 8px; padding: 14px 6px 0;
  background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tool-btn::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 8px; height: 18px; margin-left: -4px; border-radius: 4px;
  background: linear-gradient(90deg, #8C8F99, #E3E5EA 45%, #6E717B);
}
.tool-btn img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 8%; transition: rotate .25s var(--pop); }
.tool-btn:hover img { rotate: -7deg; }
.tool-btn:active img { rotate: 5deg; }
.tool h3 { font-size: 1.3rem; line-height: 1.2; }
.tool p { margin: .2em auto 0; max-width: 22ch; font-size: .96rem; line-height: 1.35; }
.tool .tool-meta { margin-top: .5em; font-weight: 700; font-size: .86rem; }
.floater { position: absolute; left: 50%; top: 20%; font-weight: 700; font-size: 1.5rem; color: var(--green-dark); pointer-events: none; white-space: nowrap; }
@media (min-width: 760px) { .tools { grid-template-columns: repeat(4, 1fr); } }

.basket-grid { display: grid; gap: 2.5rem; }
.basket-grid .head { margin-bottom: 0; }
.receipt { width: min(100%, 350px); margin-inline: auto; rotate: -1.6deg; filter: drop-shadow(7px 10px 0 rgba(25, 10, 2, .38)); }
.receipt-paper {
  padding: 28px 24px 40px; color: #3B2A1E; background: #FFFEF8;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 18px 51% repeat-x;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 18px 51% repeat-x;
}
.receipt-head img { display: block; width: 150px; margin: 0 auto 14px; }
.receipt-lines { display: grid; gap: 5px; font-variant-numeric: tabular-nums; }
.receipt-lines div { display: flex; align-items: baseline; gap: 8px; }
.receipt-lines dt { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.receipt-lines dt::after { content: ""; flex: 1; border-bottom: 2px dotted #BCA78C; translate: 0 -4px; }
.receipt-lines dd { font-weight: 700; }
.receipt-total {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 10px 0;
  border-block: 3px dashed #3B2A1E; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.receipt-thanks { margin-top: 12px; text-align: center; font-weight: 500; }
.receipt-code {
  height: 44px; margin: 14px 22px 0;
  background: repeating-linear-gradient(90deg, #3B2A1E 0 2px, transparent 2px 5px, #3B2A1E 5px 9px, transparent 9px 11px, #3B2A1E 11px 12px, transparent 12px 16px);
}
.tags { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 44px 20px; padding-top: 30px; }
.tag {
  position: relative; flex: 0 1 220px; padding: 36px 16px 18px; color: var(--ink); text-align: center;
  background: linear-gradient(180deg, #FFD44F, var(--yellow)); border-radius: 26px 26px 12px 12px;
  box-shadow: 4px 6px 0 -1px rgba(25, 10, 2, .4);
  transform-origin: 50% -26px; rotate: var(--tilt, -2.5deg);
}
.tag:nth-child(even) { --tilt: 2.2deg; }
.tag:nth-child(3n) { --tilt: -1deg; }
.tag::before {
  content: ""; position: absolute; left: 50%; top: 11px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: #6B3A19; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .4);
}
.tag::after { content: ""; position: absolute; left: 50%; bottom: calc(100% - 18px); width: 3px; height: 46px; margin-left: -1.5px; background: var(--cream); border-radius: 2px; }
.tag h3 { font-size: 1.22rem; line-height: 1.2; }
.tag p { margin-top: .3em; font-size: .95rem; line-height: 1.35; }
.tags.is-in .tag { animation: swing 1.1s ease-in-out; }
.tags.is-in .tag:nth-child(2) { animation-delay: .1s; }
.tags.is-in .tag:nth-child(3) { animation-delay: .2s; }
.tags.is-in .tag:nth-child(4) { animation-delay: .3s; }
.tags.is-in .tag:nth-child(5) { animation-delay: .4s; }
.tags .tag:hover { animation: swing-again 1s ease-in-out; }
@keyframes swing { 0% { rotate: calc(var(--tilt, -2.5deg) + 14deg); } 30% { rotate: calc(var(--tilt, -2.5deg) - 8deg); } 58% { rotate: calc(var(--tilt, -2.5deg) + 4deg); } 82% { rotate: calc(var(--tilt, -2.5deg) - 2deg); } }
@keyframes swing-again { 20% { rotate: calc(var(--tilt, -2.5deg) + 6deg); } 50% { rotate: calc(var(--tilt, -2.5deg) - 4deg); } 78% { rotate: calc(var(--tilt, -2.5deg) + 2deg); } }
@media (min-width: 940px) {
  .basket-grid { grid-template-columns: 370px minmax(0, 1fr); column-gap: 3rem; align-items: center; }
  .basket-grid .head { grid-column: 1 / -1; }
}

.reel-frame { position: relative; }
.reel {
  display: flex; gap: clamp(14px, 2.6vw, 30px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 14px max(var(--gutter), (100vw - var(--page)) / 2) 30px; margin-top: calc(clamp(2.2rem, 5vw, 3.6rem) * -.4);
}
.reel::-webkit-scrollbar { display: none; }
.reel.is-grabbed { scroll-snap-type: none; cursor: grabbing; }
.phone { flex: 0 0 clamp(188px, 52vw, 246px); scroll-snap-align: center; }
.phone figure { rotate: -1.6deg; }
.phone:nth-child(even) figure { rotate: 1.4deg; translate: 0 12px; }
.phone img {
  display: block; width: 100%; border-radius: 26px; border: 7px solid #2B1608; background: #2B1608;
  box-shadow: 8px 10px 0 -3px rgba(20, 8, 1, .45); -webkit-user-drag: none; user-select: none;
}
.phone figcaption { margin-top: .8em; text-align: center; font-weight: 700; }
.reel-nav { display: flex; justify-content: center; gap: 12px; }
.round-btn {
  display: grid; place-items: center; width: 54px; height: 52px; padding: 0; cursor: pointer; color: var(--ink);
  background: linear-gradient(180deg, #FFDF6B, var(--yellow) 58%, var(--orange)); border: 3px solid var(--orange-dark); border-radius: 17px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 4px 0 -1px rgba(20, 8, 1, .45);
  transition: filter .15s, transform .09s;
}
.round-btn:hover { filter: brightness(1.07); }
.round-btn:active { transform: translateY(2px) scale(.96); }
.round-btn:disabled { filter: grayscale(.9) brightness(.85); cursor: default; }
.round-btn:focus-visible { outline-color: #fff; }

.board {
  max-width: 840px; margin-inline: auto; padding: clamp(22px, 4.5vw, 46px); color: #F4EFE2;
  background:
    radial-gradient(ellipse 60% 30% at 24% 16%, rgba(255, 255, 255, .06), transparent),
    radial-gradient(ellipse 50% 26% at 78% 74%, rgba(255, 255, 255, .05), transparent),
    var(--grain), var(--board);
  border: 12px solid; border-color: #C07A3E #8F5226 #7A431E #A8632F; border-radius: 12px;
  box-shadow: 0 10px 0 -3px rgba(20, 8, 1, .5);
}
.board-title {
  display: inline-block; margin-bottom: .5em; rotate: -1.4deg; font-size: clamp(1.9rem, 1.3rem + 3vw, 3.1rem); line-height: 1.15;
  text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 9px;
}
.board details { border-bottom: 2px dashed rgba(244, 239, 226, .28); }
.board summary {
  position: relative; padding: 1em 2.6em 1em 0; list-style: none; cursor: pointer;
  font-weight: 700; font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); line-height: 1.3;
}
.board summary::-webkit-details-marker { display: none; }
.board summary::after {
  content: ""; position: absolute; right: .4em; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: linear-gradient(currentColor, currentColor) center / 100% 4px no-repeat, linear-gradient(currentColor, currentColor) center / 4px 100% no-repeat;
  transition: rotate .25s var(--pop);
}
.board details[open] summary::after { rotate: 45deg; }
.board summary:hover { color: var(--yellow); }
.board summary:focus-visible { outline-color: var(--yellow); }
.board details p { max-width: 62ch; padding-bottom: 1.2em; color: #EAE3D0; }
.board a { color: var(--yellow); font-weight: 700; text-underline-offset: 3px; }
@supports (interpolate-size: allow-keywords) {
  .board { interpolate-size: allow-keywords; }
  .board details::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  .board details[open]::details-content { block-size: auto; }
}

/* -------------------------------------------------------------- download */
.download {
  position: relative; overflow: hidden; text-align: center; color: var(--ink);
  background: linear-gradient(180deg, var(--sky), var(--sky-pale) 80%);
  padding: clamp(5rem, 11vw, 8rem) 0 0;
}
.download-sky { position: absolute; inset: 0; }
.download::after {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: clamp(110px, 17vw, 190px);
  background: url(../img/town.svg) 50% 100% / auto 100% repeat-x;
}
.download-body { position: relative; z-index: 1; }
.download-logo { display: block; width: min(66vw, 340px); margin: 0 auto 1.2rem; }
.download-lead { max-width: 30rem; margin: 1em auto 0; font-size: clamp(1.05rem, .96rem + .45vw, 1.28rem); font-weight: 500; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin: 1.8rem 0 1.4rem; }
.store {
  --h: 74px; --cap: .5344; display: grid; align-content: center; min-width: 262px; height: var(--h); scroll-margin-top: 40vh;
  padding: 0 calc(var(--h) * .24);
  background:
    url(../img/btn_beige_l.webp) 0 0 / auto 100% no-repeat,
    url(../img/btn_beige_r.webp) 100% 0 / auto 100% no-repeat,
    url(../img/btn_beige_m.webp) 50% 0 / calc(100% - var(--h) * var(--cap) * 2 + 2px) 100% no-repeat;
}
.store-name { font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.store-state { font-size: .86rem; font-weight: 500; line-height: 1.2; }
.store.is-live { display: block; min-width: 0; height: auto; padding: 0; background: none; }
.store.is-live .kit-btn { --h: 68px; }
.download-crowd { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; margin-top: clamp(1.5rem, 4vw, 3rem); }
.download-crowd img { display: block; width: clamp(80px, 21vw, 176px); margin: 0 clamp(-10px, -1vw, -4px); transform-origin: 50% 100%; }
.download-crowd.is-in img { animation: hop .6s var(--pop); }
.download-crowd.is-in img:nth-child(2) { animation-delay: .1s; }
.download-crowd.is-in img:nth-child(3) { animation-delay: .2s; }
.download-crowd.is-in img:nth-child(4) { animation-delay: .3s; }

/* ---------------------------------------------------------------- footer */
.foot {
  position: relative; z-index: 2; overflow: hidden; color: var(--cream);
  background: var(--grain), repeating-linear-gradient(90deg, rgba(20, 8, 1, .2) 0 2px, transparent 2px 148px), linear-gradient(180deg, #5A2C11, #3F1E0A);
  border-top: 18px solid #D29455; box-shadow: inset 0 6px 0 #7A431E;
  padding: 2.6rem 0 0;
}
.foot-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.7rem; }
.foot-links a { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.foot-links a:hover { color: var(--yellow); }
.foot a:focus-visible { outline-color: var(--yellow); }
.foot-note { font-size: .92rem; color: #E7D3B4; }
.foot-mark {
  position: relative; z-index: 1; margin: 2.2rem 0 -.07em; text-align: center; white-space: nowrap;
  font-weight: 700; font-size: clamp(3rem, 14vw, 14.5rem); line-height: .86; letter-spacing: -.01em;
  color: #6E3817; text-shadow: 0 -3px 0 rgba(15, 6, 1, .5), 0 3px 0 rgba(255, 214, 160, .13);
  user-select: none;
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cloud { left: calc(var(--at) * 100%); }
  .spark, .tip { display: none; }
}
