:root {
  --bg: #fff8ed;
  --bg-accent: #ffe39d;
  --ink: #2f241b;
  --ink-soft: #6e5f54;
  --card: rgba(255, 252, 245, 0.88);
  --line: rgba(73, 55, 36, 0.12);
  --orange: #f3a43b;
  --orange-deep: #de7f21;
  --mint: #9fd9cb;
  --rose: #f4c4b8;
  --sky: #c5dbff;
  --shadow: 0 24px 80px rgba(92, 61, 14, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 230, 173, 0.8), transparent 32%),
    radial-gradient(circle at bottom right, rgba(159, 217, 203, 0.65), transparent 30%),
    linear-gradient(180deg, #fffdf7 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
}

button {
  font: inherit;
}

.backdrop {
  position: fixed;
  inset: auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.5;
  pointer-events: none;
}

.backdrop-a {
  top: -5rem;
  right: -4rem;
  background: rgba(244, 196, 184, 0.75);
}

.backdrop-b {
  bottom: -6rem;
  left: -5rem;
  background: rgba(197, 219, 255, 0.75);
}

.app-shell {
  width: min(100%, 34rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  align-items: center;
}

.screen {
  display: none;
  width: 100%;
}

.screen-active {
  display: block;
  animation: screen-in 0.45s ease;
}

.hero-card,
.quiz-card,
.result-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 1.5rem 1.35rem 1.4rem;
}

.hero-illustration {
  position: relative;
  min-height: 18rem;
  margin-bottom: 1rem;
  border-radius: 1.6rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.95), transparent 24%),
    linear-gradient(160deg, #ffd777 0%, #ffc56b 34%, #ffb994 100%);
}

.hero-illustration::before,
.hero-illustration::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.45);
}

.hero-illustration::before {
  width: 9rem;
  height: 9rem;
  right: -1rem;
  top: -1.5rem;
}

.hero-illustration::after {
  width: 7rem;
  height: 7rem;
  left: -1rem;
  bottom: -1rem;
}

.cat-face {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 12.5rem;
  height: 11rem;
  border-radius: 48% 48% 44% 44%;
  background: #fff5de;
  box-shadow: inset 0 -0.7rem 0 rgba(243, 164, 59, 0.18);
}

.ear {
  position: absolute;
  top: -1.7rem;
  width: 3.3rem;
  height: 4.2rem;
  background: #fff5de;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.ear::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  background: #f7c3bc;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.ear-left {
  left: 1rem;
  transform: rotate(-12deg);
}

.ear-right {
  right: 1rem;
  transform: rotate(12deg);
}

.eye {
  position: absolute;
  top: 4.3rem;
  width: 1rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #3c2d24;
}

.eye-left {
  left: 3.7rem;
}

.eye-right {
  right: 3.7rem;
}

.nose {
  position: absolute;
  left: 50%;
  top: 6.4rem;
  transform: translateX(-50%);
  width: 1rem;
  height: 0.8rem;
  border-radius: 50% 50% 65% 65%;
  background: #f39b8e;
}

.whisker {
  position: absolute;
  top: 6.6rem;
  width: 3rem;
  height: 0.12rem;
  background: rgba(59, 43, 34, 0.4);
}

.whisker-left-top {
  left: 0.75rem;
  transform: rotate(8deg);
}

.whisker-left-bottom {
  left: 0.75rem;
  top: 7.2rem;
  transform: rotate(-8deg);
}

.whisker-right-top {
  right: 0.75rem;
  transform: rotate(-8deg);
}

.whisker-right-bottom {
  right: 0.75rem;
  top: 7.2rem;
  transform: rotate(8deg);
}

.floating-badge {
  position: absolute;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #5f3a16;
  background: rgba(255, 252, 245, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.badge-1 {
  left: 1rem;
  top: 1.1rem;
}

.badge-2 {
  right: 1rem;
  top: 2.4rem;
}

.badge-3 {
  left: 1.3rem;
  bottom: 1.2rem;
}

.eyebrow,
.question-kicker,
.result-subtitle,
.hero-footnote,
.share-status {
  color: var(--ink-soft);
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
h4,
#question-title {
  margin: 0;
}

h1,
h2,
h3,
#question-title {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
}

.hero-copy {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #47362b;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.15rem;
}

.hero-meta span,
.tag {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.option-button {
  width: 100%;
  border: 0;
  border-radius: 1.1rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.primary-button,
.secondary-button {
  padding: 0.95rem 1rem;
  font-weight: 800;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  box-shadow: 0 16px 32px rgba(222, 127, 33, 0.28);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.ghost-button {
  width: auto;
  padding: 0.2rem 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
}

.quiz-card,
.result-card {
  padding: 1.25rem;
}

.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.progress-text {
  font-weight: 800;
  color: var(--ink-soft);
}

.progress-track {
  height: 0.7rem;
  margin: 1rem 0 1.35rem;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--orange));
  transition: width 0.24s ease;
}

.question-wrap {
  padding-top: 0.35rem;
}

.question-kicker {
  margin: 0 0 0.6rem;
}

#question-title {
  font-size: clamp(1.8rem, 6.8vw, 2.45rem);
}

.options {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.option-button {
  padding: 1rem 1rem 1rem 1.05rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.option-button strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 1rem;
}

.option-button span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.result-card h2 {
  font-size: 2rem;
  margin-top: 0.2rem;
}

.result-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.2rem 0 1rem;
  padding: 1.2rem;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 227, 157, 0.45), rgba(197, 219, 255, 0.45));
}

.result-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 8.4rem;
  height: 8.4rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72) 62%),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 -0.45rem 0 rgba(243, 164, 59, 0.18),
    0 12px 24px rgba(92, 61, 14, 0.12);
  font-size: 4.6rem;
}

.result-hero h3 {
  font-size: 2rem;
}

.result-subtitle {
  margin: 0.35rem 0 0;
  line-height: 1.6;
}

.result-sections {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.result-section {
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.result-section h4 {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.result-section p {
  margin: 0;
  line-height: 1.7;
  color: #4a392d;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(255, 248, 237, 0.9);
}

.result-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.share-status {
  min-height: 1.3rem;
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

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

.option-button:hover {
  box-shadow: 0 16px 30px rgba(70, 52, 23, 0.08);
}

.primary-button:active,
.secondary-button:active,
.option-button:active {
  transform: translateY(0);
}

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

@media (max-width: 640px) {
  .app-shell {
    padding: 1rem;
    align-items: stretch;
  }

  .hero-card,
  .quiz-card,
  .result-card {
    border-radius: 1.65rem;
  }

  .hero-card {
    padding: 1rem;
  }

  .hero-illustration {
    min-height: 15rem;
  }

  .cat-face {
    width: 10.5rem;
    height: 9.2rem;
  }

  .ear {
    width: 2.9rem;
    height: 3.6rem;
  }

  .eye {
    top: 3.6rem;
  }

  .nose {
    top: 5.5rem;
  }

  .whisker {
    top: 5.8rem;
    width: 2.6rem;
  }

  .whisker-left-bottom,
  .whisker-right-bottom {
    top: 6.3rem;
  }

  .quiz-card,
  .result-card {
    padding: 1rem;
  }

  .result-hero {
    gap: 1rem;
    padding: 1rem;
    align-items: center;
  }

  .result-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 1.7rem;
    font-size: 3.9rem;
  }
}
