:root {
  --bg: #09080f;
  --bg-2: #171228;
  --paper: rgba(255, 245, 233, 0.92);
  --paper-strong: rgba(255, 250, 244, 0.97);
  --ink: #18131f;
  --muted: #6f6680;
  --line: rgba(24, 19, 31, 0.1);
  --acid: #d7ff4c;
  --orange: #ff7b36;
  --pink: #ff63c3;
  --blue: #4fcbff;
  --green: #67f5ac;
  --red: #ff4d6d;
  --cream: #fff4e8;
  --shadow: 0 24px 56px rgba(8, 6, 18, 0.42);
  --shadow-soft: 0 14px 30px rgba(8, 6, 18, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 430px;
  --font-display: "ZCOOL KuaiLe", "Ma Shan Zheng", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-code: "Bungee", "ZCOOL KuaiLe", sans-serif;
}

* {
  box-sizing: border-box;
}

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

html {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 99, 195, 0.24), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(79, 203, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #08070d 0%, #141020 54%, #0c0a15 100%);
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top, rgba(255, 123, 54, 0.12), transparent 22%),
    repeating-linear-gradient(
      -18deg,
      rgba(255, 255, 255, 0.018) 0 16px,
      transparent 16px 34px
    ),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.03) 100%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  max-width: var(--max-width);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 99, 195, 0.16), transparent 18%),
    radial-gradient(circle at 100% 10%, rgba(79, 203, 255, 0.16), transparent 20%),
    radial-gradient(circle at 50% 120%, rgba(215, 255, 76, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(16, 13, 28, 0.96) 0%, rgba(12, 10, 21, 0.98) 100%);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 80px rgba(0, 0, 0, 0.35);
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-shell::before {
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: overlay;
}

.app-shell::after {
  opacity: 0.4;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px),
    radial-gradient(circle at 74% 38%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 82%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom));
  position: relative;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.noise-layer {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.35) 0.65px, transparent 0.65px),
    radial-gradient(rgba(255, 255, 255, 0.2) 0.75px, transparent 0.75px);
  background-position: 0 0, 14px 14px;
  background-size: 20px 20px, 26px 26px;
}

.screen-home {
  gap: 0;
  padding-top: 18px;
}

.hero,
.home-actions,
.prompt-card,
.options,
.result-main,
.quiz-rule {
  position: relative;
  z-index: 2;
}

.hero {
  text-align: center;
  padding-top: 10px;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0;
  line-height: 1;
}

.title-pill,
.title-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 10px 16px;
  border-radius: 24px;
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.title-pill {
  background: linear-gradient(135deg, rgba(255, 242, 173, 0.96), rgba(255, 123, 54, 0.94));
  color: #1e1329;
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 42px);
  border: 2px solid rgba(27, 17, 39, 0.08);
}

.title-core {
  min-width: 180px;
  padding: 14px 20px;
  background:
    linear-gradient(135deg, rgba(255, 99, 195, 0.94), rgba(79, 203, 255, 0.94)),
    #fff;
  color: #fffafc;
  font-family: var(--font-display);
  font-size: clamp(38px, 11vw, 54px);
  border: 3px solid rgba(255, 255, 255, 0.24);
  text-shadow:
    0 4px 0 rgba(15, 9, 22, 0.3),
    0 14px 18px rgba(15, 9, 22, 0.22);
}

.tilt-left {
  transform: rotate(-8deg);
}

.tilt-right {
  transform: rotate(7deg);
}

