/* Dead River product page.

   The game's own look inside the label's frame: night-black ground, the
   colours read straight off the game's art, and the label's product bar and
   footer around it. Loaded after /style.css, which supplies the label fonts
   (--sc-mono, --sc-sans) and the footer.

   Pixel art rule for this file: art is only ever scaled by a whole number of
   DEVICE pixels, with nearest-neighbour sampling. Every .px image declares
   its native size in its width/height attributes, and its CSS width is a
   multiple of (native width x --px), where --px is one device pixel. CSS
   round() does the snapping; /js/dpr.js supplies the device pixel ratio.
   Without either, the fallbacks are whole CSS pixels, which is still exact
   on 1x, 2x and 3x screens.
*/

@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/PressStart2P-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --night:    #000000;
  --sky:      #0000bc;
  --lake:     #0000fc;
  --white:    #fcfcfc;
  --grey:     #bcbcbc;
  --grey-dk:  #7c7c7c;
  --blood:    #f83800;
  --blood-dk: #a81000;
  --amber:    #fca044;
  --sand:     #f8d878;
  --moon:     #a4e4fc;
  --hud:      #58d854;
  --line:     #242424;   /* hairlines only; not from the game */

  --pixel: "Press Start 2P", var(--sc-mono);   /* headings only */
  --mono:  var(--sc-mono);
  --sans:  var(--sc-sans);

  --wrap:   70rem;
  --gutter: 2rem;

  --dpr: 1;                           /* /js/dpr.js sets the real one */
  --px:  calc(1px / var(--dpr));      /* one device pixel */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--night);
  color: var(--grey);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }

a { color: var(--moon); }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
::selection { background: var(--blood-dk); color: var(--white); }

/* Pixel art. max-width: none because a fluid max-width would squeeze the
   image to a size that isn't a whole multiple. */
.px {
  display: block;
  max-width: none;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* ───────────── Product bar (same skeleton as the other product pages) ───────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  background: var(--night);
  border-bottom: 2px solid var(--blood-dk);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.label-back {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--grey-dk);
  text-decoration: none;
  white-space: nowrap;
  padding-right: 0.95rem;
  margin-right: 0.35rem;
  border-right: 1px solid var(--line);
}
.label-back:hover { color: var(--white); }
.brand-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--white);
  white-space: nowrap;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
}
.topbar nav { display: flex; gap: 1.5rem; margin-left: auto; }
/* Discord's mark, always in the bar: after the links on a wide screen, beside the menu button on a narrow one. */
.topbar-discord { order: 3; flex: 0 0 auto; display: flex; padding: 0.4rem; margin: -0.4rem -0.4rem -0.4rem 0.3rem; color: var(--grey); }
.topbar-discord:hover { color: var(--white); }
.topbar-discord .dc { width: 1.45rem; height: 1.45rem; margin: 0; }
.topbar nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.topbar nav a:hover { color: var(--white); border-bottom-color: var(--blood); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--grey-dk);
  color: var(--white);
  width: 44px;
  height: 40px;
  cursor: pointer;
  touch-action: manipulation;
}
.nav-toggle svg { width: 20px; height: 20px; display: block; margin: 0 auto; }
.nav-toggle[aria-expanded="true"] { border-color: var(--blood); color: var(--blood); }

/* Six links don't fit beside the brand much below this, so the menu folds
   earlier than it does on the other product pages. The fold needs the script
   to open it again, so it is gated on .js (set in the head, same as the
   label's home page): with scripts off the links just wrap under the brand. */
@media (max-width: 1080px) {
  .topbar { flex-wrap: wrap; }
  .topbar nav { flex-wrap: wrap; gap: 0.4rem 1.2rem; }
  .js .topbar { flex-wrap: nowrap; }
  .js .nav-toggle { display: block; margin-left: 0.5rem; flex: 0 0 auto; }
  .js .topbar-discord { order: 0; margin: -0.4rem 0 -0.4rem auto; }
  .js .topbar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--night);
    border-bottom: 2px solid var(--blood-dk);
    padding: 0.3rem 0 0.5rem;
    z-index: 70;
  }
  .js .topbar nav.open { display: flex; }
  .js .topbar nav a {
    padding: 0.85rem var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .js .topbar nav a:last-child { border-bottom: 0; }
}

