/* The game's site. Phone first; wide windows get the whole window, never a column.
   Colour law (UI system): yellow #FFD21F is the player's dot and its mark on the ruler,
   and nothing else. A door (Play) is made of the stage's material: --mat / --mat-label / --tint
   are set per section by the build and follow the stage in view. */
@font-face { font-family: "Site Display"; src: url(../fonts/display-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Site Text"; src: url(../fonts/text-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Site Text"; src: url(../fonts/text-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --ink: #14212B;
  --base: #0F1B24;
  --panel: #1B2C38;
  --bone: #F3EAD7;
  --dim: #B4C0C4;
  --locked: #8A979D;
  --focus: #7FD6E8;
  --dot: #FFD21F;
  --mat: #C8421A; --mat-label: #FFF6EA; --tint: #3A1A12;
  --display: "Site Display", Georgia, "Times New Roman", serif;
  --text: "Site Text", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pace: 1;
  --bar: calc(64px + env(safe-area-inset-top, 0px));
}
* { box-sizing: border-box; }
a, button, summary, .door, .btn, .mi { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--base); overflow-x: clip; }
body { margin: 0; font: 400 17px/1.5 var(--text); color: var(--bone); overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 12px; }
a { color: inherit; text-underline-offset: 3px; }
sup { font-size: .68em; line-height: 0; vertical-align: .55em; }
.dim { color: var(--dim); font-weight: 400; }

/* focus: a cyan ring on an ink halo, so it reads on fire, water, bone and space alike */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 8px var(--ink) !important; border-radius: 6px; animation: none; }
.door:focus-visible, .btn:focus-visible, .toc a:focus-visible { border-radius: 26px; }

