: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;
}

.toon-cat {
  --toon-fur: #ffd27a;
  --toon-inner-ear: #f3b49f;
  --toon-mark: #ef9730;
  --toon-eye: #3c2d24;
  --toon-muzzle: #fff6eb;
  position: absolute;
}

.toon-cat--hero {
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 13rem;
  height: 12rem;
}

.toon-ear,
.toon-head,
.toon-eye,
.toon-muzzle,
.toon-nose,
.toon-mask,
.toon-mark,
.toon-body {
  position: absolute;
}

.toon-ear {
  top: 0.6rem;
  width: 2.75rem;
  height: 3.5rem;
  background: var(--toon-fur);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.toon-ear::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.72rem;
  transform: translateX(-50%);
  width: 1.35rem;
  height: 1.8rem;
  background: var(--toon-inner-ear);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.toon-ear-left {
  left: 1.15rem;
  transform: rotate(-10deg);
}

.toon-ear-right {
  right: 1.15rem;
  transform: rotate(10deg);
}

.toon-head {
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 9.25rem;
  height: 7.8rem;
  background: var(--toon-fur);
  border-radius: 42% 42% 38% 38%;
  box-shadow:
    inset 0 -0.7rem 0 color-mix(in srgb, var(--toon-mark) 22%, transparent),
    0 0.45rem 0 rgba(92, 61, 14, 0.1);
}

.toon-mask,
.toon-mark {
  opacity: 0;
}

.toon-eye {
  top: 2.65rem;
  width: 0.95rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--toon-eye);
}

.toon-eye-left {
  left: 2.15rem;
}

.toon-eye-right {
  right: 2.15rem;
}

.toon-muzzle {
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  width: 2.95rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--toon-muzzle);
}

.toon-nose {
  left: 50%;
  top: 4.45rem;
  transform: translateX(-50%);
  width: 0.95rem;
  height: 0.7rem;
  border-radius: 0.4rem 0.4rem 0.55rem 0.55rem;
  background: #f09d8b;
}

.toon-body {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 6.4rem;
  height: 3.25rem;
  border-radius: 1.4rem 1.4rem 0.5rem 0.5rem;
  background: color-mix(in srgb, var(--toon-fur) 88%, white);
  box-shadow: inset 0 -0.55rem 0 color-mix(in srgb, var(--toon-mark) 16%, transparent);
}

.toon-cat .toon-mark-a,
.toon-cat .toon-mark-b,
.toon-cat .toon-mark-c {
  background: var(--toon-mark);
}

.toon-cat--orange {
  --toon-fur: #ffd27a;
  --toon-inner-ear: #f3b49f;
  --toon-mark: #ef9730;
  --toon-eye: #3c2d24;
}

.toon-cat--orange .toon-mark,
.toon-cat--tabby .toon-mark {
  opacity: 1;
  top: 1rem;
  width: 0.72rem;
  height: 1.5rem;
  border-radius: 999px;
}

.toon-cat--orange .toon-mark-a,
.toon-cat--tabby .toon-mark-a {
  left: 2.05rem;
}

.toon-cat--orange .toon-mark-b,
.toon-cat--tabby .toon-mark-b {
  left: 3.05rem;
  height: 1.9rem;
}

.toon-cat--orange .toon-mark-c,
.toon-cat--tabby .toon-mark-c {
  right: 2.05rem;
}

.toon-cat--ragdoll {
  --toon-fur: #fff4e5;
  --toon-inner-ear: #f5cabf;
  --toon-mark: #d7b49a;
  --toon-eye: #4a392d;
}

.toon-cat--ragdoll .toon-head {
  border-radius: 44% 44% 42% 42%;
}

.toon-cat--ragdoll .toon-mark {
  opacity: 1;
  top: 1.2rem;
  width: 1.2rem;
  height: 2rem;
  border-radius: 1rem;
}

.toon-cat--ragdoll .toon-mark-a {
  left: 0.75rem;
}

.toon-cat--ragdoll .toon-mark-b {
  right: 0.75rem;
}

