:root {
  --screen-width: 640px;
  --screen-height: 1252px;
  --bg: #f7ead1;
  --paper: rgba(255, 247, 235, 0.52);
  --paper-strong: rgba(255, 249, 240, 0.72);
  --border: rgba(133, 78, 50, 0.18);
  --ink: #4b2f1f;
  --ink-soft: #815440;
  --gold: #d5a35c;
  --gold-strong: #c1813f;
  --sand: #eed5ae;
  --clay: #b85f42;
  --clay-deep: #8a3d2f;
  --teal: #4a8e8f;
  --jade: #6aa08d;
  --shadow: 0 22px 80px rgba(100, 52, 28, 0.16);
  --frame-gap: 28px;
}

@font-face {
  font-family: "DunhuangTitle";
  src: url("./assets/fonts/title.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DunhuangBody";
  src: url("./assets/fonts/body.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DunhuangBadge";
  src: url("./assets/fonts/badge.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 223, 177, 0.88), transparent 38%),
    linear-gradient(180deg, #f7ebd8 0%, #edd9bf 46%, #e3c89d 100%);
  color: var(--ink);
  font-family: "DunhuangBody", serif;
}

body {
  overflow: auto;
}

button,
input,
textarea {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.55;
}

.glow-a {
  width: 32vw;
  height: 32vw;
  top: 8%;
  left: 10%;
  background: rgba(255, 209, 119, 0.48);
}

.glow-b {
  width: 42vw;
  height: 42vw;
  right: -8%;
  top: 22%;
  background: rgba(143, 194, 176, 0.24);
}

.glow-c {
  width: 50vw;
  height: 50vw;
  left: -10%;
  bottom: -12%;
  background: rgba(194, 105, 70, 0.16);
}

.viewport {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--frame-gap);
}

.phone-frame {
  position: relative;
  width: min(
    var(--screen-width),
    calc((100vh - (var(--frame-gap) * 2)) * 640 / 1252),
    calc(100vw - (var(--frame-gap) * 2))
  );
  max-height: calc(100vh - (var(--frame-gap) * 2));
  aspect-ratio: 640 / 1252;
  border-radius: 38px;
  overflow: hidden;
  box-shadow:
    0 32px 100px rgba(96, 54, 33, 0.18),
    0 0 0 1px rgba(255, 244, 228, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 246, 230, 0.96), rgba(250, 235, 214, 0.96)),
    url("./assets/images/bg-cover.png") center / cover no-repeat;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(212, 157, 82, 0.2), transparent 28%),
    radial-gradient(circle at bottom left, rgba(98, 148, 143, 0.16), transparent 30%);
  pointer-events: none;
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 247, 236, 0.08), transparent 12%, transparent 88%, rgba(196, 139, 97, 0.08)),
    radial-gradient(circle at center, transparent 68%, rgba(174, 119, 81, 0.12) 100%);
}

.app {
  position: absolute;
  inset: 0;
  padding: 106px 36px 40px;
}

.pattern {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.pattern-top {
  top: 24px;
  background: url("./assets/images/pattern-border.png") center / contain no-repeat;
}

.pattern-bottom {
  bottom: 22px;
  transform: rotate(180deg);
  background: url("./assets/images/pattern-border.png") center / contain no-repeat;
}

.music-toggle {
  position: absolute;
  top: 26px;
  right: 22px;
  z-index: 20;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.92), rgba(255, 244, 221, 0.92)),
    linear-gradient(135deg, rgba(211, 151, 91, 0.85), rgba(143, 73, 51, 0.95));
  color: var(--clay-deep);
  box-shadow: 0 16px 40px rgba(115, 55, 35, 0.18);
  display: grid;
  place-items: center;
  gap: 2px;
  transform: translateZ(0);
}

.music-toggle::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(137, 61, 47, 0.18);
}

.music-toggle.is-muted {
  color: rgba(123, 94, 74, 0.85);
  background:
    radial-gradient(circle at 28% 28%, rgba(247, 240, 232, 0.96), rgba(232, 219, 206, 0.94)),
    linear-gradient(135deg, rgba(187, 173, 158, 0.72), rgba(158, 130, 118, 0.86));
}

