:root {
  --paper: #f6eddc;
  --ink: #201919;
  --rust: #a54e38;
  --gold: #d8a145;
  --lake: #2d6174;
  --rose: #884861;
  --leaf: #5d7258;
  --mist: rgba(255, 249, 239, 0.74);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 161, 69, 0.34), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(45, 97, 116, 0.24), transparent 24%),
    linear-gradient(180deg, #f7f0e4 0%, #f0e3cb 48%, #ebe1d3 100%);
  transition: background 1800ms ease;
}

body.world-weather {
  background:
    radial-gradient(circle at top left, rgba(181, 203, 212, 0.44), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(45, 97, 116, 0.32), transparent 26%),
    linear-gradient(180deg, #eef3ef 0%, #e5e0d4 48%, #ddd1c5 100%);
}

body.world-trail {
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 215, 160, 0.34), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(133, 106, 61, 0.2), transparent 22%),
    linear-gradient(180deg, #f4e8cc 0%, #ddc99f 48%, #d2c4af 100%);
}

body.world-chorus {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 226, 214, 0.3), transparent 24%),
    radial-gradient(circle at 20% 70%, rgba(157, 86, 112, 0.24), transparent 24%),
    linear-gradient(180deg, #f3e4dc 0%, #e1cfd0 50%, #dccfca 100%);
}

body.world-garden {
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 237, 154, 0.34), transparent 22%),
    radial-gradient(circle at 84% 22%, rgba(159, 182, 106, 0.24), transparent 24%),
    linear-gradient(180deg, #f7edc4 0%, #dfd9a7 50%, #d8d1bc 100%);
}