.toon-cat--ragdoll .toon-mark-c {
  opacity: 1;
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
  width: 2rem;
  height: 0.7rem;
  border-radius: 999px;
}

.toon-cat--black {
  --toon-fur: #4f4a59;
  --toon-inner-ear: #8f7a86;
  --toon-mark: rgba(255, 255, 255, 0.18);
  --toon-eye: #f6e5a6;
  --toon-muzzle: rgba(255, 255, 255, 0.14);
}

.toon-cat--black .toon-eye {
  width: 1.05rem;
  height: 0.75rem;
  top: 2.95rem;
}

.toon-cat--black .toon-mark {
  opacity: 1;
  top: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

.toon-cat--black .toon-mark-a {
  left: 2.45rem;
}

.toon-cat--black .toon-mark-b {
  right: 2.45rem;
}

.toon-cat--cow {
  --toon-fur: #fff8ee;
  --toon-inner-ear: #1f1d21;
  --toon-mark: #1f1d21;
  --toon-eye: #1f1d21;
}

.toon-cat--cow .toon-mark {
  opacity: 1;
  border-radius: 1rem;
}

.toon-cat--cow .toon-mark-a {
  left: 0.25rem;
  top: 0.75rem;
  width: 2.1rem;
  height: 2rem;
}

.toon-cat--cow .toon-mark-b {
  right: 0.75rem;
  top: 1.45rem;
  width: 1.1rem;
  height: 1.3rem;
}

.toon-cat--cow .toon-mark-c {
  left: 2.45rem;
  bottom: 0.25rem;
  width: 1.55rem;
  height: 0.9rem;
}

.toon-cat--tabby {
  --toon-fur: #b88a63;
  --toon-inner-ear: #e0b39b;
  --toon-mark: #6c4934;
  --toon-eye: #2f251d;
}

.toon-cat--maine {
  --toon-fur: #c79b72;
  --toon-inner-ear: #efc2a5;
  --toon-mark: #8a5b38;
  --toon-eye: #2c211b;
}

.toon-cat--maine .toon-head {
  width: 9.8rem;
  height: 8rem;
  border-radius: 45% 45% 38% 38%;
}

.toon-cat--maine .toon-ear {
  width: 3rem;
  height: 3.8rem;
  top: 0.15rem;
}

.toon-cat--maine .toon-mark {
  opacity: 1;
  top: 1.15rem;
  width: 0.95rem;
  height: 1.45rem;
  border-radius: 999px;
}

.toon-cat--maine .toon-mark-a {
  left: 1rem;
}

.toon-cat--maine .toon-mark-b {
  right: 1rem;
}

.toon-cat--maine .toon-muzzle {
  width: 3.2rem;
}

.toon-cat--siamese {
  --toon-fur: #f3dfc3;
  --toon-inner-ear: #70503d;
  --toon-mark: #70503d;
  --toon-eye: #2a2019;
  --toon-muzzle: #f1deca;
}

.toon-cat--siamese .toon-mask {
  opacity: 1;
  left: 50%;
  top: 1.05rem;
  transform: translateX(-50%);
  width: 4.9rem;
  height: 3.45rem;
  border-radius: 1.4rem;
  background: #70503d;
}

.toon-cat--siamese .toon-ear {
  background: #70503d;
}

.toon-cat--silver {
  --toon-fur: #edf1f4;
  --toon-inner-ear: #d7c1c7;
  --toon-mark: #a4afb7;
  --toon-eye: #43454d;
}

.toon-cat--silver .toon-mark {
  opacity: 1;
  top: 1.05rem;
  width: 1.45rem;
  height: 1.05rem;
  border-radius: 999px;
}

.toon-cat--silver .toon-mark-a {
  left: 1.05rem;
}

.toon-cat--silver .toon-mark-b {
  right: 1.05rem;
}

.toon-cat--calico {
  --toon-fur: #fff2de;
  --toon-inner-ear: #f6b693;
  --toon-mark: #ef9730;
  --toon-eye: #2a292f;
}

.toon-cat--calico .toon-mark {
  opacity: 1;
  border-radius: 1rem;
}

.toon-cat--calico .toon-mark-a {
  left: 0.65rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.5rem;
}

.toon-cat--calico .toon-mark-b {
  right: 0.7rem;
  top: 1.7rem;
  width: 1.45rem;
  height: 1.25rem;
  background: #2a292f;
}

.toon-cat--calico .toon-mark-c {
  left: 2.7rem;
  bottom: 0.25rem;
  width: 1.2rem;
  height: 0.85rem;
}

.toon-cat--sphynx {
  --toon-fur: #e6b6a6;
  --toon-inner-ear: #d98f81;
  --toon-mark: rgba(116, 63, 54, 0.48);
  --toon-eye: #402a27;
  --toon-muzzle: rgba(255, 233, 228, 0.34);
}

.toon-cat--sphynx .toon-head {
  width: 8.2rem;
  height: 8rem;
  border-radius: 48% 48% 36% 36%;
}

.toon-cat--sphynx .toon-ear {
  width: 2.3rem;
  height: 3.6rem;
  top: 0.1rem;
}

.toon-cat--sphynx .toon-mark {
  opacity: 1;
  height: 0.22rem;
  border-radius: 999px;
}

.toon-cat--sphynx .toon-mark-a {
  left: 1rem;
  top: 1.85rem;
  width: 2.05rem;
}

.toon-cat--sphynx .toon-mark-b {
  right: 0.95rem;
  top: 2.5rem;
  width: 2.35rem;
}

.toon-cat--sphynx .toon-mark-c {
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 1.85rem;
}

.toon-cat--bengal {
  --toon-fur: #d59a49;
  --toon-inner-ear: #f0bf8f;
  --toon-mark: #6b4322;
  --toon-eye: #2f231b;
}

.toon-cat--bengal .toon-eye {
  width: 1.05rem;
  height: 0.85rem;
  top: 2.7rem;
}

.toon-cat--bengal .toon-mark {
  opacity: 1;
  border-radius: 999px;
}

.toon-cat--bengal .toon-mark-a {
  left: 1rem;
  top: 1.15rem;
  width: 0.85rem;
  height: 0.85rem;
}

.toon-cat--bengal .toon-mark-b {
  right: 1rem;
  top: 1.95rem;
  width: 0.95rem;
  height: 0.95rem;
}

.toon-cat--bengal .toon-mark-c {
  left: 3rem;
  top: 0.95rem;
  width: 0.75rem;
  height: 0.75rem;
}

.pixel-cat {
  --pixel-fur: #fff1d2;
  --pixel-ear: #f7c3bc;
  --pixel-accent: #f3a43b;
  --pixel-eye: #3c2d24;
  --pixel-shadow: rgba(92, 61, 14, 0.12);
  position: absolute;
  image-rendering: pixelated;
}

.hero-pixel-cat {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 13rem;
  height: 12rem;
}

.pixel-ear,
.pixel-head,
.pixel-body,
.pixel-eye,
.pixel-nose,
.pixel-blush,
.pixel-mark,
.pixel-mask,
.pixel-tuft,
.pixel-muzzle,
.pixel-spot {
  position: absolute;
}

.pixel-ear {
  top: 0.55rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--pixel-fur);
  box-shadow:
    0 0 0 0.3rem rgba(87, 63, 38, 0.08),
    inset 0 0 0 0.65rem var(--pixel-ear);
}

