/* ============================================================
   Satoshi's Vault — "Luminous cipher, a midnight expedition"
   Drenched-dark brand. Two lights (ember + cipher) on one vault dark.
   ============================================================ */

:root {
  /* color — OKLCH */
  --vault:       oklch(0.17 0.025 200);
  --vault-deep:  oklch(0.125 0.022 205);
  --surface:     oklch(0.225 0.028 200);
  --surface-hi:  oklch(0.27 0.03 200);
  --line:        oklch(0.40 0.03 200 / 0.45);
  --line-soft:   oklch(0.40 0.03 200 / 0.22);

  --ink:         oklch(0.95 0.012 95);
  --ink-dim:     oklch(0.80 0.018 95);
  --ink-faint:   oklch(0.66 0.02 110);

  --ember:       oklch(0.82 0.145 72);
  --ember-soft:  oklch(0.82 0.145 72 / 0.16);
  --ember-deep:  oklch(0.68 0.15 58);
  --cipher:      oklch(0.88 0.13 178);
  --cipher-soft: oklch(0.88 0.13 178 / 0.14);
  --seal:        oklch(0.62 0.19 25);

  /* type */
  --display: "Cinzel", Georgia, serif;
  --body: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* fluid scale, ratio ~1.28 */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1.02rem, 0.97rem + 0.25vw, 1.18rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.5rem + 1vw, 2.4rem);
  --step-3:  clamp(2.3rem, 1.9rem + 2vw, 3.6rem);
  --step-4:  clamp(3rem, 2.2rem + 4vw, 5.5rem);

  /* space */
  --gap: clamp(1rem, 0.8rem + 1vw, 1.6rem);
  --pad: clamp(1.2rem, 0.9rem + 2.5vw, 3rem);

  --radius: 14px;
  --radius-sm: 8px;
  --measure: 64ch;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);        /* ease-out-expo-ish */
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* z-scale */
  --z-atmos: -1;
  --z-rail: 20;
  --z-modal-backdrop: 50;
  --z-modal: 60;

  --rail-w: 0px;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--vault);
  min-height: 100svh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- atmosphere ---------- */
.sky, .grid-veil, .vignette, #motes {
  position: fixed; inset: 0; z-index: var(--z-atmos); pointer-events: none;
}
.sky {
  background:
    radial-gradient(1200px 800px at 78% -10%, oklch(0.30 0.06 90 / 0.20), transparent 60%),
    radial-gradient(900px 700px at 12% 110%, oklch(0.30 0.07 200 / 0.22), transparent 60%),
    var(--vault);
}
/* faint cartographic dot-grid */
.grid-veil {
  background-image: radial-gradient(oklch(0.6 0.04 195 / 0.12) 1px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: radial-gradient(120% 120% at 50% 30%, #000 30%, transparent 78%);
  opacity: 0.5;
}
.vignette {
  background: radial-gradient(130% 100% at 50% 35%, transparent 55%, oklch(0.08 0.02 210 / 0.85) 100%);
}
#motes { width: 100%; height: 100%; opacity: 0.7; }

/* ---------- progress rail ---------- */
.rail {
  position: fixed; z-index: var(--z-rail);
  left: 0; top: 0; bottom: 0;
  display: grid; place-items: center;
  width: 64px;
  border-right: 1px solid var(--line-soft);
  background: oklch(0.13 0.02 205 / 0.6);
  backdrop-filter: blur(6px);
}
.rail ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rail li {
  --d: var(--ink-faint);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--d); font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  cursor: not-allowed; position: relative;
  transition: color .4s, border-color .4s, background .4s, box-shadow .4s;
}
.rail li[data-done="1"] { --d: var(--cipher); border-color: oklch(0.88 0.13 178 / 0.45); background: var(--cipher-soft); cursor: pointer; }
.rail li[data-current="1"] {
  --d: var(--ember); border-color: var(--ember);
  background: var(--ember-soft);
  box-shadow: 0 0 0 4px oklch(0.82 0.145 72 / 0.10);
  cursor: pointer;
  animation: pulse 2.6s var(--ease-soft) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px oklch(0.82 0.145 72 / 0); } }

