/* ── Refine v8: motion, responsive, page flow ── */

:root {
  --header-h: clamp(120px, 18vh, 160px);
  --rail-w: clamp(72px, 10vw, 88px);
  --page-ease: cubic-bezier(0.22, 0.94, 0.28, 1);
  --page-dur: 0.88s;
}

html {
  font-size: clamp(14px, 1.45vw, 16px);
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

h1, h2, h3, .poem-text, .opening-copy h1, .room-copy h3, .topbar h2 {
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
}

/* ── Vault door (opening) ── */
.opening-screen {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 5vw, 48px);
}

.vault-door {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.door-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(90deg, rgba(244, 239, 231, 0.04), transparent 40%),
    linear-gradient(180deg, #1c1a17 0%, #12100e 48%, #0e0d0c 100%);
  border: 1px solid rgba(198, 161, 91, 0.12);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
  transition: transform 1.35s var(--page-ease);
}

.door-left {
  left: 0;
  transform-origin: left center;
  border-right-color: rgba(198, 161, 91, 0.28);
}

.door-right {
  right: 0;
  transform-origin: right center;
  border-left-color: rgba(198, 161, 91, 0.28);
}

.door-seal-mark {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.opening-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3.5vw, 2rem);
  min-height: min(78vh, 720px);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  animation: openingReveal 1.2s ease 0.2s both;
}

.opening-stage .archive-mark {
  letter-spacing: 0.32em;
  font-size: 0.72rem;
}

.opening-copy h1 {
  font-family: var(--font-display, "Cormorant Garamond", "Noto Serif SC", serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.12;
  margin-top: 0.2em;
}

.door-portal {
  position: relative;
  width: clamp(140px, 38vw, 200px);
  height: clamp(140px, 38vw, 200px);
  margin: 0.4em 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.door-portal:focus-visible {
  outline: 2px solid rgba(198, 161, 91, 0.65);
  outline-offset: 6px;
}

.door-portal-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.22), transparent 68%);
  animation: portalPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.door-portal-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(198, 161, 91, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(198, 161, 91, 0.15);
  pointer-events: none;
}

.door-portal-core {
  position: absolute;
  inset: 14%;
  display: grid;
  place-items: center;
  gap: 0.35em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.2), rgba(17, 16, 15, 0.92) 68%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.door-portal-hint {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--cream-muted);
}

.door-portal:hover .door-portal-core,
.door-portal:focus-visible .door-portal-core {
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(198, 161, 91, 0.28);
}

.door-cta {
  min-width: min(100%, 240px);
}

@keyframes portalPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.opening-sub {
  margin: 0.6em 0 0;
  color: var(--cream-muted);
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  letter-spacing: 0.12em;
}

.opening-line {
  margin-top: 1.4em;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--film);
}

.br-mobile {
  display: none;
}

body.is-door-opening .door-left {
  transform: perspective(1200px) rotateY(-78deg) translateX(-4%);
}

body.is-door-opening .door-right {
  transform: perspective(1200px) rotateY(78deg) translateX(4%);
}