.pixel-ear-left {
  left: 1.35rem;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.pixel-ear-right {
  right: 1.35rem;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.pixel-head {
  left: 50%;
  bottom: 1.55rem;
  transform: translateX(-50%);
  width: 9.2rem;
  height: 7.6rem;
  background: var(--pixel-fur);
  border-radius: 0.2rem;
  box-shadow:
    inset 0 -0.9rem 0 color-mix(in srgb, var(--pixel-accent) 25%, transparent),
    0 0.45rem 0 var(--pixel-shadow);
}

.pixel-head::before,
.pixel-head::after {
  content: "";
  position: absolute;
  top: 1.55rem;
  width: 1.1rem;
  height: 1.6rem;
  background: color-mix(in srgb, var(--pixel-accent) 24%, transparent);
}

.pixel-head::before {
  left: 1.2rem;
}

.pixel-head::after {
  right: 1.2rem;
}

.pixel-body {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 6.7rem;
  height: 3.1rem;
  background: color-mix(in srgb, var(--pixel-fur) 88%, white);
  border-radius: 0.2rem;
  box-shadow: inset 0 -0.65rem 0 color-mix(in srgb, var(--pixel-accent) 18%, transparent);
}

.pixel-eye {
  top: 2.55rem;
  width: 0.9rem;
  height: 1.25rem;
  background: var(--pixel-eye);
}

.pixel-eye-left {
  left: 2.2rem;
}

.pixel-eye-right {
  right: 2.2rem;
}

.pixel-nose {
  left: 50%;
  top: 4.25rem;
  transform: translateX(-50%);
  width: 1rem;
  height: 0.75rem;
  background: #f09d8b;
}

.pixel-blush {
  top: 4.35rem;
  width: 1rem;
  height: 0.6rem;
  background: color-mix(in srgb, var(--pixel-ear) 82%, white);
}

.pixel-blush-left {
  left: 1.1rem;
}

.pixel-blush-right {
  right: 1.1rem;
}

.pixel-mark {
  display: none;
}

.pixel-mask,
.pixel-tuft,
.pixel-muzzle,
.pixel-spot {
  display: none;
}

.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);
  overflow: hidden;
}

