/* THE SITE'S STYLESHEET: the finish (the app's look since 2026-11-08), dark only, read through tokens.css. No hex here
 * (site/tools/check.mjs).
 *
 * Two pages (owner, 2026-11-09: "cinematic main page with download", "extremely big amount of unuseful information"; 2026-11-14:
 * "more cinematic and high quality"): the main page is a short film over the world in depth (world.mjs), the download in its first
 * frame and three scenes below; everything else is one short details page under a still of the same world. The light in the page is the verdict, as in the app: everything lit reads one colour, --lit (tokens.css).
 * Logical properties throughout, so the right-to-left pages mirror without rules of their own. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--ground); scrollbar-color: rgba(var(--f-ink), .16) transparent; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative;
  background: var(--ground); color: var(--text); font: 400 var(--fs-16)/1.6 var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; caret-color: var(--acc);
}
::selection { background: rgba(var(--acc-rgb), .28); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--f-ink), .14); border-radius: var(--r-pill); border: 3px solid var(--ground); }
::-webkit-scrollbar-track { background: transparent; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); text-decoration: underline; text-decoration-color: rgba(var(--acc-rgb), .35); text-underline-offset: 3px; transition: text-decoration-color var(--t-fade); }
a:hover { text-decoration-color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: var(--r-chip); }
[tabindex="-1"]:focus { outline: none; }
code, kbd, samp, .mono { font-family: var(--mono); font-size: .875em; }
/* data stays left to right inside any language (house rule: IPs, hosts, URLs and numbers isolate) */
code, pre, .mono, .file-name, .hash code, .s-where { direction: ltr; unicode-bidi: isolate; }
p { margin: 0 0 var(--sp-16); max-width: 68ch; }
ul, ol { margin: 0 0 var(--sp-16); padding-inline-start: 1.2em; }
li + li { margin-top: var(--sp-6); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: var(--fs-44); letter-spacing: -.03em; }
h2 { font-size: var(--fs-24); margin-bottom: var(--sp-16); }
h3 { font-size: var(--fs-16); margin-bottom: var(--sp-6); letter-spacing: -.005em; line-height: 1.3; }
strong { font-weight: 700; color: var(--text); }
.ic { width: 16px; height: 16px; flex: none; }

/* the window's air: the verdict's light falling from above */
.air { position: fixed; inset: 0 0 auto 0; height: 100vh; z-index: 0; pointer-events: none; background: var(--f-air); }
main, .foot { position: relative; z-index: 1; }

.skip { position: absolute; inset-inline-start: var(--sp-16); top: -60px; z-index: 30; padding: var(--sp-10) var(--sp-16); border-radius: var(--r-key);
  background: rgb(var(--f-key)); color: rgb(var(--f-keytext)); font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--sp-12); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--sp-32); }
.narrow { max-width: 820px; }

/* ── the header: over the scene it is only words on the dark; on the details page it stays, over a fade of the ground ── */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, var(--ground) 0%, rgba(var(--f-void), .86) 55%, rgba(var(--f-void), 0) 100%); }
:root[data-page="index"] .top { position: absolute; inset-inline: 0; background: none; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-16); padding-top: var(--sp-20); padding-bottom: var(--sp-20); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-10); color: var(--text); text-decoration: none; font-weight: 800; font-size: var(--fs-18); letter-spacing: .02em; }
/* Pip is a twelve-by-twelve drawing: only whole pixels a block (24 = 2 a block), or its blocks come out uneven */
.brand .pip { width: 24px; height: 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin: 0; margin-inline-start: auto; padding: 0; list-style: none; }
.nav li + li { margin: 0; }
.nav a { display: inline-flex; align-items: center; gap: var(--sp-6); height: var(--sk-h-m); padding: 0 var(--sp-14); border-radius: var(--r-key);
  color: var(--text-2); font-size: var(--fs-14); font-weight: 600; text-decoration: none; transition: background var(--t-glass), color var(--t-glass); }
