:root {
  color-scheme: dark;
  --ink-950: #061321;
  --ink-900: #091b2d;
  --ink-850: #0d2438;
  --ink-800: #122d43;
  --ink-700: #20445a;
  --ivory: #f8f0df;
  --paper: #f1e5cd;
  --paper-deep: #e4d2b1;
  --gold: #e7ba67;
  --gold-soft: #f3d79d;
  --coral: #c8775e;
  --sage: #708b74;
  --mist: #9bb6c8;
  --text: #fff8e9;
  --muted: #b7c4c9;
  --paper-text: #26323a;
  --line: rgba(231, 186, 103, 0.24);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --paper-shadow: 0 16px 38px rgba(2, 12, 20, 0.28);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink-950);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 68% 9%, rgba(231, 186, 103, 0.11), transparent 28rem),
    linear-gradient(145deg, #071724 0%, #0b2133 47%, #071622 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
select {
  font: inherit;
}

button,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(244, 206, 133, 0.85);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.ambient__sun {
  position: absolute;
  top: 7vh;
  left: 56%;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 221, 154, 0.82) 0 8%, rgba(231, 155, 89, 0.25) 26%, transparent 68%);
  filter: blur(0.5px);
}

.ambient__mountain {
  position: absolute;
  right: -8vw;
  bottom: 0;
  left: -8vw;
  height: 48vh;
  clip-path: polygon(0 73%, 9% 48%, 18% 67%, 28% 34%, 39% 67%, 52% 25%, 64% 63%, 74% 42%, 86% 67%, 100% 37%, 100% 100%, 0 100%);
}

.ambient__mountain--far {
  bottom: 8vh;
  opacity: 0.33;
  background: #28506a;
  filter: blur(1px);
}

.ambient__mountain--near {
  background: linear-gradient(120deg, #0d2b3e, #102d33 52%, #091c2a);
  opacity: 0.68;
}

.ambient__path {
  position: absolute;
  right: 19%;
  bottom: -8rem;
  width: 8rem;
  height: 66vh;
  border-radius: 50%;
  border-left: 4px solid rgba(242, 202, 126, 0.38);
  transform: rotate(12deg);
  filter: drop-shadow(0 0 10px rgba(239, 189, 94, 0.36));
}

.ambient__stars {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image:
    radial-gradient(circle at 9% 17%, #f4ce85 0 1px, transparent 1.5px),
    radial-gradient(circle at 29% 7%, #f4ce85 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 21%, #f4ce85 0 1px, transparent 1.5px),
    radial-gradient(circle at 85% 14%, #fff2c9 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 42%, #f4ce85 0 1px, transparent 1.5px);
}

.app-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.brand__title {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__subtitle {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
}

.model-control {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px 5px 14px;
  border: 1px solid rgba(231, 186, 103, 0.25);
  border-radius: 999px;
  background: rgba(6, 19, 33, 0.5);
  backdrop-filter: blur(12px);
}

.model-control label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.model-control select {
  max-width: 168px;
  padding: 7px 28px 7px 8px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.78rem;
  cursor: pointer;
}

.model-control option {
  color: #fff;
  background: var(--ink-900);
}

.connection-dot {
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: #68747c;
  box-shadow: 0 0 0 4px rgba(104, 116, 124, 0.12);
}

.connection-dot.is-live {
  background: #8dc490;
  box-shadow: 0 0 0 4px rgba(141, 196, 144, 0.14), 0 0 12px rgba(141, 196, 144, 0.48);
}

.connection-dot.is-demo {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(231, 186, 103, 0.13);
}

.journey-nav {
  padding: 24px 0 16px;
}

.journey-nav ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.journey-nav li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #728693;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.journey-nav li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18%;
  width: 36%;
  height: 1px;
  background: rgba(231, 186, 103, 0.18);
}

.journey-nav li span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 166, 177, 0.38);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.7rem;
}

.journey-nav li.is-current,
.journey-nav li.is-done {
  color: var(--gold-soft);
}

.journey-nav li.is-current span {
  color: var(--ink-950);
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 20px rgba(231, 186, 103, 0.28);
}

.journey-nav li.is-done span {
  border-color: var(--gold);
}

#app {
  position: relative;
  flex: 1;
  padding: 22px 0 44px;
}

.stage {
  animation: stage-in 520ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  min-height: 620px;
}

.entry-copy h1 {
  margin: 40px 0 20px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(2.45rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.stage-intro {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.companion {
  display: flex;
  align-items: center;
  gap: 13px;
}

.companion--entry {
  max-width: 520px;
}

.companion__orb {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 204, 133, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, #f6d796 0 24%, #d99d51 26%, #7a512e 28%, #1b3444 62%, transparent 65%);
  box-shadow: 0 0 28px rgba(231, 186, 103, 0.26);
}

.companion__orb::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(231, 186, 103, 0.27);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}

.companion__face {
  position: relative;
  width: 20px;
  height: 18px;
  border-radius: 48% 48% 45% 45%;
  background: #f6dfaa;
}

.companion__face::before,
.companion__face::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #6d4a31;
}

.companion__face::before {
  left: 5px;
}

.companion__face::after {
  right: 5px;
}

.companion strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.companion p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.film-note {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(236, 207, 155, 0.75);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(137, 101, 58, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.7), transparent 40%),
    var(--ivory);
  background-size: 5px 100%, auto, auto;
  box-shadow: var(--paper-shadow), inset 0 0 30px rgba(143, 103, 51, 0.07);
}

.film-note textarea {
  width: 100%;
  min-height: 178px;
  resize: vertical;
  padding: 29px 34px 16px;
  border: 0;
  outline: 0;
  color: var(--paper-text);
  background: transparent;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.75;
}

.film-note textarea::placeholder {
  color: #8c8274;
}

.film-note__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px 18px;
  color: #8b806f;
  font-size: 0.72rem;
}