.result-pixel-cat {
  position: relative;
  width: 6.5rem;
  height: 6.2rem;
}

.result-avatar .toon-cat {
  position: relative;
  width: 6.7rem;
  height: 6.2rem;
}

.result-pixel-cat .pixel-head,
.result-pixel-cat .pixel-ear,
.result-pixel-cat .pixel-eye,
.result-pixel-cat .pixel-body,
.result-pixel-cat .pixel-blush,
.result-pixel-cat .pixel-mask,
.result-pixel-cat .pixel-tuft,
.result-pixel-cat .pixel-muzzle,
.result-pixel-cat .pixel-spot {
  transition:
    transform 0.22s ease,
    width 0.22s ease,
    height 0.22s ease,
    border-radius 0.22s ease,
    top 0.22s ease,
    bottom 0.22s ease;
}

.result-pixel-cat .pixel-mark {
  display: block;
}

.result-pixel-cat .pixel-muzzle {
  display: block;
  left: 50%;
  bottom: 0.95rem;
  transform: translateX(-50%);
  width: 2.65rem;
  height: 1.3rem;
  background: color-mix(in srgb, var(--pixel-fur) 88%, white);
  border-radius: 0.35rem;
}

.result-pixel-cat .pixel-mask {
  display: block;
  opacity: 0;
}

.result-pixel-cat .pixel-tuft {
  display: block;
  opacity: 0;
}

.result-pixel-cat .pixel-spot {
  display: block;
  opacity: 0;
}

.result-pixel-cat[data-cat-type="orange"] .pixel-mark-a,
.result-pixel-cat[data-cat-type="orange"] .pixel-mark-b,
.result-pixel-cat[data-cat-type="orange"] .pixel-mark-c {
  width: 0.7rem;
  height: 1.3rem;
  top: 1rem;
  background: #cc7427;
}

.result-pixel-cat[data-cat-type="orange"] .pixel-mark-a {
  left: 2.1rem;
}

.result-pixel-cat[data-cat-type="orange"] .pixel-mark-b {
  left: 3rem;
  height: 1.7rem;
}

.result-pixel-cat[data-cat-type="orange"] .pixel-mark-c {
  right: 2.1rem;
}

.result-pixel-cat[data-cat-type="ragdoll"] .pixel-mark-a,
.result-pixel-cat[data-cat-type="ragdoll"] .pixel-mark-b {
  width: 1.25rem;
  height: 2.1rem;
  top: 1.2rem;
  background: #d7b49a;
}

