/* The landing page, light (the landing redesign, 2026-11-16; the owner's reference is clerk.com): paper, white panels,
 * one-pixel hairlines, solid ink headlines, and one red kept for the small labels above them. One grid, 1100px wide,
 * that every section lines up on. It loads after site.css, which the subpages keep in black glass, and restyles the
 * pieces the two share (the nav, the buttons, the games, the footer) under `.landing`.
 *
 * As in site.css, every colour, size, corner and shadow is a custom property from @gamesteel/design. A test enforces
 * it. */

/* The engine's dark band runs the window's full width out of the content's grid; nothing may scroll sideways for it. */
html:has(> body.landing) { color-scheme: light; overflow-x: clip }

.landing {
  /* Focus rings in ink: red on paper reads as a mistake. */
  --accent: var(--paper-text);
  background: var(--paper);
  color: var(--paper-text);
}
.landing .page { width: min(1100px, calc(100% - 2 * var(--space-32))) }
/* Code in a sentence, on the paper: ink in the mono face, not the old site's red. */
.landing code { font-variant-ligatures: none; color: var(--paper-text) }

/* ---------- the nav ---------- */

/* A white bar with a hairline, the content's width: the glass's sheen, rim and blur are the subpages'. */
.landing .nav {
  background: var(--paper-panel);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-paper-hair);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.landing .nav::before, .landing .button-glass::before, .landing .nav-menu::before { content: none }
.landing .wordmark-name { background: none; color: var(--paper-text) }
.landing .nav-links { color: var(--paper-text-2) }
.landing .nav-links a:hover, .landing .nav-links a[aria-current="page"] { color: var(--paper-text) }
.landing .nav .button-quiet { color: var(--paper-text-2) }
.landing .nav .button-quiet:hover { color: var(--paper-text) }
.landing .nav { transition: background-color 250ms ease-out, border-color 250ms ease-out, box-shadow 250ms ease-out }
.landing .nav :is(.wordmark-name, .nav-links, .button-quiet, .button-glass, .nav-split-main) { transition: color 250ms ease-out, background-color 250ms ease-out }

/* Over a dark band (nav.js marks it is-dark; the owner, 2026-11-17: "in the dark areas, the navbar should change to a
   dark version"): the bar in the band's own dark, its words light. */
.landing .nav.is-dark { --accent: var(--dark-text); background: var(--dark-panel); border-color: var(--dark-line-strong); box-shadow: none }
.landing .nav.is-dark .wordmark-name { color: var(--dark-text) }
.landing .nav.is-dark .nav-links { color: var(--dark-text-2) }
.landing .nav.is-dark .nav-links a:hover, .landing .nav.is-dark .nav-links a[aria-current="page"] { color: var(--dark-text) }
.landing .nav.is-dark .button-quiet { color: var(--dark-text-2) }
.landing .nav.is-dark .button-quiet:hover { color: var(--dark-text) }
/* Start free (or Editor) stays black, as on the white bar, with a hairline so it shows on the dark (the owner,
   2026-11-17: "Start free button does not turn black"). */
.landing .nav.is-dark .button-glass { border: 1px solid var(--dark-line-strong) }

/* ---------- buttons ---------- */

/* Primary in ink, secondary in white with a hairline: no red, no glow. Start free in the nav, and Editor or Account in
   its place for someone signed in, are ink too. */
.landing .button, .landing .nav-split { border-radius: var(--radius-sm) }
.button-ink, .landing .nav .button-glass { color: var(--paper-panel); background: var(--paper-text); box-shadow: none }
.button-ink:hover, .landing .nav .button-glass:hover { filter: none; background: color-mix(in srgb, var(--paper-text) 86%, var(--paper-panel)) }
.button-paper { color: var(--paper-text); background: var(--paper-panel); border: 1px solid var(--paper-line-strong) }
.button-paper:hover { background: var(--paper-well) }
/* A quiet button outside the nav (the Allow page's Deny): the paper's second ink, not the old site's light grey. */
.landing .button-quiet { color: var(--paper-text-2) }
.landing .button-quiet:hover { color: var(--paper-text) }

/* Editor with its arrow fused on: the ink button's two halves, a hairline of the dark between them. */
.landing .nav-split-main { color: var(--paper-panel); border-start-start-radius: var(--radius-sm); border-end-start-radius: var(--radius-sm) }
.landing .nav-split-arrow { border-left-color: var(--dark-line-strong); border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm) }
/* The keyboard's ring on the ink halves: white, so it shows on them. */
.landing :is(.nav-split-main, .nav-split-arrow):focus-visible { outline-color: var(--paper-panel) }
/* Its menu: a white panel lifted off the page, its words in ink. */
.landing .nav-menu { background: var(--paper-panel); border: 1px solid var(--paper-line); border-radius: var(--radius-md); box-shadow: var(--shadow-paper-lift) }
.landing .nav-menu-item { color: var(--paper-text); border-radius: var(--radius-sm) }
.landing .nav-menu-item:hover, .landing .nav-menu-item:focus-visible { background: var(--paper-well) }

/* ---------- the hero ---------- */

/* The words on the grid's left edge, the agents under them; no film, no sparks, no glow behind it. */
.landing .landing-hero { display: block; min-height: 0; max-width: none; margin: 0; padding: var(--space-96) 0 0; text-align: left }
/* The hero's drawing (the owner, 2026-11-17: "it looks empty", then "make it bigger ... spread into more area"): a
   level rising from a wide 2D tile grid, in the paper's hairlines, out to the window's right edge and fading under the
   words on its left; it never takes a click. */
.landing .landing-hero { position: relative }
.landing .landing-hero > :not(.hero-art) { position: relative; z-index: 1 }
.hero-art { position: absolute; top: var(--space-48); right: calc((100% - 100vw) / 2); z-index: 0; width: min(1200px, 80vw); height: auto; pointer-events: none }
.hero-art :is(path, polygon) { stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke }
.art-grid { fill: none; stroke: var(--paper-line) }
.art-top { fill: var(--paper-panel); stroke: var(--paper-line-strong) }
.art-left { fill: var(--paper-well); stroke: var(--paper-line-strong) }
.art-right { fill: var(--paper-line); stroke: var(--paper-line-strong) }
.art-seam { fill: none; stroke: var(--paper-line-strong) }
.art-ghost { fill: none; stroke: var(--paper-text-3); stroke-dasharray: 3 3 }
/* A dashed cube builds itself while pointed at (the owner, 2026-11-19): its sides rise from the ground, then its top
   drops on, the dashes fading under them; it falls back to its outline when the pointer leaves. Only the cube's own
   outline takes the pointer: the rest of the drawing never does. */
.art-hit { fill: transparent; stroke: none; pointer-events: all }
.art-ghost { transition: opacity 200ms ease-out 150ms }
.art-build { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: opacity 150ms ease-in, transform 200ms ease-in }
.art-top.art-build { transform-origin: 50% 50%; transform: translateY(-24px) }
.art-slot:hover .art-ghost { opacity: 0; transition-delay: 0ms }
.art-slot:hover .art-build { opacity: 1; transform: none; transition: opacity 200ms ease-out, transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1) }
.art-slot:hover .art-right.art-build { transition-delay: 90ms }
.art-slot:hover .art-top.art-build { transition: opacity 160ms ease-out 260ms, transform 320ms cubic-bezier(0.3, 1.4, 0.5, 1) 260ms }
/* The small red label above a heading. */
.kicker { margin: 0; font-size: var(--size-kicker); font-weight: var(--weight-kicker); letter-spacing: var(--track-kicker); line-height: var(--lead-kicker); color: var(--paper-red) }
/* Solid ink: no gradient down the letters, so none of the room it needed round them. As wide as its first sentence, so
   the second starts a line of its own, as the approved page has it; balanced on a phone, where both wrap. */
.landing .display {
  max-width: 720px;
  text-wrap: wrap;
  margin: var(--space-12) 0 0;
  padding: 0;
  font-size: var(--size-hero);
  font-weight: var(--weight-hero);
  letter-spacing: var(--track-hero);
  line-height: var(--lead-hero);
  background: none;
  color: var(--paper-text);
}
.landing .lede { margin: var(--space-16) 0 0; max-width: 560px; font-size: var(--size-body); line-height: var(--lead-body); letter-spacing: var(--track-body); color: var(--paper-text-2) }
.landing .hero-actions { justify-content: flex-start; margin-top: var(--space-32) }
.landing .hero-actions .button { min-height: 44px; font-size: var(--size-small) }
/* The row is as wide as the hero but holds two buttons: its empty width lets the pointer through to the drawing's cubes
   (the owner, 2026-11-19: the lower cube's sides didn't build). */
.landing .landing-hero .hero-actions { pointer-events: none }
.landing .landing-hero .hero-actions > * { pointer-events: auto }

/* The agents it works with: one quiet line, still and grey, wrapping in the middle of the grid. */
.landing .agents { margin-top: var(--space-64); text-align: center }
.agents-label { margin: 0; font-size: var(--size-small); line-height: var(--lead-small); color: var(--paper-text-3) }
.agents-label a { color: var(--paper-text); text-decoration: underline; text-decoration-color: var(--paper-line-strong); text-underline-offset: 3px }
.agents-label a:hover { text-decoration-color: var(--paper-text) }
.agents-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-12) var(--space-24); margin: var(--space-16) 0 0; padding: 0; list-style: none; font-size: var(--size-small) }
.agent { display: inline-flex; align-items: center; gap: var(--space-8); color: var(--paper-text-3) }
.agent:hover { color: var(--paper-text) }
.agent-logo { flex: none; width: 1.25em; height: 1.25em }

/* ---------- the sections ---------- */

/* The engine's dark band and the services fill their own sections (later in the redesign); each lands below the nav
   when a link leads to it. */