.music-icon {
  font-size: 28px;
  line-height: 1;
}

.music-text {
  font-size: 20px;
  font-family: "DunhuangBadge", serif;
  letter-spacing: 1px;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.32), rgba(255, 242, 225, 0.12));
  animation: screen-in 540ms cubic-bezier(0.2, 0.7, 0.2, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.screen::before {
  width: 280px;
  height: 280px;
  top: -16px;
  left: -32px;
  background: url("./assets/images/pattern-rosette.png") center / contain no-repeat;
  opacity: 0.14;
}

.screen::after {
  width: 260px;
  height: 260px;
  right: -30px;
  bottom: 70px;
  background: url("./assets/images/pattern-clouds-soft.png") center / contain no-repeat;
  opacity: 0.08;
}

.cover-layout,
.quiz-layout,
.result-layout {
  position: relative;
  z-index: 1;
  height: 100%;
}

.cover-layout {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.76);
  border: 1px solid rgba(167, 108, 74, 0.18);
  width: fit-content;
  font-size: 22px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 26px;
  background: url("./assets/images/icon-eyebrow.png") center / contain no-repeat;
}

.cover-main {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
}

.cover-copy h1 {
  margin: 0 0 18px;
  font-family: "DunhuangTitle", serif;
  font-size: 62px;
  line-height: 1.14;
  letter-spacing: 1px;
}

.cover-copy p {
  margin: 0;
  font-size: 28px;
  line-height: 1.75;
  color: rgba(76, 50, 34, 0.82);
}

.cover-art {
  position: relative;
  min-height: 520px;
}

.cover-halo {
  position: absolute;
  inset: 42px 36px 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 216, 135, 0.65), rgba(250, 216, 135, 0.08) 64%, transparent 72%);
  filter: blur(1px);
}

.cover-figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  animation: float 4.5s ease-in-out infinite;
}

.cover-cloud {
  position: absolute;
  width: 128px;
  height: 72px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.88;
}

.cover-cloud.a {
  top: 6px;
  right: 24px;
  background-image: url("./assets/images/cloud-a.png");
}

.cover-cloud.b {
  left: -6px;
  bottom: 80px;
  background-image: url("./assets/images/cloud-b.png");
}

.cover-city {
  margin-top: 18px;
  padding: 26px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.58), rgba(250, 238, 221, 0.34));
  border: 1px solid rgba(162, 106, 73, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 18px 34px rgba(122, 74, 51, 0.07);
  backdrop-filter: blur(10px);
}

.cover-city-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--clay);
}

.cover-city img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.cover-footer {
  display: grid;
  gap: 20px;
}

.meta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.meta-chip {
  padding: 12px 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.56), rgba(247, 231, 210, 0.28));
  border: 1px solid rgba(167, 108, 74, 0.14);
  font-size: 22px;
  color: var(--ink-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.primary-btn,
.secondary-btn {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn:active,
.secondary-btn:active,
.option-btn:active,
.music-toggle:active {
  transform: scale(0.96);
}

.primary-btn {
  width: 100%;
  padding: 26px 34px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, #e4b165 0%, #d37f4e 45%, #b85641 100%);
  color: #fff8ef;
  box-shadow: 0 18px 36px rgba(163, 83, 53, 0.22);
  font-family: "DunhuangBadge", serif;
  font-size: 34px;
  letter-spacing: 2px;
}

.primary-btn:hover,
.secondary-btn:hover,
.option-btn:hover {
  transform: translateY(-2px);
}

.quiz-layout {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 18px;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  color: var(--ink-soft);
}

.progress-title::before {
  content: "";
  width: 34px;
  height: 34px;
  background: url("./assets/images/icon-progress.png") center / contain no-repeat;
}

.progress-track {
  flex: 1;
  min-width: 0;
  height: 16px;
  border-radius: 999px;
  background: rgba(149, 92, 65, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0c06e, #c46449);
  transition: width 360ms ease;
}

.question-card,
.side-card,
.result-card {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.46), transparent 36%),
    linear-gradient(180deg, rgba(255, 249, 240, 0.56), rgba(246, 228, 204, 0.28));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 16px 34px rgba(120, 68, 43, 0.08);
  backdrop-filter: blur(12px);
}

.question-card::after,
.side-card::after,
.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%, transparent 70%, rgba(209, 154, 114, 0.08));
}