.result-pixel-cat[data-cat-type="ragdoll"] .pixel-mark-a {
  left: 0.7rem;
}

.result-pixel-cat[data-cat-type="ragdoll"] .pixel-mark-b {
  right: 0.7rem;
}

.result-pixel-cat[data-cat-type="ragdoll"] .pixel-mark-c {
  width: 2.1rem;
  height: 0.8rem;
  display: block;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  background: #d7b49a;
}

.result-pixel-cat[data-cat-type="ragdoll"] .pixel-head {
  width: 9.6rem;
  height: 7.95rem;
  border-radius: 0.65rem;
}

.result-pixel-cat[data-cat-type="ragdoll"] .pixel-muzzle {
  width: 3rem;
  height: 1.45rem;
}

.result-pixel-cat[data-cat-type="ragdoll"] .pixel-body {
  width: 7.2rem;
  border-radius: 0.55rem;
}

.result-pixel-cat[data-cat-type="ragdoll"] .pixel-eye {
  top: 2.75rem;
  height: 1.05rem;
}

.result-pixel-cat[data-cat-type="black"] .pixel-head {
  width: 8.9rem;
  height: 7.2rem;
  box-shadow:
    inset 0 -0.9rem 0 rgba(255, 255, 255, 0.06),
    0 0.45rem 0 rgba(16, 10, 19, 0.28);
}

.result-pixel-cat[data-cat-type="black"] .pixel-eye {
  top: 2.85rem;
  width: 1.05rem;
  height: 0.72rem;
}

.result-pixel-cat[data-cat-type="black"] .pixel-ear {
  top: 0.35rem;
  width: 2.3rem;
  height: 2.8rem;
}

.result-pixel-cat[data-cat-type="black"] .pixel-muzzle {
  width: 2.1rem;
  height: 1rem;
  background: rgba(255, 255, 255, 0.12);
}

.result-pixel-cat[data-cat-type="black"] .pixel-blush {
  display: none;
}

.result-pixel-cat[data-cat-type="black"] .pixel-mark-a,
.result-pixel-cat[data-cat-type="black"] .pixel-mark-b {
  width: 0.55rem;
  height: 0.55rem;
  top: 0.9rem;
  background: rgba(255, 255, 255, 0.14);
}

.result-pixel-cat[data-cat-type="black"] .pixel-mark-a {
  left: 2.5rem;
}

.result-pixel-cat[data-cat-type="black"] .pixel-mark-b {
  right: 2.5rem;
}

.result-pixel-cat[data-cat-type="cow"] .pixel-mark-a,
.result-pixel-cat[data-cat-type="cow"] .pixel-mark-b,
.result-pixel-cat[data-cat-type="cow"] .pixel-mark-c {
  background: #262228;
}

.result-pixel-cat[data-cat-type="cow"] .pixel-mark-a {
  width: 2.2rem;
  height: 2.1rem;
  left: 0.2rem;
  top: 0.65rem;
}

.result-pixel-cat[data-cat-type="cow"] .pixel-mark-b {
  width: 1.2rem;
  height: 1.4rem;
  right: 0.8rem;
  top: 1.4rem;
}

.result-pixel-cat[data-cat-type="cow"] .pixel-mark-c {
  width: 1.7rem;
  height: 1rem;
  left: 2.45rem;
  bottom: 0.35rem;
}

.result-pixel-cat[data-cat-type="cow"] .pixel-head {
  width: 9rem;
  height: 7.45rem;
  border-radius: 0.38rem;
}

.result-pixel-cat[data-cat-type="cow"] .pixel-muzzle {
  width: 2.75rem;
}

.result-pixel-cat[data-cat-type="tabby"] .pixel-mark-a,
.result-pixel-cat[data-cat-type="tabby"] .pixel-mark-b,
.result-pixel-cat[data-cat-type="tabby"] .pixel-mark-c {
  width: 0.55rem;
  height: 1.8rem;
  top: 0.85rem;
  background: #6c4934;
}