/* ───────────── Buttons ───────────── */
/* The border is four hard shadows, one per side, which leaves the corners
   open the way the game's text boxes are drawn. */
.cta {
  --edge: var(--grey-dk);
  display: inline-block;
  margin: 3px;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 -3px 0 var(--edge), 0 3px 0 var(--edge), -3px 0 0 var(--edge), 3px 0 0 var(--edge);
}
.cta:hover { --edge: var(--white); color: var(--white); }
.cta.primary { --edge: var(--blood); background: var(--blood-dk); }
.cta.primary:hover { --edge: var(--white); }

/* The Steam call to action. As a <span> it's a status plate, not a button:
   there is nothing to click yet. Once the worker turns it into a link
   (STEAM_APP_ID in /_worker.js) it becomes the red primary button, and the
   email button beside it steps back to an outline. */
span.steam-cta { --edge: var(--amber); color: var(--amber); cursor: default; }
span.steam-cta:hover { --edge: var(--amber); color: var(--amber); }
a.steam-cta { --edge: var(--blood); background: var(--blood-dk); }
a.steam-cta:hover { --edge: var(--white); }
.email-cta { --edge: var(--blood); background: var(--blood-dk); }
/* The way into the Discord: the lake's blue, so it isn't taken for the red one beside it. */
.discord-cta { --edge: var(--lake); background: var(--sky); }
.discord-cta:hover { --edge: var(--white); }
.cta-row:has(a.steam-cta) .email-cta { --edge: var(--grey-dk); background: var(--night); }
.cta-row:has(a.steam-cta) .email-cta:hover { --edge: var(--white); }

/* ───────────── Hero ───────────── */
.hero { padding: clamp(1rem, 3vw, 2.25rem) var(--gutter) 3.5rem; }
.hero-art { container-type: inline-size; }
.hero-screen { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }

.hero-logo { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.hero-logo img { --u: calc(146 * var(--px)); width: 292px; height: auto; }

/* The key art is 640x205. Wider than its frame, it is cropped, never
   squeezed: object-fit: cover at a height that is a whole multiple of 205
   keeps the scale exact, and object-position keeps the ranger and the moon
   in the picture when the sides go. */
.keyart {
  width: min(100%, 640px);
  height: 205px;
  object-fit: cover;
  object-position: 86% 50%;
}
@media (min-width: 900px) {
  .keyart { width: min(100%, 1280px); height: 410px; }
}

@supports (width: round(up, 1px, 1px)) {
  .hero-logo img { width: max(var(--u), round(down, min(100cqw, 30rem), var(--u))); }
  .keyart {
    --u: calc(640 * var(--px));
    /* narrowest whole-pixel width that fills the frame */
    --cover: round(up, 100cqw, var(--u));
    /* on a phone that would be a thin strip, so aim for about 300px tall,
       or a third of the screen where that is less */
    --aim: round(nearest, min(937px, calc(32svh * 640 / 205)), var(--u));
    /* and never taller than 70% of the screen */
    --cap: max(var(--u), round(down, calc(70svh * 640 / 205), var(--u)));
    --w: min(max(var(--cover), var(--aim)), var(--cap));
    width: min(100cqw, var(--w));
    height: calc(var(--w) * 205 / 640);
  }
}

/* Room to spare: the logo sits on the sky, as it does on the game's capsule. */
@container (min-width: 860px) {
  .hero-logo {
    position: absolute;
    z-index: 1;
    left: clamp(1rem, 4cqw, 4rem);
    top: clamp(0.75rem, 3cqw, 3rem);
    margin: 0;
  }
  .hero-logo img { width: 438px; }
  @supports (width: round(up, 1px, 1px)) {
    .hero-logo img { width: max(var(--u), round(down, min(38cqw, 40rem), var(--u))); }
  }
}

.hero-copy { max-width: 60rem; margin: 2rem auto 0; text-align: center; }
.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.pitch {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--white);
  text-wrap: balance;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.7rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--grey-dk);
}