.question-card {
  padding: 24px 26px 28px;
}

.question-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(243, 226, 196, 0.64);
  color: var(--clay);
  font-size: 21px;
  margin-bottom: 18px;
}

.question-tag::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("./assets/images/icon-ornament.png") center / contain no-repeat;
}

.question-text {
  margin: 0;
  font-family: "DunhuangTitle", serif;
  font-size: 42px;
  line-height: 1.45;
}

.quiz-stage {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 18px;
}

.side-card {
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}

.side-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(235, 209, 177, 0.42));
}

.side-figure {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 330px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 18px 18px rgba(116, 71, 51, 0.08));
}

.side-note {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 24px;
  line-height: 1.7;
  color: rgba(77, 53, 39, 0.78);
}

.options {
  display: grid;
  gap: 16px;
}

.option-btn {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 18px 18px 16px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.48), transparent 40%),
    linear-gradient(180deg, rgba(255, 249, 240, 0.64), rgba(246, 228, 204, 0.34));
  border: 1px solid rgba(170, 116, 78, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 24px rgba(120, 70, 43, 0.05);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.option-btn.is-disabled {
  pointer-events: none;
}

.option-btn.is-selected {
  border-color: rgba(173, 87, 58, 0.46);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(135deg, rgba(255, 244, 224, 0.74), rgba(252, 234, 202, 0.54));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 18px 32px rgba(138, 69, 45, 0.1);
  transform: scale(1.01);
}

.option-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: "DunhuangBadge", serif;
  font-size: 28px;
  color: #fff6e9;
  background: linear-gradient(135deg, #c97852, #96543f);
}

.option-copy {
  min-width: 0;
}

.option-title {
  font-size: 29px;
  line-height: 1.35;
}

.option-subtitle {
  margin-top: 6px;
  font-size: 20px;
  color: rgba(90, 64, 48, 0.7);
}

.option-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center center;
}

.option-thumb.is-ornament {
  width: 54px;
  height: 54px;
  opacity: 0.72;
}

.tip-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.52), rgba(244, 225, 201, 0.26));
  border: 1px solid rgba(169, 110, 79, 0.12);
  font-size: 22px;
  color: rgba(85, 57, 41, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.tip-row strong {
  color: var(--clay);
}

.result-layout {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
}

.score-shell {
  display: grid;
  place-items: center;
  gap: 10px;
  padding-top: 10px;
}

.score-ring {
  position: relative;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 248, 236, 0.92) 50%, transparent 52%),
    conic-gradient(from -90deg, #d57c4c 0deg, #edc170 220deg, rgba(237, 193, 112, 0.2) 220deg);
  box-shadow: 0 18px 38px rgba(130, 73, 47, 0.14);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(149, 84, 57, 0.12);
}

.score-value {
  font-family: "DunhuangBadge", serif;
  font-size: 72px;
  color: var(--clay-deep);
}

.score-label {
  font-size: 22px;
  color: rgba(82, 56, 41, 0.74);
}

.result-card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 32px;
}

.result-card::after {
  content: "";
  position: absolute;
  inset: auto -10px -18px auto;
  width: 240px;
  height: 240px;
  opacity: 0.13;
  background: url("./assets/images/result-top.png") center / contain no-repeat;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(241, 224, 191, 0.78);
  color: var(--clay);
  font-family: "DunhuangBadge", serif;
  font-size: 24px;
}

.result-badge::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url("./assets/images/icon-flower.png") center / contain no-repeat;
}