.engine-area, .services, .landing .games, .landing .price, .took, .log { scroll-margin-top: calc(var(--nav-height) + var(--space-32)) }

/* A subpage's head (the site pages redesign, 2026-11-17): the landing's section head, a size up as the page's own
   heading, left on the content's grid under the nav. */
.page-head { padding: var(--space-96) 0 var(--space-48) }
.page-head .landing-head { margin: 0 }
.landing .page-head .section-head { margin: 0; font-size: var(--size-section); font-weight: var(--weight-section); letter-spacing: var(--track-section); line-height: var(--lead-section) }
/* The part a head opens on starts right under it. */
.landing .page-head + .games { padding-top: 0 }

/* ---------- the engine ---------- */

/* The engine on its dark band, the window's full width; its top edge has Clerk's cut corners, the dark rising at both
   sides and the paper dipping into it in the middle. */
.engine-area {
  position: relative;
  width: 100vw;
  margin: var(--space-96) 0 0 calc(50% - 50vw);
  /* How far the paper dips into the band in the middle: its top padding, and where nav.js counts the dark from. */
  --band-cut: var(--space-32);
  padding: var(--band-cut) 0 0;
  background: var(--dark-bg);
  color: var(--dark-text);
  /* The cut, which molten.js reads too: it draws the paper above it smooth and takes the clip off, since a clip-path's
     edge is never smoothed (the owner, 2026-11-17: "I can see the pixels"). Without the script, the clip cuts it. */
  --band-shape: polygon(0 0, 3% 0, 5.5% var(--band-cut), 94.5% var(--band-cut), 97% 0, 100% 0, 100% 100%, 0 100%);
  clip-path: var(--band-shape);
}
.engine-area.is-poured { clip-path: none }
/* The cut edge in molten steel (the owner, 2026-11-17: "a wall of molten steel"): molten.js draws the logo's steel along
   the band's own cut, with the forge's glow under it, behind the band's words. */
.band-steel { position: absolute; top: 0; left: 0; z-index: 0; overflow: hidden; pointer-events: none }
.engine-inner { position: relative; z-index: 1; width: min(1100px, calc(100% - 2 * var(--space-32))); margin: 0 auto; padding: var(--space-96) 0 var(--space-96) }
.engine-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: var(--space-48); align-items: end; margin-bottom: var(--space-64) }
.engine-head .landing-head { margin: 0 }
.engine-area .kicker { color: var(--dark-red) }
/* The engine's headline at the section step, one sentence a line, as the schematic was drawn. */
.landing .engine-area .section-head { font-size: var(--size-section); font-weight: var(--weight-section); letter-spacing: var(--track-section); line-height: var(--lead-section); color: var(--dark-text) }
.engine-lede { justify-self: end; max-width: 470px; margin: 0; font-size: var(--size-body); line-height: var(--lead-body); color: var(--dark-text-2); text-wrap: pretty }
.engine-lede b { font-weight: 500; color: var(--dark-text) }

/* The schematic: your agent, the door, the engine's parts, your game, on one row. The wires between them are drawn from
   where each box lands (schematic.js), over a faint grid of dots that fades out at the sides. */
.schematic {
  position: relative;
  display: grid;
  /* As flexible tracks, so the panel can glide open to the full width: 100 : 560 : 60 of what the side boxes leave,
     the drawing's own proportions at its 1100px. */
  grid-template-columns: 196px 100fr 560fr 60fr 184px;
  align-items: center;
  transition: grid-template-columns 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.schematic::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--space-24)) 0;
  background-image: radial-gradient(circle, var(--dark-line) 0.8px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  pointer-events: none;
}
.schematic-wires { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none }
.schematic-wires path { fill: none; stroke: var(--dark-line-strong); stroke-width: 1; shape-rendering: crispEdges; transition: stroke 200ms ease-out }
.schematic-wires path.is-lit { stroke: var(--dark-text-3) }
.schematic-wires circle { fill: var(--dark-text-3); opacity: 0.5 }
.schematic-agent, .schematic-game { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-16); background: var(--dark-panel); border: 1px solid var(--dark-line); border-radius: var(--radius-sm) }
.schematic-agent { grid-column: 1; transition: opacity 300ms ease-out, transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1) }
.schematic-game { grid-column: 5; transition: opacity 300ms ease-out, transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1) }
.schematic-key, .parts-meta, .parts-group, .part-key { font-family: var(--mono); font-variant-ligatures: none; font-size: var(--size-key); font-weight: var(--weight-key); letter-spacing: var(--track-key); line-height: var(--lead-key); text-transform: uppercase; color: var(--dark-text-3) }
.schematic-name { margin-top: var(--space-8); font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--track-title); line-height: var(--lead-title) }
.schematic-said { margin-top: var(--space-4); font-size: var(--size-note); line-height: var(--lead-note); color: var(--dark-text-2) }
.schematic-dims { display: flex; gap: var(--space-4); margin-top: var(--space-12) }
/* 2.5D and 3D in beta (the owner, 2026-11-17): a dashed chip, and the words under them. */
.schematic-dims i.dim-beta { border-style: dashed }
.schematic-beta { display: block; margin-top: var(--space-8); font-family: var(--mono); font-variant-ligatures: none; font-size: var(--size-key); letter-spacing: var(--track-key); line-height: var(--lead-key); color: var(--dark-text-3) }
.schematic-dims i { padding: 3px 6px; border: 1px solid var(--dark-line-strong); border-radius: var(--radius-sm); font-family: var(--mono); font-size: var(--size-key); font-style: normal; line-height: var(--lead-key); color: var(--dark-text-2) }
/* MCP over the agent's wire, "the door" under it. */
.schematic-door { grid-column: 2; display: flex; flex-direction: column; gap: 22px; padding-left: var(--space-16); font-family: var(--mono); font-size: var(--size-key); font-weight: var(--weight-key); letter-spacing: var(--track-key); line-height: var(--lead-key); color: var(--dark-text-3) }
.schematic-door small { font-family: var(--font); font-size: var(--size-key); letter-spacing: 0 }
/* The pulse: one call, carried from the agent through a part to the game. */
.schematic-pulse { position: absolute; top: 0; left: 0; z-index: 2; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: var(--radius-pill); background: var(--dark-red); box-shadow: var(--shadow-pulse); opacity: 0; pointer-events: none; transition: opacity 200ms ease-out }
.schematic-pulse.is-on { opacity: 1 }

/* The engine's parts: a panel of rows, each a button with the part's name, what it does and its tools. */
.parts { position: relative; z-index: 1; grid-column: 3; overflow: hidden; background: var(--dark-panel); border: 1px solid var(--dark-line-strong); border-radius: var(--radius-sm) }
.parts-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); height: 44px; padding: 0 18px; border-bottom: 1px solid var(--dark-line) }
.parts-title { font-size: var(--size-part); font-weight: var(--weight-part); letter-spacing: var(--track-part) }
.parts-back[hidden] { display: none }
.parts-back { padding: 5px 10px; background: var(--dark-raised); border: 1px solid var(--dark-line-strong); border-radius: var(--radius-sm); font: inherit; font-size: var(--size-note); color: var(--dark-text); cursor: pointer }
.parts-back:hover { background: var(--dark-open) }
.parts-group { display: flex; align-items: center; height: 26px; transition: height 400ms cubic-bezier(0.2, 0.7, 0.2, 1); margin: 0; padding: 0 18px; overflow: hidden; background: var(--dark-well); border-bottom: 1px solid var(--dark-line) }
.part { position: relative; border-bottom: 1px solid var(--dark-line) }
.part:last-child { border-bottom: 0 }
.part-base { background: var(--dark-well); border-top: 1px solid var(--dark-line-strong) }
.part-bar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 170px 18px;
  gap: 14px;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: height 400ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 250ms ease-out;
}
.part-base .part-bar { height: 72px }
.part-bar:hover, .part.is-passing .part-bar { background: var(--dark-raised) }
.part-bar:focus-visible { outline: 2px solid var(--dark-text-2); outline-offset: -2px }
.part-name { font-size: var(--size-part); font-weight: var(--weight-part); letter-spacing: var(--track-part); line-height: var(--lead-part) }
.part-key { display: block; margin-bottom: var(--space-4) }
.part-said { font-size: var(--size-note); line-height: var(--lead-note); color: var(--dark-text-2); transition: opacity 250ms ease-out }
.part-tools { font-family: var(--mono); font-variant-ligatures: none; font-size: var(--size-key); line-height: 1.5; text-align: right; color: var(--dark-text-3) }
.part-mark { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--dark-line-strong); border-radius: var(--radius-sm); font-size: var(--size-note); line-height: 1; color: var(--dark-text-2) }
.part-mark::before { content: '+' }
.part-bar:hover .part-mark { background: var(--dark-open); color: var(--dark-text) }
/* Only a part that can open shows that it can: without the script, every part stands open, with nothing to press. */
.parts:not([data-parts="ready"]) .part-mark { visibility: hidden }
.parts:not([data-parts="ready"]) .part-bar { cursor: default }
/* The red line down a part's left edge as the pulse crosses it. */
.part.is-passing::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: 2px; background: var(--dark-red) }
/* Folded, a part's words are hidden, not only squeezed to nothing, so a screen reader doesn't read them under a bar that
   says it is closed; they stay visible while it folds, then hide. */
.parts[data-parts="ready"] .part-detail { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 500ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 500ms }
.parts[data-parts="ready"] .part-inner { min-height: 0; overflow: hidden }

/* ---------- a part open, in place ---------- */

