/* StreetHeist landing: the phone edit (Nikon, 2026-10-01: "make the phone one a
   little bit simpler, but still good and very clean"). Loaded last. A phone
   keeps the film and every chapter, but drops what cannot fit a 390px column:
   the decorative telemetry in the chapters after the film, the secondary map
   labels, and bright street art directly behind copy. */
/* Directional reveal shared by phone content and the desktop closing beats.
   The film and desktop step deck already derive every frame from scroll. */
html.sh-reveal .ph-r { --ph-r-y: 18px; opacity: 0; transform: translate3d(0, var(--ph-r-y), 0); transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.sh-reveal .ph-r.ph-r--above { --ph-r-y: -18px; }
html.sh-reveal .ph-r.ph-r--below { --ph-r-y: 18px; }
html.sh-reveal .ph-r.is-seen { opacity: 1; transform: none; }
html.sh-reveal .sh-demo__rig { animation: none; }
html.sh-reveal .sh-cbeat__kicker, html.sh-reveal .sh-cbeat__title, html.sh-reveal .sh-cbeat__body { animation: none; }

@media (max-width: 767px) {
  /* Headings start clear of the nav and the city and currency pill. */
  :root { --b-top: calc(var(--sh-nav-h, 56px) + 62px); --b-bottom: 132px; }

  /* 1. Telemetry after the film is decoration. On a phone it collides with
        buttons and runs off the edge, so the copy keeps the space. */
  .sh-beat > .sh-hud, html body .sh-cbeat .sh-hud { display: none; }

  /* 2. One calm dark layer between the street and the copy of each chapter
        after the film. The street still glows through; text never sits on it. */
  .sh-beat, .sh-demo, .sh-brief {
    background: linear-gradient(180deg, rgb(7 8 10 / 78%) 0, rgb(7 8 10 / 86%) 38%, rgb(7 8 10 / 90%) 100%);
  }

  /* 3. The city and currency pill stays small and out of the way. */
  .sh-hudbar { font-size: 9.5px; letter-spacing: .12em; }
  .sh-hudbar__tele { top: calc(var(--sh-nav-h) + 8px); }
  html.sh-past-film .sh-hudbar { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }

  /* 4. Maps: keep lots, prices and the route; drop the secondary labels. */
  .sh-map__tag.is-quiet, .sh-map__tag.is-glass, .sh-arch__tag, .sh-film__schematic { display: none; }
  .sh-map__tag { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .b-map__labels { display: none; }
  .b-map { opacity: .55; }

  /* 5. Film copy: one readable column above the dock, telemetry to two lines. */
  html.film-live .sh-film .sh-hud__line:not(.is-key):nth-child(n + 3) { display: none; }
  .sh-ch__body { font-size: 15.5px; line-height: 1.45; }

  /* 6. Quiet the background show pieces that crowd a narrow column. */
  .b-ring { opacity: .35; }
  .b-marquee { display: none; }
  .b-tag { position: static; display: inline-flex; margin: 10px 0 0; }

  /* 7. Type and spacing: fewer sizes, more air. */
  .sh-beat h2 { font-size: clamp(26px, 7.4vw, 32px); line-height: 1.04; }
  .sh-beat__lede { font-size: 15px; line-height: 1.5; }
  .b-cta { gap: 10px; margin-top: 18px; }
  .b-cta .sh-btn { min-height: 48px; }

  /* 8. The spec keeps its four headline figures; the full tables live in the game sheet. */
  .sh-beat--how .sh-numbers { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .sh-beat--how .sh-numbers > div { padding: 0; border: 0; }
  .sh-beat--how .sh-numbers dd + dd { display: none; }
  .sh-beat--how .b-spec .sh-facts, .sh-beat--how .b-spec .sh-odds { display: none; }

  /* 9. Card rows stack instead of running off the right edge. */
  .sh-beat [data-b-snaprow] { display: grid; grid-template-columns: 1fr; gap: 12px; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding-inline: 0; }
  .sh-beat [data-b-snaprow] > * { width: auto; min-width: 0; max-width: none; flex: none; scroll-snap-align: none; }
  .sh-beat .b-price, .sh-beat .b-spec, .sh-beat .b-fxstep, .sh-beat .b-readouts { max-width: none; }

  /* 10. Directional reveal: down-scroll rises; up-scroll is its exact inverse. */
  html.sh-reveal .b-steps > .ph-r:nth-child(2).is-seen { transition-delay: .05s; }
  html.sh-reveal .b-steps > .ph-r:nth-child(3).is-seen { transition-delay: .1s; }

  /* 11. Nothing may widen the page. */
  .sh-beat, .sh-cbeat, .sh-film { max-width: 100vw; overflow-x: clip; }
}

/* Reduced motion keeps the same simplifications without the fades. */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .sh-beat, .sh-demo, .sh-brief { background: rgb(7 8 10 / 88%); }
}
