/* The landing page (lab/site/). Builds on lab.css (tokens, buttons) and content.css (the round
   arrows of the plugins row, the trust marks). See HOME.md. */

.hm { overflow-x: hidden; }
/* 1440px of content at 1920 wide, 95vw below that (MagmaGuy: wide pages). */
.hm-wrap { margin-inline: auto; width: min(1440px, 95vw); }
/* The hero's measures. They have names because "All our plugins", under the hero, is placed by
   them too (further down), so the two cannot come apart.
   --hm-side is the room left and right of the hero. Side by side it is 4vw, 72px at most (51px
   at 1280, 58px at 1440). Stacked (under 960px, further down) it is 2.5vw.
   --hm-gap is the space between the words and the render. --hm-words is the widest the words
   get. --hm-parts is the hero's width in parts: 1 for the words' column, 1.3 for the render's.
   --hm-words-in is how far inside the side room the words start. While their column is
   narrower than --hm-words they fill it and start at the side room: up to 1488px of screen.
   On a wider screen the words keep their width in the middle of their column, so they start
   further in: 5px at 1512, 46px at 1728, 86px at 1920, 225px at 2560. The render's box always
   ends at the side room. The 100% in it is the hero's width between its side rooms, so it is
   only right in a box of that width: the column under the hero. */
.hm-main {
  --hm-side: clamp(20px, 4vw, 72px); --hm-gap: clamp(24px, 3vw, 56px); --hm-words: 36rem; --hm-parts: 2.3;
  --hm-words-in: max(0px, ((100% - var(--hm-gap)) / var(--hm-parts) - var(--hm-words)) / 2);
  overflow-x: clip; padding-bottom: clamp(64px, 7vw, 112px); position: relative;
}
/* The column under the hero is as wide as the hero between its side rooms. The width is taken
   from the page, not from the screen (vw), so a scrollbar does not move the edges apart.
   "All our plugins" starts where the hero's words start and ends where the render's box ends,
   at every width (Dali, 2026-11-12, of a picture with the hero's left edge in yellow and the
   section's in red: "what i wanted is to move the red line to the yellow one"). They matched
   up to 1488px and came apart above it, because each had its own rule: the words moved to the
   middle of their column, and the section was 1440px at most, in the middle of the page. At
   1920 the words started 158px from the edge and the section 240px; at 2560, 297px and 560px.
   The other sections keep the column they had: 1440px at most, in the middle of the page. */
.hm-main > .hm-wrap { width: calc(100% - 2 * var(--hm-side)); }
.hm-main > .hm-wrap > .hm-section { margin-inline: auto; width: min(1440px, 100%); }
.hm-main > .hm-wrap > .hm-plugins { margin-inline: var(--hm-words-in) 0; width: auto; }
.hm-main :is(h1, h2, h3) { text-wrap: balance; }
.hm-main p { text-wrap: pretty; }
.hm h2.nb-heading { font-size: clamp(30px, 3vw, 46px); }

/* ---------- Hero ----------
   Dali, 11-06: across the whole screen, the words centred against the render. */