.result-title {
  margin: 20px 0 14px;
  font-family: "DunhuangTitle", serif;
  font-size: 54px;
  line-height: 1.2;
}

.result-copy {
  margin: 0;
  max-width: 84%;
  font-size: 28px;
  line-height: 1.8;
  color: rgba(73, 50, 38, 0.82);
}

.insight-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.72);
}

.insight-strip img {
  width: 100%;
  object-fit: contain;
}

.insight-strip p {
  margin: 0;
  font-size: 23px;
  line-height: 1.7;
  color: rgba(89, 64, 50, 0.78);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.secondary-btn {
  padding: 24px 24px;
  border-radius: 26px;
  font-size: 30px;
}

.secondary-btn.outline {
  background: rgba(255, 250, 243, 0.88);
  color: var(--clay);
  border: 1px solid rgba(167, 108, 74, 0.22);
}

.secondary-btn.fill {
  background: linear-gradient(135deg, rgba(212, 132, 89, 0.96), rgba(177, 91, 70, 0.96));
  color: #fff7ef;
  box-shadow: 0 16px 32px rgba(154, 74, 52, 0.18);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 18%, rgba(242, 210, 145, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(84, 46, 31, 0.84), rgba(54, 32, 24, 0.92));
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-card {
  width: min(460px, calc(100vw - 48px));
  padding: 32px 30px;
  border-radius: 34px;
  text-align: center;
  background: rgba(253, 247, 237, 0.92);
  border: 1px solid rgba(221, 192, 149, 0.34);
  box-shadow: 0 24px 80px rgba(18, 8, 5, 0.24);
}

.loading-figure {
  width: 184px;
  max-width: 48%;
  animation: float 3.8s ease-in-out infinite;
}

.loading-title {
  margin: 12px 0 8px;
  font-family: "DunhuangTitle", serif;
  font-size: 28px;
  color: var(--ink);
}

.loading-subtitle {
  margin: 0 0 18px;
  font-size: 18px;
  color: rgba(90, 61, 43, 0.76);
}

.loading-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(178, 123, 81, 0.12);
}

.loading-bar-fill {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #efbe6c, #c96e4a);
  animation: bar-move 1.8s ease-in-out infinite;
}

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

@keyframes bar-move {
  0% {
    transform: translateX(-80%);
  }
  100% {
    transform: translateX(200%);
  }
}

@media (max-width: 780px) {
  .viewport {
    padding: 0;
  }

  .phone-frame {
    width: 100vw;
    border-radius: 0;
    height: 100vh;
    aspect-ratio: auto;
    max-height: none;
  }

  .app {
    padding: 102px 28px 34px;
  }

  .cover-main,
  .quiz-stage {
    grid-template-columns: 1fr;
  }

  .cover-copy h1 {
    font-size: 52px;
  }

  .cover-art {
    min-height: 400px;
  }

  .question-text {
    font-size: 36px;
  }

  .button-row {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 860px) and (min-width: 781px) {
  :root {
    --frame-gap: 16px;
  }

  .app {
    padding: 92px 30px 32px;
  }

  .cover-copy h1 {
    font-size: 54px;
  }

  .cover-copy p,
  .result-copy {
    font-size: 25px;
  }

  .question-text {
    font-size: 36px;
  }

  .option-title {
    font-size: 25px;
  }

  .option-subtitle,
  .side-note,
  .tip-row {
    font-size: 20px;
  }

  .cover-art {
    min-height: 430px;
  }

  .side-figure {
    height: 270px;
  }

  .music-toggle {
    width: 84px;
    height: 84px;
  }
}

/* New layout system */
.cover-scene,
.quiz-scene,
.result-scene {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
}

.cover-scene {
  grid-template-rows: auto auto 1fr auto auto;
  gap: 18px;
  padding-top: 8px;
}

.cover-topbar,
.quiz-topbar,
.result-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cover-kicker,
.quiz-page-label,
.result-page-label {
  margin: 0;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(95, 58, 38, 0.76);
}

.cover-kicker-secondary {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.38);
  border: 1px solid rgba(136, 91, 67, 0.12);
}

.cover-headline {
  padding: 6px 0 0;
}

.cover-caption {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 3px;
  color: rgba(108, 69, 46, 0.56);
}

.cover-title {
  margin: 0;
  font-family: "DunhuangTitle", serif;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 2px;
  color: #4d2d1d;
}

.cover-lead {
  margin: 14px 0 0;
  max-width: 90%;
  font-size: 21px;
  line-height: 1.72;
  color: rgba(81, 55, 40, 0.84);
}

.cover-hero-panel {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 460px;
  padding: 24px 24px 22px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.58), rgba(247, 232, 210, 0.22));
  border: 1px solid rgba(156, 111, 82, 0.14);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 18px 34px rgba(116, 75, 53, 0.08);
}