/* the skip link */
.skip { position: absolute; z-index: 30; left: 12px; top: -90px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 24px; background: var(--panel); color: var(--bone); font-weight: 700; }
.skip:focus { top: 10px; }
.said { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the door: the one way in. Same shape everywhere, made of the stage's material */
.door { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 132px; padding: 0 30px; border-radius: 26px;
  font: 700 17px/1 var(--text); letter-spacing: .03em; text-decoration: none; color: var(--mat-label); cursor: pointer; pointer-events: auto;
  background: radial-gradient(130% 150% at 22% -30%, color-mix(in srgb, var(--mat) 62%, #fff) 0%, var(--mat) 46%, color-mix(in srgb, var(--mat) 82%, #000) 100%);
  box-shadow: inset 0 0 0 1.5px var(--bone), 0 0 0 2px var(--ink), 0 6px 22px color-mix(in srgb, var(--mat) 70%, transparent);
  transition: transform .08s ease, background-color .4s; animation: doorglow calc(3.2s * var(--pace)) ease-in-out infinite; }
.door:hover { transform: translateY(-1px) scale(1.03); }
.door:active { transform: scale(.96); animation: none; }
.door.small { min-height: 48px; min-width: 92px; padding: 0 22px; font-size: 15px; }
.bar .door { white-space: nowrap; }      /* the bar's door never takes two lines; on a narrow phone "Continue The Cell" says "Continue" (R3W-22; the full line stays its name) */
@media (max-width: 479px) { .bar .door-n { display: none; } }
.door.shut { background: var(--locked); color: var(--ink); cursor: not-allowed; animation: none; box-shadow: inset 0 0 0 1.5px var(--bone), 0 0 0 2px var(--ink); }
.door.shut:hover { transform: none; }
@keyframes doorglow {
  0%, 100% { box-shadow: inset 0 0 0 1.5px var(--bone), 0 0 0 2px var(--ink), 0 6px 18px color-mix(in srgb, var(--mat) 55%, transparent); }
  50% { box-shadow: inset 0 0 0 1.5px var(--bone), 0 0 0 2px var(--ink), 0 6px 34px 4px color-mix(in srgb, var(--mat) 85%, transparent); }
}
/* every other button: dark glass with a bone line */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 22px; border-radius: 24px;
  font: 700 15px/1 var(--text); letter-spacing: .02em; text-decoration: none; color: var(--bone); pointer-events: auto;
  background: rgba(27, 44, 56, .88); box-shadow: inset 0 0 0 1.5px rgba(243, 234, 215, .8), 0 0 0 2px var(--ink); transition: transform .08s ease, background-color .2s; }
.btn:hover { background: #26404f; }
.btn:active { transform: scale(.96); }
.sign { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 0; }
.soon { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; color: var(--dim); font-style: normal; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px var(--ink), 0 0 14px rgba(255, 210, 31, .7); animation: breathe calc(2.6s * var(--pace)) ease-in-out infinite; vertical-align: -1px; margin-right: 10px; }
@keyframes breathe { 0%, 100% { transform: scale(.86); } 50% { transform: scale(1.18); } }
@keyframes drift { from { transform: scale(1.08) translate3d(-1.8%, -1%, 0); } to { transform: scale(1.17) translate3d(1.8%, 1.3%, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* top bar */
.bar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: var(--base); box-shadow: 0 1px 0 rgba(243, 234, 215, .1); pointer-events: none; }
/* at the very top of a page the bar lies clear over the living scene; once the page has moved it has a ground no text reads through */
.js:not(.scrolled):not(.in-play) .game .bar { background: linear-gradient(to bottom, rgba(15, 27, 36, .82), rgba(15, 27, 36, 0)); box-shadow: none; }
.bar > * { pointer-events: auto; }
.bar-id { display: flex; align-items: center; gap: 10px; }
.bar-id img { border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(243, 234, 215, .5); }
.bar-name { display: inline-flex; align-items: center; min-height: 48px; font: 400 24px/1 var(--display); text-decoration: none; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.game .bar-name { display: none; }

/* the one menu of the site and the game. Narrow windows: a "Menu" button that opens a sheet of dark glass in the
   stage's tint. Wide windows (1200 px and up): the same list laid out as the bar itself, Play first. */
.bar-play { order: 3; }
.menu { order: 2; margin-inline-start: auto; }
.lang { order: 4; }
.lang-btn { padding: 0 12px; font-size: 13px; letter-spacing: .06em; }
.menu > summary, .lang > summary { list-style: none; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker, .lang > summary::-webkit-details-marker { display: none; }
.menu[open] > summary, .lang[open] > summary { background: #26404f; }
.lang-sheet .mi { min-height: 48px; font-size: 17px; font-weight: 400; justify-content: flex-start; }
.lang-sheet .mi[aria-current] { font-weight: 700; }
.in-play .lang { display: none; }
/* on a phone the sheet stands at the foot of the window, where a thumb reaches (QA T-023); wider windows hang it from the bar */
.menu-sheet { position: fixed; z-index: 25; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - var(--bar) - 14px); max-height: calc(100dvh - var(--bar) - 14px - env(safe-area-inset-bottom, 0px)); overflow: auto; padding: 10px;
  border-radius: 26px; background: color-mix(in srgb, var(--tint) 95%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 3px 0 var(--mat), inset 0 0 0 1px rgba(243, 234, 215, .18), 0 24px 70px rgba(0, 0, 0, .65); }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; }
.menu-sheet li.sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(243, 234, 215, .16); }
.mi { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 16px; font-size: 18px; font-weight: 700; text-decoration: none; color: var(--bone); }
.mi small { font-size: 14px; font-weight: 400; color: var(--dim); }
.mi-l { display: inline-flex; align-items: center; gap: 12px; }
.mi-ico { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 50%; color: var(--ink); background: var(--bone); box-shadow: 0 0 0 2px var(--ink); }
a.mi:hover { background: rgba(243, 234, 215, .16); }
.mi[aria-current] { box-shadow: inset 0 0 0 1.5px rgba(243, 234, 215, .55); }
.mi.shut { color: var(--locked); cursor: not-allowed; }
.mi.shut small { color: var(--locked); }
.menu-sign { padding: 10px 16px 6px; }

/* one site, one game: the game opens in place over the first screen. The scene keeps moving under a see-through
   frame until the game's first frame, so the view is never black. Outside levels the site's bar stays as a strip
   above the frame until the game draws the bar itself (html.game-bar); nothing of the site lies over the game. */
.first.playing { position: fixed; z-index: 40; inset: 0; height: 100%; min-height: 0; }
.first.playing::before, .first.playing::after, .first.playing > :not(.scene):not(.scene-frame):not(.opening):not(.opening-more):not(.veil) { opacity: 0; visibility: hidden; pointer-events: none; animation: none; transition: opacity .3s, visibility 0s .3s; }
.first.playing .door, .first.playing a { pointer-events: none; }
.game-frame { z-index: 3; opacity: 0; visibility: hidden; pointer-events: none; background: none; color-scheme: normal; }
/* the veil: on Play the bright scene settles toward a level's light, so the game fades in over it instead of cutting */
.veil { position: absolute; z-index: 2; inset: 0; background: #1C0B08; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.first.playing .veil { opacity: .5; }
.game-tone .first.playing .veil { opacity: 0; }      /* a game that speaks starts its level at the site's light and lets it fall itself: one curve, down only */
.first.playing .game-frame { visibility: visible; }
.first.playing.shown .game-frame { opacity: 1; pointer-events: auto; transition: opacity .55s ease; }
.opening { position: absolute; z-index: 4; left: 0; right: 0; top: 46%; margin: 0; text-align: center; font: 400 clamp(28px, 6vw, 44px)/1.1 var(--display); letter-spacing: 0; text-transform: none; color: var(--bone); text-shadow: 0 2px 18px rgba(0, 0, 0, .8); pointer-events: none; }
.opening::after { content: ""; display: block; width: 120px; height: 3px; margin: 16px auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--bone), transparent) 0 0 / 60px 3px no-repeat rgba(243, 234, 215, .25); animation: slide 1.2s linear infinite; }
@keyframes slide { from { background-position: -60px 0; } to { background-position: 120px 0; } }
.opening[hidden] { display: none; }
/* a game still on its way (QA B B-022): a quiet line under "Opening the game"; Try again when nothing has come for a while */
.opening-more { position: absolute; z-index: 4; left: 16px; right: 16px; top: calc(46% + 84px); margin: 0; text-align: center; color: var(--bone); text-shadow: 0 1px 12px rgba(0, 0, 0, .85); }
.opening-note { margin: 0 auto 14px; max-width: 30em; font-size: 17px; }
.opening-more[hidden], .opening-more .retry[hidden] { display: none; }
.in-play, .in-play body { overflow: hidden; }
.in-play .ruler { display: none; }
.in-play .bar { z-index: 45; opacity: 0; visibility: hidden; background: var(--base); transition: opacity .3s; }
.in-play.game-on .bar, .in-play.waiting-game .bar { opacity: 1; visibility: visible; display: flex; }
.in-play.waiting-game .bar > :not(.leave):not(.bar-id) { visibility: hidden; }
.in-play.game-on .game-frame { top: var(--bar); height: calc(100% - var(--bar)); }
.in-play.in-level .bar, .in-play.game-bar .bar { display: none; }
.in-play.in-level .game-frame, .in-play.game-bar .game-frame { top: 0; height: 100%; }
.in-play .menu-sheet { z-index: 46; }
.leave { display: none; }
.in-play .leave { display: inline-flex; margin-inline-end: auto; }
.in-play.game-leave .leave, .leave[hidden] { display: none; }
.in-play.waiting-game.waiting-game .bar { display: flex; }
.in-play.waiting-game.waiting-game .leave { display: inline-flex; }
.in-play .bar-id { gap: 8px; }
.in-play .menu { margin-inline-start: 0; }
@media (max-width: 420px) { .in-play .bar-id img { display: none; } .in-play .bar { gap: 8px; padding-left: 10px; } }
/* the touch pad of the first screen: a thumb moved sideways on the scene steers; a swipe up or down scrolls the page
   as anywhere else (QA T-020: the pad used to swallow it) */
.pad { position: absolute; z-index: 1; left: 0; right: 0; top: var(--bar); bottom: 34%; touch-action: pan-y; }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .85); }

/* a scene canvas fills its section */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.page-scene { position: fixed; z-index: -1; }

/* the first screen: the living title. Also the last band ("Small again") */
.first { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; text-align: center;
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--mat) 80%, #000) 0%, var(--tint) 55%, #0b0a0c 100%); }
.first::before, .first::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.first::before { top: 0; height: 30%; background: linear-gradient(to bottom, rgba(15, 20, 26, .5), rgba(15, 20, 26, 0)); }
.first::after { bottom: 0; height: 36%; background: linear-gradient(to top, rgba(15, 20, 26, .74), rgba(15, 20, 26, .4) 50%, rgba(15, 20, 26, 0)); }
.first-top { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--bar) + 1.5vh); padding: 0 20px; pointer-events: none; animation: rise 1s ease both; }
.first h1, .first h2 { font-size: clamp(40px, 11vw, 60px); text-shadow: 0 2px 24px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .5); }
.tagline { margin: 10px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.nudge { display: none; position: absolute; z-index: 2; left: 0; right: 0; top: 60%; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); pointer-events: none; animation: pulse calc(2.4s * var(--pace)) ease-in-out infinite; transition: opacity .8s; }
.js .nudge { display: block; }
.nudge-touch { display: none; }      /* one line for a mouse, one for touch (N22, R3W-16) */
@media (hover: none) { .nudge-mouse { display: none; } .nudge-touch { display: inline; } }
.first.moved .nudge { opacity: 0; animation: none; }
.first-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; animation: rise 1s .15s ease both; }
.first-foot p { margin: 0; }
.sub { font-size: 16px; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.down a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; pointer-events: auto; }
.down span { display: inline-block; animation: bob calc(1.8s * var(--pace)) ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
.first.again { height: 88vh; height: 88svh; }
.first.again .first-top { top: 14%; }
.first.again .tagline { letter-spacing: .12em; }

/* recorded play (only when the config names a clip) */
.watch { padding: 56px 16px 24px; text-align: center; }
.watch h2 { font-size: clamp(34px, 6vw, 64px); margin-bottom: 20px; }
.clip { margin: 0 auto; max-width: 1280px; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--bone), 0 0 0 2px var(--ink), 0 12px 40px rgba(0, 0, 0, .5); background: #000; }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.band .clip { position: relative; z-index: 1; margin: calc(var(--bar) + 8px) 12px 12px; align-self: flex-start; }

/* the nine bands: each one a whole window of its stage, drifting */
.band, .proof, .rules-top { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: var(--tint); }
.band { min-height: 100vh; min-height: 100svh; scroll-margin-top: 0; }
.art { position: absolute; inset: 0; z-index: -2; display: block; }
.art img { width: 100%; height: 100%; object-fit: cover; animation: drift calc(30s * var(--pace)) ease-in-out infinite alternate; will-change: transform; }
.band:nth-child(even) .art img { animation-direction: alternate-reverse; animation-duration: calc(36s * var(--pace)); }
.band .scene, .proof .scene { z-index: -1; }
.band::before, .band::after, .proof::before, .proof::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; height: 18%; pointer-events: none; }
.band::before, .proof::before { top: 0; background: linear-gradient(to bottom, var(--base), rgba(15, 27, 36, 0)); }
.band::after, .proof::after { bottom: 0; height: 30%; background: linear-gradient(to top, var(--base), rgba(15, 27, 36, 0)); }

