/* 全局设置：避免默认间距造成横向滚动 */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --bg-black: #07080d;
  --bg-panel: rgba(15, 17, 25, 0.88);
  --bg-panel-strong: rgba(10, 12, 18, 0.94);
  --line-soft: rgba(150, 162, 196, 0.18);
  --line-accent: rgba(92, 71, 138, 0.34);
  --line-warm: rgba(128, 43, 65, 0.28);
  --text-primary: #f3f5f8;
  --text-secondary: #d5dcea;
  --text-muted: #a1adbf;
  --text-faint: #7f8798;
  --accent-red: #7f2b41;
  --accent-red-soft: rgba(127, 43, 65, 0.22);
  --accent-purple: #5d4f8f;
  --accent-purple-soft: rgba(93, 79, 143, 0.2);
  --accent-blue: #7e8fb8;
  --accent-silver: #cfd7e6;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 18% 12%, rgba(93, 79, 143, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(127, 43, 65, 0.16), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(64, 79, 116, 0.16), transparent 34rem),
    linear-gradient(145deg, #040508 0%, #0a0c12 42%, #12131b 70%, #07080d 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(1, 4, 10, 0);
  transition: background 1.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.is-initializing::after {
  background: rgba(1, 5, 13, 0.3);
}

body.is-initializing .home-card {
  animation: homeLiquidWarp 4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  transform-origin: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 0 46%, transparent 78%);
  opacity: 0.35;
  animation: gridDrift 18s linear infinite;
}

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

.ambient-field::before,
.ambient-field::after {
  content: "";
  position: absolute;
  inset: -16%;
  opacity: 0.6;
  background:
    radial-gradient(circle at 24% 22%, rgba(110, 72, 164, 0.2), transparent 24rem),
    radial-gradient(circle at 72% 18%, rgba(145, 43, 70, 0.14), transparent 22rem),
    radial-gradient(circle at 54% 84%, rgba(74, 86, 134, 0.15), transparent 26rem);
  animation: ambientSweep 16s ease-in-out infinite;
}

.ambient-field::after {
  opacity: 0.38;
  filter: blur(12px);
  animation-delay: -7s;
}

.ambient-field span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(222, 215, 238, 0.62);
  box-shadow: 0 0 12px rgba(141, 100, 194, 0.54);
  animation: particleFloat 12s ease-in-out infinite;
}

.ambient-field span:nth-child(1) {
  left: 14%;
  top: 18%;
}

.ambient-field span:nth-child(2) {
  left: 76%;
  top: 22%;
  animation-delay: -2s;
}

.ambient-field span:nth-child(3) {
  left: 62%;
  top: 70%;
  animation-delay: -4s;
}

.ambient-field span:nth-child(4) {
  left: 28%;
  top: 78%;
  animation-delay: -6s;
}

.ambient-field span:nth-child(5) {
  left: 88%;
  top: 58%;
  animation-delay: -8s;
}

.ambient-field span:nth-child(6) {
  left: 42%;
  top: 34%;
  animation-delay: -10s;
}

/* 页面容器：负责让卡片在手机和电脑上都居中 */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

/* 首页卡片：承载标题、说明和按钮 */
.intro-card {
  width: 100%;
  max-width: 620px;
  padding: 42px 34px;
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    var(--bg-panel);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 首页入口：只增强首页，不影响答题页和结果页 */
.home-card {
  position: relative;
  max-width: 720px;
  overflow: hidden;
  padding-top: 42px;
  background:
    radial-gradient(circle at 14% 2%, rgba(127, 43, 65, 0.18), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(93, 79, 143, 0.24), transparent 28%),
    radial-gradient(circle at 48% 100%, rgba(78, 95, 138, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(14, 15, 22, 0.97), rgba(7, 8, 12, 0.96) 58%, rgba(15, 11, 21, 0.96)),
    rgba(9, 10, 14, 0.94);
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.62),
    0 0 48px rgba(93, 79, 143, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 16%, transparent 74%, rgba(93, 79, 143, 0.16)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 50% 28%, rgba(132, 83, 178, 0.13), transparent 18rem);
  opacity: 0.62;
  animation: archiveGradient 12s ease-in-out infinite;
}

.home-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(113, 88, 151, 0.18);
  border-radius: 17px;
  box-shadow: inset 0 0 30px rgba(92, 71, 138, 0.08);
}

.home-card > * {
  position: relative;
  z-index: 1;
}

.archive-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-code {
  width: min(360px, 86vw);
  margin: 0 auto 18px;
  padding: 10px 14px;
  border: 1px solid rgba(171, 146, 210, 0.18);
  border-radius: 10px;
  color: #9da8bd;
  background:
    linear-gradient(90deg, rgba(92, 71, 138, 0.12), rgba(127, 43, 65, 0.12)),
    rgba(7, 8, 12, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-code span,
.archive-code strong {
  display: block;
}

.archive-code strong {
  margin-top: 3px;
  color: #e4d8ef;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.home-glow {
  position: relative;
  width: min(220px, 62vw);
  height: min(220px, 62vw);
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
}

.glow-ring,
.glow-core {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.glow-ring {
  border: 1px solid rgba(121, 100, 168, 0.26);
  animation: homePulse 7s ease-in-out infinite;
}

.ring-one {
  inset: 5px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.025), transparent 66%);
  box-shadow:
    0 0 18px rgba(128, 43, 65, 0.12),
    0 0 42px rgba(93, 79, 143, 0.14),
    inset 0 0 22px rgba(93, 79, 143, 0.08);
}

.ring-two {
  inset: 38px;
  border-color: rgba(127, 43, 65, 0.24);
  box-shadow:
    0 0 20px rgba(127, 43, 65, 0.12),
    inset 0 0 16px rgba(207, 215, 230, 0.04);
  animation-delay: -2.4s;
}

.ring-three {
  inset: 68px;
  border-color: rgba(164, 177, 205, 0.18);
  box-shadow: 0 0 14px rgba(164, 177, 205, 0.08);
  animation-delay: -4s;
}

.glow-core {
  width: 70px;
  height: 70px;
  background:
    radial-gradient(circle, rgba(248, 249, 252, 0.92) 0 18%, rgba(190, 196, 220, 0.72) 24%, rgba(101, 84, 153, 0.4) 52%, rgba(127, 43, 65, 0.18) 72%, transparent 86%);
  box-shadow:
    0 0 0 10px rgba(207, 215, 230, 0.035),
    0 0 32px rgba(101, 84, 153, 0.2),
    0 0 54px rgba(127, 43, 65, 0.14);
  filter: blur(0.1px);
  animation: coreDrift 6s ease-in-out infinite;
}

.home-glow::before,
.home-glow::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 999px;
  border: 1px dashed rgba(200, 181, 230, 0.16);
  animation: slowRotate 18s linear infinite;
}

.home-glow::after {
  inset: 16px;
  border-style: solid;
  border-color: rgba(143, 52, 82, 0.14);
  animation-direction: reverse;
  animation-duration: 24s;
}

.home-card .eyebrow {
  color: #c7b7d6;
}

.home-card h1 {
  max-width: 590px;
  margin: 0 auto;
  font-size: 40px;
}

.home-card .subtitle {
  max-width: 560px;
  color: var(--text-secondary);
}

.test-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px auto 0;
  max-width: 560px;
}