.hm-hero {
  /* The words' column is one of the hero's --hm-parts, the render's column the rest (it was
     1fr and 1.3fr, the same widths). Written from the named measures so that --hm-words-in
     above always says where the words start. */
  align-items: center; column-gap: var(--hm-gap); display: grid;
  grid-template-areas: "copy stage"; grid-template-columns: calc((100% - var(--hm-gap)) / var(--hm-parts)) minmax(0, 1fr);
  /* Dali, Home Page v2: the hero fills the first screen, so the plugins start below the fold.
     --hm-top is the site header's height (home.js measures it). 15:49: more room on top, the
     render sat too high. */
  min-height: max(560px, calc(100svh - var(--hm-top, 76px))); padding: clamp(72px, 6.6vw, 120px) var(--hm-side) clamp(104px, 8vw, 136px);
}
.hm-hero__copy { grid-area: copy; justify-self: center; max-width: var(--hm-words); min-width: 0; width: 100%; }
.hm-title { color: var(--flare); font-weight: 800; grid-area: title; letter-spacing: -.025em; line-height: 1; margin: 0; position: relative; z-index: 2; }
.hm-title__lines { display: flex; flex-direction: column; justify-content: flex-end; }
.hm-title__pre, .hm-title__post { display: block; font-size: clamp(26px, 2.5vw, 42px); font-weight: 700; letter-spacing: -.015em; line-height: 1.08; }
/* A touch less room between "Add" and the phrase (Dali, 11-06). */
.hm-title__thing { display: block; font-size: clamp(46px, 5.6vw, 96px); line-height: .98; margin: .02em 0 .1em; overflow-wrap: break-word; }
.hm-caret { background: currentColor; display: inline-block; height: .78em; margin-left: .06em; opacity: .9; vertical-align: -.04em; width: .055em; }
@media (prefers-reduced-motion: no-preference) {
  .hm-title__thing:not(.is-typing) .hm-caret { animation: hm-blink 1.06s steps(1) infinite; }
}
@media (prefers-reduced-motion: reduce) { .hm-caret { display: none; } }
@keyframes hm-blink { 50% { opacity: 0; } }
.hm-lede { color: var(--wall); font-size: clamp(17px, 1.2vw, 19.5px); grid-area: lede; line-height: 1.5; margin: 22px 0 0; max-width: 32em; position: relative; z-index: 2; }
.hm-acts { display: flex; flex-wrap: wrap; gap: 12px; grid-area: acts; margin-top: 28px; position: relative; z-index: 2; }
.hm-acts .btn { font-size: 16px; padding: 15px 24px; }

/* The stage: the render floats on the night, over a faint pool of ember light. */
.hm-stage { grid-area: stage; margin: 0; min-width: 0; position: relative; }
.hm-stage__piece { aspect-ratio: 16 / 9; cursor: grab; grid-area: piece; position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hm-stage__piece::before {
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(248 80 32 / .2), rgb(224 54 54 / .06) 55%, transparent 72%);
  bottom: 2%; content: ""; filter: blur(6px); height: 26%; left: 12%; pointer-events: none; position: absolute; right: 12%; z-index: 0;
}
.hm-stage__piece.is-held { cursor: grabbing; }
.hm-stage__piece:focus-visible { outline: 2px solid var(--flare); outline-offset: 6px; border-radius: 12px; }
.hm-stage__img { height: 100%; inset: 0; object-fit: contain; position: absolute; width: 100%; z-index: 1; }
/* Until it has a picture the image is not drawn at all: without a src the browser outlined its
   box, a thin rectangle the size of the stage, for as long as the first angle took to arrive. */
.hm-stage__img:not([src]) { visibility: hidden; }
.hm-stage[data-kind="world"] .hm-stage__img { scale: calc(1.14 * var(--zoom, 1)); transform-origin: 50% 88%; }
/* A model's slide may have a zoom too (the winged chest, SLIDES in home.js). It grows around the
   middle of the picture, so a model that floats in its frame keeps its place. */