/* The panel takes the whole width; the agent, the door, the game, the wires and the dots fade out to the sides. */
.schematic[data-open] { grid-template-columns: 0px 0fr 1fr 0fr 0px }
.schematic[data-open]::before, .schematic[data-open] .schematic-wires, .schematic[data-open] .schematic-door, .schematic[data-open] .schematic-pulse { opacity: 0 }
.schematic[data-open] .schematic-agent, .schematic[data-open] .schematic-game { opacity: 0; pointer-events: none; overflow: hidden; min-width: 0; white-space: nowrap }
.schematic[data-open] .schematic-agent { transform: translateX(-40px) }
.schematic[data-open] .schematic-game { transform: translateX(40px) }
.schematic[data-open] .schematic-door { overflow: hidden; min-width: 0; padding: 0 }
/* Faded out, the boxes beside the panel are hidden too once they have faded, so nothing reads their squeezed words. */
.schematic[data-open] :is(.schematic-agent, .schematic-game, .schematic-door) { visibility: hidden; transition: opacity 300ms ease-out, transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 300ms }
.schematic[data-open] ~ .parts-hint { opacity: 0 }
.parts-hint { transition: opacity 300ms ease-out }
.parts[data-open] .parts-meta { display: none }
/* The groups fold away; every other part folds to a thin row of its name and tools, still a button to switch to. */
.parts[data-open] .parts-group { height: 0; border-bottom-width: 0 }
.parts[data-open] .part:not(.part-open) .part-bar { height: 36px; min-height: 0 }
.parts[data-open] .part:not(.part-open) .part-said { opacity: 0 }
.parts[data-open] .part-base:not(.part-open) .part-key { display: none }
.part-open > .part-bar { background: var(--dark-raised) }
.part-open .part-mark { background: var(--dark-open); color: var(--dark-text) }
.part-open .part-mark::before { content: '\2212' }
.part-open::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: 2px; background: var(--dark-red) }
.parts[data-parts="ready"] .part-open > .part-detail { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s }

/* Inside a part: three numbers across, then what it is and what is under it beside the code your agent writes. */
.part-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line) }
.part-stats > div { padding: 22px 22px 20px; border-left: 1px solid var(--dark-line) }
.part-stats > div:first-child { border-left: 0 }
.part-stats dt { font-size: var(--size-stat); font-weight: var(--weight-stat); letter-spacing: var(--track-stat); line-height: var(--lead-stat); color: var(--dark-text) }
.part-stats dd { margin: var(--space-4) 0 0; font-size: var(--size-note); line-height: var(--lead-note); color: var(--dark-text-2) }
.part-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
.part-facts { padding: 22px 26px 26px 22px; border-right: 1px solid var(--dark-line) }
.part-sum { max-width: 480px; margin: 0 0 20px; font-size: var(--size-small); line-height: var(--lead-small); color: var(--dark-text-2); text-wrap: pretty }
.part-under { margin: 0 0 var(--space-8); font-family: var(--mono); font-variant-ligatures: none; font-size: var(--size-key); font-weight: var(--weight-key); letter-spacing: var(--track-key); text-transform: uppercase; color: var(--dark-text-3) }
.part-facts ul { margin: 0; padding: 0; list-style: none }
.part-facts li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid var(--dark-line); font-size: var(--size-kicker); line-height: 1.5; color: var(--dark-text-2) }
.part-facts li::before { content: ''; position: absolute; top: 18px; left: 2px; width: 6px; height: 1px; background: var(--dark-red) }
.part-facts em { font-style: normal; font-weight: 500; color: var(--dark-text) }
.part-facts code { font-family: var(--mono); font-variant-ligatures: none; font-size: var(--size-note); color: var(--dark-text) }
.part-code { display: flex; flex-direction: column; min-width: 0; background: var(--dark-well) }
.part-file { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); height: 40px; margin: 0; padding: 0 22px; border-bottom: 1px solid var(--dark-line); font-family: var(--mono); font-variant-ligatures: none; font-size: var(--size-key); color: var(--dark-text-2) }
.part-file span:last-child { color: var(--dark-text-3) }
.part-code pre { flex: 1; margin: 0; padding: 18px 22px 24px; overflow-x: auto; font-family: var(--mono); font-variant-ligatures: none; font-size: var(--size-code); line-height: var(--lead-code); white-space: pre; color: var(--code-text); background: none }
.tk-key { color: var(--code-key) }
.tk-str { color: var(--code-string) }
.tk-num { color: var(--code-number) }
.tk-note { color: var(--dark-text-3) }
/* Its numbers, facts and code come up a little as it opens. */
.parts[data-parts="ready"] :is(.part-stats, .part-facts, .part-code) { opacity: 0; transform: translateY(6px); transition: opacity 350ms ease-out 150ms, transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms }
.parts[data-parts="ready"] .part-open :is(.part-stats, .part-facts, .part-code) { opacity: 1; transform: none }

.parts-hint { margin: 0; padding-top: 18px; text-align: center; font-size: var(--size-note); line-height: var(--lead-note); color: var(--dark-text-3) }
.parts-hint b { font-weight: 500; color: var(--dark-text-2) }

/* A narrower window than the schematic was drawn for: each part's tools go under what it does, its row as tall as its
   words (the wires are measured, so they follow). */
@media (max-width: 1180px) {
  /* No room beside the words: the hero's drawing goes. */
  .hero-art { display: none }
  .part-bar { grid-template-columns: 84px minmax(0, 1fr) 18px; grid-template-areas: "name said mark" "name tools mark"; row-gap: var(--space-4); height: auto; min-height: 52px; padding-block: var(--space-12) }
  .part-base .part-bar { height: auto; min-height: 72px }
  .part-name { grid-area: name }
  .part-said { grid-area: said }
  .part-tools { grid-area: tools; text-align: left }
  .part-mark { grid-area: mark }
  .services .part-bar { grid-template-columns: 180px minmax(0, 1fr) 18px }
  .log-section .part-bar { grid-template-columns: 96px minmax(0, 1fr) 18px }
}

/* Open on a wide screen, each bar is one row again, the panel now having the room. */
@media (min-width: 901px) {
  .schematic[data-open] .part-bar { grid-template-columns: 140px minmax(0, 1fr) 260px 18px; grid-template-areas: none; height: 52px; min-height: 0; padding-block: 0 }
  .schematic[data-open] .part-base.part-open .part-bar { height: 72px }
  .schematic[data-open] :is(.part-name, .part-said, .part-tools, .part-mark) { grid-area: auto }
  .schematic[data-open] .part-tools { text-align: right }
}

/* The engine's parts as a grid, on a wide screen (the owner, 2026-11-17, of the panel of rows: "in height the area is a
   lot, it can barely fit in the window, I want a different layout in width, and not a lot of squares"). The schematic
   runs wider than the page's column; your agent and your game are words, not boxes; the eight parts stand four across
   and two down, hairlines between them, Runtime along the foot. Each part's wires come in at its row's top line, where
   its pulse runs, between the rows of words. Opened, a part goes back to the panel of rows, which then has the whole
   width. Only with the script: without it every part stands open, as rows. */
@media (min-width: 901px) {
  .schematic {
    --schematic-wide: min(1320px, calc(100vw - 2 * var(--space-32)));
    width: var(--schematic-wide);
    margin-left: calc((100% - var(--schematic-wide)) / 2);
    grid-template-columns: 168px 150fr 900fr 56fr 168px;
  }
  .schematic-agent, .schematic-game { padding: 0; background: none; border: 0 }
  .schematic-agent { padding-right: var(--space-16) }
  .schematic-game { padding-left: var(--space-16) }
  .schematic .parts[data-parts="ready"]:not([data-open]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .schematic .parts[data-parts="ready"]:not([data-open]) > :is(.parts-top, .parts-group, .part-base) { grid-column: 1 / -1 }
  .schematic .parts[data-parts="ready"]:not([data-open]) > .part:not(.part-base) { display: flex; flex-direction: column; border-right: 1px solid var(--dark-line) }
  .schematic .parts[data-parts="ready"]:not([data-open]) > .part.part-end { border-right: 0 }
  /* The second row sits on Runtime's own line. */
  .schematic .parts[data-parts="ready"]:not([data-open]) > .parts-group ~ .parts-group ~ .part:not(.part-base) { border-bottom: 0 }
  .schematic .parts[data-parts="ready"]:not([data-open]) > .part:not(.part-base) > .part-bar {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
    height: auto;
    min-height: 0;
    padding: 20px 18px 18px;
  }
  .schematic .parts[data-parts="ready"]:not([data-open]) > .part:not(.part-base) .part-tools { margin-top: auto; padding-top: var(--space-4); text-align: left }
  /* The mark to open it is a plain sign in the corner, not one more box. */
  .schematic .parts[data-parts="ready"]:not([data-open]) .part-mark { border-color: transparent }
  .schematic .parts[data-parts="ready"]:not([data-open]) > .part:not(.part-base) .part-mark { position: absolute; top: 18px; right: 14px }
  .schematic .parts[data-parts="ready"]:not([data-open]) .part-base .part-bar { grid-template-columns: 140px minmax(0, 1fr) 260px 18px; grid-template-areas: none; height: 64px; min-height: 0; padding-block: 0 }
  .schematic .parts[data-parts="ready"]:not([data-open]) .part-base :is(.part-name, .part-said, .part-tools, .part-mark) { grid-area: auto }
  .schematic .parts[data-parts="ready"]:not([data-open]) .part-base .part-tools { text-align: right }
}

/* A part open on a wide screen (the owner, 2026-11-17, once the parts were a grid: "Now the issue is when expanding the
   areas, same height problem"): the other parts are not rows above and below it but one row of tabs across the top,
   Runtime the last, and the open part's numbers, facts and code below them, a little tighter. Each part's box gives
   way (display: contents) so its tab and its words take their own places in the panel. */
@media (min-width: 901px) {
  .engine-area .schematic .parts[data-parts="ready"][data-open] { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)) }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .parts-top { grid-column: 1 / -1; grid-row: 1 }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .parts-group { display: none }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part { display: contents }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part > .part-bar {
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 0;
    padding: 0 var(--space-8);
    border-right: 1px solid var(--dark-line);
    border-bottom: 1px solid var(--dark-line);
    text-align: center;
  }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part:last-child > .part-bar { border-right: 0 }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part > .part-bar :is(.part-said, .part-tools, .part-mark, .part-key) { display: none }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part > .part-bar .part-name { font-size: var(--size-note); color: var(--dark-text-2) }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part > .part-bar:hover .part-name { color: var(--dark-text) }
  /* The open tab: lit, its name bright, a red line along its foot. */
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part-open > .part-bar { border-bottom: 2px solid var(--dark-red) }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part-open > .part-bar .part-name { color: var(--dark-text) }
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part > .part-detail { grid-column: 1 / -1; grid-row: 3; align-self: start }
  /* The open tab's red foot says which is open; the red line down a part's edge would run the whole panel here. */
  .engine-area .schematic .parts[data-parts="ready"][data-open] > .part::before { display: none }
  .engine-area .schematic .parts[data-parts="ready"][data-open] .part-stats { border-top: 0 }
  .engine-area .schematic .parts[data-parts="ready"][data-open] .part-stats > div { padding: 14px 22px 12px }
  .engine-area .schematic .parts[data-parts="ready"][data-open] .part-facts { padding: 18px 26px 18px 22px }
  .engine-area .schematic .parts[data-parts="ready"][data-open] .part-sum { margin-bottom: var(--space-12) }
  .engine-area .schematic .parts[data-parts="ready"][data-open] .part-facts li { padding-block: 6px }
  .engine-area .schematic .parts[data-parts="ready"][data-open] .part-facts li::before { top: 15px }
  .engine-area .schematic .parts[data-parts="ready"][data-open] .part-code pre { padding-block: 14px 18px }
}