/* ───────────── Sections ───────────── */
.section { padding: 4.25rem var(--gutter); }
.wrap { max-width: var(--wrap); margin-inline: auto; }

/* Section titles are the game's location banner: white type between two
   red rules. */
.banner { text-align: center; margin-bottom: 2rem; }
.banner h2, .signup h2 {
  display: inline-block;
  padding: 0.8rem 1.4rem 0.7rem;
  border-block: 2px solid var(--blood);
  font-family: var(--pixel);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--white);
}
.lede { max-width: 40rem; margin: 0 auto 2.25rem; text-align: center; text-wrap: balance; }
.lede.after { margin: 2.25rem auto 0; }

.prose { max-width: 40rem; margin-inline: auto; }
.prose p + p { margin-top: 1rem; }
.prose h3, .sub {
  margin: 3rem 0 0.9rem;
  font-family: var(--pixel);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--sand);
}
.sub { max-width: 40rem; margin-inline: auto; }

/* ───────────── Screenshots ───────────── */
/* The game's picture is 426x240 (16:9). The section is let out wider than the
   rest of the page so three fit across on a big screen. */
#screenshots .wrap { max-width: 84rem; container-type: inline-size; }
.shots {
  --gap: 1rem;
  --thumb: 426px;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--thumb));
  justify-content: center;
  gap: 1.5rem var(--gap);
  /* three across or two, so twelve always fill their rows */
  max-width: calc(3 * var(--thumb) + 2 * var(--gap));
  margin-inline: auto;
}
@media (max-width: 480px) { .shots { --thumb: 213px; } }
@supports (width: round(up, 1px, 1px)) {
  /* as near to 426 CSS px as whole device pixels allow, and never wider than the page */
  .shots { --u: calc(426 * var(--px)); --thumb: max(var(--u), round(down, min(426px, 100cqw), var(--u))); }
}
.shots li { width: var(--thumb); }
.shot, .view { display: block; text-decoration: none; color: var(--grey); }
.shot img { width: var(--thumb); height: auto; box-shadow: 0 0 0 2px var(--line); }
.shot:hover img, .shot:focus-visible img,
.view:hover img, .view:focus-visible img { box-shadow: 0 0 0 2px var(--white); }
.shot:focus-visible, .view:focus-visible { outline-offset: 6px; }
.shot-cap {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.shot:hover .shot-cap { color: var(--white); }

/* ───────────── The reel ─────────────
   The game, moving: a lossless animation of the game's own frames, so it is
   held to the same rule as the stills (whole device pixels, never resampled).
   Up to three times the game's size where the screen has the room, which
   lines it up with the three columns of frames under it. */
.reel { width: fit-content; max-width: 100%; margin: 0 auto 2.75rem; }
.reel-play { display: block; }
.reel img { --u: calc(426 * var(--px)); width: 426px; height: auto; box-shadow: 0 0 0 2px var(--line); }
.js .reel img { cursor: pointer; }
@media (max-width: 480px) { .reel img { width: 213px; } }
@media (min-width: 940px) { .reel img { width: 852px; } }
@supports (width: round(up, 1px, 1px)) {
  .reel img {
    width: max(var(--u), round(down, min(100cqw, 1278px, calc((100dvh - 9rem) * 426 / 240)), var(--u)));
  }
}
.reel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: left;
}
.reel-toggle {
  flex: 0 0 auto;
  min-width: 4.6rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--grey-dk);
  border-radius: 0;
  background: var(--night);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}
.reel-toggle:hover { border-color: var(--white); }