/* the slab: dark glass in the stage's tint, its top edge in the stage's material; the world shows around it */
.slab { position: relative; margin: 0 56px 22px 12px; padding: 20px 22px 18px; border-radius: 28px; max-width: 520px;
  background: color-mix(in srgb, var(--tint) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 3px 0 var(--mat), inset 0 0 0 1px rgba(243, 234, 215, .16), 0 14px 40px rgba(0, 0, 0, .35); }
.band-n { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--mat) 45%, var(--bone)); margin-bottom: 6px; }
.band h2, .proof h2 { font-size: clamp(40px, 11vw, 60px); margin-bottom: 10px; }
.hook { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.band-true { font-size: 15px; color: var(--dim); margin-bottom: 8px; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 1px 7px; margin-right: 4px; border: 1px solid currentColor; border-radius: 5px; vertical-align: 1px; color: var(--bone); }
.src-link { display: inline-block; padding: 14px 6px; margin: -14px 0; min-width: 48px; font-weight: 700; color: var(--bone); }
.band-size { font-size: 15px; color: var(--dim); margin-bottom: 12px; }
.size { color: var(--bone); font-weight: 700; font-size: 17px; margin-right: 6px; }
.band-go { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; }
.share.did { background: #26404f; }

/* the ruler at the side: your size. The lit mark is yours, so it is the dot's yellow */
.ruler { position: fixed; z-index: 5; right: 6px; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: 0; transition: opacity .3s; }
.ruler.show { opacity: 1; }
.ruler ol { list-style: none; margin: 0; padding: 14px 0 14px 8px; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 24px; border-right: 2px solid rgba(243, 234, 215, .7); }
.ruler li { position: relative; height: 2px; width: calc(8px + var(--i) * 2.2px); background: rgba(243, 234, 215, .75); filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8)); }
.ruler li span { display: none; position: absolute; right: calc(100% + 22px); top: -14px; white-space: nowrap; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--bone); background: rgba(20, 33, 43, .88); padding: 4px 11px; border-radius: 999px; opacity: 0; transition: opacity .3s; }
.ruler li.on::before { content: ""; position: absolute; left: -15px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px var(--ink), 0 0 12px rgba(255, 210, 31, .8); animation: breathe calc(2.6s * var(--pace)) ease-in-out infinite; }
.ruler li.on span { opacity: 1; }