/* The panel gliding (schematic.js, the owner, 2026-11-17: "the transitions are not smooth"): the change is made with
   nothing in the panel moving, then only its box glides to its new size and place, 450ms; what is new in it fades in:
   everything when it opens or closes, only the part shown when it switches. */
.parts.is-switching, .parts.is-switching *, .parts.is-switching *::before, .parts.is-switching *::after { transition: none !important }
/* While its box is held to a size, its rows stay packed at the top rather than spreading over the spare room. */
.parts.is-gliding, .parts.is-switching { align-content: start }
.parts.is-gliding { transition: width 450ms cubic-bezier(0.2, 0.7, 0.2, 1), height 450ms cubic-bezier(0.2, 0.7, 0.2, 1), margin-left 450ms cubic-bezier(0.2, 0.7, 0.2, 1) }
.parts.is-new :is(.parts-top, .parts-group, .part-bar, .part-detail), .parts.is-gliding .part-open > .part-detail { animation: parts-in 320ms ease-out both }
@keyframes parts-in { from { opacity: 0 } }

/* The engine in four numbers, on a hairline grid. */
.engine-docs { display: table; margin: var(--space-24) auto 0; font-size: var(--size-small); font-weight: 500; color: var(--dark-text) }
.engine-docs::after { content: ' \203A'; content: ' \203A' / ''; color: var(--dark-text-3) }
.engine-docs:hover { color: var(--dark-text-2) }

/* ---------- the services ---------- */

/* What Gamesteel runs for a game once it is made, on the paper apart from the engine: the same parts panel, in the
   light, each service opening on its numbers and facts (no code, so its facts take the whole width). */
.landing .services { padding: var(--space-96) 0 0 }
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-32); margin-bottom: var(--space-32) }
.services-head .landing-head { margin: 0 }
.services-plans { flex: none; font-size: var(--size-small); font-weight: var(--weight-title); color: var(--paper-text) }
.services-plans::after { content: ' \203A'; content: ' \203A' / ''; color: var(--paper-text-3) }
.services-plans:hover { color: var(--paper-text-2) }
:is(.services, .log-section, .faq) .parts { background: var(--paper-panel); border-color: var(--paper-line-strong); box-shadow: var(--shadow-paper-hair) }
:is(.services, .log-section, .faq) :is(.part, .part-stats, .part-stats > div, .part-facts li) { border-color: var(--paper-line) }
:is(.services, .log-section, .faq) .part-tools { color: var(--paper-text-3) }
:is(.services, .log-section, .faq) :is(.part-said, .part-sum, .part-facts li, .part-stats dd) { color: var(--paper-text-2) }
:is(.services, .log-section, .faq) :is(.part-stats dt, .part-facts em) { color: var(--paper-text) }
:is(.services, .log-section, .faq) :is(.part-bar:hover, .part-open > .part-bar) { background: var(--paper-well) }
:is(.services, .log-section, .faq) .part-bar { grid-template-columns: 200px minmax(0, 1fr) 280px 18px }
:is(.services, .log-section, .faq) .part-bar:focus-visible { outline-color: var(--paper-text-2) }
:is(.services, .log-section, .faq) .part-mark { border-color: var(--paper-line-strong); color: var(--paper-text-2) }
:is(.services, .log-section, .faq) :is(.part-bar:hover, .part-open) .part-mark { background: var(--paper-line); color: var(--paper-text) }
:is(.services, .log-section, .faq) :is(.part-open, .part-facts li)::before { background: var(--paper-red) }
.part-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.part-body-facts { grid-template-columns: minmax(0, 1fr) }
.part-body-facts .part-facts { border-right: 0; border-bottom: 0 }
.part-body-facts .part-facts ul { max-width: 760px }

/* ---------- updates ---------- */

/* Every release a row of the services' light panel, newest first and open: its version, what it brought and when;
   opened, what came and what was fixed, and for the newest release of each engine version that version's tools, part
   by part (the Engine page's version maps until 2026-11-17). */
.log-section { padding: 0 0 var(--space-96) }
.log-section .part-bar { grid-template-columns: 120px minmax(0, 1fr) 200px 18px }
.log-section .part-name { font-family: var(--mono); font-variant-ligatures: none }
/* A release keeps its row and its title when another is open: the log is read down its titles. */
.log-section .log[data-open] .part:not(.part-open) .part-bar { height: 52px }
.log-section .log[data-open] .part:not(.part-open) .part-said { opacity: 1 }
.log-section .part-inner > * { margin-inline: var(--space-24) }
.log-section .part-inner > :last-child { margin-bottom: var(--space-24) }
.log-kind { margin-top: var(--space-16); margin-bottom: 0; font-size: var(--size-small); font-weight: var(--weight-title); color: var(--paper-text-3) }
.log-list { margin-top: var(--space-8); margin-bottom: 0; padding-left: var(--space-16); color: var(--paper-text-2); text-wrap: pretty }
.log-list li + li { margin-top: var(--space-8) }
.log-map { margin-top: var(--space-24); padding-top: var(--space-8); border-top: 1px solid var(--paper-line) }
.log-map-note { margin-top: var(--space-4); margin-bottom: 0; font-size: var(--size-small); line-height: var(--lead-small); color: var(--paper-text-3); text-wrap: pretty }
.log-map-note a { color: var(--paper-text-2); text-decoration: underline; text-decoration-color: var(--paper-line-strong); text-underline-offset: 3px }
/* guide, the one tool an agent reads first, above the eight parts (as the Engine page had it in the agent's box). */
.log-map-first { margin-top: var(--space-16); margin-bottom: 0; font-size: var(--size-small); color: var(--paper-text-2) }
.log-map-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-16) var(--space-24); margin: var(--space-16) 0 0 }
.log-map-parts dt { font-size: var(--size-small); font-weight: var(--weight-title); color: var(--paper-text) }
.log-map-parts dd { margin: 0 }
.log-map-tools { margin: var(--space-4) 0 0; padding: 0; list-style: none; font-size: var(--size-note); line-height: var(--lead-note); color: var(--paper-text-2) }

/* ---------- docs ---------- */
/* On the landing's paper (the site pages redesign, 2026-11-17): white search and menu, ink text, hairlines, code on the
   paper's well. */

/* Docs for people (the owner, 2026-10-26), a page per topic (2026-10-30: "make multiple subpages per theme so it's less
   to read and more organized"), as Cloudflare's: the themes down a sidebar, the page in the middle with where it is
   above it and the page before and after at its foot, and On this page beside it. Narrow, the sidebar folds into a menu
   and On this page goes. */
.docs { padding: var(--space-64) 0 var(--space-64) }
/* Where the side list and On this page begin: under the nav (its margin, its height and its two hairlines) and the
   docs' top. Each is held there, never lower, so it fits the window wherever the page is (the owner, 2026-11-18: "I
   wasn't able to see the last page, until I scroll down in the info page"). */
.docs-layout { --docs-rail-top: calc(var(--space-16) + var(--nav-height) + 2px + var(--space-64)) }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: var(--space-48); align-items: start }
.docs-menu { display: none }
.docs-side {
  position: sticky;
  top: var(--docs-rail-top);
  max-height: calc(100vh - var(--docs-rail-top) - var(--space-24));
  overflow-y: auto;
  /* A wheel past its end stays in it (the owner, 2026-11-18: "if I go beyong don't scroll the pay aswell"). */
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding-right: var(--space-8);
  font-size: var(--size-small);
}
.docs-side-group { display: flex; flex-direction: column; gap: 1px }
.docs-side-head { margin: 0 0 var(--space-4) var(--space-12); color: var(--paper-text-3); font-size: var(--size-small); font-weight: var(--weight-card); letter-spacing: 0.04em; text-transform: uppercase }
.docs-side-count { color: var(--paper-text-3); font-size: var(--size-small); font-variant-numeric: tabular-nums }
/* Agents, folded (the owner, 2026-11-18: "show them all but collapsed first"): its head is the button, with how many
   agents there are and a mark that turns as it opens. */