.entry-actions {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 12px;
  margin-top: 16px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid rgba(231, 186, 103, 0.35);
  border-radius: 999px;
  background: rgba(13, 36, 56, 0.72);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(244, 206, 133, 0.68);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.button svg,
.text-button svg,
.dialog-close svg,
.screening-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  color: #122638;
  border-color: #f2ce88;
  background: linear-gradient(135deg, #f1d79d, #dcaa5a);
  box-shadow: 0 12px 28px rgba(196, 133, 54, 0.18);
}

.button--voice {
  color: var(--gold-soft);
  background: rgba(8, 25, 40, 0.74);
}

.button--voice.is-listening {
  border-color: var(--coral);
  background: rgba(147, 64, 52, 0.16);
  box-shadow: 0 0 0 5px rgba(200, 119, 94, 0.1);
}

.button--voice.is-listening .voice-wave b {
  animation-play-state: running;
}

.button--quiet {
  min-height: 44px;
  border-style: dashed;
  color: var(--muted);
  background: rgba(8, 25, 40, 0.35);
}

.button--wide {
  width: 100%;
  margin-top: 18px;
}

.voice-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.voice-wave b {
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  animation: wave 650ms ease-in-out infinite alternate paused;
}

.voice-wave b:nth-child(2),
.voice-wave b:nth-child(4) {
  animation-delay: -300ms;
}

.voice-wave b:nth-child(3) {
  animation-delay: -480ms;
}

.voice-status {
  min-height: 20px;
  margin: 8px 4px 0;
  color: var(--gold);
  font-size: 0.76rem;
}

.starters {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid rgba(231, 186, 103, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(155deg, rgba(21, 55, 77, 0.82), rgba(7, 24, 38, 0.88)),
    rgba(7, 24, 38, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.starters::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(231, 186, 103, 0.08);
  border-radius: calc(var(--radius-xl) - 10px);
  pointer-events: none;
}

.starters__head {
  position: relative;
  margin-bottom: 21px;
}

.starters__head span,
.section-label,
.scene-card__body > span {
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.starters h2 {
  margin: 8px 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.starter-list {
  position: relative;
  display: grid;
  gap: 9px;
}

.starter {
  position: relative;
  min-height: 48px;
  padding: 12px 38px 12px 16px;
  border: 1px solid rgba(231, 186, 103, 0.14);
  border-radius: var(--radius-sm);
  color: #e5e8e3;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  font-size: 0.83rem;
  line-height: 1.45;
  cursor: pointer;
  transition: 180ms ease;
}

.starter::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--gold);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.starter:hover {
  border-color: rgba(231, 186, 103, 0.48);
  background: rgba(231, 186, 103, 0.08);
}

.starter:hover::after {
  transform: translate(3px, -50%);
}

.starter--open {
  border-style: dashed;
  color: var(--gold-soft);
}

.starters > p {
  position: relative;
  margin: 20px 2px 0;
  color: #8396a0;
  font-size: 0.72rem;
  line-height: 1.6;
}

.stage-heading,
.future-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 940px;
  margin: 8px auto 28px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  border: 0;
  color: var(--gold);
  background: none;
  font-size: 0.78rem;
  cursor: pointer;
}

.text-button:hover {
  color: var(--gold-soft);
}

.listen-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}

.source-card,
.clue-panel,
.question-panel {
  border: 1px solid rgba(231, 186, 103, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.source-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(109, 80, 45, 0.08) 18px 19px, transparent 19px),
    var(--ivory);
  color: var(--paper-text);
}

.source-card__label {
  color: #8a6841;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.source-card p {
  flex: 1;
  margin: 28px 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.8;
}

.source-card .text-button {
  align-self: flex-start;
  color: #756147;
}

.clue-panel {
  padding: 28px;
  background: rgba(8, 27, 43, 0.82);
  backdrop-filter: blur(16px);
}

.clue-panel h2,
.question-panel h2 {
  margin: 9px 0 22px;
  font-family: var(--serif);
  font-weight: 600;
}

.clue-panel h2 {
  color: var(--gold-soft);
  font-size: 1.75rem;
}

.clue-list {
  display: grid;
  gap: 11px;
  margin-bottom: 15px;
}

.clue {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 10px 9px 13px;
  border: 1px solid rgba(123, 151, 158, 0.18);
  border-left: 3px solid var(--clue-color, var(--sage));
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.052);
  transition: 180ms ease;
}

.clue:focus-within {
  border-color: rgba(231, 186, 103, 0.5);
  background: rgba(255, 255, 255, 0.075);
}

.clue__number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-text);
  background: var(--clue-color, var(--sage));
  font-size: 0.7rem;
  font-weight: 800;
}