.nav a:hover { background: var(--sk-face); color: var(--text); }
.nav a[aria-current="page"] { background: var(--sk-face-on); box-shadow: var(--sk-top); color: var(--text); }
.nav .nav-get { color: var(--text); background: var(--sk-face); box-shadow: var(--sk-top); }
.nav .nav-get .ic { color: var(--acc); }

/* ── keys (the app's keys.css, as links and buttons) ── */
.sk { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-8); height: var(--sk-h-l); padding: 0 var(--sp-20);
  border: 0; border-radius: var(--r-key); background: var(--sk-face); box-shadow: var(--sk-top); color: var(--text);
  font: 600 var(--fs-14)/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t-glass), box-shadow var(--t-glass), color var(--t-glass), filter var(--t-fade), transform var(--t-fade) var(--ease-expo); }
.sk:hover { background: var(--sk-face-hover); box-shadow: var(--sk-top-hover); }
.sk:active { transform: var(--sk-press); }
.sk-main { height: var(--sk-h-main); padding: 0 var(--sp-24); border-radius: var(--r-main); font-size: var(--fs-16);
  background: var(--sk-connect-face); box-shadow: var(--sk-lit-ok); color: rgb(var(--f-keytext)); }
.sk-main:hover { background: var(--sk-connect-face); box-shadow: var(--sk-lit-ok); filter: var(--sk-dim); }
.sk-main:active { transform: var(--sk-press-main); }
.sk-s { height: var(--sk-h-s); padding: 0 11px; border-radius: var(--r-chip); font-size: var(--fs-12); color: var(--text-2); box-shadow: none; }
.sk-s:hover { color: var(--text); box-shadow: none; }
.sk-s.done { color: var(--acc); }
.sk .ic { width: 15px; height: 15px; }
.sk[disabled] { background: transparent; box-shadow: var(--sk-ring-off); color: var(--text-4); cursor: default; filter: none; transform: none; }
.fine { color: var(--text-3); font-size: var(--fs-13); line-height: 1.55; }
.fine strong { color: var(--text-2); font-weight: 600; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--well); color: var(--text-2); font-size: var(--fs-12); font-weight: 700; white-space: nowrap; }
.tag.warn { background: rgba(var(--warn-rgb), .13); color: var(--warn); }
.tag.ok { background: rgba(var(--acc-rgb), .1); color: var(--acc); }

/* glass the light comes through, its edge catching it from above (the app's .card, the finish's B2) */
.glass { position: relative; isolation: isolate; border-radius: var(--r-card); background: var(--f-card-lift), var(--f-glass-solid); box-shadow: var(--f-card-shadow); }
.glass::before { content: ''; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit; pointer-events: none;
  background: var(--f-card-edge); -webkit-mask: var(--f-edge-mask); -webkit-mask-composite: xor; mask: var(--f-edge-mask); mask-composite: exclude; }

/* ═══ THE FILM (owner, 2026-11-14: "more cinematic and high quality"): the world in depth behind the whole main page (world.mjs
   draws it, scene.mjs runs it), the download in the first frame, three scenes as the page scrolls, and a film finish over all ═══ */

/* the world: fixed behind the page, the words on the darkest side of it */
.world-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.world-stage.none { display: none; }
.world-stage canvas.world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.world-stage::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(var(--f-void), .9) 0%, rgba(var(--f-void), .66) 26%, rgba(var(--f-void), 0) 54%),
    linear-gradient(0deg, rgba(var(--f-void), .7) 0%, rgba(var(--f-void), 0) 22%); }
/* the callouts hang from physical points of the picture: their boxes stay left to right in every language, each line keeps its own
   direction */
.w-labels { position: absolute; inset: 0; z-index: 2; direction: ltr; }
.w-label > span { unicode-bidi: plaintext; }
/* the callouts: a thin leader rising from the point to a few words, no box (owner, 2026-11-14); the server's says what the app's card
   says, in its order: the state, the country, the server */