body.is-door-opening .door-portal {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

body.is-door-opening .opening-stage {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes openingReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Key chamber ── */
.key-screen {
  padding: clamp(20px, 5vw, 40px);
}

.key-chamber {
  width: min(520px, 100%);
  animation: chamberArrive 0.9s var(--page-ease) both;
}

@keyframes chamberArrive {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.key-hint {
  color: var(--cream-muted);
  margin-top: 0.5em;
}

.key-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  display: inline-flex;
}

.key-icon svg {
  width: 100%;
  height: 100%;
}

.key-card strong {
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
}

.keyhole-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.keyhole-ring {
  position: absolute;
  left: 14px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(198, 161, 91, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.5s var(--page-ease), box-shadow 0.5s ease;
}

#pin {
  padding-left: 40px;
  letter-spacing: 0.35em;
  font-size: 1.1rem;
}

.unlock-form.is-unlocking .keyhole-ring {
  transform: rotate(360deg);
  box-shadow: 0 0 20px rgba(198, 161, 91, 0.5);
}

.unlock-form.is-unlocking .unlock-submit {
  border-color: var(--teal);
  color: var(--teal);
}

.unlock-form.is-shake {
  animation: keyShake 0.45s ease;
}

@keyframes keyShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.drawer-empty {
  margin: 0;
  padding: 12px;
  color: var(--film);
  font-size: 0.88rem;
  line-height: 1.5;
}

.drawer-icon svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.archive-workspace.is-arriving {
  animation: archiveFadeIn 0.9s ease both;
}

@keyframes archiveFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Inline icons (instant) ── */
.rail-icon,
.btn-icon,
.key-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rail-icon svg,
.btn-icon svg {
  width: 21px;
  height: 21px;
}

/* ── Vertical scroll archive ── */
.topbar-main {
  flex: 1;
  min-width: 0;
}

.chapter-nav[hidden] {
  display: none !important;
}

.archive-workspace .workspace-inner {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.archive-workspace .topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  flex-shrink: 0;
  margin-bottom: 0;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(17, 16, 15, 0.96) 72%, rgba(17, 16, 15, 0));
  backdrop-filter: blur(10px);
}

.archive-scroll.view-stage {
  flex: 1;
  min-height: 0;
  height: auto !important;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  perspective: none;
  border-radius: var(--radius);
  background: rgba(17, 16, 15, 0.28);
  box-shadow: inset 0 1px 0 rgba(244, 239, 231, 0.06);
}

.archive-scroll.view-stage::before {
  display: none;
}

.view-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: none;
  transition: none;
}

#archive-scroll .view.scroll-chapter {
  position: relative !important;
  inset: auto !important;
  flex: none;
  width: 100%;
  height: auto;
  min-height: auto;
  overflow: visible;
  opacity: 1 !important;
  pointer-events: auto;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  padding: clamp(16px, 2.5vw, 28px) clamp(10px, 2vw, 18px) clamp(40px, 7vh, 72px);
  border-right: none;
  border-bottom: 1px solid rgba(244, 239, 231, 0.06);
  scroll-margin-top: 12px;
}

#archive-scroll .view.scroll-chapter:last-child {
  border-bottom: none;
  padding-bottom: clamp(72px, 12vh, 120px);
}

#view-room.scroll-chapter {
  min-height: min(92vh, 860px);
}

.archive-workspace {
  overflow-x: hidden;
}

#view-node.node-overlay {
  position: fixed !important;
  inset: 0 !important;
  left: var(--rail-w);
  z-index: 40;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(16px, 3vw, 32px);
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  filter: none !important;
  background: rgba(17, 16, 15, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}

#view-node.node-overlay[hidden] {
  display: none !important;
  pointer-events: none !important;
}

#view-node.node-overlay {
  display: flex;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 32px);
}

#view-node .node-detail {
  width: min(920px, 100%);
  margin: 0 auto;
}

