/* windswept garden. Fonts are self-hosted subsets (SIL Open Font License; see fonts/). */
@font-face { font-family: "IM Fell English"; src: url(fonts/fell.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell English"; font-style: italic; src: url(fonts/fell-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell English SC"; src: url(fonts/fell-sc.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; src: url(fonts/alegreya-sans-regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; src: url(fonts/alegreya-sans-medium.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; src: url(fonts/alegreya-sans-bold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Noto Serif JP"; font-weight: 700; src: url(fonts/suzu-kanji.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Noto Sans Symbols"; src: url(fonts/symbols.woff2) format("woff2"); font-display: block; }

/* Layout: one full-bleed night scene on a canvas. The cover is the gate; behind it the
   garden (map, sky, crucible). Suzu's voice and the instruments sit in a strip at the
   bottom; the place you stand in is a small card at the top. */
:root {
  --night: #100d22;
  --night-2: #1c1739;
  --ink: #ece6f7;
  --ink-dim: #a49dbf;
  --foxfire: #8ef2d4;
  --violet: #b9a2ff;
  --parchment: #dcc089;
  --ember: #ff9047;
  --display: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --voice: "IM Fell English", Georgia, "Times New Roman", serif;
  --ui: "Alegreya Sans", "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
  --kanji: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --glyph: "Noto Sans Symbols", "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", serif;
  color-scheme: dark;
}
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

button {
  font: inherit; color: var(--ink); cursor: pointer;
  background: color-mix(in srgb, var(--night-2) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 999px; padding: 6px 12px; line-height: 1.2; white-space: nowrap;
}
button:hover { border-color: color-mix(in srgb, var(--foxfire) 60%, transparent); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--foxfire); outline-offset: 2px; }
button[aria-pressed="true"] { border-color: var(--foxfire); color: var(--foxfire); }
a { color: var(--foxfire); }
.g { font-family: var(--glyph); font-style: normal; }

/* ---------- top ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  pointer-events: none;
  text-shadow: 0 1px 8px var(--night), 0 0 2px var(--night);
}
.top > * { pointer-events: auto; }
.mast { display: grid; gap: 2px; min-width: 0; }
.eyebrow { margin: 0; font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--parchment); }
h1 { margin: 0; font-family: var(--voice); font-weight: 400; font-size: 1.75rem; line-height: 1.05; text-wrap: balance; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.scroll { font-size: 0.82rem; color: var(--ink-dim); white-space: nowrap; }
.scroll b { color: var(--parchment); font-weight: 500; }

/* ---------- place card (in the panel, map view only) ---------- */
/* A fixed height, so the panel (and so the main pane) keeps its size from place to place. */
.card {
  min-width: 0; height: 132px; overflow: hidden; display: flex;
  background: color-mix(in srgb, var(--night-2) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--parchment) 30%, transparent);
  border-radius: 6px;
  transition: opacity 0.4s ease;
}
.cardtext { flex: 1; min-width: 0; overflow: auto; padding: 8px 12px; }
.cardtext > * + * { margin-top: 4px !important; }
.card.away { opacity: 0; pointer-events: none; }
.card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--parchment); }
.card .sub { margin: 0; font-size: 0.85rem; color: var(--ink-dim); }
/* The module's name opens its text (the Alchemist's words; rules build 2026-11-24). */
.card .modname { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px; }
.card .modname[aria-expanded="true"] { color: var(--parchment); }
.card .modtext { margin: 2px 0 4px; display: grid; gap: 6px; }
.card .modtext[hidden] { display: none; }
.card .modtext p { margin: 0; white-space: pre-line; color: var(--ink); font-size: 0.85rem; line-height: 1.45; }
.card .dims { margin: 0; font-size: 0.85rem; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.card img { flex: none; height: 100%; width: auto; max-width: 45%; object-fit: cover; display: block; border-radius: 0 5px 5px 0; }
.card .pic { flex: none; position: relative; height: 100%; max-width: 45%; overflow: hidden; display: block; border-radius: 0 5px 5px 0; }
.card .pic img { max-width: none; border-radius: 0; }
.card .pic .fade { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: picFade 18s ease-in-out infinite; }
@keyframes picFade { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .card .pic .fade { animation: none; } }
.card .link { margin: 0; font-size: 0.85rem; }
.card .credit { margin: 0; font-size: 0.7rem; }
.card .credit a { color: var(--ink-dim); text-decoration: none; }
.card .credit a:hover { text-decoration: underline; }
.card .roads { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 0.78rem; color: var(--ink-dim); }
.card .roads button { padding: 2px 9px; font-size: 0.8rem; }
.card .frag { margin: 0; font-size: 0.8rem; color: var(--foxfire); display: grid; gap: 3px; }
.card .fragq { font-family: var(--voice); font-style: italic; font-size: 0.95rem; color: var(--ink); line-height: 1.35; }
.card .fragl { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--foxfire); }

/* ---------- place plaque (over the top of the map, briefly, on arrival) ---------- */
.plaque {
  position: fixed; left: 0; top: 0; z-index: 3; transform: translateY(-6px);
  max-width: min(92vw, 420px); padding: 10px 16px 12px; text-align: center; pointer-events: none;
  background: color-mix(in srgb, var(--night-2) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--parchment) 35%, transparent); border-radius: 8px;
  box-shadow: 0 6px 24px rgb(0 0 0 / 45%);
  opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease;
}
.plaque.on { opacity: 1; transform: none; }
.plaque img { display: block; margin: 0 auto 8px; max-width: 100%; max-height: var(--pimg, 220px); width: auto; height: auto; border-radius: 5px; }
.plaque { width: max-content; }
/* With a second picture: it fades in once over the plaque's life, held at each end. */
.plaque .ppic { position: relative; display: block; width: fit-content; margin: 0 auto 8px; }
.plaque .ppic img { margin: 0; }
.plaque .ppic .pfade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: plaqueFade var(--plaque-ms, 6000ms) ease-in-out 1 forwards; }
@keyframes plaqueFade { 0%, 25% { opacity: 0; } 70%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .plaque .ppic .pfade { animation: none; } }
.plaque .pname { margin: 0; font-family: var(--display); font-size: clamp(1.05rem, 4.2vw, 1.35rem); color: var(--parchment); }
.plaque .pvirtue { margin: 2px 0 0; font-size: 0.85rem; color: var(--ink-dim); letter-spacing: 0.04em; }
@media (prefers-reduced-motion: reduce) { .plaque, .plaque.on { transition: none; transform: none; } }

