:root {
  --ink: #f2eadb;
  --ink-soft: #c8bca8;
  --ink-faint: #8f8478;
  --gold: #d9b56d;
  --gold-soft: #f2d79b;
  --gold-deep: #a87a33;
  --violet: #9c7bd6;
  --rose: #d27d9d;
  --night: #0d0915;
  --night-2: #151021;
  --panel: rgba(23, 17, 34, 0.82);
  --line: rgba(217, 181, 109, 0.18);
  --line-strong: rgba(217, 181, 109, 0.42);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--night);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(92, 58, 135, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 80%, rgba(133, 84, 70, 0.13), transparent 35rem),
    linear-gradient(180deg, #0b0712, #120d1d 48%, #0c0813);
}

.sky__stars {
  position: absolute;
  inset: 0;
  opacity: 0.52;
  background-image:
    radial-gradient(circle at 8% 16%, rgba(255, 235, 194, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 18% 64%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 30%, rgba(255, 230, 186, 0.8) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 42% 12%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.4px),
    radial-gradient(circle at 52% 78%, rgba(214, 195, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 63% 23%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 53%, rgba(255, 232, 185, 0.8) 0 1.1px, transparent 1.6px),
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.4px),
    radial-gradient(circle at 92% 72%, rgba(209, 191, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 35% 88%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.4px);
}

.sky__stars::before,
.sky__stars::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 233, 185, 0.9);
  box-shadow:
    0 0 18px 3px rgba(255, 214, 135, 0.45),
    0 0 70px 20px rgba(255, 210, 130, 0.12);
}

.sky__stars::before {
  width: 3px;
  height: 3px;
  top: 18%;
  left: 72%;
}

.sky__stars::after {
  width: 2px;
  height: 2px;
  top: 67%;
  left: 19%;
  animation: twinkle 4.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.35; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1.25); }
}

.sky__moon {
  position: absolute;
  width: 46vmin;
  height: 46vmin;
  top: -19vmin;
  right: -10vmin;
  border-radius: 50%;
  border: 1px solid rgba(217, 181, 109, 0.12);
  box-shadow:
    0 0 0 4vmin rgba(217, 181, 109, 0.025),
    0 0 0 16vmin rgba(217, 181, 109, 0.02),
    inset -5vmin 1vmin 9vmin rgba(255, 217, 154, 0.05);
  opacity: 0.85;
}

.sky__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.sky__glow--violet {
  width: 46vmin;
  height: 46vmin;
  left: -20vmin;
  top: 48%;
  background: radial-gradient(circle, rgba(104, 64, 157, 0.17), transparent 70%);
}