.w-label { position: absolute; left: 0; top: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 0 0 30px 34px; max-width: none; transform: translate(var(--x, -999px), calc(var(--y, -999px) - 100%));
  color: var(--text-2); font-size: var(--fs-13); font-weight: 700; line-height: 1.25; white-space: nowrap; opacity: 0;
  text-shadow: 0 0 18px rgb(var(--f-void)), 0 0 6px rgb(var(--f-void)), 0 1px 2px rgb(var(--f-void)); transition: opacity .6s var(--ease-expo); }
.w-label.on { opacity: 1; }
.w-label::before { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 1px; transform-origin: 0 50%; transform: rotate(-37deg);
  background: linear-gradient(90deg, color-mix(in srgb, var(--lit) 55%, transparent), var(--lit)); }
.w-label::after { content: ''; position: absolute; left: -3px; bottom: -3px; width: 6px; height: 6px; border-radius: var(--r-round); background: var(--lit); }
.w-word { color: var(--lit); font-size: var(--fs-12); }
.w-place { color: var(--text); font-size: var(--fs-22); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.w-where { color: var(--text-3); font-family: var(--mono); font-weight: 500; font-size: var(--fs-12); direction: ltr; unicode-bidi: isolate; }
.w-relay { padding: 0 0 22px 26px; color: var(--text-2); font-size: var(--fs-12); font-weight: 600; }
.w-relay::before { width: 30px; }
.w-held { flex-direction: row; align-items: center; gap: var(--sp-6); color: var(--warn); }
.w-held .ic { width: 15px; height: 15px; }
.w-pair .w-k { color: var(--text-3); font-size: var(--fs-12); font-weight: 600; }
.w-pair span:last-child { color: var(--text); font-size: var(--fs-14); }
/* the after: the same callout falling down and to the right of the server, clear of the route that arrives from below */
.w-after { padding: 30px 0 0 34px; transform: translate(var(--x, -999px), var(--y, -999px)); }
.w-after::before { bottom: auto; top: 0; transform: rotate(37deg); }
.w-after::after { bottom: auto; top: -3px; }
/* Tor's circuit leaves the server to the right: its callout turns to the empty side, up and to the left */
:root[data-scene="tor"] .w-main { align-items: flex-end; padding: 0 34px 30px 0; transform: translate(calc(var(--x, -999px) - 100%), calc(var(--y, -999px) - 100%)); }
:root[data-scene="tor"] .w-main::before { left: auto; right: 0; transform-origin: 100% 50%; transform: rotate(37deg);
  background: linear-gradient(270deg, color-mix(in srgb, var(--lit) 55%, transparent), var(--lit)); }
:root[data-scene="tor"] .w-main::after { left: auto; right: -3px; }
.w-note { position: absolute; z-index: 2; inset-inline-end: var(--sp-32); bottom: var(--sp-16); margin: 0; color: var(--text-4); font-size: var(--fs-11); }

/* the first frame: the headline, the download, and the app itself floating in the light */
.scene { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.scene-body { flex: 1; display: flex; align-items: center; padding-top: 112px; padding-bottom: var(--sp-64); }
.scene-copy { position: relative; z-index: 2; max-width: 600px; }
.scene h1 { font-size: clamp(46px, 6vw, 92px); line-height: .94; letter-spacing: -.048em; max-width: 13ch; font-weight: 800; }
.lede { margin: var(--sp-24) 0 var(--sp-32); max-width: 32em; color: var(--text-2); font-size: var(--fs-18); line-height: 1.55; }

/* the opening's one moment for the words: the headline comes into focus as the world dawns (a rack focus), the rest follows */
:root.intro .scene h1 { animation: focus 1.7s var(--ease-expo) both .25s; }
:root.intro .scene .lede { animation: fade 1.4s var(--ease-expo) both .9s; }
:root.intro .scene .get { animation: fade 1.4s var(--ease-expo) both 1.2s; }
@keyframes focus { from { opacity: 0; filter: blur(14px); letter-spacing: -.02em; } }
@keyframes fade { from { opacity: 0; } }

/* the app, as it looks connected, on a sheet of glass the scene's light falls on */
.app-float { position: absolute; z-index: 1; inset-inline-end: max(var(--sp-32), calc((100vw - 1240px) / 2 + var(--sp-32))); bottom: var(--sp-48);
  width: min(40vw, 580px); margin: 0; pointer-events: none; }
/* a close-up of the real window (its lit map, the card, the route), drawn flat at about 0.6 of its pixels: a tilted or heavily shrunk
   screenshot turns to mush (owner, 2026-11-14: "app screenshot very blurred") */
.app-frame { position: relative; overflow: hidden; aspect-ratio: 960 / 585; border-radius: var(--r-card); background: rgb(var(--f-land));
  box-shadow: 0 50px 90px -30px rgba(var(--f-shade), .95), 0 0 0 1px var(--rim), 0 0 120px -40px color-mix(in srgb, var(--lit) 70%, transparent);
  opacity: 0; translate: 0 48px; transition: opacity 1.4s var(--ease-expo), translate 1.8s var(--ease-expo); }
.app-frame .app-crop { position: absolute; max-width: none; width: 152.083%; left: -52.083%; top: -64.957%; }
.app-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(var(--f-ink), .08), rgba(var(--f-ink), 0) 26%), linear-gradient(0deg, rgba(var(--f-void), .35), rgba(var(--f-void), 0) 30%);
  box-shadow: inset 0 1px 0 rgba(var(--f-ink), .14); }
