:root {
  --paper: #f5ecd8;
  --paper-strong: #fff9ef;
  --ink: #170b08;
  --ink-soft: rgba(23, 11, 8, 0.72);
  --accent-red: #ff5767;
  --accent-blue: #109fe5;
  --accent-lime: #c9ff63;
  --accent-yellow: #ffd35b;
  --panel: rgba(255, 249, 239, 0.9);
  --shadow-xl: 0 28px 80px rgba(23, 11, 8, 0.18);
  --shadow-md: 0 16px 30px rgba(23, 11, 8, 0.12);
  --radius-xl: 32px;
  --content-width: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(16, 159, 229, 0.18), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(255, 87, 103, 0.22), transparent 30%),
    linear-gradient(135deg, #fff5e7 0%, #f9ecd3 45%, #f2dfbe 100%);
  font-family: "Noto Sans SC", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.grain,
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.grain {
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(23, 11, 8, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 11, 8, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: multiply;
}

.ambient-a {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 76% 82%, rgba(255, 211, 91, 0.32), transparent 20%);
}

.ambient-b {
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      transparent 44%,
      rgba(23, 11, 8, 0.04) 44%,
      rgba(23, 11, 8, 0.04) 46%,
      transparent 46%,
      transparent 100%
    );
}

.app-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: 20px 0 56px;
}

.shell-card {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(23, 11, 8, 0.1);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
}

html[data-performance="lite"] .grain {
  opacity: 0.06;
}

html[data-performance="lite"] .ambient-b {
  display: none;
}

html[data-performance="lite"] .shell-card,
html[data-performance="lite"] .mobile-quiz-dock {
  backdrop-filter: none;
}

html[data-performance="lite"] .screen-rise,
html[data-performance="lite"] .hero-copy-block,
html[data-performance="lite"] .hero-cta-row,
html[data-performance="lite"] .feature-card-live,
html[data-performance="lite"] .utility-card-live,
html[data-performance="lite"] .result-panel-live {
  animation-name: riseInLite;
  animation-duration: 320ms;
}

html[data-performance="lite"] .quiz-transition-in {
  animation-name: questionSwapLiteIn;
  animation-duration: 220ms;
}

html[data-performance="lite"] .quiz-transition-out {
  animation-name: questionSwapLiteOut;
  animation-duration: 160ms;
}

html[data-performance="lite"] .live-pill,
html[data-performance="lite"] .pulse-button,
html[data-performance="lite"] .poster-live,
html[data-performance="lite"] .sticker-live,
html[data-performance="lite"] .data-chip-live {
  animation: none;
}

html[data-performance="lite"] .ticker span {
  animation: marquee 30s linear infinite;
}

html[data-performance="lite"] .share-preview-shadow {
  filter: none;
  opacity: 0.16;
  inset: 18px 12px -10px;
  transform: none;
}

html[data-performance="lite"] .share-preview-image,
html[data-performance="lite"] .share-preview-tape,
html[data-performance="lite"] .share-preview-sticker {
  transform: none;
}

html[data-performance="lite"] .button:hover,
html[data-performance="lite"] .button:focus-visible,
html[data-performance="lite"] .option-card:hover,
html[data-performance="lite"] .option-card:focus-visible {
  transform: translateY(-1px);
}

.shell-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 87, 103, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 45%);
  pointer-events: none;
}

.screen-rise {
  animation: screenRiseIn 560ms cubic-bezier(0.2, 0.9, 0.22, 1);
}

.screen-rise-delay {
  animation-delay: 90ms;
  animation-fill-mode: both;
}