.sky__glow--gold {
  width: 38vmin;
  height: 38vmin;
  right: 3vw;
  bottom: -18vmin;
  background: radial-gradient(circle, rgba(172, 105, 44, 0.12), transparent 70%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 181, 109, 0.55);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(217, 181, 109, 0.07);
  box-shadow: 0 0 28px rgba(217, 181, 109, 0.08);
  font-size: 18px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__text b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.brand__text small {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 11px;
}

.topbar__tag {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.tiny-btn {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tiny-btn:hover {
  border-color: var(--line-strong);
  background: rgba(217, 181, 109, 0.07);
}

.shell {
  position: relative;
  min-height: 660px;
  border: 1px solid rgba(217, 181, 109, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 8%, rgba(128, 83, 181, 0.13), transparent 26rem),
    linear-gradient(145deg, rgba(24, 17, 36, 0.94), rgba(13, 9, 21, 0.93));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.22);
}

.shell::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -75px;
  border: 1px solid rgba(217, 181, 109, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(217, 181, 109, 0.018), 0 0 0 52px rgba(217, 181, 109, 0.012);
  pointer-events: none;
}

.screen {
  display: none;
  min-height: 658px;
  animation: screenIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.screen.is-active {
  display: block;
}

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

/* ---------- 封面 ---------- */

.screen--intro.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.01fr) minmax(330px, 0.99fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
  padding: clamp(38px, 6vw, 76px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.intro__copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.7vw, 69px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.intro__copy h1 em {
  color: var(--gold-soft);
  font-style: normal;
  text-shadow: 0 0 30px rgba(217, 181, 109, 0.16);
}

.lead {
  max-width: 37em;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 27px;
}

.meta {
  padding: 7px 10px;
  border: 1px solid rgba(217, 181, 109, 0.15);
  border-radius: 7px;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.018);
  font-size: 11px;
}

.meta b {
  color: var(--ink);
  font-weight: 700;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 31px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.tiny-btn:focus-visible,
.option:focus-visible,
.brand:focus-visible,
.gallery-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--gold {
  color: #211709;
  background: linear-gradient(135deg, #f4dfac, var(--gold) 52%, #b9873b);
  box-shadow: 0 12px 30px rgba(217, 181, 109, 0.16);
}

.btn--gold:hover {
  box-shadow: 0 16px 38px rgba(217, 181, 109, 0.24);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.025);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(217, 181, 109, 0.06);
}

.btn--text {
  color: var(--ink-soft);
  background: transparent;
}

.btn--text:hover {
  color: var(--gold-soft);
  background: rgba(217, 181, 109, 0.05);
}

.btn__symbol {
  font-size: 15px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.btn--gold:hover .btn__symbol {
  transform: rotate(45deg) scale(1.15);
}

.fineprint {
  display: flex;
  gap: 7px;
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.7;
}

.fineprint span {
  color: var(--gold-deep);
}

.intro__art {
  position: relative;
  min-height: 440px;
  isolation: isolate;
}

.intro__art::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(217, 181, 109, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 22px rgba(217, 181, 109, 0.018),
    0 0 0 58px rgba(217, 181, 109, 0.012),
    0 0 90px rgba(157, 112, 207, 0.08);
}

.intro__art::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: 8%;
  bottom: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 100, 194, 0.12), transparent 70%);
}

.card-back {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 172px;
  height: 286px;
  border: 1px solid rgba(217, 181, 109, 0.46);
  border-radius: 13px;
  background:
    linear-gradient(45deg, transparent 47%, rgba(217, 181, 109, 0.08) 48%, rgba(217, 181, 109, 0.08) 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(217, 181, 109, 0.06) 48%, rgba(217, 181, 109, 0.06) 52%, transparent 53%),
    linear-gradient(150deg, #241733, #100c1a 58%, #1e142a);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.46);
}

.card-back > span {
  color: rgba(217, 181, 109, 0.86);
  font-size: 48px;
}

.card-back > i {
  position: absolute;
  bottom: 17px;
  color: rgba(217, 181, 109, 0.48);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.card-back--left {
  top: 42px;
  left: 9%;
  transform: rotate(-13deg);
  opacity: 0.7;
}

.card-back--right {
  top: 82px;
  right: 5%;
  transform: rotate(11deg);
  opacity: 0.72;
}

.card-back--front {
  top: 96px;
  left: 29%;
  z-index: 2;
  width: 194px;
  height: 322px;
  transform: rotate(-1.5deg);
  background:
    radial-gradient(circle at 50% 32%, rgba(217, 181, 109, 0.12), transparent 31%),
    repeating-radial-gradient(circle at 50% 50%, rgba(217, 181, 109, 0.055) 0 1px, transparent 1px 11px),
    linear-gradient(155deg, #2b1b3c, #100c19 60%, #21162e);
  box-shadow:
    0 34px 76px rgba(0, 0, 0, 0.55),
    0 0 45px rgba(217, 181, 109, 0.09);
}

.card-back--front .card-back__frame {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 181, 109, 0.31);
  border-radius: 9px;
}

.card-back__star {
  position: absolute;
  top: 22px;
  left: 24px;
  color: var(--gold);
  font-size: 15px;
}

.card-back__eye {
  position: relative;
  z-index: 1;
  color: var(--gold-soft);
  font-size: 44px;
  text-shadow: 0 0 24px rgba(217, 181, 109, 0.28);
}

.card-back__ring {
  position: absolute;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(217, 181, 109, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 13px rgba(217, 181, 109, 0.035), 0 0 0 27px rgba(217, 181, 109, 0.02);
}

.card-back__ring::before,
.card-back__ring::after {
  content: "";
  position: absolute;
  background: rgba(217, 181, 109, 0.35);
}

.card-back__ring::before {
  width: 1px;
  height: 132px;
  left: 50%;
  top: -17px;
}

.card-back__ring::after {
  height: 1px;
  width: 132px;
  top: 50%;
  left: -17px;
}

.card-back__frame small {
  position: absolute;
  bottom: 21px;
  color: rgba(217, 181, 109, 0.52);
  font-size: 7px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.24em;
  text-align: center;
}

.orbit-label {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 181, 109, 0.25);
  border-radius: 50%;
  color: rgba(217, 181, 109, 0.65);
  background: rgba(15, 10, 23, 0.76);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.orbit-label--one {
  width: 46px;
  height: 46px;
  top: 25px;
  right: 13%;
  transform: rotate(8deg);
}

.orbit-label--two {
  width: 58px;
  height: 58px;
  bottom: 30px;
  left: 8%;
  transform: rotate(-9deg);
}

/* ---------- 固定大事件 ---------- */

.screen--event {
  padding: clamp(30px, 5vw, 58px) clamp(24px, 6vw, 86px) 40px;
}

.event-shell {
  width: min(820px, 100%);
  margin: 0 auto;
}

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

.event-head .eyebrow {
  margin-bottom: 10px;
}

.event-counter {
  padding: 5px 8px;
  border: 1px solid rgba(217, 181, 109, 0.2);
  border-radius: 5px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.event-kicker {
  margin: 26px 0 8px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.event-shell h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.event-story {
  max-width: 760px;
  margin: 18px 0 28px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
  white-space: pre-line;
}

.event-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.event-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 181, 109, 0.16);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.022);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.event-option:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 181, 109, 0.46);
  background: rgba(217, 181, 109, 0.06);
}

.event-option__key {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(217, 181, 109, 0.22);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 10px;
}

.event-option__text {
  font-size: 12px;
  line-height: 1.7;
}

.event-answer {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(217, 181, 109, 0.25);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(217, 181, 109, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.018);
}

.event-answer[hidden] {
  display: none;
}

.event-answer__label {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.event-answer p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
}

#eventContinueBtn {
  margin-top: 18px;
}

#eventContinueBtn[hidden] {
  display: none;
}

.event-note {
  margin: 22px 0 0;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.7;
}

/* ---------- 答题 ---------- */

.screen--quiz {
  padding: clamp(28px, 4.8vw, 52px) clamp(25px, 6vw, 82px) 38px;
}

.quiz-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 17px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(217, 181, 109, 0.06);
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.progress__label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.progress__label span:last-child {
  color: rgba(217, 181, 109, 0.78);
  font-variant-numeric: tabular-nums;
}

.progress__track {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress__fill {
  width: 7%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  box-shadow: 0 0 15px rgba(217, 181, 109, 0.35);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quiz-head__mark {
  justify-self: end;
  color: var(--gold);
  font-size: 14px;
  opacity: 0.65;
}

.faction-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: min(790px, 100%);
  margin: 24px auto 0;
  padding: 9px 12px;
  border: 1px solid rgba(217, 181, 109, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.014);
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.6;
}

.faction-bar[hidden] {
  display: none;
}

.faction-bar__tag {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.faction-bar__name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.faction-bar__side {
  color: var(--ink-faint);
}

.faction-bar__side b {
  color: var(--ink-soft);
  font-weight: 500;
}

.faction-bar__side--ally b {
  color: #b8d9bd;
}

.faction-bar__side--enemy b {
  color: #e0a4a4;
}

.question {
  width: min(790px, 100%);
  margin: clamp(26px, 4.4vw, 48px) auto 0;
}

.question__kicker {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.question__memory {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 6px 9px;
  border: 1px solid rgba(217, 181, 109, 0.16);
  border-radius: 5px;
  color: var(--ink-faint);
  background: rgba(217, 181, 109, 0.035);
  font-size: 9px;
  line-height: 1.6;
}

.question__memory::before {
  content: "前情";
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.question__memory[hidden] {
  display: none;
}

.question__echo {
  max-width: 760px;
  margin: 0 0 18px;
  padding: 11px 13px 11px 15px;
  border-left: 1px solid rgba(217, 181, 109, 0.42);
  color: var(--ink-soft);
  background: linear-gradient(90deg, rgba(217, 181, 109, 0.075), transparent);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
}

.question__echo::before {
  content: "选择回声 · ";
  color: var(--gold);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.question__echo[hidden] {
  display: none;
}

.storyline-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
  padding-right: 4px;
}

.storyline-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.012);
}

.storyline-item__chapter {
  color: var(--gold-deep);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.storyline-item__text {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.7;
}

.question__story {
  max-width: 760px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.95;
}

.question h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.45vw, 39px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.question__hint {
  margin: 9px 0 29px;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.7;
}

.redacted {
  display: inline-block;
  width: calc(var(--redact-len, 2) * 0.82em);
  height: 0.82em;
  margin: 0 0.08em;
  border-radius: 2px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
  vertical-align: -0.08em;
}

.ending-line {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-left: 1px solid rgba(217, 181, 109, 0.34);
  color: var(--ink);
  background: linear-gradient(90deg, rgba(217, 181, 109, 0.06), transparent);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
}

.journey-block {
  margin-top: 16px;
}

.journey-block__label {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.journey-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.journey-tag {
  padding: 5px 8px;
  border: 1px solid rgba(217, 181, 109, 0.13);
  border-radius: 5px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.018);
  font-size: 9px;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.023);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.option::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.option:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 181, 109, 0.36);
  background: linear-gradient(135deg, rgba(217, 181, 109, 0.075), rgba(255, 255, 255, 0.02));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.option:hover::before,
.option.is-picked::before {
  opacity: 1;
}

.option.is-picked {
  border-color: rgba(217, 181, 109, 0.5);
  background: rgba(217, 181, 109, 0.075);
}

.option__key {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(217, 181, 109, 0.2);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 11px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.option:hover .option__key,
.option.is-picked .option__key {
  border-color: var(--gold);
  color: #201607;
  background: var(--gold);
}

.option__text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.key-hint {
  margin: 32px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: center;
}

kbd {
  display: inline-block;
  min-width: 19px;
  padding: 2px 5px;
  border: 1px solid rgba(217, 181, 109, 0.25);
  border-radius: 4px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--sans);
  font-size: 9px;
  text-align: center;
}

/* ---------- 结果 ---------- */

.screen--result {
  padding: clamp(28px, 4.5vw, 50px) clamp(22px, 5vw, 62px) 34px;
}

.result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.result-head .eyebrow {
  margin: 0;
}

.result-head__note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.tarot-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tarot-card {
  position: relative;
  width: min(252px, 100%);
  aspect-ratio: 0.58;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
  border: 1px solid var(--card-accent, rgba(217, 181, 109, 0.56));
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--card-color, #d9b56d) 18%, transparent), transparent 38%),
    repeating-radial-gradient(circle at 50% 50%, rgba(217, 181, 109, 0.04) 0 1px, transparent 1px 13px),
    linear-gradient(155deg, var(--card-bg-1, #2c1c3d), var(--card-bg-2, #0f0b17));
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.48),
    0 0 0 6px rgba(255, 255, 255, 0.018),
    0 0 40px color-mix(in srgb, var(--card-color, #d9b56d) 10%, transparent);
  overflow: hidden;
  animation: cardReveal 0.8s cubic-bezier(0.16, 0.8, 0.2, 1) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px) rotateY(-8deg) scale(0.96); }
  to { opacity: 1; transform: translateY(0) rotateY(0) scale(1); }
}

.tarot-card::before,
.tarot-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.tarot-card::before {
  width: 150px;
  height: 150px;
  top: -63px;
  right: -68px;
  border: 1px solid color-mix(in srgb, var(--card-color, #d9b56d) 28%, transparent);
  box-shadow: 0 0 0 16px color-mix(in srgb, var(--card-color, #d9b56d) 5%, transparent);
}

.tarot-card::after {
  width: 88px;
  height: 88px;
  left: -44px;
  bottom: -39px;
  background: color-mix(in srgb, var(--card-color, #d9b56d) 7%, transparent);
}

.tarot-card__corner {
  position: absolute;
  color: color-mix(in srgb, var(--card-color, #d9b56d) 82%, white);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.tarot-card__corner--tl {
  top: 15px;
  left: 17px;
}

.tarot-card__corner--br {
  right: 17px;
  bottom: 15px;
  transform: rotate(180deg);
}

.tarot-card__halo {
  position: absolute;
  width: 154px;
  height: 154px;
  border: 1px solid color-mix(in srgb, var(--card-color, #d9b56d) 28%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 14px color-mix(in srgb, var(--card-color, #d9b56d) 3%, transparent);
}

.tarot-card__halo::before,
.tarot-card__halo::after {
  content: "";
  position: absolute;
  background: color-mix(in srgb, var(--card-color, #d9b56d) 30%, transparent);
}

.tarot-card__halo::before {
  width: 1px;
  height: 196px;
  left: 50%;
  top: -21px;
}

.tarot-card__halo::after {
  height: 1px;
  width: 196px;
  top: 50%;
  left: -21px;
}

.tarot-card__symbol {
  position: relative;
  z-index: 1;
  color: color-mix(in srgb, var(--card-color, #d9b56d) 80%, white);
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  font-variant-emoji: text;
  text-shadow: 0 0 26px color-mix(in srgb, var(--card-color, #d9b56d) 28%, transparent);
}

.tarot-card__en {
  position: relative;
  z-index: 1;
  margin: 17px 0 3px;
  color: color-mix(in srgb, var(--card-color, #d9b56d) 72%, white);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.tarot-card__name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tarot-card__character {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.tarot-card__line {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 1px;
  margin: 16px 0 13px;
  background: color-mix(in srgb, var(--card-color, #d9b56d) 60%, transparent);
}

.tarot-card__identity {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.tarot-card__faction {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--card-color, #d9b56d) 24%, transparent);
  border-radius: 4px;
  color: color-mix(in srgb, var(--card-color, #d9b56d) 70%, white);
  font-size: 7px;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.card-caption {
  margin: 17px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: center;
}

.card-caption b {
  color: var(--gold-soft);
  font-size: 12px;
}

.reading {
  min-width: 0;
}

.reading__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.faction-pill {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--gold);
  background: rgba(217, 181, 109, 0.05);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.reading__character {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.reading__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.reading__identity {
  margin: 8px 0 0;
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.reading__summary {
  max-width: 54em;
  margin: 19px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.95;
}

.quote {
  position: relative;
  margin: 20px 0 0;
  padding: 14px 18px 14px 49px;
  border: 0;
  border-left: 1px solid rgba(217, 181, 109, 0.3);
  color: var(--ink);
  background: linear-gradient(90deg, rgba(217, 181, 109, 0.055), transparent);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
}

.quote::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 4px;
  color: rgba(217, 181, 109, 0.55);
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  padding: 5px 8px;
  border: 1px solid rgba(217, 181, 109, 0.13);
  border-radius: 5px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 9px;
}

.reading__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}

.mini-panel {
  padding: 11px 13px;
  border: 1px solid rgba(217, 181, 109, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.mini-panel--shadow {
  border-color: rgba(156, 123, 214, 0.14);
}

.mini-panel__label {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.mini-panel--shadow .mini-panel__label {
  color: var(--violet);
}

.mini-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.result-details {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
  margin-top: 29px;
}

.panel {
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.015);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.panel__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.panel__head span {
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.spectrum {
  display: grid;
  gap: 10px;
}

.spectrum__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
}

.spectrum__label {
  color: var(--ink-faint);
  font-size: 9px;
}

.spectrum__track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.spectrum__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--spectrum-color, var(--gold)), color-mix(in srgb, var(--spectrum-color, var(--gold)) 55%, white));
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.spectrum__value {
  color: var(--ink-faint);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.spread {
  display: grid;
  gap: 8px;
}

.spread__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.spread__index {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 10px;
}

.spread__name {
  color: var(--ink-soft);
  font-size: 10px;
}

.spread__name b {
  color: var(--ink);
  font-weight: 500;
}

.spread__hits {
  color: var(--gold-soft);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.spread__track {
  grid-column: 2 / -1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.spread__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--spread-color, var(--gold));
  opacity: 0.8;
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.result-actions .btn {
  min-height: 40px;
  font-size: 11px;
}

.result-disclaimer {
  max-width: 75em;
  margin: 16px 0 0;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.7;
}

/* ---------- 图鉴 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 8, 0.82);
  backdrop-filter: blur(9px);
}

.modal__panel {
  position: relative;
  width: min(1020px, 100%);
  max-height: min(84vh, 860px);
  padding: 27px;
  border: 1px solid rgba(217, 181, 109, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(122, 80, 173, 0.15), transparent 26rem),
    #120d1c;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65);
  overflow: auto;
}

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

.modal__head .eyebrow {
  margin-bottom: 9px;
}

.modal__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.modal__lead {
  margin: 12px 0 21px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.8;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gallery-card {
  position: relative;
  min-height: 106px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--gallery-color, #d9b56d) 12%, transparent), transparent 55%),
    rgba(255, 255, 255, 0.018);
  text-align: left;
  cursor: default;
}

.gallery-card__num {
  color: var(--gallery-color, var(--gold));
  font-family: var(--serif);
  font-size: 10px;
}

.gallery-card__name {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gallery-card__character {
  display: block;
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.5;
}

.gallery-card__faction {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--ink-faint);
  font-size: 7px;
}

/* ---------- 通用 ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 19px 10px 0;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer__dot {
  color: rgba(217, 181, 109, 0.35);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(217, 181, 109, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(18, 12, 28, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .screen--intro.is-active {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .intro__art {
    min-height: 330px;
    width: min(460px, 100%);
    margin: 0 auto;
  }

  .card-back {
    width: 142px;
    height: 236px;
  }

  .card-back--left {
    top: 14px;
    left: 12%;
  }

  .card-back--right {
    top: 48px;
    right: 7%;
  }

  .card-back--front {
    top: 58px;
    left: 31%;
    width: 158px;
    height: 264px;
  }

  .intro__art::before {
    width: 290px;
    height: 290px;
  }

  .result-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
  }

  .result-details {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .page {
    width: min(100% - 22px, 560px);
    padding-top: 13px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .topbar__tag {
    display: none;
  }

  .brand__text b {
    font-size: 16px;
  }

  .shell {
    min-height: 620px;
    border-radius: 20px;
  }

  .screen {
    min-height: 618px;
  }

  .screen--intro.is-active {
    padding: 33px 22px 27px;
  }

  .intro__copy h1 {
    font-size: clamp(39px, 11vw, 54px);
  }

  .lead {
    font-size: 13px;
    line-height: 1.9;
  }

  .intro__art {
    min-height: 270px;
  }

  .card-back {
    width: 112px;
    height: 186px;
  }

  .card-back--left {
    left: 9%;
  }

  .card-back--right {
    right: 4%;
  }

  .card-back--front {
    width: 126px;
    height: 210px;
    left: 32%;
  }

  .card-back__eye {
    font-size: 32px;
  }

  .card-back__ring {
    width: 70px;
    height: 70px;
  }

  .card-back__ring::before {
    height: 96px;
    top: -13px;
  }

  .card-back__ring::after {
    width: 96px;
    left: -13px;
  }

  .card-back > span {
    font-size: 34px;
  }

  .intro__art::before {
    width: 230px;
    height: 230px;
  }

  .orbit-label--one {
    top: 5px;
    right: 4%;
    width: 38px;
    height: 38px;
  }

  .orbit-label--two {
    bottom: 5px;
    left: 3%;
    width: 48px;
    height: 48px;
  }

  .screen--event {
    padding: 22px 17px 27px;
  }

  .event-kicker {
    margin-top: 20px;
  }

  .event-shell h2 {
    font-size: 28px;
  }

  .event-story {
    font-size: 12px;
    line-height: 1.9;
  }

  .event-options {
    grid-template-columns: 1fr;
  }

  .event-answer p {
    font-size: 16px;
  }

  .screen--quiz {
    padding: 22px 17px 27px;
  }

  .quiz-head {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .faction-bar {
    margin-top: 18px;
    padding: 8px 10px;
    font-size: 8px;
  }

  .faction-bar__name {
    font-size: 11px;
  }

  .question {
    margin-top: 28px;
  }

  .question h2 {
    font-size: 25px;
    line-height: 1.48;
  }

  .question__memory {
    font-size: 8px;
  }

  .question__story {
    font-size: 11px;
    line-height: 1.85;
  }

  .question__echo {
    font-size: 11px;
  }

  .storyline-list {
    max-height: 200px;
  }

  .ending-line {
    font-size: 12px;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .option {
    min-height: 66px;
    padding: 12px 13px;
  }

  .option__text {
    font-size: 12px;
  }

  .key-hint {
    display: none;
  }

  .screen--result {
    padding: 22px 16px 27px;
  }

  .result-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 17px;
  }

  .result-head__note {
    font-size: 9px;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .tarot-card {
    width: min(218px, 68vw);
  }

  .reading {
    padding: 0 3px;
  }

  .reading__title {
    font-size: 35px;
  }

  .reading__summary {
    font-size: 12px;
  }

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

  .result-details {
    margin-top: 22px;
  }

  .panel {
    padding: 15px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .result-actions .btn {
    width: 100%;
  }

  #galleryBtnResult,
  #restartBtn {
    grid-column: 1 / -1;
  }

  .modal {
    padding: 10px;
  }

  .modal__panel {
    max-height: 92vh;
    padding: 19px 14px;
    border-radius: 14px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card {
    min-height: 94px;
    padding: 10px;
  }

  .gallery-card__name {
    font-size: 15px;
  }
}

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

/* ---------- V3 叙事页 ---------- */

.screen--story,
.screen--message,
.screen--end {
  padding: clamp(30px, 5vw, 58px) clamp(24px, 6vw, 86px) 42px;
}

.story-shell {
  width: min(840px, 100%);
  margin: 0 auto;
}

.story-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.story-head .eyebrow {
  margin-bottom: 10px;
}

.story-branch {
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(217, 181, 109, 0.18);
  border-radius: 5px;
  color: var(--gold-soft);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.story-shell h2 {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.story-subtitle {
  margin: 10px 0 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.story-body {
  margin-top: 24px;
}

.story-section {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.story-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.story-section h3 {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.story-section p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
}

.story-section p:last-child {
  margin-bottom: 0;
}

.story-section p em {
  color: var(--ink);
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(217, 181, 109, 0.12) 62%);
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.option__desc {
  display: block;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.7;
}

.option--rich {
  align-items: flex-start;
}

.option--rich .option__key {
  margin-top: 2px;
}

.screen--message .story-body,
.screen--end .story-body {
  padding: 18px 20px;
  border: 1px solid rgba(217, 181, 109, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.screen--message .story-body p,
.screen--end .story-body p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.95;
}

.screen--message .story-body p:last-child,
.screen--end .story-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 650px) {
  .screen--story,
  .screen--message,
  .screen--end {
    padding: 24px 17px 30px;
  }

  .story-shell h2 {
    font-size: 29px;
  }

  .story-section p,
  .screen--message .story-body p,
  .screen--end .story-body p {
    font-size: 12px;
  }

  .story-head {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- V3.2 有反馈的叙事选择 ---------- */

.story-progress {
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.story-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.story-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 66px;
  padding: 13px 14px;
  border: 1px solid rgba(217, 181, 109, 0.16);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.022);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.story-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 181, 109, 0.46);
  background: rgba(217, 181, 109, 0.06);
}

.story-choice__key {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(217, 181, 109, 0.22);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 10px;
}

.story-choice__text {
  font-size: 11px;
  line-height: 1.7;
}

.story-feedback {
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(217, 181, 109, 0.24);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(217, 181, 109, 0.08), transparent 62%);
}

.story-feedback[hidden] {
  display: none;
}

.story-feedback__label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.story-feedback p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 650px) {
  .story-choices {
    grid-template-columns: 1fr;
  }

  .story-feedback p {
    font-size: 13px;
  }
}

#storyContinueBtn[hidden] {
  display: none;
}

/* V3.4 叙事页去程序化：只保留场景、正文、选择与反馈 */
.story-head,
.story-progress,
#storyTitle,
#storySubtitle {
  display: none;
}

.screen--story .story-shell {
  padding-top: 4px;
}

.screen--story .story-body {
  margin-top: 0;
}


.story-choice__key {
  display: none;
}

.story-choice {
  padding-left: 16px;
}

/* V3.8 早市探索 */
.options .option--wide {
  grid-column: 1 / -1;
}

.option.is-tried {
  border-color: rgba(217, 181, 109, 0.42);
  background: rgba(217, 181, 109, 0.055);
}

.option.is-tried .option__key {
  color: #201607;
  background: var(--gold);
  border-color: var(--gold);
}

.question__story {
  white-space: pre-line;
}

.question-feedback {
  margin-top: 20px;
}

.question-feedback[hidden] {
  display: none;
}

/* V3.8 大事件独立过场 */
.event-transition {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(217, 181, 109, 0.13), transparent 17rem),
    radial-gradient(circle at 50% 52%, rgba(118, 79, 166, 0.17), transparent 38rem),
    rgba(7, 5, 12, 0.965);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.event-transition.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.event-transition::before,
.event-transition::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(620px, 72vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 181, 109, 0.52), transparent);
  transform: translateX(-50%);
  opacity: 0.36;
}

.event-transition::before {
  top: 27%;
}

.event-transition::after {
  bottom: 27%;
}

.event-transition__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
}

.event-transition.is-active .event-transition__inner {
  animation: eventPassageIn 0.65s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.event-transition__sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 27px;
  border: 1px solid rgba(217, 181, 109, 0.52);
  border-radius: 50%;
  color: var(--gold-soft);
  box-shadow:
    0 0 0 10px rgba(217, 181, 109, 0.028),
    0 0 54px rgba(217, 181, 109, 0.12),
    inset 0 0 26px rgba(217, 181, 109, 0.06);
}

.event-transition__sigil::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(217, 181, 109, 0.24);
  border-radius: 50%;
}

.event-transition__sigil::after {
  content: "";
  position: absolute;
  width: 118px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 181, 109, 0.55), transparent);
  transform: rotate(-26deg);
}

.event-transition.is-active .event-transition__sigil {
  animation: eventSigilIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.event-transition__sigil span {
  font-size: 31px;
  line-height: 1;
  animation: eventSigilPulse 1.25s ease-in-out infinite alternate;
}

.event-transition__label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.event-transition__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.event-transition__note {
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.screen--event.is-active .event-shell {
  animation: eventPanelIn 0.8s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

@keyframes eventSigilIn {
  from { opacity: 0; transform: rotate(-18deg) scale(0.76); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes eventSigilPulse {
  from { opacity: 0.62; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1.08); }
}

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

@media (prefers-reduced-motion: reduce) {
  .event-transition,
  .event-transition__inner,
  .event-transition__sigil,
  .event-transition__sigil span,
  .screen--event.is-active .event-shell {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .event-transition__inner {
    opacity: 1;
    transform: none;
  }
}

/* V3.8 大事件选项注释 */
.event-option__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.event-option__note {
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.65;
}