/* ---------- stage / chambers ---------- */
#stage { padding-left: 64px; }
.chamber {
  min-height: 100svh;
  display: none;
  align-items: center;
  padding: clamp(3.5rem, 8vh, 7rem) var(--pad);
}
.chamber.is-active { display: flex; animation: chamberIn .9s var(--ease) both; }
@keyframes chamberIn {
  from { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 12% 0); filter: blur(3px); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); filter: none; }
}

.wrap { width: 100%; max-width: 760px; margin-inline: auto; }
.wrap--center { text-align: center; max-width: 720px; }
.wrap--center .prose { margin-inline: auto; }

/* ---------- type ---------- */
.kicker {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cipher); margin-bottom: 1.4rem;
}
.wordmark {
  font-family: var(--display); font-weight: 800;
  font-size: var(--step-4); line-height: 0.98; letter-spacing: 0.01em;
  text-wrap: balance;
  color: var(--ember);
  text-shadow: 0 0 36px oklch(0.82 0.145 72 / 0.28);
}
.wordmark--sm { font-size: var(--step-3); }
.chamber__no {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cipher);
  margin-bottom: 0.7rem;
}
.chamber__title {
  font-family: var(--display); font-weight: 700;
  font-size: var(--step-3); line-height: 1.05; letter-spacing: 0.005em;
  color: var(--ink); text-wrap: balance; margin-bottom: 1.2rem;
}
.lede {
  font-family: var(--display); font-weight: 600;
  font-size: var(--step-2); color: var(--ink); margin: 1rem 0 1.4rem;
}
.prose { max-width: var(--measure); margin-bottom: 1.1rem; text-wrap: pretty; color: var(--ink-dim); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ember); font-style: italic; }
.prose--lg { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-faint); }
.signoff { font-size: var(--step-1); margin-top: 1.6rem; }

/* ---------- the seal (threshold) ---------- */
.seal {
  --hold: 0;
  position: relative; margin-top: 2.4rem;
  width: 188px; height: 188px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
  color: var(--ember); touch-action: none;
}
.seal__wax { position: absolute; inset: 18px; width: auto; }
.seal__ring { fill: oklch(0.82 0.145 72 / 0.06); stroke: var(--ember); stroke-width: 1.6; opacity: 0.78; }
.seal__ring--2 { fill: none; stroke-dasharray: 3 6; opacity: 0.45; transition: transform .4s; transform-origin: center; }
.seal:hover .seal__ring--2 { transform: rotate(30deg); }
.seal:hover .seal__ring { opacity: 1; }
.seal__sigil { font-family: system-ui, "Segoe UI Symbol", sans-serif; font-weight: 700; font-size: 50px;
  fill: var(--ember); text-anchor: middle; dominant-baseline: central;
  filter: drop-shadow(0 0 14px oklch(0.82 0.145 72 / 0.7)); }
.seal__progress { position: absolute; inset: 0; transform: rotate(-90deg); }
.seal__progress circle {
  fill: none; stroke: var(--cipher); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--hold) * 1);
  filter: drop-shadow(0 0 6px var(--cipher));
  transition: stroke-dashoffset .08s linear;
}
.seal__hint {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-faint); white-space: nowrap;
}
.seal.is-breaking .seal__wax { animation: crack .5s var(--ease) forwards; }
@keyframes crack { to { transform: scale(1.4); opacity: 0; filter: blur(6px); } }