.layout-stack {
  display: grid;
  gap: 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 28px;
  min-height: 88vh;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-copy-block {
  display: grid;
  gap: 16px;
  animation: screenRiseIn 620ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(23, 11, 8, 0.92);
  color: white;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-credit-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  width: min(100%, 780px);
  padding: 10px;
  border: 1px solid rgba(23, 11, 8, 0.08);
  border-radius: 28px;
  background: rgba(255, 249, 239, 0.9);
  box-shadow: 0 12px 28px rgba(23, 11, 8, 0.08);
}

.hero-credit-mark {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  min-height: 56px;
  border-radius: 20px;
  background: rgba(23, 11, 8, 0.9);
  color: #fffaf1;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-credit-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 12px 6px 4px;
}

.hero-credit-caption {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(23, 11, 8, 0.06);
  color: rgba(23, 11, 8, 0.58);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-credit-text {
  display: block;
  color: rgba(23, 11, 8, 0.84);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.live-pill {
  animation: subtlePulse 2400ms ease-in-out infinite;
}

.hero-title {
  margin: 0;
  display: grid;
  gap: clamp(2px, 0.4vw, 10px);
  width: fit-content;
  max-width: min(100%, 13.5ch);
  line-height: 0.92;
}

.hero-title-line {
  display: block;
}

.hero-title-lead,
.hero-title-impact,
.hero-title-tail {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.hero-title-lead {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  color: var(--ink);
}

.hero-title-impact {
  font-size: clamp(2.55rem, 6.7vw, 5.4rem);
  color: var(--accent-red);
  text-shadow: 6px 6px 0 rgba(23, 11, 8, 0.1);
}

.hero-title-lockup {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: clamp(8px, 1vw, 18px);
}

.hero-title-latin {
  display: inline-flex;
  align-items: center;
  padding: 0.04em 0.2em 0.02em;
  border-radius: 0.18em;
  background: var(--ink);
  color: var(--paper-strong);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.1rem, 7.2vw, 6.2rem);
  letter-spacing: 0.04em;
  line-height: 0.84;
  box-shadow: 0.08em 0.08em 0 rgba(255, 87, 103, 0.35);
  transform: translateY(-0.02em) rotate(-2deg);
}

.hero-title-tail {
  font-size: clamp(2.65rem, 6.5vw, 5.35rem);
  color: var(--accent-red);
  text-shadow: 6px 6px 0 rgba(23, 11, 8, 0.1);
}

.hero-subtitle {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}

.cta-row,
.utility-row,
.result-actions,
.persona-tags,
.quiz-stat {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-cta-row {
  animation: screenRiseIn 760ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.button {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(23, 11, 8, 0.16);
}

.button:focus-visible {
  outline: 3px solid rgba(16, 159, 229, 0.45);
  outline-offset: 3px;
}

.pulse-button {
  animation: buttonPulse 2200ms ease-in-out infinite;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-red), #ff8d70);
  color: white;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 11, 8, 0.12);
}

.button-ghost {
  background: rgba(23, 11, 8, 0.06);
}

.micro-note {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(23, 11, 8, 0.58);
}

.feature-grid,
.utility-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.utility-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.utility-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(23, 11, 8, 0.08);
  box-shadow: var(--shadow-md);
}

.feature-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45));
}

.utility-card {
  background: rgba(255, 255, 255, 0.74);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.feature-card-live,
.utility-card-live {
  animation: resultPanelIn 560ms cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.feature-card-live:nth-child(1),
.utility-card-live:nth-child(1) {
  animation-delay: 80ms;
}

.feature-card-live:nth-child(2),
.utility-card-live:nth-child(2) {
  animation-delay: 160ms;
}

.feature-card-live:nth-child(3),
.utility-card-live:nth-child(3) {
  animation-delay: 240ms;
}

.feature-card strong,
.utility-card h3 {
  display: block;
  margin: 0 0 10px;
}

.feature-card p,
.utility-card ul,
.utility-card ol {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.92rem;
}

.utility-card ul,
.utility-card ol {
  padding-left: 20px;
}

.feature-card::before,
.utility-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 120px;
  height: 120px;
  border-radius: 28px 28px 0 0;
  opacity: 0.16;
  transform: translate(-24px, 34px) rotate(18deg);
  pointer-events: none;
}

.feature-card-scenes {
  background:
    radial-gradient(circle at top right, rgba(16, 159, 229, 0.16), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.88));
  border-color: rgba(16, 159, 229, 0.16);
}

