:root {
  --bg: #fff2f8;
  --paper: rgba(255, 251, 254, 0.88);
  --paper-strong: rgba(255, 253, 255, 0.97);
  --ink: #57395a;
  --muted: #8b6f90;
  --line: rgba(221, 122, 178, 0.16);
  --accent: #ff7db4;
  --accent-strong: #dd5f95;
  --mint: #7ee2d2;
  --gold: #ffc96f;
  --berry: #bf90ef;
  --result-accent: #ff7db4;
  --result-accent-soft: #ffdced;
  --shadow: 0 28px 80px rgba(218, 138, 188, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 201, 111, 0.28), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(126, 226, 210, 0.24), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 125, 180, 0.18), transparent 30%),
    linear-gradient(180deg, #fff9fd 0%, var(--bg) 100%);
  font-family: "Trebuchet MS", "Microsoft YaHei", "Segoe UI", sans-serif;
}

.backdrop {
  position: fixed;
  inset: auto;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.85;
}

.backdrop-a {
  top: 110px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 201, 111, 0.28), rgba(255, 201, 111, 0));
}

.backdrop-b {
  top: 320px;
  right: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(126, 226, 210, 0.22), rgba(126, 226, 210, 0));
}

.backdrop-c {
  bottom: 50px;
  left: 18%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(191, 144, 239, 0.16), rgba(191, 144, 239, 0));
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -72px -72px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 125, 180, 0.12) 0%, rgba(255, 125, 180, 0) 72%);
  pointer-events: none;
}

.hero,
.quiz,
.result {
  padding: 34px;
}