.test-info div {
  min-height: 86px;
  padding: 16px 12px;
  border: 1px solid rgba(110, 94, 151, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(13, 14, 20, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.test-info strong,
.test-info span {
  display: block;
}

.test-info strong {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
}

.test-info span {
  margin-top: 8px;
  color: #aeb8ca;
  font-size: 13px;
  line-height: 1.5;
}

.system-status {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 22px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(96, 112, 154, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(7, 9, 14, 0.56);
  text-align: left;
}

.system-status span {
  position: relative;
  padding-left: 18px;
  color: #c4ccd9;
  font-size: 13px;
  line-height: 1.55;
}

.system-status span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7a6aa9;
  box-shadow: 0 0 10px rgba(122, 106, 169, 0.48);
}

.home-card .start-button {
  width: 172px;
  color: #f8f9fc;
  border: 1px solid rgba(189, 167, 216, 0.3);
  background:
    linear-gradient(135deg, #6b2840 0%, #5f427f 56%, #75466f 100%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 24px rgba(95, 66, 127, 0.2);
}

/* 隐藏暂时不需要显示的页面 */
.is-hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0;
  color: #aeb8c9;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
}

.subtitle {
  margin: 22px auto 0;
  max-width: 500px;
  font-size: 18px;
  line-height: 1.8;
  color: #d9deea;
}

.note {
  margin: 18px auto 0;
  max-width: 500px;
  font-size: 15px;
  line-height: 1.7;
  color: #b8c1d0;
}

/* 首页按钮：点击后进入第一道题 */
.start-button {
  margin-top: 34px;
  width: 160px;
  min-height: 46px;
  border: 1px solid rgba(170, 180, 205, 0.22);
  border-radius: 999px;
  color: #eff3f8;
  background: linear-gradient(135deg, #4d5367, #6f7894);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.start-button:hover,
.primary-action:hover,
.next-button:not(:disabled):hover {
  filter: brightness(1.08);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(93, 79, 143, 0.18);
}

.home-card .start-button:hover {
  background: linear-gradient(135deg, #7b3149 0%, #6d4f91 52%, #885177 100%);
}

/* 开发测试按钮，上线前删除 */
.dev-random-result-button,
.dev-preview-role-07 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px dashed rgba(217, 222, 234, 0.28);
  border-radius: 999px;
  color: #cfd7e6;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.dev-random-result-button:hover,
.dev-preview-role-07:hover {
  color: #f6f8fb;
  border-color: rgba(217, 222, 234, 0.42);
  background: rgba(255, 255, 255, 0.075);
}

/* 开发测试：12人格固定预览器，上线前删除或隐藏 */
.dev-personality-preview {
  width: 100%;
  margin-top: 12px;
  border: 1px dashed rgba(217, 222, 234, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.dev-personality-preview summary {
  padding: 12px 14px;
  color: #cfd7e6;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.dev-personality-preview summary::-webkit-details-marker {
  display: none;
}

.dev-personality-preview summary::after {
  content: "+";
  float: right;
}

.dev-personality-preview[open] summary::after {
  content: "−";
}

.dev-personality-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.dev-personality-preview-button {
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid rgba(217, 222, 234, 0.18);
  border-radius: 6px;
  color: #cfd7e6;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.dev-personality-preview-button:hover {
  color: #f6f8fb;
  border-color: rgba(178, 124, 166, 0.48);
  background: rgba(109, 79, 145, 0.16);
}

.init-card {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: min(8vh, 64px) 22px;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(3, 8, 17, 0.18), rgba(8, 13, 26, 0.34) 48%, rgba(13, 10, 23, 0.26));
  box-shadow:
    inset 0 1px 0 rgba(205, 215, 232, 0.06);
  animation: liquidVeilIn 3.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.init-card.is-exiting {
  animation: initCardOut 0.55s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.init-card .eyebrow,
.init-card h1,
.init-complete,
.init-steps {
  display: none;
}

.init-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(115deg, transparent 0 16%, rgba(66, 92, 139, 0.13) 28%, transparent 42%, rgba(86, 58, 125, 0.18) 57%, transparent 72%, rgba(82, 31, 54, 0.1) 86%, transparent),
    radial-gradient(ellipse at 34% 42%, rgba(43, 68, 111, 0.16), transparent 38%),
    radial-gradient(ellipse at 72% 58%, rgba(82, 53, 118, 0.18), transparent 42%),
    repeating-linear-gradient(180deg, rgba(215, 224, 240, 0.014) 0 1px, transparent 1px 28px);
  filter: blur(8px);
  animation: viewportLiquidFlow 3.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.init-card::after {
  content: "";
  position: absolute;
  inset: -15%;
  height: auto;
  background:
    radial-gradient(ellipse at 28% 42%, rgba(43, 68, 111, 0.22), transparent 36%),
    radial-gradient(ellipse at 68% 46%, rgba(82, 53, 118, 0.25), transparent 40%),
    radial-gradient(ellipse at 50% 78%, rgba(79, 29, 50, 0.12), transparent 42%);
  filter: blur(24px);
  animation: liquidMistVeil 3.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.init-card > * {
  position: relative;
  z-index: 1;
}

.init-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.init-orbit span {
  position: absolute;
  display: block;
  left: 50%;
  top: 50%;
  width: 140vw;
  height: 74vh;
  border-radius: 44% 56% 48% 52%;
  border: 0;
  background:
    radial-gradient(ellipse at center, transparent 0 42%, rgba(167, 150, 210, 0.11) 49%, transparent 58%),
    linear-gradient(90deg, transparent, rgba(55, 85, 132, 0.08), transparent);
  filter: blur(5px);
  transform: translate(-50%, -50%) rotate(-8deg) scaleX(0.72) scaleY(0.78);
  animation: liquidMembrane 3.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.init-orbit span:nth-child(2) {
  animation-delay: 0.22s;
  transform: translate(-50%, -50%) rotate(9deg) scaleX(0.64) scaleY(0.82);
  background:
    radial-gradient(ellipse at center, transparent 0 40%, rgba(88, 118, 164, 0.1) 49%, transparent 61%);
}

.init-orbit span:nth-child(3) {
  animation-delay: 0.46s;
  transform: translate(-50%, -50%) rotate(2deg) scaleX(0.7) scaleY(0.7);
  background:
    radial-gradient(ellipse at center, transparent 0 45%, rgba(119, 43, 68, 0.08) 52%, transparent 64%);
}

.init-core-field {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 176px;
  height: 176px;
  margin: 0;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.init-core-field span,
.init-core-field i {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.init-core-field span {
  inset: 0;
  border: 1px solid rgba(155, 139, 194, 0.12);
  box-shadow: inset 0 0 26px rgba(64, 45, 100, 0.1);
  animation: shadowCoreOrbit 9s linear infinite;
}

.init-core-field span:nth-child(2) {
  inset: 28px;
  border-color: rgba(91, 116, 154, 0.14);
  animation-duration: 12s;
  animation-direction: reverse;
}

.init-core-field span:nth-child(3) {
  inset: 58px;
  border-color: rgba(92, 34, 58, 0.16);
  animation-duration: 7s;
}

.init-core-field i {
  width: 72px;
  height: 72px;
  background:
    radial-gradient(circle at 42% 36%, rgba(194, 184, 216, 0.78) 0 10%, rgba(69, 47, 110, 0.74) 32%, rgba(18, 14, 32, 0.96) 62%, rgba(6, 11, 22, 0.86) 100%);
  box-shadow:
    0 0 0 14px rgba(67, 51, 105, 0.08),
    0 0 42px rgba(78, 56, 126, 0.34),
    0 0 70px rgba(6, 12, 24, 0.52);
  animation: shadowCoreBirth 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) both, initCore 5.2s ease-in-out infinite;
}

.init-mist {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.init-mist span {
  position: absolute;
  width: 58vw;
  height: 32vh;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.32;
  background: radial-gradient(circle, rgba(43, 68, 111, 0.2), transparent 68%);
  animation: initMistFlow 6.8s ease-in-out infinite;
}

.init-mist span:nth-child(1) {
  left: -18vw;
  top: 18vh;
}

.init-mist span:nth-child(2) {
  right: -18vw;
  top: 34vh;
  background: radial-gradient(circle, rgba(82, 53, 118, 0.22), transparent 68%);
  animation-delay: -2.2s;
}

.init-mist span:nth-child(3) {
  left: 18%;
  bottom: -12vh;
  background: radial-gradient(circle, rgba(79, 29, 50, 0.14), transparent 68%);
  animation-delay: -4.4s;
}

.init-card h1 {
  margin-top: 18px;
  color: #e7edf6;
  text-shadow: 0 0 24px rgba(105, 86, 150, 0.18);
}

.init-card .eyebrow {
  margin-top: min(39vh, 300px);
  color: #aeb8c9;
  letter-spacing: 0.12em;
}

.init-complete {
  margin: 12px 0 0;
  color: #cfd7e6;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0;
  animation: initCompleteReveal 4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.init-steps {
  display: grid;
  gap: 10px;
  width: min(340px, 100%);
  margin-top: 26px;
}

.init-steps span {
  padding: 10px 14px;
  border: 1px solid rgba(160, 175, 202, 0.12);
  border-radius: 999px;
  color: #cfd7e6;
  background:
    linear-gradient(90deg, rgba(44, 65, 103, 0.16), rgba(73, 49, 107, 0.12)),
    rgba(255, 255, 255, 0.034);
  font-size: 14px;
  animation: initStep 3s ease-in-out infinite;
}

.init-steps span:nth-child(2) {
  animation-delay: 0.35s;
}

.init-steps span:nth-child(3) {
  animation-delay: 0.7s;
}

.start-button:active,
.complete-button:active,
.nav-button:not(:disabled):active {
  transform: translateY(1px);
}

.start-button:focus-visible,
.option-button:focus-visible,
.prev-button:focus-visible,
.next-button:focus-visible,
.complete-button:focus-visible {
  outline: 3px solid rgba(154, 170, 205, 0.5);
  outline-offset: 4px;
}

/* 答题卡片：沿用首页卡片风格，内容改为左对齐方便阅读 */
.quiz-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: background 0.42s ease, border-color 0.42s ease, box-shadow 0.42s ease;
}

.quiz-card.space-enter {
  animation: quizSpaceEnter 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.quiz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(122, 94, 164, 0.08) 48%, transparent 58%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 12px);
  opacity: 0.45;
  animation: scanDrift 9s ease-in-out infinite;
}

.quiz-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(226, 217, 243, 0.06), transparent 13rem),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.14));
  opacity: 0.8;
}

.quiz-card > * {
  position: relative;
  z-index: 1;
}

.quiz-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mist {
  position: absolute;
  width: 360px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(197, 181, 225, 0.12), transparent 66%);
  filter: blur(18px);
  opacity: 0.55;
  animation: mistFlow 12s ease-in-out infinite;
}

.mist-one {
  left: -120px;
  top: 90px;
}

.mist-two {
  right: -140px;
  bottom: 70px;
  background: radial-gradient(circle, rgba(150, 50, 78, 0.12), transparent 66%);
  animation-delay: -5s;
}

.quiz-core {
  position: absolute;
  left: 50%;
  top: 74px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  translate: -50% 0;
  background:
    radial-gradient(circle, rgba(246, 244, 252, 0.42) 0 15%, rgba(126, 97, 178, 0.18) 42%, rgba(127, 43, 65, 0.08) 72%, transparent 82%);
  box-shadow:
    0 0 0 18px rgba(177, 154, 216, 0.025),
    0 0 54px rgba(126, 93, 184, 0.18);
  animation: quizCoreBreath 5.4s ease-in-out infinite;
}

.chapter-one {
  border-color: rgba(107, 112, 162, 0.25);
  background:
    radial-gradient(circle at 50% 18%, rgba(78, 99, 148, 0.16), transparent 22rem),
    rgba(15, 17, 25, 0.9);
}

.chapter-two {
  border-color: rgba(130, 94, 174, 0.27);
  background:
    radial-gradient(circle at 50% 18%, rgba(102, 73, 166, 0.2), transparent 24rem),
    rgba(15, 14, 24, 0.91);
}

.chapter-three {
  border-color: rgba(151, 57, 88, 0.28);
  background:
    radial-gradient(circle at 50% 18%, rgba(127, 43, 65, 0.18), transparent 24rem),
    rgba(18, 14, 21, 0.92);
}

.chapter-four {
  border-color: rgba(112, 41, 70, 0.34);
  background:
    radial-gradient(circle at 50% 18%, rgba(72, 35, 110, 0.22), transparent 18rem),
    radial-gradient(circle at 78% 10%, rgba(128, 36, 58, 0.16), transparent 20rem),
    rgba(12, 11, 18, 0.94);
}

.chapter-transition {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(circle at center, rgba(22, 16, 31, 0.94), rgba(8, 8, 12, 0.86) 64%, transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 12px);
}

.chapter-transition span {
  color: #c4b4d7;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-transition strong {
  color: #f7f2fb;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.quiz-card.chapter-shifting .chapter-transition {
  animation: chapterGate 0.92s ease both;
}

.chapter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid rgba(139, 119, 184, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(93, 79, 143, 0.18), rgba(127, 43, 65, 0.11)),
    rgba(8, 10, 15, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.chapter-panel div {
  min-width: 0;
}

.chapter-system,
.chapter-status,
.chapter-kicker,
#chapterProgress {
  display: block;
  color: #aeb8ca;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-system {
  color: #8f9bb0;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.chapter-status {
  margin-top: 2px;
  color: #c9d0dc;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.chapter-kicker {
  margin-top: 9px;
  color: #c7b7d6;
}

.chapter-panel strong {
  display: block;
  margin-top: 3px;
  color: #f0edf7;
  font-size: 16px;
  line-height: 1.45;
}

#chapterProgress {
  flex: 0 0 auto;
  color: #d2c5df;
  text-align: right;
  padding: 6px 10px;
  border: 1px solid rgba(199, 183, 214, 0.16);
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.24);
}

.quiz-card .question-title,
.quiz-card .option-list,
.quiz-card .response-guide,
.quiz-card .analysis-status {
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.quiz-card.is-leaving .question-title,
.quiz-card.is-leaving .option-list,
.quiz-card.is-leaving .response-guide,
.quiz-card.is-leaving .analysis-status {
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  filter: blur(4px);
}

.quiz-card.is-entering .question-title,
.quiz-card.is-entering .option-list,
.quiz-card.is-entering .response-guide,
.quiz-card.is-entering .analysis-status {
  animation: quizFadeIn 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.quiz-card.answer-recorded .analysis-status::before {
  animation: statusPulse 0.5s ease;
}

.complete-card {
  --result-bg: #111523;
  --result-panel: rgba(29, 31, 44, 0.82);
  --result-panel-deep: rgba(18, 18, 29, 0.92);
  --result-border: rgba(166, 150, 184, 0.22);
  --result-border-gold: rgba(190, 154, 99, 0.34);
  --result-text: rgba(244, 240, 247, 0.94);
  --result-muted: rgba(218, 210, 225, 0.67);
  --result-body: rgba(236, 231, 241, 0.8);
  --result-gold: rgba(205, 169, 105, 0.88);
  --result-purple: rgba(143, 99, 154, 0.88);
  max-width: 820px;
  text-align: left;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.complete-card h1 {
  max-width: 640px;
}

.result-loader {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  gap: 18px;
  text-align: center;
  overflow: hidden;
}

.scan-frame {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(150, 128, 196, 0.18);
  border-radius: 16px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(190, 168, 220, 0.1), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 16px);
  box-shadow: inset 0 0 34px rgba(93, 79, 143, 0.08);
  animation: scanFramePulse 1.8s ease-in-out infinite;
}

.scan-frame::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(236, 220, 247, 0.82), transparent);
  box-shadow: 0 0 18px rgba(168, 61, 93, 0.42);
  animation: scanLine 1.8s ease-in-out infinite;
}

.result-loader > *:not(.scan-frame) {
  position: relative;
  z-index: 1;
}

.loader-orbit {
  position: relative;
  width: 154px;
  height: 154px;
  border-radius: 999px;
  border: 1px solid rgba(217, 222, 234, 0.18);
  box-shadow:
    0 0 38px rgba(122, 26, 46, 0.2),
    inset 0 0 30px rgba(115, 88, 174, 0.12);
  animation: loaderBreath 1.8s ease-in-out infinite;
}

.loader-orbit span {
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  border: 1px solid rgba(168, 61, 93, 0.32);
  animation: loaderSpin 3.8s linear infinite;
}

.loader-orbit span:nth-child(2) {
  inset: 36px;
  border-color: rgba(115, 88, 174, 0.34);
  animation-duration: 3s;
  animation-direction: reverse;
}

.loader-orbit span:nth-child(3) {
  inset: 58px;
  border-color: rgba(217, 222, 234, 0.3);
  animation-duration: 2.4s;
}

.loader-steps {
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
  color: #c5ccda;
  font-size: 14px;
  line-height: 1.6;
}

.loader-steps span {
  padding: 9px 12px;
  border: 1px solid rgba(217, 222, 234, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  animation: loaderStep 1.8s ease-in-out infinite;
}

.loader-steps span:nth-child(2) {
  animation-delay: 0.28s;
}

.loader-steps span:nth-child(3) {
  animation-delay: 0.56s;
}

.result-loader-note {
  width: min(360px, 100%);
  margin: 0;
  color: #bfc7d5;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.result-content {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  animation: resultReveal 0.55s ease both;
}

.shadow-level {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 20px 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(217, 222, 234, 0.2);
  border-radius: 999px;
  color: #eef1f5;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
  font-weight: 700;
}

.result-archive-head .shadow-level {
  min-height: 0;
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #aeb8ca;
  background: transparent;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.result-status-title {
  margin: 0 0 18px;
  color: rgba(228, 220, 234, 0.74);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
}

.result-archive-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(159, 143, 194, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(93, 79, 143, 0.16), rgba(127, 43, 65, 0.08)),
    rgba(8, 10, 15, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.result-archive-head::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 231, 247, 0.32), transparent);
  animation: archiveSealSweep 1.4s ease both;
}

.result-archive-head span {
  display: block;
  color: #9fa9ba;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.result-archive-label {
  color: #d9dfeb !important;
  font-weight: 900;
}

#resultFileNo {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(199, 183, 214, 0.16);
  border-radius: 999px;
  color: #d2c5df;
  background: rgba(5, 8, 14, 0.24);
}

.profile-summary {
  position: relative;
  overflow: hidden;
  border-color: rgba(217, 222, 234, 0.14);
}

.result-hero-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 26px auto 0;
  padding: 0;
}

.result-hero-card::before {
  content: "";
  position: absolute;
  inset: 72px 11% 64px;
  display: block;
  pointer-events: none;
  background: radial-gradient(circle, rgba(105, 69, 119, 0.16), transparent 68%);
  filter: blur(24px);
}

.result-hero-card.card-reveal-ritual::before {
  --arcana-peak-opacity: 0.2;
  --arcana-final-opacity: 0.08;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(96vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(190, 153, 91, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 35%, rgba(188, 151, 90, 0.16) 35.2% 35.7%, transparent 36% 45%, rgba(174, 137, 81, 0.12) 45.2% 45.7%, transparent 46% 57%, rgba(194, 158, 96, 0.14) 57.2% 57.6%, transparent 58%),
    repeating-conic-gradient(from 0deg, rgba(201, 167, 104, 0.14) 0 0.7deg, transparent 0.7deg 11.25deg),
    radial-gradient(circle, rgba(91, 57, 104, 0.14), rgba(148, 110, 65, 0.06) 48%, rgba(5, 6, 10, 0.14) 64%, transparent 74%);
  filter: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) rotate(-35deg) scale(0.88);
  transform-origin: center;
  will-change: transform, opacity;
  animation: arcanaRitualAwaken 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result-hero-card > * {
  position: relative;
  z-index: 1;
}

.result-tarot-card {
  --card-reveal-inset: 12px;
  --gilded-start-blur: 4px;
  position: relative;
  width: min(100%, 370px);
  margin: 12px auto 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(176, 151, 192, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(84, 61, 111, 0.32), rgba(15, 20, 34, 0.96) 48%, rgba(60, 31, 48, 0.48)),
    #0b0f19;
  box-shadow:
    inset 0 0 0 1px rgba(224, 211, 232, 0.07),
    0 22px 46px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(100, 68, 119, 0.1);
  transform-style: preserve-3d;
}

.result-tarot-card::before,
.result-tarot-card::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(229, 220, 238, 0.42), transparent);
}

.result-tarot-card::before {
  top: 10px;
}

.result-tarot-card::after {
  bottom: 10px;
}

.result-tarot-card > * {
  position: relative;
  z-index: 1;
}

.result-tarot-card.card-reveal-waiting {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 26px, 0) scale(0.95) rotateX(4deg);
  filter: blur(var(--gilded-start-blur)) brightness(0.68) saturate(0.82);
}

.result-tarot-card.card-reveal-gilded {
  will-change: transform, opacity, filter;
  animation: gildedCardReveal 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result-tarot-card.card-reveal-gilded::before {
  z-index: 3;
  inset: 0;
  width: auto;
  height: auto;
  border: 1px solid rgba(190, 151, 86, 0.46);
  border-radius: inherit;
  background: transparent;
  opacity: 0;
  box-shadow: 0 0 0 rgba(166, 126, 69, 0);
  animation: gildedFrameWake 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result-tarot-card.card-reveal-gilded::after {
  z-index: 3;
  top: -18%;
  bottom: -18%;
  left: -62%;
  right: auto;
  width: 46%;
  height: auto;
  opacity: 0;
  background: linear-gradient(
    115deg,
    transparent 18%,
    rgba(255, 255, 255, 0.025) 36%,
    rgba(222, 190, 130, 0.12) 50%,
    rgba(255, 255, 255, 0.035) 64%,
    transparent 82%
  );
  transform: translate3d(-140%, 0, 0) skewX(-12deg);
  will-change: transform, opacity;
  animation: gildedCardSheen 0.94s ease-out 0.46s both;
}

.ritual-corner-light {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(226, 192, 126, 0.82) 0 1px, rgba(180, 138, 75, 0.26) 2px, transparent 4px);
  animation: ritualCornerAwaken 0.38s ease-out var(--ritual-corner-delay) both;
}

.ritual-corner-light::before,
.ritual-corner-light::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(205, 166, 100, 0.44), transparent);
  transform: translate3d(-50%, -50%, 0);
}