.feature-card-scenes::before {
  background: linear-gradient(135deg, rgba(16, 159, 229, 0.8), rgba(201, 255, 99, 0.7));
}

.feature-card-scenes .card-kicker {
  background: rgba(16, 159, 229, 0.14);
  color: #0470a7;
}

.feature-card-scenes strong {
  font-size: 1.72rem;
  letter-spacing: -0.06em;
}

.feature-card-follow {
  border: 2px dashed rgba(255, 87, 103, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 246, 247, 0.96), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 87, 103, 0.04) 0 12px,
      transparent 12px 28px
    );
}

.feature-card-follow::before {
  width: 150px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 87, 103, 0.28);
  transform: translate(-18px, 30px) rotate(-12deg);
}

.feature-card-follow .card-kicker {
  background: rgba(255, 87, 103, 0.14);
  color: #db3650;
}

.feature-card-follow strong {
  font-size: 1.68rem;
  letter-spacing: -0.055em;
}

.feature-card-persona {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 211, 91, 0.3), transparent 20%),
    linear-gradient(150deg, rgba(255, 252, 245, 0.98), rgba(255, 245, 224, 0.88));
  border-color: rgba(255, 211, 91, 0.28);
}

.feature-card-persona::before {
  background: linear-gradient(135deg, rgba(255, 211, 91, 0.86), rgba(255, 87, 103, 0.6));
  width: 132px;
  height: 132px;
  border-radius: 34px;
}

.feature-card-persona .card-kicker {
  background: rgba(255, 211, 91, 0.22);
  color: #9c6200;
}

.feature-card-persona strong {
  font-size: 1.74rem;
  letter-spacing: -0.06em;
}

.utility-card-guide {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.9));
  border-color: rgba(16, 159, 229, 0.16);
}

.utility-card-guide::before {
  width: 180px;
  height: 180px;
  background:
    linear-gradient(135deg, rgba(16, 159, 229, 0.2), rgba(255, 255, 255, 0));
}

.utility-card-guide .card-kicker {
  background: rgba(16, 159, 229, 0.14);
  color: #0470a7;
}

.utility-card-guide h3::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), rgba(16, 159, 229, 0.14));
}

.utility-card-mantra {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(255, 246, 227, 0.9));
  border: 2px solid rgba(255, 211, 91, 0.3);
}

.utility-card-mantra::before {
  width: 220px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 211, 91, 0.3);
  transform: translate(-26px, 46px) rotate(-8deg);
}

.utility-card-mantra .card-kicker {
  background: rgba(255, 211, 91, 0.24);
  color: #9c6200;
}

.utility-card-mantra ul li {
  font-weight: 700;
}

.utility-card-emergency {
  background:
    linear-gradient(180deg, rgba(255, 247, 247, 0.98), rgba(255, 255, 255, 0.9));
  border-color: rgba(255, 87, 103, 0.18);
  box-shadow:
    0 16px 30px rgba(23, 11, 8, 0.1),
    inset 0 0 0 1px rgba(255, 87, 103, 0.08);
}

.utility-card-emergency::before {
  inset: 0 auto auto 0;
  width: 100%;
  height: 8px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent-red), #ff8d70);
  transform: none;
  opacity: 1;
}

.utility-card-emergency .card-kicker {
  background: rgba(255, 87, 103, 0.14);
  color: #db3650;
}

.utility-card-emergency ol li::marker {
  font-weight: 900;
  color: #db3650;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 420px;
}

.poster-stack {
  position: relative;
  width: min(100%, 470px);
  min-height: 100%;
}

.poster,
.sticker,
.data-chip,
.tape {
  position: absolute;
  box-shadow: var(--shadow-md);
}

.poster-live,
.sticker-live,
.data-chip-live {
  animation: posterDrift 6s ease-in-out infinite;
}

.poster-live:nth-of-type(1) {
  animation-delay: -1.2s;
}

.poster-live:nth-of-type(2) {
  animation-delay: -2.4s;
}

.sticker-live:nth-of-type(1) {
  animation-delay: -0.8s;
}