.hero {
  margin-bottom: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.hero-copy,
.hero-art,
.result-hero,
.insight-grid,
.button-row {
  position: relative;
  z-index: 1;
}

.eyebrow,
.mark-label {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.lead,
.result-description,
.logic-panel p,
.insight-card p,
.button-note,
.poster-panel-note {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 58ch;
  margin: 18px 0 24px;
  font-size: 1.06rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(221, 95, 149, 0.16);
  border-radius: 999px;
  background: rgba(255, 247, 251, 0.96);
  color: var(--accent-strong);
  font-size: 0.94rem;
}

.button-stack {
  margin-top: 24px;
}

.button-note {
  margin: 10px 0 0;
  font-size: 0.94rem;
}

.primary-button,
.secondary-button,
.option-button {
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.primary-button,
.secondary-button {
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #ff9ec9 55%, #ffc96f 100%);
  color: #fffafc;
  box-shadow: 0 18px 36px rgba(255, 125, 180, 0.28);
}

.secondary-button {
  background: rgba(255, 247, 251, 0.98);
  color: var(--accent-strong);
  border-color: rgba(221, 95, 149, 0.14);
}

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

.hero-art {
  position: relative;
  min-height: 410px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 242, 248, 0.96), rgba(255, 242, 248, 0.5) 28%, rgba(255, 242, 248, 0) 52%),
    linear-gradient(180deg, rgba(255, 230, 243, 0.72), rgba(255, 251, 254, 0.16));
  border: 1px solid rgba(221, 95, 149, 0.1);
}

.moon-ring {
  position: absolute;
  top: 46px;
  left: 50%;
  width: 190px;
  height: 190px;
  margin-left: -95px;
  border-radius: 50%;
  border: 1px solid rgba(255, 201, 111, 0.36);
  box-shadow:
    0 0 0 18px rgba(255, 242, 248, 0.28),
    0 0 0 48px rgba(255, 242, 248, 0.1);
}

.cat-illustration {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 230px;
  height: 270px;
  transform: translateX(-50%);
}

.cat-head,
.cat-body,
.cat-tail,
.cat-ears::before,
.cat-ears::after {
  position: absolute;
  background: linear-gradient(180deg, #ffd2e3, #f3a6c8);
}

.cat-head {
  top: 40px;
  left: 50%;
  width: 118px;
  height: 108px;
  margin-left: -59px;
  border-radius: 44% 44% 40% 40%;
}

.cat-body {
  bottom: 18px;
  left: 50%;
  width: 146px;
  height: 148px;
  margin-left: -73px;
  border-radius: 50% 50% 38% 38%;
}

.cat-tail {
  right: 24px;
  bottom: 42px;
  width: 88px;
  height: 22px;
  border-radius: 999px;
  transform: rotate(40deg);
  transform-origin: right center;
}

.cat-ears::before,
.cat-ears::after {
  content: "";
  top: 26px;
  width: 30px;
  height: 30px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.cat-ears::before {
  left: 67px;
  transform: rotate(-18deg);
}

.cat-ears::after {
  right: 67px;
  transform: rotate(18deg);
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 251, 253, 0.9);
  border: 1px solid rgba(221, 95, 149, 0.12);
  box-shadow: 0 18px 34px rgba(218, 138, 188, 0.12);
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.floating-card-top {
  top: 44px;
  right: 20px;
}

.floating-card-bottom {
  bottom: 26px;
  left: 18px;
}

.quiz,
.result {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

#progress-text {
  min-width: 56px;
  color: var(--muted);
}

.progress-track {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(221, 95, 149, 0.08);
}

.progress-fill {
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--gold), var(--accent));
}

.quiz h2 {
  max-width: 16ch;
  margin-bottom: 26px;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.22;
}

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

.option-button {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid rgba(221, 95, 149, 0.12);
  background: linear-gradient(180deg, rgba(255, 252, 254, 0.98), rgba(255, 241, 248, 0.94));
  color: var(--ink);
  line-height: 1.7;
}

.option-button:hover {
  border-color: rgba(255, 125, 180, 0.42);
  box-shadow: 0 16px 30px rgba(218, 138, 188, 0.14);
}

.result {
  border-color: color-mix(in srgb, var(--result-accent) 26%, rgba(221, 95, 149, 0.08));
}

.result::after {
  background: radial-gradient(circle, color-mix(in srgb, var(--result-accent) 20%, transparent) 0%, rgba(255, 125, 180, 0) 72%);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.result-copy h2 {
  margin-bottom: 10px;
}

.result-subtitle {
  margin: 0 0 14px;
  color: var(--result-accent);
  font-size: 1.12rem;
}

.result-description {
  margin: 0;
  font-size: 1.03rem;
}

.result-mark {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, color-mix(in srgb, var(--result-accent-soft) 82%, white), rgba(255, 249, 252, 0.72));
  border: 1px solid color-mix(in srgb, var(--result-accent) 16%, rgba(221, 95, 149, 0.06));
}

.mark-label {
  margin-bottom: 12px;
}

.mark-text {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}

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

.insight-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--paper-strong);
  border: 1px solid rgba(221, 95, 149, 0.08);
}

.insight-card h3,
.dimension-panel h3,
.logic-panel h3,
.poster-panel-header h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.insight-card p {
  margin: 0;
}

.dimension-panel,
.logic-panel,
.poster-panel {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 24px;
  background: var(--paper-strong);
  border: 1px solid rgba(221, 95, 149, 0.08);
}

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

.dimension-item {
  display: grid;
  grid-template-columns: 110px 1fr 132px 44px;
  align-items: center;
  gap: 12px;
}

.dimension-name,
.dimension-score,
.dimension-level {
  font-size: 0.94rem;
  color: var(--muted);
}

.dimension-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(221, 95, 149, 0.08);
}

.dimension-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--gold), var(--result-accent));
}