.docs-side-fold-head { display: flex; align-items: baseline; gap: var(--space-8); margin: 0 0 var(--space-4); padding-right: var(--space-12); border-radius: var(--radius-md); list-style: none; cursor: pointer }
.docs-side-fold-head::-webkit-details-marker { display: none }
.docs-side-fold > :is(.docs-side-link, .docs-menu-link) { display: block }
.docs-side-fold-head .docs-side-head { margin-bottom: 0 }
.docs-side-fold-head::after { content: '\203A'; content: '\203A' / ''; margin-left: auto; color: var(--paper-text-3); transition: transform 120ms ease-out }
.docs-side-fold[open] > .docs-side-fold-head::after { transform: rotate(90deg) }
.docs-side-fold-head:hover .docs-side-head, .docs-side-fold-head:hover::after { color: var(--paper-text) }
.docs-side-fold-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px }
.docs-side-link, .docs-menu-link { padding: var(--space-4) var(--space-12); border-left: 2px solid transparent; border-radius: var(--radius-md); color: var(--paper-text-2); transition: background-color 120ms ease-out, color 120ms ease-out }
.docs-side-link:hover, .docs-menu-link:hover { color: var(--paper-text); background: var(--paper-well) }
.docs-side-link.is-on, .docs-menu-link.is-on { color: var(--paper-text); background: var(--paper-well); border-left-color: var(--paper-red); font-weight: var(--weight-card) }
.docs-side-link:focus-visible, .docs-menu-link:focus-visible, .docs-toc a:focus-visible, .docs-pager-link:focus-visible, .docs-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px }
.docs-body { min-width: 0; max-width: 760px }
/* The docs' search: a box over the page, its results under it, each a page or a section of one with the words found. */
.docs-search { position: relative; margin-bottom: var(--space-24) }
.docs-search-icon { position: absolute; left: var(--space-16); top: 50%; transform: translateY(-50%); fill: none; stroke: var(--paper-text-3); stroke-width: 2; stroke-linecap: round; pointer-events: none }
.docs-search-input {
  width: 100%;
  min-width: 0;
  padding: var(--space-12) var(--space-48);
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-panel);
  box-shadow: var(--shadow-paper-hair);
  color: var(--paper-text);
  font-family: var(--font);
  font-size: var(--size-body);
  appearance: none;
}
.docs-search-input::-webkit-search-cancel-button { appearance: none }
.docs-search-input:focus { outline: 2px solid var(--paper-text-2); outline-offset: 1px }
.docs-search-input::placeholder { color: var(--paper-text-3) }
.docs-search-key { position: absolute; right: var(--space-12); top: 50%; transform: translateY(-50%); padding: 0 var(--space-8); border: 1px solid var(--paper-line); border-radius: var(--radius-sm); color: var(--paper-text-3); font-family: var(--mono); font-size: var(--size-small); pointer-events: none }
.docs-search-input:focus ~ .docs-search-key { display: none }
.docs-search-list {
  position: absolute;
  z-index: 3;
  top: calc(100% + var(--space-8));
  left: 0;
  right: 0;
  max-height: min(480px, 70vh);
  overflow-y: auto;
  margin: 0;
  padding: var(--space-4);
  list-style: none;
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-panel);
  box-shadow: var(--shadow-paper-lift);
}
.docs-search-list[hidden] { display: none }
.docs-search-link { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8) var(--space-12); border-radius: var(--radius-md); color: var(--paper-text) }
.docs-search-item[aria-selected="true"] .docs-search-link { background: var(--paper-well) }
.docs-search-name { font-weight: var(--weight-card) }
.docs-search-said { color: var(--paper-text-2); font-size: var(--size-small); line-height: 1.5 }
.docs-search-mark { background: none; color: var(--paper-text); font-weight: var(--weight-card) }
.docs-search-none { padding: var(--space-12); color: var(--paper-text-3) }
.docs-crumbs { display: flex; flex-wrap: wrap; gap: var(--space-8); color: var(--paper-text-3); font-size: var(--size-small) }
.docs-crumbs a { color: var(--paper-text-2) }
.docs-crumbs a:hover { color: var(--paper-text) }
.docs-title { margin: var(--space-12) 0 0; font-size: var(--size-section-sm); font-weight: var(--weight-section); letter-spacing: var(--track-section) }
.docs-lede { margin: var(--space-12) 0 var(--space-32); color: var(--paper-text-2); font-size: var(--size-lede); text-wrap: pretty }
.docs-part { padding-bottom: var(--space-48); scroll-margin-top: calc(var(--nav-height) + var(--space-32)) }
.docs-head { margin: 0; font-size: var(--size-card); font-weight: var(--weight-card); letter-spacing: var(--track-card) }
.docs-text { margin: var(--space-12) 0 0; color: var(--paper-text-2); text-wrap: pretty }
.docs-list { margin: var(--space-12) 0 0; padding-left: var(--space-24); color: var(--paper-text-2) }
.docs-list li + li { margin-top: var(--space-8) }
.docs-text a, .docs-list a { color: var(--paper-text); text-decoration: underline; text-decoration-color: var(--paper-line-strong); text-underline-offset: 3px }
.docs-text a:hover, .docs-list a:hover { text-decoration-color: var(--accent) }
.docs-text strong, .docs-list strong { color: var(--paper-text); font-weight: var(--weight-card) }
.docs-table-wrap { margin: var(--space-16) 0 0; overflow-x: auto; background: var(--paper-panel); border: 1px solid var(--paper-line-strong); border-radius: var(--radius-sm) }
.docs-table { width: 100%; border-collapse: collapse; font-size: var(--size-small); font-variant-numeric: tabular-nums }
.docs-table th, .docs-table td { padding: var(--space-12) var(--space-16); text-align: left; white-space: nowrap }
.docs-table thead th { background: var(--paper-well); color: var(--paper-text-3); font-weight: var(--weight-card); letter-spacing: 0.04em; text-transform: uppercase; white-space: normal; vertical-align: bottom }
.docs-table tbody th { color: var(--paper-text); font-weight: var(--weight-card) }
.docs-table td { color: var(--paper-text-2) }
.docs-table tbody tr + tr { border-top: 1px solid var(--paper-line) }
/* A table of words rather than numbers: each cell wraps, the first column kept narrow. */
.docs-table.is-words th, .docs-table.is-words td { white-space: normal; vertical-align: top }
.docs-table.is-words tbody th { width: 28% }
.docs-toc {
  position: sticky;
  top: var(--docs-rail-top);
  /* As the side list: it scrolls on its own in a short window, as one thing (the owner, 2026-11-18). */
  max-height: calc(100vh - var(--docs-rail-top) - var(--space-24));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: var(--space-16);
  border-left: 1px solid var(--paper-line);
  font-size: var(--size-small);
}
.docs-toc-head { margin: 0 0 var(--space-8); color: var(--paper-text-3); font-size: var(--size-small); font-weight: var(--weight-card); letter-spacing: 0.04em; text-transform: uppercase }
.docs-toc a { padding: var(--space-4) 0; color: var(--paper-text-2); transition: color 120ms ease-out }
.docs-toc a:hover { color: var(--paper-text) }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); margin-top: var(--space-16); padding-top: var(--space-24); border-top: 1px solid var(--paper-line) }
.docs-pager-link { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8) 0 }
.docs-pager-link:hover .docs-pager-name { color: var(--paper-text-2) }
.docs-pager-link.is-before { grid-column: 1 }
.docs-pager-link.is-after { grid-column: 2; text-align: right }
.docs-pager-say { color: var(--paper-text-3); font-size: var(--size-small) }
.docs-pager-name { color: var(--paper-text); font-weight: var(--weight-card) }
.docs-start { margin: 0 0 var(--space-24) }
.docs-themes { display: flex; flex-direction: column; border-top: 1px solid var(--paper-line) }
.docs-theme { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-24); align-items: baseline; padding: var(--space-16) var(--space-12); border-bottom: 1px solid var(--paper-line); transition: background-color 120ms ease-out }
.docs-theme:hover { background: var(--paper-well) }
.docs-theme-name { color: var(--paper-text); font-weight: var(--weight-card) }
.docs-theme-said { color: var(--paper-text-2); text-wrap: pretty }
@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 200px minmax(0, 1fr) }
  .docs-toc { display: none }
}
@media (max-width: 900px) {
  .docs { padding-top: var(--space-32) }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-24) }
  .docs-side { display: none }
  .docs-menu { display: block; border: 1px solid var(--paper-line); border-radius: var(--radius-sm); background: var(--paper-panel) }
  .docs-menu-head { padding: var(--space-12) var(--space-16); color: var(--paper-text); font-weight: var(--weight-card); cursor: pointer }
  .docs-menu[open] { padding-bottom: var(--space-12) }
  .docs-menu .docs-side-group { padding: var(--space-8) var(--space-8) 0 }
  .docs-theme { grid-template-columns: minmax(0, 1fr); gap: var(--space-4) }
}
/* No side padding: a command that wraps would push its padding past the column's edge (the text-fits check). */
.docs-body code { padding: 1px 0; border-radius: var(--radius-sm); background: var(--paper-well) }

/* ---------- what it took ---------- */