body.world-window {
  background:
    radial-gradient(circle at 50% 14%, rgba(217, 225, 239, 0.24), transparent 22%),
    radial-gradient(circle at 18% 72%, rgba(105, 122, 146, 0.28), transparent 26%),
    linear-gradient(180deg, #e6e4e2 0%, #c6c1bf 46%, #d7cec8 100%);
}

body.world-pond {
  background:
    radial-gradient(circle at 52% 16%, rgba(236, 239, 215, 0.28), transparent 24%),
    radial-gradient(circle at 16% 68%, rgba(115, 144, 127, 0.28), transparent 24%),
    linear-gradient(180deg, #e8eddf 0%, #cfdbcf 48%, #d7d6cb 100%);
}

body.world-field {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 232, 128, 0.3), transparent 22%),
    radial-gradient(circle at 84% 24%, rgba(208, 143, 68, 0.24), transparent 22%),
    linear-gradient(180deg, #f7edbf 0%, #ead68c 48%, #d8cfb1 100%);
}

body.world-prayer {
  background:
    radial-gradient(circle at 50% 14%, rgba(247, 239, 220, 0.28), transparent 22%),
    radial-gradient(circle at 18% 74%, rgba(194, 125, 79, 0.24), transparent 28%),
    linear-gradient(180deg, #efe5da 0%, #dbcab8 48%, #d1c5bb 100%);
}

body.world-nursery {
  background:
    radial-gradient(circle at 48% 14%, rgba(255, 241, 176, 0.3), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(118, 185, 177, 0.22), transparent 24%),
    linear-gradient(180deg, #f6efd7 0%, #dfe7d8 48%, #d7d4cb 100%);
}

body.world-cipher {
  background:
    radial-gradient(circle at 50% 16%, rgba(244, 221, 211, 0.28), transparent 22%),
    radial-gradient(circle at 18% 74%, rgba(128, 88, 76, 0.24), transparent 28%),
    linear-gradient(180deg, #efe1da 0%, #d8c6c0 46%, #ccc0ba 100%);
}

.defs {
  position: absolute;
}

.atmosphere {
  inset: 0;
  pointer-events: none;
  position: fixed;
}

.atmosphere__glow {
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.6;
  position: absolute;
}

.atmosphere__glow--gold {
  background: rgba(216, 161, 69, 0.3);
  height: 18rem;
  left: -2rem;
  top: 10vh;
  width: 18rem;
}

.atmosphere__glow--blue {
  background: rgba(45, 97, 116, 0.2);
  bottom: 12vh;
  height: 22rem;
  right: -4rem;
  width: 22rem;
}

.atmosphere__glow--rose {
  background: rgba(136, 72, 97, 0.16);
  height: 19rem;
  left: 42%;
  top: -4rem;
  width: 19rem;
}

.atmosphere__grain {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.35;
  position: absolute;
}

.landing {
  align-items: center;
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1400px;
  min-height: 100dvh;
  padding: 1.5rem 1.25rem 2rem;
  place-content: center;
  position: relative;
  text-align: center;
  transition: opacity 800ms ease, transform 800ms ease;
}

.worlds {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.world {
  background: transparent;
  border: 0;
  color: rgba(32, 25, 25, 0.68);
  cursor: pointer;
  display: grid;
  gap: 0.42rem;
  font-size: 0.92rem;
  line-height: 1.4;
  justify-items: center;
  max-width: 8.5rem;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  text-align: center;
  transition: opacity 1200ms ease, transform 1200ms ease, color 1200ms ease;
}

.world:hover,
.world:focus-visible {
  transform: translateY(-4px) scale(1.01);
}

.world.is-active {
  color: var(--ink);
}

.world__portal {
  animation: float 18s ease-in-out infinite;
  animation-delay: inherit;
  backdrop-filter: blur(10px);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.58), transparent 32%),
    radial-gradient(circle at 65% 60%, rgba(216, 161, 69, 0.22), transparent 38%),
    rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 999px;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.16),
    0 10px 28px -18px rgba(32, 25, 25, 0.55);
  height: 4rem;
  position: relative;
  width: 4rem;
}

.world__portal svg {
  height: 100%;
  width: 100%;
}

.world__portal::after {
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 999px;
  content: "";
  inset: -0.5rem;
  opacity: 0.8;
  position: absolute;
}

.world__name {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.world__hint {
  color: rgba(32, 25, 25, 0.46);
  font-size: 0.68rem;
  margin: 0;
  max-width: 12ch;
}

.landing__stage {
  animation: rise 700ms ease;
  position: relative;
  z-index: 2;
}

.stage-card {
  background: transparent;
  cursor: pointer;
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 900px;
  padding: 0;
  transition: opacity 1400ms ease, transform 1400ms ease;
}

.stage-card__scene {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.34), transparent 45%),
    linear-gradient(180deg, rgba(255, 246, 232, 0.2), rgba(241, 231, 214, 0.08));
  border-radius: 2.8rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 28px 90px -46px rgba(32, 25, 25, 0.62);
  height: min(62vw, 620px);
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.scene-art {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.art-image {
  background-image: var(--art-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  mask-image: radial-gradient(circle at 50% 46%, black 0%, black 34%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, black 0%, black 34%, transparent 78%);
  mix-blend-mode: multiply;
  opacity: 0.34;
  position: absolute;
  transform: scale(1.06);
}

.art-object {
  filter: drop-shadow(0 18px 24px rgba(32, 25, 25, 0.16));
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 52%;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 1400ms ease, transform 1400ms ease;
}

.art-object.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.art-object svg {
  display: block;
  height: auto;
  width: min(62vw, 560px);
}

.art-tint {
  inset: 0;
  position: absolute;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(32, 25, 25, 0.05) 100%);
  mix-blend-mode: screen;
}

.stage-card__copy {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding: 0.2rem 0.3rem 0;
  text-align: center;
}

.stage-card__kicker {
  color: rgba(32, 25, 25, 0.56);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.stage-card__line {
  color: rgba(31, 24, 24, 0.86);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.3;
  margin: 0;
  max-width: 24ch;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.landing__path {
  animation: rise 820ms ease;
  margin: 0 auto;
  max-width: 760px;
  min-height: 2.5rem;
  position: relative;
  z-index: 2;
  transition: opacity 1400ms ease, transform 1400ms ease;
}

.path-copy {
  color: rgba(32, 25, 25, 0.58);
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  line-height: 1.6;
  margin: 0;
  max-width: 50ch;
  text-wrap: balance;
}

.landing.is-muted {
  opacity: 0.12;
  pointer-events: none;
  transform: scale(0.985);
}

.chamber {
  align-items: center;
  display: grid;
  inset: 0;
  opacity: 0;
  overflow-y: auto;
  padding: 1.2rem;
  pointer-events: none;
  position: fixed;
  transition: opacity 700ms ease;
  z-index: 20;
}

.chamber.is-open {
  opacity: 1;
  pointer-events: auto;
}

.chamber__close {
  appearance: none;
  background: rgba(250, 245, 236, 0.24);
  border: 1px solid rgba(255, 252, 246, 0.24);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.8rem;
  justify-self: end;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  padding: 0.75rem 0.95rem;
  text-transform: uppercase;
}

.chamber__shell {
  backdrop-filter: blur(16px);
  background: rgba(250, 245, 236, 0.3);
  border: 1px solid rgba(255, 252, 246, 0.24);
  border-radius: 2.4rem;
  box-shadow: 0 30px 90px -40px rgba(32, 25, 25, 0.72);
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1080px;
  max-height: calc(100dvh - 3rem);
  overflow: hidden;
  padding: 1.15rem;
  width: min(100%, 1080px);
}

.chamber__header {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.chamber__controls {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.chamber__tool {
  appearance: none;
  background: rgba(250, 245, 236, 0.24);
  border: 1px solid rgba(255, 252, 246, 0.22);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 0.62rem 0.82rem;
  text-transform: uppercase;
}

.chamber__tool[hidden] {
  display: none;
}

.chamber__name {
  color: rgba(31, 24, 24, 0.56);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.chamber__prompt {
  color: rgba(31, 24, 24, 0.86);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.45;
  margin: 0;
}

.chamber__scene {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(255, 249, 240, 0.16), rgba(241, 231, 214, 0.06));
  border-radius: 2rem;
  min-height: min(60vh, 48rem);
  overflow: hidden;
  position: relative;
}

.chamber__line {
  color: rgba(31, 24, 24, 0.84);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 52ch;
  min-height: 3.2rem;
  text-align: center;
}

.chamber-enter-hint {
  bottom: 1rem;
  color: rgba(31, 24, 24, 0.46);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.74rem;
  left: 50%;
  letter-spacing: 0.08em;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.chamber-token,
.chamber-node,
.chamber-pane,
.window-pane,
.chamber-object,
.chamber-flower {
  appearance: none;
  background: rgba(255, 250, 242, 0.18);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0.7rem 0.95rem;
  position: absolute;
  transition: opacity 450ms ease, transform 180ms ease;
}

.chamber-token:hover,
.chamber-node:hover,
.chamber-pane:hover,
.window-pane:hover,
.chamber-object:hover,
.chamber-flower:hover {
  transform: translateY(-2px) scale(1.02);
}

.is-spent {
  opacity: 0.28;
}

.chamber-rain,
.chamber-trail,
.chamber-rings,
.chamber-garden,
.chamber-window-grid,
.chamber-ripple,
.chamber-field {
  inset: 0;
  position: absolute;
}

.chamber__scene.is-listening::after {
  animation: pulse 2.2s ease-in-out infinite;
  border: 2px solid rgba(169, 91, 116, 0.42);
  border-radius: 2rem;
  content: "";
  inset: 1rem;
  position: absolute;
}

.chamber-rain::before,
.chamber-rain::after {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(84, 125, 142, 0.45), rgba(255,255,255,0));
  border-radius: 999px;
  content: "";
  height: 72%;
  position: absolute;
  top: 8%;
  width: 2px;
}

.chamber-rain::before {
  animation: rain 8s linear infinite;
  left: 28%;
}

.chamber-rain::after {
  animation: rain 10s linear infinite 1.5s;
  left: 66%;
}

.chamber-trail svg,
.chamber-rings svg,
.chamber-garden svg,
.chamber-window-grid svg,
.chamber-ripple svg,
.chamber-field svg {
  height: 100%;
  width: 100%;
}

.trail-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: min(86%, 760px);
  z-index: 3;
}

.garden-object-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 13%;
  transform: translateX(-50%);
  width: min(86%, 760px);
}

.garden-object,
.garden-memory-choice {
  appearance: none;
  background: rgba(255, 250, 242, 0.2);
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0.78rem 1rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.garden-object:hover,
.garden-memory-choice:hover {
  transform: translateY(-2px) scale(1.02);
}

.garden-object.is-active {
  border-color: rgba(169, 91, 116, 0.44);
  box-shadow: 0 8px 18px -12px rgba(32, 25, 25, 0.8);
}

.garden-memory {
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 236, 0.2);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 1rem;
  left: 50%;
  max-width: 38rem;
  padding: 0.8rem 0.9rem;
  position: absolute;
  text-align: center;
  top: 29%;
  transform: translateX(-50%);
  width: min(88%, 38rem);
}

.garden-memory__label {
  color: rgba(31, 24, 24, 0.52);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.garden-memory__prompt,
.garden-memory__trace {
  color: rgba(31, 24, 24, 0.8);
  line-height: 1.5;
  margin: 0;
}

.garden-memory__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 0.75rem 0;
}

.garden-memory__trace {
  color: rgba(31, 24, 24, 0.62);
  font-size: 0.92rem;
}

.garden-poem {
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 236, 0.24);
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 1rem;
  bottom: 1rem;
  left: 50%;
  max-width: 40rem;
  padding: 0.85rem 0.95rem;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  width: min(90%, 40rem);
}

.garden-poem__title {
  color: rgba(31, 24, 24, 0.54);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.garden-poem__body {
  color: rgba(31, 24, 24, 0.84);
  line-height: 1.6;
  margin: 0;
}

.garden-poem__meta {
  color: rgba(31, 24, 24, 0.58);
  font-size: 0.86rem;
  line-height: 1.4;
  margin: 0.55rem 0 0;
}

.trail-choice-grid--primary {
  top: 16%;
}

.trail-choice-grid--secondary {
  top: 36%;
}

.trail-choice-grid--tertiary {
  top: 50%;
}

.chamber__scene.trail-has-fragment .trail-choice-grid--tertiary {
  top: 74%;
}

.chamber__scene.trail-has-fragment .trail-arrival-card {
  bottom: 0.4rem;
}

.trail-choice {
  appearance: none;
  background: rgba(255, 250, 242, 0.18);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0.82rem 1.05rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.trail-choice:hover,
.trail-choice:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

.trail-choice--small {
  font-size: 0.94rem;
}

.trail-memory {
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 236, 0.18);
  border: 1px solid rgba(255, 252, 246, 0.16);
  border-radius: 1rem;
  left: 50%;
  max-width: 34rem;
  padding: 0.5rem 0.72rem;
  position: absolute;
  text-align: center;
  top: 72%;
  transform: translateX(-50%);
  width: min(84%, 34rem);
}

.trail-memory__label {
  color: rgba(31, 24, 24, 0.52);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.22rem;
  text-transform: uppercase;
}

.trail-memory__line {
  color: rgba(31, 24, 24, 0.78);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.trail-fragment-card {
  backdrop-filter: blur(12px);
  background: rgba(250, 245, 236, 0.24);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 1.4rem;
  top: 50%;
  bottom: auto;
  left: 50%;
  max-width: 34rem;
  padding: 0.85rem 1rem;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  width: min(86%, 34rem);
  z-index: 1;
}

.chamber__scene.trail-has-fragment .trail-fragment-card {
  top: 58%;
}

.trail-fragment-card__quote {
  color: rgba(31, 24, 24, 0.84);
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 0;
}

.trail-arrival-card {
  backdrop-filter: blur(12px);
  background: rgba(250, 245, 236, 0.28);
  border: 1px solid rgba(255, 252, 246, 0.22);
  border-radius: 1.1rem;
  bottom: 0.9rem;
  left: 50%;
  max-width: 38rem;
  padding: 0.9rem 1rem;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  width: min(90%, 38rem);
  z-index: 4;
}

.trail-arrival-card__title {
  color: rgba(31, 24, 24, 0.52);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.trail-arrival-card__body {
  color: rgba(31, 24, 24, 0.84);
  line-height: 1.5;
  margin: 0;
  white-space: pre-line;
}

.trail-arrival-card__seal {
  color: rgba(31, 24, 24, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.55rem 0 0;
}

.trail-arrival-card__meta {
  color: rgba(31, 24, 24, 0.58);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0.45rem 0 0;
}

.artifact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.artifact-actions__button {
  appearance: none;
  background: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0.65rem 0.95rem;
  transition: opacity 300ms ease, transform 180ms ease;
}

.artifact-actions__button:hover,
.artifact-actions__button:focus-visible {
  transform: translateY(-1px) scale(1.01);
}

.trail-mote {
  transform-origin: center;
}

.trail-mote--1 {
  animation: drift 11s ease-in-out infinite;
}

.trail-mote--2 {
  animation: drift 13s ease-in-out infinite 1.4s;
}

.trail-mote--3 {
  animation: drift 12s ease-in-out infinite 2.2s;
}

.chorus-stage {
  display: grid;
  gap: 1rem;
  left: 50%;
  max-width: 36rem;
  position: absolute;
  text-align: center;
  top: 16%;
  transform: translateX(-50%);
  width: min(86%, 36rem);
}

.chorus-stage__label {
  color: rgba(31, 24, 24, 0.5);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.chorus-stage__round {
  color: rgba(31, 24, 24, 0.62);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin: -0.2rem 0 0;
  text-transform: uppercase;
}

.chorus-stage__meter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.chorus-stage__beat {
  background: rgba(255, 250, 242, 0.26);
  border: 1px solid rgba(255, 252, 246, 0.3);
  border-radius: 999px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.12);
  display: inline-flex;
  height: 0.72rem;
  transition: transform 180ms ease, background 400ms ease, box-shadow 400ms ease;
  width: 2rem;
}

.chorus-stage__beat.is-current {
  background: rgba(239, 202, 186, 0.72);
  box-shadow: 0 0 16px rgba(207, 132, 118, 0.22);
  transform: scale(1.04);
}

.chorus-stage__beat.is-kept {
  background: rgba(168, 92, 116, 0.7);
  box-shadow: 0 0 18px rgba(168, 92, 116, 0.24);
}

.chorus-stage__line {
  color: rgba(31, 24, 24, 0.9);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  margin: 0;
}

.chorus-stage__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.chorus-pulse,
.chorus-stage__next {
  appearance: none;
  background: rgba(255, 250, 242, 0.18);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0.8rem 1rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.chorus-pulse:hover,
.chorus-stage__next:hover {
  transform: translateY(-2px) scale(1.02);
}

.prayer-stage,
.nursery-stage,
.cipher-stage {
  display: grid;
  gap: 1rem;
  left: 50%;
  max-width: 36rem;
  position: absolute;
  text-align: center;
  top: 14%;
  transform: translateX(-50%);
  width: min(86%, 36rem);
}

.prayer-stage__label,
.cipher-stage__label {
  color: rgba(31, 24, 24, 0.5);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.prayer-stage__choices,
.nursery-stage__choices,
.cipher-stage__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.prayer-choice,
.nursery-choice,
.cipher-choice,
.cipher-stage__next {
  appearance: none;
  background: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0.78rem 1rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.prayer-choice:hover,
.nursery-choice:hover,
.cipher-choice:hover,
.cipher-stage__next:hover {
  transform: translateY(-2px) scale(1.02);
}

.prayer-stage__trace,
.nursery-stage__trace,
.cipher-stage__prompt {
  color: rgba(31, 24, 24, 0.8);
  line-height: 1.55;
  margin: 0;
}

.prayer-stage__arrival,
.nursery-stage__arrival {
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 236, 0.2);
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 1rem;
  color: rgba(31, 24, 24, 0.86);
  line-height: 1.6;
  margin: 0;
  padding: 0.8rem 0.95rem;
}

.prayer-stage__arrival-title,
.nursery-stage__arrival-title {
  color: rgba(31, 24, 24, 0.52);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.prayer-stage__arrival-body,
.nursery-stage__arrival-body {
  margin: 0;
}

.pond-stage {
  display: grid;
  gap: 1rem;
  left: 50%;
  max-width: 34rem;
  position: absolute;
  text-align: center;
  top: 14%;
  transform: translateX(-50%);
  width: min(84%, 34rem);
}

.pond-stage__prompt {
  color: rgba(31, 24, 24, 0.84);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.55;
  margin: 0;
}

.pond-stage__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pond-choice,
.pond-stage__next {
  appearance: none;
  background: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0.78rem 1rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.pond-choice:hover,
.pond-stage__next:hover {
  transform: translateY(-2px) scale(1.02);
}

.field-cluster-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 13%;
  transform: translateX(-50%);
  width: min(88%, 40rem);
}

.field-cluster {
  appearance: none;
  background: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.84);
  cursor: pointer;
  font: inherit;
  padding: 0.72rem 0.95rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.field-cluster:hover {
  transform: translateY(-2px) scale(1.02);
}

.field-gather {
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 236, 0.2);
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 1rem;
  display: grid;
  gap: 0.5rem;
  left: 50%;
  max-width: 40rem;
  padding: 0.8rem 0.95rem;
  position: absolute;
  text-align: center;
  top: 31%;
  transform: translateX(-50%);
  width: min(90%, 40rem);
}

.field-gather__label {
  color: rgba(31, 24, 24, 0.54);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.field-gather__trace,
.field-gather__status {
  color: rgba(31, 24, 24, 0.75);
  line-height: 1.45;
  margin: 0;
}

.field-gather__status {
  color: rgba(31, 24, 24, 0.64);
  font-size: 0.92rem;
}

.field-gather__recollect {
  appearance: none;
  background: rgba(255, 250, 242, 0.14);
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  justify-self: center;
  padding: 0.7rem 1rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.field-gather__recollect:hover {
  transform: translateY(-2px) scale(1.02);
}

.field-artifact {
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 236, 0.2);
  border: 1px solid rgba(255, 252, 246, 0.22);
  border-radius: 1rem;
  display: grid;
  gap: 0.45rem;
  left: 50%;
  max-width: 40rem;
  padding: 0.78rem 0.92rem;
  position: absolute;
  text-align: center;
  top: 61%;
  transform: translateX(-50%);
  width: min(90%, 40rem);
}

.field-artifact__title {
  color: rgba(31, 24, 24, 0.56);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.field-artifact__body {
  color: rgba(31, 24, 24, 0.8);
  line-height: 1.5;
  margin: 0;
}

.field-artifact__meta {
  color: rgba(31, 24, 24, 0.68);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.chamber__scene.field-mode--gathering .chamber-field {
  filter: saturate(0.9);
  opacity: 0.92;
}

.chamber__scene.field-mode--horizon-rise .chamber-field {
  filter: saturate(1.12) brightness(1.06);
}

.chamber__scene.field-mode--horizon-rise .field-artifact {
  background: rgba(252, 244, 220, 0.32);
  border-color: rgba(255, 233, 172, 0.38);
}

.chamber__scene.field-mode--return-fall .chamber-field {
  filter: saturate(0.86) brightness(0.92);
}

.chamber__scene.field-mode--return-fall .field-artifact {
  background: rgba(233, 241, 232, 0.3);
  border-color: rgba(176, 203, 166, 0.4);
}

.chamber__scene.field-mode--crosswind-braid .chamber-field {
  filter: saturate(0.98) hue-rotate(-5deg);
}

.chamber__scene.field-mode--crosswind-braid .field-artifact {
  background: rgba(236, 239, 248, 0.3);
  border-color: rgba(183, 193, 231, 0.38);
}

.window-pane-row {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 13%;
  transform: translateX(-50%);
  width: min(84%, 36rem);
}

.window-pane-row .window-pane {
  position: static;
}

.window-stage {
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 236, 0.2);
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 1rem;
  left: 50%;
  max-width: 38rem;
  padding: 0.8rem 0.9rem;
  position: absolute;
  top: 26%;
  transform: translateX(-50%);
  width: min(88%, 38rem);
}

.window-stage__label {
  color: rgba(31, 24, 24, 0.52);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.window-stage__reveal-list {
  display: grid;
  gap: 0.5rem;
}

.window-stage__placeholder {
  color: rgba(31, 24, 24, 0.64);
  margin: 0;
}

.window-reveal {
  background: rgba(255, 251, 243, 0.26);
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 0.8rem;
  padding: 0.55rem 0.7rem;
}

.window-reveal__type {
  color: rgba(31, 24, 24, 0.56);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}

.window-reveal__line {
  color: rgba(31, 24, 24, 0.82);
  line-height: 1.5;
  margin: 0;
}

.window-recall {
  display: grid;
  gap: 0.65rem;
  left: 50%;
  max-width: 38rem;
  position: absolute;
  text-align: center;
  top: 64%;
  transform: translateX(-50%);
  width: min(88%, 38rem);
}

#window-artifact {
  margin-top: 0.35rem;
  position: relative;
}

.window-recall__label {
  color: rgba(31, 24, 24, 0.54);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.window-recall__step {
  color: rgba(31, 24, 24, 0.62);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.window-recall__line {
  color: rgba(31, 24, 24, 0.84);
  font-size: 1.05rem;
  margin: 0;
}

.window-recall__cadence-reset {
  appearance: none;
  background: rgba(255, 250, 242, 0.12);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  justify-self: center;
  padding: 0.52rem 0.85rem;
  transition: opacity 300ms ease, transform 180ms ease;
}

.window-recall__cadence-reset:hover {
  transform: translateY(-1px) scale(1.01);
}

.window-recall__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.window-whisper {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
}

.window-whisper__play {
  appearance: none;
  background: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.84);
  cursor: pointer;
  font: inherit;
  padding: 0.7rem 1rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.window-whisper__play:hover {
  transform: translateY(-2px) scale(1.02);
}

.window-whisper__status,
.window-whisper__text {
  color: rgba(31, 24, 24, 0.68);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.window-whisper__reset {
  appearance: none;
  background: rgba(255, 250, 242, 0.12);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.55rem 0.86rem;
  transition: opacity 300ms ease, transform 180ms ease;
}

.window-whisper__reset:hover {
  transform: translateY(-1px) scale(1.01);
}

.window-whisper__text {
  color: rgba(31, 24, 24, 0.8);
  font-size: 0.92rem;
}

.window-recall-choice {
  appearance: none;
  background: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0.76rem 1rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.window-recall-choice:hover {
  transform: translateY(-2px) scale(1.02);
}

.window-recall__echo,
.window-recall__hint,
.window-recall__threshold {
  margin: 0;
}

.window-recall__echo {
  color: rgba(31, 24, 24, 0.62);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.window-recall__hint {
  color: rgba(31, 24, 24, 0.66);
  font-size: 0.92rem;
}

.window-recall__threshold {
  color: rgba(31, 24, 24, 0.74);
  font-size: 0.94rem;
  line-height: 1.5;
}

.weather-stage {
  display: grid;
  gap: 0.9rem;
  left: 50%;
  max-width: 36rem;
  position: absolute;
  text-align: center;
  top: 14%;
  transform: translateX(-50%);
  width: min(86%, 36rem);
}

.weather-stage__label {
  color: rgba(31, 24, 24, 0.5);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.weather-stage__prompt {
  color: rgba(31, 24, 24, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.5;
  margin: 0;
}

.weather-stage__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.weather-choice,
.weather-stage__next {
  appearance: none;
  background: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  color: rgba(31, 24, 24, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0.78rem 1rem;
  transition: opacity 450ms ease, transform 180ms ease;
}

.weather-choice:hover,
.weather-stage__next:hover {
  transform: translateY(-2px) scale(1.02);
}

.weather-stage__line {
  color: rgba(31, 24, 24, 0.74);
  margin: 0;
}

.weather-stage__artifact {
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 236, 0.2);
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 1rem;
  color: rgba(31, 24, 24, 0.86);
  line-height: 1.6;
  margin: 0;
  padding: 0.8rem 0.95rem;
}

.weather-rain {
  transition: opacity 420ms ease, transform 420ms ease;
}

.weather-rain--drizzle {
  opacity: 0.45;
}

.weather-rain--rain {
  opacity: 0.82;
  transform: translateY(2%);
}

.weather-rain--clearing {
  opacity: 0.24;
  transform: translateY(-2%);
}

.versions {
  bottom: 0.85rem;
  position: fixed;
  right: 0.85rem;
  z-index: 30;
}

.versions__toggle {
  appearance: none;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.76), transparent 24%),
    rgba(35, 30, 30, 0.26);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 999px;
  cursor: pointer;
  height: 0.95rem;
  opacity: 0.42;
  transition: opacity 200ms ease, transform 200ms ease;
  width: 0.95rem;
}

.versions__toggle:hover,
.versions__toggle:focus-visible {
  opacity: 0.9;
  transform: scale(1.08);
}

.versions__panel {
  backdrop-filter: blur(14px);
  background: rgba(250, 245, 236, 0.82);
  border: 1px solid rgba(255, 252, 246, 0.24);
  border-radius: 1.1rem;
  bottom: 1.6rem;
  box-shadow: 0 24px 60px -36px rgba(32, 25, 25, 0.75);
  min-width: 220px;
  opacity: 0;
  padding: 0.85rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.versions.is-open .versions__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.versions__title {
  color: rgba(31, 24, 24, 0.58);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.versions__list {
  display: grid;
  gap: 0.55rem;
}

.version-entry {
  align-items: start;
  display: grid;
  gap: 0.18rem;
}

.version-entry a,
.version-entry button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--lake);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.version-entry small {
  color: rgba(31, 24, 24, 0.54);
  display: block;
  line-height: 1.5;
}

.stage-card.is-transitioning,
.landing__path.is-transitioning {
  opacity: 0.18;
  transform: translateY(10px);
}

.scene__wash,
.scene__stars,
.scene__horizon {
  inset: 0;
  position: absolute;
}

.scene__wash {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.38), transparent 20%),
    radial-gradient(circle at 18% 72%, rgba(136, 72, 97, 0.18), transparent 22%),
    radial-gradient(circle at 82% 24%, rgba(45, 97, 116, 0.2), transparent 24%);
}

.scene__stars {
  background-image:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 11%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 19%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 13%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px);
  opacity: 0.42;
}

.scene__horizon--back {
  background:
    radial-gradient(circle at 16% 62%, rgba(93, 114, 88, 0.22), transparent 22%),
    radial-gradient(circle at 84% 62%, rgba(45, 97, 116, 0.18), transparent 22%);
}

.scene__horizon--mid {
  background: linear-gradient(180deg, transparent 55%, rgba(105, 95, 82, 0.12) 56%, transparent 72%);
  transform: translateY(10%);
}

.scene__horizon--front {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(78, 73, 64, 0.26), transparent 42%),
    linear-gradient(180deg, transparent 66%, rgba(75, 91, 77, 0.16) 74%, rgba(54, 63, 53, 0.22) 100%);
}

.scene__stars,
.scene__wash,
.scene__horizon {
  transition: opacity 1400ms ease, transform 1400ms ease, background 1400ms ease;
}

.scene {
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 1400ms ease;
}

.scene.is-visible {
  opacity: 1;
}

.scene--weather {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.42), transparent 26%),
    linear-gradient(180deg, rgba(181, 203, 212, 0.52), rgba(228, 214, 194, 0.18));
}

.scene__stroke {
  background: linear-gradient(180deg, rgba(45, 97, 116, 0), rgba(45, 97, 116, 0.4), rgba(45, 97, 116, 0));
  border-radius: 999px;
  height: 88%;
  position: absolute;
  top: -4%;
  width: 2px;
}

.scene__stroke--1 {
  animation: rain 8s linear infinite;
  left: 26%;
}

.scene__stroke--2 {
  animation: rain 10s linear infinite 1.5s;
  left: 55%;
}

.scene__stroke--3 {
  animation: rain 9s linear infinite 0.8s;
  left: 74%;
}

.scene--trail {
  background:
    radial-gradient(circle at 48% 30%, rgba(255, 247, 236, 0.5), transparent 18%),
    linear-gradient(180deg, rgba(219, 210, 184, 0.5), rgba(188, 176, 140, 0.16));
}

.scene__word {
  color: rgba(32, 25, 25, 0.44);
  font-size: clamp(1rem, 2vw, 1.4rem);
  position: absolute;
}

.scene__word--1 {
  animation: drift 12s ease-in-out infinite;
  left: 18%;
  top: 42%;
}

.scene__word--2 {
  animation: drift 15s ease-in-out infinite 1s;
  left: 58%;
  top: 24%;
}

.scene__word--3 {
  animation: drift 14s ease-in-out infinite 2.4s;
  left: 64%;
  top: 64%;
}

.scene--chorus {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 245, 227, 0.64), transparent 22%),
    linear-gradient(180deg, rgba(220, 209, 202, 0.42), rgba(205, 184, 192, 0.14));
}

.scene__ring {
  border: 1px solid rgba(136, 72, 97, 0.34);
  border-radius: 999px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.scene__ring--1 {
  animation: pulse 8s ease-in-out infinite;
  height: 8rem;
  width: 8rem;
}

.scene__ring--2 {
  animation: pulse 8s ease-in-out infinite 1s;
  height: 14rem;
  width: 14rem;
}

.scene__ring--3 {
  animation: pulse 8s ease-in-out infinite 2s;
  height: 20rem;
  width: 20rem;
}

.scene--garden {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 251, 234, 0.72), transparent 24%),
    linear-gradient(180deg, rgba(228, 220, 169, 0.5), rgba(171, 189, 132, 0.18));
}

.scene__petal {
  background: radial-gradient(circle at 30% 30%, rgba(255, 236, 153, 0.92), rgba(214, 161, 69, 0.72));
  border-radius: 70% 30% 70% 30%;
  position: absolute;
}

.scene__petal--1 {
  animation: sway 11s ease-in-out infinite;
  height: 7rem;
  left: 18%;
  top: 48%;
  width: 2.6rem;
}

.scene__petal--2 {
  animation: sway 9s ease-in-out infinite 1s;
  height: 8rem;
  left: 36%;
  top: 36%;
  width: 2.8rem;
}

.scene__petal--3 {
  animation: sway 10s ease-in-out infinite 2.2s;
  height: 6.5rem;
  left: 62%;
  top: 52%;
  width: 2.4rem;
}

.scene__petal--4 {
  animation: sway 12s ease-in-out infinite 0.5s;
  height: 8.4rem;
  left: 78%;
  top: 33%;
  width: 2.9rem;
}

.scene--window {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.3), transparent 20%),
    linear-gradient(180deg, rgba(78, 93, 112, 0.48), rgba(185, 166, 153, 0.18));
}

.scene__pane {
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.16);
  position: absolute;
}

.scene__pane--1 {
  height: 64%;
  left: 26%;
  top: 18%;
  width: 20%;
}

.scene__pane--2 {
  height: 64%;
  left: 48%;
  top: 18%;
  width: 20%;
}

.scene__pane--3 {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 40%);
  height: 2px;
  left: 26%;
  top: 49%;
  width: 42%;
}

.scene--pond {
  background:
    radial-gradient(circle at 50% 58%, rgba(248, 245, 226, 0.3), transparent 18%),
    linear-gradient(180deg, rgba(176, 196, 183, 0.44), rgba(121, 143, 130, 0.18));
}

.scene__ripple {
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 999px;
  left: 50%;
  position: absolute;
  top: 58%;
  transform: translate(-50%, -50%);
}

.scene__ripple--1 {
  animation: pulse 10s ease-in-out infinite;
  height: 4rem;
  width: 8rem;
}

.scene__ripple--2 {
  animation: pulse 10s ease-in-out infinite 1.5s;
  height: 7rem;
  width: 14rem;
}

.scene__ripple--3 {
  animation: pulse 10s ease-in-out infinite 3s;
  height: 10rem;
  width: 20rem;
}

.scene--field {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 251, 235, 0.52), transparent 22%),
    linear-gradient(180deg, rgba(236, 214, 121, 0.42), rgba(174, 192, 116, 0.18));
}

.scene__blade {
  background: linear-gradient(180deg, rgba(93, 114, 88, 0.1), rgba(93, 114, 88, 0.75));
  border-radius: 999px 999px 0 0;
  bottom: 0;
  position: absolute;
  transform-origin: bottom center;
  width: 3px;
}

.scene__blade--1 {
  animation: sway 8s ease-in-out infinite;
  height: 48%;
  left: 22%;
}

.scene__blade--2 {
  animation: sway 10s ease-in-out infinite 0.5s;
  height: 56%;
  left: 38%;
}

.scene__blade--3 {
  animation: sway 9s ease-in-out infinite 1.2s;
  height: 52%;
  left: 62%;
}

.scene__blade--4 {
  animation: sway 11s ease-in-out infinite 1.8s;
  height: 58%;
  left: 78%;
}

.scene--prayer {
  background:
    radial-gradient(circle at 50% 26%, rgba(249, 240, 226, 0.46), transparent 22%),
    linear-gradient(180deg, rgba(194, 125, 79, 0.18), rgba(130, 96, 77, 0.14));
}

.scene__halo,
.scene__flame,
.scene__starlet,
.scene__kite,
.scene__bar,
.scene__spark {
  position: absolute;
}

.scene__halo {
  border: 1px solid rgba(248, 240, 230, 0.38);
  border-radius: 999px;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}

.scene__halo--1 {
  animation: pulse 10s ease-in-out infinite;
  height: 8rem;
  width: 8rem;
}

.scene__halo--2 {
  animation: pulse 12s ease-in-out infinite 1s;
  height: 14rem;
  width: 14rem;
}

.scene__flame {
  background: linear-gradient(180deg, rgba(255, 240, 209, 0.95), rgba(216, 161, 69, 0.66));
  border-radius: 55% 55% 60% 60% / 70% 70% 40% 40%;
  height: 7rem;
  left: 50%;
  top: 39%;
  transform: translateX(-50%);
  width: 3.6rem;
}

.scene--nursery {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 249, 229, 0.5), transparent 22%),
    linear-gradient(180deg, rgba(255, 236, 176, 0.2), rgba(118, 185, 177, 0.12));
}

.scene__starlet {
  border-radius: 999px;
  filter: blur(0.2px);
}

.scene__starlet--1 {
  background: rgba(255, 239, 170, 0.85);
  height: 1.6rem;
  left: 22%;
  top: 28%;
  width: 1.6rem;
}

.scene__starlet--2 {
  background: rgba(248, 246, 222, 0.82);
  height: 1.2rem;
  left: 46%;
  top: 20%;
  width: 1.2rem;
}

.scene__starlet--3 {
  background: rgba(211, 240, 235, 0.9);
  height: 1.4rem;
  left: 68%;
  top: 34%;
  width: 1.4rem;
}

.scene__kite {
  background: rgba(255, 226, 136, 0.78);
  clip-path: polygon(50% 0%, 100% 48%, 50% 100%, 0% 48%);
  height: 4rem;
  left: 68%;
  top: 26%;
  width: 4rem;
}

.scene--cipher {
  background:
    radial-gradient(circle at 50% 18%, rgba(248, 236, 225, 0.34), transparent 22%),
    linear-gradient(180deg, rgba(128, 88, 76, 0.22), rgba(94, 75, 67, 0.12));
}

.scene__bar {
  background: linear-gradient(180deg, rgba(248, 236, 225, 0.18), rgba(248, 236, 225, 0.44));
  border-radius: 1rem 1rem 0 0;
  bottom: 14%;
  width: 2rem;
}

.scene__bar--1 {
  height: 20%;
  left: 28%;
}

.scene__bar--2 {
  height: 32%;
  left: 48%;
}

.scene__bar--3 {
  height: 42%;
  left: 68%;
}

.scene__spark {
  background: rgba(255, 241, 223, 0.84);
  border-radius: 999px;
  height: 0.8rem;
  left: 58%;
  top: 32%;
  width: 0.8rem;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .world__portal { animation: none; }
}

@keyframes rain {
  0% {
    opacity: 0;
    transform: translateY(-3%);
  }

  20%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(18%);
  }
}