.hm-stage[data-kind="model"] .hm-stage__img { height: 96%; inset: auto 0 0; object-position: 50% 100%; scale: var(--zoom, 1); }
.hm-stage[data-kind="structure"] .hm-stage__img { height: 104%; inset: auto 0 -2%; scale: var(--zoom, 1); transform-origin: 50% 82%; }
@media (prefers-reduced-motion: no-preference) {
  .hm-stage__piece > img { transition: opacity .26s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
  .hm-stage.is-leaving .hm-stage__piece > img { opacity: 0; transform: translateY(16px) scale(.97); }
  .hm-stage.is-arriving .hm-stage__piece > img { opacity: 0; transform: translateY(-22px); transition: none; }
}
/* The caption and the pips hang under the render, so the render itself centres against the words.
   Two lines centred on the render (Dali, 15:49): the name and kind, then the hint with the slide
   controls beside it. */
.hm-stage__cap { align-items: center; display: flex; flex-direction: column; gap: 4px; left: 0; min-width: 0; position: absolute; right: 0; text-align: center; top: calc(100% + 12px); }
/* The caption lies over the picture, not under it (Dali, 2026-11-12: "some of the renders do
   mess the text under it and you can no longer click the button"). A zoomed render's picture is
   larger than its box: the flagship module's reached 39px under the box at 1440 and Primis's
   24px, and the name starts 12px under it. On a tablet the module's reached 35px, and the name
   starts 20px under the box. The picture is part of
   the surface that turns the piece and was stacked above the caption, so a press on the name
   landed on the picture and started a turn. Measured at seven widths: the name of "better
   structures" could not be clicked side by side or on a tablet, the top of the name of "so much
   more" side by side, and any name for the 0.26 s a slide takes to leave. No pixel of a render
   was over the words; only the picture's empty box. The caption's own box takes no press, only
   its two lines do, so the picture still turns from everywhere else it did. */
.hm-stage__cap { pointer-events: none; z-index: 2; }
/* On a very wide screen the caption keeps clear of the picture's pixels too. A map is drawn at
   1.14 around a point 88% down its box, so the foot of its frame is 1.68% of the box's height
   under the box, and The Goblin Kingdom fills its frame down to there when a corner faces the
   viewer: 6.8px at 1440, 9.2px at 1920, 12.6px at 2560, where it was 0.6px into the name's
   line. The caption starts 12px under the box as before, or 3px under that foot where that is
   lower: from about 1890px of screen up (0.2px at 1920, 3.6px at 2560). */
@media (min-width: 960px) { .hm-stage__cap { top: max(calc(100% + 12px), calc(101.68% + 3px)); } }
.hm-stage__line { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; pointer-events: auto; }
/* The second line spans the caption, so the dashes have the room next to the hint to share. */
.hm-stage__line + .hm-stage__line { align-items: center; align-self: stretch; }
.hm-stage__name { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.01em; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hm-stage__name:hover { color: var(--flare); }
.hm-stage__kind { color: var(--wall); font-size: 15px; font-weight: 600; }
.hm-stage__hint { color: var(--muted); font-size: 13.5px; font-weight: 600; }
/* One dash per slide, ten since 2026-11-12 (Dali's new slides; there were six). The dashes share
   what the row has left beside the hint: each is --pip wide where there is room, as it always
   was, and they narrow together, down to --pip-min, where there is not (a phone, or a long hint
   in another language). Their height, the tap height, does not change. If even that does not fit
   they go under the hint as one centred row, at full width again. --pause is the pause button
   with the space after it; --pips is the number of dashes (home.js sets it; 10 until then). */
.hm-pips {
  --pip: 28px; --pip-min: 20px; --pause: 40px;
  align-items: center; display: flex; flex: 1 1 calc(var(--pause) + var(--pips, 10) * var(--pip-min)); max-width: calc(var(--pause) + var(--pips, 10) * var(--pip)); min-width: 0;
}
.hm-pips button { align-items: center; background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; display: inline-flex; height: 32px; justify-content: center; padding: 0; }
.hm-pips__pause { flex: none; margin-right: 8px; width: 32px; }
.hm-pips__pause svg { height: 14px; width: 14px; }
.hm-pips__pause:hover { color: #fff; }
.hm-pip { flex: 1 1 0; min-width: 0; }
.hm-pip span { background: rgb(255 255 255 / .28); border-radius: 2px; display: block; height: 3px; transition: background-color .2s, width .2s; width: 16px; }
.hm-pip:hover span { background: rgb(255 255 255 / .6); }
.hm-pip[aria-current="true"] span { background: var(--flare); width: 22px; }

/* ---------- Section heads ---------- */
/* More room between the sections (Dali, Home Page v2). */
.hm-section { padding-top: clamp(80px, 8.5vw, 140px); }
.hm-hero + .hm-wrap > .hm-section:first-child { padding-top: clamp(40px, 4vw, 72px); }
.hm-head { align-items: end; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-bottom: clamp(22px, 2.2vw, 32px); }
.hm-head__lede { color: var(--wall); font-size: 17.5px; line-height: 1.5; margin: 12px 0 0; max-width: 62ch; }
.hm-head__btn { white-space: nowrap; }

.hm-head__side { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ---------- All our plugins: a row of tall cards, three to a view (Dali, 11-06). It drifts and
   loops like the item page's screenshots row (MagmaGuy, 11-12; CT.driftRow in core.js), and is
   styled as that row is (content.css, .ct-shots): its round arrows (.ct-arrow) in the heading,
   8px apart, and the same fade at both edges. ---------- */
.hm-car__arrows { display: flex; gap: 8px; }
.hm-car__arrows[hidden] { display: none; }
/* The view scrolls sideways (a swipe, a trackpad, keyboard focus). The track inside is as wide
   as its copies, so the cards take their width from the view (container units). The padding
   keeps the hover border and the focus ring inside the scroll box. --fade is the width of the
   fade at each edge; home.js reads it to keep a focused card clear of it. */
.hm-pview {
  --per: 3; --gap: 28px; --fade: 48px;
  container-type: inline-size; margin: -6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding: 6px; scrollbar-width: none;
}
.hm-pview::-webkit-scrollbar { display: none; }
.hm-plugins.is-loop .hm-pview {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
/* Without scripts nothing drifts, and the row snaps to a card as it did before. */
.hm-plugins:not(.is-loop) .hm-pview { scroll-padding-inline: 6px; scroll-snap-type: x mandatory; }
.hm-ptrack { display: flex; width: max-content; }
.hm-pgrid { display: flex; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
/* In the loop each copy ends with a gap, so one copy's last card and the next copy's first are
   a gap apart like any two cards. */
.hm-plugins.is-loop .hm-pgrid { padding-right: var(--gap); }
.hm-pcard {
  /* No orange line along the bottom (Dali, 15:49). */
  background: #0c0c11; border: 1px solid rgb(255 255 255 / .07); border-radius: 10px;
  contain: layout; display: flex; flex: none; flex-direction: column; overflow: hidden; position: relative; scroll-snap-align: start; text-align: left; transition: border-color .15s;
  /* The first width is for a browser without container units (before 2023): the same card up
     to 1488px of screen, a little wider above (it does not know --hm-words-in). */
  width: calc((100vw - 2 * var(--hm-side) - (var(--per) - 1) * var(--gap)) / var(--per)); width: calc((100cqw - (var(--per) - 1) * var(--gap)) / var(--per));
}
.hm-pcard:hover, .hm-pcard:focus-within, .hm-pcard.is-focus { border-color: rgb(248 80 32 / .42); }
/* .is-focus: the same card in the loop's other copies, which may be the one on screen (home.js). */
.hm-pcard:has(.hm-pcard__name a:focus-visible), .hm-pcard.is-focus { outline: 2px solid var(--flare); outline-offset: 3px; }
/* The picture on top, in the shape of the wide cut (3012 x 1898), so each of Dali's card
   pictures shows whole; the words under it on the card's own ground (Dali, 11-13: "more
   landscape format not portrait"). The box keeps the picture's room before it loads and its
   zoom inside it. */
.hm-pcard__pic { aspect-ratio: 3012 / 1898; flex: none; overflow: hidden; position: relative; }
.hm-pcard__img { height: 100%; inset: 0; object-fit: cover; position: absolute; transform: scale(1.06) translate(calc(var(--px, 0) * -3.5%), calc(var(--py, 0) * -3.5%)); transition: transform .3s ease-out; width: 100%; }
.hm-pcard__text { padding: clamp(14px, 1.3vw, 20px) clamp(18px, 1.6vw, 24px) clamp(18px, 1.6vw, 24px); }
.hm-pcard__name { color: #fff; font-size: clamp(22px, 1.8vw, 28px); font-weight: 900; letter-spacing: -.01em; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.hm-pcard__name a { color: inherit; text-decoration: none; }
.hm-pcard__name a::after { content: ""; inset: 0; position: fixed; z-index: 1; }
.hm-pcard__name a:focus-visible { outline: none; }
.hm-pcard__blurb { color: rgb(255 255 255 / .86); display: -webkit-box; font-size: 16px; line-height: 1.5; -webkit-line-clamp: 3; line-clamp: 3; margin: 8px 0 0; overflow: hidden; -webkit-box-orient: vertical; }


/* ---------- Community (Dali, Home Page v2): a big red-to-orange box, soft hills behind it, the
   goblin on the left pointing at the words. White words; the body text is bold and shadowed for
   the orange. ---------- */
/* 15:49: no wider than it needs (not the whole column) and about the goblin's height: the goblin
   stands on the box's bottom edge with a little room over its crown. */
/* MagmaGuy, 11-07: the goblin closer to the words, then "I want the tip of the staff to lightly
   overlay the text just a bit when at full extension". The words stay where they were; the goblin
   moves right and its picture overlaps the words' column by --hm-com-over (8% of its width, 30px at
   1440). At the top of each tap the grey staff head ends at 354/379 of the picture's width with
   gold sparkles beyond it, so the head covers the first few pixels of the words and the sparkles a
   little more. The picture sits above the words but takes no clicks (.hm-community__pic). */
.hm-community__box {
  --hm-com-side: clamp(20px, 2.6vw, 44px); --hm-gob-w: clamp(240px, 26vw, 379px); --hm-com-over: calc(var(--hm-gob-w) * .08);
  align-items: center; background: linear-gradient(100deg, var(--ember) 0%, #ec4429 45%, var(--flare) 100%);
  border-radius: 20px; box-shadow: 0 24px 60px -24px rgb(248 80 32 / .55); display: grid; gap: 0;
  grid-template-columns: auto minmax(0, 1fr); isolation: isolate; margin-inline: auto; max-width: 980px; overflow: hidden;
  padding: 18px clamp(28px, 3.4vw, 56px) 0 calc(2 * var(--hm-com-side) + var(--hm-com-over)); position: relative;
}
.hm-community__hills { bottom: 0; height: 62%; left: 0; pointer-events: none; position: absolute; width: 100%; z-index: -1; }
.hm-community__box::before { /* a soft light behind the goblin */
  background: radial-gradient(closest-side, rgb(255 220 180 / .35), transparent); content: ""; height: 120%; left: -6%; pointer-events: none; position: absolute; top: -10%; width: 42%; z-index: -1;
}
/* MagmaGuy, 11-06 night: the animated goblin (pose A tapping the words with his staff) is wider than
   the old one. The loop is 379x261, so it never shows bigger than that. */
.hm-community__pic { align-self: end; display: block; margin-right: calc(-1 * var(--hm-com-over)); pointer-events: none; position: relative; z-index: 1; }
.hm-community__goblin { display: block; filter: drop-shadow(0 18px 24px rgb(80 10 0 / .35)); height: auto; width: var(--hm-gob-w); }
.hm-community__text { padding-block: 0 18px; }
.hm-community__title { color: #fff; font-size: clamp(30px, 2.9vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
.hm-community__text p { color: #fff; font-size: clamp(16px, 1.2vw, 19px); font-weight: 600; line-height: 1.5; margin: 12px 0 22px; max-width: 30em; text-shadow: 0 1px 3px rgb(90 10 0 / .45); }
.hm-community__btn { align-items: center; background: #fff; border-color: #fff; color: #c22a1f; display: inline-flex; font-size: 16px; gap: 10px; padding: 14px 24px; transition: background-color .15s, transform .15s; }
.hm-community__icon { flex: none; height: 20px; width: 20px; }
.hm-community__btn:hover { background: #ffe9e0; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .hm-community__btn:hover { transform: none; } }

/* ---------- SteamRecs: a thin blue strip under the footer (Dali, 11-06) ---------- */
.hm-steamrecs { background: linear-gradient(90deg, #0a1730, #12305c 50%, #0a1730); border-top: 1px solid rgb(120 170 255 / .25); color: #c6d4ee; font-size: 13.5px; padding: 10px 0; text-align: center; }
.hm-steamrecs p { margin: 0 auto; }
.hm-steamrecs__title { color: #fff; font-weight: 700; margin-right: 6px; }
.hm-steamrecs a { color: #8fc3ff; font-weight: 700; }
.hm-steamrecs a:hover { color: #fff; }

/* ---------- Narrower screens ---------- */
@media (max-width: 959px) {
  /* The stacked hero, for tablets (640 to 959px; the phone's differences are in the next block).
     Dali, 2026-11-10 14:04: the title centred and larger, on three lines and no more; the
     description; both buttons side by side; then the 3D render, its name, plugin and controls
     smaller and a bit lower. 14:00: more room between the title, the render and the words under
     it, "cause currently big 3d render clip into the text".

     Order. The four blocks are placed by `order`, not by named areas. --stage-order is the one
     value that says where the render goes: 2 puts it after the description and the buttons, 0
     straight under the title (the phone has 0). Each block brings its own space above, so
     changing that value is the whole change. */
  .hm-main { --hm-side: 2.5vw; }
  .hm-hero { --stage-order: 2; grid-template-areas: none; grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 40px var(--hm-side) 24px; }
  .hm-hero__copy { display: contents; }
  .hm-title, .hm-lede, .hm-acts, .hm-stage { grid-area: auto; }
  .hm-lede, .hm-acts { order: 1; }
  .hm-stage { order: var(--stage-order); }

  /* The title: three lines, each on one line and centred on its own, so the typing only moves
     the phrase's own letters. --pre and --thing are the sizes; home.js (fitStacked) sets
     --line-fit and --fit below 1 where a language's line or a long phrase would not fit, so
     only that line is smaller. The phrase's line keeps one height whatever its type size. */
  .hm-title { text-align: center; }
  .hm-title__lines { --pre: clamp(34px, 5vw, 46px); --thing: clamp(64px, 10.4vw, 96px); }
  .hm-title__pre, .hm-title__post { font-size: calc(var(--pre) * var(--line-fit, 1)); white-space: nowrap; }
  .hm-title__thing {
    font-size: calc(var(--thing) * var(--fit, 1)); height: calc(var(--thing) * .98); line-height: calc(var(--thing) * .98);
    margin: calc(var(--thing) * .02) 0 calc(var(--thing) * .1); overflow-wrap: normal; white-space: nowrap;
  }
  .hm-lede { margin-inline: auto; margin-top: 18px; text-align: center; }
  .hm-acts { justify-content: center; margin-top: 26px; }

  /* The render. Its box spans the screen and the picture is drawn inside it: worlds at their own
     size (they were 1.14 and came out over the buttons and the caption), models as before, a
     structure at its slide's stacked zoom (SLIDES in home.js). So the space around the picture
     is the space around the box: 36px above it here and 28px on a phone, and 20px down to its
     name on both.
     Dali, 2026-11-12: the name, plugin and controls "a bit up to be closer to the render" (the
     gap was 38px, and 26px on a phone). 20px is as close as they go. A still map leaves the
     bottom fifth of its box empty, but when a corner of the first map (The Goblin Kingdom) faces
     the viewer the map fills the box from top to bottom, so the box's bottom edge is the lowest
     any render reaches. The name's letters start 25px under that edge (26px on a tablet): the
     20px, and the room over the letters in the name's own line. */
  .hm-stage { display: grid; gap: 20px; grid-template-areas: "piece" "cap"; grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .hm-stage__piece { margin-inline: calc(-1 * var(--hm-side)); }
  .hm-stage__piece:focus-visible { outline-offset: -3px; }
  .hm-stage[data-kind="world"] .hm-stage__img { scale: 1; }
  .hm-stage[data-kind="model"] .hm-stage__img { scale: var(--zoom-stacked, 1); }
  .hm-stage[data-kind="structure"] .hm-stage__img { height: 100%; inset: 0; scale: var(--zoom-stacked, 1); transform-origin: 50% 70%; }
  /* Its name, plugin and controls, smaller. The pause button and the dashes are drawn small in
     hit areas 44px tall (the pause button 44px wide, a dash 32px where the row has the room). */
  .hm-stage__cap { gap: 0; grid-area: cap; position: static; }
  .hm-stage__line { gap: 2px 12px; }
  .hm-stage__name { font-size: 16px; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
  .hm-stage__kind { font-size: 13px; }
  .hm-stage__hint { font-size: 12.5px; }
  .hm-pips { --pip: 32px; --pause: 44px; }
  .hm-pips button { height: 44px; }
  .hm-pips__pause { margin-right: 0; width: 44px; }
  .hm-pips__pause svg { height: 12px; width: 12px; }
  .hm-pip span { height: 2.5px; width: 14px; }
  .hm-pip[aria-current="true"] span { width: 18px; }
  .hm-pview { --per: 2; --gap: 20px; }
}
@media (max-width: 639px) {
  .hm h2.nb-heading { font-size: 30px; }
  /* The stacked hero on a phone (Dali, 2026-11-10 14:04): the title larger, the 3D render
     straight under it with its name, plugin and controls much smaller, then the description,
     then both buttons side by side. */
  .hm-hero { --stage-order: 0; }
  .hm-title__lines { --pre: clamp(24px, 7.6vw, 36px); --thing: clamp(44px, 14vw, 68px); }
  .hm-stage { margin-top: 28px; }
  .hm-stage__line { gap: 0 10px; }
  /* The name over its plugin, one line each whatever their length: the description and the
     buttons come after this block here, and must not move when a slide's name is longer. */
  .hm-stage__line:first-child { align-items: center; flex-direction: column; flex-wrap: nowrap; }
  .hm-stage__name, .hm-stage__kind { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-stage__name { font-size: 14px; text-underline-offset: 3px; }
  .hm-stage__kind, .hm-stage__hint { font-size: 12px; }
  /* Ten dashes beside the hint on a phone: the pause button is 32px wide here (it was 44px), and
     the dashes take what is left, 30px each at most. With "Drag to turn it": 25px each at 390,
     22.2px at 360, all 44px tall. Under about 340px of screen they go under the hint. */
  .hm-pips { --pip: 30px; --pause: 32px; }
  .hm-pips__pause { width: 32px; }
  .hm-pips__pause svg { height: 11px; width: 11px; }
  .hm-pip span { height: 2px; width: 12px; }
  .hm-pip[aria-current="true"] span { width: 16px; }
  /* More room between the controls and the description (Dali, 2026-11-12): it was 8px. From the
     foot of the hint's letters to the top of the description's: 30px before, 46px now. */
  .hm-lede { margin-top: 24px; }
  /* Two equal buttons in one row. The type and the padding give way on a narrow phone so each
     label keeps one line (English at 320px); a longer label, in another language, takes two
     lines in its button and the pair stays side by side at one height. */
  .hm-acts { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
  .hm-acts .btn { font-size: clamp(14px, 4vw, 16px); line-height: 1.15; padding: 14px clamp(6px, 2.4vw, 16px); text-align: center; text-wrap: balance; width: 100%; }
  /* Plugins: one card and the edge of the next, to swipe. As the item page's screenshots row
     on a phone: the row stays inside the column, the fade is narrower and the arrows smaller. */
  .hm-pview { --gap: 14px; --fade: 20px; }
  .hm-pcard { width: 80vw; width: 84cqw; }
  .hm-car__arrows .ct-arrow { height: 34px; width: 34px; }
  .hm-pcard__name { font-size: 22px; }
  .hm-pcard__blurb { font-size: 15px; -webkit-line-clamp: 4; line-clamp: 4; }
  .hm-community__box { gap: 12px; grid-template-columns: minmax(0, 1fr); justify-items: start; padding: 20px 22px 26px; }
  .hm-community__pic { align-self: start; margin-right: 0; }
  .hm-community__goblin { width: 240px; }
  .hm-community__text { padding-block: 0; }
  .hm-community__hills { height: 38%; }
  .hm-steamrecs { padding: 10px 2.5vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-pcard__img { transform: none; transition: none; }
}