/* ---------- bottom panel ---------- */
.panel {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--night);
  border-top: 1px solid color-mix(in srgb, var(--parchment) 22%, transparent);
  transition: opacity 0.6s ease;
}
.panel.away { opacity: 0; pointer-events: none; }
/* Below Suzu's line: the songs (left), the place you stand in (middle), the views (right). */
.deck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; gap: 14px; align-items: start; }
/* In the garden the header is a solid bar, so nothing sits over the main pane. */
.garden .top { background: var(--night); padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--parchment) 22%, transparent); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.inner { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; }
.line {
  margin: 0; font-family: var(--voice); font-style: italic; font-size: 1.18rem; line-height: 1.35;
  display: flex; gap: 10px; align-items: baseline; min-height: 2.7em; cursor: pointer;
}
#lineText { white-space: pre-line; } /* a line may break with \n (koans) */
.speaker {
  font-family: var(--kanji); font-style: normal; font-weight: 700; font-size: 1.15rem;
  color: var(--foxfire); text-shadow: 0 0 10px color-mix(in srgb, var(--foxfire) 60%, transparent);
}

/* The book: one bar on a grand staff (staff.js), a button laid over each triplet. */
.book { min-width: 0; }
.book .staff { position: relative; max-width: 320px; margin: 0 auto; }
.book .staff svg { display: block; width: 100%; height: auto; }
.book .staff .g { font-family: var(--glyph); }
.slot {
  position: absolute; padding: 0; margin: 0; border: 0; border-radius: 6px;
  background: transparent; color: inherit; cursor: pointer;
}
.slot:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.slot:focus-visible { outline: 1px solid var(--foxfire); outline-offset: -1px; }
.slot.later { pointer-events: none; }