.result-pixel-cat[data-cat-type="tabby"] .pixel-mark-a {
  left: 2rem;
}

.result-pixel-cat[data-cat-type="tabby"] .pixel-mark-b {
  left: 2.95rem;
  height: 2.1rem;
}

.result-pixel-cat[data-cat-type="tabby"] .pixel-mark-c {
  right: 2rem;
}

.result-pixel-cat[data-cat-type="tabby"] .pixel-head {
  width: 8.95rem;
  height: 7.35rem;
}

.result-pixel-cat[data-cat-type="tabby"] .pixel-muzzle {
  width: 2.5rem;
}

.result-pixel-cat[data-cat-type="tabby"] .pixel-eye {
  top: 2.7rem;
  width: 0.82rem;
  height: 1.15rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-ear {
  top: -0.1rem;
  width: 2.7rem;
  height: 3.35rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-tuft {
  opacity: 1;
  top: 0.1rem;
  width: 1.2rem;
  height: 1.7rem;
  background: color-mix(in srgb, var(--pixel-fur) 78%, white);
}

.result-pixel-cat[data-cat-type="maine"] .pixel-tuft-left {
  left: 0.55rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-tuft-right {
  right: 0.55rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-mark-a,
.result-pixel-cat[data-cat-type="maine"] .pixel-mark-b {
  width: 1rem;
  height: 1.4rem;
  top: 1.05rem;
  background: #8a5b38;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-mark-a {
  left: 1rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-mark-b {
  right: 1rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-head {
  width: 10rem;
  height: 8.15rem;
  border-radius: 0.55rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-body {
  width: 7.5rem;
  height: 3.35rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-muzzle {
  width: 3.15rem;
  height: 1.4rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-eye {
  top: 2.9rem;
  width: 0.95rem;
  height: 0.9rem;
}

.result-pixel-cat[data-cat-type="maine"] .pixel-head::before,
.result-pixel-cat[data-cat-type="maine"] .pixel-head::after {
  top: 1.3rem;
  width: 1.45rem;
  height: 2rem;
}

.result-pixel-cat[data-cat-type="siamese"] .pixel-ear {
  background: #70503d;
  box-shadow:
    0 0 0 0.3rem rgba(87, 63, 38, 0.08),
    inset 0 0 0 0.35rem #5c4233;
}

.result-pixel-cat[data-cat-type="siamese"] .pixel-mark-a {
  width: 4.6rem;
  height: 3.2rem;
  left: 50%;
  top: 0.9rem;
  transform: translateX(-50%);
  background: #70503d;
}

.result-pixel-cat[data-cat-type="siamese"] .pixel-mask {
  opacity: 1;
  left: 50%;
  top: 1.15rem;
  transform: translateX(-50%);
  width: 4.9rem;
  height: 3.5rem;
  background: #70503d;
}

.result-pixel-cat[data-cat-type="siamese"] .pixel-body {
  background: #8f6a51;
}

.result-pixel-cat[data-cat-type="siamese"] .pixel-muzzle {
  width: 2.15rem;
  background: #f1deca;
}

.result-pixel-cat[data-cat-type="siamese"] .pixel-eye {
  top: 2.7rem;
  width: 0.88rem;
  height: 1rem;
}

.result-pixel-cat[data-cat-type="silver"] .pixel-mark-a,
.result-pixel-cat[data-cat-type="silver"] .pixel-mark-b {
  width: 1.6rem;
  height: 1.1rem;
  top: 0.95rem;
  background: #b3bcc3;
}

.result-pixel-cat[data-cat-type="silver"] .pixel-mark-a {
  left: 1.15rem;
}

.result-pixel-cat[data-cat-type="silver"] .pixel-mark-b {
  right: 1.15rem;
}

.result-pixel-cat[data-cat-type="silver"] .pixel-head {
  width: 9.3rem;
  height: 7.55rem;
  border-radius: 0.52rem;
}

.result-pixel-cat[data-cat-type="silver"] .pixel-muzzle {
  width: 2.85rem;
}

.result-pixel-cat[data-cat-type="silver"] .pixel-eye {
  top: 2.8rem;
  width: 0.82rem;
  height: 1rem;
}

.result-pixel-cat[data-cat-type="calico"] .pixel-mark-a {
  width: 1.7rem;
  height: 1.5rem;
  left: 0.6rem;
  top: 1rem;
  background: #ef9730;
}

.result-pixel-cat[data-cat-type="calico"] .pixel-mark-b {
  width: 1.5rem;
  height: 1.3rem;
  right: 0.7rem;
  top: 1.7rem;
  background: #2a292f;
}

.result-pixel-cat[data-cat-type="calico"] .pixel-mark-c {
  width: 1.3rem;
  height: 0.9rem;
  left: 2.7rem;
  bottom: 0.3rem;
  background: #ef9730;
}

.result-pixel-cat[data-cat-type="calico"] .pixel-head {
  width: 9.1rem;
  height: 7.5rem;
  border-radius: 0.45rem;
}

.result-pixel-cat[data-cat-type="calico"] .pixel-muzzle {
  width: 2.8rem;
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-blush {
  display: none;
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-mark-a,
.result-pixel-cat[data-cat-type="sphynx"] .pixel-mark-b,
.result-pixel-cat[data-cat-type="sphynx"] .pixel-mark-c {
  height: 0.25rem;
  background: rgba(116, 63, 54, 0.48);
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-mark-a {
  width: 2.1rem;
  left: 1rem;
  top: 1.7rem;
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-mark-b {
  width: 2.4rem;
  right: 0.9rem;
  top: 2.45rem;
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-mark-c {
  width: 1.9rem;
  left: 50%;
  bottom: 1.55rem;
  transform: translateX(-50%);
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-head {
  width: 8.2rem;
  height: 8.15rem;
  border-radius: 1rem 1rem 0.35rem 0.35rem;
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-ear {
  top: -0.2rem;
  width: 2.2rem;
  height: 3.15rem;
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-eye {
  top: 3rem;
  width: 0.8rem;
  height: 1.1rem;
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-muzzle {
  width: 1.95rem;
  height: 1rem;
  bottom: 1.15rem;
  background: rgba(255, 233, 228, 0.3);
}

.result-pixel-cat[data-cat-type="sphynx"] .pixel-body {
  width: 6rem;
  height: 2.7rem;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-mark-a,
.result-pixel-cat[data-cat-type="bengal"] .pixel-mark-b,
.result-pixel-cat[data-cat-type="bengal"] .pixel-mark-c {
  background: #6b4322;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-mark-a {
  width: 1rem;
  height: 1rem;
  left: 1rem;
  top: 1.1rem;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-mark-b {
  width: 1.1rem;
  height: 1.1rem;
  right: 1.1rem;
  top: 1.8rem;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-mark-c {
  width: 0.9rem;
  height: 0.9rem;
  left: 3rem;
  top: 0.95rem;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-head {
  width: 8.75rem;
  height: 7.2rem;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-spot {
  opacity: 1;
  background: #6b4322;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-spot-a {
  left: 1rem;
  top: 1.2rem;
  width: 0.8rem;
  height: 0.8rem;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-spot-b {
  right: 1rem;
  top: 1.95rem;
  width: 0.95rem;
  height: 0.95rem;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-spot-c {
  left: 3rem;
  top: 0.95rem;
  width: 0.7rem;
  height: 0.7rem;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-ear {
  top: 0.2rem;
  width: 2.35rem;
  height: 2.9rem;
}

.result-pixel-cat[data-cat-type="bengal"] .pixel-eye {
  top: 2.6rem;
  width: 1.05rem;
  height: 0.82rem;
}

.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;
  }

  .toon-cat--hero {
    width: 11rem;
    height: 10rem;
  }

  .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;
  }

  .result-pixel-cat {
    width: 5.4rem;
    height: 5.1rem;
  }

  .result-avatar .toon-cat {
    width: 5.5rem;
    height: 5.2rem;
  }
}