/* ───────────── The two views ───────────── */
.views {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 1.5rem 2rem;
  margin: 2rem auto 0;
}
.views img { --u: calc(426 * var(--px)); width: 213px; height: auto; box-shadow: 0 0 0 2px var(--line); }
@media (min-width: 1000px) { .views img { width: 426px; } }
@supports (width: round(up, 1px, 1px)) {
  .views img { width: max(var(--u), round(down, min(calc((100cqw - 2rem) / 2), 426px), var(--u))); }
}
.views figcaption {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--grey);
}

/* ───────────── Counselors ───────────── */
.crew {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 1.5rem;
  max-width: 62rem;
  margin-inline: auto;
}
.crew li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.1rem;
  padding: 1.1rem 1.2rem 1.15rem;
  border-top: 2px solid var(--line);
}
.crew h3 {
  font-family: var(--pixel);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--white);
}
.crew .role {
  margin: 0.15rem 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.crew p { line-height: 1.5; }

/* 16px-wide sprites of different heights, standing on one baseline. */
.sprite {
  --s: 4px;
  position: relative;
  display: block;
  width: calc(16 * var(--s));
  height: calc(27 * var(--s));
}
@supports (width: round(up, 1px, 1px)) {
  .sprite { --s: round(nearest, 4px, var(--px)); }
}
.sprite img { position: absolute; left: 0; bottom: 0; width: calc(16 * var(--s)); height: auto; }
.sprite img + img { visibility: hidden; }

/* The game's idle: two frames, 700ms each. Off when motion is unwelcome. */
@media (prefers-reduced-motion: no-preference) {
  .sprite img:first-child { animation: idle-a 1.4s infinite; }
  .sprite img + img { animation: idle-b 1.4s infinite; }
  .crew li:nth-child(3n + 2) .sprite img { animation-delay: -0.35s; }
  .crew li:nth-child(3n) .sprite img { animation-delay: -0.9s; }
}
@keyframes idle-a {
  0%, 49.99% { visibility: visible; }
  50%, 100%  { visibility: hidden; }
}
@keyframes idle-b {
  0%, 49.99% { visibility: hidden; }
  50%, 100%  { visibility: visible; }
}

/* ───────────── Features ───────────── */
.feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  max-width: 58rem;
  margin-inline: auto;
}
.feats > div { padding: 1rem 0 1.1rem; border-top: 2px solid var(--line); }
.feats dt {
  margin-bottom: 0.3rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ───────────── Requirements ───────────── */
.reqs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 62rem;
  margin: 1.2rem auto 0;
}
.sub.wide { max-width: 62rem; }
.req {
  margin: 3px;
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: 0 -3px 0 var(--grey-dk), 0 3px 0 var(--grey-dk), -3px 0 0 var(--grey-dk), 3px 0 0 var(--grey-dk);
}
.req h4 {
  margin-bottom: 0.9rem;
  font-family: var(--pixel);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--white);
}
.req dl > div + div { margin-top: 0.75rem; }
.req dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dk);
}
.req dd { line-height: 1.45; }
.fine { max-width: 62rem; margin: 1.4rem auto 0; font-size: 0.92rem; }
.notes { font-size: 0.95rem; }

/* ───────────── Newsletter ───────────── */
.signup {
  max-width: 40rem;
  margin: 3px auto;
  padding: 2.2rem 1.8rem 2rem;
  text-align: center;
  box-shadow: 0 -3px 0 var(--white), 0 3px 0 var(--white), -3px 0 0 var(--white), 3px 0 0 var(--white);
}
.signup > p { margin: 1.4rem auto 1.5rem; max-width: 30rem; text-wrap: balance; }
.signup .done { color: var(--white); margin-bottom: 0; }
.signup .also { margin-bottom: 0; }
.signup .also-cta { margin: 1.1rem auto 0; }
.notify-form { display: flex; flex-direction: column; gap: 1rem; }
.notify-row { display: flex; gap: 0.9rem; align-items: stretch; }
.notify-email {
  flex: 1 1 auto;
  min-width: 0;
  margin: 3px;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0;
  background: var(--night);
  color: var(--white);
  font: inherit;
  box-shadow: 0 -3px 0 var(--grey-dk), 0 3px 0 var(--grey-dk), -3px 0 0 var(--grey-dk), 3px 0 0 var(--grey-dk);
}
.notify-email::placeholder { color: var(--grey-dk); }
.notify-email:focus-visible { outline: 2px solid var(--sand); outline-offset: 5px; }
.notify-row .cta { flex: 0 0 auto; white-space: nowrap; }
.notify-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
}
.notify-consent input { margin: 0.2rem 0 0; flex: 0 0 auto; accent-color: var(--blood-dk); }
.bd-sink { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; }

