:root {
  --black: #060806;
  --surface: #0d120f;
  --surface-soft: #121a15;
  --white: #f1f5ee;
  --muted: #9aa69d;
  --line: rgba(214, 231, 218, 0.18);
  --cyan: #65f3dc;
  --acid: #c7ff5e;
  --coral: #ff745d;
  --yellow: #ffd166;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.05;
  background-image: url("/static/assets/noise.png");
  background-repeat: repeat;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(7, 8, 7, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  justify-self: start;
  gap: 12px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-family: Consolas, monospace;
  font-size: 12px;
}
.brand-mark {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2b96f;
  box-shadow: 0 0 14px rgba(242, 185, 111, 0.68);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  animation: pulse 2s infinite;
}

.icon-button {
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}
.sound-bars { display: flex; height: 14px; align-items: center; justify-content: center; gap: 3px; }
.sound-bars i { width: 2px; height: 5px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 12px; }
.sound-bars i:nth-child(3) { height: 8px; }
.icon-button.active { color: var(--acid); border-color: var(--acid); }
.icon-button.active i { animation: sound 0.8s ease-in-out infinite alternate; }
.icon-button.active i:nth-child(2) { animation-delay: -0.25s; }
.icon-button.active i:nth-child(3) { animation-delay: -0.5s; }

main, footer { position: relative; z-index: 2; }
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 82px 28px 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 185, 111, 0.08), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 7px),
    #080907;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 58px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,185,111,0.4), transparent);
  pointer-events: none;
}
.section-index {
  margin: 0 0 22px;
  color: var(--acid);
  font: 12px/1.4 Consolas, monospace;
}

.elevator-shell {
  position: relative;
  width: min(1180px, 100%);
  min-height: calc(100svh - 106px);
  display: grid;
  grid-template-columns: minmax(118px, 0.65fr) minmax(420px, 620px) minmax(150px, 0.82fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "display stage console"
    "meta stage console";
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 74px);
}

.elevator-display {
  grid-area: display;
  align-self: start;
  justify-self: end;
  width: 138px;
  margin-top: 9svh;
  padding: 18px 18px 14px;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  border: 1px solid rgba(242,185,111,0.24);
  background: #080a08;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.72), 0 18px 50px rgba(0,0,0,0.28);
  font-family: Consolas, monospace;
}
.display-arrow {
  grid-row: 1 / 3;
  align-self: center;
  color: #f2b96f;
  font-size: 22px;
  opacity: 0.34;
}
.display-label { color: #726b5e; font-size: 9px; }
.elevator-display strong {
  color: #f2b96f;
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(242,185,111,0.38);
}

.elevator-stage {
  grid-area: stage;
  position: relative;
  align-self: center;
  width: min(100%, 620px);
  height: min(76svh, 700px);
  min-height: 520px;
  overflow: hidden;
  border: 9px solid #1a1c19;
  border-top-width: 14px;
  background: #0b0d0b;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 34px 90px rgba(0,0,0,0.55),
    inset 0 0 50px rgba(0,0,0,0.78);
  isolation: isolate;
}
.elevator-stage::before {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), inset 0 0 50px rgba(0,0,0,0.5);
}