.ritual-corner-light::before {
  width: 14px;
  height: 1px;
}

.ritual-corner-light::after {
  width: 1px;
  height: 14px;
}

.ritual-corner-light--top-left {
  --ritual-corner-delay: 0.36s;
  top: 5px;
  left: 5px;
}

.ritual-corner-light--top-right {
  --ritual-corner-delay: 0.46s;
  top: 5px;
  right: 5px;
}

.ritual-corner-light--bottom-right {
  --ritual-corner-delay: 0.56s;
  right: 5px;
  bottom: 5px;
}

.ritual-corner-light--bottom-left {
  --ritual-corner-delay: 0.66s;
  bottom: 5px;
  left: 5px;
}

.result-hero-card.card-reveal-pending > .result-lead {
  opacity: 0;
  transform: translateY(8px);
}

.result-hero-card.card-reveal-caption > .result-lead {
  animation: gildedCaptionReveal 0.45s ease-out 0.2s both;
}

@keyframes gildedCardReveal {
  0% {
    opacity: 0;
    transform: perspective(1000px) translate3d(0, 26px, 0) scale(0.95) rotateX(4deg);
    filter: blur(var(--gilded-start-blur)) brightness(0.68) saturate(0.82);
  }

  72% {
    opacity: 1;
    transform: perspective(1000px) translate3d(0, -3px, 0) scale(1.012) rotateX(0deg);
    filter: blur(0) brightness(1.06) saturate(1.05);
  }

  100% {
    opacity: 1;
    transform: perspective(1000px) translate3d(0, 0, 0) scale(1) rotateX(0deg);
    filter: blur(0) brightness(1) saturate(1);
  }
}

@keyframes arcanaRitualAwaken {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(-35deg) scale(0.88);
  }

  54% {
    opacity: var(--arcana-peak-opacity);
    transform: translate3d(-50%, -50%, 0) rotate(24deg) scale(1);
  }

  100% {
    opacity: var(--arcana-final-opacity);
    transform: translate3d(-50%, -50%, 0) rotate(45deg) scale(1);
  }
}