.clue input {
  width: 100%;
  padding: 8px 4px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--serif);
  font-size: 1rem;
}

.clue__remove {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #8295a0;
  background: transparent;
  cursor: pointer;
}

.clue__remove:hover {
  color: #f0c6b7;
  background: rgba(200, 119, 94, 0.12);
}

.clue__remove svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.question-panel {
  max-width: 940px;
  margin: 24px auto 0;
  padding: clamp(25px, 5vw, 42px);
  color: var(--paper-text);
  background: var(--paper);
  box-shadow: var(--paper-shadow);
}

.question-panel .section-label {
  color: #9b6f36;
}

.question-panel h2 {
  max-width: 760px;
  color: #253744;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.52;
  text-wrap: balance;
}

.support-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.support {
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(76, 92, 100, 0.18);
  border-radius: var(--radius-sm);
  color: #3f4b50;
  background: rgba(255, 255, 255, 0.38);
  text-align: left;
  font-family: var(--serif);
  line-height: 1.5;
  cursor: pointer;
  transition: 180ms ease;
}

.support:hover {
  border-color: rgba(155, 111, 54, 0.48);
  background: rgba(255, 255, 255, 0.7);
}

.support.is-selected {
  color: #fff9ea;
  border-color: var(--ink-800);
  background: var(--ink-800);
  box-shadow: 0 9px 23px rgba(15, 37, 54, 0.18);
}

.open-response {
  display: block;
  margin-top: 16px;
}

.open-response > span {
  display: block;
  margin-bottom: 7px;
  color: #7e715e;
  font-size: 0.75rem;
}

.open-response textarea,
.refine-panel textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(77, 89, 91, 0.2);
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--paper-text);
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--serif);
  line-height: 1.65;
}

.open-response textarea {
  padding: 14px 16px;
}

.open-response textarea:focus,
.refine-panel textarea:focus {
  border-color: #a97b3f;
  box-shadow: 0 0 0 3px rgba(169, 123, 63, 0.12);
}

.future-intro {
  max-width: 900px;
}

.screening-choice {
  max-width: 760px;
  margin: 14px auto 28px;
  text-align: center;
}

.screening-choice > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.screening-choice h1 {
  margin: 9px 0 10px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.screening-choice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.screening-room {
  display: grid;
  grid-template-columns: 48px minmax(0, 760px) 48px;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.screening-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 186, 103, 0.3);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(6, 19, 33, 0.62);
  cursor: pointer;
  transition: 180ms ease;
}

.screening-arrow:hover {
  transform: scale(1.05);
  border-color: var(--gold);
}

.scene-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(250px, 0.88fr) minmax(290px, 1.12fr);
  min-height: 500px;
  border: 1px solid rgba(231, 186, 103, 0.45);
  border-radius: var(--radius-xl);
  color: var(--paper-text);
  background: var(--ivory);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42), 0 0 55px rgba(231, 186, 103, 0.08);
}

.scene-card.is-changing {
  animation: scene-change 380ms ease both;
}

.scene-card__image-wrap {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #cdbb98;
}

.scene-card__image-wrap::before,
.scene-card__image-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 17px;
  opacity: 0.88;
  background:
    radial-gradient(circle, transparent 0 3px, #0a1e2e 3.5px 5px, transparent 5.5px) center 8px / 16px 26px repeat-y,
    #10283a;
}

.scene-card__image-wrap::before {
  left: 0;
}

.scene-card__image-wrap::after {
  right: 0;
}

.scene-card__image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
  transition: transform 7s ease;
}

.scene-card:hover img {
  transform: scale(1.035);
}

.scene-card__counter {
  position: absolute;
  z-index: 3;
  top: 19px;
  right: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 246, 223, 0.33);
  border-radius: 999px;
  color: #fff8e9;
  background: rgba(7, 24, 38, 0.55);
  font-size: 0.69rem;
  backdrop-filter: blur(8px);
}

.scene-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 58px);
}

.scene-card__body > span {
  color: #9e7134;
}

.scene-card__body h1 {
  margin: 16px 0 19px;
  color: #243746;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.scene-card__body > p {
  margin: 0;
  color: #5f6869;
  font-size: 0.96rem;
  line-height: 1.85;
}

.scene-fit {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(53, 75, 84, 0.12);
  color: #826740;
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.7;
}

.scene-dots {
  min-height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px auto 5px;
}

.scene-dot {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(231, 186, 103, 0.24);
  border-radius: 50%;
  color: #9aabb4;
  background: rgba(8, 27, 43, 0.72);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
  transition: 180ms ease;
}

