/* Additions on top of chat.css (copied unchanged from the chat-first site):
   - the sign-up sheet's extra steps: which AI tools work (connect mode), claim a studio name, open the studio;
   - the inside pages (How it works, Pricing, Creators): page top spacing and the nav's "Describe your game" pill;
   - Jonny's calmer Play-band button (from the 2026-12-04 "too busy" pass).
   Only adds rules; site.css and chat.css stay as they are. */

/* ---------- sheet: which AI tools work (connect mode; the tool is picked in the studio) ---------- */
.sh-works { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.sh-works .ah-marks { flex: none; }
.sh-works .ah-marks img { width: 32px; height: 32px; padding: 6px; }
.sh-works p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- sheet: claim your studio name ---------- */
.sh-step[hidden] { display: none !important; }
.sh-signed { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--teal); vertical-align: middle; }
.sh-signed::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.sh-handle { display: flex; align-items: center; margin-top: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: #0c0917; padding: 0 14px; transition: border-color 0.15s ease; }
.sh-handle:focus-within { border-color: var(--pink); }
.sh-handle span { color: var(--muted); font: 500 16px/1 var(--body); white-space: nowrap; }
.sh-handle input { flex: 1; width: 0; min-width: 0; padding: 14px 4px 14px 1px; border: 0; background: transparent; color: var(--cream); font: 600 16px/1 var(--body); outline: none; }
.sh-avail { font-size: 13px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.sh-avail.no { color: var(--orange, #ff8a5b); }
.sh-preview { margin-top: 10px; font: 500 13px/1.4 var(--mono, monospace); color: var(--muted); overflow-wrap: anywhere; }   /* breaks after a hyphen, not mid-word (phone audit 12-05) */
.sh-preview b { color: var(--cream); font-weight: 600; }
.sso.email.sh-go { width: 100%; margin-top: 16px; }
.sh-back { margin-top: 6px; background: none; border: 0; padding: 12px 8px 12px 0; min-height: 44px; color: var(--muted); font: 600 14px/1 var(--body); cursor: pointer; }
.sh-back:hover { color: var(--cream); }

/* ---------- sheet: opening the studio ---------- */
.sh-open { margin-top: 18px; }
.sso.email.sh-open-btn { width: 100%; margin-top: 16px; text-decoration: none; }
.sh-open-btn[hidden] { display: none !important; }

/* ---------- inside pages ---------- */
.page-top { padding-top: 72px; }
@media (max-width: 720px) { .page-top { padding-top: 40px; } }
.nav-links a[aria-current="page"] { color: var(--cream); }
/* Pricing page (pricing.html; Jonny, 12-05: its own page again): the plans' headline is the page's h1, set like the
   h2 it was on The Rails */
.pricing h1 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 800; text-transform: uppercase; line-height: 0.92; }
.pricing h1 b { color: var(--pink); font-weight: 800; }

/* ---------- Play band: calmer button (Jonny, 2026-12-04) ---------- */
.playband .pb-btn { box-shadow: 0 0 0 8px rgba(255, 45, 158, 0.1); }
.playband .pb-btn .ring { opacity: 0.35; }
.playband .pb-link:hover .pb-btn, .playband .pb-link:focus-visible .pb-btn { box-shadow: 0 0 0 12px rgba(255, 45, 158, 0.16), 0 0 40px rgba(255, 45, 158, 0.3); }

/* ---------- Front page: the Sweet AI console is the star ----------
   The hero fills the first screen with the console centred on a calm, lit stage: a soft violet bloom overhead,
   a faint pink light behind the console and a slow drift so it feels alive (the dot grid came out 12-04: Jonny).
   The console keeps its solid site-pink edge (Jonny: no rainbow edge) and brightens while you type. */
.ai-hero { min-height: max(620px, calc(100svh - 68px - 72px)); display: flex; } /* leaves a sliver of the Play band showing */
.ai-hero .ah-wrap { flex: 1; justify-content: center; padding-block: clamp(28px, 6vh, 72px) clamp(36px, 7vh, 84px); }
.ai-hero .ah-wrap .console, .ai-hero .ah-wrap .ah-under { max-width: 1060px; }
.ai-hero .ah-shade { background:
  radial-gradient(60% 55% at 50% -6%, rgba(154, 123, 255, 0.22), transparent 70%),
  radial-gradient(42% 38% at 50% 56%, rgba(255, 45, 158, 0.11), transparent 72%),
  radial-gradient(34% 40% at 6% 96%, rgba(79, 227, 193, 0.06), transparent 70%),
  radial-gradient(30% 36% at 96% 88%, rgba(154, 123, 255, 0.08), transparent 70%); }
.ai-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 18%; width: min(1100px, 90vw); height: 62%;
  transform: translateX(-50%); border-radius: 50%; filter: blur(70px);
  background: radial-gradient(closest-side, rgba(255, 45, 158, 0.13), rgba(154, 123, 255, 0.07) 55%, transparent);
  animation: stageDrift 22s ease-in-out infinite alternate; }
@keyframes stageDrift { from { transform: translateX(-53%) scale(1); } to { transform: translateX(-47%) scale(1.06); } }

.ai-hero .console { background: rgba(255, 45, 158, 0.62); transition: background 0.3s ease, box-shadow 0.4s ease;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 90px rgba(255, 45, 158, 0.1);
  animation: consoleIn 0.8s cubic-bezier(.2, .8, .2, 1) both; }
.ai-hero .console:focus-within { background: var(--pink); box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 110px rgba(255, 45, 158, 0.16); }
.ai-hero .cs-in { background: linear-gradient(180deg, rgba(34, 26, 64, 0.97), rgba(19, 14, 36, 0.985)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.ai-hero .cs-box { background: #0b0816; }
.ai-hero .ah-under { margin-top: 30px; animation: underIn 0.8s 0.25s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes consoleIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes underIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* "or connect your AI tool": big and plain; the pink pill shows only on hover (Jonny's call, 2026-12-04) */
.ai-hero .ah-connect { font-size: 21px; gap: 14px; }
.ai-hero .ah-marks img { width: 38px; height: 38px; padding: 7px; }
.ai-hero .ah-link { padding: 8px 16px; margin: -8px -16px -8px -4px; border-radius: 999px; border: 1.5px solid transparent; text-decoration-color: var(--pink); text-decoration-thickness: 1.5px; transition: border-color 0.15s ease, background 0.15s ease; white-space: nowrap; }
.ai-hero .ah-link::after { content: " →"; text-decoration: none; display: inline-block; margin-left: 4px; transition: transform 0.2s ease; }
.ai-hero .ah-link:hover, .ai-hero .ah-link:focus-visible { border-color: var(--pink); background: rgba(255, 45, 158, 0.1); }
.ai-hero .ah-link:hover::after { transform: translateX(3px); }

@media (max-width: 720px) {
  .ai-hero { min-height: 0; }
  .ai-hero .ah-wrap { padding-block: 22px 34px; }
  .ai-hero .ah-connect { font-size: 17px; gap: 10px; }
  .ai-hero .ah-marks img { width: 30px; height: 30px; padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-hero::after, .ai-hero .console, .ai-hero .ah-under { animation: none; }
}

/* The floating "Describe your game" dock sits over the page bottom: leave room so it never covers the footer's last lines. */
body:has(#dock) .foot { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }

/* Phones: the email field gets the full width (the placeholder was cut off beside the button). */
@media (max-width: 480px) {
  .sh-email { flex-direction: column; align-items: stretch; }
  .sh-email input { flex: none; width: 100%; }
  .sh-email .sso.email { width: 100%; }
}

/* Phone menu: mark the page you're on. */
@media (max-width: 1000px) { .nav-links a[aria-current="page"] { color: var(--pink); } }
/* Inside pages' "connect your own AI tool" link: a comfortable tap target. */
.ah-link { display: inline-block; padding-block: 8px; }

/* Small phones (≤360px): the four feature toggles keep their labels on one line. */
@media (max-width: 360px) {
  .ai-hero .tg { font-size: 14.5px; padding: 10px 8px; gap: 5px; white-space: nowrap; }
  .ai-hero .tg svg { width: 16px; height: 16px; }
}

/* ---------- Footer: the site's plain ink backdrop (Jonny, 12-05: "match the rest of the background areas on the site
   with just the clean backdrop"; the lit stage from 12-04, a violet bloom and corner lights, was removed: see
   versions/2026-12-05-before-plain-footer/). */
.foot { position: relative; background: var(--ink); }

/* ---------- Console: "Always included by Sweet" with the Sweet-brings icons and a tip each (Jonny, 12-04) ---------- */
.cs-incl { gap: 8px 18px; }
.cs-incl li.ci { position: relative; gap: 8px; }
.cs-incl li.ci::before { display: none; }
.ci-ic { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 45, 158, 0.1); border: 1px solid rgba(255, 45, 158, 0.38); color: var(--pink); }
.ci-ic svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs-incl li.ci:hover { color: var(--cream); }
.cs-incl li.ci:hover .tip { opacity: 1; transition-delay: 0.15s; }
/* Tips stay on screen: front.js sets --tip-dx when one would run past the edge; the arrow keeps pointing at its item. */
.ai-hero .tip { transform: translate(calc(-50% + var(--tip-dx, 0px)), 4px); }
.ai-hero .tg:hover .tip, .ai-hero .tg:focus-visible .tip, .ai-hero .cs-incl li.ci:hover .tip { transform: translate(calc(-50% + var(--tip-dx, 0px)), 0); }
.ai-hero .tip::after { margin-left: calc(-6px - var(--tip-dx, 0px)); }
@media (max-width: 720px) { .cs-incl { gap: 8px 14px; } .ci-ic { width: 20px; height: 20px; border-radius: 6px; } .ci-ic svg { width: 11px; height: 11px; } }

/* ---------- Nav: The Rails · Studios · Play, each with a small glyph (Play keeps its pink one) ---------- */
.nav-links a.nav-ic { display: inline-flex; align-items: center; gap: 8px; }
.nl-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; transition: opacity 0.2s ease, transform 0.2s ease; }
.nav-links a.nav-ic:hover .nl-ic, .nav-links a.nav-ic[aria-current] .nl-ic { opacity: 1; transform: translateY(-1px); }
@media (max-width: 1000px) { .nl-ic { width: 20px; height: 20px; } .nav-links a.nav-ic { gap: 12px; } }

/* ---------- Front page Play band, desktop: taller, with a lit tile (Jonny, 12-04: "less of a sliver") ----------
   Everything that was there stays: the drifting cover mosaic (five rows here), the play button, "Live on Sweet", PLAY,
   the line and "Open the game hub"; the whole band is one link to play/. Instead of a cover floating on top (Jonny:
   "doesn't feel right"; saved in versions/2026-12-04-play-featured-cover/), front.js lights one cover inside the wall
   every few seconds: full colour, a little larger, a thin pink edge, while the others stay dim. The shade keeps the
   left dark for the words and the right light so the lit cover reads. At 1000px and narrower the band is unchanged. */
@media (min-width: 1001px) {
  .playband .pb-link, .playband .pb-inner { min-height: clamp(560px, 72vh, 720px); }
  .playband .pb-inner { padding-block: 72px; }
  .playband .pb-text { max-width: 520px; }
  .playband .pb-shade { background:
    radial-gradient(42% 80% at 22% 50%, rgba(7, 5, 13, 0.96), rgba(7, 5, 13, 0.6) 62%, transparent),
    linear-gradient(90deg, rgba(7, 5, 13, 0.94) 0%, rgba(7, 5, 13, 0.62) 34%, rgba(7, 5, 13, 0.18) 60%, rgba(7, 5, 13, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 5, 13, 0.55), transparent 22%, transparent 78%, rgba(7, 5, 13, 0.6)); }
  .playband .pb-row img { transition: opacity 1s ease, filter 1s ease, transform 1s ease, box-shadow 1s ease; }
  .playband.has-lit .pb-row img { opacity: 0.5; filter: saturate(0.9); }
  .playband.has-lit .pb-row img.lit { position: relative; z-index: 2; opacity: 1; filter: saturate(1.15) brightness(1.06); transform: scale(1.09);
    box-shadow: 0 0 0 1.5px rgba(255, 45, 158, 0.8), 0 0 40px rgba(255, 45, 158, 0.25), 0 26px 60px rgba(0, 0, 0, 0.65); }
}
@media (prefers-reduced-motion: reduce) { .playband .pb-row img { transition: none; } }

/* ---------- The Rails: the hub (Jonny, 12-04: "this is a cool visual") ----------
   Replaces the old three-card equation. Top: 01 the AI tools people build with. Middle: 02 the Sweet core with the
   10 things Sweet runs (the chat site's "Sweet brings" list, word for word), each in its own colour. Bottom: 03 the
   live game. rails.js draws the dashed lines from 1100px up; narrower, the pieces stack with short dashed joins. */
.build .rh { position: relative; max-width: 1180px; margin: 64px auto 0; }
.rh-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.rh-top, .rh-mid, .rh-live { position: relative; z-index: 1; }
.rh-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.rh-step { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 600 13px/1 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.rh-step b { display: grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 7px; border: 1px solid; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; }
.rh-step.you { color: var(--sky); }
.rh-step.you b { border-color: rgba(94, 200, 255, 0.45); background: rgba(94, 200, 255, 0.1); }
.rh-step.sweet { color: var(--pink); }
.rh-step.sweet b { border-color: rgba(255, 45, 158, 0.45); background: rgba(255, 45, 158, 0.1); }
.rh-step.live { color: var(--teal); }
.rh-step.live b { border-color: rgba(79, 227, 193, 0.45); background: rgba(79, 227, 193, 0.1); }
.rh-note { margin: 0; max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.45; text-wrap: balance; }
.rh-tools { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; }
.rh-tool { display: inline-flex; align-items: center; gap: 9px; font: 600 19px/1 var(--body); color: var(--cream); }
.rh-tool img { width: 22px; height: 22px; }
.rh-sweetai svg { width: 20px; height: 20px; fill: rgba(255, 45, 158, 0.3); stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rh-hub { display: flex; flex-direction: column; align-items: center; }
.rh-core { position: relative; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; border: 3px solid transparent;
  background: radial-gradient(circle at 50% 38%, #221a3f, #110d20 72%) padding-box, linear-gradient(140deg, var(--violet), var(--sky)) border-box;
  box-shadow: 0 0 56px rgba(154, 123, 255, 0.34), 0 0 140px rgba(94, 200, 255, 0.1); }
.rh-core::before { content: ""; position: absolute; inset: -24px; border-radius: 50%; border: 1px solid rgba(154, 123, 255, 0.22); }
.rh-core::after { content: ""; position: absolute; inset: -110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(154, 123, 255, 0.16), transparent); z-index: -1; pointer-events: none; }
.rh-pop { width: 46px; height: auto; filter: drop-shadow(0 6px 18px rgba(183, 86, 239, 0.45)); }
.rh-hub .rh-step { margin-top: 40px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(15, 12, 26, 0.92); box-shadow: 0 0 0 1px rgba(255, 45, 158, 0.18); }

.rh-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rh-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; align-items: start; padding: 14px 16px; border-radius: 14px; min-width: 0;
  background: rgba(29, 24, 51, 0.86); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.rh-card:hover { border-color: color-mix(in srgb, var(--c) 80%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent), 0 12px 30px rgba(0, 0, 0, 0.35); }
.rh-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.rh-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rh-card b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; color: var(--cream); }
.rh-card span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.38; color: var(--muted); text-wrap: balance; }

.rh-live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; max-width: 940px; margin: 96px auto 0; padding: 18px;
  border-radius: 18px; border: 1px solid var(--teal); background: linear-gradient(160deg, rgba(79, 227, 193, 0.12), var(--panel) 55%); box-shadow: 0 0 0 1px rgba(79, 227, 193, 0.22), 0 30px 70px rgba(0, 0, 0, 0.35); }
.rh-live .rh-shot { margin: 0; }
.rh-live-text { min-width: 0; padding-right: 6px; }
.rh-live .live-url { margin-top: 16px; font-size: 14px; }
.rh-live .live-stats { margin-top: 14px; }
.rh-foot { margin: 14px 0 0; color: var(--dim); font-size: 13px; line-height: 1.5; text-wrap: balance; }   /* two even lines beside the Block Ops shot (Jonny: "ideally it is just on two lines cleanly") */

.rh-lines path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 4 7; opacity: 0.55; animation: rh-flow 2.8s linear infinite; transition: opacity 0.25s ease, stroke-width 0.25s ease; }
.rh-lines path.on { opacity: 1; stroke-width: 2.2; }
.rh-lines circle { opacity: 0.9; }
@keyframes rh-flow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .rh-lines path { animation: none; } .rh-card { transition: none; } }

/* 1100px and wider: core in the middle, five cards each side on a gentle arc, lines drawn by rails.js */
@media (min-width: 1100px) {
  .rh-mid { --core: 300px; position: relative; margin-top: 104px; }
  .rh-cards { grid-template-columns: minmax(0, 1fr) var(--core) minmax(0, 1fr); gap: 14px 0; }
  .rh-card { --arc: 0px; width: calc(100% - var(--arc)); max-width: 384px; }
  .rh-card:nth-child(-n+5) { grid-column: 1; justify-self: end; margin-right: var(--arc); }
  .rh-card:nth-child(n+6) { grid-column: 3; justify-self: start; margin-left: var(--arc); }
  .rh-card:nth-child(1), .rh-card:nth-child(6) { grid-row: 1; }
  .rh-card:nth-child(2), .rh-card:nth-child(7) { grid-row: 2; --arc: 24px; }
  .rh-card:nth-child(3), .rh-card:nth-child(8) { grid-row: 3; --arc: 36px; }
  .rh-card:nth-child(4), .rh-card:nth-child(9) { grid-row: 4; --arc: 24px; }
  .rh-card:nth-child(5), .rh-card:nth-child(10) { grid-row: 5; }
  .rh-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .rh-hub .rh-step { position: absolute; top: calc(100% + 30px); left: 50%; transform: translateX(-50%); margin: 0; }
}
/* Narrower: everything stacks, joined by short dashed lines */
@media (max-width: 1099px) {
  .rh-lines { display: none; }
  .build .rh { margin-top: 48px; }
  .rh-hub { position: relative; padding: 48px 0 44px; }
  .rh-hub::before, .rh-hub::after { content: ""; position: absolute; left: 50%; width: 0; border-left: 2px dashed; }
  .rh-hub::before { top: 8px; height: 30px; border-color: rgba(154, 123, 255, 0.55); }
  .rh-hub::after { bottom: 8px; height: 26px; border-color: rgba(255, 45, 158, 0.5); }
  .rh-hub .rh-step { margin-top: 30px; }
  .rh-core { width: 132px; height: 132px; }
  .rh-core::after { inset: -70px; }
  .rh-pop { width: 36px; }
  .rh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-live { margin-top: 64px; }
  .rh-live::before { content: ""; position: absolute; left: 50%; top: -52px; height: 40px; border-left: 2px dashed rgba(79, 227, 193, 0.55); }
}
@media (max-width: 760px) {
  .rh-tools { gap: 12px 22px; }
  .rh-tool { font-size: 17px; }
  .rh-cards { grid-template-columns: minmax(0, 1fr); }
  .rh-live { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px; }
  .rh-live-text { padding: 0 4px 4px; }
}

/* ---------- The Rails hub, mature look (Jonny, 12-04: "a bit more mature, keep everything the same") ----------
   Same layout as above. Quieter surface: neutral hairline cards (each item keeps its colour in its icon, a hint on
   hover, and the light that travels along its line), thin solid connectors, a slimmer core ring, small labels
   without boxes, a neutral live-game card. Scoped to .rh-m, which build_pages.py puts on #rails-hub.
   To compare with the first look, open how-it-works.html?hub=classic. To go back for good, see
   versions/2026-12-04-rails-hub-v1/RESTORE.txt. */
/* Step labels in the site's own display type, like the nav and the plan cards (Jonny, 12-05: the spaced-out
   "01 —— YOUR IDEA, YOUR AI" code-font labels felt AI-generated). Plain coloured numbers, no zero padding, no dash. */
.rh.rh-m .rh-step { gap: 9px; font: 700 21px/1 var(--display); letter-spacing: 0.02em; color: var(--cream); }
.rh.rh-m .rh-step b { display: inline; min-width: 0; height: auto; padding: 0; border: 0; background: none; font: inherit; letter-spacing: 0; }
.rh.rh-m .rh-step.you b { color: color-mix(in srgb, var(--sky) 80%, var(--cream)); }
.rh.rh-m .rh-step.sweet b { color: color-mix(in srgb, var(--pink) 80%, var(--cream)); }
.rh.rh-m .rh-step.live b { color: color-mix(in srgb, var(--teal) 80%, var(--cream)); }
.rh.rh-m .rh-hub .rh-step { padding: 8px 16px; background: rgba(15, 12, 26, 0.95); box-shadow: 0 0 0 1px rgba(245, 241, 234, 0.08); }
.rh.rh-m .rh-note { color: #a69fbd; }
.rh.rh-m .rh-tool { font-weight: 500; font-size: 18px; color: rgba(245, 241, 234, 0.84); }
.rh.rh-m .rh-tool img { width: 20px; height: 20px; opacity: 0.85; }
.rh.rh-m .rh-sweetai svg { width: 18px; height: 18px; fill: none; stroke-width: 1.6; }

.rh.rh-m .rh-core { border-width: 1.5px;
  background: radial-gradient(circle at 50% 30%, #1d1736, #0f0c1c 70%) padding-box, linear-gradient(150deg, rgba(154, 123, 255, 0.95), rgba(94, 200, 255, 0.6)) border-box;
  box-shadow: 0 0 0 9px rgba(15, 12, 26, 0.7), 0 0 50px rgba(154, 123, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.rh.rh-m .rh-core::before { inset: -28px; border-color: rgba(245, 241, 234, 0.07); }
.rh.rh-m .rh-core::after { background: radial-gradient(closest-side, rgba(154, 123, 255, 0.1), transparent); }
.rh.rh-m .rh-pop { filter: drop-shadow(0 4px 12px rgba(183, 86, 239, 0.28)); }

.rh.rh-m .rh-card { gap: 14px; padding: 15px 16px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(245, 241, 234, 0.035), rgba(245, 241, 234, 0.012)), #16122a;
  border: 1px solid rgba(245, 241, 234, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035); }
.rh.rh-m .rh-card:hover { border-color: color-mix(in srgb, var(--c) 32%, rgba(245, 241, 234, 0.14)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 32px rgba(0, 0, 0, 0.35); }
.rh.rh-m .rh-ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(245, 241, 234, 0.03); border-color: rgba(245, 241, 234, 0.09); color: color-mix(in srgb, var(--c) 78%, var(--cream)); }
.rh.rh-m .rh-ic svg { width: 17px; height: 17px; stroke-width: 1.6; }
.rh.rh-m .rh-card b { font-size: 16px; letter-spacing: 0.005em; }
.rh.rh-m .rh-card span { font-size: 14px; line-height: 1.45; color: #a69fbd; }

.rh.rh-m .rh-live { border-radius: 16px; border-color: rgba(245, 241, 234, 0.1);
  background: linear-gradient(180deg, rgba(79, 227, 193, 0.05), rgba(245, 241, 234, 0.012) 45%), #15112a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 70px rgba(0, 0, 0, 0.35); }
.rh.rh-m .rh-live .live-card { border-color: rgba(245, 241, 234, 0.08); border-radius: 10px; }
.rh.rh-m .rh-live .live-stats div { background: rgba(245, 241, 234, 0.025); border-color: rgba(245, 241, 234, 0.07); }
.rh.rh-m .rh-live .live-url { color: #a69fbd; }

/* Lines: a thin solid base, a short light that travels along it (into Sweet from the tools, out to each card and
   down to the live game), and small hollow nodes at the cards. rails.js sets --len and the timing per line. */
.rh.rh-m .rh-lines path { stroke-dasharray: none; animation: none; opacity: 1; stroke-width: 1; transition: stroke 0.25s ease, opacity 0.25s ease; }
.rh.rh-m .rh-lines path.rh-base { stroke: rgba(196, 186, 236, 0.24); }
.rh.rh-m .rh-lines path.rh-base.on { stroke: rgba(196, 186, 236, 0.42); }
.rh.rh-m .rh-lines path.rh-pulse { stroke-width: 1.5; stroke-dasharray: 28px var(--len, 400px); stroke-dashoffset: 28px; opacity: 0.75; animation: rh-pulse var(--dur, 3.6s) linear var(--delay, 0s) infinite; }
.rh.rh-m .rh-lines path.rh-pulse.on { opacity: 1; stroke-width: 1.8; }
@keyframes rh-pulse { from { stroke-dashoffset: 28px; } to { stroke-dashoffset: calc(-1 * var(--len, 400px)); } }
.rh.rh-m .rh-lines circle { fill: #0f0c1a; stroke: rgba(245, 241, 234, 0.32); stroke-width: 1; opacity: 1; transition: stroke 0.25s ease; }
.rh.rh-m .rh-lines circle.on { stroke: var(--c); }
@media (prefers-reduced-motion: reduce) { .rh.rh-m .rh-lines path.rh-pulse { display: none; } }
/* Narrow screens: the short joins become thin solid lines too */
.rh.rh-m .rh-hub::before, .rh.rh-m .rh-hub::after, .rh.rh-m .rh-live::before { border-left: 1px solid rgba(196, 186, 236, 0.24); }
/* Jonny, 12-04: no colours in the lines ("tentacles"), and a pink ring around Sweet. The lights along the lines and
   the nodes are one soft cream; the core ring is Sweet pink with a faint pink glow. */
.rh.rh-m .rh-lines path.rh-pulse { stroke: #f5f1ea; opacity: 0.5; }
.rh.rh-m .rh-lines path.rh-pulse.on { opacity: 0.9; }
.rh.rh-m .rh-lines circle.on { stroke: rgba(245, 241, 234, 0.75); }
.rh.rh-m .rh-core {
  background: radial-gradient(circle at 50% 30%, #1f1634, #0f0c1c 70%) padding-box, linear-gradient(150deg, #ff6dbb, var(--pink) 50%, var(--pink-deep)) border-box;
  box-shadow: 0 0 0 9px rgba(15, 12, 26, 0.7), 0 0 50px rgba(255, 45, 158, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.rh.rh-m .rh-core::after { background: radial-gradient(closest-side, rgba(255, 45, 158, 0.08), transparent); }

/* ---------- The Rails: creator pages, refreshed (Jonny, 12-04: "freshen this up") ----------
   Same headline, both paragraphs and both buttons. The old profile card is now a small browser window with a creator
   page laid out like Sweet's real one (avatar in a pink ring, name + verified badge, pink @handle, bio, "Publishing on
   Sweet since", Share this page, three stats, Featured game, games). The window is one link to the page; everything
   inside is decoration (aria-hidden). Sizes inside use cqw so the window scales as one piece. */
/* The text side keeps the old section's formatting (Jonny, 12-04: "the formatting of text… how it was before is a
   lot better"): site.css's .land / .land-text card, proportions and type, with the preview window on the right. */
.cpx-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; align-items: stretch; }
.cpx-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 34px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.cpx-text h2 { font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; text-transform: uppercase; }
.cpx-text p { margin: 0; max-width: 56ch; font-size: 17px; color: var(--muted); }
.cpx-text code { font: 600 15px/1.6 var(--body); color: var(--teal); background: var(--ink); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.cpx-text .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.cpx-frame { align-self: center; }

.cpx-frame { position: relative; display: block; min-width: 0; container-type: inline-size; overflow: hidden; border-radius: 16px; color: inherit; text-decoration: none;
  background: #0f0c1a; border: 1px solid rgba(245, 241, 234, 0.1); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 120px rgba(255, 45, 158, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.cpx-frame:hover { transform: translateY(-4px); border-color: rgba(245, 241, 234, 0.2); box-shadow: 0 48px 100px rgba(0, 0, 0, 0.55), 0 0 120px rgba(255, 45, 158, 0.09); }
.cpx-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #17132a; border-bottom: 1px solid rgba(245, 241, 234, 0.07); }
.cpx-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 241, 234, 0.14); }
.cpx-url { display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin: 0 auto; transform: translateX(-18px); padding: 6px 14px; border-radius: 999px; background: rgba(245, 241, 234, 0.05);
  font: 500 12.5px/1 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--dim); white-space: nowrap; overflow: hidden; }
.cpx-url b { font-weight: 600; color: var(--cream); }
.cpx-url svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.cpx-page { position: relative; display: flex; flex-direction: column; gap: 3cqw; padding: 4.6cqw 4.6cqw 0; }
.cpx-page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13cqw; background: linear-gradient(180deg, rgba(15, 12, 26, 0), #0f0c1a 88%); pointer-events: none; }
.cpx-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 3.4cqw; align-items: start; }
.cpx-av { width: 15cqw; height: 15cqw; border-radius: 50%; object-fit: cover; padding: max(2px, 0.5cqw); border: max(2px, 0.55cqw) solid var(--pink); background: #0f0c1a; }
.cpx-id { display: flex; flex-direction: column; gap: 1cqw; min-width: 0; }
.cpx-name { display: flex; align-items: center; gap: 1.4cqw; font: 800 max(22px, 7cqw)/0.9 var(--display); text-transform: uppercase; color: var(--cream); }
.cpx-ok { flex: none; width: 0.62em; height: 0.62em; }
.cpx-handle { font-weight: 600; font-size: max(12px, 2.5cqw); color: var(--pink); }
.cpx-blurb { font-size: max(11.5px, 2.1cqw); line-height: 1.45; color: var(--muted); }
.cpx-since { align-self: flex-start; margin-top: 0.6cqw; padding: 0.8cqw 1.8cqw; border-radius: 999px; border: 1px solid rgba(245, 241, 234, 0.16); font-size: max(10.5px, 1.7cqw); font-weight: 600; color: rgba(245, 241, 234, 0.86); }
.cpx-share { margin-top: 2.6cqw; padding: 1.2cqw 2.2cqw; border-radius: 999px; border: 1.5px solid rgba(154, 123, 255, 0.55); font: 700 max(10px, 1.7cqw)/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.cpx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqw; }
.cpx-stats > span { display: flex; flex-direction: column; gap: 0.6cqw; padding: 2cqw 2.4cqw; border-radius: 1.6cqw; background: #1b1631; border: 1px solid rgba(245, 241, 234, 0.07); }
.cpx-stats b { font: 800 max(18px, 4.4cqw)/1 var(--display); color: var(--cream); }
.cpx-stats small { font-size: max(10px, 1.7cqw); color: var(--dim); }
.cpx-feat { display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 3cqw; align-items: center; padding: 2.2cqw; border-radius: 2cqw; background: #1b1631; border: 1px solid rgba(245, 241, 234, 0.07); }
.cpx-feat img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1.4cqw; }
.cpx-ftext { display: flex; flex-direction: column; gap: 1.1cqw; min-width: 0; }
.cpx-flabel { font: 700 max(9.5px, 1.6cqw)/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.cpx-ftitle { font: 800 max(18px, 4.6cqw)/0.95 var(--display); text-transform: uppercase; color: var(--cream); }
.cpx-fdesc { font-size: max(11px, 1.95cqw); line-height: 1.4; color: var(--muted); }
.cpx-btns { display: flex; flex-wrap: wrap; gap: 1.2cqw; margin-top: 1cqw; }
.cpx-play, .cpx-more { padding: 1.2cqw 2.4cqw; border-radius: 999px; font: 800 max(10px, 1.8cqw)/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.cpx-play { background: var(--pink); color: var(--ink); }
.cpx-more { border: 1.5px solid rgba(154, 123, 255, 0.55); color: var(--cream); }
.cpx-games { display: flex; flex-direction: column; gap: 1.6cqw; margin-bottom: -5cqw; }
.cpx-glabel { font: 800 max(13px, 2.6cqw)/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--cream); }
.cpx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6cqw; }
.cpx-g { display: flex; flex-direction: column; gap: 0.8cqw; min-width: 0; }
.cpx-g img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1.2cqw; }
.cpx-g b { overflow: hidden; font-size: max(10px, 1.7cqw); font-weight: 600; color: rgba(245, 241, 234, 0.85); white-space: nowrap; text-overflow: ellipsis; }
@container (max-width: 520px) {
  .cpx-head { grid-template-columns: auto minmax(0, 1fr); }
  .cpx-share { display: none; }
  .cpx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cpx-g:nth-child(4) { display: none; }
}
@container (max-width: 430px) {
  .cpx-blurb { display: none; }
  .cpx-feat { grid-template-columns: minmax(0, 1fr); }
  .cpx-url { transform: none; }
}
@media (max-width: 1000px) { .cpx-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .cpx-bar { padding: 0 10px; } .cpx-bar i { display: none; } .cpx-url { padding: 5px 10px; font-size: 11px; } }
@media (max-width: 640px) { .cpx-text { padding: 26px 22px; } .cpx-text code { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; } .cpx-text code .nb { white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .cpx-frame { transition: none; } }

/* ---------- The Rails: the notes under the plans (Jonny, 12-04: "tighten up wording and formatting") ----------
   Four short columns under the four cards, text lined up with the cards' own (24px in), no boxes. */
.plan-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.plan-notes .pn { min-width: 0; padding: 0 10px 0 25px; }
.plan-notes p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.plan-notes p + p { margin-top: 3px; }
.plan-notes b { color: var(--cream); font-weight: 600; }
.plan-notes .pn-k { display: flex; align-items: center; gap: 8px; min-height: 16px; margin-bottom: 8px; font: 700 18px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--cream); }
.plan-notes .pn-k svg { width: 14px; height: 14px; flex: none; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan-notes .pn-ok { stroke: var(--teal); }
.plan-notes .pn-ai { fill: rgba(255, 45, 158, 0.3) !important; stroke: var(--pink); stroke-width: 1.8 !important; }
.plan-notes p.pn-sm { margin-top: 6px; font-size: 13px; color: var(--dim); }
@media (max-width: 1240px) and (min-width: 721px) { .plan-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; } }
@media (max-width: 720px) { .plan-notes { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 28px; } .plan-notes .pn { padding: 0 4px; } }

/* ---------- The Rails: a button on every plan (Jonny, 12-04: "you should at least be able to select a tier") ----------
   Each opens the front page's sign-up sheet in plan mode (chat.js). Builder, the Popular plan, gets the pink one. */
.plan ul { margin-bottom: 26px; }
.plan .plan-go { width: 100%; margin-top: auto; padding: 13px 18px; font-size: 19px; }
.plan .plan-go.ghost { border-color: rgba(245, 241, 234, 0.2); }
.plan .plan-go.ghost:hover { border-color: rgba(245, 241, 234, 0.6); }
/* The sheet's plan box (plan mode) */
.sh-plan p { margin: 2px 0 0; font: 800 26px/1 var(--display); text-transform: uppercase; color: var(--cream); }
.sh-plan p span { margin-left: 6px; font: 600 15px/1 var(--body); text-transform: none; color: var(--muted); }
.sh-plan-d { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ---------- Footer, refreshed (Jonny, 12-04: it "feels off cohesively now") ----------
   Keeps the hero's lit stage (above). The tagline is set like the section headlines, with "Sweet" in pink; the column
   labels use the hub's small label style with a short line; thin lines divide it from the page and the legal line. */
.foot.ft { padding-block: 72px 36px; border-top: 1px solid rgba(245, 241, 234, 0.07); }
.foot.ft .ft-wrap { grid-template-columns: minmax(0, 2.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 40px; }
.ft-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ft-line { margin: 0; font: 800 clamp(32px, 3vw, 44px)/0.95 var(--display); text-transform: uppercase; color: var(--cream); letter-spacing: 0.005em; }
.ft-line em { font-style: normal; color: var(--pink); }
.foot.ft .col h4 { display: flex; align-items: center; gap: 10px; margin: 8px 0 16px; font-weight: 500; font-size: 12px; letter-spacing: 0.18em; color: var(--muted); }
.foot.ft .col h4::before { content: ""; width: 14px; height: 1px; background: var(--pink); opacity: 0.8; }
.foot.ft .col a { padding: 5px 0; font-size: 15px; color: #a69fbd; transition: color 0.2s ease; }
.foot.ft .col a:hover { color: var(--cream); }
.foot.ft .legal-line { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(245, 241, 234, 0.07); font-size: 13px; color: var(--dim); }
@media (max-width: 900px) {
  .foot.ft .ft-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .ft-line { font-size: 32px; } }

/* ---------- Hero: link to The Rails (Jonny, 12-04, a trial) ----------
   A quiet pill at the end of the console's "Handled by Sweet" row. To remove it, delete this block and the
   "HERO RAILS LINK" line in tools/build_pages.py. */
.cs-incl li.cs-rails { margin-left: auto; }
.cs-incl li.cs-rails::before { display: none; }
.cs-rails a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--cream); font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap; transition: border-color 0.15s ease, background 0.15s ease; }
.cs-rails a svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; }
.cs-rails a::after { content: "→"; color: var(--muted); transition: transform 0.2s ease, color 0.15s ease; }
.cs-rails a:hover, .cs-rails a:focus-visible { border-color: var(--pink); background: rgba(255, 45, 158, 0.08); }
.cs-rails a:hover::after { transform: translateX(2px); color: var(--cream); }
@media (max-width: 720px) { .cs-incl li.cs-rails { margin-left: 0; } }
/* "The power behind your game" is longer than the first label, so the row is a little tighter on wide screens to keep
   it on one line with the six items. */
@media (min-width: 1001px) { .cs-incl { gap: 8px 12px; } .cs-incl li.ci { gap: 6px; } .cs-rails a { gap: 6px; padding: 6px 11px 6px 9px; font-size: 13px; } }

/* ---------- Front page: "Optimized by Sweet AI" under the idea (Jonny, 12-05) ----------
   Replaces the "Sweet will add" chips. Built once in chat.js and only shown or hidden, so nothing re-animates while
   you type (the old chips were rebuilt on every keystroke, which made them flicker). */
.cs-reply .opt { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; border: 1px solid rgba(179, 170, 203, 0.28); background: rgba(15, 12, 26, 0.5); color: var(--cream); font: 500 13px/1 var(--body); white-space: nowrap; cursor: default; }
.cs-reply .opt svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--pink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) { .cs-reply { gap: 7px 7px; } .cs-reply .cs-who { flex-basis: 100%; } .cs-reply .opt { font-size: 12.5px; padding: 5px 9px 5px 7px; } }

/* ---------- Front page: the blueprint, right after Build it (back 12-05) ----------
   Jonny's dad missed "that second screen after you submit the game", the 12-04 composer hero's blueprint
   (versions/2026-12-04-composer-hero/). In build mode the sign-up sheet opens wide: Sweet AI's blueprint on the left
   (chat.js builds it), the sign-up on the right once the blueprint is ready (.bp-pending shows a skeleton until then). */
.sheet-back.bp-open { display: flex; align-items: flex-start; justify-content: center; }
.sheet-back.bp-open .sheet { margin: auto; }
.sheet.bp-on { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
.sheet.bp-on .sh-in { display: flex; flex-direction: column; justify-content: center; border-radius: 0 28px 28px 0; border-left: 1px solid var(--line); padding: 34px 32px 26px; }
.sheet.bp-on #sh-idea-box { display: none; }
.bp-ready { display: none !important; }
.sheet.bp-on .bp-ready { display: inline-flex !important; }
.sheet.bp-on #sh-step-1 { animation: modIn 0.35s ease both; }
.sheet.bp-pending #sh-step-1 { display: none; }
.bp-wait { display: none; gap: 12px; }
.sheet.bp-pending .bp-wait { display: grid; }
.bp-wait i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: bpSheen 1.3s linear infinite; }
.bp-wait i.t { height: 40px; width: 80%; }
.bp-wait i.b { height: 50px; border-radius: 14px; }
@keyframes bpSheen { to { background-position: -200% 0; } }
.bp-panel { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 26px 28px; border-radius: 28px 0 0 28px; background: radial-gradient(80% 60% at 20% 0%, rgba(154, 123, 255, 0.16), transparent 70%), linear-gradient(180deg, #1c1636, #120d23); }
.bp-panel[hidden] { display: none; }
.bp-you { display: flex; gap: 12px; align-items: flex-start; padding-right: 44px; }
.bp-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font: 700 13px/1 var(--body); color: var(--muted); }
.bp-you p { flex: 1; min-width: 0; margin: 0; padding: 11px 14px; border-radius: 4px 16px 16px 16px; background: var(--panel); border: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--cream); max-height: 96px; overflow: auto; overflow-wrap: anywhere; }
.bp-edit { flex: none; align-self: center; padding: 8px 4px; background: none; border: 0; color: var(--dim); font: 600 14px/1 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bp-edit:hover, .bp-edit:focus-visible { color: var(--cream); }
.bp-ai { display: flex; gap: 12px; align-items: flex-start; }
.bp-ai-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 45, 158, 0.14); border: 1px solid rgba(255, 45, 158, 0.45); }
.bp-ai-av svg { width: 17px; height: 17px; fill: rgba(255, 45, 158, 0.3); stroke: var(--pink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.run-log.bp-steps { flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding-top: 6px; }
.bp-steps li { font-size: 15px; }
.bp-steps li .st { width: 16px; height: 16px; }
.bp-steps li b { color: var(--cream); font-weight: 600; }
.run-log.bp-steps li span:last-child { white-space: normal; }
.bp-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.bp-card.on { opacity: 1; transform: none; }
.bp-art { position: relative; aspect-ratio: 16 / 8; background: #07050f; }
.bp-art canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.bp-draft { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(15, 12, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 700 12px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.bp-draft i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: bpPulse 1.4s ease-in-out infinite; }
@keyframes bpPulse { 50% { opacity: 0.35; } }
.bp-art canvas { image-rendering: pixelated; }
.bp-body { display: grid; gap: 12px; padding: 14px 16px 16px; }
.bp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.bp-meta { color: var(--muted); font-size: 14px; font-weight: 600; }
.bp-meta b { color: var(--cream); }
.bp-genre { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #0c0917; font: 600 12px/1 var(--body); color: var(--cream); }
.bp-sys { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.bp-sys .mod { padding: 5px 9px 5px 7px; font-size: 13px; }
.bp-url { margin: 0; font: 500 14px/1.35 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.bp-url b { color: var(--teal); font-weight: 600; }
@media (max-width: 1000px) {
  .sheet.bp-on { width: min(620px, 100%); grid-template-columns: minmax(0, 1fr); }
  .bp-panel { border-radius: 28px 28px 0 0; padding: 22px 20px 20px; }
  .sheet.bp-on .sh-in { border-radius: 0 0 28px 28px; border-left: 0; border-top: 1px solid var(--line); padding: 26px 22px 22px; }
}
@media (max-width: 720px) {
  .sheet-back.bp-open .sheet { margin: 44px 0 0; }
  .bp-panel { border-radius: 24px 24px 0 0; padding: 20px 16px 16px; gap: 14px; }
  .sheet.bp-on .sh-in { border-radius: 0; padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .bp-art { aspect-ratio: 16 / 9; }
  .bp-steps li { font-size: 14px; }
  .bp-you p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .bp-wait i, .bp-draft i { animation: none; } .bp-card { transition: none; } }

/* Sweet AI strip on The Rails, under the hub (Jonny, 12-05: concise and small; text only, his pick after a checklist
   and a chat demo). Remove with its block in build_pages.py. */
.sai { max-width: 620px; margin: 72px auto 0; text-align: center; }
.sai-k { display: inline-flex; align-items: center; gap: 9px; margin: 0; font: 700 21px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--cream); }
.sai-k svg { width: 17px; height: 17px; flex: none; fill: rgba(255, 45, 158, 0.3); stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sai p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; text-wrap: balance; }
.sai-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; padding: 10px 0; color: var(--pink); font-weight: 600; font-size: 15px; text-decoration: none; }
.sai-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.sai-go:hover svg { transform: translateX(3px); }
@media (max-width: 1000px) { .sai { margin-top: 52px; } }

/* ---------- The Rails: Sweet AI and the anatomy of a game (under the Sweet AI strip) ----------
   Jonny, 12-05: the layered visual from the short-lived Sweet AI page, refined to show "the anatomy of a game, not a
   sequential development process". Four layers in an isometric stack (his names and lines on the right), and Sweet AI
   as the one strong pink element on the left: a panel with his seven capabilities, joined to every layer by a pink
   spine through the layers' corners. rails.js draws the spine, nodes and labels; a capability lights the layers
   it works on. Remove with the "SWEET AI on The Rails" block in build_pages.py and the second part of rails.js. */
.sx-stage { position: relative; max-width: 1180px; height: 520px; margin: 8px auto 0; perspective: 2400px; --s: 0.9; --sxp: 280px; --sxt: 232px; }
.sx-stage::before { content: ""; position: absolute; left: calc(var(--sxp) + 4%); right: calc(var(--sxt) - 4%); top: 6%; height: 92%; border-radius: 50%; background: radial-gradient(closest-side, rgba(154, 123, 255, 0.12), transparent); pointer-events: none; }
.sx-iso { position: absolute; left: calc(var(--sxp) + (100% - var(--sxp) - var(--sxt)) / 2); top: 372px; width: 380px; height: 238px; margin: -119px 0 0 -190px; transform-style: preserve-3d;
  transform: scale(var(--s)) rotateX(var(--rx, 60deg)) rotateZ(var(--rz, -38deg)); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sx-layer { position: absolute; inset: 0; border-radius: 14px; transform: translateZ(calc(var(--i) * 9px));
  transition: transform 1.5s cubic-bezier(0.2, 0.75, 0.15, 1) calc(var(--i) * 70ms), opacity 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease; }
.sx-stage.open .sx-layer { transform: translateZ(calc(var(--i) * 98px)); }
.sx-stage.sx-snap .sx-layer, .sx-stage.sx-snap .sx-tags li { transition: none !important; } /* restacking off screen (rails.js) */
.sx-stage.sel .sx-layer:not(.lit) { opacity: 0.5; }
.sx-stage.foc .sx-layer.lit:not(.focus) { opacity: 0.82; }
.sx-node, .sx-mk { position: absolute; width: 1px; height: 1px; }
.sx-node { left: 0; top: 0; }
.sx-mk { right: 0; bottom: 0; }
.sx-lk { position: absolute; left: 14px; top: 11px; font: 500 11px/1 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--dim); }
/* the layers, bottom to top */
.sx-l-sweet { background: rgba(255, 45, 158, 0.05); border: 1px solid rgba(255, 45, 158, 0.4); box-shadow: 0 0 70px rgba(255, 45, 158, 0.1); }
.sx-l-sweet.lit { border-color: rgba(255, 45, 158, 0.75); box-shadow: 0 0 80px rgba(255, 45, 158, 0.2); }
.sx-l-sweet.lit.focus { border-color: var(--pink); background: rgba(255, 45, 158, 0.1); box-shadow: 0 0 0 1px rgba(255, 45, 158, 0.3), 0 0 120px rgba(255, 45, 158, 0.34); }
.sx-l-sweet .sx-lk { color: rgba(255, 140, 200, 0.85); }
/* the infrastructure: the hub's icons, status lights and a circuit bus into Sweet's real logo (12-05). Same grid as the
   assets layer: column 1 runs the full height, the rest sit in the two front rows the code layer leaves uncovered. */
.sx-l-sweet ul { list-style: none; margin: 0; padding: 0; position: absolute; inset: 34px 14px 8px; display: grid; grid-template-columns: 100px repeat(3, minmax(0, 1fr)); grid-template-rows: 64px repeat(2, minmax(0, 1fr)); gap: 8px; }
.sx-i { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 5px 4px; min-width: 0; min-height: 0; text-align: center;
  border: 1px solid rgba(255, 45, 158, 0.24); border-radius: 9px; background: linear-gradient(180deg, rgba(255, 45, 158, 0.07), rgba(255, 45, 158, 0.015)), #140e22;
  transition: border-color 0.6s ease, box-shadow 0.6s ease; }
.sx-i b { font: 700 10px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: rgba(255, 200, 230, 0.9); overflow-wrap: anywhere; transition: color 0.6s ease; }
.sx-ic { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; color: #ff8ccd; background: rgba(255, 45, 158, 0.1); border: 1px solid rgba(255, 45, 158, 0.3); }
.sx-ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sx-net { width: 60px; height: auto; fill: #1d1330; stroke: #ff8ccd; stroke-width: 1.6; stroke-linecap: round; }
.sx-net .c { fill: #4a1a4a; stroke: #ff4aa8; }
.sx-i-mp { grid-column: 1; grid-row: 1 / 3; gap: 12px; }
.sx-i-mp b { font-size: 11px; }
.sx-i-ac { grid-column: 1; grid-row: 3; }
.sx-i-pa { grid-column: 2; grid-row: 2; } .sx-i-po { grid-column: 3; grid-row: 2; } .sx-i-lb { grid-column: 4; grid-row: 2; }
.sx-i-an { grid-column: 2; grid-row: 3; } .sx-i-fr { grid-column: 3; grid-row: 3; }
.sx-core { grid-column: 4; grid-row: 3; padding: 8px; border-color: rgba(255, 45, 158, 0.55);
  background: radial-gradient(90% 90% at 50% 50%, rgba(255, 45, 158, 0.2), rgba(255, 45, 158, 0.04) 70%), #170f27; box-shadow: 0 0 22px rgba(255, 45, 158, 0.14); }
.sx-core img { display: block; width: auto; height: 84%; filter: drop-shadow(0 0 10px rgba(255, 45, 158, 0.35)); }   /* the popsicle on its own, with a soft pink glow */
/* a status light per service: dim until the layer is lit, glowing when Sweet infrastructure is powered on */
.sx-led { position: absolute; top: 6px; right: 6px; width: 4px; height: 4px; border-radius: 50%; background: rgba(79, 227, 193, 0.28); transition: background-color 0.6s ease, box-shadow 0.6s ease; }
.sx-l-sweet.lit .sx-led { background: #4fe3c1; }
.sx-l-sweet.lit.focus .sx-led { box-shadow: 0 0 6px rgba(79, 227, 193, 0.9); }
.sx-l-sweet.lit.focus .sx-i { border-color: rgba(255, 45, 158, 0.5); }
.sx-l-sweet.lit.focus .sx-i b { color: #ffe3f1; }
.sx-l-sweet.lit.focus .sx-core { border-color: var(--pink); box-shadow: 0 0 30px rgba(255, 45, 158, 0.32); }
.sx-bus { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sx-bus path { fill: none; stroke: rgba(255, 45, 158, 0.3); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.6s ease; }
.sx-bus circle { fill: #ff4aa8; opacity: 0.45; transition: opacity 0.6s ease; }
.sx-l-sweet.lit .sx-bus path { stroke: rgba(255, 45, 158, 0.55); }
.sx-l-sweet.lit.focus .sx-bus path { stroke: #ff4aa8; }
.sx-l-sweet.lit.focus .sx-bus circle { opacity: 1; }
.sx-l-code, .sx-l-assets { border: 1px solid rgba(245, 241, 234, 0.12); }
.sx-l-code { background: rgba(17, 13, 32, 0.88); }
.sx-l-assets { background: rgba(23, 19, 42, 0.86); }
.sx-l-code.lit, .sx-l-assets.lit { border-color: rgba(255, 45, 158, 0.5); box-shadow: 0 0 44px rgba(255, 45, 158, 0.12); }
.sx-l-code code { display: block; padding: 32px 16px 0; font: 500 9.4px/1.8 'JetBrains Mono', ui-monospace, Menlo, monospace; font-variant-ligatures: none; color: var(--muted); white-space: pre; overflow: hidden; }
.sx-l-code code > span { display: block; }
.sx-l-code .s { color: #9fe8d4; } .sx-l-code .n { color: #f2c14e; } .sx-l-code .k { color: #ff86c8; } .sx-l-code .f { color: #8fd3ff; } .sx-l-code .g { color: var(--cream); }
/* the assets: real renders from games live on Sweet, each on its own small studio backdrop (12-05, "very slick", "show
   dynamic RANGE of assets": photoreal 3D down to pixel sprites). The open stack's game layer covers the back strip of this
   layer (the top ~60px right of the first column), so the operator takes the full-height first column and the other five
   sit in the two front rows; the back strip stays empty. */
.sx-tiles { position: absolute; inset: 34px 14px 8px; display: grid; grid-template-columns: 100px repeat(6, minmax(0, 1fr)); grid-template-rows: 64px repeat(2, minmax(0, 1fr)); gap: 8px; }
.sx-a { position: relative; margin: 0; min-width: 0; min-height: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(245, 241, 234, 0.08); background: radial-gradient(110% 85% at 50% 32%, #2a2244 0%, #191430 55%, #110d22 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); --px: 8px; --py: 7px; }
/* every picture is fitted inside its tile's padding, never cropped (12-05: "the framing... they get cut off") */
.sx-a img { position: absolute; z-index: 1; left: var(--px); top: var(--py); width: calc(100% - 2 * var(--px)); height: calc(100% - 2 * var(--py)); object-fit: contain; }
.sx-a-op { grid-column: 1; grid-row: 1 / 4; --px: 6px; }
.sx-a-op img { top: 12px; height: calc(100% - 40px); object-position: 50% 100%; }
.sx-a-op::before, .sx-a-ship::before { content: ''; position: absolute; left: 20%; right: 20%; bottom: 23px; height: 9px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); }
.sx-a-op::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 72% 30%, rgba(255, 45, 158, 0.14), transparent 70%); pointer-events: none; }
.sx-sw { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.sx-sw i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 0 45%, var(--b) 55% 100%); box-shadow: 0 0 0 1px rgba(245, 241, 234, 0.18); }
.sx-sw i.on { box-shadow: 0 0 0 1px #13101f, 0 0 0 2.2px #ff4aa8; }
.sx-a-gun { grid-column: 5 / 8; grid-row: 2; --px: 8px; --py: 5px; background: radial-gradient(62% 80% at 50% 50%, #40366a 0%, #262043 58%, #141027 100%); } /* lighter: the S-12 is dark gunmetal */
.sx-a-ship { grid-column: 2 / 5; grid-row: 2; --px: 6px; --py: 8px; background: radial-gradient(70% 80% at 50% 45%, #2f2550 0%, #1b1533 60%, #110d22 100%); }
.sx-a-ship::before { left: 18%; right: 18%; bottom: 6px; height: 10px; background: radial-gradient(closest-side, rgba(255, 45, 158, 0.32), transparent); } /* a soft pink hover glow under the ship */
.sx-a-pix { grid-column: 2 / 4; grid-row: 3; --px: 6px; --py: 3px; background:
  repeating-conic-gradient(rgba(255, 255, 255, 0.035) 0 25%, transparent 0 50%) 0 0 / 10px 10px,
  radial-gradient(110% 85% at 50% 32%, #2a2244 0%, #191430 55%, #110d22 100%); }
.sx-a-pix img { image-rendering: pixelated; }
.sx-a-mat { grid-column: 4 / 6; grid-row: 3; --px: 5px; --py: 5px; }
.sx-a-snd { grid-column: 6 / 8; grid-row: 3; }
.sx-wave { position: absolute; left: 9px; top: 12px; width: calc(100% - 18px); height: calc(100% - 24px); overflow: visible; }
.sx-wave rect { fill: rgba(245, 241, 234, 0.26); } .sx-wave rect.p { fill: #ff4aa8; }
.sx-wave .ph { fill: #ffd1ea; }
/* a short, tight shadow: a long one fell across the front row of asset tiles under it */
.sx-l-game { background: #0b0915; border: 1px solid rgba(245, 241, 234, 0.2); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 10px 22px rgba(0, 0, 0, 0.4); }
.sx-l-game.lit { border-color: rgba(255, 45, 158, 0.6); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 34px rgba(255, 45, 158, 0.16), 0 10px 22px rgba(0, 0, 0, 0.4); }
.sx-screen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.sx-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the same game on a phone, so the layer reads "mobile and desktop" */
.sx-phone { position: absolute; right: 16px; bottom: 14px; width: 60px; height: 104px; padding: 3px; border-radius: 11px; background: #07050e; border: 1.5px solid rgba(245, 241, 234, 0.55); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.sx-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
/* Sweet AI: the panel */
.sx-ai { position: absolute; left: 0; top: 50%; z-index: 3; width: var(--sxp); box-sizing: border-box; transform: translateY(-50%); padding: 18px 12px 12px; border-radius: 18px;
  border: 1px solid rgba(255, 45, 158, 0.45); background: linear-gradient(160deg, rgba(255, 45, 158, 0.13), rgba(255, 45, 158, 0.03) 62%), rgba(17, 13, 32, 0.94);
  box-shadow: 0 0 0 4px rgba(255, 45, 158, 0.05), 0 24px 70px rgba(255, 45, 158, 0.13); }
.sx-ai-k { display: flex; align-items: center; gap: 9px; margin: 0 0 10px 10px; font: 700 19px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--cream); }
.sx-ai-k svg { width: 16px; height: 16px; flex: none; fill: rgba(255, 45, 158, 0.3); stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sx-caps button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 500 14.5px/1.25 var(--body); text-align: left; text-wrap: balance; cursor: pointer; transition: background-color 0.35s ease, color 0.35s ease; }
.sx-caps button::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid rgba(255, 45, 158, 0.55); transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.sx-caps button:hover, .sx-caps button.on { color: var(--cream); background: rgba(255, 45, 158, 0.1); }
.sx-caps button.on::before { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 10px rgba(255, 45, 158, 0.8); }
.sx-caps button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
/* the spine, nodes, labels' leader lines and pulses (rails.js) */
.sx-wires { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sx-wires .sp { fill: none; stroke: rgba(255, 45, 158, 0.3); stroke-width: 1.4; }
.sx-wires .on { fill: none; stroke: var(--pink); stroke-width: 1.6; opacity: 0.85; }
.sx-wires .ld { fill: none; stroke: rgba(245, 241, 234, 0.2); stroke-width: 1; }
.sx-wires .ldot { fill: var(--cream); }
.sx-wires .nd { fill: var(--ink); stroke: rgba(255, 45, 158, 0.6); stroke-width: 1.5; }
.sx-wires .nd.lit { fill: var(--pink); stroke: var(--pink); }
.sx-wires .nf { fill: rgba(255, 45, 158, 0.16); stroke: rgba(255, 45, 158, 0.55); stroke-width: 1; }
/* the four layers, named */
.sx-tags { position: absolute; right: 0; top: 0; width: var(--sxt); margin: 0; padding: 0; list-style: none; }
.sx-tags li { position: absolute; left: 0; right: 0; transform: translateY(-50%); opacity: 0; transition: opacity 0.5s ease; }
.sx-stage.placed .sx-tags li { opacity: 1; }
.sx-stage.placed.sel .sx-tags li:not(.lit) { opacity: 0.4; }
.sx-stage.placed.foc .sx-tags li.lit:not(.focus) { opacity: 0.72; }
.sx-tags b { display: block; font: 700 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--cream); }
.sx-tags span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--dim); text-wrap: pretty; }
.sx-tags li[data-l="0"] b { color: var(--pink); }
@media (prefers-reduced-motion: reduce) {
  .sx-layer, .sx-iso, .sx-tags li { transition: none; }
}
@media (max-width: 1180px) { .sx-stage { --s: 0.8; --sxp: 262px; --sxt: 206px; } }
/* stacked: the panel on top, the stack, then the four names in two columns */
@media (max-width: 1000px) {
  .sx-stage { height: auto; max-width: 620px; margin-top: 28px; perspective: 1800px; --s: 0.8; }
  .sx-stage::before { display: none; }
  .sx-ai { position: relative; top: auto; transform: none; width: auto; }
  .sx-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-caps button { min-height: 44px; font-size: 14px; }
  .sx-iso { position: relative; left: 50%; top: 0; margin: 222px 0 0 -190px; }
  .sx-tags { position: static; width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 6px; }
  .sx-tags li { position: static; transform: none; opacity: 1; }
  .sx-a-op img { top: 40px; height: calc(100% - 68px); } /* the stronger perspective here covers a little more of the back strip */
}
@media (max-width: 640px) {
  .sx-stage { --s: 0.66; perspective: 1500px; }
  .sx-iso { left: calc(50% + 8px); margin-top: 190px; margin-bottom: -18px; }
  .sx-ai { padding: 14px 8px 8px; }
  .sx-ai-k { margin-left: 8px; }
  .sx-caps button { gap: 9px; padding: 7px 8px; font-size: 13.5px; }
  .sx-tags { gap: 14px 16px; }
  .sx-tags b { font-size: 15px; }
  .sx-tags span { font-size: 12.5px; }
}
@media (max-width: 360px) { .sx-stage { --s: 0.58; } .sx-iso { margin-top: 172px; margin-bottom: -26px; } .sx-caps button { font-size: 13px; } }

/* ---------- The Rails hub, train-track variant (how-it-works.html?hub=rails; rails.js adds .rh-track) ----------
   Jonny, 12-05: "just for fun... look more like actual train rails. still a mature visual". Same quiet palette as the
   mature look: faint sleepers, soft lavender rails, a cream two-car train, buffer stops at the cards, a turntable
   ring around Sweet. Hovering a card brightens its track. Remove with the ?hub=rails block in rails.js. */
.rh.rh-track .rh-lines .rh-ties { fill: none; stroke: rgba(196, 186, 236, 0.12); stroke-width: 14; stroke-dasharray: 2.4 7.6; stroke-linecap: butt; opacity: 1; animation: none; transition: stroke 0.25s ease; }
.rh.rh-track .rh-lines .rh-rails { fill: none; stroke: rgba(205, 196, 240, 0.4); stroke-width: 8; stroke-dasharray: none; opacity: 1; animation: none; transition: stroke 0.25s ease; }
.rh.rh-track .rh-lines .rh-train { fill: none; stroke: #f5f1ea; stroke-width: 9; stroke-linecap: butt; stroke-dasharray: 13px 3px 13px var(--gap, 600px); stroke-dashoffset: 30px; opacity: 0.62; animation: rh-train var(--dur, 6s) linear var(--delay, 0s) infinite; transition: opacity 0.25s ease; }
@keyframes rh-train { from { stroke-dashoffset: 30px; } to { stroke-dashoffset: calc(-1 * var(--len, 500px)); } }
.rh.rh-track .rh-lines .rh-stop { fill: none; stroke: rgba(245, 241, 234, 0.5); stroke-width: 2.4; stroke-linecap: round; opacity: 1; animation: none; stroke-dasharray: none; transition: stroke 0.25s ease; }
.rh.rh-track .rh-lines .rh-rail-c { fill: none; stroke: rgba(205, 196, 240, 0.34); stroke-width: 1.3; }
.rh.rh-track .rh-lines .rh-tt { fill: none; stroke: rgba(196, 186, 236, 0.11); stroke-width: 12; }
/* the masks that cut each track's two rails out of one wide stroke (8 wide, 5.4 gap: rails.js RAIL_W / GAP_W) */
.rh.rh-track .rh-lines mask path { stroke-dasharray: none; animation: none; opacity: 1; transition: none; stroke-linecap: butt; }
.rh.rh-track .rh-lines .rh-mo { stroke-width: 8; }
.rh.rh-track .rh-lines .rh-mi { stroke-width: 5.4; }
.rh.rh-track .rh-lines .rh-ties.on { stroke: rgba(196, 186, 236, 0.26); }
.rh.rh-track .rh-lines .rh-rails.on { stroke: rgba(225, 218, 250, 0.85); }
.rh.rh-track .rh-lines .rh-train.on { opacity: 1; }
.rh.rh-track .rh-lines .rh-stop.on { stroke: rgba(245, 241, 234, 0.9); }
.rh.rh-track .rh-core::before { display: none; } /* the turntable takes the faint outer ring's place */
@media (prefers-reduced-motion: reduce) { .rh.rh-track .rh-lines .rh-train { display: none; } }
/* stacked hub: the short joins become short lengths of track */
@media (max-width: 1099px) {
  .rh.rh-m.rh-track .rh-hub::before, .rh.rh-m.rh-track .rh-hub::after, .rh.rh-m.rh-track .rh-live::before {
    width: 14px; margin-left: -7px; border: 0;
    background: linear-gradient(90deg, transparent 3px, rgba(205, 196, 240, 0.5) 3px 4.3px, transparent 4.3px 9.7px, rgba(205, 196, 240, 0.5) 9.7px 11px, transparent 11px),
                repeating-linear-gradient(180deg, rgba(196, 186, 236, 0.18) 0 2.4px, transparent 2.4px 10px); }
}

/* The Rails lede (Jonny, 12-05: "make sure this text formats as nicely as it can", then "i want this to be like this^
   not 4 lines"): three lines on desktop at the original 72ch measure, the lead-in inline and a step brighter, a touch
   more leading. */
.build .rails-lead { max-width: 72ch; line-height: 1.6; text-wrap: balance; }   /* balanced at every width: even lines on phones too (12-05 audit) */
.build .rails-lead .rl-in { color: var(--cream); }