.sticker-live:nth-of-type(2) {
  animation-delay: -1.8s;
}

.poster {
  border-radius: 28px;
  padding: 24px;
  border: 3px solid rgba(23, 11, 8, 0.18);
}

.poster-main {
  inset: 48px 0 18px 36px;
  background: linear-gradient(160deg, #fff9ef 0%, #ffe7dc 100%);
  transform: rotate(-5deg);
}

.poster-alt {
  inset: 18px 40px 88px 0;
  background: linear-gradient(160deg, #0b101d 0%, #102a40 100%);
  color: white;
  transform: rotate(7deg);
}

.poster-alt .poster-big {
  color: var(--accent-lime);
}

.poster-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 11, 8, 0.08);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
}

.poster-big {
  margin: 18px 0 10px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
  letter-spacing: -0.06em;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.poster-copy {
  margin: 0;
  max-width: 18rem;
  color: rgba(23, 11, 8, 0.72);
  line-height: 1.7;
}

.poster-alt .poster-copy {
  color: rgba(255, 255, 255, 0.74);
}

.sticker {
  display: grid;
  place-items: center;
  width: 124px;
  aspect-ratio: 1;
  border-radius: 26px;
  border: 3px solid rgba(23, 11, 8, 0.14);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.sticker-a {
  right: 18px;
  top: 8px;
  background: var(--accent-yellow);
  transform: rotate(10deg);
}

.sticker-b {
  left: 10px;
  bottom: 0;
  background: var(--accent-lime);
  transform: rotate(-9deg);
}

.data-chip {
  right: 34px;
  bottom: 46px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(23, 11, 8, 0.12);
}

.data-chip strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.data-chip span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tape {
  top: 26px;
  left: 50%;
  width: 160px;
  height: 34px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 211, 91, 0.95) 0 18px,
      rgba(23, 11, 8, 0.88) 18px 28px
    );
  transform: translateX(-50%) rotate(4deg);
  opacity: 0.92;
}

.ticker {
  display: flex;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(23, 11, 8, 0.92);
  color: white;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}

.ticker-compact {
  animation: tickerBurst 520ms ease both;
}

.ticker span {
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.quiz-card,
.result-hero,
.footer-note {
  padding: 26px;
}

.quiz-transition-in {
  animation: questionSwapIn 420ms cubic-bezier(0.2, 0.9, 0.22, 1);
}

.quiz-transition-out {
  animation: questionSwapOut 240ms cubic-bezier(0.55, 0.02, 0.72, 0.19) forwards;
}

.quiz-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.progress-wrap {
  display: grid;
  gap: 10px;
}

.quiz-progress-wrap {
  flex: 1 1 420px;
  min-width: min(420px, 100%);
}

.quiz-lv,
.quiz-counter,
.cluster-tag,
.persona-chip,
.persona-tag {
  border-radius: 999px;
}

.quiz-lv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
}

.quiz-counter,
.cluster-tag,
.persona-tag {
  padding: 8px 14px;
  background: rgba(23, 11, 8, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-bar {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: rgba(23, 11, 8, 0.09);
}

.glow-bar {
  position: relative;
}

.glow-bar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 87, 103, 0.28), rgba(16, 159, 229, 0.18), rgba(201, 255, 99, 0.22));
  filter: blur(10px);
  opacity: 0.55;
  z-index: 0;
}

.progress-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue), var(--accent-lime));
  transition: width 260ms ease;
}

.prompt-box {
  position: relative;
  margin-top: 24px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 242, 227, 0.94));
  border: 1px solid rgba(23, 11, 8, 0.08);
}

.question-surface {
  animation: screenRiseIn 360ms cubic-bezier(0.2, 0.88, 0.24, 1);
}

.prompt-box::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(16, 159, 229, 0.1);
}

.prompt-box p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.65;
  font-weight: 700;
}

.options-grid,
.score-bars,
.result-grid {
  display: grid;
  gap: 16px;
}

.option-stack-live {
  perspective: 1200px;
}

.option-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(23, 11, 8, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(252, 239, 214, 0.68));
}