/* ───────────── Footer small print ───────────── */
.label-footer { margin-top: 2rem; }
.tm-disclaimer {
  width: 100%;
  margin-top: 0.8rem;
  font-size: 0.68rem;
  line-height: 1.5;
}

/* ───────────── Screenshot viewer ───────────── */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--night);
  color: var(--grey);
  overflow: hidden;
}
.lightbox::backdrop { background: var(--night); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
.lb-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;   /* sideways drags are ours: they step */
}
/* The frame at the largest whole multiple the screen has room for. The
   8.5rem is the caption and the button row underneath. */
.lb-img { --u: calc(426 * var(--px)); width: 213px; height: auto; }
@media (min-width: 440px) and (min-height: 400px) { .lb-img { width: 426px; } }
@media (min-width: 870px) and (min-height: 640px) { .lb-img { width: 852px; } }
@media (min-width: 1300px) and (min-height: 880px) { .lb-img { width: 1278px; } }
@supports (width: round(up, 1px, 1px)) {
  .lb-img {
    width: max(var(--u), min(
      round(down, 100vw, var(--u)),
      calc(round(down, calc(100dvh - 8.5rem), calc(240 * var(--px))) * 426 / 240)
    ));
  }
}
.lb-cap {
  min-height: 2.9em;
  padding: 0.5rem 1rem 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
.lb-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
}
.lb-btn {
  --edge: var(--grey-dk);
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--night);
  color: var(--white);
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 -3px 0 var(--edge), 0 3px 0 var(--edge), -3px 0 0 var(--edge), 3px 0 0 var(--edge);
}
.lb-btn:hover { --edge: var(--white); }
.lb-btn svg { display: block; width: 24px; height: 24px; margin: 0 auto; fill: currentColor; }
.lb-count {
  min-width: 4.5em;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--white);
}
.lb-full {
  margin: 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ───────────── Small screens ───────────── */
@media (max-width: 900px) {
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reqs { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
  .sub.wide, .fine { max-width: 40rem; }
}

@media (max-width: 640px) {
  :root { --gutter: 1rem; }
  .section { padding: 3rem var(--gutter); }
  .hero { padding-bottom: 2.5rem; }
  .brand-tag { display: none; }   /* clears room for breadcrumb + hamburger */
  .label-back { padding-right: 0.7rem; }

  .cta-row { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .meta-row { flex-direction: column; align-items: center; }
  .meta-row .dot { display: none; }

  /* One row you push sideways, instead of twelve screens of scrolling. */
  .shots {
    display: flex;
    justify-content: flex-start;
    max-width: none;
    gap: 0.9rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
  }
  .shots li { flex: 0 0 auto; scroll-snap-align: start; }

  .views { grid-template-columns: auto; }
  @supports (width: round(up, 1px, 1px)) {
    .views img { width: max(var(--u), round(down, min(100cqw, 426px), var(--u))); }
  }

  .crew { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .feats { grid-template-columns: minmax(0, 1fr); }

  .signup { padding: 1.8rem 1.1rem 1.6rem; }
  .notify-row { flex-direction: column; gap: 0.9rem; }

  .lb-bar { gap: 0.45rem; padding-inline: 0.5rem; }
  .lb-full { margin: 0 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
