@font-face { font-family: "Silkscreen"; src: url("fonts/Silkscreen-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
/* Chinese pixel glyphs (Fusion Pixel, subset by tools/site_fonts.py); only pages with CJK text download it. */
@font-face { font-family: "Fusion Pixel"; src: url("fonts/fusion-pixel-zh.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF; }

:root {
  --ink: #1b1424;
  --paper: #fbf8f0;
  --cream: #fff6c8;
  --sky: #8fc3e3;
  --grass: #86bf63;
  --grass-hi: #a8d48a;
  --grass-lo: #6fa651;
  --soil: #5b4636;
  --gold: #f2c14e;
  --red: #d62d3a;
  --muted: #5a4a5e;
  --night-1: #0e1430;
  --night-2: #141a3a;
  --night-3: #1f2752;
  --pixel: "Silkscreen", "Fusion Pixel", ui-monospace, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  /* One artwork pixel of the 320 px wide hero scene, so everything in the sky shares its grid. */
  --px: calc(100vw / 320);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night-1); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
code, pre { font-family: var(--mono); }
img { image-rendering: pixelated; display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
/* Two typefaces: Silkscreen for display (headings, logo, buttons), the system sans for everything else.
   Monospace appears only inside code, hashes and addresses. */
h1, h2, h3, .mark, .btn { font-family: var(--pixel); font-weight: 700; }
.links, .status, .search span, dt, .tip, .chat-bar em, .host figcaption { font-weight: 600; letter-spacing: 0.04em; }
dt, .search span, .chat-bar em, .host figcaption { text-transform: uppercase; }
h2 { font-size: clamp(30px, 5.4vw, 52px); line-height: 1.05; margin: 0 0 16px; letter-spacing: 0.01em; }
h3 { font-size: 18px; margin: 0 0 12px; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* Raised pixel surfaces: light top-left edge, dark bottom-right edge, hard drop shadow. */
.bevel, .btn, .status, .ticket, .board, .seal, .search input {
  box-shadow: inset -3px -3px 0 rgba(27, 20, 36, 0.22), inset 3px 3px 0 rgba(255, 255, 255, 0.55), 5px 5px 0 var(--ink);
}

/* ---------- day ---------- */
.day { position: relative; background: var(--sky); overflow: hidden; }
.bunting { position: relative; z-index: 3; height: calc(6 * var(--px) * 1.6); min-height: 14px;
  background: url("img/bunting.png") repeat-x 0 0 / auto 100%; image-rendering: pixelated; }
.clouds { position: absolute; inset: 0 0 auto 0; height: calc(40 * var(--px) * 1.6); z-index: 0; top: 40px;
  background: url("img/clouds.png") repeat-x 0 0 / calc(320 * var(--px) * 1.6) 100%; image-rendering: pixelated;
  animation: drift 160s linear infinite; opacity: 0.95; }
@keyframes drift { to { background-position-x: calc(-320 * var(--px) * 1.6); } }
nav { position: relative; z-index: 2; width: min(1040px, 100% - 32px); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.mark { font-weight: 700; font-size: 18px; text-decoration: none; }
.links { display: flex; gap: 22px; font-size: 14px; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }

.copy { position: relative; z-index: 2; width: min(1040px, 100% - 32px); margin: 0 auto; padding: clamp(16px, 3.5vw, 40px) 0 0; }
h1 { font-size: clamp(56px, 12vw, 136px); line-height: 0.9; margin: 0 0 22px; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--paper); text-shadow: 0 6px 0 var(--ink), 6px 6px 0 var(--ink), 6px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink), 6px 12px 0 rgba(27, 20, 36, 0.25); }
.lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 36em; margin: 0 0 22px; }
.lede > span { display: block; }
.nowrap { white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 14px; background: var(--paper); border: 3px solid var(--ink); font-size: 14px; }
.dot { width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 2px var(--ink); }
.dot.live { background: #3fbf5f; animation: blink 1.2s steps(2, jump-none) infinite; }
.dot.done { background: var(--muted); }
@keyframes blink { 50% { opacity: 0.35; } }
#count:not(:empty)::before { content: "· "; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.btn { display: inline-block; padding: 13px 20px; background: var(--red); color: var(--paper); text-decoration: none; font-size: 16px; border: 3px solid var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(3px, 3px); box-shadow: inset -3px -3px 0 rgba(27, 20, 36, 0.22), 2px 2px 0 var(--ink); }

/* The scene is drawn at 320 x 112 artwork pixels and scaled as one picture. */
.scene { --s: 1; position: relative; z-index: 1; width: calc(100% * var(--s)); margin-left: calc(50% - 50% * var(--s)); aspect-ratio: 320 / 112; margin-top: calc(-46 * var(--px) * var(--s));
  background: url("img/hero-sky.png") 0 0 / 100% 100%; image-rendering: pixelated; overflow: hidden; }
.sun { position: absolute; left: 83.75%; top: 10.7%; width: 6.25%; aspect-ratio: 1; background: url("img/sun.png") 0 0 / 100% 100%; image-rendering: pixelated; }
.land { position: absolute; inset: 0; background: url("img/hero-land.png") 0 0 / 100% 100%; image-rendering: pixelated; }
.crowd { position: absolute; inset: 0; }
.crowd span { position: absolute; width: 10%; height: 28.5714%; background: url("img/crowd.png") 0 0 / 1700% 100% no-repeat;
  image-rendering: pixelated; animation: bob var(--t, 2s) steps(1, end) var(--d, 0s) infinite; }
.crowd span:hover { filter: drop-shadow(0 0 0 var(--ink)) brightness(1.08); }
@keyframes bob { 50% { transform: translateY(-3.125%); } }
.grass { position: absolute; left: 0; right: 0; bottom: 0; height: 10.72%; background: url("img/grass.png") 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }

/* ---------- field: the grass carries on below the scene ---------- */
.field { background: var(--grass); padding: 56px 0 0; position: relative; }
.field::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grass-lo) 0 0), linear-gradient(var(--grass-lo) 0 0);
  background-size: 4px 4px, 4px 4px; background-position: 13px 22px, 61px 47px; background-repeat: no-repeat; }
.field-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; }
.field-head h2 { margin: 0; }
.field-sub { margin: 10px 0 22px; max-width: 40em; }
.search { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.search input { font: 16px var(--body); padding: 10px 12px; width: min(280px, 60vw); border: 3px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 0; }
.search input:focus { outline: 3px solid var(--gold); outline-offset: 2px; }

.board { position: relative; border: 4px solid var(--ink); background: var(--ink); }
.board-img { width: 100%; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(20, 1fr); }
.tiles li { aspect-ratio: 1; background: url("img/mosaic.png") no-repeat; background-size: 1500% 1300%; image-rendering: pixelated;
  cursor: pointer; transition: transform 0.12s steps(2), opacity 0.2s; position: relative; }
.tiles li:hover, .tiles li.on { transform: scale(1.5); z-index: 2; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--cream), 4px 6px 0 4px rgba(27, 20, 36, 0.6); }
/* Dim with filter, not opacity: the scroll-in wave owns opacity and scale. */
.tiles.filtering li:not(.match) { filter: grayscale(0.7) brightness(0.35); }
.tiles.filtering li.match { z-index: 1; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold); }
.tip { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 6px 10px; background: var(--paper); border: 3px solid var(--ink);
  font-size: 14px; pointer-events: none; opacity: 0; }