.option-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 87, 103, 0.12), rgba(16, 159, 229, 0.08));
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.option-card-live {
  animation: optionSlideIn 420ms cubic-bezier(0.2, 0.88, 0.24, 1) both;
  animation-delay: var(--option-delay, 0ms);
}

.option-card-active {
  transform: translateX(8px) scale(0.98);
  filter: saturate(1.1);
  box-shadow: 0 18px 32px rgba(255, 87, 103, 0.2);
}

.option-card:hover::after,
.option-card:focus-visible::after,
.option-card:active::after,
.option-card-active::after {
  opacity: 1;
}

.option-card:active {
  transform: scale(0.985);
  box-shadow: 0 10px 22px rgba(23, 11, 8, 0.14);
}

.option-card span:first-child {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(23, 11, 8, 0.08);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.option-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.6;
}

.option-arrow {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: var(--accent-red);
}

.result-hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr 0.78fr;
  gap: 20px;
}

.result-live {
  animation: screenRiseIn 560ms cubic-bezier(0.2, 0.9, 0.22, 1);
}

.share-preview-panel,
.result-panel,
.insight-panel {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(23, 11, 8, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 239, 216, 0.78));
}

.result-panel-live {
  animation: resultPanelIn 600ms cubic-bezier(0.2, 0.88, 0.24, 1) both;
  animation-delay: var(--panel-delay, 0ms);
}

.share-preview-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(16, 159, 229, 0.18), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 231, 207, 0.88));
}

.share-preview-stack {
  position: relative;
  margin: 6px auto 18px;
  width: min(100%, 310px);
}

.share-preview-shadow {
  position: absolute;
  inset: 24px 10px -14px;
  border-radius: 34px;
  background: rgba(23, 11, 8, 0.18);
  filter: blur(22px);
  transform: rotate(-5deg);
}

.share-preview-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  border-radius: 32px;
  border: 4px solid rgba(23, 11, 8, 0.08);
  background: #fff9ef;
  transform: rotate(-4deg);
  box-shadow: 0 24px 40px rgba(23, 11, 8, 0.2);
}

.share-preview-tape,
.share-preview-sticker {
  position: absolute;
  z-index: 3;
  box-shadow: var(--shadow-md);
}

.share-preview-tape {
  top: -10px;
  left: 50%;
  width: 186px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 211, 91, 0.98) 0 20px,
      rgba(23, 11, 8, 0.94) 20px 30px
    );
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: white;
  transform: translateX(-50%) rotate(5deg);
}

.share-preview-sticker {
  display: grid;
  place-items: center;
  width: 88px;
  aspect-ratio: 1;
  border-radius: 24px;
  border: 3px solid rgba(23, 11, 8, 0.1);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-align: center;
}

.share-preview-sticker-a {
  right: -8px;
  top: 112px;
  background: var(--accent-lime);
  transform: rotate(10deg);
}

.share-preview-sticker-b {
  right: 12px;
  bottom: 128px;
  background: var(--accent-yellow);
  transform: rotate(4deg);
}

.share-preview-note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 0.95rem;
}

.persona-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
}

.persona-chip-safe {
  background: rgba(27, 13, 8, 0.1);
  color: #1d0f09;
}

.persona-chip-risk {
  background: rgba(255, 87, 103, 0.14);
  color: #b52238;
}

.persona-name {
  margin: 16px 0 10px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
  letter-spacing: -0.06em;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1;
}

.persona-quote,
.persona-roast {
  margin: 0;
  line-height: 1.8;
  color: var(--ink-soft);
}

.score-row {
  display: grid;
  gap: 10px;
}

.score-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.score-track {
  overflow: hidden;
  height: 16px;
  border-radius: 999px;
  background: rgba(23, 11, 8, 0.08);
}

.score-value {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
  transform-origin: left center;
  animation: scoreFillIn 760ms cubic-bezier(0.2, 0.88, 0.24, 1) both;
  animation-delay: var(--score-delay, 0ms);
}