/* ---------- the three views, on a triangle ---------- */
.navrow { display: flex; gap: 18px; align-items: center; min-width: 0; }
.views { position: relative; flex: none; width: 170px; height: 118px; }
.views svg { position: absolute; left: 31px; top: 14px; width: 108px; height: 94px; overflow: visible; }
.views polygon { fill: transparent; stroke: none; transition: fill 0.5s ease, opacity 0.5s ease; }
.views .rim { stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 1.2; pointer-events: none; }
.views .corner { stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 1; cursor: pointer; }
.views .corner:hover { fill: color-mix(in srgb, var(--ink) 10%, transparent); }
.views .corner[data-view="0"].on { fill: color-mix(in srgb, var(--parchment) 55%, transparent); }
.views .corner[data-view="1"].on { fill: color-mix(in srgb, var(--violet) 55%, transparent); }
.views .corner[data-view="2"].on { fill: color-mix(in srgb, var(--ember) 60%, transparent); }
.views .heart { stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 1; pointer-events: none; }
.views.all .heart { fill: color-mix(in srgb, var(--foxfire) 45%, transparent); filter: drop-shadow(0 0 6px var(--foxfire)); }
/* The end scene: all three corners lit, breathing. */
.views.lit .corner { animation: litPulse 3.2s ease-in-out infinite; }
.views.lit .corner[data-view="1"] { animation-delay: -1.07s; }
.views.lit .corner[data-view="2"] { animation-delay: -2.13s; }
@keyframes litPulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; filter: drop-shadow(0 0 5px var(--foxfire)); } }
@media (prefers-reduced-motion: reduce) { .views.lit .corner { animation: none; } }
.views button { position: absolute; padding: 3px 10px; font-size: 0.82rem; }
.views .v-sky { left: 50%; top: -4px; transform: translateX(-50%); }
.views .v-map { left: 0; bottom: 0; }
.views .v-crucible { right: 0; bottom: 0; }
.views button[aria-pressed="true"].v-map { border-color: var(--parchment); color: var(--parchment); }
.views button[aria-pressed="true"].v-sky { border-color: var(--violet); color: var(--violet); }
.views button[aria-pressed="true"].v-crucible { border-color: var(--ember); color: var(--ember); }
.controls { display: grid; gap: 8px; align-content: center; min-width: 0; }
.controls .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.controls button svg { width: 12px; height: 12px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.readout { font-size: 0.85rem; color: var(--ink-dim); min-width: 0; }
/* Drifting: the garden is moving you. The button glows, and the main pane wears a faint
   breathing rim (a border, nothing laid over the view). */
#drift[aria-pressed="true"] { border-color: var(--foxfire); color: var(--foxfire); box-shadow: 0 0 10px color-mix(in srgb, var(--foxfire) 55%, transparent); animation: driftGlow 2.8s ease-in-out infinite; }
@keyframes driftGlow { 50% { box-shadow: 0 0 18px color-mix(in srgb, var(--foxfire) 85%, transparent); } }
body.drifting canvas { outline: 2px solid color-mix(in srgb, var(--foxfire) 45%, transparent); outline-offset: -2px; animation: driftRim 2.8s ease-in-out infinite; }
@keyframes driftRim { 50% { outline-color: color-mix(in srgb, var(--foxfire) 85%, transparent); } }
@media (prefers-reduced-motion: reduce) { #drift[aria-pressed="true"], body.drifting canvas { animation: none; } }
.readout .g { color: var(--parchment); }

/* ---------- gate ---------- */
.gate {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding-block: 24px calc(22px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; justify-items: center; gap: 10px; text-align: center;
  background: linear-gradient(to top, color-mix(in srgb, var(--night) 92%, transparent), transparent);
  transition: opacity 0.8s ease;
}
.gate.away { opacity: 0; pointer-events: none; }
.gate p { margin: 0; font-family: var(--voice); font-style: italic; font-size: 1.1rem; max-width: 34ch; text-shadow: 0 1px 8px var(--night); }
.gate button { font-family: var(--display); font-size: 1.05rem; padding: 9px 20px; border-color: var(--foxfire); color: var(--foxfire); }
.gate small { font-size: 0.78rem; color: var(--ink-dim); }

/* ---------- song card ---------- */
.songcard { z-index: 10;
  position: fixed; inset: 0; display: grid; place-items: center;
  padding-block: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--night) 55%, transparent);
}
.songcard .sheet {
  width: min(640px, 100%); max-height: 100%; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 18px;
  background: color-mix(in srgb, var(--night) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--foxfire) 45%, transparent); border-radius: 8px;
}
.songcard img { width: 100%; height: auto; border-radius: 4px; display: block; }
.songcard h2 { margin: 0; font-family: var(--voice); font-weight: 400; font-size: 1.6rem; display: flex; gap: 10px; align-items: baseline; }
.songcard h2 .g { color: var(--foxfire); font-size: 1.4rem; }
.songcard dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: 0.9rem; }
.songcard dt { color: var(--ink-dim); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.songcard dd { margin: 0; font-family: var(--display); }
.songcard .notes { font-family: var(--voice); font-size: 1rem; line-height: 1.45; display: grid; gap: 6px; }
.songcard .notes p { margin: 0; white-space: pre-line; }
.songcard .notes .patch { font-family: var(--ui); font-size: 0.9rem; color: var(--ink-dim); }
.songcard .notes .patch b { color: var(--parchment); font-weight: 500; margin-right: 4px; }
.songcard .notes img.photo { width: 100%; height: auto; border-radius: 4px; }
.songcard .notes .by { font-family: var(--ui); font-size: 0.78rem; color: var(--ink-dim); }
.songcard .body { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (max-width: 560px) { .songcard .sheet { grid-template-columns: minmax(0, 1fr); } .songcard img { max-width: 220px; } }

/* ---------- author ---------- */
.author {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 74px);
  width: min(320px, calc(100% - 32px)); display: grid; gap: 6px; padding: 10px;
  background: color-mix(in srgb, var(--night) 92%, transparent); border: 1px dashed var(--ember); border-radius: 6px;
  font-size: 0.8rem;
}
.author textarea { width: 100%; min-height: 80px; background: var(--night-2); color: var(--ink); border: 1px solid var(--ink-dim); font: 0.75rem ui-monospace, monospace; }
.author .row { display: flex; gap: 6px; flex-wrap: wrap; }
.err { position: fixed; inset: auto 16px 40% 16px; text-align: center; color: var(--ember); }

@media (max-width: 560px) {
  h1 { font-size: 1.35rem; }
  .line { font-size: 1.02rem; }
  .views { width: 150px; height: 104px; }
  .views svg { left: 30px; top: 14px; width: 90px; height: 78px; }
  .navrow { gap: 12px; }
  .line { min-height: 4.05em; }
  .deck { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .deck .book { grid-column: 1 / -1; }
  .book .staff { max-width: 250px; }
  .card { height: 150px; }
  .cardtext { padding: 7px 10px; }
  .card img, .card .pic { display: none; }
  .navrow { flex-direction: column; align-items: stretch; gap: 6px; }
}

/* ---------- without JavaScript, and the library ---------- */
.liner { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; padding: 32px 16px 48px; overflow: auto; }
.liner h1 { margin-bottom: 4px; }
.liner h2 { font-family: var(--display); font-weight: 400; color: var(--parchment); font-size: 1.2rem; margin: 28px 0 8px; }
.liner ol, .liner ul { padding-left: 1.4em; line-height: 1.6; }
.liner img { max-width: 100%; height: auto; border-radius: 6px; }
.liner { display: none; } /* shown by <noscript> in index.html */

.library { z-index: 10;
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--night) 60%, transparent);
}
.library .sheet {
  width: min(560px, 100%); max-height: 100%; overflow: auto; padding: 18px 20px;
  background: color-mix(in srgb, var(--night) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--parchment) 40%, transparent); border-radius: 8px;
}
.library h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; color: var(--parchment); }
.library p { margin: 0 0 12px; color: var(--ink-dim); font-size: 0.9rem; }
.library .intro { margin: 8px 0 16px; padding-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--parchment) 25%, transparent); }
.library .intro p { color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.library ul { margin: 0 0 14px; padding-left: 1.2em; line-height: 1.7; }

/* ---------- Suzu's poses at the frame edge ---------- */
.pose { position: fixed; pointer-events: none; opacity: 0; transition: opacity 0.6s ease; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.pose.on { opacity: 1; transition: opacity 0.25s ease; }
.pose > div { width: 100%; height: 100%; background-repeat: no-repeat; }
@media (prefers-reduced-motion: reduce) { .pose, .pose.on { transition: none; } }

/* ---------- the story, scrolling over the gate ---------- */
.story {
  position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 72px); bottom: 178px;
  overflow: hidden; touch-action: none; cursor: grab; transition: opacity 1.2s ease;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent);
}
.story.away { opacity: 0; pointer-events: none; }
.story:active { cursor: grabbing; }
.roll {
  max-width: 34rem; margin: 0 auto; padding: 0 20px; will-change: transform;
  font-family: var(--voice); font-size: 1.2rem; line-height: 1.6; color: var(--ink);
  text-shadow: 0 1px 10px var(--night), 0 0 3px var(--night), 0 0 18px var(--night);
}
.roll p { margin: 0 0 1.1em; }
.roll img { display: block; max-width: 100%; height: auto; border-radius: 6px; margin: 0 auto 1.1em; }
.gate-buttons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.gate button.quiet { font-family: var(--ui); font-size: 0.85rem; padding: 6px 12px; border-color: color-mix(in srgb, var(--ink) 25%, transparent); color: var(--ink-dim); }
@media (max-width: 560px) { .roll { font-size: 1.05rem; } .story { bottom: 196px; } }
@media (prefers-reduced-motion: reduce) { .story { overflow: auto; touch-action: auto; cursor: auto; } }

/* ---------- the end scene ---------- */
/* The ending story: the gate's roller, over a veil (as the gate darkens the cover). */
#endStory { background: rgba(16, 13, 34, 0.55); animation: end-veil 1.6s ease both; }
@keyframes end-veil { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #endStory { animation: none; } }
.ending { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; animation: ending-in 2.4s ease both; }
.ending-title { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--parchment); text-shadow: 0 0 18px rgba(255, 214, 130, 0.6), 0 1px 8px var(--night); }
.ending button { font-family: var(--display); font-size: 1.05rem; padding: 9px 22px; border-color: var(--foxfire); color: var(--foxfire); }
@keyframes ending-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ending { animation: none; } }