/* ---------- gates / forms ---------- */
.gate {
  margin-top: 2.2rem; padding: var(--gap) clamp(1rem, 3vw, 1.8rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--vault-deep));
  display: grid; gap: 1.1rem; max-width: var(--measure);
}
.gate__label { font-family: var(--mono); font-size: var(--step--1); color: var(--cipher); letter-spacing: 0.04em; }
.field { display: grid; gap: 0.5rem; }
.field > span { color: var(--ink); font-size: var(--step-0); }
.field input {
  font-family: var(--mono); font-size: var(--step-0); color: var(--ink);
  background: var(--vault-deep); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus-visible {
  outline: none; border-color: var(--cipher);
  box-shadow: 0 0 0 3px var(--cipher-soft);
}

fieldset { border: 0; padding: 0; display: grid; gap: 0.6rem; }
legend { color: var(--ink); margin-bottom: 0.6rem; }
.choices label, .checks label {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.7rem 0.85rem; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); background: var(--vault-deep);
  cursor: pointer; transition: border-color .2s, background .2s;
  color: var(--ink-dim);
}
.choices label:hover, .checks label:hover { border-color: var(--line); background: var(--surface); }
.choices input, .checks input { accent-color: var(--ember); margin-top: 0.28em; flex: none; }
.choices label:has(input:checked), .checks label:has(input:checked) { border-color: var(--ember); color: var(--ink); }

.gate__msg { font-family: var(--mono); font-size: var(--step--1); min-height: 1.2em; }
.gate__msg.is-err { color: var(--seal); }
.gate__msg.is-ok { color: var(--cipher); }
.gate.is-shaking { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(3px)} }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono); font-size: var(--step-0); font-weight: 500;
  letter-spacing: 0.02em; color: var(--vault-deep);
  background: var(--ember); border: 1px solid var(--ember);
  border-radius: var(--radius-sm); padding: 0.8rem 1.3rem;
  cursor: pointer; justify-self: start;
  transition: transform .15s var(--ease), box-shadow .25s, background .25s;
  box-shadow: 0 6px 24px oklch(0.82 0.145 72 / 0.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px oklch(0.82 0.145 72 / 0.30); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--cipher); outline-offset: 3px; }
.btn--big { font-size: var(--step-1); padding: 1rem 1.6rem; width: 100%; justify-self: stretch; text-align: center; }
.btn--ghost {
  background: transparent; color: var(--cipher); border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--cipher); background: var(--cipher-soft); box-shadow: none; }
.link { color: var(--cipher); font-family: var(--mono); font-size: var(--step--1); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--cipher); }

/* ---------- block contents card ---------- */
.block-card {
  margin: 1.4rem 0; padding: clamp(0.9rem, 2.5vw, 1.3rem);
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--vault-deep);
}
.block-card > .mine__k { display: block; margin-bottom: 0.6rem; }
.txns { list-style: none; padding: 0; margin: 0 0 0.7rem; display: grid; gap: 0; }
.txns li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  font-family: var(--mono); font-size: var(--step--1); color: var(--ink-dim);
  padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft);
}
.txns li:last-child { border-bottom: 0; }
.txns li span:last-child { color: var(--cipher); white-space: nowrap; }
.txns__reward { color: var(--ink) !important; }
.txns__reward span:last-child { color: var(--ember) !important; font-weight: 700; }
.txns__reward strong { color: var(--ember); }

/* ---------- the mine (proof-of-work game) ---------- */
.mine {
  margin: 1.6rem 0; padding: clamp(0.9rem, 2.5vw, 1.3rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--vault-deep));
}
.mine__canvas {
  display: block; width: 100%; height: 210px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(70% 90% at 50% 0%, oklch(0.30 0.05 195 / 0.25), transparent),
    var(--vault-deep);
}
.mine__hud { display: grid; gap: 0.35rem; margin: 0.9rem 0; }
.mine__line { display: flex; gap: 0.7rem; align-items: baseline; flex-wrap: wrap; }
.mine__k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); min-width: 5.2em; }
.mine__v { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-dim); }
.mine__v b { color: var(--cipher); font-weight: 700; }
.mine__controls { display: flex; gap: 1rem 1.4rem; align-items: center; flex-wrap: wrap; margin-top: 0.4rem; }
.mine__diff { display: flex; gap: 0.4rem; align-items: center; }
.mine__diff button {
  font-family: var(--mono); font-size: 0.9rem; color: var(--ink-dim);
  width: 2.1rem; height: 2.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--vault-deep); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.mine__diff button:hover { border-color: var(--cipher); color: var(--ink); }