@keyframes drift {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(0, 0);
  }

  50% {
    opacity: 0.82;
    transform: translate(12px, -8px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(0.95);
  }

  50% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(4deg);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .landing {
    gap: 1.25rem;
    max-width: 760px;
    padding: 1.25rem 0.9rem 2rem;
  }

  .path-copy {
    font-size: 0.98rem;
  }

  .stage-card {
    max-width: 100%;
  }

  .stage-card__scene {
    border-radius: 2rem;
    height: 74vw;
    min-height: 260px;
  }

  .art-object svg {
    width: min(88vw, 420px);
  }

  .worlds {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inset: auto;
    margin: 0 auto;
    max-width: 680px;
    order: -1;
    position: relative;
    width: 100%;
  }

  .world {
    left: auto;
    max-width: none;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
  }

  .world__hint {
    max-width: none;
  }

  .chamber {
    padding: 0.85rem;
  }

  .chamber__shell {
    border-radius: 1.8rem;
    padding: 0.9rem;
  }

  .chamber__scene {
    min-height: 56vh;
  }

  .field-cluster-row {
    top: 10%;
    width: min(94%, 40rem);
  }

  .field-gather {
    top: 27%;
    width: min(94%, 40rem);
  }

  .field-artifact {
    top: 59%;
    width: min(94%, 40rem);
  }
}