.cover-hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 221, 156, 0.22), transparent 32%),
    radial-gradient(circle at 82% 70%, rgba(90, 150, 142, 0.18), transparent 26%);
  pointer-events: none;
}

.cover-hero-glow {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 146, 0.32), transparent 70%);
  filter: blur(2px);
}

.cover-hero-figure {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 380px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 20px 20px rgba(121, 78, 56, 0.12));
  animation: float 5.2s ease-in-out infinite;
}

.cover-hero-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 248, 240, 0.72);
  border: 1px solid rgba(144, 96, 69, 0.12);
  backdrop-filter: blur(10px);
}

.cover-hero-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(192, 121, 74, 0.12);
  color: var(--clay-deep);
  font-size: 18px;
  letter-spacing: 1px;
}

.cover-hero-copy p {
  margin: 0;
  font-size: 18px;
  color: rgba(80, 52, 38, 0.84);
}

.cover-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.92fr;
  gap: 12px;
}

.info-tile {
  min-height: 128px;
  padding: 16px 16px 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 38%),
    linear-gradient(180deg, rgba(255, 249, 240, 0.54), rgba(245, 229, 205, 0.24));
  border: 1px solid rgba(163, 112, 84, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 24px rgba(111, 68, 47, 0.06);
  backdrop-filter: blur(10px);
}

.info-tile-label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(118, 75, 52, 0.64);
}

.info-tile strong {
  display: block;
  font-size: 21px;
  line-height: 1.45;
  color: #50301f;
}

.info-preview {
  display: grid;
  align-content: space-between;
}

.info-preview img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(154, 104, 72, 0.08);
}

.cover-actions {
  display: grid;
  align-items: end;
}

.cover-start-btn {
  padding: 24px 30px;
}

.quiz-scene {
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  padding-top: 6px;
}

.quiz-topbar {
  align-items: end;
}

.quiz-category-title {
  margin: 6px 0 0;
  font-family: "DunhuangTitle", serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: #4b2d1d;
}

.quiz-dot-row {
  display: flex;
  gap: 7px;
  align-items: center;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(151, 110, 82, 0.22);
}

.progress-dot.is-done {
  background: rgba(177, 98, 65, 0.5);
}

.progress-dot.is-current {
  width: 14px;
  height: 14px;
  background: linear-gradient(180deg, #d67d4b, #a94f38);
  box-shadow: 0 0 0 4px rgba(214, 125, 75, 0.14);
}

.quiz-progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(152, 107, 81, 0.12);
}

.quiz-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e6b45d 0%, #cb7a45 60%, #a94f38 100%);
}

.quiz-main-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
  align-items: stretch;
}

.quiz-question-panel {
  padding: 18px 20px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 240, 0.58), rgba(245, 229, 205, 0.26));
  border: 1px solid rgba(156, 111, 82, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 28px rgba(111, 68, 47, 0.06);
}

.quiz-question-mark,
.result-caption {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(119, 77, 52, 0.62);
}

.quiz-question-title {
  margin: 0;
  font-family: "DunhuangTitle", serif;
  font-size: 28px;
  line-height: 1.32;
  color: #4d2d1d;
}

.quiz-question-note {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.72;
  color: rgba(82, 55, 40, 0.8);
}