@keyframes gildedFrameWake {
  0%, 18% {
    opacity: 0;
    border-color: rgba(190, 151, 86, 0.08);
    box-shadow: 0 0 0 rgba(166, 126, 69, 0);
  }

  48% {
    opacity: 0.72;
    border-color: rgba(205, 169, 101, 0.5);
    box-shadow: 0 0 18px rgba(166, 126, 69, 0.16);
  }

  100% {
    opacity: 0;
    border-color: rgba(190, 151, 86, 0.12);
    box-shadow: 0 0 0 rgba(166, 126, 69, 0);
  }
}

@keyframes gildedCardSheen {
  0% {
    opacity: 0;
    transform: translate3d(-140%, 0, 0) skewX(-12deg);
  }

  28% {
    opacity: 0.52;
  }

  82% {
    opacity: 0.34;
  }

  100% {
    opacity: 0;
    transform: translate3d(430%, 0, 0) skewX(-12deg);
  }
}

@keyframes ritualCornerAwaken {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  42% {
    opacity: 0.92;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.84);
  }
}

@keyframes gildedCaptionReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.result-role-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(216, 222, 234, 0.1);
  border-radius: 999px;
  color: rgba(216, 222, 234, 0.54);
  background: rgba(5, 8, 14, 0.16);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
}

.result-identity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-share-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(224, 215, 235, 0.16);
  border-radius: 999px;
  color: #d8deea;
  background: rgba(5, 8, 14, 0.28);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.personality-visual-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(2, 4, 8, 0.48)),
    radial-gradient(circle at 50% 28%, rgba(209, 196, 231, 0.18), transparent 42%),
    radial-gradient(circle at 52% 80%, rgba(120, 43, 67, 0.18), transparent 44%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 14px),
    rgba(5, 8, 14, 0.28);
  animation: shadowVisualBreath 5.8s ease-in-out infinite;
}

.personality-visual-slot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(224, 215, 235, 0.1);
  border-radius: 10px;
  pointer-events: none;
}

.personality-visual-slot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 3, 7, 0.58));
}

.personality-visual-slot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

.personality-visual-slot.has-image::before {
  display: none;
}

.personality-visual-slot.has-image::after {
  display: none;
}

.result-tarot-card .personality-visual-slot {
  height: auto;
  max-height: none;
  aspect-ratio: 2 / 3;
}

.personality-visual-slot.has-placeholder .visual-mist {
  position: absolute;
  width: 72%;
  height: 26%;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.72;
  background: radial-gradient(circle, rgba(225, 216, 240, 0.18), transparent 68%);
  animation: shadowMistDrift 8s ease-in-out infinite;
}

.personality-visual-slot.has-placeholder .visual-mist.one {
  left: -12%;
  top: 18%;
}

.personality-visual-slot.has-placeholder .visual-mist.two {
  right: -16%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(151, 50, 78, 0.18), transparent 68%);
  animation-delay: -3.4s;
}

.personality-visual-slot.has-placeholder .visual-silhouette {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 36%;
  max-width: 138px;
  aspect-ratio: 2 / 3;
  border-radius: 48% 48% 18% 18%;
  background:
    radial-gradient(circle at 50% 18%, rgba(238, 234, 247, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(17, 18, 25, 0.24), rgba(2, 3, 7, 0.88));
  box-shadow:
    0 0 42px rgba(212, 198, 232, 0.12),
    0 22px 60px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  animation: shadowFigureBreath 5.8s ease-in-out infinite;
}

.personality-visual-slot.has-placeholder .visual-horizon {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 221, 242, 0.26), transparent);
}

.personality-visual-slot.has-placeholder .visual-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(238, 231, 247, 0.72);
  box-shadow: 0 0 12px rgba(238, 231, 247, 0.5);
  animation: shadowParticleFloat 6.4s ease-in-out infinite;
}

.personality-visual-slot.has-placeholder .visual-particle.p1 {
  left: 28%;
  top: 28%;
}

.personality-visual-slot.has-placeholder .visual-particle.p2 {
  right: 24%;
  top: 38%;
  animation-delay: -2.1s;
}

.personality-visual-slot.has-placeholder .visual-particle.p3 {
  left: 52%;
  bottom: 24%;
  animation-delay: -4s;
}

.result-hero-card h2 {
  margin: 12px 0 10px;
  color: #f7f3fb;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: 0;
  text-align: center;
}

.role-symbol-line {
  margin: 0 0 8px;
  color: #c9d1df;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 800;
  text-align: center;
}

.result-subtitle {
  margin: 0;
  color: #dfe5ef;
  font-size: 17px;
  line-height: 1.75;
}

.result-keywords {
  justify-content: center;
  margin-top: 14px;
}

.result-section-kicker,
.result-section .result-section-kicker {
  margin: 0 0 8px;
  color: var(--result-gold);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.result-hero-card blockquote {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(219, 207, 232, 0.16);
  color: #f2edf6;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 700;
}

.result-snapshot p {
  display: block;
  overflow: visible;
  white-space: pre-line;
}

.result-snapshot p.has-rich-copy {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.result-bright-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--result-border);
  border-bottom: 1px solid var(--result-border);
}

.result-bright-grid > div {
  min-width: 0;
  padding: 18px 16px;
}

.result-bright-grid > div + div {
  border-left: 1px solid var(--result-border);
}

.result-bright-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--result-gold);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.result-bright-grid p {
  color: var(--result-body);
  font-size: 14px;
  line-height: 1.75;
}

.shadow-flip-section {
  overflow: hidden;
  padding-top: 20px;
  padding-bottom: 26px;
  background:
    linear-gradient(145deg, rgba(35, 36, 50, 0.88), rgba(24, 25, 37, 0.92)),
    var(--result-panel-deep);
}

.shadow-flip-stage {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  margin: 26px auto 20px;
  perspective: 1100px;
}

.shadow-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.shadow-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.shadow-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px 24px;
  overflow: hidden;
  border: 1px solid var(--result-border);
  border-radius: 16px;
  backface-visibility: hidden;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(224, 213, 232, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(96, 62, 113, 0.1);
}

.shadow-flip-face::before,
.shadow-flip-face::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 222, 239, 0.38), transparent);
}

.shadow-flip-face::before {
  top: 18px;
}

.shadow-flip-face::after {
  bottom: 18px;
}

.shadow-flip-front {
  background:
    linear-gradient(145deg, rgba(77, 62, 113, 0.54), rgba(25, 30, 48, 0.92)),
    #111521;
}

.shadow-flip-back {
  transform: rotateY(180deg);
  background:
    linear-gradient(145deg, rgba(88, 39, 55, 0.62), rgba(30, 19, 37, 0.94)),
    #17111c;
}

.shadow-flip-face > span {
  color: rgba(225, 218, 236, 0.58);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 900;
}

.shadow-flip-face > strong {
  margin: 18px 0 9px;
  color: #f5f1f8;
  font-size: 25px;
  line-height: 1.25;
}

.shadow-flip-face > p {
  color: var(--result-body);
  font-size: 13px;
  line-height: 1.65;
}

.shadow-flip-face .shadow-face-label {
  margin: 0 0 10px;
  color: #c9a7b0;
  font-size: 11px;
  font-weight: 900;
}

.shadow-flip-back > strong {
  margin: 8px 0 14px;
  color: #f0dbe1;
  font-size: 20px;
  line-height: 1.3;
}

.shadow-flip-face .shadow-face-symbol {
  margin: 0 0 16px;
  color: #b9c2d2;
  font-size: 12px;
  line-height: 1.5;
}

.shadow-flip-face .shadow-face-symbol b {
  color: #e5dce9;
  font-weight: 900;
}

.shadow-flip-button {
  display: block;
  min-width: 160px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0 18px;
  border: 1px solid rgba(177, 150, 190, 0.3);
  border-radius: 999px;
  color: #eee9f3;
  background: linear-gradient(135deg, rgba(92, 55, 103, 0.88), rgba(71, 47, 88, 0.88));
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.shadow-flip-button[aria-pressed="true"] {
  color: var(--result-muted);
  background: rgba(31, 27, 42, 0.64);
}

.shadow-flip-button:hover {
  border-color: rgba(195, 167, 203, 0.46);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.shadow-flip-button:active {
  transform: translateY(1px);
}

.shadow-flip-button:focus-visible {
  outline: 2px solid rgba(210, 195, 225, 0.72);
  outline-offset: 3px;
}

.result-relationship-summary p:last-child {
  max-width: 680px;
}

.result-section p.has-rich-copy,
.dossier-content p {
  white-space: pre-line;
}

.result-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.result-pair > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--result-border);
  border-radius: 12px;
  background: rgba(18, 18, 29, 0.42);
}

.result-pair > div:first-child h2 {
  color: var(--result-text);
}

.result-pair > div:last-child h2 {
  color: var(--result-muted);
}

.result-point-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--result-muted);
  font-size: 14px;
  line-height: 1.6;
}

.result-point-list li {
  position: relative;
  padding-left: 14px;
}

.result-point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(226, 214, 238, 0.66);
  box-shadow: 0 0 10px rgba(201, 177, 224, 0.28);
}

.result-pair > div:last-child .result-point-list li::before {
  background: rgba(180, 103, 124, 0.76);
  box-shadow: 0 0 10px rgba(151, 50, 78, 0.3);
}

.relation-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 4px;
  border: 1px solid var(--result-border);
  border-radius: 12px;
  background: rgba(18, 18, 29, 0.42);
}

.relation-tab {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  color: #b9c2d2;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.relation-tab.is-active {
  color: #f7f3fb;
  background:
    linear-gradient(135deg, rgba(126, 43, 74, 0.32), rgba(91, 72, 142, 0.36)),
    rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.growth-card {
  border-color: rgba(198, 180, 128, 0.26);
  background:
    linear-gradient(180deg, rgba(185, 146, 83, 0.08), transparent),
    rgba(255, 255, 255, 0.04);
}

.dossier-content {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.dossier-content section {
  position: relative;
  padding: 16px;
  border: 1px solid var(--result-border);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(41, 38, 52, 0.58), rgba(24, 24, 35, 0.74)),
    var(--result-panel-deep);
}

.dossier-content section::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--result-border-gold), transparent);
}