@media (max-width: 1080px) {
  body {
    overflow-y: auto;
  }

  .landing {
    gap: 1.35rem;
    max-width: 920px;
    min-height: auto;
    padding: 1.2rem 1rem 2rem;
    place-content: start;
  }

  .worlds {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    inset: auto;
    margin: 0 auto;
    max-width: 860px;
    order: 2;
    position: relative;
    width: 100%;
  }

  .world {
    left: auto;
    max-width: none;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
  }

  .stage-card {
    max-width: 100%;
  }

  .stage-card__scene {
    height: min(74vw, 34rem);
    min-height: 19rem;
  }

  .art-object svg {
    width: min(72vw, 31rem);
  }

  .chamber {
    align-items: start;
  }
}

@media (max-width: 820px) {
  .chamber {
    padding: 0.75rem;
  }

  .chamber__shell {
    border-radius: 1.8rem;
    max-height: none;
    overflow: visible;
    padding: 0.9rem;
  }

  .chamber__scene {
    display: grid;
    gap: 0.9rem;
    min-height: auto;
    overflow: auto;
    padding: 0.95rem 0.85rem 1.15rem;
  }

  .trail-choice-grid,
  .garden-object-row,
  .garden-memory,
  .garden-poem,
  .trail-fragment-card,
  .trail-arrival-card,
  .chorus-stage,
  .prayer-stage,
  .nursery-stage,
  .cipher-stage,
  .pond-stage,
  .field-cluster-row,
  .field-gather,
  .field-artifact,
  .window-pane-row,
  .window-stage,
  .window-recall,
  .weather-stage {
    left: auto;
    max-width: none;
    position: relative;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    z-index: 2;
  }

  .trail-choice-grid--primary,
  .trail-choice-grid--secondary,
  .trail-choice-grid--tertiary {
    top: auto;
  }

  .window-pane-row,
  .field-cluster-row,
  .pond-stage__choices,
  .chorus-stage__choices,
  .prayer-stage__choices,
  .nursery-stage__choices,
  .cipher-stage__choices,
  .weather-stage__choices,
  .garden-object-row,
  .garden-memory__choices,
  .window-recall__choices {
    gap: 0.55rem;
  }

  .window-pane-row {
    flex-wrap: wrap;
  }

  .trail-fragment-card,
  .trail-arrival-card,
  .garden-memory,
  .garden-poem,
  .field-gather,
  .field-artifact,
  .window-stage,
  .weather-stage,
  .prayer-stage__arrival,
  .nursery-stage__arrival {
    padding: 0.85rem;
  }

  .chamber-enter-hint {
    bottom: auto;
    left: auto;
    margin-top: 0.2rem;
    position: relative;
    transform: none;
  }

  .chamber__line {
    font-size: 0.96rem;
    min-height: 0;
  }

  .chamber__prompt {
    font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  }

  .trail-arrival-card__body,
  .trail-fragment-card__quote,
  .garden-poem__body,
  .field-artifact__body,
  .window-recall__line {
    font-size: 0.96rem;
  }

  .chorus-stage__line {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }
}