:root[data-scene="hero"] .app-frame, :root:not(.js) .app-frame { opacity: 1; translate: 0 0; }

.get { max-width: 540px; }
.gate { padding: var(--sp-20); }
.gate-head { display: flex; align-items: center; gap: var(--sp-8); color: var(--text-2); font-size: var(--fs-14); font-weight: 600; }
.gate-head .ic { width: 17px; height: 17px; color: var(--text-3); }
.gate-head [data-icon="unlock"], .gate.open .gate-head [data-icon="lock"] { display: none; }
.gate.open .gate-head [data-icon="unlock"] { display: block; color: var(--acc); }
.gate.open { box-shadow: var(--f-card-shadow), inset 0 0 0 1px color-mix(in srgb, var(--lit) 40%, transparent); }
.gate.open :is(.field, #get-note) { display: none; }
.field { display: flex; flex-wrap: wrap; gap: var(--sp-10); margin-top: var(--sp-12); }
.field input { flex: 1 1 240px; min-width: 0; height: var(--sk-h-l); padding: 0 var(--sp-16); border: 0; border-radius: var(--r-key);
  background: var(--well); box-shadow: inset 0 1px 0 rgba(var(--f-ink), .05), inset 0 0 0 1px rgba(var(--f-ink), .1); color: var(--text);
  font: 500 var(--fs-18)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; direction: ltr; transition: box-shadow var(--t-glass); }
.field input::placeholder { color: var(--text-3); letter-spacing: .08em; }
.field input:hover { box-shadow: inset 0 1px 0 rgba(var(--f-ink), .05), inset 0 0 0 1px rgba(var(--f-ink), .18); }
.field input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.field .sk-main { height: var(--sk-h-l); border-radius: var(--r-key); font-size: var(--fs-14); }
.field.nope input { animation: nope .32s var(--ease-out-in); box-shadow: inset 0 0 0 1px rgba(var(--err-rgb), .6); }
@keyframes nope { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.status { margin: var(--sp-10) 0 0; font-size: var(--fs-14); color: var(--text-2); }
.status:empty { display: none; }
.status[data-tone="bad"] { color: var(--err); }
.status[data-tone="warn"] { color: var(--warn); }
#get-note { margin: var(--sp-12) 0 0; }
.build { margin-top: var(--sp-12); padding: var(--sp-20); }
.build[hidden] { display: none; }
.build.reveal { animation: unveil .8s var(--ease-expo) both; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.build-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6) var(--sp-12); margin-bottom: var(--sp-12); }
.build-head h2 { margin: 0; font-size: var(--fs-22); }
.build-head .fine { flex-basis: 100%; }
.file + .file { margin-top: var(--sp-16); padding-top: var(--sp-16); border-top: 1px solid var(--rim-soft); }
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-10) var(--sp-16); }
.file-what { flex: 1 1 200px; min-width: 0; }
.file-what h3 { margin: 0 0 2px; }
.file-name { display: block; overflow-wrap: anywhere; color: var(--text-3); font-family: var(--mono); font-size: var(--fs-12); }
.file-size { color: var(--text-2); font-size: var(--fs-14); font-weight: 700; }
.hash { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6) var(--sp-10); margin-top: var(--sp-12); }
.hash-label { color: var(--text-3); font-size: var(--fs-12); font-weight: 600; }
.hash code { flex: 1 1 260px; min-width: 0; word-break: break-all; color: var(--text-2); font-size: var(--fs-12); line-height: 1.5; }
.build .fine { margin: var(--sp-10) 0 0; }