.scene-dot.is-current {
  color: #0a1d2c;
  border-color: var(--gold);
  background: var(--gold);
  transform: translateY(-2px);
}

.future-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.future-actions .button {
  min-width: 150px;
}

.refine-panel {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 24px;
  border: 1px solid rgba(231, 186, 103, 0.3);
  border-radius: var(--radius-lg);
  color: var(--paper-text);
  background: var(--paper);
  box-shadow: var(--paper-shadow);
  animation: stage-in 280ms ease both;
}

.refine-panel label {
  display: block;
  margin-bottom: 12px;
  color: #4c575c;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.refine-panel textarea {
  padding: 14px;
}

.refine-panel > div {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.refine-panel .text-button {
  color: #7c6547;
}

.takeaway {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 32px;
  border: 1px solid rgba(231, 186, 103, 0.55);
  border-radius: var(--radius-lg);
  color: var(--paper-text);
  background: var(--ivory);
  box-shadow: var(--paper-shadow);
  text-align: center;
  animation: stage-in 400ms ease both;
}

.takeaway > span {
  color: #9b6f36;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.takeaway h2 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
}

.takeaway p {
  margin: 0 auto 24px;
  color: #667174;
  line-height: 1.8;
}

.loading-stage {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.projector {
  position: relative;
  width: 104px;
  height: 78px;
  margin-bottom: 26px;
  border: 1px solid rgba(231, 186, 103, 0.5);
  border-radius: 16px;
  background: #102a3d;
  box-shadow: 0 0 42px rgba(231, 186, 103, 0.17);
}

.projector span {
  position: absolute;
  top: -24px;
  width: 46px;
  height: 46px;
  border: 5px double rgba(231, 186, 103, 0.7);
  border-radius: 50%;
  background: #0b2031;
  animation: orbit 3.6s linear infinite;
}

.projector span:first-child {
  left: 5px;
}

.projector span:nth-child(2) {
  right: 5px;
  animation-direction: reverse;
}

.projector i {
  position: absolute;
  top: 24px;
  right: -64px;
  width: 64px;
  height: 26px;
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%);
  background: linear-gradient(90deg, rgba(240, 204, 133, 0.55), transparent);
  animation: projector-light 1.4s ease-in-out infinite alternate;
}

.loading-stage h2 {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 600;
}

.loading-stage p {
  margin: 0;
  color: var(--muted);
}

.loading-lines {
  width: min(330px, 70vw);
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.loading-lines i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.loading-lines i::after {
  content: "";
  display: block;
  width: 55%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(231, 186, 103, 0.55), transparent);
  animation: loading-sweep 1.5s ease-in-out infinite;
}

.loading-lines i:nth-child(2)::after {
  animation-delay: 180ms;
}

.loading-lines i:nth-child(3)::after {
  animation-delay: 360ms;
}

.footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer > p {
  margin: 0;
  color: var(--paper-deep);
  font-family: var(--serif);
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  letter-spacing: 0.05em;
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.usage-status,
.api-status {
  padding: 8px 0;
  border: 0;
  color: #7e929d;
  background: none;
  font-family: var(--sans);
  font-size: 0.7rem;
  cursor: pointer;
}

.usage-status {
  color: var(--gold-soft);
}

.usage-status:hover,
.api-status:hover {
  color: var(--gold);
}

.status-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid rgba(231, 186, 103, 0.35);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: #0b2133;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.status-dialog::backdrop {
  background: rgba(2, 9, 15, 0.7);
  backdrop-filter: blur(7px);
}

.status-dialog h2 {
  margin: 0 0 13px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-weight: 600;
}

.status-dialog p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.status-dialog__model {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(231, 186, 103, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.status-dialog__model span {
  color: #8fa1aa;
  font-size: 0.75rem;
}

.status-dialog__model strong {
  color: var(--gold-soft);
  font-size: 0.86rem;
}

.status-dialog__note {
  padding-top: 16px;
  border-top: 1px solid rgba(231, 186, 103, 0.14);
}

.usage-dialog {
  width: min(560px, calc(100% - 32px));
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid rgba(231, 186, 103, 0.18);
  border-radius: 16px;
  background: rgba(231, 186, 103, 0.13);
}

.usage-grid > div {
  padding: 15px 17px;
  background: #0d273b;
}

.usage-grid dt {
  color: #8fa1aa;
  font-size: 0.7rem;
}

.usage-grid dd {
  margin: 6px 0 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.usage-grid__cost dd {
  color: var(--gold-soft);
  font-size: 1.28rem;
}

.voice-cost-note {
  padding: 16px 17px;
  border: 1px solid rgba(126, 167, 143, 0.26);
  border-radius: 15px;
  background: rgba(83, 132, 104, 0.09);
}

.voice-cost-note strong {
  color: #b9d5bf;
  font-size: 0.8rem;
}

.voice-cost-note p {
  margin: 7px 0 0;
  font-size: 0.78rem;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #8ea1aa;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(380px, calc(100% - 40px));
  padding: 13px 18px;
  border: 1px solid rgba(231, 186, 103, 0.38);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 26, 41, 0.94);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scene-change {
  0% {
    opacity: 0.55;
    transform: scale(0.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wave {
  to {
    height: 17px;
  }
}

@keyframes voice-pulse {
  to {
    box-shadow: 0 0 0 5px rgba(231, 186, 103, 0.1);
  }
}

@keyframes projector-light {
  to {
    opacity: 0.42;
  }
}

@keyframes loading-sweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(220%);
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 30px, 720px);
  }

  .topbar {
    min-height: 82px;
  }

  .brand__subtitle {
    display: none;
  }

  .model-control label {
    display: none;
  }

  .entry-layout,
  .listen-layout {
    grid-template-columns: 1fr;
  }

  .entry-layout {
    gap: 30px;
    min-height: auto;
  }

  .entry-copy h1 {
    margin-top: 30px;
  }

  .starters {
    padding: 25px 22px;
  }

  .starter-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .source-card {
    min-height: 220px;
  }

  .scene-card {
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  }
}

@media (max-width: 650px) {
  body {
    background:
      radial-gradient(circle at 82% 3%, rgba(231, 186, 103, 0.13), transparent 20rem),
      linear-gradient(155deg, #071724 0%, #0b2133 50%, #061520 100%);
  }

  .ambient__sun {
    top: 1vh;
    left: 60%;
    width: 10rem;
    height: 10rem;
  }

  .ambient__mountain {
    height: 38vh;
  }

  .app-shell {
    width: 100%;
    padding: 0 16px;
  }

  .topbar {
    min-height: 72px;
  }

  .brand__title {
    font-size: 1.35rem;
  }

  .model-control {
    min-height: 38px;
    padding-left: 8px;
  }

  .model-control select {
    width: 106px;
    font-size: 0.68rem;
  }

  .journey-nav {
    padding: 17px 0 8px;
  }

  .journey-nav li {
    gap: 5px;
    font-size: 0.69rem;
  }

  .journey-nav li:not(:last-child)::after {
    right: -10%;
    width: 20%;
  }

  .journey-nav li span {
    width: 22px;
    height: 22px;
  }

  #app {
    padding: 16px 0 32px;
  }

  .entry-copy h1 {
    margin: 28px 0 14px;
    font-size: clamp(2.3rem, 12vw, 3.45rem);
    line-height: 1.18;
  }

  .stage-intro {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .companion__orb {
    width: 48px;
    height: 48px;
  }

  .companion p {
    font-size: 0.8rem;
  }

  .film-note {
    border-radius: 19px;
  }

  .film-note textarea {
    min-height: 148px;
    padding: 23px 21px 10px;
    font-size: 1.05rem;
  }

  .film-note__meta {
    align-items: flex-end;
    padding: 9px 18px 14px;
    font-size: 0.65rem;
  }

  .film-note__meta span:last-child {
    max-width: 190px;
    text-align: right;
  }

  .entry-actions {
    position: sticky;
    z-index: 5;
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    padding: 10px;
    border: 1px solid rgba(231, 186, 103, 0.15);
    border-radius: 24px;
    background: rgba(6, 19, 33, 0.88);
    backdrop-filter: blur(16px);
  }

  .button {
    min-height: 54px;
  }

  .button--voice {
    order: 1;
  }

  .button--primary {
    order: 2;
  }

  .starters {
    overflow: hidden;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .starters h2 {
    font-size: 1.3rem;
  }

  .starter-list {
    display: flex;
    overflow-x: auto;
    gap: 9px;
    margin-right: -18px;
    padding-right: 18px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .starter-list::-webkit-scrollbar {
    display: none;
  }

  .starter {
    min-width: 76%;
    scroll-snap-align: start;
  }

  .stage-heading,
  .future-intro {
    align-items: flex-start;
    margin-bottom: 19px;
  }

  .stage-heading > .text-button,
  .future-intro > .text-button {
    flex: 0 0 auto;
    font-size: 0.68rem;
  }

  .listen-layout {
    gap: 15px;
  }

  .source-card {
    min-height: 0;
    padding: 18px;
    border-radius: 19px;
  }

  .source-card p {
    max-height: 4.8em;
    overflow: hidden;
    margin: 12px 0;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .clue-panel {
    padding: 18px 15px;
    border-radius: 19px;
  }

  .clue-panel h2 {
    margin-bottom: 14px;
    font-size: 1.35rem;
  }

  .clue-list {
    gap: 7px;
    margin-bottom: 10px;
  }

  .clue {
    min-height: 52px;
  }

  .clue {
    grid-template-columns: 29px 1fr auto;
  }

  .clue input {
    font-size: 0.9rem;
  }

  .question-panel {
    margin-top: 15px;
    padding: 24px 18px;
    border-radius: 19px;
  }

  .question-panel h2 {
    font-size: 1.5rem;
  }

  .support-list {
    grid-template-columns: 1fr;
  }

  .support {
    min-height: 52px;
  }

  .question-panel .button--wide {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 5;
  }

  .screening-room {
    position: relative;
    display: block;
  }

  .screening-choice {
    margin: 8px auto 20px;
  }

  .screening-choice h1 {
    font-size: 1.78rem;
  }

  .screening-choice p {
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .screening-arrow {
    position: absolute;
    z-index: 5;
    top: 43%;
    width: 42px;
    height: 42px;
    background: rgba(6, 19, 33, 0.82);
    backdrop-filter: blur(8px);
  }

  .screening-arrow--prev {
    left: 5px;
  }

  .screening-arrow--next {
    right: 5px;
  }

  .scene-card {
    display: block;
    min-height: 0;
    border-radius: 25px;
  }

  .scene-card__image-wrap {
    height: 34vh;
    min-height: 270px;
    max-height: 310px;
  }

  .scene-card__image-wrap img {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .scene-card__body {
    padding: 20px 21px 23px;
  }

  .scene-card__body h1 {
    margin: 9px 0 10px;
    font-size: 1.7rem;
  }

  .scene-fit {
    margin-top: 13px;
    padding-top: 11px;
    font-size: 0.8rem;
  }

  .future-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: sticky;
    z-index: 6;
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(231, 186, 103, 0.16);
    border-radius: 20px;
    background: rgba(6, 19, 33, 0.9);
    backdrop-filter: blur(16px);
  }

  .future-actions .button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    font-size: 0.73rem;
  }

  .future-actions .button:last-child {
    grid-column: auto;
  }

  .future-actions .button svg {
    display: none;
  }

  .toast {
    top: 116px;
    right: 16px;
    bottom: auto;
    left: 16px;
    max-width: none;
    border-radius: 16px;
    text-align: center;
  }

  .refine-panel {
    padding: 20px 17px;
  }

  .footer {
    min-height: 86px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  }

  .footer > p {
    font-size: 0.82rem;
  }

  .footer__status {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .usage-status,
  .api-status {
    font-size: 0.64rem;
    text-align: left;
  }

  .loading-stage {
    min-height: 62vh;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .topbar {
    min-height: 78px;
  }

  .journey-nav {
    padding: 14px 0 8px;
  }

  #app {
    padding: 10px 0 28px;
  }

  .entry-layout {
    min-height: auto;
    align-items: start;
  }

  .entry-copy h1 {
    margin: 15px 0 10px;
    font-size: clamp(2.25rem, 3.6vw, 2.7rem);
  }

  .stage-intro {
    margin-bottom: 11px;
    font-size: 0.9rem;
  }

  .film-note textarea {
    min-height: 84px;
    padding-top: 16px;
    padding-bottom: 8px;
  }

  .film-note__meta {
    padding-top: 6px;
    padding-bottom: 9px;
  }

  .entry-actions {
    margin-top: 10px;
  }

  .starters {
    padding-top: 25px;
    padding-bottom: 23px;
  }

  .starter {
    min-height: 42px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .stage-heading,
  .future-intro {
    margin-bottom: 17px;
  }

  .scene-card {
    height: 350px;
    min-height: 350px;
  }

  .scene-card__image-wrap,
  .scene-card__image-wrap img {
    height: 350px;
    min-height: 350px;
  }

  .scene-card__body {
    padding: 22px 30px;
  }

  .scene-card__body h1 {
    margin: 10px 0 12px;
    font-size: clamp(1.75rem, 3.4vw, 2.15rem);
    line-height: 1.18;
  }

  .scene-card__body > p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .scene-fit {
    margin-top: 12px;
    padding-top: 10px;
    line-height: 1.45;
  }

  .scene-dots {
    min-height: 24px;
    margin-top: 8px;
  }

  .footer {
    min-height: 70px;
  }
}

.journey-nav ol {
  grid-template-columns: repeat(4, 1fr);
  max-width: 780px;
}

.question-guidance {
  margin: -8px 0 18px;
  color: #7b7165;
  font-size: 0.84rem;
}

.open-response small,
.director-note small {
  display: block;
  margin-top: 8px;
  color: #8a7659;
  font-size: 0.72rem;
  line-height: 1.5;
}

.open-response small.is-complete,
.director-note small.is-complete {
  color: #527a58;
}

.inline-voice {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(231, 186, 103, 0.28);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(7, 25, 40, 0.28);
  font-family: var(--sans);
  font-size: 0.72rem;
  cursor: pointer;
  transition: 180ms ease;
}

.inline-voice svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.inline-voice:hover,
.inline-voice.is-listening {
  color: #fff4d9;
  border-color: var(--gold);
  background: rgba(231, 186, 103, 0.16);
}

.inline-voice.is-listening {
  animation: voice-pulse 1.15s ease-in-out infinite alternate;
}

.inline-voice--light {
  color: #8c6633;
  border-color: rgba(128, 92, 45, 0.24);
  background: rgba(255, 255, 255, 0.32);
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.lens {
  padding: 17px;
  border: 1px solid rgba(231, 186, 103, 0.19);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.045);
}

.lens--power {
  box-shadow: inset 0 2px 0 rgba(231, 186, 103, 0.3);
}

.lens--interference {
  box-shadow: inset 0 2px 0 rgba(130, 168, 189, 0.28);
}

.lens__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
}

.lens__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
}

.lens > p {
  margin: 7px 0 12px;
  color: #8fa1aa;
  font-size: 0.69rem;
  line-height: 1.55;
}

.lens-list {
  display: grid;
  gap: 8px;
}

.lens-list input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(231, 186, 103, 0.15);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--serif);
  font-size: 0.83rem;
}

.lens-list input:focus {
  border-color: rgba(231, 186, 103, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.director-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(430px, 1.12fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.lineage-panel,
.director-console {
  border: 1px solid rgba(231, 186, 103, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lineage-panel {
  padding: 28px;
  background: rgba(8, 27, 43, 0.82);
  backdrop-filter: blur(16px);
}

.lineage-panel h2 {
  margin: 8px 0 22px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
}

.lineage-flow {
  display: grid;
  gap: 8px;
}

.lineage-flow article {
  padding: 16px;
  border: 1px solid rgba(231, 186, 103, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.lineage-flow article span {
  color: #8fa1aa;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.lineage-flow article p {
  margin: 7px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.55;
}

.lineage-flow > i {
  color: var(--gold);
  text-align: center;
  font-style: normal;
}

.director-console {
  padding: clamp(28px, 5vw, 46px);
  color: var(--paper-text);
  background: var(--ivory);
  box-shadow: var(--paper-shadow);
}

.director-console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.director-console h1 {
  margin: 8px 0 24px;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.25;
}

.projector-mini {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  height: 46px;
  border: 1px solid #b48c53;
  border-radius: 12px;
  background: #102a3d;
}

.projector-mini i {
  position: absolute;
  top: -14px;
  width: 27px;
  height: 27px;
  border: 3px double #d3aa67;
  border-radius: 50%;
  background: #0b2031;
}

.projector-mini i:first-child {
  left: 5px;
}

.projector-mini i:nth-child(2) {
  right: 5px;
}

.projector-mini b {
  position: absolute;
  right: -21px;
  top: 17px;
  width: 22px;
  height: 12px;
  background: linear-gradient(90deg, rgba(231, 186, 103, 0.5), transparent);
  clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 75%);
}

.director-note > span {
  display: block;
  margin-bottom: 8px;
  color: #7e6645;
  font-family: var(--serif);
}

.director-note textarea,
.vision-statement textarea {
  width: 100%;
  resize: vertical;
  padding: 17px;
  border: 1px solid rgba(77, 89, 91, 0.22);
  border-radius: 14px;
  outline: none;
  color: var(--paper-text);
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
}

.director-note textarea:focus,
.vision-statement textarea:focus {
  border-color: #a77d43;
  box-shadow: 0 0 0 3px rgba(167, 125, 67, 0.1);
}

.director-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.director-starter {
  padding: 9px 12px;
  border: 1px solid rgba(86, 101, 106, 0.2);
  border-radius: 999px;
  color: #5e625d;
  background: rgba(255, 255, 255, 0.38);
  font-family: var(--serif);
  font-size: 0.75rem;
  cursor: pointer;
}

.director-starter:hover,
.director-starter.is-selected {
  color: #fff7e5;
  border-color: var(--ink-800);
  background: var(--ink-800);
}

.co-direct-note {
  margin: 13px 0 0;
  color: #857867;
  text-align: center;
  font-size: 0.7rem;
}

.scene-lineage {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(420px, 1.15fr);
  gap: 18px;
  max-width: 840px;
  margin: 16px auto 20px;
  padding: 22px;
  border: 1px solid rgba(231, 186, 103, 0.22);
  border-radius: 18px;
  background: rgba(7, 24, 39, 0.78);
}

.scene-lineage > div > p {
  margin: 9px 0 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  line-height: 1.6;
}

.scene-lineage dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.scene-lineage dl div {
  padding-left: 12px;
  border-left: 1px solid rgba(231, 186, 103, 0.19);
}

.scene-lineage dt {
  color: #8297a3;
  font-size: 0.65rem;
  line-height: 1.4;
}

.scene-lineage dd {
  margin: 6px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.5;
}

.vision-card {
  max-width: 900px;
  padding: clamp(26px, 5vw, 42px);
  text-align: left;
}

.vision-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.vision-card__head > div > span {
  color: #956b35;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2.4vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.vision-statement > span {
  color: #956b35;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.vision-card__head h2 {
  margin: 10px 0 24px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.vision-card__seal {
  padding: 8px 12px;
  border: 1px solid rgba(155, 111, 54, 0.45);
  border-radius: 999px;
  color: #8b642f;
  font-size: 0.69rem;
  white-space: nowrap;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 24px;
  border: 1px solid rgba(77, 89, 91, 0.17);
  border-radius: 16px;
  overflow: hidden;
}

.vision-grid article {
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid rgba(77, 89, 91, 0.13);
  border-bottom: 1px solid rgba(77, 89, 91, 0.13);
}

.vision-grid article:nth-child(2n) {
  border-right: 0;
}

.vision-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.vision-grid article span {
  color: #956b35;
  font-size: 0.7rem;
  font-weight: 750;
}

.vision-grid article p {
  margin: 10px 0 0;
  color: #596569;
  font-family: var(--serif);
  line-height: 1.7;
}

.vision-statement {
  display: block;
}

.vision-statement textarea {
  margin-top: 9px;
}

.vision-ending {
  margin: 18px 0 !important;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  color: #5f696b !important;
  background: rgba(231, 186, 103, 0.08);
}

.vision-export {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(155, 111, 54, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.vision-export__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.vision-export__head span {
  color: #956b35;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.vision-export__head h3 {
  margin: 7px 0 4px;
  color: #314650;
  font-family: var(--serif);
  font-size: 1.22rem;
}

.vision-export__head p {
  max-width: 560px;
  margin: 0;
  color: #6b7472;
  font-size: 0.78rem;
  line-height: 1.65;
}

.vision-export__head .button {
  flex: 0 0 auto;
}

.vision-export > img {
  width: min(100%, 560px);
  display: block;
  margin: 22px auto 16px;
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(36, 55, 70, 0.2);
}

.vision-download {
  width: max-content;
  margin: 0 auto;
  text-decoration: none;
}

.vision-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vision-actions .text-button {
  color: #7c6547;
}

@media (max-width: 900px) {
  .director-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .scene-lineage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .journey-nav li {
    flex-direction: column;
    gap: 3px;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .journey-nav li:not(:last-child)::after {
    top: 11px;
    right: -15%;
    width: 30%;
  }

  .lens-grid {
    grid-template-columns: 1fr;
  }

  .lens {
    padding: 14px;
  }

  .question-guidance {
    margin-top: -4px;
  }

  .director-layout {
    gap: 15px;
  }

  .lineage-panel,
  .director-console {
    padding: 20px 17px;
    border-radius: 20px;
  }

  .lineage-panel h2 {
    font-size: 1.35rem;
  }

  .lineage-flow {
    grid-template-columns: 1fr;
  }

  .lineage-flow > i {
    transform: rotate(90deg);
  }

  .director-console h1 {
    font-size: 1.75rem;
  }

  .projector-mini {
    transform: scale(0.78);
    transform-origin: right center;
  }

  .director-starters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -17px;
    padding-right: 17px;
    scrollbar-width: none;
  }

  .director-starter {
    flex: 0 0 72%;
    border-radius: 14px;
    line-height: 1.45;
  }

  .scene-lineage {
    margin: 13px 0;
    padding: 18px 16px;
  }

  .scene-lineage dl {
    grid-template-columns: 1fr;
  }

  .scene-lineage dl div {
    padding: 10px 0 0;
    border-top: 1px solid rgba(231, 186, 103, 0.16);
    border-left: 0;
  }

  .future-actions {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .future-actions .button {
    line-height: 1.25;
  }

  .vision-card {
    padding: 24px 17px;
    border-radius: 21px;
  }

  .vision-card__head {
    display: block;
  }

  .vision-card__seal {
    display: inline-block;
    margin-bottom: 16px;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .vision-grid article,
  .vision-grid article:nth-child(2n),
  .vision-grid article:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(77, 89, 91, 0.13);
  }

  .vision-grid article:last-child {
    border-bottom: 0;
  }

  .vision-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .vision-export {
    padding: 18px 14px;
  }

  .vision-export__head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .vision-export__head .button,
  .vision-download {
    width: 100%;
  }

  .usage-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .vision-card {
    padding: 25px 34px;
  }

  .vision-card__head h2 {
    margin-bottom: 15px;
    font-size: 2.2rem;
  }

  .vision-grid {
    margin-bottom: 16px;
  }

  .vision-grid article {
    min-height: 108px;
    padding: 15px 18px;
  }

  .vision-grid article p {
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .vision-statement textarea {
    height: 98px;
    min-height: 98px;
  }

  .vision-ending {
    margin: 10px 0 !important;
    padding: 10px 14px;
  }
}

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


/* ===== GCCI 定制:品牌徽章 / 固定模型标识 / 教练 CTA ===== */
.brand {
  align-items: center;
  gap: 14px;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 12, 20, 0.35);
}

.brand__logo img {
  display: block;
  height: 30px;
  width: auto;
}

.brand__text {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.model-static {
  padding: 7px 8px;
  color: var(--text);
  font-size: 0.78rem;
  white-space: nowrap;
}

.coach-cta {
  margin: 26px 0 4px;
  padding: 24px 26px;
  border: 1px solid rgba(155, 111, 54, 0.35);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.coach-cta__copy span {
  color: #956b35;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.coach-cta__copy h3 {
  margin: 8px 0 10px;
  color: #17364c;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
}

.coach-cta__copy p {
  margin: 0;
  max-width: 540px;
  color: #667174;
  font-size: 0.9rem;
  line-height: 1.85;
}

.coach-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.coach-cta__button svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .brand__logo img {
    height: 24px;
  }
  .brand__text {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .coach-cta {
    padding: 20px;
  }
  .coach-cta__button {
    width: 100%;
    justify-content: center;
  }
}