.mine__diff button.is-on { border-color: var(--ember); color: var(--ember); background: var(--ember-soft); }
.mine__win {
  margin-top: 1.4rem; padding: var(--pad); text-align: center;
  border: 1px solid oklch(0.82 0.145 72 / 0.45); border-radius: var(--radius);
  background: radial-gradient(80% 120% at 50% 0%, var(--ember-soft), var(--vault-deep));
  animation: chamberIn .7s var(--ease) both;
}
.mine__coin { font-size: 3rem; color: var(--ember); filter: drop-shadow(0 0 18px oklch(0.82 0.145 72 / 0.7)); animation: spinCoin 3s linear infinite; }
@keyframes spinCoin { to { transform: rotateY(360deg); } }
.mine__win h3 { font-family: var(--display); font-weight: 700; font-size: var(--step-2); color: var(--ember); margin: 0.4rem 0 0.7rem; }
.mine__win .prose { margin-inline: auto; }
.mine__win .btn { justify-self: center; margin-top: 0.6rem; }
@keyframes blink { 50% { opacity: 0; } }
.hint { font-size: var(--step--1); color: var(--ink-faint); margin-top: 0.9rem; }
.hint code, .prose code, .aside code { font-family: var(--mono); color: var(--cipher); font-size: 0.92em; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 1.6rem 0; counter-reset: step; display: grid; gap: 0.9rem; }
.steps li {
  counter-increment: step;
  position: relative; padding: 1.1rem 1.2rem 1.1rem 3.4rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--vault-deep));
}
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1.05rem;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ember); border: 1px solid oklch(0.82 0.145 72 / 0.5);
  background: var(--ember-soft);
}
.steps h3 { font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--ink); margin-bottom: 0.3rem; }
.steps p { color: var(--ink-dim); margin-bottom: 0.4rem; }
.steps p:last-child { margin-bottom: 0; }
.steps a { color: var(--cipher); }
.warn {
  border-left: 0; border: 1px solid oklch(0.62 0.19 25 / 0.5);
  background: oklch(0.62 0.19 25 / 0.10); border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem; color: oklch(0.86 0.09 35) !important; font-size: var(--step--1);
}
.aside { display: block; margin-top: 0.4rem; color: var(--ink-faint); font-size: var(--step--1); font-style: italic; }

/* ---------- the hunt photo (real box) ---------- */
.hunt-photo { margin: 1.6rem 0; text-align: center; }
.hunt-photo img {
  width: min(240px, 62%); height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); padding: 8px;
  box-shadow: 0 18px 50px oklch(0.08 0.02 210 / 0.55), 0 0 40px oklch(0.82 0.145 72 / 0.10);
}
.hunt-photo figcaption { margin-top: 0.9rem; font-size: var(--step--1); max-width: 46ch; margin-inline: auto; }

/* ---------- the device drawing ---------- */
.device { margin: 1.8rem 0; text-align: center; }
.device svg { width: min(360px, 80%); height: auto; }
.dev-body { fill: var(--surface-hi); stroke: var(--ember); stroke-width: 1.5; }
.dev-screen { fill: var(--vault-deep); stroke: var(--line); }
.dev-scr-text { font-family: var(--mono); font-size: 12px; fill: var(--cipher); text-anchor: middle; }
.dev-btn { fill: var(--vault-deep); stroke: var(--ember); stroke-width: 1.5; }
.dev-cap { fill: var(--surface); stroke: var(--line); }
.dev-usb { fill: var(--ink-faint); }
.device figcaption { margin-top: 0.8rem; font-size: var(--step--1); }

/* ---------- details / scroll ---------- */
.scroll { margin: 1.2rem 0; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--vault-deep); overflow: hidden; }
.scroll summary { cursor: pointer; padding: 0.9rem 1.1rem; font-family: var(--mono); font-size: var(--step--1); color: var(--cipher); list-style: none; }
.scroll summary::-webkit-details-marker { display: none; }
.scroll summary::before { content: "✦ "; color: var(--ember); }
.scroll[open] summary { border-bottom: 1px solid var(--line-soft); }
.scroll .prose { padding: 1rem 1.1rem 1.1rem; margin: 0; }