/* every rule is real: the strip on the front page */
.proof { min-height: 78vh; min-height: 78svh; }

/* Privacy: one plain block in the foot (a link to it lands below the bar) */
.privacy { scroll-margin-top: calc(var(--bar) + 12px); margin: 40px 0 0; padding-top: 22px; border-top: 1px solid rgba(243, 234, 215, .16); }
.privacy h2 { font-size: 30px; margin-bottom: 8px; }
.privacy p { margin: 0; color: var(--dim); }

/* pack 14: two adjoining panels on the widest windows; the places as painted cards; the nine stages as one strip; the page for a missing address */
.pair { display: none; }
@media (min-width: 3000px) {
  .band .art { display: none; }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: absolute; inset: 0; z-index: -2; background: var(--base); }
  .pair img { width: 100%; height: 100%; object-fit: cover; }
  .band { align-items: center; justify-content: flex-end; }      /* the words stand low in the middle, over the gap: both panels keep their subject */
  .band .slab { margin: 0 0 6vh; }
}
.places { display: grid; gap: 14px; padding: 56px 12px 28px; max-width: 1500px; margin: 0 auto; }
.place { position: relative; display: block; overflow: hidden; border-radius: 26px; aspect-ratio: 4 / 5; text-decoration: none; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(243, 234, 215, .18), 0 0 0 2px var(--ink), 0 14px 40px rgba(0, 0, 0, .35); isolation: isolate; }
.place picture, .place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s ease; }
a.place:hover img { transform: scale(1.04); }
.place.shut { cursor: not-allowed; }
.place-w { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 44px 20px 16px; background: linear-gradient(to top, rgba(15, 27, 36, .92), rgba(15, 27, 36, 0)); }
.place-w b { font: 400 34px/1 var(--display); }
.place-w small { font-size: 14px; color: var(--dim); }
.nine { display: grid; gap: 0; padding: 0 0 8px; }
.nine img { width: 100%; height: auto; }
.lost main { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: var(--tint); }
.lost .art { z-index: -1; }
.lost .slab { margin: 0 12px 12vh; text-align: center; }
.lost h1 { font-size: clamp(40px, 9vw, 84px); margin-bottom: 16px; }
.lost .band-go { justify-content: center; }
@media (min-width: 700px) {
  .places { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 72px 22px 36px; }
  .place { aspect-ratio: 3 / 2; }
  .nine { grid-template-columns: repeat(3, 1fr); }
}