.animals-stage {
  width: 100%;
  overflow: hidden;
  min-height: 320px;
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.animals-stage.ready {
  opacity: 1;
}

.animals-row {
  display: flex;
  gap: 0;
  width: max-content;
  align-items: center;
  --loop-distance: 0px;
  --row-duration: 18s;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.animals-row.row-1 {
  animation: scroll-left var(--row-duration) linear infinite;
}

.animals-row.row-2 {
  animation: scroll-right var(--row-duration) linear infinite;
}

.animals-row.row-3 {
  animation: scroll-left var(--row-duration) linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(calc(var(--loop-distance) * -1), 0, 0);
  }
}

@keyframes scroll-right {
  0% {
    transform: translate3d(calc(var(--loop-distance) * -1), 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.animal-cell {
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.animal-cell img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
}

.prompt-card,
.result-card,
.traits-card {
  background: var(--paper);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.teaser-top,
.section-head,
.quiz-header,
.result-topbar,
.result-actions {
  display: flex;
  align-items: center;
}

.section-head,
.result-topbar {
  justify-content: space-between;
}

.result-visual {
  display: grid;
  place-items: center;
}

.cat-asset-frame {
  position: relative;
  width: var(--cat-size);
  height: var(--cat-size);
}

.cat-asset-frame.halo::before {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 50% 50%, rgba(255, 165, 96, 0.22) 0%, rgba(255, 123, 54, 0) 62%),
    linear-gradient(135deg, rgba(255, 248, 238, 0.9), rgba(241, 232, 222, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -12px 24px rgba(110, 78, 54, 0.1),
    0 18px 34px rgba(24, 22, 21, 0.14);
  z-index: 0;
}

.cat-asset-frame.halo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(104, 79, 58, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 0 -8px 18px rgba(24, 22, 21, 0.04);
  pointer-events: none;
  z-index: 1;
}

.cat-asset {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  filter:
    drop-shadow(0 16px 24px rgba(24, 22, 21, 0.14))
    saturate(1.02)
    contrast(1.01);
  z-index: 2;
}

.result-visual .cat-asset-frame {
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 1 / 1;
}

.result-visual .cat-asset {
  object-position: center center;
}

.home-actions {
  margin-top: 28px;
  padding: 20px 16px 38px;
  text-align: center;
}

.home-main-title {
  margin: 0 0 10px;
  color: #fff8eb;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.22;
  text-wrap: balance;
}

.home-tagline {
  margin: 0 0 20px;
  color: rgba(255, 244, 230, 0.82);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease;
}

.primary-btn,
.secondary-btn,
.ghost-btn.wide {
  width: 100%;
}

.primary-btn,
.secondary-btn,
.ghost-btn.wide {
  min-height: 58px;
  padding: 16px 22px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.primary-btn::after,
.secondary-btn::after,
.ghost-btn.wide::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -18%;
  width: 38%;
  height: 160%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-22deg) translateX(-220%);
  animation: button-glint 4.2s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  filter: brightness(1.04);
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active {
  transform: translateY(2px) rotate(var(--btn-tilt, 0deg)) scale(0.985);
}

.primary-btn[data-sticker]::before,
.secondary-btn[data-sticker]::before {
  content: attr(data-sticker);
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #120b1a;
  background: #fff3b3;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
  animation: sticker-float 2.8s ease-in-out infinite;
  z-index: 2;
}

.primary-btn[data-sticker],
.secondary-btn[data-sticker] {
  padding-right: 90px;
}

.primary-btn {
  --btn-tilt: -1deg;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, #e2ff34 0%, #ffd348 44%, #ff9238 100%);
  color: #120b1a;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -8px 0 rgba(120, 64, 16, 0.24),
    0 20px 30px rgba(0, 0, 0, 0.26),
    0 8px 0 rgba(18, 11, 26, 0.22);
  transform: translateY(0) rotate(var(--btn-tilt));
}

.primary-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.primary-btn:not(:disabled) {
  animation: button-float 3.4s ease-in-out infinite;
}

.primary-btn:not(:disabled):hover {
  transform: translateY(-4px) rotate(calc(var(--btn-tilt) - 0.3deg)) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -8px 0 rgba(120, 64, 16, 0.24),
    0 26px 34px rgba(0, 0, 0, 0.3),
    0 10px 0 rgba(18, 11, 26, 0.2);
}

.secondary-btn {
  --btn-tilt: 1deg;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 248, 0.94));
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -7px 0 rgba(181, 164, 179, 0.2),
    0 16px 26px rgba(0, 0, 0, 0.14),
    0 6px 0 rgba(24, 19, 31, 0.08);
  transform: translateY(0) rotate(var(--btn-tilt));
}

.secondary-btn[data-sticker]::before {
  background: var(--blue);
}

.secondary-btn:hover {
  transform: translateY(-3px) rotate(calc(var(--btn-tilt) + 0.2deg));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -7px 0 rgba(181, 164, 179, 0.2),
    0 20px 30px rgba(0, 0, 0, 0.18),
    0 8px 0 rgba(24, 19, 31, 0.08);
}

.ghost-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff4e8;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.16);
}

.ghost-btn.wide {
  background: rgba(255, 255, 255, 0.08);
  color: #fff5eb;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 800;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 18px rgba(0, 0, 0, 0.16);
}

.ghost-btn.wide::after {
  opacity: 0.22;
}

.legal-copy {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 245, 232, 0.56);
  text-align: center;
}

.legal-copy a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 245, 232, 0.28);
  padding-bottom: 1px;
}