/* the scenes below the first frame: a picture and one claim each, its limit beside it; the scene across the middle of the window is
   the one the world shows, and its words come up to full strength */
.act { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.act-body { padding-block: var(--sp-96); }
.act-copy { max-width: 520px; }
:root.js .act-copy { opacity: .16; transition: opacity 1s var(--ease-expo); }
:root[data-scene="held"] .act[data-scene="held"] .act-copy, :root[data-scene="tor"] .act[data-scene="tor"] .act-copy,
:root[data-scene="leak"] .act[data-scene="leak"] .act-copy, :root[data-scene="end"] .act[data-scene="end"] .act-copy { opacity: 1; }
.act h2 { margin-bottom: var(--sp-24); font-size: clamp(38px, 4.8vw, 72px); font-weight: 800; line-height: .98; letter-spacing: -.045em; max-width: 11ch; }
.act p { color: var(--text-2); font-size: var(--fs-18); line-height: 1.55; max-width: 30em; }
.act .limit { display: flex; gap: var(--sp-10); margin-top: var(--sp-20); color: var(--text-3); font-size: var(--fs-14); }
.act .limit::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: .55em; border-radius: var(--r-round); background: var(--warn); }
.end-keys { display: flex; flex-wrap: wrap; gap: var(--sp-12); margin-top: var(--sp-32); }
.end-keys .sk-main .ic { width: 17px; height: 17px; }
.limit { display: block; color: var(--text-3); font-size: var(--fs-13); line-height: 1.5; max-width: 64ch; }

/* the film finish: grain that never sits still, the corners falling to dark, and the letterbox the opening plays in */
.film { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.film::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 125% 95% at 50% 42%, rgba(var(--f-shade), 0) 58%, rgba(var(--f-shade), .5) 100%); }
.film::after { content: ''; position: absolute; inset: -120px; background: url(grain.svg) 0 0 / 240px 240px repeat; opacity: .075;
  animation: grain 1s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-44px, 26px); } 33% { transform: translate(30px, -38px); }
  50% { transform: translate(-20px, -64px); } 67% { transform: translate(56px, 32px); } 83% { transform: translate(-66px, 10px); } 100% { transform: translate(0, 0); } }
.letterbox { display: none; }
:root.intro .letterbox, :root.opened .letterbox { display: block; }
.letterbox i { position: fixed; inset-inline: 0; z-index: 36; height: 11vh; background: rgb(var(--f-shade)); transition: transform 1.6s var(--ease-expo); }
.letterbox i:first-child { top: 0; }
.letterbox i:last-child { bottom: 0; }
:root.opened .letterbox i:first-child { transform: translateY(-101%); }
:root.opened .letterbox i:last-child { transform: translateY(101%); }