.fine-print {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.poster-panel-header {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.poster-panel-header .eyebrow {
  margin-bottom: 8px;
}

.poster-panel-note {
  max-width: 28ch;
  margin: 0;
  text-align: right;
}

.share-poster {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 30px;
  color: #fff9f8;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1), transparent 18%),
    linear-gradient(145deg, color-mix(in srgb, var(--result-accent) 78%, white 4%) 0%, color-mix(in srgb, var(--result-accent) 24%, #7e4973) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.share-poster::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.poster-topline,
.poster-hero,
.poster-tags,
.poster-insights,
.poster-dimensions,
.poster-footer {
  position: relative;
  z-index: 1;
}

.poster-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.poster-brand,
.poster-badge,
.poster-label,
.poster-note-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poster-brand {
  font-size: 0.96rem;
  opacity: 0.9;
}

.poster-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.poster-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 180px;
  gap: 20px;
  align-items: center;
}

.poster-label {
  margin: 0 0 8px;
  font-size: 0.86rem;
  opacity: 0.76;
}

.poster-name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.poster-title,
.poster-mantra,
.poster-note p,
.poster-footer p {
  margin: 0;
}

.poster-title {
  margin-top: 12px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(255, 249, 248, 0.9);
}

.poster-mantra {
  margin-top: 14px;
  font-size: 1.18rem;
  line-height: 1.6;
}

.poster-cat {
  position: relative;
  width: 180px;
  height: 180px;
  justify-self: end;
}

.poster-cat-head,
.poster-cat-body,
.poster-cat-tail,
.poster-cat-ears::before,
.poster-cat-ears::after {
  position: absolute;
  background: linear-gradient(180deg, rgba(255, 246, 239, 0.96), rgba(255, 232, 219, 0.84));
}

.poster-cat-head {
  top: 22px;
  left: 50%;
  width: 82px;
  height: 78px;
  margin-left: -41px;
  border-radius: 44% 44% 40% 40%;
}

.poster-cat-body {
  bottom: 8px;
  left: 50%;
  width: 104px;
  height: 106px;
  margin-left: -52px;
  border-radius: 50% 50% 38% 38%;
}

.poster-cat-tail {
  right: 12px;
  bottom: 30px;
  width: 62px;
  height: 16px;
  border-radius: 999px;
  transform: rotate(42deg);
}

.poster-cat-ears::before,
.poster-cat-ears::after {
  content: "";
  top: 8px;
  width: 22px;
  height: 22px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.poster-cat-ears::before {
  left: 47px;
  transform: rotate(-18deg);
}

.poster-cat-ears::after {
  right: 47px;
  transform: rotate(18deg);
}

.poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.poster-tags .pill {
  color: #fff9f8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.poster-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.poster-note {
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.poster-note-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.poster-note p {
  line-height: 1.72;
  color: rgba(255, 249, 248, 0.95);
}

.poster-dimensions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.poster-dimension-row {
  display: grid;
  grid-template-columns: 92px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.poster-dimension-name,
.poster-dimension-score {
  font-size: 0.92rem;
  color: rgba(255, 249, 248, 0.86);
}

.poster-dimension-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.poster-dimension-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 199, 0.9));
}

.poster-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.poster-footer p {
  color: rgba(255, 249, 248, 0.8);
  font-size: 0.92rem;
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 920px) {
  .hero-grid,
  .result-hero,
  .poster-insights,
  .insight-grid,
  .poster-hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 340px;
  }

  .dimension-item {
    grid-template-columns: 110px 1fr 44px;
  }

  .dimension-level {
    grid-column: 2 / 3;
  }

  .poster-panel-header {
    align-items: flex-start;
  }

  .poster-panel-note {
    max-width: none;
    text-align: left;
  }

  .poster-cat {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 22px, 1080px);
    padding-top: 18px;
  }

  .hero,
  .quiz,
  .result,
  .insight-card,
  .dimension-panel,
  .logic-panel,
  .poster-panel {
    padding: 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }

  .hero-art {
    min-height: 300px;
  }

  .floating-card {
    font-size: 0.88rem;
  }

  .share-poster {
    padding: 22px;
  }

  .poster-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .poster-name {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .poster-cat {
    width: 150px;
    height: 150px;
  }

  .dimension-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dimension-level {
    grid-column: auto;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .primary-button,
  .button-row .secondary-button,
  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