.dossier-content span {
  display: block;
  margin-bottom: 5px;
  color: var(--result-gold);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.dossier-content h3 {
  margin: 0 0 7px;
  color: var(--result-text);
  font-size: 16px;
  line-height: 1.5;
}

.dossier-content p,
.dossier-content li {
  color: var(--result-body);
  font-size: 14px;
  line-height: 1.8;
}

.dossier-share-quote blockquote {
  margin: 0;
  color: #eee8f3;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
}

.dossier-content p,
.dossier-content ul {
  margin: 0;
}

.dossier-content ul {
  padding-left: 1.1em;
}

.archive-summary::before {
  content: "PROFILE GENERATED";
  position: absolute;
  right: 16px;
  top: 14px;
  color: rgba(215, 222, 234, 0.18);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.archive-summary .result-tag {
  min-height: 40px;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 10px;
  color: #f7f3fb;
  background:
    linear-gradient(135deg, rgba(126, 43, 74, 0.28), rgba(91, 72, 142, 0.34)),
    rgba(255, 255, 255, 0.06);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.core-trait-label {
  margin: 8px 0 12px;
  color: #cfd7e6;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.shadow-dimension .shadow-fill {
  width: 0%;
  background: linear-gradient(90deg, #8999b7, #d8dfeb);
}

.shadow-dimension--selfFocus .shadow-fill {
  background: linear-gradient(90deg, #8e7bb7, #d4bd82);
}

.shadow-dimension--coldImpulsivity .shadow-fill {
  background: linear-gradient(90deg, #597d9b, #a8d2d3);
}

.dimension-insights {
  display: grid;
  gap: 0;
  max-height: 0;
  padding-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 0.32s ease,
    gap 0.32s ease,
    opacity 0.24s ease,
    transform 0.32s ease;
}

.dossier-shadow-dimensions.is-detail-expanded .dimension-insights {
  gap: 7px;
  max-height: 320px;
  padding-top: 2px;
  opacity: 1;
  transform: translateY(0);
}

.shadow-dimension-detail-toggle {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 1px solid var(--result-border);
  border-radius: 999px;
  outline: none;
  color: var(--result-muted);
  background: rgba(34, 29, 43, 0.62);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.shadow-dimension-detail-toggle:hover {
  border-color: rgba(189, 161, 199, 0.38);
  background: rgba(48, 38, 57, 0.72);
  transform: translateY(-1px);
}

.shadow-dimension-detail-toggle:focus-visible {
  outline: none;
  border-color: rgba(189, 161, 199, 0.5);
  box-shadow: 0 0 0 3px rgba(143, 99, 154, 0.14);
}

.dossier-shadow-dimensions .shadow-deep-dossier {
  display: none;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(217, 222, 234, 0.1);
}

.dossier-shadow-dimensions.is-detail-expanded .shadow-deep-dossier {
  display: grid;
  animation: shadowDetailReveal 0.35s ease both;
}

.dossier-content .dimension-insight {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  color: var(--result-body);
  font-size: 13px;
  line-height: 1.65;
}

.dossier-content .dimension-insight span {
  display: block;
  margin: 0;
  color: rgba(225, 211, 229, 0.56);
  font-size: 10px;
  line-height: 1.65;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.theme-balanced {
  --result-theme-glow: rgba(91, 112, 151, 0.13);
}

.theme-strategy {
  --result-theme-glow: rgba(112, 72, 145, 0.15);
}

.theme-selfFocus {
  --result-theme-glow: rgba(160, 120, 70, 0.13);
}

.theme-coldImpulsivity {
  --result-theme-glow: rgba(127, 58, 85, 0.14);
}

.theme-domination {
  --result-theme-glow: rgba(112, 43, 67, 0.16);
}

.theme-balanced,
.theme-strategy,
.theme-selfFocus,
.theme-coldImpulsivity,
.theme-domination {
  border-color: var(--result-border);
  background:
    radial-gradient(circle at 50% 7%, var(--result-theme-glow), transparent 31rem),
    linear-gradient(180deg, #121624, var(--result-bg) 36%, #10131e);
}

.theme-balanced .shadow-level,
.theme-balanced .shadow-fill {
  background: linear-gradient(90deg, #7fa9da, #b9d6f0);
}

.theme-strategy .shadow-level,
.theme-strategy .shadow-fill {
  background: linear-gradient(90deg, #4e2d7c, #9274d8);
}

.theme-selfFocus .shadow-level,
.theme-selfFocus .shadow-fill {
  background: linear-gradient(90deg, #b9833e, #7650a4);
}

.theme-coldImpulsivity .shadow-level,
.theme-coldImpulsivity .shadow-fill {
  background: linear-gradient(90deg, #8f263c, #c45a68);
}

.theme-domination .shadow-level,
.theme-domination .shadow-fill {
  background: linear-gradient(90deg, #121014, #5f1824 55%, #a43d5d);
}

.theme-balanced .shadow-level,
.theme-strategy .shadow-level,
.theme-selfFocus .shadow-level,
.theme-coldImpulsivity .shadow-level,
.theme-domination .shadow-level {
  color: #10131a;
  border-color: transparent;
}

.theme-domination .shadow-level {
  color: #f6f8fb;
}

.result-visual {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
}

.result-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(255, 255, 255, 0.08) 50%, transparent 54%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 12px);
  opacity: 0.52;
  animation: resultScan 4.2s ease-in-out infinite;
}

.result-visual.personality-visual-slot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(224, 215, 235, 0.1);
  border-radius: 12px;
  pointer-events: none;
  background: none;
  opacity: 1;
  animation: none;
}

.result-visual.personality-visual-slot.has-image::before {
  display: none;
}

.visual-shape {
  position: absolute;
  display: block;
  border: 1px solid rgba(217, 222, 234, 0.36);
  background: rgba(174, 184, 201, 0.12);
  opacity: 0.9;
}

.visual-protected .visual-shape {
  border-radius: 999px;
  background: transparent;
  animation: softPulse 6s ease-in-out infinite;
}

.visual-protected .shape-one {
  inset: 20px 82px 20px 82px;
}

.visual-protected .shape-two {
  inset: 32px 60px 32px 60px;
  animation-delay: -1.6s;
}

.visual-protected .shape-three {
  inset: 44px 104px 44px 104px;
  animation-delay: -3s;
}

.visual-protected .shape-four {
  display: none;
}

.visual-foundation .visual-shape {
  border-radius: 999px;
  animation: gentleDrift 7s ease-in-out infinite;
}

.visual-foundation .shape-one {
  width: 86px;
  height: 86px;
  left: 50px;
  top: 16px;
}

.visual-foundation .shape-two {
  width: 86px;
  height: 86px;
  right: 50px;
  top: 16px;
  animation-delay: -2s;
}

.visual-foundation .shape-three,
.visual-foundation .shape-four {
  display: none;
}

.visual-mixed .visual-shape {
  left: 34px;
  right: 34px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(217, 222, 234, 0.36);
  animation: crossingLines 7s ease-in-out infinite;
  transform-origin: center;
}

.visual-mixed .shape-one {
  top: 40px;
  transform: rotate(8deg);
}

.visual-mixed .shape-two {
  top: 58px;
  transform: rotate(-8deg);
  animation-delay: -1.4s;
}

.visual-mixed .shape-three {
  top: 76px;
  transform: rotate(4deg);
  animation-delay: -2.8s;
}

.visual-mixed .shape-four {
  display: none;
}

.visual-control .visual-shape {
  border-radius: 14px;
  background: transparent;
  animation: tightenFrame 5.5s ease-in-out infinite;
}

.visual-control .shape-one {
  inset: 22px 58px;
}

.visual-control .shape-two {
  inset: 34px 76px;
  animation-delay: -1.8s;
}

.visual-control .shape-three,
.visual-control .shape-four {
  display: none;
}

.visual-manipulation .visual-shape {
  width: 102px;
  height: 62px;
  border-radius: 18px;
  animation: offsetLayers 6s ease-in-out infinite;
}

.visual-manipulation .shape-one {
  left: 58px;
  top: 24px;
}

.visual-manipulation .shape-two {
  left: 72px;
  top: 32px;
  animation-delay: -1.4s;
}

.visual-manipulation .shape-three {
  left: 86px;
  top: 40px;
  animation-delay: -2.8s;
}

.visual-manipulation .shape-four {
  display: none;
}

.visual-avoidance .visual-shape {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 0;
  background: rgba(217, 222, 234, 0.58);
  animation: nearFar 6s ease-in-out infinite;
}

.visual-avoidance .shape-one {
  left: 72px;
  top: 48px;
}

.visual-avoidance .shape-two {
  right: 72px;
  top: 48px;
  animation-direction: reverse;
}

.visual-avoidance .shape-three,
.visual-avoidance .shape-four {
  display: none;
}

.visual-low-protection .visual-shape {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(217, 222, 234, 0.42);
  animation: distantDrift 8s ease-in-out infinite;
}

.visual-low-protection .shape-one {
  left: 52px;
  top: 44px;
}

.visual-low-protection .shape-two {
  left: 112px;
  top: 72px;
  animation-delay: -2s;
}

.visual-low-protection .shape-three {
  right: 54px;
  top: 34px;
  animation-delay: -4s;
}

.visual-low-protection .shape-four {
  display: none;
}

.progress-info {
  margin-top: 4px;
  font-size: 14px;
  color: #bcc7db;
}

.progress-bar {
  width: 100%;
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* 进度宽度会由 JavaScript 根据题号更新 */
.progress-fill {
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c3650, #6963a7 68%, #9eabc4 100%);
  box-shadow: 0 0 16px rgba(137, 95, 184, 0.32);
}

.question-title {
  margin: 30px 0 12px;
  font-size: 24px;
  line-height: 1.55;
  font-weight: 700;
  color: #eef1f5;
}

.response-guide {
  margin: 0 0 20px;
  color: #aeb8c9;
  font-size: 14px;
  line-height: 1.7;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 116px;
  padding: 10px 4px 2px;
}

.option-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 94px;
  padding: 68px 4px 0;
  border: 0;
  border-radius: 18px;
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.option-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34px;
  width: var(--node-size, 42px);
  height: var(--node-size, 42px);
  border: 1px solid rgba(118, 91, 165, 0.4);
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 34%, rgba(229, 221, 242, 0.16) 0 16%, rgba(94, 72, 142, 0.18) 38%, rgba(13, 18, 31, 0.86) 78%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  opacity: 0.72;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 14px rgba(92, 72, 142, 0.12);
  transform: translate(-50%, -50%);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.24s ease;
  animation: nodeIdleBreath 3.6s ease-in-out infinite;
}

.option-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 34px;
  width: var(--node-size, 42px);
  height: var(--node-size, 42px);
  border-radius: 999px;
  border: 1px solid rgba(141, 100, 194, 0.38);
  background: radial-gradient(circle, rgba(137, 96, 196, 0.22), transparent 64%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  z-index: -1;
}

.option-button:nth-child(1),
.option-button:nth-child(5) {
  --node-size: 58px;
}

.option-button:nth-child(2),
.option-button:nth-child(4) {
  --node-size: 48px;
}

.option-button:nth-child(3) {
  --node-size: 36px;
}

.option-button:hover {
  color: #eef1f5;
  transform: translateY(-1px);
}

.option-button:hover::before {
  border-color: rgba(205, 190, 230, 0.52);
  opacity: 0.88;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 22px rgba(111, 86, 164, 0.22);
}

.option-button.selected {
  color: #f6f8fb;
  transform: translateY(-2px);
}

.option-button.selected::before {
  border-color: rgba(244, 230, 252, 0.72);
  opacity: 1;
  background:
    radial-gradient(circle at 40% 34%, rgba(248, 244, 252, 0.76) 0 15%, rgba(126, 91, 176, 0.42) 38%, rgba(41, 25, 64, 0.9) 76%),
    linear-gradient(145deg, rgba(114, 43, 73, 0.32), rgba(89, 71, 141, 0.18));
  box-shadow:
    0 0 0 7px rgba(101, 77, 153, 0.08),
    0 0 20px rgba(146, 105, 199, 0.32),
    0 0 34px rgba(114, 43, 73, 0.14);
  transform: translate(-50%, -50%) scale(1.08);
  animation: none;
}

.option-button.pulse::after {
  animation: optionRipple 0.48s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.option-button:active {
  transform: translateY(0) scale(0.98);
}

.analysis-status {
  min-height: 28px;
  margin: 18px 0 0;
  color: #c2cad8;
  font-size: 14px;
  line-height: 1.6;
}

.analysis-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 999px;
  background: #7b649f;
  box-shadow: 0 0 10px rgba(123, 100, 159, 0.4);
  vertical-align: 0.08em;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.nav-button {
  width: 138px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.prev-button {
  border: 1px solid rgba(141, 151, 180, 0.24);
  color: #dfe5ef;
  background: rgba(255, 255, 255, 0.05);
}

.prev-button:not(:disabled):hover,
.secondary-action:hover {
  border-color: rgba(124, 108, 168, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.next-button {
  color: #f6f7fb;
  border: 1px solid rgba(178, 157, 204, 0.28);
  background: linear-gradient(135deg, #6c3148, #604980 56%, #7a527b);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(95, 66, 127, 0.12);
}

/* 不可点击的导航按钮会变灰 */
.nav-button:disabled {
  color: rgba(215, 222, 234, 0.42);
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.72;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 18px 0 0;
  padding: 5px 12px;
  border: 1px solid rgba(127, 140, 173, 0.24);
  border-radius: 999px;
  color: #dce2ed;
  background: rgba(103, 113, 143, 0.16);
  font-size: 14px;
  font-weight: 700;
}

.result-lead {
  margin: 18px auto 0;
  max-width: 640px;
  color: #d9dfeb;
  font-size: 17px;
  line-height: 1.75;
  text-align: center;
}

.result-hero-card > .result-lead {
  position: relative;
  width: min(calc(100% - 40px), 370px);
  max-width: none;
  margin: 18px auto 0;
  padding-top: 20px;
  color: var(--result-text);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
  font-weight: 500;
  text-align: center;
}

.result-hero-card > .result-lead::before {
  content: "牌面判词";
  display: block;
  margin: 0 auto 10px;
  color: var(--result-gold);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.result-hero-card > .result-lead::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 46px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(191, 154, 112, 0.65),
    rgba(164, 119, 164, 0.55),
    transparent
  );
  transform: translateX(-50%);
}

.result-hero-card + .result-snapshot {
  margin-top: 44px;
}

.result-section {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 38px auto 0;
  padding: 24px;
  border: 1px solid var(--result-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(35, 36, 50, 0.88), rgba(24, 25, 37, 0.92)),
    var(--result-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -18px 40px rgba(5, 6, 12, 0.08);
}

.result-section::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--result-border-gold), rgba(143, 99, 154, 0.18), transparent);
}

.result-section h2 {
  margin: 0 0 14px;
  color: var(--result-text);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

.profile-module {
  position: relative;
}

.profile-module .result-tag {
  margin-top: 2px;
}

.module-copy {
  margin: 12px 0 0;
  color: var(--result-body);
  font-size: 15px;
  line-height: 1.8;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.keyword-list span {
  padding: 6px 10px;
  border: 1px solid var(--result-border);
  border-radius: 999px;
  color: var(--result-muted);
  background: rgba(18, 18, 29, 0.42);
  font-size: 13px;
  letter-spacing: 0;
}

.module-list {
  margin: 0;
  padding: 0 0 0 1.1em;
  color: var(--result-body);
  font-size: 15px;
  line-height: 1.8;
}

.module-list li + li {
  margin-top: 8px;
}

.result-section p,
.disclaimer {
  margin: 0;
  color: var(--result-body);
  font-size: 15px;
  line-height: 1.82;
}

.dimension-list {
  display: grid;
  gap: 10px;
}

.compact-dimensions {
  border-color: var(--result-border);
  background:
    radial-gradient(circle at 85% 0%, rgba(112, 78, 126, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(31, 31, 44, 0.94), rgba(19, 19, 30, 0.94));
}

.dossier-dimension-content {
  padding-bottom: 12px;
}

.shadow-dimension-standalone {
  width: 100%;
  max-width: 780px;
  margin: 38px auto 0;
  padding: 0;
}

.shadow-dimension-bridge {
  margin: 0 0 14px;
  padding: 0 2px;
  color: var(--result-muted);
  font-size: 14px;
  line-height: 1.75;
  text-align: center;
}

.shadow-dimension-awakening {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--result-border);
  border-radius: 16px;
  color: var(--result-muted);
  background: var(--result-panel-deep);
  font-size: 14px;
  font-weight: 800;
}

.shadow-dimension-awakening span {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: #a65868;
  box-shadow: 0 0 14px rgba(166, 88, 104, 0.62);
  animation: shadowParsingPulse 0.7s ease-in-out infinite alternate;
}

.dossier-content .dossier-shadow-dimensions {
  border-color: var(--result-border);
  background:
    radial-gradient(circle at 88% 0%, rgba(123, 84, 132, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(31, 31, 44, 0.96), rgba(19, 19, 30, 0.96));
}

.dossier-shadow-dimensions.is-entering {
  animation: shadowDimensionReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dossier-shadow-dimensions h2 {
  margin: 0;
  color: var(--result-text);
  font-size: 22px;
  line-height: 1.4;
}

.shadow-dimensions-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 14px;
}

.shadow-dimensions-heading {
  min-width: 0;
}

.shadow-dominance-summary {
  display: grid;
  gap: 6px;
  width: fit-content;
  min-width: 240px;
  max-width: 360px;
  padding: 12px 16px;
  border: 1px solid rgba(181, 154, 113, 0.2);
  border-radius: 12px;
  color: var(--result-body);
  background: rgba(15, 16, 27, 0.55);
  font-size: 12px;
  line-height: 1.55;
}

.shadow-summary-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.dossier-content .shadow-dominance-summary .shadow-summary-label,
.dossier-content .shadow-dominance-summary .shadow-summary-state {
  display: inline;
  margin: 0;
  color: rgba(199, 185, 207, 0.68);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dossier-content .shadow-dominance-summary .shadow-summary-state {
  color: rgba(205, 169, 105, 0.78);
}

.shadow-summary-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.dossier-content .shadow-dominance-summary .shadow-summary-values span {
  display: inline;
  margin: 0;
  color: rgba(240, 235, 244, 0.86);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0;
}

.shadow-summary-values strong {
  color: var(--result-gold);
  font-size: 12px;
  font-weight: 700;
}

.shadow-summary-values i {
  color: rgba(199, 185, 207, 0.42);
  font-style: normal;
}

.dossier-shadow-dimensions .result-section-kicker {
  margin: 0 0 7px;
  color: var(--result-gold);
  font-size: 11px;
  line-height: 1.4;
}

.dossier-shadow-dimensions .dimension-row > div:first-child > span,
.dossier-shadow-dimensions .dimension-row strong span {
  display: inline;
  margin: 0;
  letter-spacing: 0;
}

.dossier-shadow-dimensions .dimension-row > div:first-child > span {
  color: #dce3ee;
  font-size: 15px;
}

.dossier-shadow-dimensions .dimension-row > .dimension-heading {
  display: grid;
  gap: 8px;
}

.dimension-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dimension-level {
  color: rgba(225, 211, 229, 0.68);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.dimension-row {
  --shadow-band-glow: rgba(117, 133, 165, 0.18);
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(173, 183, 208, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(124, 113, 160, 0.09), transparent 48%),
    rgba(5, 7, 11, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.dimension-row.shadow-band--low {
  --shadow-band-glow: rgba(111, 139, 169, 0.28);
  border-color: rgba(111, 139, 169, 0.24);
}

.dimension-row.shadow-band--medium {
  --shadow-band-glow: rgba(128, 99, 171, 0.3);
  border-color: rgba(128, 99, 171, 0.26);
}

.dimension-row.shadow-band--high {
  --shadow-band-glow: rgba(132, 61, 79, 0.3);
  border-color: rgba(132, 61, 79, 0.28);
}

.dimension-row::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 220, 235, 0.48), transparent);
}

.dimension-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #dce3ee;
  font-size: 15px;
  line-height: 1.5;
}

.dimension-row strong {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  flex: 0 0 auto;
  color: #e7ebf2;
  font-size: 12px;
  letter-spacing: 0;
}

.dimension-row strong span {
  color: #c5ccda;
}

.dimension-row strong b {
  color: #f6f8fb;
  font-size: 17px;
  font-weight: 900;
}

.dimension-row.shadow-band--low strong b {
  color: #aabbd0;
}

.dimension-row.shadow-band--medium strong b {
  color: #b59bd7;
}

.dimension-row.shadow-band--high strong b {
  color: #c77b89;
}

.dimension-row p {
  margin: 0;
  color: var(--result-body);
  font-size: 15px;
  line-height: 1.75;
}

.dimension-bar {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(218, 225, 238, 0.08);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.32);
}

.dimension-fill {
  position: relative;
  width: 0%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  box-shadow: 0 0 14px rgba(178, 195, 218, 0.18);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.compact-dimensions .shadow-dimension--strategy .shadow-fill {
  background: linear-gradient(90deg, #5f4b87, #a487d0);
}

.compact-dimensions .shadow-dimension--selfFocus .shadow-fill {
  background: linear-gradient(90deg, #7d6335, #c7a861);
}

.compact-dimensions .shadow-dimension--coldImpulsivity .shadow-fill {
  background: linear-gradient(90deg, #65303e, #a65868);
}

.dimension-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
  transform: translateX(-120%);
}

.dimension-animation-host.is-awakening .dimension-row {
  animation: shadowAttributePulse 1s ease-out both;
}

.dimension-animation-host.is-awakening .dimension-fill::after {
  animation: shadowEnergySweep 1s ease-out both;
}

@keyframes shadowAttributePulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.035),
      0 10px 22px rgba(0, 0, 0, 0.12);
  }

  52% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 20px var(--shadow-band-glow);
  }
}

@keyframes shadowEnergySweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes shadowParsingPulse {
  from {
    opacity: 0.38;
    transform: scale(0.78);
  }

  to {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes shadowDimensionReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes shadowDetailReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .dimension-fill {
    transition: none;
  }

  .dimension-insights {
    transition: none;
  }

  .dimension-animation-host.is-awakening .dimension-row,
  .dimension-animation-host.is-awakening .dimension-fill::after,
  .shadow-dimension-awakening span,
  .dossier-shadow-dimensions.is-entering,
  .dossier-shadow-dimensions.is-detail-expanded .dimension-insights,
  .dossier-shadow-dimensions.is-detail-expanded .shadow-deep-dossier {
    animation: none;
  }
}

.healthy-fill {
  background: linear-gradient(90deg, #9aa9c5, #d8dfeb);
}

.risk-fill {
  background: linear-gradient(90deg, #6d3750, #6f63a7 72%, #a7b0c8);
}

.risk-meta {
  margin: 10px 0 8px;
  color: #aeb8c9;
  font-size: 14px;
  line-height: 1.6;
}

.score-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9deea;
  font-size: 14px;
}

.score-row strong {
  flex: 0 0 auto;
  color: #f6f8fb;
  font-size: 15px;
}

.disclaimer {
  margin-top: 20px;
  color: #aeb8c9;
  font-size: 14px;
}

.result-disclaimer {
  margin: 14px auto 0;
  max-width: 620px;
  color: rgba(174, 184, 201, 0.62);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.complete-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 780px;
  margin: 36px auto 0;
  flex-wrap: wrap;
}

.complete-button {
  min-width: 150px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--result-border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.shadow-card-action {
  min-width: 200px;
  border-color: var(--result-border);
  color: var(--result-muted);
  background: rgba(38, 31, 47, 0.7);
}

.shadow-card-action:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.secondary-action {
  border-color: var(--result-border);
  color: var(--result-muted);
  background: rgba(32, 31, 43, 0.68);
}

.primary-action {
  border-color: rgba(178, 151, 189, 0.32);
  color: var(--result-text);
  background: linear-gradient(135deg, rgba(100, 46, 70, 0.92), rgba(82, 62, 116, 0.94));
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    0 0 14px rgba(95, 66, 127, 0.08);
}

.complete-actions .complete-button:hover {
  border-color: rgba(190, 165, 199, 0.4);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.complete-actions .complete-button:active {
  filter: brightness(0.98);
  transform: translateY(1px);
}

.copy-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #b9c4d8;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

body.share-poster-open {
  overflow: hidden;
}

.share-poster-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.share-poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 10, 0.86);
  backdrop-filter: blur(8px);
}

.share-poster-dialog {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(190, 159, 111, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(103, 71, 119, 0.16), transparent 38%),
    rgba(15, 17, 28, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.54);
}

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

.share-poster-header span {
  display: block;
  margin-bottom: 4px;
  color: rgba(204, 169, 108, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.share-poster-header h2 {
  margin: 0;
  color: rgba(244, 240, 247, 0.94);
  font-size: 20px;
  line-height: 1.4;
}

.share-poster-close-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(218, 209, 225, 0.16);
  border-radius: 50%;
  color: rgba(236, 231, 241, 0.78);
  background: rgba(255, 255, 255, 0.035);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.share-poster-tip {
  margin: 0;
  color: rgba(226, 219, 232, 0.72);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.share-poster-preview-frame {
  min-height: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(176, 151, 192, 0.18);
  border-radius: 12px;
  background: rgba(5, 7, 13, 0.72);
  overscroll-behavior: contain;
}

.share-poster-preview-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 62vh;
  margin: 0 auto;
  object-fit: contain;
  -webkit-touch-callout: default;
  user-select: auto;
}

.share-poster-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.share-poster-download,
.share-poster-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(190, 159, 111, 0.28);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.share-poster-download {
  color: rgba(247, 242, 235, 0.94);
  background: linear-gradient(135deg, rgba(111, 61, 80, 0.92), rgba(85, 66, 119, 0.94));
}

.share-poster-close-button {
  color: rgba(225, 218, 232, 0.76);
  background: rgba(255, 255, 255, 0.035);
}

.share-poster-close-icon:focus-visible,
.share-poster-download:focus-visible,
.share-poster-close-button:focus-visible {
  outline: 2px solid rgba(210, 176, 116, 0.56);
  outline-offset: 3px;
}

@media (max-width: 650px) {
  .share-poster-modal {
    align-items: end;
    padding: 12px;
  }

  .share-poster-dialog {
    max-height: calc(100dvh - 24px);
    padding: 16px;
    border-radius: 16px;
  }

  .share-poster-preview-frame img {
    max-height: 58dvh;
  }

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

  .share-poster-download,
  .share-poster-close-button {
    min-width: 0;
  }
}

@keyframes softPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

@keyframes gentleDrift {
  0%, 100% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes crossingLines {
  0%, 100% {
    translate: 0 0;
    opacity: 0.45;
  }
  50% {
    translate: 0 6px;
    opacity: 0.85;
  }
}

@keyframes tightenFrame {
  0%, 100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.95;
  }
}

@keyframes offsetLayers {
  0%, 100% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(7px);
  }
}

@keyframes nearFar {
  0%, 100% {
    transform: translateX(-22px);
    opacity: 0.48;
  }
  50% {
    transform: translateX(22px);
    opacity: 0.9;
  }
}

@keyframes distantDrift {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.38;
  }
  50% {
    transform: translate(8px, -6px);
    opacity: 0.72;
  }
}

@keyframes archiveGradient {
  0%, 100% {
    opacity: 0.58;
    transform: translateX(-8px);
  }
  50% {
    opacity: 0.82;
    transform: translateX(8px);
  }
}

@keyframes ambientSweep {
  0%, 100% {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5%, 1%, 0) scale(1.03);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0.18;
  }
  45% {
    transform: translate3d(18px, -26px, 0) scale(1.2);
    opacity: 0.72;
  }
  72% {
    transform: translate3d(-12px, -38px, 0) scale(0.95);
    opacity: 0.42;
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 42px 42px, 42px 42px;
  }
}

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

@keyframes scanDrift {
  0%, 100% {
    transform: translateX(-12px);
    opacity: 0.32;
  }
  50% {
    transform: translateX(12px);
    opacity: 0.56;
  }
}

@keyframes scanFramePulse {
  0%, 100% {
    opacity: 0.44;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes scanLine {
  0% {
    top: 10%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    top: 88%;
    opacity: 0;
  }
}

@keyframes resultScan {
  0%, 100% {
    transform: translateY(-30%);
    opacity: 0.22;
  }
  48% {
    transform: translateY(34%);
    opacity: 0.62;
  }
}

@keyframes initScan {
  0% {
    opacity: 0.24;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.82;
    transform: scale(1);
  }
  100% {
    opacity: 0.58;
    transform: scale(1.01);
  }
}

@keyframes initCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes liquidVeilIn {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0.58;
  }
  62% {
    opacity: 0.92;
  }
  100% {
    opacity: 1;
  }
}

@keyframes initCardOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.72;
  }
}

@keyframes viewportLiquidFlow {
  0% {
    opacity: 0;
    transform: translate3d(-1.4%, 0.8%, 0) skewX(0deg) scale(1.01);
  }
  25% {
    opacity: 0.38;
    transform: translate3d(0.7%, -0.8%, 0) skewX(-1.4deg) scale(1.035);
  }
  62% {
    opacity: 0.76;
    transform: translate3d(-0.8%, 0.2%, 0) skewX(1.2deg) scale(1.07);
  }
  100% {
    opacity: 0.54;
    transform: translate3d(0, 0, 0) skewX(0deg) scale(1.11);
  }
}

@keyframes initFrameBreathe {
  0%, 100% {
    opacity: 0.36;
    transform: scale(0.994);
  }
  50% {
    opacity: 0.72;
    transform: scale(1);
  }
}

@keyframes initConsciousnessLine {
  0% {
    top: 16%;
    opacity: 0;
  }
  18%, 78% {
    opacity: 0.82;
  }
  100% {
    top: 84%;
    opacity: 0;
  }
}

@keyframes initScanLine {
  0% {
    top: 18%;
    opacity: 0;
  }
  16%, 82% {
    opacity: 1;
  }
  100% {
    top: 82%;
    opacity: 0;
  }
}

@keyframes consciousnessRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08);
  }
  18% {
    opacity: 0.5;
  }
  58% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(9);
  }
}

@keyframes liquidMembrane {
  0% {
    opacity: 0;
    filter: blur(12px);
  }
  25% {
    opacity: 0.2;
  }
  62% {
    opacity: 0.48;
    border-radius: 52% 48% 44% 56%;
    filter: blur(5px);
  }
  100% {
    opacity: 0.16;
    border-radius: 46% 54% 58% 42%;
    filter: blur(12px);
  }
}

@keyframes shadowCoreOrbit {
  from {
    transform: rotate(0deg) scaleX(1);
  }
  to {
    transform: rotate(360deg) scaleX(0.88);
  }
}

@keyframes shadowCoreBirth {
  0% {
    transform: scale(0.28);
    opacity: 0;
  }
  46% {
    transform: scale(1.12);
    opacity: 0.96;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes initMistFlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(42px, -18px, 0) scale(1.08);
  }
}

@keyframes fullMistCover {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  42% {
    opacity: 0.56;
  }
  100% {
    opacity: 0.86;
    transform: scale(1.06);
  }
}

@keyframes liquidMistVeil {
  0% {
    opacity: 0;
    transform: translate3d(-2%, 2%, 0) scale(0.98);
  }
  25% {
    opacity: 0.28;
    transform: translate3d(1%, -0.8%, 0) scale(1.01);
  }
  62% {
    opacity: 0.68;
    transform: translate3d(1.8%, -1%, 0) scale(1.045);
  }
  100% {
    opacity: 0.9;
    transform: translate3d(0, 0, 0) scale(1.08);
  }
}

@keyframes homeLiquidWarp {
  0% {
    opacity: 1;
    filter: saturate(1);
    transform: translateY(0) scale(1) skewX(0deg);
  }
  28% {
    opacity: 0.84;
    filter: saturate(0.94);
    transform: translateY(1px) scale(0.997) skewX(-0.32deg);
  }
  55% {
    opacity: 0;
    filter: saturate(0.86);
    transform: translateY(-2px) scale(0.99) skewX(0.52deg);
  }
  100% {
    opacity: 0;
    filter: saturate(0.72);
    transform: translateY(10px) scale(0.98) skewX(-0.22deg);
  }
}

@keyframes quizSpaceEnter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.986);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes initCompleteReveal {
  0%, 68% {
    opacity: 0;
    transform: translateY(6px);
  }
  88%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes initOrbit {
  from {
    transform: rotate(0deg) scaleX(1);
  }
  to {
    transform: rotate(360deg) scaleX(0.86);
  }
}

@keyframes initCore {
  0%, 100% {
    opacity: 0.76;
    filter: brightness(0.92);
  }
  50% {
    opacity: 1;
    filter: brightness(1.08);
  }
}

@keyframes initStep {
  0%, 100% {
    opacity: 0.52;
    border-color: rgba(196, 177, 224, 0.12);
  }
  42% {
    opacity: 1;
    border-color: rgba(168, 61, 93, 0.32);
  }
}

@keyframes mistFlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(46px, -18px, 0) scale(1.08);
  }
}

@keyframes quizCoreBreath {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.62;
  }
}

@keyframes chapterGate {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  24%, 72% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.985);
  }
}

@keyframes optionRipple {
  0% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.88);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.05);
  }
}

@keyframes nodeIdleBreath {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 0 12px rgba(92, 72, 142, 0.1);
    transform: translate(-50%, -50%) scale(0.98);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 0 18px rgba(102, 78, 158, 0.18);
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@keyframes homePulse {
  0%, 100% {
    transform: scale(0.968);
    opacity: 0.44;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.78;
  }
}

@keyframes coreDrift {
  0%, 100% {
    transform: translateY(0) scale(0.97);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-3px) scale(1.03);
    opacity: 1;
  }
}

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

@keyframes optionConfirm {
  0% {
    box-shadow: 0 0 0 rgba(217, 222, 234, 0);
  }
  55% {
    box-shadow: 0 0 24px rgba(95, 66, 127, 0.16);
  }
  100% {
    box-shadow: 0 0 0 rgba(217, 222, 234, 0);
  }
}

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

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

@keyframes loaderSpin {
  from {
    transform: rotate(0deg) scaleX(1);
  }
  to {
    transform: rotate(360deg) scaleX(0.86);
  }
}

@keyframes loaderStep {
  0%, 100% {
    border-color: rgba(217, 222, 234, 0.1);
    opacity: 0.58;
  }
  50% {
    border-color: rgba(168, 61, 93, 0.32);
    opacity: 1;
  }
}

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

@keyframes archiveSealSweep {
  0% {
    opacity: 0;
    transform: scaleX(0.1);
  }
  48% {
    opacity: 1;
  }
  100% {
    opacity: 0.72;
    transform: scaleX(1);
  }
}

@keyframes shadowVisualBreath {
  0%, 100% {
    filter: brightness(0.96) saturate(0.96);
  }
  50% {
    filter: brightness(1.06) saturate(1.05);
  }
}

@keyframes shadowMistDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -8px, 0) scale(1.08);
  }
}

