:root {
  --bg: linear-gradient(180deg, #fff8f4 0%, #ffeef4 52%, #fffaf6 100%);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --ink: #3d2340;
  --muted: #765f76;
  --line: rgba(255, 255, 255, 0.72);
  --rose: #f76ca2;
  --rose-deep: #dc4b85;
  --peach: #ffb384;
  --blush: #ffe0ea;
  --shadow: 0 18px 44px rgba(112, 65, 111, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 35%),
    var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.screen {
  animation: fade-up 0.45s ease both;
}

.tag-pill,
.eyebrow,
.meta-label,
.poster-kicker,
.section-label {
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(247, 108, 162, 0.08);
}

.hero-card,
.question-card,
.meta-card,
.loading-card,
.result-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.home-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100vh - 36px);
  justify-content: center;
}

.hero-card {
  padding: 20px 16px 16px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.7;
}

.hero-glow-a {
  top: 26px;
  right: -28px;
  width: 140px;
  height: 140px;
  background: rgba(247, 108, 162, 0.2);
}

.hero-glow-b {
  left: -20px;
  bottom: 26px;
  width: 120px;
  height: 120px;
  background: rgba(255, 179, 132, 0.24);
}

.eyebrow {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.hero-title {
  position: relative;
  margin: 10px 0 0;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-subtitle {
  position: relative;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.home-feature-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.home-feature-card {
  padding: 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(220, 214, 214, 0.68);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(112, 65, 111, 0.05);
}

.home-feature-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.home-feature-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8c1b2, #efb49f);
  box-shadow: 0 2px 8px rgba(239, 180, 159, 0.35);
}

.home-feature-text {
  margin: 10px 0 0 24px;
  color: rgba(61, 35, 64, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.home-note-card {
  margin-top: 18px;
  padding: 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(220, 214, 214, 0.8);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 22px rgba(112, 65, 111, 0.05);
}

.home-note-text {
  margin: 0;
  color: rgba(61, 35, 64, 0.84);
  font-size: 12px;
  line-height: 1.65;
}

.home-count-line {
  margin: 18px 0 0;
  color: #c88a80;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.poster-chip,
.matched-badge,
.question-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.primary-btn,
.ghost-btn,
.option-btn {
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.primary-btn,
.ghost-btn {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(90deg, var(--rose), var(--peach));
  color: #fff;
  box-shadow: 0 14px 28px rgba(247, 108, 162, 0.28);
}

.ghost-btn {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.primary-btn:active,
.ghost-btn:active {
  transform: scale(0.985);
}

.home-start-btn {
  margin-top: 18px;
}

.home-script-line {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: "Ma Shan Zheng", cursive;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

.quiz-screen,
.loading-screen,
.result-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-screen {
  min-height: calc(100vh - 36px);
  justify-content: center;
}

.meta-card {
  padding: 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.meta-progress {
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: var(--blush);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--peach));
  transition: width 0.25s ease;
}

.question-card {
  padding: 18px;
}

.question-badge {
  padding: 6px 11px;
  background: rgba(247, 108, 162, 0.12);
  color: var(--rose-deep);
  font-size: 12px;
}

.question-title {
  margin: 16px 0 0;
  font-size: 26px;
  line-height: 1.5;
}

.options {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,247,250,0.88));
  border: 1px solid rgba(255,255,255,0.9);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 22px rgba(112, 65, 111, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.option-btn:active {
  transform: scale(0.985);
}

.option-index {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.option-copy {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.7;
}

.loading-card {
  padding: 28px 18px;
  text-align: center;
}

.loading-orb {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(247,108,162,0.78), rgba(255,255,255,0.8), rgba(255,179,132,0.72));
  box-shadow: 0 16px 34px rgba(247, 108, 162, 0.2);
  animation: float 3.5s ease-in-out infinite;
}

.loading-orb-core {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-orb-core::after {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--peach));
  animation: pulse 1.6s ease-in-out infinite;
}

.loading-title {
  margin: 14px 0 0;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 31px;
  line-height: 1.2;
}

.loading-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.loading-item {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.5);
  color: rgba(61, 35, 64, 0.5);
  font-size: 14px;
  transition: all 0.2s ease;
}

.loading-item.active {
  background: rgba(247, 108, 162, 0.1);
  border-color: rgba(247, 108, 162, 0.25);
  color: var(--ink);
}

.result-meta {
  text-align: center;
}

.result-headline {
  margin: 10px 0 0;
  font-size: 21px;
  line-height: 1.5;
}

.result-poster {
  padding: 16px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.45), transparent 28%),
    var(--card);
}

.poster-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.poster-kicker,
.section-label {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.result-title {
  margin: 10px 0 0;
  font-family: "Ma Shan Zheng", cursive;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 400;
}

.result-aura {
  margin: 10px 0 0;
  color: rgba(61, 35, 64, 0.82);
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-sections {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.result-section {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: 0 10px 22px rgba(112, 65, 111, 0.06);
}

.section-label {
  font-family: "Ma Shan Zheng", cursive;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.section-copy {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

.bullet-comments {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(247, 108, 162, 0.08);
  border: 1px solid rgba(247, 108, 162, 0.14);
  font-size: 12px;
  line-height: 1.5;
}

.result-actions {
  margin-top: 14px;
}

.result-poster.theme-r1 {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.35), transparent 28%),
    linear-gradient(135deg, rgba(247,108,162,0.22), rgba(255,255,255,0.32), rgba(255,179,132,0.18));
}

.result-poster.theme-r2 {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.35), transparent 28%),
    linear-gradient(135deg, rgba(234,97,165,0.28), rgba(255,255,255,0.28), rgba(255,196,220,0.2));
}

.result-poster.theme-r3 {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.38), transparent 28%),
    linear-gradient(135deg, rgba(255,206,123,0.22), rgba(255,255,255,0.3), rgba(255,221,237,0.22));
}

.result-poster.theme-r4 {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.35), transparent 28%),
    linear-gradient(135deg, rgba(191,173,255,0.22), rgba(255,255,255,0.28), rgba(255,194,150,0.22));
}

.result-poster.theme-r5 {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.38), transparent 28%),
    linear-gradient(135deg, rgba(255,168,114,0.22), rgba(255,255,255,0.28), rgba(247,108,162,0.16));
}

.result-poster.theme-r6 {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.42), transparent 28%),
    linear-gradient(135deg, rgba(196,222,255,0.24), rgba(255,255,255,0.32), rgba(255,220,235,0.2));
}

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

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

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

@media (min-width: 768px) {
  .page-shell {
    max-width: 460px;
  }

  .hero-title {
    font-size: 34px;
  }

  .option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(112, 65, 111, 0.12);
  }
}