.node-sheet {
  position: relative;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.node-sheet-head {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(244, 239, 231, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(91, 141, 239, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(244, 239, 231, 0.06), rgba(17, 16, 15, 0.4)),
    rgba(24, 22, 19, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.node-sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.node-sheet-title {
  margin: 0.15em 0 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.12;
}

.node-sheet--locked .node-locked-copy {
  margin: 1rem 0 0;
  max-width: 28em;
  color: var(--cream-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.timeline-node-subtitle {
  margin: 0.2em 0 0;
  color: var(--cream-muted);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.timeline-narrative {
  margin: 0;
  color: var(--cream);
  white-space: pre-wrap;
  line-height: 1.75;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.timeline-page-copy {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 2px solid rgba(198, 161, 91, 0.55);
  color: var(--cream);
  white-space: pre-wrap;
  line-height: 1.85;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.05rem;
  font-style: italic;
  background: rgba(198, 161, 91, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.node-sheet-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 231, 0.1);
  border-radius: var(--radius);
  background: rgba(17, 16, 15, 0.55);
}

/* 记忆详情配图：用 <img> + contain，横竖图都不被裁成奇怪比例 */
.node-sheet-photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  max-height: min(72vh, 560px);
  background:
    linear-gradient(180deg, rgba(17, 16, 15, 0.2), rgba(17, 16, 15, 0.45)),
    radial-gradient(ellipse at center, rgba(244, 239, 231, 0.06), transparent 62%);
}

.node-sheet-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(72vh, 560px);
  height: auto;
  object-fit: contain;
  object-position: center;
}

.node-sheet-figure figcaption {
  padding: 12px 16px;
  color: var(--cream-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(244, 239, 231, 0.08);
}

.node-sheet-body {
  display: grid;
  gap: 14px;
}

.node-sheet-body .text-panel,
.node-sheet-body .special-panel,
.node-sheet-body .margin-panel {
  background: rgba(24, 22, 19, 0.82);
  color: var(--cream);
  border-color: rgba(244, 239, 231, 0.12);
}

.node-sheet-body .poem-text {
  color: var(--cream);
  line-height: 1.75;
}

.node-sheet-body .margin-note,
.node-sheet-body .panel-label {
  color: var(--cream-muted);
}

.node-sheet-body .special-grid p {
  color: var(--cream-muted);
  line-height: 1.6;
}

.studio-chapter {
  min-height: min(86vh, 780px);
}

.studio-panel {
  border: 1px solid rgba(244, 239, 231, 0.1);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  background: rgba(24, 22, 19, 0.55);
  box-shadow: inset 0 1px 0 rgba(244, 239, 231, 0.05);
}

.create-form--page label,
.folded-compose label {
  display: grid;
  gap: 6px;
}

.studio-form-actions {
  margin-top: 10px;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(18px, 3vw, 24px);
  align-items: start;
}

.studio-aside {
  display: grid;
  gap: 14px;
}

.studio-aside-block {
  border: 1px solid rgba(244, 239, 231, 0.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(24, 22, 19, 0.48);
}

/* ── Galaxy motion ── */
.constellation-map {
  min-height: clamp(640px, 78vh, 960px);
  padding-top: clamp(150px, 20vh, 200px);
}

.constellation-orbit {
  z-index: 2;
  animation: galaxyDrift 92s linear infinite;
}

.constellation-map .star-node {
  z-index: 5;
  pointer-events: auto;
}

.constellation-map .star-preview {
  pointer-events: none;
}

.constellation-map .galaxy-chrome {
  pointer-events: none;
}

.constellation-map .galaxy-chrome > * {
  pointer-events: auto;
}

.constellation-map.is-paused .constellation-orbit {
  animation-play-state: paused;
}

.star-node {
  animation: starFloat 4.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes galaxyDrift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes starFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(var(--node-scale, 1));
  }
  50% {
    transform: translate(-50%, calc(-50% - 6px)) scale(calc(var(--node-scale, 1) * 1.08));
  }
}

/* ── Drawer ── */
.drawer {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.drawer-head {
  padding: 20px 20px 12px;
  margin: 0;
  flex-shrink: 0;
}

.drawer-compose {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.drawer-compose textarea,
.drawer-compose input[type="date"],
.drawer-compose select,
.folded-compose input,
.folded-compose select {
  width: 100%;
}

.folded-shelf .drawer-compose {
  max-height: min(52vh, 520px);
  overflow-y: auto;
}

.rail-button.rail-action.is-active {
  border-color: rgba(198, 161, 91, 0.45);
  color: var(--gold);
}

.drawer-compose-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.drawer-private {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-muted);
  font-size: 0.86rem;
}

.drawer-private input {
  width: auto;
}

.drawer-section {
  padding: 14px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.drawer-section-title {
  margin: 0 0 10px;
  color: var(--film);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drawer-scheduled,
.drawer-list {
  display: grid;
  gap: 8px;
}

.drawer-scheduled-item {
  padding: 12px;
  border: 1px solid rgba(198, 161, 91, 0.22);
  border-radius: var(--radius);
  background: rgba(198, 161, 91, 0.06);
}

.drawer-scheduled-item strong,
.drawer-scheduled-item small {
  display: block;
}

.drawer-scheduled-item small {
  margin-top: 6px;
  color: var(--cream-muted);
  line-height: 1.4;
}

.drawer-scheduled-item.is-ready {
  border-color: rgba(101, 183, 170, 0.45);
  background: rgba(101, 183, 170, 0.1);
}

/* ── Workspace responsive ── */
.archive-workspace {
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
}

.workspace-inner {
  width: 100%;
  max-width: min(1280px, 100%);
  padding: clamp(14px, 3vw, 28px);
  min-width: 0;
}

.topbar {
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 2vw, 22px);
  padding-bottom: 14px;
}

.topbar h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.section-head h3 {
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
}

.time-room-layout {
  min-height: min(72vh, 680px);
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 52px);
}

/* ── Binary star (room atrium) ── */
.binary-star-device {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 400px);
  margin: 0;
  justify-self: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  animation: binaryFloat 10s ease-in-out infinite;
  overflow: hidden;
  isolation: isolate;
}

.binary-star-device::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(180, 170, 255, 0.12);
  box-shadow:
    inset 0 0 60px rgba(91, 141, 239, 0.08),
    inset 0 0 80px rgba(167, 139, 250, 0.06);
  pointer-events: none;
  z-index: 1;
}

.binary-star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.binary-star-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(160, 180, 255, 0.2) 0%,
    rgba(120, 90, 200, 0.08) 42%,
    transparent 70%
  );
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
  animation: binaryPulse 6s ease-in-out infinite;
}

.binary-star-label {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 12%;
  pointer-events: none;
}

.binary-star-label p,
.binary-star-label span {
  margin: 0;
  color: var(--cream-muted);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.binary-star-label strong {
  display: block;
  margin: 0.12em 0;
  color: var(--cream);
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: clamp(3.2rem, 11vw, 5.2rem);
  line-height: 0.95;
  text-shadow:
    0 0 40px rgba(91, 141, 239, 0.35),
    0 0 50px rgba(167, 139, 250, 0.28),
    0 4px 20px rgba(0, 0, 0, 0.65);
}

.binary-star-device:hover .binary-star-glow,
.binary-star-device:focus-visible .binary-star-glow {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(170, 190, 255, 0.28) 0%,
    rgba(140, 100, 220, 0.12) 45%,
    transparent 72%
  );
}

@keyframes binaryFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes binaryPulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.time-device.binary-star-device {
  border: 1px solid rgba(180, 170, 255, 0.14);
  background: radial-gradient(circle at 50% 45%, rgba(30, 28, 40, 0.9), rgba(17, 16, 15, 0.95) 72%);
  box-shadow:
    0 0 0 1px rgba(91, 141, 239, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 100px rgba(91, 141, 239, 0.06),
    inset 0 0 120px rgba(167, 139, 250, 0.05);
}

.time-device strong {
  font-size: clamp(3.5rem, 12vw, 5.5rem);
}

.room-copy h3 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
}

.node-cover {
  grid-template-columns: 1fr;
}

.node-title-panel h3 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

@media (max-width: 980px) {
  .br-mobile {
    display: inline;
  }

  .archive-workspace {
    grid-template-columns: 1fr;
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  #view-node.node-overlay {
    left: 0;
  }

  .studio-layout {
    grid-template-columns: 1fr;
  }

  .node-sheet-photo-frame {
    max-height: min(68vh, 480px);
  }

  .node-sheet-photo {
    max-height: min(68vh, 480px);
  }

  .time-room-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: clamp(24px, 4vw, 36px);
  }

  .binary-star-device {
    margin: 0 auto;
    width: min(100%, 380px);
  }

  .drawer {
    width: 100vw;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .pin-row {
    grid-template-columns: 1fr;
  }

  .galaxy-chrome {
    position: relative;
    inset: auto;
    width: 100%;
    margin-bottom: 8px;
  }

  .constellation-map {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .constellation-orbit {
    position: relative;
    inset: auto;
    min-height: 420px;
    margin-top: 8px;
  }

}

.key-card[data-person="Justin"].is-selected {
  border-color: rgba(91, 141, 239, 0.62);
  box-shadow: 0 0 28px rgba(91, 141, 239, 0.18);
}

.key-card[data-person="Iris"].is-selected {
  border-color: rgba(167, 139, 250, 0.62);
  box-shadow: 0 0 28px rgba(167, 139, 250, 0.18);
}

.key-card[data-person="Justin"] .key-icon {
  color: #5b8def;
}

.key-card[data-person="Iris"] .key-icon {
  color: #a78bfa;
}

@media (prefers-reduced-motion: reduce) {
  .door-panel,
  .door-portal-glow,
  .archive-scroll,
  .constellation-orbit,
  .star-node,
  .binary-star-device {
    transition: none !important;
    animation: none !important;
  }
}
