/* ── assets/leap/home.css ── */
/* SVLTMK home, the lower half (2026-11-09, the leap). Loaded on the home only, after assets/hub.css
   (scripts/build-hub.mjs, home()). It holds the chapters under the night shift apart from "Out now" (shelf.css) and
   the hat (toy.css): "Coming attractions", the films and story pair, the latest lines and the curtain call. Tokens, type and buttons are
   hub.css's; nothing here is needed above the first screen. Where a hub.css rule had to give way, the line says so. */

/* ── small fixes for everything under the hero ─────────────────────────────── */
/* the smallest labels are 13 px or more (hub.css sets .eyebrow at 12.5) */
main > section .eyebrow { font-size:13px; }
/* a small text link is a 44 px target under a thumb: on a phone, and on any screen that is touched */
@media (max-width:759px), (pointer:coarse) {
  main > section a.text-link { display:inline-flex; align-items:center; min-height:44px; }
  .latest .news-item a { display:flex; align-items:center; min-height:44px; }
}

/* ── Coming next: one compact wall, rows by how close they are ─────────────── */
.coming-next .cn-head { text-align:center; margin-bottom:6px; }
.coming-next .cn-head h2 { max-width:none; }  /* hub.css caps a section heading at 24ch, which is for left-set heads */
.cn-head .text-link { display:inline-flex; align-items:center; min-height:44px; margin-top:4px; }
.cn-group { margin-top:16px; }
/* the row's label: said once, on a hairline, with a dot for how close it is */
.cn-label { display:flex; align-items:center; justify-content:center; gap:14px; margin:0 0 4px;
  font-family:var(--f); font-size:13px; font-weight:700; letter-spacing:.1em; line-height:1.4; text-transform:uppercase; color:var(--soft); }
.cn-label::before, .cn-label::after { content:""; flex:1 1 0; height:1px; background:linear-gradient(90deg, transparent, var(--hair-2)); }
.cn-label::after { background:linear-gradient(270deg, transparent, var(--hair-2)); }
.cn-label span { display:inline-flex; align-items:center; gap:9px; }
.cn-label span::before { content:""; flex:none; width:8px; height:8px; border-radius:50%; background:rgba(243,240,255,.45); }
.cn-group[data-state="review"] .cn-label span::before { background:var(--gold); box-shadow:0 0 10px var(--gold); }
.cn-group[data-state="queued"] .cn-label span::before { background:var(--gold); }

/* The rows. build-hub gives each group its columns for three widths (--nc, --pc, --lc) and, on the first tile of a
   row shorter than that, the grid line it starts on (--ns, --ps, --ls). Two tracks per column, every tile two
   tracks wide, so a short row sits centred. A group is as wide as its columns and never wider than the page. */
.coming-next { --tile:112px; }
.cn-row { --cols:var(--nc); list-style:none; margin:0 auto; padding:0; display:grid; row-gap:2px;
  grid-template-columns:repeat(var(--cols), minmax(0, 1fr) minmax(0, 1fr)); width:calc(var(--cols) * var(--tile)); max-width:100%; }