/* foot */
.foot { max-width: 1100px; margin: 0 auto; padding: 56px max(16px, env(safe-area-inset-right, 0px)) max(40px, calc(18px + env(safe-area-inset-bottom, 0px))) max(16px, env(safe-area-inset-left, 0px)); }
.press { display: grid; gap: 20px; align-items: center; }
.press img { width: 100%; max-width: 380px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(243, 234, 215, .2); }
.press h2 { font-size: 40px; margin-bottom: 8px; }
.press-contact { margin-top: 12px; }
.fine { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin: 36px 0 0; font-size: 14px; color: var(--dim); }
.fine a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; }
.langs { margin-top: 28px; }
.langs + .fine { margin-top: 0; }
.langs span { font-weight: 700; }
.langs a[aria-current] { color: var(--bone); font-weight: 700; text-decoration: none; }

/* the rules page: the same dark glass over a quiet living haze, tinted by the stage being read */
.rules { background: transparent; }
.rules .bar { background: var(--base); }
.rules-top { min-height: 64vh; min-height: 64svh; padding-top: var(--bar); background: var(--base); }
.rules-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: -1; background: linear-gradient(to top, var(--base), rgba(15, 27, 36, 0)); }
.rules-top .slab { margin: 0 12px 18px; --tint: #1B2C38; --mat: #F3EAD7; }
.rules-top h1 { font-size: clamp(40px, 9vw, 84px); margin-bottom: 10px; }
.rules-top p { margin: 0; font-size: 17px; color: var(--dim); }
.sheet { max-width: 880px; margin: 0 auto; padding: 4px 12px 56px; }
.sheet .slab { margin: 16px 0 0; max-width: none; scroll-margin-top: calc(var(--bar) + 8px); background: color-mix(in srgb, var(--tint) 90%, transparent); }
.key { --tint: #1B2C38; --mat: #F3EAD7; }
.tags { list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; color: var(--dim); }
.tags li { margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; margin: 0; }
.toc span { margin-right: 4px; }
.toc a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px; text-decoration: none; background: rgba(15, 27, 36, .6); box-shadow: inset 0 0 0 1.5px rgba(243, 234, 215, .6); }
.toc a:hover { background: #26404f; }
.stage h2, .sheet-page h1 { font-size: clamp(32px, 6vw, 46px); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.stage h2 .soon { font: 400 14px/1.3 var(--text); min-height: 0; }
.stage h3 { font-size: 26px; margin-top: 22px; color: color-mix(in srgb, var(--mat) 40%, var(--bone)); }
.stage-note { margin: 10px 0 0; font-size: 15px; color: var(--dim); }
.levels { list-style: none; margin: 14px 0 0; padding: 0; }
.levels li { padding: 14px 0 6px; border-top: 1px solid rgba(243, 234, 215, .16); scroll-margin-top: calc(var(--bar) + 12px); }
.levels li.front .fact { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--mat) 60%, var(--bone)); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.levels li:target { box-shadow: -14px 0 0 -10px var(--bone); }
.lv { font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.road { margin-left: 8px; font-weight: 400; font-size: 13px; color: var(--dim); }
.num { display: inline-block; min-width: 2.3em; color: color-mix(in srgb, var(--mat) 50%, var(--bone)); }
.fact { font: 400 22px/1.3 var(--display); margin: 0 0 2px; }
.src { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 14px; color: var(--dim); margin: 0; }
.src a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; color: var(--bone); }
.bends { margin: 10px 0 0; padding-left: 22px; color: var(--dim); }
.bends li { margin: 6px 0; }
.sizes { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.sizes th, .sizes td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-top: 1px solid rgba(243, 234, 215, .16); }
.sizes th { white-space: nowrap; font-weight: 700; color: color-mix(in srgb, var(--mat) 40%, var(--bone)); }
.sizes td { color: var(--dim); }
.sizes td:first-of-type { color: var(--bone); }
.opened { margin: 28px 4px 0; font-size: 14px; color: var(--dim); }
.sheet .cta { justify-content: flex-start; margin: 18px 4px 0; }
.rules .foot { padding-top: 0; }
.sheet-page { background: var(--base); }
.sheet-page .sheet { padding-top: 24px; }
.sheet-page .slab { --tint: #1B2C38; --mat: #F3EAD7; }

/* a share link's landing page (it sends the visitor straight on to the band) */
.hop main { max-width: 680px; margin: 0 auto; padding: 24px 16px; text-align: center; }
.hop img { border-radius: 18px; margin-bottom: 20px; }
.hop h1 { font-size: 40px; margin-bottom: 10px; }

@media (min-width: 700px) {
  .menu-sheet { left: auto; right: auto; inset-inline-end: max(10px, env(safe-area-inset-right, 0px)); width: 380px; bottom: auto; top: calc(var(--bar) + 2px); max-height: calc(100vh - var(--bar) - 14px); max-height: calc(100dvh - var(--bar) - 14px); }
  .lang-sheet { width: 280px; }
}
@media (min-width: 700px) {
  .press { grid-template-columns: 360px 1fr; gap: 36px; }
  .ruler { right: 14px; }
  .ruler li span { display: block; }
  .slab { margin-right: 64px; }
  .game .bar-name { display: inline-flex; }
}
/* wide windows: the scene is the whole window; the slab stands at the right, clear of the ruler */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  body { font-size: 18px; }
  .bar { padding: 0 22px 0 26px; }
  .first h1 { font-size: clamp(84px, 9.5vw, 190px); }
  .first h2 { font-size: clamp(72px, 8vw, 150px); }
  .first-top { top: calc(var(--bar) + 3vh); }
  .tagline { font-size: 15px; letter-spacing: .32em; margin-top: 16px; }
  .nudge { top: 64%; }
  .first-foot { bottom: 30px; gap: 12px; }
  .sub { font-size: 18px; }
  .band, .proof { justify-content: center; align-items: flex-end; }
  .slab { margin: 0 max(7vw, 150px) 0 0; width: min(40vw, 520px); padding: 30px 34px 28px; }
  .band h2, .proof h2 { font-size: clamp(54px, 5vw, 92px); }
  .hook { font-size: 24px; }
  .band-true { font-size: 16px; }
  .band .clip { position: absolute; left: max(5vw, 60px); top: 50%; transform: translateY(-50%); width: min(44vw, 960px); margin: 0; }
  .rules-top { align-items: flex-start; justify-content: flex-end; }
  .rules-top .slab { margin: 0 0 40px max(5vw, 40px); width: min(46vw, 640px); max-width: none; }
  .sheet .slab { width: auto; margin: 18px 0 0; }
  .fact { font-size: 24px; }
}
@media (min-width: 1200px) {
  .bar { gap: 6px; }
  html:not(.bar-tight) .bar-play { order: 2; margin-inline-start: auto; margin-inline-end: 8px; }
  html:not(.bar-tight) .menu { order: 3; margin-inline-start: 0; }
  .js:not(.bar-tight) .menu > summary { display: none; }
  .js:not(.bar-tight) .menu > .menu-sheet { position: static; width: auto; max-height: none; overflow: visible; padding: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .js:not(.bar-tight) .menu > .menu-sheet ul { display: flex; align-items: center; gap: 2px; }
  .js:not(.bar-tight) .menu > .menu-sheet li.sep { margin: 0 0 0 12px; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid rgba(243, 234, 215, .28); }
  .js:not(.bar-tight) .menu .mi { min-height: 48px; min-width: 48px; justify-content: center; padding: 0 10px; font-size: 15px; border-radius: 24px; text-shadow: 0 1px 10px rgba(0, 0, 0, .75); white-space: nowrap; }
  .js:not(.bar-tight) .menu .mi small, .js:not(.bar-tight) .menu .mi-ico, .js:not(.bar-tight) .menu .menu-sign { display: none; }
  .js:not(.bar-tight) .menu .mi small.always { display: inline; margin-left: 6px; font-size: 13px; }
  .js:not(.bar-tight) .menu a.mi:hover { background: rgba(243, 234, 215, .16); text-decoration: underline; text-underline-offset: 6px; }
  .js:not(.bar-tight) .menu .mi[aria-current] { box-shadow: none; text-decoration: underline; text-underline-offset: 6px; }
}
/* scripts written joined or without capitals: no spacing between letters; right to left: the slab and the ruler change sides */
html[lang="ar"] *, html[lang="hi"] * { letter-spacing: 0 !important; }
html:not([lang="en"]) .first h1, html:not([lang="en"]) .band h2, html:not([lang="en"]) .proof h2 { line-height: 1.12; }
[dir="rtl"] .band, [dir="rtl"] .proof { direction: ltr; }      /* the band is laid out as everywhere (the painting was composed for it); its words read right to left */
[dir="rtl"] .slab { direction: rtl; }
.size, .ruler li span { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .dot { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .tag { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .size { margin-right: 0; margin-left: 6px; }
/* right to left (R3W-24; LANGUAGE-PLAN section 6 item 8): the ruler stands at the left, its marks and labels mirrored, and
   the band's slab leaves the ruler its room on that side; the skip link and the wide bar's separators follow the reading side */
[dir="rtl"] .ruler { right: auto; left: 6px; }
[dir="rtl"] .ruler ol { padding: 14px 8px 14px 0; border-right: 0; border-left: 2px solid rgba(243, 234, 215, .7); }
[dir="rtl"] .ruler li span { right: auto; left: calc(100% + 22px); }
[dir="rtl"] .ruler li.on::before { left: auto; right: -15px; }
[dir="rtl"] .band .slab, [dir="rtl"] .proof .slab { margin-left: 56px; margin-right: 12px; }
[dir="rtl"] .skip { left: auto; right: 12px; }
@media (min-width: 700px) {
  [dir="rtl"] .ruler { left: 14px; }
  [dir="rtl"] .band .slab, [dir="rtl"] .proof .slab { margin-left: 64px; margin-right: 12px; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  [dir="rtl"] .band .slab, [dir="rtl"] .proof .slab { margin: 0 max(7vw, 150px) 0 0; }
}
@media (min-width: 1200px) {
  html[dir="rtl"].js:not(.bar-tight) .menu > .menu-sheet li.sep { margin: 0 12px 0 0; padding: 0 12px 0 0; border-left: 0; border-right: 1px solid rgba(243, 234, 215, .28); }
  html[dir="rtl"].js:not(.bar-tight) .menu .mi small.always { margin-left: 0; margin-right: 6px; }
}
/* a face per script (LANGUAGE-PLAN section 8): the site's own faces draw the Latin letters and digits; every other script
   comes from a planned system stack (nothing is downloaded), so Han takes each language's own forms */
html[lang="ru"] { --display: "Site Display", "Noto Serif Display", Georgia, "Times New Roman", serif; }
html[lang="hy"] { --display: "Site Display", "Noto Sans Armenian", "Arian AMU", Sylfaen, serif; --text: "Site Text", "Noto Sans Armenian", "Arian AMU", Sylfaen, system-ui, sans-serif; }
html[lang="hi"] { --display: "Site Display", "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", Mangal, sans-serif; --text: "Site Text", "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", Mangal, system-ui, sans-serif; }
html[lang="ar"] { --display: "Site Display", "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; --text: "Site Text", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif; }
html[lang="ja"] { --display: "Site Display", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; --text: "Site Text", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; }
html[lang="ko"] { --display: "Site Display", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; --text: "Site Text", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
html[lang="zh-Hans"] { --display: "Site Display", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --text: "Site Text", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
@media (prefers-reduced-motion: reduce) {
  :root { --pace: 4; }            /* still alive, four times slower */
  html { scroll-behavior: auto; }
  .door:hover, .btn:active, .door:active { transform: none; }
  .first-top, .first-foot { animation: none; }
  .ruler, .ruler li span { transition: none; }
}
@media print {
  html, .sheet-page { background: #fff; }
  .sheet-page .slab { background: none; box-shadow: none; color: #000; }
  .sheet-page .sizes th, .sheet-page .sizes td, .sheet-page .sizes td:first-of-type { color: #000; border-color: #999; }
  .sheet-page .btn { display: none; }
}