/* The demo's real cost, ruled like a ledger on the page itself. */
.landing .took { padding: 0 0 var(--space-96) }
.landing .took .section-head { margin: 0 }
/* The picker and the picked agent's way in, in one white panel on the paper (the site pages redesign, 2026-11-17). */
.connect-panel { margin-top: var(--space-32); padding: var(--space-32); background: var(--paper-panel); border: 1px solid var(--paper-line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-paper-hair) }
/* As wide as its reading column: the steps and the tools read down one measure, with no empty white beside them. */
.connect-panel { max-width: calc(760px + 2 * var(--space-32)) }
/* A maker's guide, linked in ink with a hairline under it. */
.step-link { color: var(--paper-text); text-decoration: underline; text-decoration-color: var(--paper-line-strong); text-underline-offset: 3px }
.step-link:hover { text-decoration-color: var(--paper-text) }
.took-list { margin: var(--space-32) 0 0; border-bottom: 1px solid var(--paper-line) }
/* The Connect page's 31 agents, in groups a person can find theirs in. */
.took-group { margin: var(--space-48) 0 0; font-size: var(--size-small); font-weight: var(--weight-card); color: var(--paper-text-3) }
.took-group + .took-list { margin-top: var(--space-12) }
/* The hero links to an agent's row; it lands below the floating nav. */
.took-row { display: grid; grid-template-columns: var(--space-128) minmax(0, 1fr); gap: var(--space-24); align-items: baseline; padding: var(--space-16) 0; border-top: 1px solid var(--paper-line); scroll-margin-top: var(--space-128) }
.took-term { font-size: var(--size-small); color: var(--paper-text-3) }
.took-said { margin: 0; color: var(--paper-text) }
/* Picked from the box, the AI is named there: its row drops the name's column and takes the list's whole width,
   centred under the box (the owner, 2026-10-26: "delete the ai name in this area, and center it correctly"). The
   name stays for screen readers, and shows for a browser without scripts, where the list is every AI's. */
.took.is-picking .took-row { grid-template-columns: minmax(0, 1fr) }
.took.is-picking .took-term { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.took-note { margin: var(--space-16) 0 0; font-size: var(--size-small); line-height: var(--lead-small); color: var(--paper-text-3); text-wrap: pretty }
/* An agent's way in (the owner, 2026-10-26: "show the command first, with a clipboard icon to copy it, then explain
   what you have to do organized"): its command in a well with a copy button, then its steps, numbered; what it changes
   folded under them, and its maker's guide. */
.cmd { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-8) var(--space-8) var(--space-16); border: 1px solid var(--paper-line); border-radius: var(--radius-sm); background: var(--paper-well) }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--paper-text) }
.cmd-copy { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--paper-text-2); cursor: pointer; transition: background-color 120ms ease-out, color 120ms ease-out }
.cmd-copy:hover { background: var(--paper-line); color: var(--paper-text) }
.cmd-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
.cmd-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.cmd-icon.is-done, .cmd-copy.is-copied .cmd-icon.is-copy { display: none }
.cmd-copy.is-copied .cmd-icon.is-done { display: block }
.cmd-copy.is-copied { color: var(--paper-good) }
.took-then { margin: var(--space-16) 0 0; font-size: var(--size-small); font-weight: var(--weight-card); color: var(--paper-text-2) }
.took-steps { margin: var(--space-8) 0 0; padding: 0; list-style: none; counter-reset: took-step }
.took-steps li { position: relative; padding: var(--space-4) 0 var(--space-4) var(--space-32); font-size: var(--size-small); line-height: var(--lead-small); color: var(--paper-text); text-wrap: pretty; counter-increment: took-step }
.took-steps li::before { content: counter(took-step); position: absolute; left: 0; top: var(--space-4); display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-pill); background: var(--paper-well); color: var(--paper-text); font-size: var(--size-small); font-weight: var(--weight-card); line-height: 1 }
.took-steps code, .took-details code { color: var(--paper-text-2) }
.took-details { margin: var(--space-16) 0 0; font-size: var(--size-small); line-height: var(--lead-small); color: var(--paper-text-2) }
.took-details summary { cursor: pointer; color: var(--paper-text-2) }
.took-details summary:hover { color: var(--paper-text) }
.took-details p { margin: var(--space-8) 0 0; text-wrap: pretty }
.took-checked { color: var(--paper-text-3) }
.took-guide { margin: var(--space-12) 0 0; font-size: var(--size-small) }
/* Good to know, under the agent's way in. */
.took-know { margin: var(--space-32) 0 0 }
.took-know-head { margin: 0; font-size: var(--size-small); font-weight: var(--weight-card); color: var(--paper-text-3) }
.took-know-list { margin: var(--space-8) 0 0; padding-left: var(--space-16); font-size: var(--size-small); line-height: var(--lead-small); color: var(--paper-text-2) }
.took-know-list li + li { margin-top: var(--space-4) }

/* ---------- the Connect page's pick ---------- */

/* A box a person types their AI into, its list opening under it (connect.js); once picked, only that AI's steps
   show. Without scripts the box is never offered a list, and the whole of it stays below. */
.picker { position: relative; max-width: 560px; margin: 0 0 var(--space-16) }
.picker-label { display: block; margin-bottom: var(--space-8); font-size: var(--size-small); color: var(--paper-text-2) }
.picker-input {
  width: 100%;
  min-width: 0;
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-panel);
  box-shadow: var(--shadow-paper-hair);
  color: var(--paper-text);
  font-family: var(--font);
  font-size: var(--size-body);
}
.picker-input:focus { outline: 2px solid var(--paper-text-2); outline-offset: 1px }
.picker-input::placeholder { color: var(--paper-text-3) }
.picker-options {
  position: absolute;
  z-index: 2;
  top: calc(100% + var(--space-8));
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: var(--space-4);
  list-style: none;
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-panel);
  box-shadow: var(--shadow-paper-lift);
}
.picker-option { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-16); padding: var(--space-8) var(--space-12); border-radius: var(--radius-md); color: var(--paper-text); cursor: pointer }
.picker-option:hover, .picker-option[aria-selected="true"] { background: var(--paper-well) }
.picker-how { font-size: var(--size-small); color: var(--paper-text-3); text-align: right }
/* A row the pick hides, though rows are laid out as grids. */
.took [hidden], .picker [hidden] { display: none }

/* The MCP tools the picked AI gets, compact: names in columns, quiet, read at a glance. */
.tools { margin: var(--space-32) 0 0 }
.tools-head { margin: 0; font-size: var(--size-small); font-weight: var(--weight-card); color: var(--paper-text-3) }
.tools-set + .tools-set { margin-top: var(--space-24) }
.tools-said { margin: var(--space-8) 0 0; font-size: var(--size-small); color: var(--paper-text-3) }
/* The tools by the Engine page's branches (the owner, 2026-10-26: "organized the tools and the subtools correctly"):
   each tool its name, a line of what it does, and its actions as small tags. */
.tools-groups { columns: 2 320px; column-gap: var(--space-32); margin: var(--space-16) 0 0 }
.tools-group { break-inside: avoid; padding-bottom: var(--space-24) }
.tools-group-name { margin: 0; font-size: var(--size-small); font-weight: var(--weight-card); color: var(--paper-text) }
.tools-items { margin: var(--space-8) 0 0 }
.tools-item { padding: var(--space-8) 0; border-top: 1px solid var(--paper-line) }
.tools-name { margin: 0 }
.tools-name code { color: var(--paper-text) }
.tools-about { margin: var(--space-4) 0 0; font-size: var(--size-small); line-height: var(--lead-small); color: var(--paper-text-2); text-wrap: pretty }
.tools-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-8) 0 0 }
.tools-actions code { padding: 2px var(--space-8); border-radius: var(--radius-pill); background: var(--paper-well); color: var(--paper-text-2); font-size: var(--size-small) }

@media (max-width: 900px) {
  .connect-panel { padding: var(--space-16) }
  .took-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-4) }
  /* A long command wraps on a phone rather than run under the copy button; the button copies it whole. */
  .cmd code { white-space: normal; overflow-wrap: anywhere }
}

/* ---------- sign up and log in ---------- */

/* Room at the top for the way back home, so a card taller than the screen never starts under it. */
.centred { display: grid; place-items: center; min-height: 100vh; padding: var(--space-96) var(--space-24) var(--space-48) }
.auth {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  padding: var(--space-32);
  /* One white panel on the paper (the site pages redesign, 2026-11-17). */
  background: var(--paper-panel);
  border: 1px solid var(--paper-line-strong);
  box-shadow: var(--shadow-paper-lift);
}
/* The logo in the middle of the card, and a way back home above it (the owner, 2026-10-26: "center the logo and add a
   goback button to home"). */
.auth .wordmark { align-self: center }
.auth-back {
  position: absolute;
  top: var(--space-24);
  left: var(--space-24);
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16) var(--space-8) var(--space-12);
  border-radius: var(--radius-pill);
  font-size: var(--size-small);
  color: var(--paper-text-2);
  transition: background-color 120ms ease-out, color 120ms ease-out;
}
.auth-back::before { content: ''; width: 14px; height: 14px; background: var(--chevron) no-repeat center / contain; transform: rotate(90deg) }
.auth-back:hover { color: var(--paper-text); background: var(--paper-line) }
.auth-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.auth-title { margin: var(--space-8) 0 0; font-size: var(--size-card); font-weight: var(--weight-card) }
.auth-form { display: flex; flex-direction: column; gap: var(--space-16) }
.field { display: flex; flex-direction: column; gap: var(--space-8) }
.field-label { font-size: var(--size-small); color: var(--paper-text-2) }
.field-input {
  font-family: var(--font);
  font-size: var(--size-body);
  padding: var(--space-12);
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-panel);
  box-shadow: var(--shadow-paper-hair);
  color: var(--paper-text);
  /* Review Focus 2: a long email must not widen the card past the viewport. */
  min-width: 0;
  width: 100%;
}
.field-input:focus { outline: 2px solid var(--paper-text-2); outline-offset: 1px }
/* A dropdown draws its own chevron, inside the field and clear of its edge as the text is (the owner, 2026-10-15:
   "fix the arrow so it is correct and not almost outside the field"); its list opens in the page (dropdown.js). */
