/* ── assets/leap/shelf.css ── */
/* The leap, shelf: Out now: the live apps as posters with real screens and their own store buttons. One part of /assets/leap.css (scripts/build-hub.mjs joins the parts). */
/* OUT NOW AS LIT POSTERS (scripts/hub/outnow.mjs writes the markup, assets/leap/shelf.js adds what needs script).
   One idea: every live app is a tall poster under ONE lamp in its monster's colour. The app's name leads, its monster's
   credit under it; a real screen stands in a plain drawn device, the monster beside it in front of its own giant
   initial; then the app's own line, and the action: the app's icon, "Free on the App Store", one button. A phone gets
   a deck that scrolls sideways and snaps poster by poster with the next one peeking; from 1024 px the same list is a
   wall, four across.
   Calm light: flat colour, crisp hairlines, no glow on letters, borders or the poster in view. With script off every
   poster is lit and every link works. Sits on assets/hub.css (tokens, type). A poster's own rules start at ".poster"
   and need nothing from the chapter around it, so the apps catalogue can reuse it.
   Text sizes here are in px on purpose: a phone's larger-text setting then scales every word by the same factor,
   and the drawn device is what gives way (see --ph). */

/* ── the chapter ── */
/* "Get the apps" lands with the eyebrow --land px from the top of the screen (the bar is 65 px tall), not a chapter's
   worth of air above it: the page keeps 84 px of scroll padding and the chapter its own top padding, so both are
   taken back here. */
.out-now { --gut:var(--pad); --peek:36px; --land:75px; scroll-margin-top:calc(var(--land) - 84px - clamp(88px, 12vw, 184px)); }
.on-head { margin:0 auto 10px; padding:0 var(--pad); }
.on-head .eyebrow { margin-bottom:6px; }
.on-head h2 { max-width:none; font-size:clamp(24px, 5.9vw, 40px); line-height:1.08; }