.elevator-destination {
  position: absolute;
  z-index: 1;
  inset: 0;
  padding: clamp(34px, 6vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(100deg, rgba(4,8,6,0.22), rgba(4,8,6,0.82)),
    url("/static/assets/deep-space.webp") center / cover;
  opacity: 0.64;
}
.elevator-destination::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242,185,111,0.22), transparent 18%, transparent 82%, rgba(101,243,220,0.14));
  pointer-events: none;
}
.arrival-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 78%, transparent);
}
.arrival-copy { position: relative; z-index: 2; max-width: 430px; transform: translateY(28px); opacity: 0; }
.arrival-kicker { margin: 0 0 25px; color: #f2b96f; font: 10px Consolas, monospace; }
.arrival-copy h1 { margin: 0; line-height: 1.03; }
.arrival-copy h1 span { display: block; font-size: clamp(52px, 6vw, 82px); }
.arrival-copy h1 strong { display: block; margin-top: 10px; color: #c8d5cb; font-size: clamp(25px, 3vw, 40px); font-weight: 500; }
.arrival-line { max-width: 360px; margin: 24px 0 30px; color: #aeb9b0; font-size: 14px; line-height: 1.8; }
.arrival-command {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 186px;
  height: 48px;
  padding: 0 7px 0 18px;
  border: 1px solid rgba(242,185,111,0.7);
  color: #f5eee3;
  background: rgba(7,9,7,0.62);
  text-decoration: none;
  font-size: 13px;
}
.arrival-command b { display: grid; place-items: center; width: 34px; height: 34px; color: #17120c; background: #f2b96f; font-size: 16px; }
.arrival-readout {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 14px;
  font: 10px/1 Consolas, monospace;
}
.arrival-readout span { color: #778079; }
.arrival-readout b { color: var(--cyan); text-align: right; }

.elevator-door {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: calc(50% + 1px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04), transparent 14%, rgba(255,255,255,0.025) 52%, transparent 72%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 5px),
    linear-gradient(115deg, #252925, #121512 52%, #20231f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.065), inset 0 0 50px rgba(0,0,0,0.32);
  transition: transform 1.08s cubic-bezier(.76,0,.24,1);
}
.elevator-door-left { left: 0; border-right: 1px solid #050605; }
.elevator-door-right { right: 0; border-left: 1px solid rgba(255,255,255,0.08); }
.elevator-door i { position: absolute; inset: 12% 10%; border: 1px solid rgba(255,255,255,0.05); box-shadow: inset 0 0 32px rgba(0,0,0,0.2); }
.door-serial { position: absolute; z-index: 2; bottom: 26px; color: rgba(228,234,229,0.28); font: 9px Consolas, monospace; }
.elevator-door-left .door-serial { right: 20px; }
.elevator-door-right .door-serial { left: 20px; }
.door-seam {
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: #030403;
  box-shadow: 0 0 0 rgba(242,185,111,0);
  transition: box-shadow 450ms ease, background 450ms ease, opacity 300ms ease 600ms;
}

.elevator-console {
  grid-area: console;
  justify-self: start;
  width: 164px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 5px),
    #121512;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.42), 0 24px 60px rgba(0,0,0,0.34);
  text-align: center;
}
.elevator-console > p { margin: 0 0 18px; color: #767c76; font: 9px Consolas, monospace; }
.floor-button {
  position: relative;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 1px solid #5b5e59;
  border-radius: 50%;
  color: #e9eee9;
  background: radial-gradient(circle at 38% 32%, #333733, #101310 62%);
  box-shadow: 0 0 0 8px #090b09, 0 0 0 9px rgba(255,255,255,0.1), inset 0 0 18px rgba(0,0,0,0.72);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.floor-button::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); }
.floor-button span { position: relative; z-index: 2; font: 24px Consolas, monospace; }
.floor-button:hover, .floor-button:focus-visible {
  border-color: #f2b96f;
  color: #f2b96f;
  box-shadow: 0 0 0 8px #090b09, 0 0 0 9px rgba(242,185,111,0.35), 0 0 28px rgba(242,185,111,0.17), inset 0 0 18px rgba(0,0,0,0.72);
}
.floor-button:active { transform: scale(0.94); }
.floor-button:disabled { cursor: default; }
.elevator-status { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 8px; color: #8d948e; font-size: 11px; }
.elevator-status i { width: 6px; height: 6px; border-radius: 50%; background: #5e645f; }
.elevator-meta {
  grid-area: meta;
  align-self: end;
  justify-self: end;
  width: 138px;
  padding-bottom: 7svh;
  display: grid;
  gap: 7px;
  color: #606661;
  font: 9px Consolas, monospace;
}

.elevator-shell.is-moving .elevator-stage { animation: elevatorRide 1.55s cubic-bezier(.6,.02,.38,1); }
.elevator-shell.is-moving .display-arrow { opacity: 1; animation: elevatorArrow 480ms ease-in-out infinite alternate; }
.elevator-shell.is-moving .floor-button {
  color: #f2b96f;
  border-color: #f2b96f;
  box-shadow: 0 0 0 8px #090b09, 0 0 0 9px rgba(242,185,111,0.48), 0 0 34px rgba(242,185,111,0.26), inset 0 0 18px rgba(0,0,0,0.72);
}
.elevator-shell.is-moving .elevator-status i { background: #f2b96f; box-shadow: 0 0 10px rgba(242,185,111,0.8); animation: pulse 500ms infinite alternate; }
.elevator-shell.is-moving .door-seam { background: #f2b96f; box-shadow: 0 0 20px rgba(242,185,111,0.72); }
.elevator-shell.is-arrived .elevator-display strong, .elevator-shell.is-arrived .display-arrow { color: var(--acid); }
.elevator-shell.is-arrived .elevator-status i { background: var(--acid); box-shadow: 0 0 12px rgba(199,255,94,0.7); }
.elevator-shell.is-arrived .floor-button { color: var(--acid); border-color: var(--acid); }
.elevator-shell.is-arrived .elevator-door-left { transform: translateX(-101%); }
.elevator-shell.is-arrived .elevator-door-right { transform: translateX(101%); }
.elevator-shell.is-arrived .door-seam { opacity: 0; }
.elevator-shell.is-open .elevator-destination { opacity: 1; }
.elevator-shell.is-open .arrival-copy { opacity: 1; transform: translateY(0); transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.75,.2,1); }

.wish-zone, .memory-section, .ritual-section {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
  padding: 120px 0;
}
.wish-zone { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 9vw; align-items: start; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: 0;
}
.section-heading > p:last-child { max-width: 520px; margin: 26px 0 0; color: var(--muted); line-height: 1.8; }

.wish-form { border-top: 1px solid var(--line); }
.input-group { position: relative; padding: 28px 0 18px; border-bottom: 1px solid var(--line); }
.input-group label { display: block; margin-bottom: 12px; color: var(--cyan); font: 11px Consolas, monospace; }
.input-group input, .input-group textarea {
  width: 100%;
  padding: 0 80px 0 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font-size: 20px;
  resize: vertical;
}
.input-group input:focus, .input-group textarea:focus { color: var(--acid); }
.field-count { position: absolute; right: 0; bottom: 20px; color: #6f7a72; font: 10px Consolas, monospace; }
.bot-field { position: absolute; left: -10000px; width: 1px; height: 1px; }
.launch-button {
  width: 100%;
  height: 64px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--black);
  background: var(--cyan);
  cursor: pointer;
  font-weight: 800;
}
.launch-button:hover { background: var(--acid); }
.launch-button:disabled { opacity: 0.5; cursor: wait; }
.launch-icon { font-size: 20px; }
.form-status { min-height: 24px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.constellation-section { position: relative; min-height: 780px; padding: 110px max(28px, calc((100vw - 1200px) / 2)); border-block: 1px solid var(--line); background: rgba(8,12,9,0.82); overflow: hidden; }
.inline-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.inline-heading h2 { font-size: clamp(34px, 4vw, 58px); }
.inline-heading h2 span { color: var(--acid); }
.wish-sky { position: relative; width: 100%; height: 480px; margin-top: 54px; border-top: 1px solid rgba(255,255,255,0.08); }
.wish-star {
  position: absolute;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.wish-star::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--star-color, var(--cyan)); box-shadow: 0 0 8px 2px var(--star-color), 0 0 28px var(--star-color); transition: 180ms ease; }
.wish-star::after { content: attr(data-index); position: absolute; left: 24px; top: 22px; color: rgba(255,255,255,0.42); font: 9px Consolas, monospace; }
.wish-star:hover::before, .wish-star:focus-visible::before { transform: scale(2.4); }
.empty-signal { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #68726b; }
.empty-signal span { font: 12px Consolas, monospace; letter-spacing: 0; }
.empty-signal p { font-size: 13px; }
.wish-detail { position: absolute; z-index: 4; right: max(28px, calc((100vw - 1200px) / 2)); bottom: 74px; width: min(480px, calc(100% - 56px)); padding: 30px; border-left: 3px solid var(--acid); background: #eaf0e9; color: #101611; box-shadow: 0 28px 80px rgba(0,0,0,0.4); }
.wish-detail p { margin: 0; color: #647067; font: 10px Consolas, monospace; }
.wish-detail blockquote { margin: 18px 0; font-size: 20px; line-height: 1.65; }
.wish-detail strong { color: #233227; }
.close-detail, .dialog-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; color: inherit; background: transparent; font-size: 24px; cursor: pointer; }

.memory-section { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 7vw; }
.memory-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  gap: 12px;
  align-content: start;
}
.memory-node {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(13,18,15,0.7);
  text-align: left;
  overflow: hidden;
  cursor: default;
}
.memory-node.landscape { grid-column: span 2; }
.memory-node.ready { cursor: pointer; color: var(--white); border-color: rgba(101,243,220,0.4); }
.memory-node.ready:hover { border-color: var(--acid); background: rgba(18,26,21,0.96); }
.memory-node img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  background: #050805;
  transition: opacity 260ms ease;
}
.memory-node.ready:hover img { opacity: 1; }
.memory-node::after { content: none; }
.memory-node b, .memory-node span { position: relative; z-index: 2; display: block; }
.memory-node b { padding: 11px 12px 5px; font: 11px Consolas, monospace; color: var(--acid); }
.memory-node span { padding: 0 12px 12px; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }

.ritual-section { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; border-top: 1px solid var(--line); }
.ritual-core { position: relative; min-height: 440px; display: grid; place-items: center; }
.ritual-halo { position: absolute; width: min(440px, 80vw); aspect-ratio: 1; border: 1px solid rgba(199,255,94,0.26); border-radius: 50%; box-shadow: inset 0 0 80px rgba(101,243,220,0.08); animation: rotate 18s linear infinite; }
.ritual-halo::before, .ritual-halo::after { content: ""; position: absolute; border-radius: 50%; }
.ritual-halo::before { inset: 34px; border: 1px dashed rgba(255,209,102,0.25); }
.ritual-halo::after { width: 10px; height: 10px; background: var(--coral); top: 38px; left: 72px; box-shadow: 0 0 20px var(--coral); }
.wish-core { position: relative; z-index: 2; width: 180px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--acid); color: var(--white); background: #0b100c; cursor: pointer; box-shadow: 0 0 70px rgba(199,255,94,0.12); }
.wish-core span { display: block; color: var(--acid); font: 700 62px/1 Arial, sans-serif; }
.wish-core small { display: block; margin-top: 10px; color: var(--muted); }
.wish-core:hover { background: var(--acid); color: var(--black); }
.wish-core:hover span, .wish-core:hover small { color: var(--black); }
.ritual-core.activated .ritual-halo { animation: ritualBurst 1.2s forwards; }
.ritual-core.activated .wish-core { background: var(--acid); color: var(--black); box-shadow: 0 0 120px rgba(199,255,94,0.8); }
.ritual-core.activated .wish-core span, .ritual-core.activated .wish-core small { color: var(--black); }

footer { min-height: 180px; padding: 42px max(28px, calc((100vw - 1200px) / 2)); display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--line); color: var(--muted); font: 11px Consolas, monospace; }
footer p { color: var(--white); font-family: "Microsoft YaHei", sans-serif; font-size: 14px; }

.memory-dialog { width: min(980px, calc(100% - 32px)); max-height: 88svh; padding: 0; border: 1px solid var(--line); border-radius: 0; color: var(--white); background: #0c110d; overflow: auto; }
.memory-dialog::backdrop { background: rgba(2,4,2,0.88); backdrop-filter: blur(8px); }
.memory-dialog[open] { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); }
.memory-dialog img {
  width: 100%;
  height: min(88svh, 780px);
  min-height: 0;
  object-fit: contain;
  align-self: center;
  background: #050805;
}
.dialog-copy { padding: 56px 38px; align-self: center; }
.dialog-copy > p:first-child { color: var(--acid); font: 11px Consolas, monospace; }
.dialog-copy h3 { margin: 22px 0; font-size: 32px; line-height: 1.25; }
.dialog-copy > p:last-child { color: #b7c1b9; line-height: 1.9; white-space: pre-wrap; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 140px); max-width: calc(100% - 40px); padding: 13px 20px; color: var(--black); background: var(--acid); font-size: 13px; transition: transform 260ms ease; }
.toast.show { transform: translate(-50%, 0); }

@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes sound { to { height: 14px; } }
@keyframes scan { from { transform: translateX(-36px); } to { transform: translateX(0); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes ritualBurst { 50% { transform: scale(1.35); opacity: 1; } to { transform: scale(2); opacity: 0; } }
@keyframes elevatorArrow { to { transform: translateY(-4px); text-shadow: 0 0 12px rgba(242,185,111,0.65); } }
@keyframes elevatorRide {
  0%, 100% { transform: translateY(0); filter: brightness(1); }
  10% { transform: translateY(3px); }
  18% { transform: translateY(-2px); filter: brightness(0.86); }
  42% { transform: translateY(1px); }
  64% { transform: translateY(-3px); filter: brightness(1.08); }
  82% { transform: translateY(2px); }
}

@media (max-width: 840px) {
  .topbar { height: 56px; padding: 0 18px; grid-template-columns: 1fr auto; }
  .live-status { display: none; }
  .hero { min-height: 100svh; padding: 72px 18px 16px; }
  .hero::after { inset: 56px 0 auto; }
  .elevator-shell {
    min-height: calc(100svh - 88px);
    grid-template-columns: 1fr auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "display console"
      "stage stage"
      "meta meta";
    gap: 14px 20px;
  }
  .elevator-display { align-self: center; justify-self: start; width: 122px; margin: 0; padding: 13px 14px 11px; }
  .display-arrow { font-size: 19px; }
  .elevator-display strong { font-size: 31px; }
  .elevator-stage { align-self: center; justify-self: center; width: auto; height: min(64svh, 580px); min-height: 390px; max-width: 100%; aspect-ratio: 0.74; border-width: 7px; border-top-width: 10px; }
  .elevator-console { align-self: center; justify-self: end; width: auto; min-width: 116px; padding: 11px 13px 10px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 4px 15px; align-items: center; }
  .elevator-console > p { grid-column: 1; margin: 0; }
  .floor-button { grid-column: 2; grid-row: 1 / 3; width: 52px; height: 52px; box-shadow: 0 0 0 5px #090b09, 0 0 0 6px rgba(255,255,255,0.1), inset 0 0 14px rgba(0,0,0,0.72); }
  .floor-button span { font-size: 17px; }
  .floor-button:hover, .floor-button:focus-visible, .elevator-shell.is-moving .floor-button { box-shadow: 0 0 0 5px #090b09, 0 0 0 6px rgba(242,185,111,0.38), 0 0 22px rgba(242,185,111,0.2), inset 0 0 14px rgba(0,0,0,0.72); }
  .elevator-status { grid-column: 1; margin: 0; justify-content: flex-start; font-size: 10px; }
  .elevator-meta { align-self: center; justify-self: stretch; width: auto; padding: 0 4px; display: flex; justify-content: space-between; }
  .elevator-destination { padding: 34px 28px; }
  .arrival-copy h1 span { font-size: clamp(46px, 14vw, 66px); }
  .arrival-copy h1 strong { font-size: clamp(23px, 7vw, 31px); }
  .arrival-line { font-size: 13px; }
  .wish-zone, .memory-section, .ritual-section { width: calc(100% - 36px); padding: 88px 0; grid-template-columns: 1fr; gap: 58px; }
  .inline-heading { display: block; }
  .constellation-section { min-height: 760px; padding: 88px 18px; }
  .wish-sky { height: 430px; margin-top: 40px; }
  .wish-detail { right: 18px; bottom: 54px; width: calc(100% - 36px); }
  .memory-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ritual-section { display: flex; flex-direction: column-reverse; overflow-x: clip; }
  .ritual-core { width: 100%; min-height: 380px; }
  footer { min-height: 150px; padding: 36px 18px; display: block; }
  footer span { display: block; margin-top: 20px; }
  .memory-dialog[open] { grid-template-columns: 1fr; }
  .memory-dialog img { height: min(52svh, 520px); min-height: 280px; }
  .dialog-copy { padding: 34px 24px 42px; }
}

@media (max-width: 430px) {
  .brand > span:last-child { font-size: 10px; }
  .elevator-stage { height: min(62svh, 520px); min-height: 380px; }
  .elevator-console { min-width: 112px; }
  .arrival-readout { right: 16px; bottom: 14px; }
  .arrival-command { width: 174px; }
  .memory-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading h2 { font-size: 38px; }
  .ritual-core { min-height: 320px; }
  .ritual-halo { width: 300px; }
  .wish-core { width: 144px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