.result-advice {
  margin-top: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.result-advice strong,
.result-summary strong {
  color: var(--ink);
}

.result-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(23, 11, 8, 0.06);
  line-height: 1.8;
}

.status-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(23, 11, 8, 0.94);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.status-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  padding: 42px 26px;
  text-align: center;
}

.mobile-quiz-dock,
.mobile-quiz-dock-spacer {
  display: none;
}

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

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

@keyframes screenRiseIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes riseInLite {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes questionSwapIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes questionSwapLiteIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes questionSwapOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
    filter: blur(8px);
  }
}

@keyframes questionSwapLiteOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.995);
  }
}

@keyframes optionSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(-14deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes resultPanelIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes scoreFillIn {
  from {
    transform: scaleX(0);
    filter: saturate(1.4);
  }

  to {
    transform: scaleX(1);
    filter: saturate(1);
  }
}

@keyframes posterDrift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 87, 103, 0.18);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(255, 87, 103, 0);
  }
}

@keyframes subtlePulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes tickerBurst {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 960px) {
  .hero,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: unset;
    padding: 22px;
  }

  .poster-stack {
    min-height: 460px;
  }

  .hero-title {
    max-width: 100%;
  }

  .share-preview-panel,
  .result-panel,
  .insight-panel {
    padding: 20px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .result-actions .button:last-child {
    grid-column: 1 / -1;
  }

  .share-preview-stack {
    width: min(100%, 340px);
  }

  .share-preview-note {
    max-width: 34rem;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 10px;
  }

  .hero,
  .quiz-card,
  .result-hero {
    padding: 18px;
  }

  .hero {
    gap: 18px;
  }

  .hero-copy {
    gap: 16px;
  }

  .feature-grid,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .feature-card strong {
    font-size: 1.46rem;
  }

  .card-kicker {
    margin-bottom: 10px;
  }

  .hero-title {
    max-width: 100%;
    gap: 6px;
    width: 100%;
  }

  .hero-credit-band {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 24px;
  }

  .hero-credit-mark {
    justify-content: center;
  }

  .hero-credit-copy {
    padding: 0 4px 4px;
  }

  .hero-credit-text {
    font-size: 0.9rem;
  }

  .hero-title-lead,
  .hero-title-impact,
  .hero-title-tail {
    font-size: clamp(2.25rem, 11vw, 4rem);
    white-space: normal;
    text-wrap: balance;
  }

  .hero-title-lockup {
    gap: 10px;
    flex-wrap: wrap;
  }

  .hero-title-latin {
    font-size: clamp(2.5rem, 12vw, 4.2rem);
    padding-inline: 0.18em;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .cta-row,
  .hero-cta-row,
  .result-actions {
    width: 100%;
  }

  .hero-cta-row .button,
  .result-actions .button {
    width: 100%;
    justify-content: center;
  }

  .utility-row {
    width: 100%;
  }

  .poster-main {
    inset: 42px 4px 18px 18px;
    transform: rotate(-4deg);
  }

  .poster-alt {
    inset: 10px 18px 108px 0;
    transform: rotate(5deg);
  }

  .poster-stack {
    min-height: 400px;
  }

  .sticker {
    width: 82px;
    border-radius: 18px;
    font-size: 1.2rem;
  }

  .sticker-a {
    right: 8px;
    top: 4px;
  }

  .sticker-b {
    left: 6px;
    bottom: 4px;
  }

  .data-chip {
    right: 12px;
    bottom: 22px;
    padding: 12px 14px;
    max-width: 150px;
  }

  .data-chip strong {
    font-size: 1.3rem;
  }

  .data-chip span {
    font-size: 0.82rem;
  }

  .quiz-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-progress-wrap {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .quiz-header .utility-row {
    width: 100%;
    justify-content: flex-start;
  }

  .quiz-stat {
    gap: 8px;
  }

  .quiz-lv,
  .quiz-counter,
  .cluster-tag {
    padding-inline: 12px;
  }

  .ticker {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .prompt-box {
    margin-top: 18px;
    padding: 20px 18px;
  }

  .prompt-box::after {
    right: 10px;
    top: 10px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .prompt-box p {
    font-size: 1.08rem;
    line-height: 1.7;
    padding-right: 28px;
  }

  .option-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 20px;
  }

  .option-card span:first-child {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.15rem;
  }

  .option-card strong {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .option-card:active {
    transform: scale(0.975);
    box-shadow: 0 8px 18px rgba(255, 87, 103, 0.18);
  }

  .option-arrow {
    display: none;
  }

  .mobile-quiz-dock-spacer {
    display: block;
    height: 92px;
  }

  .mobile-quiz-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 22;
    display: grid;
    gap: 10px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(23, 11, 8, 0.12);
    border-radius: 22px;
    background: rgba(255, 249, 239, 0.94);
    box-shadow: 0 14px 34px rgba(23, 11, 8, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-quiz-dock-top,
  .mobile-quiz-dock-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-quiz-dock-top {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .mobile-quiz-step,
  .mobile-quiz-stage,
  .mobile-quiz-total {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(23, 11, 8, 0.06);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .mobile-quiz-stage {
    background: rgba(255, 87, 103, 0.12);
    color: #b52238;
  }

  .mobile-quiz-total {
    color: rgba(23, 11, 8, 0.64);
  }

  .mobile-quiz-stage-name {
    min-width: 0;
    flex: 0 0 auto;
    font-size: 0.84rem;
    font-weight: 800;
    color: rgba(23, 11, 8, 0.72);
  }

  .mobile-quiz-progress {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(23, 11, 8, 0.08);
  }

  .mobile-quiz-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue), var(--accent-lime));
    box-shadow: 0 0 18px rgba(255, 87, 103, 0.28);
  }

  .share-preview-stack {
    width: min(100%, 290px);
  }

  .share-preview-image {
    border-radius: 28px;
    transform: none;
  }

  .share-preview-panel-mobile {
    padding: 16px;
    background:
      radial-gradient(circle at top right, rgba(16, 159, 229, 0.16), transparent 32%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 239, 216, 0.94));
  }

  .share-preview-panel-mobile .share-preview-stack {
    width: min(100%, 320px);
    margin-bottom: 10px;
  }

  .share-preview-tape {
    width: 160px;
    height: 40px;
    font-size: 0.9rem;
  }

  .share-preview-sticker {
    width: 74px;
    border-radius: 18px;
    font-size: 1rem;
  }

  .share-preview-sticker-a {
    right: 2px;
    top: 100px;
  }

  .share-preview-sticker-b {
    right: 8px;
    bottom: 110px;
  }

  .share-preview-note {
    text-align: center;
  }

  html[data-performance="lite"] .grain,
  html[data-performance="lite"] .ambient {
    position: absolute;
  }

  html[data-performance="lite"] .mobile-quiz-dock {
    box-shadow: 0 10px 22px rgba(23, 11, 8, 0.12);
  }

  html[data-performance="lite"] .share-preview-stack {
    width: min(100%, 276px);
  }

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

  .persona-tags {
    gap: 10px;
  }

  .persona-tag {
    font-size: 0.88rem;
  }

  .score-bars {
    gap: 14px;
  }

  .score-head {
    font-size: 0.95rem;
  }

  .score-track {
    height: 14px;
  }

  .utility-card {
    padding: 16px;
    border-radius: 18px;
  }

  .utility-card h3 {
    font-size: 1rem;
  }

  .utility-card ul,
  .utility-card ol {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .status-toast {
    right: 10px;
    left: 10px;
    bottom: 10px;
    max-width: none;
    padding: 13px 15px;
    border-radius: 16px;
  }
}

@media (max-width: 540px) {
  .app-shell {
    width: calc(100vw - 16px);
    padding-top: 8px;
    padding-bottom: 42px;
  }

  .hero,
  .quiz-card,
  .result-hero {
    padding: 14px;
    border-radius: 26px;
  }

  .layout-stack {
    gap: 18px;
  }

  .card-kicker {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .feature-card strong,
  .utility-card h3 {
    margin-bottom: 8px;
  }

  .feature-card strong {
    font-size: 1.34rem;
  }

  .live-pill {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .hero-credit-band {
    padding: 9px;
    border-radius: 22px;
  }

  .hero-credit-mark {
    min-height: 48px;
    font-size: 0.92rem;
    padding-inline: 14px;
  }

  .hero-credit-caption {
    font-size: 0.72rem;
  }

  .hero-credit-text {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .hero-title {
    gap: 4px;
    width: 100%;
    max-width: 100%;
  }

  .hero-title-lead,
  .hero-title-impact,
  .hero-title-tail {
    font-size: clamp(2rem, 11.8vw, 3.2rem);
    letter-spacing: -0.07em;
  }

  .hero-title-lockup {
    gap: 8px;
  }

  .hero-title-latin {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
    padding: 0.05em 0.18em 0.03em;
    border-radius: 0.16em;
  }

  .hero-subtitle,
  .micro-note {
    font-size: 0.92rem;
  }

  .poster-stack {
    min-height: 350px;
  }

  .poster {
    padding: 18px;
    border-width: 2px;
    border-radius: 22px;
  }

  .poster-main {
    inset: 34px 2px 16px 14px;
  }

  .poster-alt {
    inset: 8px 16px 96px 0;
  }

  .poster-big {
    font-size: clamp(1.45rem, 8vw, 2.2rem);
  }

  .poster-copy {
    max-width: 15rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .sticker {
    width: 68px;
    font-size: 0.98rem;
  }

  .data-chip {
    right: 10px;
    bottom: 16px;
    max-width: 132px;
    padding: 10px 12px;
  }

  .data-chip strong {
    font-size: 1.1rem;
  }

  .data-chip span {
    font-size: 0.76rem;
  }

  .quiz-card,
  .result-panel,
  .insight-panel,
  .share-preview-panel {
    border-radius: 22px;
  }

  .quiz-lv,
  .quiz-counter,
  .cluster-tag,
  .persona-tag,
  .persona-chip {
    font-size: 0.82rem;
  }

  .prompt-box {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .prompt-box p {
    font-size: 1rem;
    padding-right: 18px;
  }

  .options-grid {
    gap: 12px;
  }

  .option-card {
    padding: 14px 12px;
  }

  .option-card strong {
    font-size: 0.91rem;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .result-actions .button:last-child {
    grid-column: auto;
  }

  .share-preview-stack {
    width: min(100%, 250px);
    margin-bottom: 14px;
  }

  .share-preview-panel-mobile {
    padding: 14px;
  }

  .share-preview-panel-mobile .share-preview-stack {
    width: min(100%, 272px);
  }

  .share-preview-tape {
    top: -8px;
    width: 140px;
    height: 36px;
    font-size: 0.82rem;
  }

  .share-preview-sticker {
    width: 62px;
    font-size: 0.9rem;
  }

  .share-preview-sticker-a {
    top: 88px;
  }

  .share-preview-sticker-b {
    bottom: 98px;
  }

  .mobile-quiz-dock {
    left: 8px;
    right: 8px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
    padding: 12px 12px 11px;
    border-radius: 18px;
  }

  .mobile-quiz-dock-spacer {
    height: 100px;
  }

  .mobile-quiz-step,
  .mobile-quiz-stage,
  .mobile-quiz-total {
    font-size: 0.76rem;
    padding: 6px 9px;
  }

  .mobile-quiz-stage-name {
    font-size: 0.78rem;
  }

  .mobile-quiz-progress {
    height: 10px;
  }

  .share-preview-note,
  .result-advice,
  .result-summary {
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .score-head {
    font-size: 0.9rem;
  }

  .score-track {
    height: 12px;
  }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .shell-card,
  .mobile-quiz-dock {
    backdrop-filter: none;
  }

  .live-pill,
  .pulse-button,
  .poster-live,
  .sticker-live,
  .data-chip-live {
    animation: none;
  }

  .share-preview-shadow {
    filter: none;
  }
}

@media (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .ticker span {
    animation: marquee 30s linear infinite;
  }
}