.screen-quiz {
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 99, 195, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(16, 13, 28, 0.92), rgba(10, 8, 18, 0.98));
}

.quiz-header {
  gap: 14px;
  padding: 0 2px;
}

.quiz-rule {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 203, 255, 0.22), rgba(255, 99, 195, 0.18));
  color: rgba(255, 246, 236, 0.92);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.quiz-headline {
  flex: 1;
}

#progress-text {
  margin: 0 0 8px;
  color: rgba(255, 245, 232, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 11.11%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acid), var(--orange), var(--pink));
  box-shadow: 0 0 20px rgba(255, 123, 54, 0.5);
  transition: width 0.28s ease;
}

.quiz-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  padding-bottom: 10px;
}

.next-btn {
  margin-top: 2px;
  position: sticky;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 3;
}

#start-btn {
  animation-duration: 3s;
}

#share-btn {
  animation-duration: 3.7s;
}

#poster-btn {
  animation: button-float 3.9s ease-in-out infinite;
}

#retry-btn {
  animation: soft-pulse 4.4s ease-in-out infinite;
}

.prompt-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 22px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 243, 233, 0.96)),
    var(--paper);
}

.prompt-card::before,
.prompt-card::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 14px;
  background: rgba(79, 203, 255, 0.28);
  top: 12px;
}

.prompt-card::before {
  left: -8px;
  transform: rotate(-16deg);
}

.prompt-card::after {
  right: -10px;
  background: rgba(255, 99, 195, 0.26);
  transform: rotate(18deg);
}

.prompt-doodles {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  gap: 8px;
  color: rgba(110, 87, 145, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.prompt-top {
  display: block;
}

.prompt-hint {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(135deg, rgba(215, 255, 76, 0.26), rgba(79, 203, 255, 0.2));
  border: 1px solid rgba(24, 19, 31, 0.06);
}

.prompt-kicker {
  margin: 16px 0 6px;
  color: rgba(65, 54, 82, 0.52);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.question-text {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1.22;
  letter-spacing: -0.04em;
  color: #17121d;
  text-wrap: balance;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  --card-tilt: 0deg;
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 2px solid rgba(24, 19, 31, 0.06);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 242, 231, 0.94));
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: left;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  transform: rotate(var(--card-tilt));
}

.option-btn:nth-child(odd) {
  --card-tilt: -0.6deg;
}

.option-btn:nth-child(even) {
  --card-tilt: 0.6deg;
}

.option-btn::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 203, 255, 0.18), rgba(255, 99, 195, 0.18));
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left center;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.option-btn:active {
  transform: translateY(1px) rotate(var(--card-tilt)) scale(0.985);
}

.option-btn:hover {
  transform: translateY(-2px) rotate(var(--card-tilt));
  box-shadow:
    0 16px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.option-btn.selected {
  border-color: rgba(255, 99, 195, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 238, 191, 0.98), rgba(255, 226, 245, 0.98));
  box-shadow:
    0 16px 28px rgba(255, 99, 195, 0.16),
    0 6px 0 rgba(24, 19, 31, 0.08);
  transform: translateY(-1px) rotate(var(--card-tilt));
  animation: option-pop 0.34s cubic-bezier(0.21, 1.12, 0.38, 1) 1;
}

.option-btn.selected::before {
  opacity: 1;
  transform: scaleX(1);
}

.option-btn.selected::after {
  content: attr(data-picked);
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(24, 19, 31, 0.08);
  font-size: 10px;
  color: rgba(24, 19, 31, 0.72);
  font-weight: 900;
  letter-spacing: 0.05em;
  animation: sticker-bob 2.6s ease-in-out infinite;
}

.option-key {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acid), rgba(255, 227, 112, 0.96));
  color: #18131f;
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.option-btn.selected .option-key {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 12px 18px rgba(255, 153, 77, 0.22);
}

.option-title {
  display: block;
  padding-right: 82px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink);
  font-weight: 700;
}