@keyframes shadowFigureBreath {
  0%, 100% {
    opacity: 0.82;
    transform: translateX(-50%) scale(0.985);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.025);
  }
}

@keyframes shadowParticleFloat {
  0%, 100% {
    opacity: 0.28;
    transform: translateY(0) scale(0.82);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-12px) scale(1.08);
  }
}

@media (max-width: 650px) {
  .complete-card {
    padding: 28px 16px;
  }

  .result-content,
  .result-hero-card,
  .result-section,
  .shadow-dimension-standalone,
  .complete-actions {
    max-width: 100%;
  }

  .result-section {
    margin-top: 32px;
    padding: 20px;
    border-radius: 16px;
  }

  .shadow-flip-section {
    padding: 17px 18px 24px;
  }

  .result-section h2,
  .dossier-shadow-dimensions h2 {
    font-size: 20px;
  }

  .shadow-dimensions-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 12px;
  }

  .shadow-dominance-summary {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .result-hero-card > .result-lead {
    width: calc(100% - 40px);
    font-size: clamp(15px, 4.3vw, 17px);
  }

  .result-tarot-card {
    --gilded-start-blur: 3px;
  }

  .result-hero-card.card-reveal-ritual::before {
    --arcana-peak-opacity: 0.16;
    --arcana-final-opacity: 0.064;
    width: min(96vw, 420px);
  }

  .result-hero-card + .result-snapshot {
    margin-top: 30px;
  }

  .result-bright-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    border: 0;
    background: transparent;
  }

  .result-bright-grid > div,
  .result-bright-grid > div + div {
    padding: 15px;
    border: 1px solid var(--result-border);
    border-radius: 12px;
    background: rgba(18, 18, 29, 0.46);
  }

  .shadow-flip-stage {
    width: min(82vw, 280px);
    margin: 24px auto 18px;
  }

  .complete-actions {
    flex-direction: column;
    gap: 12px;
  }

  .complete-button {
    width: 100%;
  }
}