/* ═══ THE DETAILS PAGE ═══ */
.page-head { position: relative; isolation: isolate; overflow: hidden; min-height: 54vh; display: flex; align-items: flex-end; padding: 140px 0 var(--sp-48); }
.world-stage.world-head { position: absolute; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, rgba(var(--f-shade), 0) 0%, rgb(var(--f-shade)) 22%, rgb(var(--f-shade)) 52%, rgba(var(--f-shade), 0) 100%);
  mask-image: linear-gradient(180deg, rgba(var(--f-shade), 0) 0%, rgb(var(--f-shade)) 22%, rgb(var(--f-shade)) 52%, rgba(var(--f-shade), 0) 100%); }
.page-head h1 { font-size: clamp(56px, 8.4vw, 124px); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.page-head p { margin-top: var(--sp-12); color: var(--text-2); font-size: var(--fs-18); }
.toc { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-20); }
.toc a { display: inline-flex; align-items: center; height: 34px; padding: 0 var(--sp-14); border-radius: var(--r-pill); background: var(--sk-face);
  color: var(--text-2); font-size: var(--fs-13); font-weight: 600; text-decoration: none; transition: background var(--t-glass), color var(--t-glass); }
.toc a:hover { background: var(--sk-face-hover); color: var(--text); }
.band { padding: var(--sp-64) 0; }
.band h2 { margin-bottom: var(--sp-24); font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.035em; }
.band + .band { border-top: 1px solid var(--rim-soft); }
.sub { margin: var(--sp-32) 0 var(--sp-12); font-size: var(--fs-18); }
/* what isn't protected beside what the app connects to: one band, two columns */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-64); align-items: start; }
.split .sub { margin-top: var(--sp-10); }

/* a claim and its limit (the dots are the app's colours: mint does, amber stops) */
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 var(--sp-12); padding: var(--sp-16) 0; margin: 0; }
.rows > li + li { border-top: 1px solid var(--rim-soft); }
.rows .d { width: 8px; height: 8px; margin-top: .5em; border-radius: var(--r-round); background: var(--acc); }
.rows .d.w { background: var(--warn); }
.rows p { margin: 0; color: var(--text-2); font-size: var(--fs-14); max-width: 64ch; }
.rows .limit { margin-top: var(--sp-8); }
.rows .limit::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: var(--sp-8); border-radius: var(--r-round); background: var(--warn); vertical-align: 1px; }
.rows.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-64); }
.rows.two > li { border-top: 1px solid var(--rim-soft); }
.rows.two > li:nth-child(-n+2) { border-top: 0; }
.plain { color: var(--text-2); font-size: var(--fs-14); }
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps > li { position: relative; padding-inline-start: 40px; margin: 0; max-width: 68ch; }
.steps > li + li { margin-top: var(--sp-14); }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: var(--r-round); background: var(--well); color: var(--text-2); font-size: var(--fs-12); font-weight: 800; }

/* ── the footer ── */
.foot { margin-top: auto; padding: var(--sp-24) 0 var(--sp-32); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-12) var(--sp-24); padding-top: var(--sp-24); border-top: 1px solid var(--rim-soft); }
.foot .brand { font-size: var(--fs-14); }
.foot .foot-note { margin: 0; }

/* the 404 */
.lost { display: grid; place-items: center; text-align: center; gap: var(--sp-16); padding: var(--sp-128) 0; }
.lost .pip { width: 96px; height: 96px; }
.keys { display: flex; flex-wrap: wrap; gap: var(--sp-12); align-items: center; justify-content: center; }

/* Pip: the app's twelve-by-twelve signal ghost (pip.mjs draws the paths) */
.pip { display: inline-block; flex: none; shape-rendering: crispEdges; }
.pip .g { fill: var(--f-logo); }
.pip .k { fill: var(--pip-eye); }