select.field-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: calc(var(--space-12) * 2 + 16px);
  background: var(--chevron) no-repeat right var(--space-12) center / 16px 16px, var(--paper-panel);
  cursor: pointer;
  text-overflow: ellipsis;
}
.auth-submit { width: 100% }
.auth-note { margin: 0; font-size: var(--size-small); color: var(--paper-red) }
.auth-said:empty { display: none }
.auth-said {
  margin: 0;
  font-size: var(--size-small);
  color: var(--paper-text);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-md);
  background: var(--paper-well);
}
.auth-alt { margin: 0; font-size: var(--size-small); color: var(--paper-text-3) }
/* Continue with Google (the Google log-in spec): Google's own mark before the words, and "or" before the email form. */
.auth-google { gap: var(--space-12) }
.auth-google-mark { flex: none }
.auth-or { margin: 0; text-align: center; font-size: var(--size-small); color: var(--paper-text-3) }
/* Signing in to gamesteel.online (the profiles design): the line saying so, and Create an account's age question. */
.auth-online { color: var(--paper-text-2) }
.field-note { font-size: var(--size-small); color: var(--paper-text-3) }
.auth-alt a { color: var(--paper-text); text-decoration: underline }
/* Who is signed in on the Allow page, and a way to sign in as another account and come back to it. */
.auth-again { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-4) }
.auth-again-button {
  padding: 0; border: 0; background: none; font: inherit; color: var(--paper-text); text-decoration: underline; cursor: pointer;
}

/* The in-page dropdown (dropdown.js) draws in the old glass's tokens; on paper they are the paper's. */
.landing .gs-dropdown {
  --text: var(--paper-text);
  --text-3: var(--paper-text-3);
  --grain: none;
  --glass-sheen: transparent;
  --glass-float: var(--paper-panel);
  --blur-float: none;
  --shadow-overlay: var(--shadow-paper-lift);
  --glass-select: var(--paper-well);
  --glass-select-low: var(--paper-well);
  --glass-select-line: transparent;
  border: 1px solid var(--paper-line-strong);
}

/* ---------- terms and privacy ---------- */
/* Read down the docs' column on paper (the site pages redesign, 2026-11-17): from the grid's left, headed as every
   subpage is, a heading then what it means. */
.legal { max-width: 720px; padding: var(--space-96) 0 var(--space-96) }
.landing .legal .section-head { margin: 0; font-size: var(--size-section); font-weight: var(--weight-section); letter-spacing: var(--track-section); line-height: var(--lead-section); color: var(--paper-text) }
.legal-updated { margin: var(--space-16) 0 0; font-size: var(--size-small); color: var(--paper-text-3) }
.legal-head { margin: var(--space-48) 0 0; font-size: var(--size-card); font-weight: var(--weight-card); letter-spacing: var(--track-card); color: var(--paper-text) }
.legal-text { margin: var(--space-12) 0 0; color: var(--paper-text-2); text-wrap: pretty }
.legal-text a { color: var(--paper-text); text-decoration: underline; text-decoration-color: var(--paper-line-strong); text-underline-offset: 3px }
.legal-text a:hover { text-decoration-color: var(--paper-text) }
@media (max-width: 900px) {
  .legal { padding-top: var(--space-64) }
  .landing .legal .section-head { font-size: var(--size-section-sm); letter-spacing: var(--track-section-sm); line-height: var(--lead-section-sm) }
}

/* ---------- pricing ---------- */
/* The plans as white cards on paper, four in a row (the site pages redesign, 2026-11-17); each card's rows the same, in
   the same place, one line each (the owner, 2026-10-28 and 2026-11-11). The pick outlined in ink, its label in red. */
.plans, .compare, .faq { scroll-margin-top: calc(var(--nav-height) + var(--space-32)) }
.landing .plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-16) }
.landing .plan { position: relative; display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-24) var(--space-16) var(--space-16); background: var(--paper-panel); border: 1px solid var(--paper-line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-paper-hair) }
.landing .plan.is-pick { border-color: var(--paper-text) }
/* On the name's row, at its right, so the pick's name and price line up with its neighbours'. */
.plan-pick { position: absolute; top: var(--space-24); right: var(--space-16); margin: 0; font-size: var(--size-small); font-weight: var(--weight-title); color: var(--paper-red) }
.plan-name { margin: 0; font-size: var(--size-card); font-weight: var(--weight-card); letter-spacing: var(--track-card); color: var(--paper-text) }
.plan-price { margin: 0; font-size: var(--size-small); color: var(--paper-text-2) }
.plan-amount { font-size: var(--size-section-sm); font-weight: var(--weight-section-sm); letter-spacing: var(--track-section-sm); color: var(--paper-text) }
/* Enterprise, agreed by email (the owner, 2026-10-26): its price a word, softer than the plans' numbers. */
.plan.is-contact .plan-amount { color: var(--paper-text-2) }
.plan-rows { display: flex; flex-direction: column; gap: var(--space-8); margin: 0 0 var(--space-12); padding-top: var(--space-12); border-top: 1px solid var(--paper-line) }
.plan-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-12); font-size: var(--size-small) }
.plan-row dt { color: var(--paper-text-2) }
.plan-row dd { margin: 0; color: var(--paper-text); text-align: right; white-space: nowrap }
.plan-start { margin-top: auto; align-self: stretch }
/* The plans compared in one white panel, row by row, one line each; Pro's column on the paper's well. Narrower than its
   table on a phone, it scrolls sideways inside its panel, its first column held. */
.landing .compare { padding: var(--space-96) 0 0 }
.landing .compare .section-head, .landing .faq .section-head { margin: 0 }
.compare-wrap { margin-top: var(--space-32); overflow-x: auto; background: var(--paper-panel); border: 1px solid var(--paper-line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-paper-hair) }
.compare-table { width: 100%; border-collapse: collapse; font-size: var(--size-small) }
.compare-table :is(th, td) { padding: var(--space-12) var(--space-16); border-bottom: 1px solid var(--paper-line) }
.compare-table tbody tr:last-child > * { border-bottom: 0 }
.compare-table thead th { font-weight: var(--weight-title); color: var(--paper-text); text-align: center }
.compare-table thead .compare-corner { font-weight: inherit; color: var(--paper-text-3); text-align: left }
.compare-table tbody th[scope="row"] { width: 40%; font-weight: inherit; color: var(--paper-text-2); text-align: left }
/* The four plans' columns alike, whatever their cells say. */
.compare-table thead th:not(.compare-corner) { width: 15% }
.compare-table td { color: var(--paper-text); text-align: center; white-space: nowrap }
.compare-table .is-pick { background: var(--paper-well) }
.compare-group th { padding-top: var(--space-24); font-weight: var(--weight-title); color: var(--paper-text); text-align: left }
.compare-table :is(.compare-corner, tbody th) { position: sticky; left: 0; z-index: 1; background: var(--paper-panel) }
/* The check masked in the words' own colour, as the design's signs are. */
.compare-yes { display: inline-block; width: 16px; height: 16px; vertical-align: middle; background: var(--paper-text); -webkit-mask: var(--icon-check) no-repeat center / contain; mask: var(--icon-check) no-repeat center / contain }
.compare-no::before { content: '—'; color: var(--paper-text-3) }
/* The questions start where the plans start (the owner, 2026-10-13), each a row of the services' light panel that
   opens in place to its answer (the owner, 2026-10-26: "the QA just being text unorganized looks bad"). */
.landing .faq { padding: var(--space-96) 0 }
.faq-list { margin-top: var(--space-32) }
/* The question and its mark, at every width: the engine panel's narrow two-row bar layout and its folded padding are not
   the questions'. */
.faq .part-bar, .faq .parts[data-open] .part:not(.part-open) .part-bar { grid-template-columns: minmax(0, 1fr) 18px; grid-template-areas: none; height: auto; min-height: 52px; padding-block: var(--space-12) }
.faq .part-bar > * { grid-area: auto }
.faq-a { max-width: 720px; margin: 0; padding: 0 18px var(--space-24); color: var(--paper-text-2); text-wrap: pretty }
/* Four cards need the grid's full 1100px (a narrower card wrapped Spanish rows): below it, two by two. From a tablet
   up every cell of the comparison is one line; when the table is wider than its panel, it scrolls inside it. */
@media (max-width: 1163px) {
  .landing .plans { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (min-width: 761px) {
  .compare-table :is(th, td) { white-space: nowrap }
}
@media (max-width: 760px) {
  .landing .plans { grid-template-columns: minmax(0, 1fr) }
  .compare-table { min-width: 560px }
  .compare-table tbody th[scope="row"] { width: 150px; min-width: 150px }
  .compare-table thead th:not(.compare-corner) { width: auto }
}

/* A section's head: its red label, then its headline, on the grid's left edge. */
.landing-head { display: flex; flex-direction: column; gap: var(--space-8); margin-bottom: var(--space-32) }
.landing .section-head { font-size: var(--size-section-sm); font-weight: var(--weight-section-sm); letter-spacing: var(--track-section-sm); line-height: var(--lead-section-sm); color: var(--paper-text) }

/* Made with Gamesteel: the published games on the grid's columns, each its picture in a hairline, then its words. */
.landing .games { padding: var(--space-96) 0 0 }
.landing .games-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); justify-content: stretch }
.landing .game { color: var(--paper-text) }
.landing .game-picture { border: 1px solid var(--paper-line); border-radius: var(--radius-md); background: var(--paper-well); box-shadow: var(--shadow-paper-hair) }
.landing .game:hover .game-picture { filter: none }
.landing .game-words { padding: var(--space-12) 0 0 }
.landing .game-name { font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--track-title); line-height: var(--lead-title) }
.landing .game-kind { color: var(--paper-text-2) }
.landing .game-play { color: var(--paper-text) }
.games-all { display: inline-block; margin-top: var(--space-32); font-size: var(--size-small); font-weight: var(--weight-title); color: var(--paper-text) }
.games-all::after { content: '\203A'; content: '\203A' / ''; margin-left: var(--space-4) }
.games-all:hover { color: var(--paper-text-2) }