.tip.show { opacity: 1; }

.kinds-head { margin-top: 80px; }
.kinds-head p { max-width: 36em; margin: 0 0 8px; }
.lineup { list-style: none; margin: 0; padding: 24px max(16px, calc((100% - 1240px) / 2)) 0; display: flex; gap: 8px 28px; justify-content: center;
  align-items: end; overflow-x: auto; scroll-snap-type: x mandatory; border-bottom: 18px solid var(--soil);
  background: linear-gradient(transparent calc(100% - 22px), var(--grass-lo) calc(100% - 22px)); }
.lineup li { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; scroll-snap-align: center; }
.lineup img { width: 204px; margin-bottom: -2px; }
.sign { order: -1; display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; padding: 6px 12px; background: #d9b382;
  border: 3px solid var(--ink); font-size: 13px; color: var(--ink); box-shadow: inset -3px -3px 0 rgba(27, 20, 36, 0.2), inset 3px 3px 0 rgba(255, 255, 255, 0.4); position: relative; }
.sign::after { content: ""; position: absolute; top: 100%; left: 50%; width: 4px; height: 10px; background: var(--ink); transform: translateX(-50%); }
.sign b { font-size: 15px; }
.sign.gold { background: var(--gold); }

/* ---------- dusk ---------- */
.dusk { color: var(--paper); padding: 88px 0 96px;
  background: linear-gradient(#ffc98a 0 16px, #f8a682 16px 32px, #f08a78 32px 48px, #d47088 48px 64px, #b8609a 64px calc(100% - 64px),
    #8f5498 calc(100% - 64px) calc(100% - 48px), #6b4e9b calc(100% - 48px) calc(100% - 32px), #4e3d85 calc(100% - 32px) calc(100% - 16px), #3a3070 calc(100% - 16px)); }
.dusk h2 { color: var(--paper); text-shadow: 4px 4px 0 var(--ink); }
.dusk-sub { max-width: 38em; margin: 0 0 36px; font-size: 18px; color: var(--ink); }
.stage { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: end; margin-bottom: 32px; }
.host { margin: 0; display: flex; flex-direction: column; align-items: center; }
.robot { width: 224px; aspect-ratio: 1; background: url("img/agent.png") 0 0 / 400% 100% no-repeat; image-rendering: pixelated;
  filter: drop-shadow(6px 6px 0 rgba(27, 20, 36, 0.45)); animation: idle 5s steps(1, end) infinite; }
.robot.talk { animation: talk 0.32s steps(1, end) infinite; }
@keyframes idle { 0%, 90% { background-position-x: 0; } 91%, 97% { background-position-x: 100%; } }
@keyframes talk { 0% { background-position-x: 33.333%; } 50% { background-position-x: 66.667%; } }
.host figcaption { margin-top: -6px; padding: 6px 14px; background: var(--ink); color: var(--cream); font-size: 12px; border: 3px solid var(--ink);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.12), 4px 4px 0 rgba(27, 20, 36, 0.45); }
.chat { background: #241d3d; border: 3px solid var(--ink); color: var(--paper);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.3), inset 3px 3px 0 rgba(255, 255, 255, 0.08), 6px 6px 0 var(--ink); }
.chat-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--ink); }
.chat-bar span { width: 10px; height: 10px; background: #5a4a5e; }
.chat-bar span:first-child { background: var(--red); }
.chat-bar em { margin-left: auto; font-size: 11px; color: #a99bb5; font-style: normal; }
.msgs { list-style: none; margin: 0; padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; }
.msgs li { position: relative; max-width: 30em; padding: 10px 14px; border: 3px solid var(--ink); }
.msgs .you { align-self: flex-end; background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }
.msgs .bot { align-self: flex-start; margin-left: 44px; background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }
.msgs .bot::before { content: ""; position: absolute; left: -44px; bottom: -3px; width: 32px; height: 32px; background: url("img/agent.png") 0 0 / 400% 100%; image-rendering: pixelated; }
.msgs .bot + .bot::before { visibility: hidden; }
.msgs li .ghost { visibility: hidden; }
.msgs li .typed { position: absolute; inset: 10px 14px; }
.msgs .typing .typed::after { content: ""; display: inline-block; width: 8px; height: 15px; margin-left: 4px; vertical-align: -2px; background: var(--ink); animation: blink 0.8s steps(2, jump-none) infinite; }
.ticket { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); padding: 22px; }
.ticket ol { margin: 0 0 12px; padding-left: 1.3em; }
.ticket li { margin-bottom: 8px; }
.ticket a { font-weight: 600; }
pre { background: var(--ink); color: var(--cream); padding: 12px 14px; margin: 0; white-space: pre-wrap; word-break: break-all; font: 13px/1.5 var(--mono); }
.ticket dl { display: grid; grid-template-columns: 1fr 1fr; align-content: start; margin: 0; border-left: 3px dashed var(--ink); padding-left: 24px; }
.ticket dl div { padding: 10px 0 8px; border-bottom: 2px dotted rgba(27, 20, 36, 0.3); }
.ticket dl div:nth-child(odd) { padding-right: 12px; }
.ticket dt { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.ticket dd { margin: 2px 0 0; font-weight: 700; font-size: 19px; }

/* ---------- night ---------- */
.night { position: relative; overflow: hidden; color: #e4e1f2; padding: 96px 0 104px;
  background: linear-gradient(#2c2860 0 16px, var(--night-3) 16px 40px, var(--night-2) 40px calc(100% - 120px), var(--night-1) calc(100% - 120px)); }
.stars { position: absolute; inset: 0; background: url("img/stars.png") repeat 0 0 / 192px 192px; image-rendering: pixelated; pointer-events: none; }
.stars.b { background-position: 96px 70px; animation: twinkle 3.2s steps(1, end) infinite; }
.stars.a { animation: twinkle 4.4s steps(1, end) 1.1s infinite; }
@keyframes twinkle { 50% { opacity: 0.25; } }
.moon { position: absolute; top: 64px; right: max(24px, calc((100% - 1040px) / 2)); width: 72px; height: 72px; background: #fbf1c4;
  clip-path: polygon(25% 0, 75% 0, 75% 8%, 92% 8%, 92% 25%, 100% 25%, 100% 75%, 92% 75%, 92% 92%, 75% 92%, 75% 100%, 25% 100%, 25% 92%, 8% 92%, 8% 75%, 0 75%, 0 25%, 8% 25%, 8% 8%, 25% 8%);
  box-shadow: inset -12px -8px 0 #e6d79a; }
.night .wrap { position: relative; }
.night h2 { color: var(--cream); text-shadow: 4px 4px 0 #000; max-width: 15em; }
.split { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; margin: 36px 0 48px; max-width: 54em; }
.hidden-one { width: 200px; border: 4px solid var(--cream); box-shadow: 6px 6px 0 #000; animation: bob 2.4s steps(1, end) infinite; }
.night p { max-width: 40em; }
.split > div { background: var(--night-2); box-shadow: 0 0 0 14px var(--night-2); }
.seal { background: #241d3d; border: 3px solid var(--cream); padding: 22px; max-width: 54em; color: #e4e1f2;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.3), inset 3px 3px 0 rgba(255, 255, 255, 0.08), 6px 6px 0 #000; }
.seal h3 { color: var(--gold); }
.seal p { margin: 0 0 16px; }
.seal dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; }
.seal dt { color: var(--gold); font-size: 12px; padding-top: 3px; }
.seal dd { margin: 0; min-width: 0; }
.seal code { word-break: break-all; color: var(--cream); font: 14px var(--mono); }

footer { background: #07091a; color: #b7b2cc; font-size: 14px; border-top: 4px solid #000; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 26px 0 40px; }
footer .mark { color: var(--cream); }

/* ---------- sub pages: docs, faq, terms ---------- */
body.sub { background: var(--paper); }
.day.mini { padding-bottom: 0; }
.page-head { position: relative; z-index: 2; width: min(1040px, 100% - 32px); margin: 0 auto; padding: 28px 0 40px; }
.page-title { font-size: clamp(48px, 9vw, 96px); margin-bottom: 12px; }
.page-head p { margin: 0; font-size: 18px; max-width: 36em; }
.grass-edge { height: 24px; background: url("img/grass.png") 0 0 / 640px 24px repeat-x, var(--grass); image-rendering: pixelated; border-bottom: 4px solid var(--soil); }
.links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }
.page { width: min(1040px, 100% - 32px); margin: 0 auto; padding: 48px 0 96px; display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.page.narrow { grid-template-columns: 1fr; max-width: 760px; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.toc b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.toc a { text-decoration: none; padding: 2px 0 2px 10px; border-left: 3px solid transparent; }
.toc a:hover { border-left-color: var(--red); }
.doc { min-width: 0; max-width: 46em; }
.doc section { padding-top: 8px; margin-bottom: 48px; scroll-margin-top: 24px; }
.doc h2 { font-size: clamp(24px, 3.4vw, 32px); padding-bottom: 10px; border-bottom: 4px solid var(--ink); }
.doc p, .doc li { line-height: 1.65; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; border: 3px solid var(--ink); background: #fff; }
.doc th { text-align: left; background: var(--ink); color: var(--cream); padding: 8px 12px; font-weight: 600; }
.doc td { padding: 9px 12px; border-top: 2px solid rgba(27, 20, 36, 0.12); vertical-align: top; }
.doc td code, .doc p code, .doc li code { background: rgba(27, 20, 36, 0.08); padding: 1px 5px; font-size: 0.88em; overflow-wrap: anywhere; }
.doc pre { margin: 12px 0 16px; }
.doc .btn { font-size: 14px; }
.addr { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.addr dt { font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.addr dd { margin: 0; min-width: 0; }
.addr code { overflow-wrap: anywhere; font-size: 14px; }
.legal section { margin-bottom: 36px; }
.legal > p:first-child { font-size: 18px; }

.faq h3 { font-size: 20px; margin: 32px 0 12px; }
.legal h3 { font-size: 20px; margin: 0 0 10px; }
.legal section { margin-bottom: 28px; padding-top: 0; }
.updated { color: var(--muted); font-size: 15px; margin-top: -4px; }
.faq details { background: #fff; border: 3px solid var(--ink); margin-bottom: 12px; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; font: 700 22px var(--pixel); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 2px dashed rgba(27, 20, 36, 0.25); }
.faq details p { margin: 0; padding: 14px 18px 18px; line-height: 1.65; }

/* ---------- language ---------- */
.links .lang { border: 2px solid currentColor; padding: 0 6px; }
/* The Chinese pixel font is drawn on a 12 px grid, so its sizes stay on multiples of 12 to keep edges crisp. */
:lang(zh-Hans) h2 { font-size: 36px; line-height: 1.3; }
:lang(zh-Hans) h3 { font-size: 24px; }
:lang(zh-Hans) .page-title { font-size: 72px; }
:lang(zh-Hans) .doc h2 { font-size: 36px; }
:lang(zh-Hans) .btn { font-family: var(--body); font-weight: 700; letter-spacing: 0.04em; }
@media (min-width: 900px) { :lang(zh-Hans) .field h2, :lang(zh-Hans) .dusk h2, :lang(zh-Hans) .night h2 { font-size: 48px; } }

/* ---------- scroll motion (only with .motion on <html>, set by app.js) ---------- */
.motion .day .clouds { translate: 0 calc(var(--p, 0) * 140px); }
.motion .copy { translate: 0 calc(var(--p, 0) * 90px); }
.motion .sun { translate: 0 calc(var(--p, 0) * 300%); }
.motion .land { translate: 0 calc(var(--p, 0) * 14%); }
.motion .crowd { translate: 0 calc(var(--p, 0) * -4%); }

.motion .tiles li { opacity: 0; scale: 0.2; }
.motion .board.in .tiles li { animation: tile-in 0.36s steps(3, end) calc(var(--i, 0) * 40ms) both; }
.motion .board.settled .tiles li { animation: none; opacity: 1; scale: 1; }
.motion .board.settled .tiles li.flip { animation: flip 0.24s steps(4, end); }
@keyframes flip { 50% { scale: 0 1; } }
@keyframes tile-in { from { opacity: 0; scale: 0.2; } to { opacity: 1; scale: 1; } }

.motion .lineup li { overflow: hidden; }
.motion .lineup img { translate: 0 100%; }
.motion .lineup .sign { translate: 0 -24px; opacity: 0; }
.motion .lineup.in img { animation: rise 0.5s steps(5, end) calc(var(--i, 0) * 140ms) both; }
.motion .lineup.in .sign { animation: drop 0.36s steps(3, end) calc(var(--i, 0) * 140ms + 420ms) both; }
@keyframes rise { from { translate: 0 100%; opacity: 1; } to { translate: 0 0; opacity: 1; } }
@keyframes drop { from { translate: 0 -24px; opacity: 0; } to { translate: 0 0; opacity: 1; } }

.motion .msgs li.wait { visibility: hidden; }
.motion .moon { translate: 0 calc((1 - var(--q, 0)) * 140px); }
.motion .split .hidden-one { opacity: 0; }
.motion .split.in .hidden-one { animation: flicker 0.9s steps(1, end) both, bob 2.4s steps(1, end) 0.9s infinite; }
@keyframes flicker { 0% { opacity: 0; } 15% { opacity: 1; } 30% { opacity: 0; } 45% { opacity: 1; } 60% { opacity: 0.3; } 75%, 100% { opacity: 1; } }

@media (max-width: 760px) {
  .page { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
  .toc b { width: 100%; }
  .toc a { padding: 0; border: 0; text-decoration: underline; }
  .addr { grid-template-columns: 1fr; gap: 2px; }
  .addr dd { margin-bottom: 10px; }
  .doc table { font-size: 14px; display: block; overflow-x: auto; }
  .scene { --s: 2; }
  .links { gap: 12px; font-size: 12px; }
  .day:not(.mini) .links a:first-child { display: none; }
  .stage { grid-template-columns: 1fr; gap: 8px; }
  .robot { width: 160px; }
  .msgs { padding: 16px 12px; font-size: 15px; }
  .msgs .bot { margin-left: 40px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket dl { border-left: 0; padding-left: 0; border-top: 3px dashed var(--ink); }
  .split { grid-template-columns: 1fr; }
  .hidden-one { width: 140px; }
  .seal dl { grid-template-columns: 1fr; gap: 2px; }
  .seal dd { margin-bottom: 10px; }
  .lineup { justify-content: flex-start; }
  .lineup img { width: 170px; }
  .moon { width: 36px; height: 36px; top: 28px; box-shadow: inset -6px -4px 0 #e6d79a; }
  .motion .moon { translate: 0 calc((1 - var(--q, 0)) * 40px); }
  .night h2 { padding-right: 44px; }
  .tip { left: 6px; bottom: 6px; font-size: 12px; }
  .tiles { grid-template-columns: repeat(10, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .lineup img, .lineup .sign, .tiles li, .hidden-one { translate: none !important; scale: none !important; opacity: 1 !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .clouds, .crowd span, .stars, .hidden-one, .dot.live, .robot, .msgs .typing .typed::after { animation: none !important; }
  .btn:hover { transform: none; }
}