/* ── the language menu: a disclosure that works without JavaScript ── */
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; height: var(--sk-h-m); padding: 0 var(--sp-12); border-radius: var(--r-key);
  color: var(--text-2); font-size: var(--fs-13); font-weight: 700; letter-spacing: .04em; cursor: pointer; list-style: none; transition: background var(--t-glass), color var(--t-glass); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--sk-face); color: var(--text); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; min-width: 168px; margin: 0; padding: var(--sp-6); list-style: none;
  border-radius: var(--r-plate); background: var(--f-glass-solid); box-shadow: var(--f-card-shadow), inset 0 0 0 1px var(--rim); }
.lang li + li { margin: 0; }
.lang a { display: block; padding: var(--sp-8) var(--sp-12); border-radius: var(--r-in); color: var(--text-2); font-size: var(--fs-14); text-decoration: none; }
.lang a:hover { background: var(--sk-face); color: var(--text); }
.lang a[aria-current] { color: var(--acc); }

/* ── the other languages (the app's stacks: Persian falls to Segoe UI, Chinese to Microsoft YaHei UI; others for other systems) ── */
:root[lang="fa"] { --sans: 'Manrope', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif; }
:root[lang="zh"] { --sans: 'Manrope', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', system-ui, sans-serif; }
/* Arabic script never takes letter-spacing: tracking pulls its joined letters apart (the house rule) */
:root[lang="fa"] *, :root[lang="fa"] *::before, :root[lang="fa"] *::after { letter-spacing: 0 !important; }
:root[lang="fa"] body { line-height: 1.85; }
:root[lang="fa"] :is(h1, h2, h3) { line-height: 1.4; }
:root[lang="fa"] :is(.scene h1, .act h2) { max-width: 12ch; line-height: 1.25; }
:root[lang="zh"] body { line-height: 1.8; }
:root[lang="zh"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
:root[lang="zh"] :is(.scene h1, .act h2) { max-width: 8em; letter-spacing: 0; line-height: 1.15; }
:root[lang="ru"] .scene h1 { max-width: 15ch; font-size: clamp(40px, 5vw, 76px); }
:root[lang="ru"] .act h2 { max-width: 15ch; font-size: clamp(34px, 4vw, 60px); }
/* right to left, the scene keeps its picture: the words stay on the sea, only they turn */
:root[dir="rtl"] :is(.scene-body, .act-body) { direction: ltr; }
:root[dir="rtl"] :is(.scene-copy, .act-copy) { direction: rtl; }
:root[dir="rtl"] .file-name { text-align: right; }

/* ── narrow windows: one column, nothing sideways ── */
@media (max-width: 900px) {
  /* a tall window: the world above (world.mjs frames it so), the words below on the dark */
  .scene-body { align-items: flex-end; padding-top: 46vh; }
  .act { align-items: flex-end; }
  .act-body { padding-block: 50vh var(--sp-64); }
  .world-stage::before { background: linear-gradient(0deg, rgba(var(--f-void), .96) 0%, rgba(var(--f-void), .86) 36%, rgba(var(--f-void), 0) 62%); }
  .app-float { display: none; }
  .w-note { inset-inline-end: auto; inset-inline-start: var(--sp-16); }
  .rows.two, .split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-16); }
  .rows.two > li:nth-child(2) { border-top: 1px solid var(--rim-soft); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: var(--sp-16); }
  .lede, .page-head p { font-size: var(--fs-16); }
  .gate, .build { padding: var(--sp-16); }
}

/* reduced motion: movement stops; colour and state still change, quickly (the app's gate keeps meaning, drops travel). early.js
   sets html[data-motion] from the system's setting (?motion=full overrides it); without JavaScript the media query decides. */
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after { animation: none !important; transition-duration: .01s !important; scroll-behavior: auto !important; }
:root[data-motion="reduced"] { transition-duration: .2s !important; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion]) *, :root:not([data-motion]) *::before, :root:not([data-motion]) *::after { animation: none !important; transition-duration: .01s !important; }
}