.quiz-visual-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 16px;
  align-items: center;
  min-height: 0;
  padding: 16px 16px 16px 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(250, 243, 233, 0.54), rgba(241, 225, 203, 0.28));
  border: 1px solid rgba(154, 108, 82, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 12px 24px rgba(116, 75, 53, 0.06);
}

.quiz-visual-copy p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.62;
  color: rgba(82, 55, 40, 0.8);
}

.quiz-visual-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(191, 119, 74, 0.1);
  color: var(--clay-deep);
  font-size: 16px;
}

.quiz-visual-figure {
  width: 100%;
  height: 132px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 12px 18px rgba(118, 73, 53, 0.08));
}

.options-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.option-btn {
  grid-template-columns: 60px 1fr 58px;
  gap: 14px;
  min-height: 82px;
  padding: 12px 14px;
  border-radius: 24px;
}

.option-badge {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  font-size: 24px;
}

.option-title {
  font-size: 20px;
  line-height: 1.3;
}

.option-subtitle {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.45;
}

.option-thumb {
  width: 52px;
  height: 52px;
}

.option-thumb.is-ornament {
  width: 44px;
  height: 44px;
}

.quiz-bottom-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  font-size: 16px;
  color: rgba(89, 59, 43, 0.7);
}

.quiz-bottom-note strong {
  color: var(--clay);
}

.result-scene {
  grid-template-rows: auto auto 1fr auto auto;
  gap: 16px;
  padding-top: 6px;
}

.result-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(193, 130, 87, 0.1);
  color: var(--clay-deep);
  font-size: 16px;
  letter-spacing: 1px;
  border: 1px solid rgba(156, 111, 82, 0.12);
}

.result-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.46), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 240, 0.58), rgba(245, 229, 205, 0.26));
  border: 1px solid rgba(156, 111, 82, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 32px rgba(111, 68, 47, 0.07);
}

.result-score-orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 248, 239, 0.88) 52%, transparent 53%),
    conic-gradient(from -90deg, #d67d4b 0deg, #e6b45d 200deg, rgba(214, 125, 75, 0.12) 200deg);
  box-shadow: 0 16px 30px rgba(111, 68, 47, 0.12);
}

.result-score-number {
  font-family: "DunhuangBadge", serif;
  font-size: 54px;
  color: var(--clay-deep);
}

.result-score-total {
  display: block;
  margin-top: -10px;
  font-size: 18px;
  color: rgba(89, 59, 43, 0.72);
}

.result-summary h2 {
  margin: 0;
  font-family: "DunhuangTitle", serif;
  font-size: 26px;
  line-height: 1.15;
  color: #4d2d1d;
  white-space: nowrap;
}

.result-copy {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.76;
  color: rgba(81, 55, 40, 0.84);
}

.result-insight-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(251, 245, 235, 0.56), rgba(244, 228, 206, 0.26));
  border: 1px solid rgba(154, 108, 82, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 24px rgba(116, 75, 53, 0.06);
}

.result-insight-card img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  object-position: center center;
}

.result-insight-label {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(119, 77, 52, 0.62);
}

.result-insight-copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
  color: rgba(82, 55, 40, 0.82);
}

.result-footnote {
  padding: 0 4px;
}

.result-footnote p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(89, 59, 43, 0.68);
}

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

.result-actions .secondary-btn {
  padding: 20px 18px;
  font-size: 24px;
}

@media (max-width: 780px) {
  .cover-title {
    font-size: 48px;
  }

  .cover-lead,
  .quiz-question-title,
  .result-copy {
    max-width: 100%;
  }

  .cover-hero-panel {
    min-height: 400px;
  }

  .cover-hero-figure {
    height: 320px;
  }

  .cover-info-grid,
  .result-hero,
  .result-insight-card,
  .quiz-main-grid,
  .quiz-visual-panel {
    grid-template-columns: 1fr;
  }

  .cover-hero-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-visual-figure {
    height: 120px;
  }

  .result-score-orb {
    width: 120px;
    height: 120px;
  }

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