.cn-row > li { grid-column:var(--ns, auto) / span 2; min-width:0; }
@media (min-width:420px) {
  .coming-next { --tile:126px; }
  .cn-row { --cols:var(--pc); }
  .cn-row > li { grid-column:var(--ps, auto) / span 2; }
}
@media (min-width:760px) {
  .coming-next { --tile:clamp(108px, 12.4vw, 152px); }
  .cn-row { --cols:var(--lc); row-gap:8px; }
  .cn-row > li { grid-column:var(--ls, auto) / span 2; }
  .cn-group { margin:26px auto 0; max-width:calc(6 * var(--tile) + 56px); }  /* the hairline is as wide as a full row, not the page */
  .cn-label { margin-bottom:10px; }
}
/* the tile: hub.css draws the icon, its glow and the monster's face; here it is tighter and answers a press */
.coming-next .icon-tile a, .coming-next .icon-tile .it-card { gap:7px; padding:10px 2px 9px; border-radius:18px; -webkit-tap-highlight-color:transparent; }
.coming-next .it-name { font-size:15px; overflow-wrap:anywhere; }
.coming-next .it-card .it-name { color:var(--soft); }  /* no page yet, so nothing to open: its name sits a step back */
.coming-next .it-icon { transition:transform .16s var(--ease); }
.coming-next .icon-tile a:active .it-icon { transform:scale(.93); }
@media (min-width:760px) { .coming-next .icon-tile a, .coming-next .icon-tile .it-card { gap:9px; padding:14px 6px 12px; } .coming-next .it-name { font-size:1rem; } }
/* live on the web is not "coming": one quiet line under the wall */
.cn-web { margin:14px 0 0; text-align:center; font-size:15px; color:var(--soft); }
.cn-web a { display:inline-flex; align-items:center; min-height:44px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
/* once per row, as it scrolls in, its tiles land a beat apart (hub.js adds .rv and .in only where motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .cn-group.rv .icon-tile > * { opacity:0; transform:translateY(10px) scale(.94); }
  .cn-group.rv.in .icon-tile > * { opacity:1; transform:none;
    transition:opacity .45s var(--ease) calc(60ms + var(--i, 0) * 28ms), transform .55s var(--ease) calc(60ms + var(--i, 0) * 28ms), background-color .2s ease; }
}
@media (prefers-reduced-motion: reduce) { .coming-next .it-icon { transition:none; } .coming-next .icon-tile a:active .it-icon { transform:none; } }

/* ── the films and the story: one pair, equals ─────────────────────────────── */
/* Each card is one link with the same build: its picture, its label, its words, its button. The films card's picture
   is a fan of three stills; the story card's is its quote, set large. Side by side from 900 px the two pictures take
   the same height, so the labels and the buttons line up across the pair. */
.duo { --cw:164px; --sw:128px; --dx:110px; display:grid; grid-template-columns:minmax(0, 1fr); gap:16px; }
.duo-card { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; overflow:hidden;
  padding:26px 20px 26px; border-radius:var(--r-plate); border:1px solid var(--hair-2); background:var(--surface); color:inherit;
  transition:opacity .6s var(--ease), transform .45s var(--ease), border-color .2s; }  /* opacity and transform also carry hub.js's reveal */
.duo-card:hover { color:inherit; }
.duo-card:focus-visible { outline:3px solid var(--cyan); outline-offset:3px; border-radius:var(--r-plate); }
.duo-films { background:linear-gradient(165deg, #1B1547, var(--surface) 72%); }
.duo-art { width:100%; margin-bottom:20px; }
.duo-card .eyebrow { margin-bottom:10px; }
.duo-card h2 { max-width:18ch; }
.duo-card .lede { margin:12px auto 22px; max-width:40ch; }
.duo-card .eyebrow + .lede { margin-top:0; }
.duo-card .btn { margin-top:auto; }
.duo-card .btn, .cc-acts .btn { padding-top:10px; padding-bottom:10px; line-height:1.2; text-align:center; }  /* a label that wraps at large text keeps air inside its pill */
.duo-story .duo-art { display:flex; align-items:center; justify-content:center; padding:6px 0 2px; }
.duo-story .quote { max-width:15ch; }
@media (hover:hover) {
  .duo-films:hover { border-color:var(--gold); }
  .duo-story:hover { border-color:var(--cyan); }
  .duo-card:hover .btn-ghost { background:rgba(62,231,224,.1); color:var(--cyan-2); }
}
@media (hover:hover) and (prefers-reduced-motion: no-preference) { .duo-card:hover { transform:translateY(-3px); } }
.duo-card:active .btn-ghost { transform:scale(.97); }
/* the fan: Luna's poster in front, the crew's short and the night shift behind it, one to each side */
.fan { position:relative; height:calc(var(--cw) * 1.5); }
.fan img { position:absolute; left:50%; display:block; max-width:none; object-fit:cover; border-radius:12px;
  box-shadow:0 22px 44px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12); }
.fan-c { top:0; width:var(--cw); height:calc(var(--cw) * 1.5); margin-left:calc(var(--cw) / -2); }
.fan-l, .fan-r { top:calc(var(--cw) * 1.5 - var(--sw) * 1.25 - 12px); width:var(--sw); height:calc(var(--sw) * 1.25); margin-left:calc(var(--sw) / -2);
  transition:transform .4s var(--ease); }
.fan-l { transform:translateX(calc(var(--dx) * -1)) rotate(-7deg); object-position:27% 50%; }
.fan-r { transform:translateX(var(--dx)) rotate(7deg); }
@media (max-width:419px) { .duo { --cw:146px; --sw:114px; --dx:94px; } }
@media (max-width:359px) { .duo { --cw:128px; --sw:98px; --dx:76px; } }  /* the smallest phones: the whole fan stays inside its card */
@media (hover:hover) and (prefers-reduced-motion: no-preference) {
  .duo-films:hover .fan-l { transform:translateX(calc(var(--dx) * -1 - 8px)) rotate(-9deg); }
  .duo-films:hover .fan-r { transform:translateX(calc(var(--dx) + 8px)) rotate(9deg); }
}
/* the fan opens once, as the card scrolls in */
@media (prefers-reduced-motion: no-preference) {
  .duo-films.rv.in .fan-l { animation:fan-l .8s var(--ease) .15s backwards; }
  .duo-films.rv.in .fan-r { animation:fan-r .8s var(--ease) .15s backwards; }
  @keyframes fan-l { from { transform:translateX(-12px) rotate(-1deg); opacity:0; } }
  @keyframes fan-r { from { transform:translateX(12px) rotate(1deg); opacity:0; } }
}
@media (prefers-reduced-motion: reduce) { .duo-card, .fan-l, .fan-r { transition:none; } }
@media (min-width:760px) { .duo { --cw:190px; --sw:150px; --dx:130px; } .duo-card { padding:36px 32px 34px; } .duo-art { margin-bottom:26px; } }
@media (min-width:900px) {
  .duo { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:24px; }
  .duo-story .duo-art { min-height:calc(var(--cw) * 1.5); padding:0; }
  .duo-story .quote { font-size:clamp(2.1rem, 3.7vw, 3.35rem); max-width:14ch; }
  .duo-story .lede { max-width:34ch; }  /* three lines, like the films card's, so the two blocks of words weigh the same */
}

/* ── the latest: the same four slim lines; on a phone the date and the monster share a row ── */
.latest .news-item time, .latest .news-by { font-size:13px; }
@media (max-width:600px) {
  body.hub .latest .news-item { grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"when by" "text text"; gap:0 12px; padding:12px 2px 6px; }
  .latest .news-item time { grid-area:when; align-self:center; }
  .latest .news-item .news-by { grid-area:by; justify-self:end; }
  .latest .news-item a { grid-area:text; padding:4px 0; }
}

/* ── the curtain call: the six in a row, one line, two actions ─────────────── */
.curtain { text-align:center; }
/* the row runs from screen edge to screen edge on a phone, shoulder to shoulder, so all six stand in one row */
.cc-row { --w:min(104px, calc((100vw - 16px) / 4.2)); --lap:.36; list-style:none; display:flex; justify-content:center; align-items:flex-end;
  margin:0 calc(50% - 50vw); padding:0; }
.cc-row > li { position:relative; flex:none; width:var(--w); margin-left:calc(var(--w) * var(--lap) * -1); }
.cc-row > li:first-child { margin-left:0; }
/* who stands in front of whom: the two ends at the back, the second and the fourth a step forward, the third and
   the fifth between. That way a neighbour's shoulder covers the two wide cuts in the front art (Lumi's ponytail,
   Milo's raised hand: both on their left edge, see CUT_FADE in build-hub). */
.cc-row > li:nth-child(1), .cc-row > li:nth-child(6) { z-index:1; }
.cc-row > li:nth-child(3), .cc-row > li:nth-child(5) { z-index:2; }
.cc-row > li:nth-child(2), .cc-row > li:nth-child(4) { z-index:3; }
.cc-mon { display:block; color:var(--ink); border-radius:14px; -webkit-tap-highlight-color:transparent; }
.cc-mon:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
/* who a tap reaches (review, 11/10): each one's own strip, centred on them and as wide as the step from one to the
   next, so the ones standing behind their neighbours (Lumi) are as easy to tap as the ones in front, and a tap on a
   face never opens a neighbour's page. The pictures take no taps; the two ends keep their outer edge. */
.cc-row > li { pointer-events:none; }
.cc-mon { position:relative; }
.cc-mon::after { content:""; position:absolute; top:0; bottom:0; left:calc(var(--lap) * 50%); right:calc(var(--lap) * 50%); pointer-events:auto; }
.cc-row > li:first-child .cc-mon::after { left:0; }
.cc-row > li:last-child .cc-mon::after { right:0; }
.cc-fig { position:relative; display:block; aspect-ratio:450 / 897; transform-origin:50% 100%; transition:transform .3s var(--ease); }
.cc-fig img { position:absolute; top:0; left:0; width:100%; height:100%; max-width:none; }
/* a front cut-out that runs off its sheet fades out at that edge (--fl, --fr from build-hub) instead of ending on a straight cut */
.cc-soft .cc-front { -webkit-mask-image:linear-gradient(90deg, transparent, #000 var(--fl, 0%), #000 calc(100% - var(--fr, 0%)), transparent);
  mask-image:linear-gradient(90deg, transparent, #000 var(--fl, 0%), #000 calc(100% - var(--fr, 0%)), transparent); }
/* the three-quarter view is drawn on a wider sheet at the same scale (594 for the front's 450), like the ring's */
.cc-fig .cc-34 { left:-16%; width:132%; opacity:0; pointer-events:none; }
.cc-row.posed .cc-fig[data-src]:not(.front) .cc-front { opacity:0; }
.cc-row.posed .cc-fig[data-src]:not(.front) .cc-34 { opacity:1; }
/* each one stands on a pool of its own colour, like on the ring */
.cc-fig::after { content:""; position:absolute; left:6%; right:6%; bottom:-5%; height:13%; border-radius:50%; z-index:-1;
  background:radial-gradient(closest-side, var(--c), transparent); filter:blur(6px); opacity:.7; }
.cc-name { display:block; margin-top:8px; font-family:var(--fd); font-weight:600; font-size:15px; line-height:1.2; color:color-mix(in srgb, var(--c) 42%, #fff); }
@media (hover:hover) {
  .cc-mon:hover { color:var(--ink); }
  .cc-mon:hover .cc-name { color:#fff; }
}
/* a monster answers the visitor: a step forward under the mouse, a small press under a thumb */
@media (hover:hover) and (prefers-reduced-motion: no-preference) { .cc-mon:hover .cc-fig { transform:translateY(-6px) scale(1.03); } }
@media (prefers-reduced-motion: no-preference) { .cc-mon:active .cc-fig { transform:scale(.97); } }
@media (prefers-reduced-motion: reduce) { .cc-fig { transition:none; } }
.curtain h2 { margin:28px auto 0; max-width:19ch; }
.cc-acts { display:flex; flex-direction:column; gap:12px; margin:22px auto 0; max-width:340px; }
/* the studio's App Store page is no use on an Android phone: never a store it cannot use (review, 11/10) */
html[data-os="android"] .cc-acts .btn-ghost { display:none; }
/* the films card's eyebrow on its deep violet: a lighter violet keeps it over 4.5:1 (7.3:1; review, 11/10) */
.duo-films .eyebrow { color:#BB99FF; }
@media (min-width:600px) { .cc-acts { flex-direction:row; justify-content:center; max-width:none; } }
@media (min-width:760px) {
  .cc-row { --w:clamp(118px, 12.2vw, 176px); --lap:.14; margin:0; }
  .cc-name { font-size:1.15rem; margin-top:10px; }
  .curtain h2 { margin-top:36px; max-width:none; }
  .cc-acts { margin-top:26px; }
}

/* ── assets/leap/hero.css ── */
/* The leap, hero: NOW SHOWING (2026-11-09). One part of /assets/leap.css (scripts/build-hub.mjs joins the parts).
   Whoever stands at the front of the ring presents its live app. Under the six runs the bill (every live app's icon,
   the one on the ticket ringed in its monster's colour), then one marquee line, and from it hangs one ticket: who
   presents, the name, the app's own line, and a stub with the official store badge, "Free" and the rating where
   Apple shows one. The page's ONE App Store badge lives on the ticket that shows; the bill carries none.
   Flat colour, crisp edges, no glow of its own: the only light is the strand that hands the ticket over
   (assets/leap/hero.js). Markup: scripts/hub/handoff.mjs. The stage's own geometry lives in assets/hybrid.css.
   Sizes are px like their neighbours in hub.css (.eyebrow, .rating), so a phone's larger text scales them once.
   Phone first: the stub hangs under the show; from 1024 px the ticket lies flat with the stub to the right. */

/* ── the words above the ring ─────────────────────────────────────────────────────────────────── */
.hero .lede span { display:inline-block; }                    /* one sentence a line where both do not fit on one */
.hero .lede .lede-do { color:var(--ink); font-weight:600; }
/* both buttons stand under the ticket at every width (hub.css hides the outline one from 760 px) */
@media (min-width:760px) { .hero .hero-ctas .btn-ghost { display:inline-flex; } }
@media (max-width:759px) {
  .hero .hero-ctas { margin-top:18px; gap:10px; }
  .hero .hero-ctas .btn { flex:1 1 8.4em; padding:0 12px; white-space:nowrap; }   /* two equal halves; with very large text, one over the other */
}

/* ── the block ────────────────────────────────────────────────────────────────────────────────── */
.now { --bh:44px; --ground:#0B0A1F; --cl:color-mix(in oklch, var(--c) 56%, #fff); --edge:color-mix(in oklch, var(--c) 52%, transparent);
  position:relative; z-index:4; width:100%; max-width:560px; margin:24px auto 0; text-align:left; }
html[data-mode="3d"].svl-sky-on .now { --ground:#08071A; }
html[data-mode="3d"] .now { margin-top:0; }

/* ── the bill: every live app, at full brightness always (a dimmed icon reads as "not available") ── */
/* One row while the screen can hold it, else two even rows (--half each): never an icon cut by the screen's edge.
   The row may run into the page's gutters, so eight 44 px targets fit a 360 px phone. */
.bill { --slot:44px; --row:clamp(calc(var(--half) * var(--slot)), calc((100vw - var(--n) * var(--slot) - 7px) * 9999), calc(var(--n) * var(--slot)));
  display:flex; flex-wrap:wrap; justify-content:center; margin:0 calc(-1 * var(--pad)); padding:0 max(0px, calc((100% + 2 * var(--pad) - var(--row)) / 2)); }
.bill-i { position:relative; flex:none; display:grid; place-items:center; width:var(--slot); height:var(--slot); border-radius:12px;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.bill-i img { display:block; width:36px; height:36px; border-radius:23%; box-shadow:0 0 0 1px rgba(255,255,255,.16); transform:scale(.89);
  transition:transform .22s var(--ease), box-shadow .22s ease; }
/* the one on the ticket: a ring in its monster's colour and a size up, never colour alone */
.bill-i.is-on img { transform:none; box-shadow:0 0 0 2px var(--ground), 0 0 0 4px color-mix(in oklch, var(--c) 58%, #fff); }
@media (hover:hover) { .bill-i:hover img { transform:none; } }
.bill-i:active img { transform:scale(.84); }
.bill-i:focus-visible { outline:2px solid var(--gold); outline-offset:-1px; }

/* ── the marquee line ─────────────────────────────────────────────────────────────────────────── */
.now-bar { display:flex; align-items:center; gap:12px; margin:3px 0 7px; font:700 11px/1 var(--f); letter-spacing:.3em; text-transform:uppercase;
  color:var(--cl); transition:color .5s ease; }
.now-bar span { margin-right:-.3em; }   /* the last letter's tracking, handed back: the words sit on the true centre */
.now-bar i { position:relative; flex:1; height:1px; background:linear-gradient(90deg, transparent, color-mix(in oklch, var(--c) 78%, transparent)); }
.now-bar i:last-child { transform:scaleX(-1); }
/* when the strand lands, the line lights once from the centre out (hero.js sets .is-lit for one beat) */
.now-bar i::after { content:""; position:absolute; inset:-.5px 0; background:linear-gradient(90deg, transparent, var(--cl) 45%, #fff); transform:scaleX(0); transform-origin:100% 50%; opacity:0; }
.now.is-lit .now-bar i::after { animation:now-run .62s cubic-bezier(.2,.7,.2,1) both; }
.now.is-lit .now-bar span { animation:now-flash .62s ease-out both; }
@keyframes now-run { 0% { transform:scaleX(0); opacity:1; } 55% { transform:scaleX(1); opacity:1; } 100% { transform:scaleX(1); opacity:0; } }
@keyframes now-flash { 0%, 30% { color:#fff; } 100% { color:var(--cl); } }
/* the strand itself: one small canvas between the front monster's feet and the line, drawn only while a light travels */
.now-light { position:absolute; left:50%; top:0; width:320px; height:0; margin-left:-160px; pointer-events:none; z-index:3; }

/* every ticket lies in the same cell, so the block is as tall as its tallest ticket and a swap moves nothing */
.now-slot { display:grid; grid-template-columns:minmax(0, 1fr); touch-action:pan-y pinch-zoom; }   /* a pinch still zooms the page (review, 11/10) */
/* the round's own stop for a screen reader or a keyboard (hero.js): out of sight until it has the focus, then a pill
   over the bill's row, so it adds no height to the first screen */
.now-stop { position:absolute; left:50%; top:0; z-index:6; transform:translateX(-50%); min-height:44px; padding:0 20px; border-radius:999px;
  border:1px solid rgba(243,240,255,.35); background:#16143A; color:#F3F0FF; font:600 15px/1 var(--f, 'Inter', system-ui, sans-serif); cursor:pointer; }
.now-stop:not(:focus) { clip-path:inset(50%); width:1px; height:1px; min-height:0; padding:0; border:0; overflow:hidden; white-space:nowrap; }
.now-stop:focus-visible { outline:3px solid #3EE6E0; outline-offset:3px; }
.now.is-live .now-slot { clip-path:inset(0 -100vmax -30px -100vmax); }   /* a new ticket comes out from under the line */

/* ── the ticket ───────────────────────────────────────────────────────────────────────────────── */
.tk { grid-area:1 / 1; position:relative; display:grid; grid-template-columns:minmax(0, 1fr); grid-template-rows:1fr auto auto; min-width:0;
  border-radius:16px; overflow:hidden; isolation:isolate;
  --cl:color-mix(in oklch, var(--c) 56%, #fff); --edge:color-mix(in oklch, var(--c) 52%, transparent);
  background:color-mix(in oklab, var(--c) 17%, #141333); }
/* one crisp edge over both tones of the paper */
.tk::after { content:""; position:absolute; inset:0; z-index:2; border-radius:inherit; box-shadow:inset 0 0 0 1px var(--edge); pointer-events:none; }
.tk[hidden] { display:none; }
.now.is-live .tk { visibility:hidden; }
.now.is-live .tk.is-on, .now.is-live .tk.is-out { visibility:visible; }
.tk.is-on { z-index:1; }
.tk.is-out { pointer-events:none; }
/* the official badges are never moved, turned or faded: a ticket leaves and prints without them, and they stand
   in their place once it hangs still */
.tk.is-out .tk-badges, .tk.is-in .tk-badges { visibility:hidden; }
/* a store link never changes under a finger: for a beat after a swap the ticket takes no taps (hero.js guards too) */
.now.is-locked .tk a { pointer-events:none; }

/* the show: the icon, who presents, the name, the app's own line */
.tk-show { position:relative; display:grid; grid-template-columns:auto minmax(0, 1fr) auto; grid-template-rows:auto auto auto; column-gap:14px;
  align-content:center; padding:14px 16px 0; container:show / inline-size; }
.tk-icon { grid-area:1 / 1 / 4 / 2; align-self:center; display:block; width:72px; height:72px; border-radius:22.4%; overflow:hidden; box-shadow:0 0 0 1px rgba(255,255,255,.16); }
.tk-icon img { display:block; width:100%; height:100%; }
.tk-by { grid-area:1 / 2; font:700 11px/1.3 var(--f); letter-spacing:.17em; text-transform:uppercase; color:var(--cl); }
/* the monster's name is the way to its card on /crew/ (it took over from the speech bubble's "Meet Sol") */
.tk-by a { position:relative; z-index:1; color:inherit; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.tk-by a::after { content:""; position:absolute; inset:-13px -8px -5px; }   /* a finger-size target around a short word */
.tk-name { grid-area:2 / 2 / 3 / 4; margin-top:1px; font:600 31px/1.06 var(--fd); letter-spacing:-.005em; overflow-wrap:anywhere; }
.tk-name a { color:var(--ink); border-radius:8px; }
.tk-name a::after { content:""; position:absolute; inset:0; }   /* the whole show half is the way to the app's page */
.tk-line { grid-area:3 / 2 / 4 / 4; margin-top:3px; min-height:calc(2 * 1.36em); font-size:15px; line-height:1.36; color:var(--soft); text-wrap:balance; }
/* the labelled way to the app's page, in the presenter's colour (the name is the link; this is its sign) */
.tk-see { grid-area:1 / 3; align-self:center; font:600 13px/1.3 var(--f); color:var(--cl); white-space:nowrap; }
.tk-see::after { content:"\2192"; display:inline-block; margin-left:.35em; transition:transform .25s var(--ease); }
@media (hover:hover) { .tk-show:hover .tk-name a { color:#fff; } .tk-show:hover .tk-see::after { transform:translateX(.22em); } }
/* where the two do not fit on one line (a narrow phone, or larger text), the sign takes its own line under the app's */
@container show (max-width:20em) {
  .tk-see { grid-area:4 / 2 / 5 / 4; justify-self:start; margin-top:4px; }
  .tk-icon { grid-row-end:5; }
}

/* the perforation, and the two half-moons where the stub tears off */
.tk-perf { position:relative; z-index:3; height:2px; margin:10px 0 -1px;
  background:radial-gradient(circle at 50% 50%, color-mix(in oklch, var(--c) 62%, rgba(255,255,255,.25)) 0 1px, transparent 1.3px) 4px 0 / 9px 2px repeat-x; }
.tk-perf::before, .tk-perf::after { content:""; position:absolute; top:50%; width:20px; height:20px; margin-top:-10px; border-radius:50%;
  background:var(--ground); box-shadow:inset 0 0 0 1px var(--edge); }
.tk-perf::before { left:-10px; }
.tk-perf::after { right:-10px; }

/* the stub: one grid for every app. The quiet line (Free, the proof) on a fixed left edge, the badge(s) on a fixed
   right edge. The badge leads; the price is a caption. */
.tk-stub { padding:12px 16px 13px; background:color-mix(in oklab, var(--c) 9%, #0F0E29); }   /* a step darker than the show */
.tk-get { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px; min-height:var(--bh); }
.tk-badges { order:1; display:flex; align-items:center; gap:12px; margin-left:auto; }
.tk .store-badge img { height:var(--bh); width:auto; }
.tk .play-badge { --h:var(--bh); }
.tk-meta { flex:1 1 0; display:flex; flex-wrap:wrap; align-items:center; gap:1px 7px; min-width:0; font-size:13px; line-height:1.3; color:var(--soft); }
.tk-free, .tk-score { font-weight:700; color:var(--ink); }
.tk-stars { font-size:12px; line-height:1; letter-spacing:.1em; color:var(--gold); }
@supports ((-webkit-background-clip:text) or (background-clip:text)) {
  /* five stars filled as far as the rating goes */
  .tk-stars { background:linear-gradient(90deg, var(--gold) var(--r, 100%), rgba(255,255,255,.24) var(--r, 100%)); -webkit-background-clip:text; background-clip:text; color:transparent; }
}
.tk-rnote, .tk-android { flex-basis:100%; }
.tk-android { display:none; }   /* the hub's own note for an app that is not on Google Play yet, on Android only */
.tk-sr, .now-say { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.tk-qr { display:none; }
.tk .store-badge:focus-visible, .tk .play-badge:focus-visible, .tk-name a:focus-visible, .tk-by a:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }

/* ── device sense (assets/hybrid-mode.js names the device on <html> before the first paint) ────── */
/* An iPhone or iPad sees the App Store badge alone. An Android phone sees Google Play alone where the app is there
   (so Apple's badge is never second in a row), else the App Store badge with the hub's own Android note. Anything
   else sees both, Apple's first. The badges are only shown or hidden, never restyled. */
html[data-os="ios"] .tk .play-badge { display:none; }
html[data-os="android"] .tk[data-play] .store-badge { display:none; }
html[data-os="android"] .tk-android { display:block; }

@media (max-width:1023px) {
  /* a narrow screen that is neither (a small laptop window): two badges do not fit beside the line, so on every
     ticket the line stands over the badges */
  html:not([data-os="ios"]):not([data-os="android"]) .tk-meta { flex-basis:100%; }
}
@media (max-width:420px) {
  .tk-show { column-gap:12px; padding-left:14px; padding-right:14px; }
  .tk-stub { padding-left:14px; padding-right:14px; }
  .tk-icon { width:68px; height:68px; }
  .tk-name { font-size:29px; }
}
@media (max-width:359px) { .tk-icon { width:60px; height:60px; } }

/* ── from 760: more air ───────────────────────────────────────────────────────────────────────── */
@media (min-width:760px) {
  .now-bar { margin:4px 0 9px; }
}

/* ── from 1024: the ticket lies flat, the stub to the right, with room for comfortable type ───── */
@media (min-width:1024px) {
  .now { --stub:354px; max-width:980px; }
  .tk { grid-template-columns:minmax(0, 1fr) auto var(--stub); grid-template-rows:auto; border-radius:18px; }
  .tk-show { column-gap:22px; padding:20px 4px 20px 24px; }
  .tk-icon { width:96px; height:96px; }
  .tk-by { font-size:12px; }
  .tk-name { margin-top:2px; font-size:40px; }
  .tk-line { margin-top:4px; font-size:17px; min-height:calc(2 * 1.36em); }
  .tk-see { font-size:14px; }
  .tk-perf { align-self:stretch; width:2px; height:auto; margin:0 -1px 0 14px;
    background:radial-gradient(circle at 50% 50%, color-mix(in oklch, var(--c) 62%, rgba(255,255,255,.25)) 0 1px, transparent 1.3px) 0 4px / 2px 9px repeat-y; }
  .tk-perf::before, .tk-perf::after { top:auto; left:50%; right:auto; margin:0 0 0 -10px; }
  .tk-perf::before { top:-10px; }
  .tk-perf::after { bottom:-10px; }
  /* the stub keeps one width on every ticket, so the perforation never moves: the badge(s), then the quiet line */
  .tk-stub { display:grid; grid-template-columns:minmax(0, 1fr); align-content:center; row-gap:9px; padding:20px 24px 20px 23px; }
  .tk-get { flex-direction:column; flex-wrap:nowrap; align-items:flex-start; justify-content:center; gap:10px; min-height:0; }
  .tk-badges { order:0; margin-left:0; gap:14px; }
  html:not([data-os="ios"]):not([data-os="android"]) .tk-meta, .tk-meta { flex:none; }
  .tk-meta { flex-wrap:nowrap; gap:7px; white-space:nowrap; }
  .tk-rnote, .tk-android { flex-basis:auto; }
  .tk-rnote::before { content:"\00B7"; margin-right:7px; }
}
/* A laptop cannot install from a badge: from 1100 px, with a mouse, the stub carries the App Store QR code at the
   far end, the mirror of the icon at the near end (96 px, a little of the page showing through, as on the app
   pages), with the site's own words for it. Not on a phone or a tablet, which install from the badge itself. */
@media (min-width:1100px) and (pointer:fine) {
  html:not([data-os="ios"]):not([data-os="android"]) .now { --stub:492px; }
  html:not([data-os="ios"]):not([data-os="android"]) .tk-stub { grid-template-columns:minmax(0, 1fr) 96px; column-gap:20px; }
  html:not([data-os="ios"]):not([data-os="android"]) .tk-qr { display:contents; }
  .tk-qr img { grid-area:1 / 2 / 3 / 3; align-self:center; display:block; width:96px; height:96px; border-radius:8px; opacity:.86; }
  .tk-qr figcaption { grid-area:2 / 1; font-size:13px; font-weight:600; line-height:1.3; color:var(--soft); }
}

/* ── calm paths ───────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion:reduce) {
  .now-bar, .bill-i img, .tk-see::after { transition:none; }
  .now.is-lit .now-bar i::after, .now.is-lit .now-bar span { animation:none; }
  .now-light { display:none; }
}
@media (prefers-contrast:more) { .tk { background:#121130; } }
@media print { .now-light { display:none; } }

/* ── 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/toy.css ── */
/* The leap, toy: THE HAT, the home's intermission act. One part of /assets/leap.css (scripts/build-hub.mjs joins the parts). */
/* scripts/hub/toy.mjs writes the markup, scripts/hub/hat-art.mjs draws the hat, assets/leap/toy.js makes it answer a
   press. Sits on assets/hub.css (tokens, type, buttons). Classes are .tophat-*: hub.css already owns .hat-sec,
   .hat-copy, .hat-film, .hat-plate and .hat-sr (the crew's short, "The Hat", on /crew/).

   ONE PICTURE: a monster stands full height beside the smaller hat, the app's icon has risen out of the hat, and the
   block they stand on carries the app's name, its own line, one button to its store and one line of Apple's facts.
   Under the block, the button that pulls another app. On a laptop the words and that button stand to the left and
   the picture to the right.

   Three ways to meet it, one layout:
   plain   no script: the app that is already out, the hat as a still, one link back to the poster wall.
   live    the script runs (.is-live): the button and the hat pull another app. Nothing changes place.
   still   reduced motion, Save-Data or a slow line: live, with plain swaps.
   This file never moves anything by itself, and nothing here runs at rest.

   EVERY CARD IS ONE HEIGHT, and its button never moves: all the cards are in the page, and each one hands its lines
   straight to the block's shared rows (.tophat-card lays out nothing itself), so a row is as tall as the tallest
   line of any card. One card shows; the others only keep the rows. No measuring, at any width or text size.

   Sizes of words are in px on purpose: a phone's larger text setting then scales every one of them alike. The art
   (the monster, the hat, the icon) is measured in the monster's height, --mh, so every screen is the same drawing.

   Layers inside the stage, back to front (one stacking context, so light and icons really pass through the hat):
   1 the far half of the hat and its light   2 the strand and the sparks (script only)   3 the icon
   4 the monster   5 the near half of the hat   6 the press target and the flash over a star */

/* ── the chapter ── */
/* a link to #hat 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
   (hub.css: body.hub .chapter), so both are taken back here. */
.tophat { --land:72px; scroll-margin-top:calc(var(--land) - 84px - clamp(88px, 12vw, 184px)); }
.tophat-in { --c:#7C3AED;
  --mh:clamp(204px, calc(100vh - 530px), 300px);       /* THE MONSTER's height: the whole act fits a 440 x 760 screen, and it grows on a taller one */
  --hw:calc(var(--mh) * .64);                          /* the hat's width: it is the smaller of the two */
  --line:#150A33;                                      /* the hat's one drawing line */
  --star:#FFD76A;                                      /* a lit star: the gold of the hat's stars in the crew's short */
  position:relative; display:grid; grid-template-columns:minmax(0, 1fr); grid-template-areas:"head" "stage" "cards" "ctl"; justify-items:center; }
@supports (height:1svh) { .tophat-in { --mh:clamp(204px, calc(100svh - 530px), 300px); } }
@media (max-width:399px) {                             /* a narrower phone: the line of facts may take two rows, so the monster gives a little */
  .tophat-in { --mh:clamp(196px, calc(100vh - 554px), 290px); }
  @supports (height:1svh) { .tophat-in { --mh:clamp(196px, calc(100svh - 554px), 290px); } }
}
.tophat-head, .tophat-stage, .tophat-cards, .tophat-ctl { width:100%; max-width:480px; }
.tophat-say { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ── the words above ── */
.tophat-head { grid-area:head; text-align:center; }
.tophat-head .eyebrow { margin-bottom:4px; }
.tophat-head h2 { max-width:none; font-size:min(33px, 7.5vw); line-height:1.04; }
.tophat-lede { margin:6px auto 0; max-width:350px; font-size:15px; line-height:1.42; color:var(--soft); text-wrap:balance; }
/* a link inside a sentence: underlined, and 44 px tall under a thumb without moving the line */
.tophat-film { margin:-13px 0; padding:13px 0; font-weight:600; white-space:nowrap; text-decoration:underline; text-underline-offset:3px; }

/* ── the stage: the monster, the hat, the icon. Its lower edge is the floor: the top of the block. ── */
.tophat-stage { grid-area:stage; position:relative; isolation:isolate; height:var(--mh); margin-top:6px;
  -webkit-clip-path:inset(-400px -400px 0 -400px); clip-path:inset(-400px -400px 0 -400px); }   /* nothing shows under the floor */

/* the monster: fixed art. Placed, scaled, layered and lit; never turned by hand, never stretched. Every view lies in
   the same wide sheet (594 x 897), so a change of view keeps the feet where they are. */
.tophat-mon { position:absolute; z-index:4; left:calc(50% - var(--mh) * .63); bottom:0; width:calc(var(--mh) * .6622); height:var(--mh); pointer-events:none; transform-origin:50% 100%; }
.tophat-mon picture { display:contents; }
.tophat-pose { position:absolute; left:0; top:0; width:100%; height:100%; max-width:none; object-fit:contain; object-position:50% 100%; opacity:0; }
.tophat-pose.is-shown { opacity:1; }
/* the front view is drawn on a narrower sheet (450 of the 594); where it runs off that sheet the edge fades out */
.tophat-pose[data-pose="front"] { left:12.12%; width:75.76%; }
.tophat-pose.is-soft { -webkit-mask-image:linear-gradient(90deg, transparent, #000 var(--fl, 0%), #000 calc(100% - var(--fr, 0%)), transparent);
  mask-image:linear-gradient(90deg, transparent, #000 var(--fl, 0%), #000 calc(100% - var(--fr, 0%)), transparent); }
/* it stands in a pool of its own colour, as on the ring (the cut-outs fade at the knees: the pool is what they fade into) */
.tophat-mon::after { content:""; position:absolute; z-index:-1; left:4%; right:4%; bottom:calc(var(--mh) * -.07); height:calc(var(--mh) * .17); border-radius:50%;
  background:radial-gradient(closest-side, color-mix(in srgb, var(--c) 74%, transparent), color-mix(in srgb, var(--c) 28%, transparent) 56%, transparent); }

/* the hat (hat-art.mjs: two layers of one drawing). It stands alone on the floor; nobody holds it. */
.tophat-rig { --glow:var(--c);                         /* the light inside the hat: the colour of the monster whose app is out */
  --lamp:var(--glow);                                  /* the lamp itself: paler than what it lights, where the browser can mix colours */
  position:absolute; left:calc(50% - var(--mh) * .01); bottom:calc(var(--hw) * -.0834); width:var(--hw); aspect-ratio:var(--ar, 360 / 316); }
@supports (color:color-mix(in oklab, red 50%, white)) { .tophat-rig { --lamp:color-mix(in oklab, var(--glow) 60%, #fff); } }
.tophat-art { position:absolute; left:0; top:0; display:block; width:100%; height:100%; max-width:none; overflow:visible; transform-origin:50% var(--floor, 90%); }  /* it squashes onto the floor it stands on */
.tophat-back { z-index:1; } .tophat-front { z-index:5; }
.tophat-ln { fill:none; stroke:var(--line); stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round; }
.tophat-ln-in { stroke-width:2.2; }
.tophat-glow-stop { stop-color:var(--lamp); }
.tophat-rim { fill:none; stroke:var(--lamp); stroke-width:2.2; stroke-linecap:round; opacity:.55; }   /* the inside light on the near edge of the mouth */
.tophat-star { fill:#3F2392; stroke:#3F2392; stroke-width:1.6; stroke-linejoin:round; }
.tophat-halo { opacity:0; }
.tophat-st.is-lit .tophat-star { fill:var(--star); stroke:var(--star); }
.tophat-st.is-lit .tophat-halo { opacity:1; }
/* the light that leaves the mouth: half a dome that starts ON the mouth (so it reads as light, not as a cloud), and
   over it a soft column that holds the icon up. The near half of the brim is drawn over its foot. */
.tophat-bloom { position:absolute; left:0; top:0; z-index:1; width:100%; height:100%; pointer-events:none; opacity:.86; transform-origin:50% var(--floor, 90%); }
.tophat-bloom::before { content:""; position:absolute; left:14%; right:14%; bottom:calc(100% - var(--mouth, 25%)); height:58%;
  background:radial-gradient(50% 100% at 50% 100%, color-mix(in srgb, var(--lamp) 56%, transparent), color-mix(in srgb, var(--glow) 18%, transparent) 42%, transparent 72%); }
.tophat-bloom::after { content:""; position:absolute; left:20%; right:20%; bottom:calc(100% - var(--mouth, 25%)); height:calc(var(--hw) * .56);
  background:linear-gradient(0deg, color-mix(in srgb, var(--lamp) 40%, transparent), color-mix(in srgb, var(--glow) 12%, transparent) 62%, transparent);
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 38%, #000 62%, transparent); mask-image:linear-gradient(90deg, transparent, #000 38%, #000 62%, transparent); }
/* the app's icon: out of the hat, standing in its light at the monster's eye level */
.tophat-icon { --iw:calc(var(--hw) * var(--icon, .44));   /* its size and its gap above the brim come from toy.mjs (ICON), which also tells the script how far it travels */
  position:absolute; z-index:3; left:50%; bottom:calc(100% - var(--brim, 14%) + var(--hw) * var(--gap, .11)); width:var(--iw); height:auto; aspect-ratio:1; max-width:none;
  margin-left:calc(var(--iw) / -2); border-radius:23%; background:#15142B; pointer-events:none;
  box-shadow:0 0 0 1px rgba(255,255,255,.16), 0 calc(var(--hw) * .06) calc(var(--hw) * .1) calc(var(--hw) * -.05) rgba(0,0,0,.85), 0 0 calc(var(--hw) * .26) calc(var(--hw) * -.03) color-mix(in oklch, var(--glow) 74%, transparent); }
/* THE STRAND (the script adds it, and only where motion is on): one hair of light from the hat's spout to the icon's
   place. The site's recipe, drawn as three centred bands instead of three canvas strokes: a soft pass and a tight pass
   in the monster's colour, a white core. It only ever grows (scaleY) and fades, so the compositor moves it alone. */
.tophat-strand { --tight:var(--glow); --soft:transparent;
  position:absolute; z-index:2; left:50%; bottom:calc(100% - var(--spout, 27.6%)); width:32px; margin-left:-16px; pointer-events:none;
  height:calc(var(--spout, 27.6%) - var(--brim, 14%) + var(--hw) * (var(--gap, .11) + var(--icon, .44) * .42)); }
@supports (color:color-mix(in srgb, red 50%, white)) { .tophat-strand { --tight:color-mix(in srgb, var(--glow) 50%, transparent); --soft:color-mix(in srgb, var(--glow) 16%, transparent); } }
.tophat-hair { position:absolute; left:50%; top:0; width:7px; height:100%; margin-left:-3.5px; border-radius:3.5px; opacity:0; transform-origin:50% 100%;
  background:linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.85)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--tight), var(--tight)) 50% 0 / 2.4px 100% no-repeat, linear-gradient(var(--soft), var(--soft)) 50% 0 / 7px 100% no-repeat; }
/* the packet of light at the strand's head: it rides up with it and goes out when it arrives */
.tophat-spark { position:absolute; left:0; top:-16px; width:100%; height:calc(100% + 16px); opacity:0;
  background:radial-gradient(16px 16px at 50% 16px, rgba(255,255,255,.95), var(--glow) 30%, transparent) no-repeat; }
/* a star lights: a flash of gold laid over it (the drawing itself only changes colour, once) */
.tophat-flash { position:absolute; z-index:6; width:calc(var(--hw) * .2); height:calc(var(--hw) * .2); margin:calc(var(--hw) * -.1) 0 0 calc(var(--hw) * -.1); border-radius:50%; opacity:0; pointer-events:none;
  background:radial-gradient(closest-side, rgba(255,247,220,.95), rgba(255,215,106,.55) 40%, transparent); }
/* the star sparks of the one burst: they leave the spout behind the near brim, each in a crew colour (--k) at its own size (--s) */
.tophat-spk { position:absolute; z-index:2; left:50%; top:var(--spout, 27.6%); width:var(--s, 8px); height:var(--s, 8px); margin:calc(var(--s, 8px) / -2) 0 0 calc(var(--s, 8px) / -2); opacity:0; pointer-events:none;
  background:radial-gradient(circle, #fff 0, #fff 14%, var(--k, #FFD76A) 46%);
  -webkit-clip-path:polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); clip-path:polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
/* the hat is a second way to press (the button under the block is the real one: this one is for a finger or a mouse) */
.tophat-tap { display:none; position:absolute; z-index:6; left:2%; right:2%; top:calc(var(--brim, 14%) - 2%); bottom:calc(100% - var(--floor, 90%)); border-radius:22px; cursor:pointer;
  touch-action:manipulation; -webkit-tap-highlight-color:transparent; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
.is-live .tophat-tap { display:block; }
@media (hover:hover) { .tophat-tap:hover ~ .tophat-bloom { opacity:1; } }   /* under a mouse the hat's light comes up */

/* ── the block they stand on: the cards ── */
.tophat-cards { grid-area:cards; position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0, 1fr); justify-items:center; padding:10px 16px 9px; text-align:center; }
/* the plate: the night surface, lit from above in the monster's colour; its top edge is the floor line */
.tophat-plate { position:absolute; left:0; top:0; z-index:-1; width:100%; height:100%; border-radius:10px 10px 26px 26px; pointer-events:none;
  background:linear-gradient(180deg, color-mix(in srgb, var(--c) 38%, var(--surface)), color-mix(in srgb, var(--c) 12%, var(--surface)) 58%, var(--surface));
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, rgba(255,255,255,.08)), 0 26px 40px -30px rgba(0,0,0,.9); }
.tophat-plate::before { content:""; position:absolute; left:0; right:0; top:0; height:2px; border-radius:2px;
  background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 68%, #fff) 20%, color-mix(in srgb, var(--c) 68%, #fff) 80%, transparent); }
/* while a pull runs, one cover in the new colour lies over the words: the cards change places under it (script only) */
.tophat-cover { z-index:2; opacity:0; box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, rgba(255,255,255,.08)); }
/* one card shows. A card lays out nothing itself: its lines are the block's rows. */
.tophat-card { display:contents; visibility:hidden; }
.tophat-card.is-on { visibility:visible; }
.tophat-card.is-out { pointer-events:none; }
.tophat-by { grid-area:1 / 1; }
.tophat-name { grid-area:2 / 1; }
.tophat-line { grid-area:3 / 1; }
.tophat-get { grid-area:4 / 1; }
.tophat-facts { grid-area:5 / 1; }
.tophat-see { grid-area:6 / 1; }
.tophat-by { font:700 12px/1.35 var(--f); letter-spacing:.1em; text-transform:uppercase; color:color-mix(in srgb, var(--c) 36%, #fff); }
.tophat-name { margin-top:1px; font-size:31px; line-height:1.06; overflow-wrap:anywhere; }
.tophat-name a { margin:-7px -6px; padding:7px 6px; color:var(--ink); }
.tophat-name a:hover { color:var(--ink); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px; }
.tophat-line { align-self:center; max-width:350px; margin-top:4px; font-size:15.5px; line-height:1.38; color:var(--soft); text-wrap:balance; }
/* THE ACTION: one real link, button-shaped, as tall as a thumb needs, in the monster's own colour with an ink that
   passes AA on it (toy.mjs checks it). Flat: no glow, no badge artwork. It is never the thing that moves. */
.tophat-get { display:flex; align-items:center; justify-content:center; width:100%; max-width:360px; min-height:48px; margin-top:8px; padding:6px 18px; border-radius:var(--r-pill);
  background:var(--btn, var(--c)); color:var(--btn-ink, #0B0A1F); font:600 17.5px/1.15 var(--fd); 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; -webkit-tap-highlight-color:transparent; }
.tophat-get:hover, .tophat-get:active { background:var(--hov, var(--c)); color:var(--btn-ink, #0B0A1F); }
.tophat-get:focus-visible { outline:3px solid var(--cyan); outline-offset:3px; border-radius:var(--r-pill); }
.tophat-get-play, .tophat-get-page { display:none; }
.tophat-facts { align-self:center; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:1px 12px; margin-top:8px; font-size:14px; line-height:1.45; color:var(--soft); }
.tophat-on-play, .tophat-soon { display:none; }
/* a rating always says whose it is, on every device (DESIGN.md; review, 11/10): "on the App Store" goes to a line of
   its own when the card is too narrow for all of it */
.tophat-rate { display:inline-flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:0 6px; }
.tophat-rate > * { white-space:nowrap; }
/* five stars drawn twice: a quiet row, and a gold row over it as wide as the real rating (--r) */
.tophat-stars { position:relative; display:inline-block; font-size:13px; line-height:1; letter-spacing:1.5px; color:rgba(255,255,255,.24); }
.tophat-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); }
.tophat-rate b { font-weight:700; color:var(--ink); }
/* a second store and the way to the app's page are plain text links; each is 44 px tall under a thumb without moving a line */
.tophat-also { margin:-8px 0 -14px; padding:8px 0 14px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.tophat-see { display:inline-flex; align-items:center; gap:6px; min-height:44px; margin:-10px 0 -9px; font-size:15px; font-weight:600; }

/* 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 the button goes to Google Play where the app is
   there and the line says so (the rating stays Apple's and says so); where it is not there the button opens the
   app's own page and the line says when Android comes. With no script: the App Store button and both stores. */
html[data-os="ios"] .tophat-also { display:none; }
html[data-os="android"] .tophat-get-apple, html[data-os="android"] .tophat-also, html[data-os="android"] .has-play .tophat-on-apple, html[data-os="android"] .tophat-card:not(.has-play) .tophat-see { display:none; }
html[data-os="android"] .tophat-get-play, html[data-os="android"] .tophat-get-page { display:flex; }
html[data-os="android"] .tophat-on-play, html[data-os="android"] .tophat-soon { display:inline; }

/* ── the one control: big, under the thumb, under the block ── */
.tophat-ctl { grid-area:ctl; min-height:73px; margin-top:7px; text-align:center; }   /* its room is kept from the first paint: nothing below moves when the script arrives */
.tophat-btn { width:100%; min-height:48px; font-size:18px; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; -webkit-user-select:none; user-select:none; }
.tophat-btn[hidden], .tophat-note[hidden] { display:none; }
@media (hover:none) { .tophat-btn:hover { background:transparent; color:var(--cyan); } }   /* a finger leaves no hover behind: the button looks the same before every press */
.tophat-note { min-height:1.45em; margin-top:4px; font-size:14px; line-height:1.45; color:var(--soft); }
.tophat-all { gap:6px; margin-top:3px; font-size:16px; white-space:normal; }
.is-live .tophat-all { display:none; }

/* ── tablets and small laptop windows: the same picture, a larger monster ── */
@media (min-width:600px) {
  .tophat-in { --mh:clamp(240px, calc(100vh - 560px), 360px); }
  @supports (height:1svh) { .tophat-in { --mh:clamp(240px, calc(100svh - 560px), 360px); } }
  .tophat-head h2 { font-size:40px; }
  .tophat-lede { max-width:none; font-size:16.5px; }
  .tophat-cards { padding:16px 24px 14px; }
  .tophat-name { font-size:36px; }
  .tophat-line { font-size:17px; }
}

/* ── laptops: the words and the button to the left, the picture to the right. The floor line is where the heading
   ends and the button begins, so both columns stand on it. ── */
@media (min-width:900px) {
  .tophat-in { --mh:min(clamp(280px, calc(100vh - 392px), 500px), 40vw);
    grid-template-columns:minmax(0, .88fr) minmax(0, 1.12fr); grid-template-areas:"head stage" "ctl cards"; column-gap:clamp(28px, 4vw, 64px); justify-items:stretch; }
  .tophat-head { align-self:end; max-width:none; padding-bottom:24px; text-align:left; }
  .tophat-head .eyebrow { margin-bottom:10px; }
  .tophat-head h2 { max-width:9.6em; font-size:clamp(44px, 4.7vw, 64px); line-height:.98; }
  .tophat-lede { max-width:26em; margin:18px 0 0; font-size:18px; line-height:1.5; }
  .tophat-stage, .tophat-cards { justify-self:center; max-width:600px; }
  .tophat-stage { margin-top:0; }
  .tophat-cards { padding:18px 32px 16px; }
  .tophat-plate { border-radius:12px 12px 28px 28px; }
  .tophat-by { font-size:13px; }
  .tophat-name { font-size:44px; }
  .tophat-line { max-width:none; margin-top:6px; font-size:18px; }
  .tophat-get { margin-top:14px; font-size:18.5px; }
  .tophat-facts { margin-top:10px; font-size:15px; }
  .tophat-see { min-height:36px; margin:-4px 0 -6px; }
  .tophat-ctl { align-self:start; max-width:none; min-height:86px; margin-top:20px; text-align:left; }
  .tophat-btn { width:auto; min-width:236px; min-height:52px; padding:0 30px; font-size:19px; }
  .tophat-note { margin-top:12px; font-size:15px; }
  .tophat-all { font-size:17px; }
}

/* a wide laptop window: the block's lines each fit one row, so the monster takes the room */
@media (min-width:1200px) { .tophat-in { --mh:min(clamp(300px, calc(100vh - 340px), 500px), 40vw); } }

@media (prefers-contrast: more) {
  .tophat-lede, .tophat-line, .tophat-facts, .tophat-note { color:var(--ink); }
  .tophat-plate { box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, #fff); }
}
@media (prefers-reduced-motion: reduce) { .tophat-get { transition:none; } }