.screen-result {
  background:
    radial-gradient(circle at top, rgba(215, 255, 76, 0.14), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(255, 99, 195, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(16, 13, 28, 0.95) 0%, rgba(10, 8, 18, 0.98) 100%);
}

.result-topbar {
  padding: 0 2px 12px;
  color: rgba(255, 244, 230, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.result-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

.result-card,
.traits-card {
  padding: 18px 20px 20px;
}

.result-stage {
  position: relative;
  min-height: 260px;
  margin-bottom: 12px;
}

.result-visual {
  min-height: 260px;
  position: relative;
}

.result-visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 123, 54, 0.4) 0%, rgba(255, 123, 54, 0) 66%),
    radial-gradient(circle at 62% 34%, rgba(79, 203, 255, 0.26) 0%, rgba(79, 203, 255, 0) 48%);
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(8px);
}

.result-sticker,
.result-stamp {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.14);
}

.result-sticker {
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--acid), #fff09a);
  color: #18131f;
  transform: rotate(8deg);
}

.result-stamp {
  left: 4px;
  bottom: 8px;
  background: linear-gradient(135deg, var(--blue), #9fefff);
  color: #12101a;
  transform: rotate(-8deg);
}

.result-kicker {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff1c6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.result-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: #18131f;
  text-wrap: balance;
}

.result-subtitle {
  margin: 10px auto 0;
  max-width: 290px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 700;
}

.result-quote {
  margin: 16px 0 0;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 243, 211, 0.92), rgba(238, 247, 255, 0.9));
  color: var(--ink);
  font-size: 15px;
  line-height: 1.88;
  font-weight: 800;
}

.section-head {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 246, 231, 0.94);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(34, 25, 19, 0.05);
}

.tag.dynamic {
  background: linear-gradient(135deg, rgba(79, 203, 255, 0.2), rgba(255, 99, 195, 0.18));
  color: #2c2140;
  border-color: rgba(76, 99, 66, 0.08);
}

.result-body,
.share-caption {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.92;
  font-weight: 700;
}

.share-caption {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.85;
}

.result-actions {
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}

.result-actions > * {
  flex: 1 1 100%;
}

.cat-badge {
  width: 190px;
  height: 190px;
}

@keyframes button-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--btn-tilt, 0deg));
  }

  50% {
    transform: translateY(-4px) rotate(calc(var(--btn-tilt, 0deg) + 0.3deg));
  }
}

@keyframes button-glint {
  0%,
  62% {
    transform: skewX(-22deg) translateX(-220%);
  }

  100% {
    transform: skewX(-22deg) translateX(420%);
  }
}

@keyframes sticker-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-2px) rotate(3deg);
  }
}

@keyframes sticker-float {
  0%,
  100% {
    transform: translateY(-50%) rotate(0deg);
  }

  50% {
    transform: translateY(calc(-50% - 2px)) rotate(3deg);
  }
}

@keyframes option-pop {
  0% {
    transform: scale(0.985) rotate(var(--card-tilt));
  }

  60% {
    transform: scale(1.015) rotate(calc(var(--card-tilt) - 0.15deg));
  }

  100% {
    transform: translateY(-1px) rotate(var(--card-tilt));
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      0 10px 18px rgba(0, 0, 0, 0.16);
  }

  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 14px 24px rgba(0, 0, 0, 0.2);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }

  50% {
    transform: translateY(-8px) rotate(calc(var(--tilt, 0deg) + 2deg));
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (min-width: 480px) {
  .screen {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 390px) {
  .title-pill {
    font-size: 26px;
    min-height: 52px;
    padding: 8px 12px;
  }

  .title-core {
    font-size: 32px;
    min-width: 136px;
    min-height: 54px;
    padding: 12px 16px;
  }

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

  .option-title {
    font-size: 14px;
    padding-right: 74px;
  }

  .home-main-title {
    font-size: 22px;
  }

  .animal-cell {
    width: 96px;
    height: 96px;
  }

  .animal-cell img {
    width: 88px;
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .option-btn,
  .primary-btn::after,
  .secondary-btn::after,
  .ghost-btn.wide::after,
  .primary-btn[data-sticker]::before,
  .secondary-btn[data-sticker]::before,
  .option-btn.selected::after {
    animation: none !important;
    transition: none !important;
  }
}