/* How Coreward was made (2026-11-18): under its card, the story of how an agent made it, in eight chapters. Without
   scripts it is simply open; story.js folds it shut once it can open it, and opens it in place across the row. */
.game-story-host { display: flex; flex-direction: column; min-width: 0 }
.story-open { display: inline-flex; align-items: center; align-self: flex-start; margin-top: var(--space-8); padding: 0; border: 0; background: none; font: inherit; font-size: var(--size-small); font-weight: var(--weight-title); color: var(--paper-text-2); cursor: pointer }
.story-open::after { content: '\203A'; content: '\203A' / ''; display: inline-block; margin-left: var(--space-4); transition: transform 200ms ease-out }
.story-open:hover { color: var(--paper-text) }
.story-open[aria-expanded="true"]::after { transform: rotate(90deg) }
.story { display: block; margin-top: var(--space-24); padding-top: var(--space-24); border-top: 1px solid var(--paper-line) }
.story-open[hidden] { display: none }
/* Folded from the first paint wherever scripts run, so the page does not jump when story.js arrives; a browser without
   scripts shows it open. */
@media (scripting: enabled) { .game-story-host:not([data-story="open"]) .story { display: none } }
.game-story-host[data-story="open"] .story { display: block }
.story-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24) var(--space-32); margin: 0; padding: 0; list-style: none; counter-reset: chapter }
.story-chapter { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; counter-increment: chapter }
.story-chapter-head { margin: 0; font-size: var(--size-body); font-weight: var(--weight-title); line-height: var(--lead-body); color: var(--paper-text) }
.story-chapter-head::before { content: counter(chapter, decimal-leading-zero); margin-right: var(--space-8); font-family: var(--mono); font-variant-ligatures: none; font-size: var(--size-key); font-weight: var(--weight-key); color: var(--paper-text-3) }
.story-quote { margin: 0; padding-left: var(--space-12); border-left: 1px solid var(--paper-line-strong); font-size: var(--size-small); line-height: var(--lead-small); color: var(--paper-text) }
.story-quote p { margin: 0 }
.story-chapter-text { margin: 0; font-size: var(--size-small); line-height: var(--lead-small); color: var(--paper-text-2) }
.story-play { align-self: flex-start; margin-top: var(--space-4); font-size: var(--size-small); font-weight: var(--weight-title); color: var(--paper-text) }
.story-play::after { content: '\203A'; content: '\203A' / ''; margin-left: var(--space-4) }
.story-play:hover { color: var(--paper-text-2) }
.game-story-host[data-story="open"] { grid-column: 1 / -1 }
.game-story-host[data-story="open"] .game { flex-direction: row; align-items: center; gap: var(--space-24) }
.game-story-host[data-story="open"] .game-picture { width: 240px; flex: none }
.game-story-host[data-story="open"] .game-words { padding: 0 }
.game-story-host.is-gliding { overflow: hidden; transition: width 450ms cubic-bezier(0.2, 0.7, 0.2, 1), height 450ms cubic-bezier(0.2, 0.7, 0.2, 1) }
.game-story-host.is-gliding > .game, .game-story-host.is-gliding > .story { flex: none; width: var(--glide-width) }

/* The free week: its words at the grid's left, Start free and See the plans at its right, on one row under a hairline. */
.landing .price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-24) var(--space-48);
  margin-top: var(--space-96);
  padding: var(--space-48) 0 var(--space-96);
  border-top: 1px solid var(--paper-line);
}
.price-words .lede { margin-top: var(--space-8) }
.landing .price .hero-actions { margin: 0 }
/* The Games page closes on the same ask, a little closer to its games. */
.landing .demo-end { margin-top: var(--space-64) }

/* ---------- the footer ---------- */

.landing .foot { border-top-color: var(--paper-line); color: var(--paper-text-3) }
.landing .foot .wordmark { color: var(--paper-text) }
.landing .foot-links a:hover, .landing .foot-mail a:hover, .landing .foot-lang a:hover { color: var(--paper-text) }
.landing .foot-lang { background: var(--paper-well); border-color: var(--paper-line) }
.landing .foot-lang a { color: var(--paper-text-2) }
.landing .foot-lang a[aria-current="true"] { color: var(--paper-text); background: var(--paper-panel); box-shadow: var(--shadow-paper-hair) }
.landing .foot-mail-name { color: var(--paper-text-3) }
.landing .foot-mail a { color: var(--paper-text-2) }

/* ---------- a phone ---------- */

@media (max-width: 900px) {
  .landing .page { width: calc(100% - 2 * var(--space-16)) }
  .landing .landing-hero { padding-top: var(--space-64) }
  .landing .display { font-size: var(--size-display-sm); letter-spacing: var(--track-display-sm); line-height: var(--lead-display-sm); text-wrap: balance }
  .landing .agents { margin-top: var(--space-48) }
  /* The engine, top to bottom: your agent, the door, the parts as a list, your game; no wires, no pulse. */
  .engine-area { --band-cut: var(--space-16); --band-shape: polygon(0 0, 4% 0, 10% var(--band-cut), 90% var(--band-cut), 96% 0, 100% 0, 100% 100%, 0 100%); margin-top: var(--space-64) }
  .engine-inner { width: calc(100% - 2 * var(--space-16)); padding: var(--space-64) 0 }
  .engine-head { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); margin-bottom: var(--space-32) }
  .landing .engine-area .section-head { font-size: var(--size-section-sm); letter-spacing: var(--track-section-sm); line-height: var(--lead-section-sm) }
  .engine-lede { justify-self: start }
  .schematic { display: flex; flex-direction: column; align-items: stretch }
  .schematic::before, .schematic-wires, .schematic-pulse { display: none }
  .schematic-door { flex-direction: row; align-items: center; gap: var(--space-8); height: 48px; margin-left: var(--space-24); padding-left: var(--space-12); border-left: 1px solid var(--dark-line-strong) }
  .schematic-game { margin-top: var(--space-32) }
  .schematic-game::before { content: ''; position: absolute; top: calc(-1 * var(--space-32) - 1px); left: var(--space-24); height: var(--space-32); border-left: 1px solid var(--dark-line-strong) }
  .part-bar { grid-template-columns: 84px minmax(0, 1fr) 18px; grid-template-areas: "name said mark" "name tools mark"; row-gap: var(--space-4); height: auto; min-height: 52px; padding: var(--space-12) var(--space-16) }
  .part-base .part-bar { height: auto }
  .part-name { grid-area: name }
  .part-said { grid-area: said }
  .part-tools { grid-area: tools; text-align: left }
  .part-mark { grid-area: mark }
  .parts-top, .parts-group { padding: 0 var(--space-16) }
  .parts-top { height: auto; min-height: 44px; padding-block: var(--space-4) }
  .parts-back { min-height: 44px; padding-inline: var(--space-12) }
  /* Open on a phone, nothing widens: the agent, the door and the game stay in the column around the panel. */
  .schematic[data-open] :is(.schematic-agent, .schematic-game, .schematic-door) { visibility: visible; opacity: 1; transform: none; white-space: normal; overflow: visible }
  .schematic[data-open] .schematic-door { padding-left: var(--space-12) }
  .schematic[data-open] ~ .parts-hint { opacity: 1 }
  /* A part open on a phone: its numbers one under another, its code under its facts. */
  .part-stats { grid-template-columns: minmax(0, 1fr) }
  .part-stats > div { padding: var(--space-12) var(--space-16); border-left: 0; border-top: 1px solid var(--dark-line) }
  .part-stats > div:first-child { border-top: 0 }
  .part-body { grid-template-columns: minmax(0, 1fr) }
  .part-facts { padding: var(--space-16); border-right: 0; border-bottom: 1px solid var(--dark-line) }
  .part-file, .part-code pre { padding-inline: var(--space-16) }
  /* On a phone the code wraps rather than hiding its line ends off the side (every word fits its box). */
  .part-code pre { overflow-x: visible; white-space: pre-wrap; overflow-wrap: anywhere }
  .parts[data-open] .part:not(.part-open) .part-bar { height: auto; min-height: 36px; padding-block: var(--space-8) }
  .parts[data-open] .part:not(.part-open) .part-said { display: none }
  .services .part-bar { grid-template-columns: 116px minmax(0, 1fr) 18px }
  .log-section .part-bar { grid-template-columns: 72px minmax(0, 1fr) 18px }
  .log-section .log[data-open] .part:not(.part-open) .part-bar { height: auto; min-height: 52px }
  .log-section .log[data-open] .part:not(.part-open) .part-said { display: block }
  .log-map-parts { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .services-head { flex-direction: column; align-items: flex-start; gap: var(--space-16) }
  .landing .services { padding-top: var(--space-64) }
  .landing .games { padding-top: var(--space-64) }
  /* Open on a phone, the card keeps its picture over its words: side by side, the words run off the screen. */
  .game-story-host[data-story="open"] .game { flex-direction: column; align-items: stretch; gap: 0 }
  .game-story-host[data-story="open"] .game-picture { width: 100% }
  .game-story-host[data-story="open"] .game-words { padding: var(--space-12) 0 0 }
  .story-chapters { grid-template-columns: minmax(0, 1fr) }
  .landing .price { margin-top: var(--space-64) }
}

/* ---------- less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .story-open::after, .art-ghost, .art-build, .art-slot:hover :is(.art-ghost, .art-build) { transition: none }
  /* A game's picture stays where it is when pointed at. */
  .landing .game:hover .game-picture { transform: none }
}