/* ── the deck: a real list that scrolls sideways and snaps; the page still scrolls up and down through it ── */
.deck { list-style:none; margin:0; display:flex; gap:var(--gut); padding:4px var(--gut) 8px; overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory; scroll-padding-inline:var(--gut); overscroll-behavior-x:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.deck::-webkit-scrollbar { display:none; }
.out-now .poster { flex:0 0 auto; width:calc(100vw - 2 * var(--gut) - var(--peek)); max-width:384px; scroll-snap-align:start; scroll-snap-stop:always; }

/* ── one poster ── */
/* Everything inside is measured in hundredths of the poster's own width (--u), so a poster is the same picture at
   every size. A browser without container units draws it as if it were 340 px wide. */
.poster { --u:1cqw; --vh:1vh; display:flex; min-width:0; container-type:inline-size; }
@supports not (width:1cqw) { .poster { --u:3.4px; } }
@supports (height:1svh) { .poster { --vh:1svh; } }
.p-in {
  /* THE DEVICE GIVES WAY FIRST. --ph is its height: what is left of the screen once the chapter's head and the
     poster's own words are placed, so the head and one whole poster with its button fit one screen (440 x 760 with the
     browser's bars out) and the button stays put when the words grow. --k is everything that is not the device, in
     px: shelf.js measures it (so it is right at any text size); without script it is taken as 462 px, the usual size. */
  --ph:clamp(calc(40 * var(--u)), calc(100 * var(--vh) - var(--k, 462px)), calc(104 * var(--u)));
  --bz:calc(var(--ph) * .017);                        /* an even bezel on all four sides */
  --sw:calc((var(--ph) - 2 * var(--bz)) * var(--ar)); /* the screen is as wide as the app's own picture makes it (--ar, from the file) */
  --pw:calc(var(--sw) + 2 * var(--bz));
  --rr:calc(var(--ph) * .064);                        /* the outer corner; the screen's is concentric (this minus the bezel) */
  --mh:min(var(--ph), calc(80 * var(--u)));           /* THE MONSTER: as tall as the device, until that would crowd the poster */
  --pr:max(calc(5 * var(--u)), calc((100 * var(--u) - var(--ph) * .5 - var(--mh) * .52) / 2));  /* the pair stands centred */
  --px:calc(var(--pr) + (var(--ph) * .5 - var(--pw)) / 2);  /* every device stands on the same axis, whatever its screen's shape */
  --ov:calc(var(--ph) * .04);                         /* how far the monster stands behind the device's edge */
  --floor:22px;                                       /* under the feet: where the dots for more screens go */
  --side:calc(4.8 * var(--u));
  position:relative; isolation:isolate; display:flex; flex-direction:column; width:100%; overflow:hidden; border-radius:var(--r-plate);
  background:linear-gradient(180deg, color-mix(in oklab, var(--c) 32%, #0B0A1F) 0%, color-mix(in oklab, var(--c) 15%, #0B0A1F) 40%, color-mix(in oklab, var(--c) 5%, #0E0D27) 70%, #0C0B22 100%);
  box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--c) 48%, rgba(255,255,255,.1)), 0 22px 34px -28px rgba(0,0,0,.9); }
/* the lamp itself: a short flat bar on the poster's top edge, over the screen. No glow: the pool below is its light. */
.p-in::before { content:""; position:absolute; z-index:-1; top:0; right:calc(var(--px) + var(--pw) / 2); width:calc(15 * var(--u)); height:3px; border-radius:0 0 3px 3px;
  transform:translateX(50%); background:color-mix(in oklab, var(--c) 50%, #fff); pointer-events:none; }
/* the lamp's light: one soft pool of the monster's colour on the wall behind the screen, with a little of the app's own
   colour (--a, from the app's own page) at its heart, so two posters by one monster are not the same card twice.
   It ends before the words. */
.p-light { position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.7;
  background:
    radial-gradient(40% 24% at 70% 27%, color-mix(in oklab, var(--a, var(--c)) 58%, transparent) 0%, transparent 100%),
    radial-gradient(64% 38% at 66% 30%, color-mix(in oklab, var(--c) 80%, #fff) 0%, color-mix(in oklab, var(--c) 46%, transparent) 38%, transparent 76%);
  -webkit-mask-image:linear-gradient(180deg, #000 0%, #000 44%, transparent 72%); mask-image:linear-gradient(180deg, #000 0%, #000 44%, transparent 72%); }

/* the head: the app's name first, its monster's credit under it */
.p-top { flex:none; padding:12px var(--side) 0; }
.p-name { overflow-wrap:anywhere; font-size:clamp(28px, calc(9.9 * var(--u)), 38px); line-height:1.02; letter-spacing:-.012em; color:var(--ink); text-shadow:0 2px 0 rgba(0,0,0,.3); }
.p-by { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:0 12px; margin-top:3px;
  font-size:13px; font-weight:700; line-height:1.3; letter-spacing:.1em; text-transform:uppercase; color:color-mix(in oklab, var(--c) 30%, #fff); }
.p-flag { color:var(--gold); }

/* the stage: the device on the right, the monster beside it and a step behind, its initial behind them both */
.p-stage { position:relative; flex:none; height:calc(var(--ph) + var(--floor)); margin-top:8px; }
.p-ini { position:absolute; z-index:-1; top:0; height:var(--ph); overflow:hidden;
  /* from the poster's edge, or from just left of the monster when the pair is small, to the device's edge */
  left:max(calc(2.6 * var(--u)), calc(100 * var(--u) - var(--px) - var(--pw) + var(--ov) - var(--mh) * .76)); right:calc(var(--px) + var(--pw) - var(--ov));
  font-family:var(--fd); font-weight:600; font-size:calc(var(--mh) * 1.06); line-height:.83; letter-spacing:-.04em;
  color:color-mix(in oklab, var(--c) 72%, #fff); opacity:.26; pointer-events:none; -webkit-user-select:none; user-select:none;
  /* it never competes with the screen: it fades out before it reaches the device and is cut off behind it */
  -webkit-mask-image:linear-gradient(90deg, #000 52%, transparent 94%); mask-image:linear-gradient(90deg, #000 52%, transparent 94%); }
.p-mon { --mx:0px; position:absolute; z-index:0; bottom:calc(var(--floor) - var(--mh) * .012); height:var(--mh); aspect-ratio:594 / 897; pointer-events:none;
  /* the drawing's own right edge (--m1, from the file) stands --ov behind the device's left edge */
  right:calc(var(--px) + var(--pw) - var(--ov) - (1 - var(--m1, .85)) * var(--mh) * .6622 - var(--mx)); }
/* in profile the right edge is the face: it stands clear of the device instead of behind it */
.poster[data-pose="side"] .p-mon { --mx:calc(var(--ph) * -.052); }
.p-mon picture { display:contents; }
.p-mon img { position:absolute; left:50%; bottom:0; width:auto; height:100%; max-width:none; transform:translateX(-50%); filter:drop-shadow(0 10px 10px rgba(0,0,0,.38)); }
/* THE DEVICE, generic on purpose: an even bezel, concentric corners, a quiet rim. Nothing else is drawn: no sensor
   housing, no buttons, no home bar, no shine. Upright, never turned. The picture in it is the app's own. */
.p-phone { position:absolute; z-index:1; top:0; right:var(--px); width:var(--pw); height:var(--ph); padding:var(--bz); border-radius:var(--rr);
  background:#0D0D17; box-shadow:inset 0 0 0 1px rgba(255,255,255,.22), 0 0 0 1px rgba(0,0,0,.55), 0 20px 24px -16px rgba(0,0,0,.8); }
.p-screen { position:relative; display:block; width:100%; height:100%; overflow:hidden; border-radius:calc(var(--rr) - var(--bz)); background:#07070E; }
.p-screen img { position:absolute; left:0; top:0; width:100%; height:100%; max-width:none; object-fit:cover; object-position:50% 0; }
/* a store frame whose card-size copy is missing is cut to the app's own screen here (outnow.mjs gives the numbers) */
.p-screen.is-crop img { left:var(--ix); top:var(--iy); width:var(--iw); height:auto; object-fit:fill; }

/* the words: the app's own line (each sentence whole on its line where it fits), then the action */
.p-copy { position:relative; flex:1; padding:0 var(--side) 14px; }
.p-name:focus { outline:none; }   /* where the index's icon sends the keyboard (shelf.js land): the name is read, the next Tab goes on inside the poster */
.p-tag { display:flex; align-items:flex-end; min-height:2.72em; min-height:2lh; font-size:16.5px; line-height:1.36; color:color-mix(in oklab, var(--ink) 88%, var(--soft)); text-wrap:balance; }
.p-tag-in { display:block; min-width:0; }
.p-tag-in > span { display:inline-block; }
/* THE ACTION, all in one place and at the same height on every poster: the app's icon (what the visitor sees in the
   store a second later) with Apple's own facts beside it, the button, the way to the app's page. */
.p-acts { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-top:8px; }
.p-facts { flex:1 0 100%; display:flex; align-items:center; gap:10px; min-height:40px; font-size:14px; line-height:1.38; color:var(--soft); }
/* the row is as tall on every poster, whatever it holds, at any text size (unseen lines hold it open), so the button
   under it stands at the same height on every poster: room for three lines of facts (free, the rating, a second
   store), two on an iPhone, where a second store is never shown */
.p-facts::after { content:"\A0\A\A0\A\A0"; flex:none; width:0; margin-left:-10px; overflow:hidden; white-space:pre; visibility:hidden; }
html[data-os="ios"] .p-facts::after { content:"\A0\A\A0"; }
/* a rating says whose it is, and "on the App Store" can take a line of its own: where any poster shows a rating,
   every poster keeps that one more line (review, 11/10). An Android phone shows one store line, so it keeps three. */
.out-now:has(.p-rate) .p-facts::after { content:"\A0\A\A0\A\A0\A\A0"; }
html[data-os="ios"] .out-now:has(.p-rate) .p-facts::after, html[data-os="android"] .out-now:has(.p-rate) .p-facts::after { content:"\A0\A\A0\A\A0"; }
.p-icon { flex:none; width:40px; height:40px; border-radius:23%; box-shadow:0 0 0 1px rgba(255,255,255,.16); }
.p-lines { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.p-on { color:var(--ink); font-weight:600; }
/* the button takes the whole row; on a poster wide enough for both (350 px, a large phone) the page link stands
   beside it, unless shelf.js finds that it would wrap on some poster at this text size (.acts-stack): one rule for all */
.p-getwrap, .p-get-play { flex:1 1 100%; min-width:0; }
.p-getwrap { display:block; }
@container (min-width:350px) { .out-now:not(.acts-stack) .p-getwrap, .out-now:not(.acts-stack) .p-get-play { flex-basis:150px; } }
.p-more { flex:none; display:inline-flex; align-items:center; gap:6px; min-height:44px; font-size:15px; }
/* THE BUTTON: one real link, as tall as a thumb needs, in the monster's own colour with an ink that passes AA on it
   (outnow.mjs buttonInk() picks --btn-ink and checks it). Flat: no glow, no badge artwork. */
.p-get { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; min-height:48px; padding:6px 18px; border-radius:var(--r-pill);
  background:var(--btn, var(--c)); color:var(--btn-ink, #0B0A1F); font-family:var(--fd); font-weight:600; font-size:17.5px; line-height:1.15; text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.35); transition:background-color .18s ease, transform .18s var(--ease); -webkit-tap-highlight-color:transparent; }
.p-get:hover { background:var(--hov, var(--c)); color:var(--btn-ink, #0B0A1F); }
.p-get:active { transform:scale(.97); }
.p-get:focus-visible { outline:3px solid var(--cyan); outline-offset:3px; border-radius:var(--r-pill); }
.p-get-play { display:none; }
.p-on-play, .p-soon, .p-ios { display:none; }
.p-rate { display:inline-flex; flex-wrap:wrap; align-items:center; gap:0 6px; }
.p-rate > * { white-space:nowrap; }
/* five stars drawn twice: a quiet row, and a gold row over it as wide as the real rating (--r) */
.p-stars { position:relative; display:inline-block; font-size:13px; line-height:1; letter-spacing:1.5px; color:rgba(255,255,255,.24); }
.p-stars::after { content:"\2605\2605\2605\2605\2605"; position:absolute; left:0; top:0; width:var(--r, 100%); overflow:hidden; white-space:nowrap; color:var(--gold); }
.p-rate b { font-weight:700; color:var(--ink); }
/* a second store is a plain text link; its touch area is taller than its line without moving anything */
.p-also { margin:-12px 0; padding:12px 0; font-weight:500; text-decoration:underline; text-underline-offset:2px; }

/* which store this visitor can use (assets/hybrid-mode.js writes data-os on <html> before the first paint):
   an iPhone or iPad needs no Google Play link. On an Android phone, where the app is on Google Play the button goes
   there and the line says so (the rating stays Apple's and says so); where it is not, the main action is the app's
   own page, with the app's own Android words first: no App Store button a phone cannot use. With no script: the App
   Store button and both stores. Nothing moves: every state has the same rows. */
html[data-os="ios"] .p-also { display:none; }
html[data-os="android"] .p-getwrap, html[data-os="android"] .has-play .p-on-apple, html[data-os="android"] .p-also { display:none; }
html[data-os="android"] .has-play .p-get-play { display:flex; }
html[data-os="android"] .has-play .p-on-play, html[data-os="android"] .p-soon { display:inline; }
html[data-os="android"] .poster:not(.has-play) .p-soon { order:-1; color:var(--ink); font-weight:600; }
/* ... and where it is free on the App Store today is said under the button, where the other posters keep their page link */
html[data-os="android"] .has-soon .p-on-apple { display:none; }
html[data-os="android"] .has-soon .p-ios { flex:1 1 100%; display:flex; align-items:center; min-height:44px; font-size:14px; line-height:1.38; color:var(--soft); }
html[data-os="android"] .poster:not(.has-play) .p-rate { display:none; }
html[data-os="android"] .poster:not(.has-play) .p-more { flex:1 1 100%; justify-content:center; min-height:48px; padding:6px 18px; border-radius:var(--r-pill); white-space:normal;
  background:var(--btn, var(--c)); color:var(--btn-ink, #0B0A1F); font-family:var(--fd); font-weight:600; font-size:17.5px; line-height:1.15; text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.35); }
html[data-os="android"] .poster:not(.has-play) .p-more span { display:none; }
html[data-os="android"] .poster:not(.has-play) .p-more:hover { background:var(--hov, var(--c)); color:var(--btn-ink, #0B0A1F); }
html[data-os="android"] .poster:not(.has-play) .p-more:focus-visible { outline:3px solid var(--cyan); outline-offset:3px; border-radius:var(--r-pill); }

/* more screens, only when asked: the screen is a button (shelf.js makes it), the dots under the device say there is more */
.p-next { position:absolute; inset:0; z-index:4; width:100%; height:100%; padding:0; border:0; border-radius:inherit; background:none; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.p-next:focus-visible { outline:3px solid var(--cyan); outline-offset:-5px; border-radius:calc(var(--rr) - var(--bz)); }
.p-screen img.is-more { z-index:2; opacity:0; }
.p-screen img.is-in { opacity:1; }
.p-pips { position:absolute; z-index:1; bottom:5px; right:calc(var(--px) + var(--pw) / 2); display:flex; gap:6px; transform:translateX(50%); pointer-events:none; }
.p-pips i { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.3); }
.p-pips i.on { background:#fff; transform:scale(1.25); }

/* ── under the deck: the index of icons, then the way to step, with the current app's name between the arrows ── */
.on-index { display:flex; margin:0 auto; padding:0 4px; max-width:100%; overflow-x:auto; scrollbar-width:none; }
.on-index::-webkit-scrollbar { display:none; }
.on-index a { position:relative; flex:0 0 44px; display:grid; place-items:center; height:48px; border-radius:12px; -webkit-tap-highlight-color:transparent; }
/* centred while every icon fits; once there are more than fit, the row scrolls from its first icon */
.on-index a:first-child { margin-left:auto; }
.on-index a:last-child { margin-right:auto; }
.on-index img { width:34px; height:34px; border-radius:23%; box-shadow:0 0 0 1px rgba(255,255,255,.16); }
.on-index a:focus-visible { outline-offset:-2px; }
/* the poster in view is marked by more than colour: its icon is larger and wears a crisp ring (script only) */
.out-now.live .on-index img { opacity:.58; transform:scale(.84); }
.out-now.live .on-index a[aria-current="true"] img { opacity:1; transform:scale(1.06); box-shadow:0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.on-step { display:flex; align-items:center; justify-content:space-between; gap:10px; max-width:420px; margin:0 auto; padding:0 var(--pad); }
.on-step[hidden] { display:none; }
.on-now { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; font-family:var(--fd); font-weight:600; font-size:18px; line-height:1.2; color:var(--ink); }
.on-arrow { flex:none; display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:50%; border:1px solid var(--hair-2); background:rgba(255,255,255,.04); color:var(--ink); cursor:pointer;
  -webkit-tap-highlight-color:transparent; transition:background-color .18s ease, opacity .18s ease; }
.on-arrow:active { background:rgba(255,255,255,.14); }
.on-arrow[aria-disabled="true"] { opacity:.34; cursor:default; }
.on-arrow:focus-visible { border-radius:50%; }
@media (hover:hover) { .on-arrow:not([aria-disabled="true"]):hover { background:rgba(255,255,255,.12); } }
.on-more { margin:0; padding:0 var(--pad); text-align:center; }
.on-more .text-link { gap:6px; }

/* ── the light answers the thumb (only where motion is allowed and shelf.js has put .live on the chapter; a still
   page is fully lit from the first paint): on the deck the poster in view is fully lit and its neighbours stand a
   step dimmer; on the wall the lamps come on once, one after another, as the wall arrives. Transform and opacity only. ── */
@media (prefers-reduced-motion: no-preference) {
  .p-light, .p-ini, .p-in::before { transition:opacity .5s ease; }
  .p-mon, .p-phone { transition:transform .6s var(--ease); }
  .out-now.live .poster:not(.on) .p-light { opacity:.18; }
  .out-now.live .poster:not(.on) .p-ini { opacity:.1; }
  .out-now.live .poster:not(.on) .p-in::before { opacity:.3; }
  .out-now.live .poster:not(.on) .p-mon { transform:translateX(calc(-4 * var(--u))); }
  .out-now.live .poster:not(.on) .p-phone { transform:translateY(8px); }
  .p-screen img.is-more { transition:opacity .3s ease; }
  .on-index img { transition:transform .3s var(--ease), opacity .2s ease; }
  .p-pips i { transition:transform .2s ease, background-color .2s ease; }
}

/* ── the smallest phones (and very large text): the deck is a plain stack, so nothing is read sideways ── */
@media (max-width:21.24em) {
  .deck { display:block; overflow:visible; padding-bottom:0; }
  .out-now .poster { width:auto; max-width:none; margin-bottom:var(--gut); }
  .p-in { --ph:calc(88 * var(--u)); }
  .on-index, .out-now .on-step { display:none; }
}

/* ── tablets: the same deck; from 760 px two whole posters and the next one peeking ── */
@media (min-width:600px) { .out-now .poster { width:340px; } }
@media (min-width:760px) { .out-now .poster { width:clamp(300px, calc((100vw - 3 * var(--gut) - 44px) / 2), 384px); } }

/* ── laptops: the wall. Four across (outnow.mjs wallPlan decides the rows and writes --cols; a short row starts at
   --start and stands centred). The device follows the window's height here too, so the head and row one with its
   buttons fit a short laptop window. ── */
@media (min-width:1024px) {
  .out-now { --land:90px; --gap:clamp(12px, 1.4vw, 20px); }
  .on-head { margin-bottom:22px; text-align:center; }
  .on-head h2 { font-size:clamp(30px, 3.3vw, 40px); }
  .deck { display:grid; grid-template-columns:repeat(calc(var(--cols, 4) * 2), minmax(0, 1fr)); grid-auto-rows:1fr; gap:var(--gap); width:min(calc(var(--cols, 4) * 320px), 1280px, calc(100vw - 48px));
    margin:0 auto; padding:0; overflow:visible; scroll-snap-type:none; }
  .out-now .poster { width:auto; max-width:none; grid-column:var(--start, auto) / span 2; }
  .p-in { --ph:clamp(calc(70 * var(--u)), calc(100 * var(--vh) - var(--k, 500px)), calc(100 * var(--u))); }
  .p-name { font-size:clamp(27px, calc(10.6 * var(--u)), 34px); }
  .p-tag { font-size:15.5px; }
  /* the facts take up to three short lines beside the icon (the flagship on a laptop: free, its rating, its second
     store), and the row is as tall on every poster, so the buttons stand in one line across the wall */
  .p-facts { min-height:48px; font-size:13px; line-height:1.22; }
  .p-icon { width:48px; height:48px; }
  .out-now .p-getwrap, .out-now .p-get-play { flex-basis:100%; }
  .p-get { min-height:44px; font-size:16.5px; }
  .p-more { min-height:32px; }
  .on-index, .out-now .on-step { display:none; }
  .on-more { margin-top:20px; }
  /* the lamps come on one after another, once, when the wall arrives */
  .out-now.live .p-light, .out-now.live .p-ini, .out-now.live .p-in::before, .out-now.live .p-mon, .out-now.live .p-phone { transition-delay:calc(var(--i, 0) * 45ms); }
}
/* a narrow poster has no room for the flagship's second credit beside the first: the first one stays */
@container (max-width:279.98px) { .p-flag { display:none; } }
/* the narrowest wall posters (a 1024 px window): the words a size down, so each sentence still has its line */
@container (max-width:259.98px) { .p-tag { font-size:14.5px; } .p-icon { width:40px; height:40px; } .p-stars { font-size:12px; letter-spacing:.5px; } .p-rate { gap:0 5px; } }

/* ── a laptop cannot install a phone app: while the button is under the mouse or holds the focus, its poster shows
   the app's own code for a phone to scan. The panel stands exactly over the device and dims it; it is drawn from
   the button's own box (no script, nothing moves). ── */
.p-qr { display:none; }
@media (min-width:1100px) and (hover:hover) and (pointer:fine) {
  .p-qr { position:absolute; z-index:3; right:var(--px); bottom:calc(100% + var(--floor)); width:var(--pw); height:var(--ph); display:grid; place-items:center;
    border-radius:var(--rr); background:rgba(7,6,20,.82); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .16s ease, visibility 0s linear .16s; }
  .p-getwrap:hover .p-qr, .p-getwrap:focus-within .p-qr { opacity:1; visibility:visible; transition-delay:0s; }
  .p-qr-card { display:grid; justify-items:center; gap:5px; width:148px; padding:8px 8px 7px; border-radius:12px; background:#fff; color:#15142B; font-size:12px; font-weight:600; line-height:1.25; text-align:center; }
  .p-qr-card img { display:block; width:132px; height:132px; }
}
@media (prefers-reduced-motion: reduce) { .p-get, .on-arrow, .p-qr { transition:none; } }
@media (prefers-contrast: more) {
  .p-tag, .p-facts { color:var(--ink); }
  .out-now.live .on-index img { opacity:.85; }
}
/* a browser that cannot mix colours still gets a lit poster: plain grounds and inks in the monster's own colour */
@supports not (color:color-mix(in oklab, red, blue)) {
  .p-in { background:linear-gradient(180deg, #1B1A3D, #0C0B22 72%); box-shadow:inset 0 0 0 1px var(--c), 0 22px 34px -28px rgba(0,0,0,.9); }
  .p-light { background:radial-gradient(64% 38% at 66% 30%, var(--c), transparent 76%); opacity:.4; }
  .p-by { color:#E6E3FF; }
  .p-tag { color:var(--ink); }
  .p-ini { color:var(--c); }
  .p-in::before { background:var(--c); }
}

/* ── assets/leap/hubs.css ── */
/* The leap, hubs: the catalogue (/apps.html) and the crew page (/crew/). One part of /assets/leap-hubs.css (scripts/build-hub.mjs joins it after the posters' part, shelf.css). */
/* TWO PAGES, ONE IDEA: what is out now leads, and it can be had in one tap.
   The catalogue: the live apps stand first as the home's own lit posters (scripts/hub/outnow.mjs writes each one,
   shelf.css draws it, shelf.js runs the deck); everything else follows in compact cards, on shelves by how close it
   is. The crew page: each monster's card hands over its first live app, "the monster's pick".
   Sits on assets/hub.css (tokens, type, the cards, the filters) and on shelf.css (the posters, the button, which
   store a visitor can use). Where a rule of either had to give way on these two pages, the line says so.
   No official store badge artwork on either page: an action is a plain button in the monster's own colour. */

/* ── shared by both pages ── */
.vh { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* "out now", as a small lit dot on each live app in a monster's "Runs" */
.live-dot { flex:none; display:inline-block; width:7px; height:7px; border-radius:50%; background:#41E3A1; box-shadow:0 0 8px rgba(65,227,161,.85); }

/* ══ THE CATALOGUE ══════════════════════════════════════════════════════════ */

/* ── the page head: tight on a phone, so the first poster's name stands in the first screen (440 x 760) ── */
.cat-head { padding-top:16px; }                       /* hub.css: 44 px */
.cat-head .eyebrow { margin-bottom:8px; }             /* hub.css: 12 px */
.cat-head .lede { margin-top:10px; }                  /* hub.css: 14 px */
/* the two filters stand under the words; on a laptop they are one bar across the head */
.cat-filters { margin-top:14px; }
.cat-filters .filters { margin-top:0; }               /* hub.css: 22 px, for a filter row that follows the lede directly */
.cat-filters .face-filters { margin-top:8px; }        /* hub.css: 12 px */
/* a filter is a thumb's target: 44 px (hub.css: 40) */
.cat-filters .filter, .cat-filters .face-filter { min-height:44px; -webkit-tap-highlight-color:transparent; }
.cat-filters .filter:focus-visible, .cat-filters .face-filter:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; border-radius:var(--r-pill); }
@media (max-width:899px) {
  /* the six stand smaller above the title (hub.css: 340 x 132), so the posters come sooner; they still take the lead in turn, once */
  .cat-head .huddle { width:min(100%, 252px); height:90px; margin:0 0 12px; }
  .cat-head .hud { width:54px; height:84px; left:calc(var(--i) * 39.6px); border-radius:11px; }
}
@media (max-width:639px) {
  /* the chips are one row that slides sideways, from screen edge to screen edge (hub.css stops it a gutter short of
     the screen), and it fades out at the edge it runs under, so a cut chip reads as "there is more". Its first and
     last chip stand clear of the fade: the row's own padding is as wide as the page's gutter. */
  .cat-filters .filters { --edge:calc(50vw - 50%); margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); padding:4px var(--edge); scroll-padding-inline:var(--edge);
    -webkit-mask-image:linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image:linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); }
}
/* the six faces fit a phone without sliding: six across, each face over its name, each one a 44 px target or more.
   (Under 360 px they keep hub.css's sliding row.) */
@media (min-width:360px) and (max-width:639px) {
  .cat-filters .face-filters { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:6px; margin:6px 0 0; padding:0; overflow:visible; }
  .cat-filters .face-filter { flex-direction:column; justify-content:center; gap:2px; min-width:0; min-height:60px; padding:5px 0 4px; border-radius:16px; font-size:13px; line-height:1.2; }
  .cat-filters .face-filter img { width:34px; height:34px; }
  .cat-filters .face-filter:focus-visible { border-radius:16px; }
}
@media (max-width:359px) {
  .cat-filters .face-filters { --edge:calc(50vw - 50%); margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); padding:4px var(--edge); scroll-padding-inline:var(--edge);
    -webkit-mask-image:linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image:linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); }
}
@media (min-width:760px) { .cat-head { padding-top:40px; } .cat-filters { margin-top:20px; } }   /* hub.css: 64 px */
@media (min-width:900px) {
  /* hub.css lays the head out as two columns (the words, the huddle); the filter bar takes a row of its own under both */
  .cat-head { row-gap:22px; }
  .cat-filters { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 28px; margin-top:0; }
  /* the faces always take a row of their own: with the fallback font the chips were narrow enough to share it, and
     the faces dropped a row when the web font arrived, moving the whole wall of posters (review, 11/10) */
  .cat-filters .face-filters { margin-top:0; flex-basis:100%; }
}
/* a laptop window under 940 px tall (the home's hero does the same): a tighter head, so the names on the first row of
   posters stand in the first screen (hub.css: the headline up to 5.4rem, the six 520 x 350) */
@media (min-width:900px) and (max-height:940px) {
  .cat-head { padding-top:26px; row-gap:16px; }
  .cat-head h1 { font-size:clamp(2.6rem, 4.6vw, 4.1rem); }
  .cat-head .huddle { width:400px; height:276px; }
  .cat-head .hud { width:128px; left:calc(var(--i) * 52.8px); }
  .catalogue .out-now { --top:26px; }
}

/* ── out now: the posters. The section keeps the home chapter's names, so shelf.css and shelf.js serve it as they
   are; what differs here is the air above it and where its head stands. ── */
.catalogue .out-now { --top:22px; padding-top:var(--top); scroll-margin-top:calc(var(--land) - 84px - var(--top)); }
/* the head stands on the page's own text edge (the deck still runs from screen edge to screen edge, like the home's) */
.catalogue .on-head { padding:0 calc(2 * var(--pad)); }
@media (min-width:760px) { .catalogue .out-now { --top:36px; } }
@media (min-width:1024px) { .catalogue .out-now { --top:40px; } .catalogue .on-head { margin-bottom:20px; } }
/* the filter hides a poster with the hidden attribute; a poster is display:flex, so it has to be said */
.poster[hidden], .on-index a[hidden] { display:none; }
/* one poster left on the shelf needs no index and no arrows; posters that all fit stand centred (hubs.js says which) */
.out-now.few .on-index, .out-now.few .on-step { display:none; }
@media (max-width:1023.98px) { .out-now.fits .deck { justify-content:center; } }

/* ── the shelves: everything that is not out yet, in the compact cards, by how close it is ── */
.catalogue .shelf.wrap { padding-top:30px; padding-bottom:0; }        /* hub.css gives a section 56 px (72 from 760 px): these are shelves of one section */
.catalogue .shelf-now + .shelf.wrap { padding-top:26px; }
/* a shelf's label: said once, on a hairline, with a dot for how close it is (the home's "Coming attractions" rows wear the same) */
.shelf-label { display:flex; align-items:center; justify-content:center; gap:14px; margin:0 0 14px; max-width:none;
  font-family:var(--f); font-size:13px; font-weight:700; letter-spacing:.1em; line-height:1.4; text-transform:uppercase; color:var(--soft); }
.shelf-label::before, .shelf-label::after { content:""; flex:1 1 0; height:1px; background:linear-gradient(90deg, transparent, var(--hair-2)); }
.shelf-label::after { background:linear-gradient(270deg, transparent, var(--hair-2)); }
.shelf-label span { display:inline-flex; align-items:center; gap:9px; }
.shelf-label span::before { content:""; flex:none; width:8px; height:8px; border-radius:50%; background:rgba(243,240,255,.45); }
.shelf[data-shelf="web"] .shelf-label span::before { background:var(--cyan); }
.shelf[data-shelf="review"] .shelf-label span::before { background:var(--gold); box-shadow:0 0 10px var(--gold); }
.shelf[data-shelf="queued"] .shelf-label span::before { background:var(--gold); }
/* The cards stand in centred rows, so a shelf with one card, or a filter that leaves one, is balanced (hub.css: a
   left-set grid). --cols columns (two from 640 px, three from 1000 px), a card always one column wide. Without
   script: rows that wrap, the last one centred. With script (hubs.js puts .planned on the catalogue): two grid tracks
   per column and the rows planned as even as they come, the fuller first, each short row centred (--s, its first
   card's start line), so no card stands alone under a full row. */
@media (min-width:640px) {
  .catalogue .app-grid { --cols:2; --gap:14px; display:flex; flex-wrap:wrap; justify-content:center; gap:var(--gap); }
  .catalogue .app-card { flex:0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width:0; }
  .catalogue.planned .app-grid { display:grid; grid-template-columns:repeat(var(--cols), minmax(0, 1fr) minmax(0, 1fr)); }
  .catalogue.planned .app-card { grid-column:var(--s, auto) / span 2; }
}
@media (min-width:1000px) { .catalogue .app-grid { --cols:3; --gap:16px; } }
/* a shelf the filter has emptied is gone, its label with it */
.catalogue [data-shelf][hidden] { display:none; }
/* on a phone the cards are a size tighter (hub.css: a 72 px icon, 18 px of padding, 14 px apart) */
@media (max-width:639px) {
  .catalogue .app-grid { gap:10px; }
  .catalogue .app-card { grid-template-columns:60px 1fr; gap:2px 14px; padding:14px 16px; }
  .catalogue .app-face img { width:60px; height:60px; border-radius:15px; }
}
/* nothing left under a filter: the one line, where the shelves were */
.catalogue ~ .wrap .grid-empty { margin:32px 0 8px; text-align:center; font-size:1.05rem; color:var(--soft); }

/* ══ THE CREW PAGE ══════════════════════════════════════════════════════════ */

/* ── the monster's pick: its first live app, as one compact row with one button, in the card, above "Runs".
   The button, the lines about the stores and which of them a visitor sees are shelf.css's (.p-get, .p-on, .p-also,
   .p-soon, .p-ios, .has-play, .has-soon under html[data-os]): one set of rules for the posters and the picks. ── */
.pick { margin-top:14px; padding:14px; border-radius:18px; background:color-mix(in srgb, var(--c) 13%, var(--bg-2));
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 38%, transparent); }
.pick-app { display:grid; grid-template-columns:56px minmax(0, 1fr); gap:12px; align-items:start; }
.pick-icon { width:56px; height:56px; border-radius:23%; box-shadow:0 0 0 1px rgba(255,255,255,.16); }
.pick-name { font-size:1.35rem; line-height:1.1; overflow-wrap:anywhere; }
.pick-name a { color:var(--ink); }
.pick-name a:hover { color:var(--cyan-2); }
.pick-tag { margin-top:3px; font-size:14.5px; line-height:1.4; color:color-mix(in oklab, var(--ink) 88%, var(--soft)); }
.pick-facts { margin-top:5px; font-size:13.5px; line-height:1.4; color:var(--soft); }
.pick-acts { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-top:12px; }
/* an Android phone whose pick is not on Google Play yet: the app's own page is the action, its Android words lead,
   and where it is free today is said under the button (shelf.css does the same on a poster) */
.pick .p-get-page { display:none; flex:1 1 100%; }
html[data-os="android"] .pick:not(.has-play) .p-get-page { display:flex; }
html[data-os="android"] .pick:not(.has-play) .p-soon { order:-1; color:var(--ink); font-weight:600; }
@supports not (color:color-mix(in oklab, red, blue)) { .pick { background:var(--bg-2); box-shadow:inset 0 0 0 1px var(--c); } .pick-tag { color:var(--ink); } }

/* ── "Runs": the live apps first, each with its lit dot; an app with no page is plain text, not a chip that goes nowhere ── */
.app-chip.is-live { gap:6px; padding-right:11px; }
.app-chip.is-plain { padding-left:2px; padding-right:4px; border-color:transparent; background:transparent; color:var(--soft); font-weight:500; }

/* ── the page closes on one line and one action ── */
.crew-close { display:flex; flex-direction:column; align-items:center; gap:20px; text-align:center; }
.crew-close h2 { max-width:20ch; }
.crew-close .btn { min-width:min(100%, 240px); }