/* 手机适配：缩小间距和标题字号 */
@media (max-width: 520px) {
  .intro-card {
    padding: 34px 22px;
    border-radius: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .home-card {
    padding-top: 34px;
  }

  .init-card {
    min-height: 480px;
  }

  .init-orbit {
    width: auto;
    height: auto;
  }

  .init-core-field {
    width: 154px;
    height: 154px;
  }

  .archive-strip {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 18px;
    font-size: 11px;
  }

  .home-card h1 {
    font-size: 31px;
  }

  .home-glow {
    width: min(168px, 58vw);
    height: min(168px, 58vw);
    margin-bottom: 22px;
  }

  .archive-code {
    width: 100%;
    margin-bottom: 16px;
  }

  .subtitle {
    font-size: 16px;
  }

  .test-info {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .test-info div {
    min-height: auto;
    padding: 14px 12px;
  }

  .question-title {
    font-size: 21px;
  }

  .chapter-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  #chapterProgress {
    text-align: left;
  }

  .option-button {
    min-height: 88px;
    padding: 64px 2px 0;
    font-size: 12px;
  }

  .option-list {
    gap: 6px;
    min-height: 108px;
  }

  .option-button:nth-child(1),
  .option-button:nth-child(5) {
    --node-size: 50px;
  }

  .option-button:nth-child(2),
  .option-button:nth-child(4) {
    --node-size: 42px;
  }

  .option-button:nth-child(3) {
    --node-size: 32px;
  }

  .analysis-status {
    font-size: 13px;
  }

  .navigation-buttons {
    gap: 12px;
  }

  .nav-button {
    width: auto;
    flex: 1;
  }

  .complete-actions {
    flex-direction: column;
    gap: 12px;
  }

  .complete-button {
    width: 100%;
  }

  .result-visual {
    height: auto;
    max-height: none;
    aspect-ratio: 2 / 3;
    margin: 0;
  }

  .result-loader {
    min-height: 360px;
  }

  .loader-orbit {
    width: 124px;
    height: 124px;
  }

  .score-summary {
    grid-template-columns: 1fr;
  }

  .result-section {
    padding: 18px;
  }

  .complete-card {
    padding: 28px 16px;
  }

  .result-archive-head {
    margin-bottom: 14px;
  }

  .shadow-level {
    margin: 14px 0 10px;
    font-size: 12px;
  }

  .result-archive-head .shadow-level {
    margin: 7px 0 0;
    font-size: 11px;
  }

  .result-lead {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
  }

  .result-hero-card > .result-lead {
    width: calc(100% - 40px);
    margin-top: 16px;
    font-size: clamp(15px, 4.3vw, 17px);
    line-height: 1.7;
  }

  .result-hero-card + .result-snapshot {
    margin-top: 28px;
  }

  .result-hero-card {
    margin-top: 18px;
    padding: 0;
  }

  .result-tarot-card {
    --card-reveal-inset: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .personality-visual-slot {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 2 / 3;
    margin: 0;
    border-radius: 0;
  }

  .result-hero-card h2 {
    font-size: 30px;
  }

  .result-identity-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .result-subtitle {
    font-size: 15px;
    line-height: 1.65;
  }

  .result-hero-card blockquote {
    font-size: 16px;
    line-height: 1.65;
  }

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

  .result-pair > div {
    padding: 14px;
  }

  .result-pair h2 {
    font-size: 15px;
  }

  .result-point-list {
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
  }

  .dimension-row {
    padding: 12px;
  }

  .dimension-row > div:first-child {
    gap: 10px;
    font-size: 14px;
  }

  .dimension-row p {
    font-size: 13px;
    line-height: 1.65;
  }

  .result-snapshot p {
    white-space: pre-line;
  }

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

  .result-bright-grid > div {
    padding: 14px;
  }

  .result-bright-grid > div + div {
    border: 1px solid var(--result-border);
  }

  .shadow-flip-stage {
    width: min(100%, 250px);
  }

  .shadow-flip-face {
    padding: 24px 20px;
  }

  .shadow-flip-face > strong {
    font-size: 22px;
  }

  .dossier-content {
    padding: 0 16px 16px;
  }

  .keyword-list {
    gap: 8px;
  }

  .keyword-list span {
    font-size: 12px;
  }

  .module-copy,
  .module-list {
    font-size: 14px;
  }

  .archive-summary::before {
    position: static;
    display: block;
    margin-bottom: 8px;
  }

  .archive-summary .result-tag {
    font-size: 18px;
  }

  .result-archive-head {
    flex-direction: row;
    gap: 12px;
  }

  .chapter-transition strong {
    font-size: 21px;
  }

  .quiz-core {
    top: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .ambient-field::before,
  .ambient-field::after,
  .ambient-field span,
  .home-glow::before,
  .home-glow::after,
  .quiz-card::before,
  .scan-frame,
  .scan-frame::before,
  .result-visual::before,
  .init-card::before,
  .init-card::after,
  .init-card,
  .init-orbit span,
  .init-core-field span,
  .init-core-field i,
  .init-mist span,
  .init-complete,
  .init-steps span,
  .mist,
  .quiz-core,
  .chapter-transition,
  .option-button.pulse::after,
  .home-card::before,
  .visual-shape,
  .glow-ring,
  .glow-core,
  .loader-orbit,
  .loader-orbit span,
  .loader-steps span,
  .result-content,
  .result-tarot-card,
  .personality-visual-slot,
  .personality-visual-slot.has-placeholder .visual-mist,
  .personality-visual-slot.has-placeholder .visual-silhouette,
  .personality-visual-slot.has-placeholder .visual-particle,
  .shadow-flip-card,
  .dimension-fill,
  .start-button,
  .complete-button,
  .nav-button,
  .option-button,
  .option-button::before,
  .question-title,
  .option-list,
  .analysis-status {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .result-tarot-card.card-reveal-waiting,
  .result-tarot-card.card-reveal-gilded {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .result-tarot-card.card-reveal-gilded::before,
  .result-tarot-card.card-reveal-gilded::after {
    display: none !important;
  }

  .result-hero-card.card-reveal-ritual::before,
  .result-tarot-card .ritual-corner-light {
    display: none !important;
  }

  .result-hero-card.card-reveal-pending > .result-lead,
  .result-hero-card.card-reveal-caption > .result-lead {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