@media (max-width: 640px) {
  .landing {
    gap: 1.25rem;
    max-width: 760px;
    min-height: auto;
    padding: 1.25rem 0.9rem 2rem;
    place-content: start;
  }

  .worlds {
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-copy {
    font-size: 0.98rem;
  }

  .stage-card__scene {
    border-radius: 2rem;
    height: min(86vw, 24rem);
    min-height: 240px;
  }

  .art-object svg {
    width: min(88vw, 23rem);
  }
}

/* Trail words and reveals share document flow, never screen coordinates. */
.trail-journey {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem) 1rem;
}
.trail-journey .trail-choice-grid,
.trail-journey .trail-fragment-card,
.trail-journey .trail-arrival-card {
  position: relative;
  inset: auto;
  transform: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
.trail-journey .trail-choice-grid:empty,
.trail-journey [hidden] { display: none; }
.trail-journey .trail-fragment-card {
  background: none;
  border: none;
  backdrop-filter: none;
  padding: 0.5rem 0;
}
.trail-journey .trail-fragment-card__quote {
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}
.trail-journey .trail-arrival-card {
  padding: clamp(1rem, 4vw, 2rem);
}
.trail-journey .trail-arrival-card__body {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.trail-journey .trail-choice { min-height: 44px; }
@media (prefers-reduced-motion: no-preference) {
  .trail-journey .trail-fragment-card,
  .trail-journey .trail-arrival-card {
    animation: trail-emerge 800ms ease both;
  }
}
@keyframes trail-emerge {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid children must be allowed to shrink to the available phone width. */
.chamber__shell,
.chamber__scene,
.trail-journey { min-width: 0; }
.chamber__shell { box-sizing: border-box; }
@media (max-width: 640px) {
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 1080px) {
  /* Desktop constellation positions are inline; neutralize them in the grid. */
  .world { left: auto !important; right: auto !important; top: auto !important; }
}
.chamber__scene .trail-journey .trail-choice-grid,
.chamber__scene .trail-journey .trail-fragment-card,
.chamber__scene .trail-journey .trail-arrival-card { inset: auto; }

/* Chamber arcs keep language in flow and scenery behind reachable controls. */
.chamber__scene.room-flow { height: auto; min-height: 28rem; overflow: visible; }
.pond-arc { color: #274d47; background: #dce6db; }
.pond-water { width: 100%; margin: 0 auto 1rem; }
.pond-water svg { display: block; width: 100%; }
.pond-rings { opacity: .08; transition: opacity 1.2s ease; }
.pond-water.is-disturbed .pond-rings { opacity: .65; }
[data-season="summer"] .pond-arc { background: #e7e8cb; }
[data-season="autumn"] .pond-arc { background: #e9dbc5; }
[data-season="winter"] .pond-arc { background: #d7e1e8; }
.pond-arc .room-poem { margin: 2rem 0; }
.garden-arc { color: #394b32; background: #e5e5c9; }
.garden-blooms { display: flex; justify-content: center; gap: .5rem; }
.garden-arc button.garden-bloom { border: 0; border-radius: 50% 50% 1rem 1rem; background: transparent; flex: 0 1 9rem; min-width: 0; padding: .25rem; }
.garden-bloom svg { display: block; width: 100%; max-height: 14rem; }
.garden-bloom[aria-pressed="true"] { background: #f5e6ba !important; }
.garden-threshold { font-style: italic; margin: 1.5rem 0 .5rem; }
.garden-growing { border-left: 1px solid #8d9b70; padding-left: 1rem; text-align: left; }
.weather-arc { color: #344d58; background: #dae4e5; }
.weather-sky { width: 100%; margin: 0 auto 1rem; }
.weather-sky svg { display: block; width: 100%; }
.weather-strokes { opacity: .12; transition: opacity 600ms ease; }
.weather-glint { opacity: .08; transition: opacity 600ms ease; }
[data-weather="downpour"] .weather-strokes { opacity: .7; }
[data-weather="mist"] .weather-horizon { opacity: .25; }
[data-weather="after-rain"] .weather-glint { opacity: .45; }
[data-weather="after-rain"] .weather-arc { background: #e6e4c9; }
[data-weather="hush"] .weather-strokes { opacity: 0; }
[data-weather-edge="sharp"] .weather-horizon { stroke-width: 4; }
.weather-working, .weather-forming { text-align: left; padding-left: 1rem; border-left: 1px solid #8ba6ae; }
.chamber:has(.room-flow) { align-items: start; }
.chamber:has(.room-flow) .chamber__shell { max-height: none; overflow: visible; }
body:has(.chamber.is-open .room-flow) .landing.is-muted { visibility: hidden; }
.room-arc { position: relative; z-index: 3; box-sizing: border-box; width: min(100%, 42rem); margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.8rem); overflow-wrap: anywhere; }
.room-arc h2 { font-weight: 400; text-align: center; }
.room-choices { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin: 1.4rem 0; }
.room-arc button { position: relative; cursor: pointer; min-height: 44px; padding: .7rem 1rem; border: 1px solid currentColor; border-radius: 2rem; color: inherit; background: rgba(255,255,255,.12); font: inherit; }
.room-arc button:focus-visible, .room-arc textarea:focus-visible { outline: 3px solid #a77d45; outline-offset: 4px; }
.room-credit, .room-source { font-size: .85rem; line-height: 1.6; text-align: center; }
.room-recall { display: grid; gap: 1rem; margin: 1.4rem 0; }
.room-recall textarea { box-sizing: border-box; min-width: 0; width: 100%; resize: vertical; border: 1px solid currentColor; border-radius: .6rem; padding: .8rem; color: inherit; background: rgba(255,255,255,.1); font: inherit; line-height: 1.6; }
.room-arc [hidden] { display: none !important; }
.window-arc { color: #eee2cb; text-shadow: 0 1px 2px #181b28; }
[data-room="window"] { background: #282d3b; }
.window-light { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(130deg, transparent 15%, #c1ae8040 15%, #c1ae8010 64%, transparent 64%); transition: opacity 1s ease; }
[data-window-phase="held"] .window-light { opacity: 1; background-color: #b68e3825; }
.window-poem { margin: 2rem 0; }
.window-line { font-size: clamp(1.1rem, 2.8vw, 1.4rem); line-height: 1.7; margin: 0; }
.window-stanza-break { height: 1.5rem; }
.window-faded { visibility: hidden; }
.window-arc .window-gap { display: inline-block; min-width: 0; min-height: 0; padding: 0; margin: 0; border: 0; background: transparent; color: #dfc68d; font: inherit; line-height: inherit; letter-spacing: inherit; cursor: pointer; vertical-align: baseline; border-radius: 0; }
.window-word-drift { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.1rem; margin: 1.6rem 0; }
.window-gap { position: relative; }
.window-gap-measure { visibility: hidden; }
.window-gap-mark { position: absolute; inset: 0; text-align: left; border-bottom: 1px solid #d7bd7b55; }
.window-gap.is-active .window-gap-mark { border-bottom-color: #ffe3a0; background: #9d854518; }
.window-word-return { animation: window-word-appear .45s ease-out; }
@keyframes window-word-appear { from { opacity: .15; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .window-word-return { animation: none; } }
.room-choices .room-icon-control, .artifact-actions .room-icon-control { width: 48px; height: 48px; min-width: 48px; padding: 10px; display: inline-grid; place-items: center; }
.room-icon-control:focus-visible { outline: 2px solid #ffe3a0; outline-offset: 3px; }
.room-icon-control { position: relative; }
.room-icon-control:hover::after, .room-icon-control:focus-visible::after {
  content: attr(aria-label); position: absolute; bottom: calc(100% + 8px); right: 0;
  width: max-content; max-width: min(220px, 65vw); padding: .45rem .65rem;
  background: #f3ead8; color: #292b35; border: 1px solid #d2c4ac;
  border-radius: 6px; font: 14px/1.4 Georgia, serif; text-transform: none;
  letter-spacing: normal; text-shadow: none; white-space: normal;
  pointer-events: none; z-index: 20; box-shadow: 0 3px 12px #0003;
}
.chamber__close.room-icon-control:hover::after, .chamber__close.room-icon-control:focus-visible::after { top: calc(100% + 8px); bottom: auto; }
.window-vanishing { position: absolute; inset: 0; display: grid; place-items: center; background: #303239; border-radius: inherit; pointer-events: none; animation: window-leave 2.4s ease forwards; }
@keyframes window-leave { 0%, 20% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .window-vanishing { animation: none; opacity: 0; } }
.window-word-drift button { font: inherit; font-size: 1.15rem; color: #eedfbb; background: #a58b4820; border: 1px solid #e2c78544; border-radius: 45% 55% 48% 52%; padding: .7rem 1rem; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; cursor: pointer; }
.window-gap:focus-visible, .window-word-drift button:focus-visible { outline: 2px solid #ffe3a0; outline-offset: 4px; }
.window-restored { animation: window-return 1.2s ease-out; }
@keyframes window-return { from { filter: brightness(1.5); } to { filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .window-restored { animation: none; } }
.window-trace { white-space: pre-line; opacity: .65; line-height: 1.7; }
.window-arc a { color: inherit; }
.window-arc #window-status { line-height: 1.7; }
.window-arc #window-status:empty { margin: 0; }
.window-arc #window-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 64px 64px; gap: 12px; width: min(100%, 400px); min-height: 140px; margin: 1.6rem auto; }
.window-arc #window-options button { min-width: 0; padding: .4rem .5rem; font-size: 1rem; overflow-wrap: anywhere; }
.window-arc #window-status, .window-arc #window-status:empty { min-height: 56px; margin: 0; line-height: 1.5; }
.window-arc #window-content > .room-choices { display: grid; grid-template-columns: repeat(5, 44px); justify-content: center; gap: 4px; }
.window-arc .room-choices .room-icon-control { width: 44px; height: 44px; min-width: 44px; padding: 8px; }
.window-arc .room-icon-control:disabled { opacity: .28; cursor: default; }
.treasury-bookplate { margin: 1.4rem 0 .5rem; }
.treasury-bookplate > summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; list-style: none; opacity: .65; }
.treasury-bookplate > summary::-webkit-details-marker { display: none; }
.treasury-bookplate > summary:hover, .treasury-bookplate > summary:focus-visible { opacity: 1; }
.treasury-bookplate > summary:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.treasury-bookplate__leaf { max-width: 27rem; box-sizing: border-box; margin: .8rem auto 0; padding: clamp(1.4rem, 5vw, 2.6rem); color: #493c29; background: radial-gradient(ellipse at 30% 10%, #fff9eb, #e9dcc0); border: 1px solid #aa957458; box-shadow: inset 0 0 0 7px #fff9eb55, 0 8px 24px #29211615; text-align: center; font-family: Georgia, serif; }
.treasury-bookplate__leaf h3 { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: normal; line-height: 1.4; margin: .5rem 0 1.3rem; }
.treasury-bookplate__leaf p { font-size: 1rem; line-height: 1.8; }
.treasury-bookplate__leaf .treasury-bookplate__for { font-style: italic; margin: 0; }
.treasury-bookplate__leaf .treasury-bookplate__afterword { font-style: italic; margin-top: 1.6rem; }
.study-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 30% 15%, #efbc6740, transparent 65%); }
.study-door { position: fixed; bottom: 1rem; left: 1rem; z-index: 8; width: 44px; height: 44px; padding: 10px; color: #715932; background: #fff9ec80; border: 1px solid #a77d4533; border-radius: 50%; cursor: pointer; }
body:has(.chamber.is-open) .study-door { display: none; }
.study-arc { width: min(100%, 70rem); }
.study-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin: 2rem 0; }
.study-arc .study-verse { display: block; width: 100%; border: 0; border-radius: 0; background: none; padding: .2rem .4rem; min-height: 36px; text-align: left; font: inherit; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.study-arc .study-verse[aria-pressed="true"] { background: #af85451c; box-shadow: inset 2px 0 #a77d45; }
.study-stanza-break { height: 1.3rem; }
.study-margin { min-width: 0; border-left: 1px solid #a77d4540; padding-left: clamp(1rem, 3vw, 2rem); line-height: 1.8; }
.study-selected-line { margin: 1.5rem 0; font-style: italic; color: #775c37; }
.study-note-label { display: block; margin: 1rem 0 .3rem; }
.study-margin textarea { width: 100%; box-sizing: border-box; padding: .7rem; font: inherit; color: inherit; background: #ffffff40; border: 1px solid #a77d4560; resize: vertical; }
.study-margin small { display: block; }
.study-margin a { color: inherit; text-underline-offset: .2em; }
.study-quiet .study-layout { grid-template-columns: minmax(0, 1fr); max-width: 38rem; margin-inline: auto; }
.study-quiet .study-margin { display: none; }
#trail-study { display: block; margin-top: 1rem; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 50%; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
@media (max-width: 700px) { .study-layout { grid-template-columns: minmax(0, 1fr); } .study-margin { border-left: 0; border-top: 1px solid #a77d4540; padding: 1rem 0 0; } }
.chorus-poem { max-width: 38rem; margin: 2rem auto; }
.chorus-line-row { display: flex; align-items: baseline; gap: .5rem; }
.chorus-line-row p { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.7; margin: .5rem 0; }
.chorus-line-row .room-icon-control { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 8px; opacity: .65; }
.chorus-compose { display: flex; align-items: end; gap: .7rem; margin: 1.5rem 0; }
.chorus-compose textarea { width: 100%; min-width: 0; padding: 1rem; box-sizing: border-box; color: inherit; border: 0; border-bottom: 1px solid currentColor; background: #ffffff16; font: inherit; line-height: 1.6; resize: vertical; }
.chorus-compose .room-icon-control { flex: 0 0 48px; width: 48px; height: 48px; padding: 10px; }
.chorus-resting .chorus-orbits { opacity: .35; }
.room-poem { white-space: pre-wrap; line-height: 1.9; font-size: clamp(1.1rem, 2.6vw, 1.4rem); }
.room-artifact { position: relative; }
.chorus-orbits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.chorus-orbits i { position: absolute; border: 2px solid #8a56784d; border-radius: 50%; width: 28rem; height: 28rem; left: 50%; top: 25%; transform: translateX(-50%); }
.chorus-orbits i:nth-child(2) { width: 40rem; height: 40rem; top: 15%; }
.chorus-orbits i:nth-child(3) { width: 52rem; height: 52rem; top: 5%; }
[data-room="chorus"] { background: #f1daca; }
[data-pulse="bolder"] .chorus-orbits i { border-width: 5px; }
[data-pulse="stranger"] .chorus-orbits i { border-radius: 38% 62% 56% 44%; }
.chorus-call { margin: 1rem 0; font-style: italic; font-size: 1.5rem; line-height: 1.7; }
.chorus-return { border-left: 2px solid #945b78; margin: 1.8rem 0; padding-left: 1rem; }
.chorus-human { white-space: pre-wrap; line-height: 1.6; }
.chorus-reply { font-style: italic; line-height: 1.7; }
.room-arc button[aria-pressed="true"] { background: #b57b6940; }
@media (prefers-reduced-motion: no-preference) {
  [data-pulse="bolder"] .chorus-orbits i { animation: chorus-breath 2s ease-in-out infinite alternate; }
}
@keyframes chorus-breath { to { opacity: .35; transform: translateX(-50%) scale(1.08); } }

/* A landscape behind the words, not a diagram explaining their machinery. */
.trail-landscape { position: absolute; inset: 0; pointer-events: none; opacity: .65; }
.trail-landscape svg { width: 100%; height: 100%; }
.trail-river, .trail-embers, .trail-trees { transition: opacity 1600ms ease; }
.trail-embers { opacity: 0; }
[data-trail-mood="ember"] .trail-embers { opacity: 1; }
[data-trail-mood="ember"] .trail-river { opacity: .1; }
[data-trail-mood="threshold"] .trail-river { opacity: .12; }
[data-trail-mood="river"] .trail-trees { opacity: .12; }
body.world-trail .chamber { align-items: start; }
body.world-trail .chamber__shell { max-height: none; overflow: visible; }
.trail-journey .trail-arrival-card { background: rgba(255, 250, 235, .86); }
.trail-journey .trail-arrival-card__title { font: inherit; font-size: 1.25rem; color: var(--ink); }
.trail-journey .trail-arrival-card__meta { margin: .5rem 0 1.5rem; }
.trail-journey .trail-arrival-card__body { text-align: left; width: fit-content; max-width: 100%; margin: 0 auto; }
.trail-source { margin-top: 1.75rem; text-align: left; font-size: .85rem; line-height: 1.6; }
.trail-source summary { cursor: pointer; color: #5c6045; }
.trail-source a { color: #365447; }
.trail-status { font-size: .9rem; font-style: italic; }
.trail-status:empty { display: none; }
.trail-kept { text-align: center; font-size: .85rem; }
.trail-kept:empty { display: none; }
.trail-kept-light { font: inherit; color: #45553c; background: rgba(255,250,224,.55); border: 0; border-radius: 50%; padding: .85rem; margin: .25rem; cursor: pointer; min-height: 44px; }
body.world-trail .landing.is-muted { visibility: hidden; }
/* Programmatic heading focus announces the arrival without a control-like box. */
#trail-arrival-title:focus { outline: none; }
.trail-moon, .trail-birds, .trail-petals, .trail-weather { opacity: 0; transition: opacity 1800ms ease; }
[data-trail-theme="night"] .trail-moon,
[data-trail-theme="wonder"] .trail-moon { opacity: .55; }
[data-trail-theme="song"] .trail-birds { opacity: .65; }
[data-trail-theme="love"] .trail-petals,
[data-trail-theme="green"] .trail-petals { opacity: .55; }
[data-trail-theme="water"] .trail-weather { opacity: .65; }
@media (prefers-reduced-motion: no-preference) {
  [data-trail-theme="love"] .trail-petals,
  [data-trail-theme="green"] .trail-petals { animation: trail-drift 18s ease-in-out infinite alternate; }
}
@keyframes trail-drift { from { transform: translateY(-6px); } to { transform: translateY(12px); } }