/* ---------- video ---------- */
.video {
  position: relative; margin: 1.6rem 0; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 40%, oklch(0.28 0.04 90 / 0.4), transparent),
    var(--vault-deep);
  display: grid; place-items: center;
}
.video iframe { width: 100%; height: 100%; border: 0; }
.video__play {
  font-family: var(--display); font-size: var(--step-1); font-weight: 600;
  color: var(--ink); background: oklch(0.13 0.02 205 / 0.5);
  border: 1px solid var(--ember); border-radius: 999px; padding: 0.8rem 1.6rem;
  cursor: pointer; display: inline-flex; gap: 0.6rem; align-items: baseline;
  transition: background .25s, transform .15s, box-shadow .3s;
  box-shadow: 0 0 30px oklch(0.82 0.145 72 / 0.2);
}
.video__play span { font-family: var(--mono); font-size: 0.7rem; color: var(--cipher); letter-spacing: 0.1em; }
.video__play:hover { background: var(--ember-soft); transform: scale(1.03); }

/* ---------- modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); width: 100%; }
.modal::backdrop { background: oklch(0.06 0.02 210 / 0.86); backdrop-filter: blur(4px); }
.modal__frame { aspect-ratio: 16/9; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ember); }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close {
  position: absolute; top: -2.6rem; right: 0; font-size: 2rem; line-height: 1;
  background: none; border: 0; color: var(--ink); cursor: pointer;
}

/* ---------- claim / watch / finale ---------- */
.gate--claim { max-width: var(--measure); }
.fallback { margin-top: 1.2rem; max-width: var(--measure); }
.fallback__btns { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.6rem; }

.watch {
  margin-top: 2rem; padding: var(--pad);
  border: 1px solid oklch(0.88 0.13 178 / 0.4); border-radius: var(--radius);
  background: radial-gradient(80% 120% at 50% 0%, var(--cipher-soft), var(--vault-deep));
  max-width: var(--measure);
}
.watch__title { font-family: var(--display); font-size: var(--step-2); color: var(--cipher); margin-bottom: 0.8rem; }
.watch__pulse { display: flex; gap: 8px; margin-bottom: 1rem; }
.watch__pulse span { width: 10px; height: 10px; border-radius: 50%; background: var(--cipher); opacity: 0.4; animation: bounce 1.4s var(--ease-soft) infinite; }
.watch__pulse span:nth-child(2){ animation-delay: .2s; } .watch__pulse span:nth-child(3){ animation-delay: .4s; }
@keyframes bounce { 0%,100%{ transform: translateY(0); opacity:.35;} 50%{ transform: translateY(-8px); opacity:1;} }
.watch__addr, .finale__amt { font-family: var(--mono); }
.watch__addr { color: var(--ink-dim); font-size: 0.85rem; word-break: break-all; margin: 0.8rem 0; }
.watch__status { font-family: var(--mono); color: var(--ember); margin-bottom: 1rem; }
.watch__status.is-hit { color: var(--cipher); }

.chamber--finale { text-align: center; }
.finale__amt { font-family: var(--mono); font-weight: 700; font-size: var(--step-4); color: var(--cipher);
  text-shadow: 0 0 40px oklch(0.88 0.13 178 / 0.5); margin: 0.5rem 0 0.4rem; }
.cipher-text { color: var(--cipher) !important; }
.bloom { position: absolute; inset: 0; pointer-events: none; z-index: var(--z-atmos);
  background: radial-gradient(40% 40% at 50% 40%, oklch(0.82 0.145 72 / 0.22), transparent 70%);
  animation: bloomIn 2.4s var(--ease) both; }
@keyframes bloomIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .rail { left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: 52px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .rail ol { flex-direction: row; gap: 8px; padding: 0 10px; overflow-x: auto; }
  .rail li { width: 26px; height: 26px; font-size: 0.62rem; flex: none; }
  #stage { padding-left: 0; padding-top: 52px; }
  .chamber { padding-top: clamp(2rem, 6vh, 4rem); }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .chamber.is-active { animation: fade .3s ease both; }
  @keyframes fade { from{opacity:0} to{opacity:1} }
  #motes { display: none; }
}
