:root {
  --bg-cream: #fff8f4;
  --bg-peach: #ffe6d9;
  --bg-lilac: #f3ebff;
  --card: rgba(255, 252, 249, 0.9);
  --card-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(148, 103, 173, 0.14);
  --text-main: #573c35;
  --text-soft: #7d655c;
  --text-faint: rgba(87, 60, 53, 0.68);
  --accent: #ff8f79;
  --accent-deep: #f06b63;
  --accent-soft: #fff2ec;
  --purple: #9d76d9;
  --purple-deep: #815dc7;
  --purple-soft: rgba(241, 232, 255, 0.8);
  --gold: #f5c471;
  --glow: rgba(255, 178, 133, 0.28);
  --shadow: 0 20px 44px rgba(171, 114, 92, 0.12);
  --shadow-press: 0 14px 34px rgba(171, 114, 92, 0.18);
  --shadow-image: 0 20px 36px rgba(176, 116, 88, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 211, 190, 0.86), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(177, 144, 230, 0.22), transparent 24%),
    radial-gradient(circle at 80% 88%, rgba(255, 197, 153, 0.18), transparent 20%),
    linear-gradient(180deg, #fffaf7 0%, #fff1ea 48%, #fff8f2 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(12px);
}

body::before {
  inset: 10% auto auto -68px;
  width: 180px;
  height: 180px;
  background: rgba(255, 192, 128, 0.18);
  border-radius: 42% 58% 44% 56% / 44% 41% 59% 56%;
}

body::after {
  inset: auto -54px 14% auto;
  width: 164px;
  height: 164px;
  background: rgba(157, 118, 217, 0.14);
  border-radius: 58% 42% 46% 54% / 54% 42% 58% 46%;
}

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

img {
  display: block;
  max-width: 100%;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px
    calc(30px + env(safe-area-inset-bottom));
}

.screen {
  position: relative;
  padding: 22px 18px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 246, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, rgba(255, 196, 168, 0.22), transparent 58%);
  pointer-events: none;
}

.screen::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px auto;
  width: 118px;
  height: 118px;
  background: radial-gradient(circle, rgba(157, 118, 217, 0.14), transparent 70%);
  pointer-events: none;
}

.page-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 103, 173, 0.1);
  box-shadow: 0 10px 24px rgba(176, 129, 105, 0.08);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-title,
.result-name,
.question-title {
  margin: 0;
  line-height: 1.16;
}

.hero-title {
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}

.hero-description,
.result-summary,
.audience-text,
.lock-copy,
.lock-tile p,
.fine-print,
.muted-small,
.hero-note,
.image-card__caption {
  margin: 0;
  color: var(--text-faint);
  line-height: 1.7;
}

.hero-card,
.question-card,
.result-card,
.audience-card,
.lock-card,
.soft-card,
.question-illustration,
.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(180, 130, 108, 0.09);
}

.hero-card,
.question-card,
.result-card,
.audience-card,
.lock-card,
.soft-card {
  padding: 18px;
  background: var(--card);
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(255, 238, 231, 0.98), rgba(255, 255, 255, 0.92)),
    var(--card);
}

.hero-note {
  margin-top: 14px;
  font-size: 14px;
}

.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(157, 118, 217, 0.08);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

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

.tag-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(157, 118, 217, 0.08);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.image-card {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 251, 248, 0.98), rgba(255, 245, 240, 0.92));
  overflow: hidden;
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 72px;
  background: linear-gradient(135deg, rgba(255, 194, 165, 0.2), transparent 70%);
  pointer-events: none;
}

.image-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.image-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.image-card__spark {
  font-size: 12px;
  color: rgba(129, 93, 199, 0.85);
  font-weight: 700;
}

.image-card__caption {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 13px;
}

.image-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(135deg, rgba(255, 214, 195, 0.86), rgba(244, 235, 255, 0.72));
  box-shadow: var(--shadow-image);
  transform-origin: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.image-frame:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 42px rgba(176, 116, 88, 0.22);
}

.image-frame--hero {
  min-height: 220px;
  aspect-ratio: 1.2 / 1;
}

.image-frame--result {
  min-height: 232px;
  aspect-ratio: 1.12 / 1;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-sheen {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(255, 246, 239, 0.18) 36%, rgba(255, 255, 255, 0.5));
  pointer-events: none;
}

.image-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(255, 222, 180, 0.36), transparent 24%),
    linear-gradient(135deg, #ffd9c8 0%, #ffe9db 32%, #f4ebff 100%);
  color: #5c4037;
  overflow: hidden;
}

.image-fallback::before,
.image-fallback::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.image-fallback::before {
  inset: 12px auto auto 12px;
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(4px);
}

.image-fallback::after {
  inset: auto -16px 10px auto;
  width: 110px;
  height: 110px;
  background: rgba(157, 118, 217, 0.16);
  filter: blur(8px);
}

.image-fallback__emoji {
  position: relative;
  z-index: 1;
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

.image-fallback__title {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.image-fallback__caption {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(92, 64, 55, 0.82);
}

.image-fallback__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.image-fallback__tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(157, 118, 217, 0.08);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.image-fallback--hero .image-fallback__title {
  font-size: 24px;
}

.image-fallback--hero .image-fallback__emoji {
  font-size: 34px;
}

.question-illustration {
  padding: 16px 18px;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(135deg, rgba(255, 233, 221, 0.98), rgba(243, 235, 255, 0.88));
  overflow: hidden;
}

.question-illustration::before,
.question-illustration::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.question-illustration::before {
  inset: auto auto -24px -10px;
  width: 100px;
  height: 100px;
  background: rgba(255, 185, 132, 0.18);
}

.question-illustration::after {
  inset: 10px 16px auto auto;
  width: 74px;
  height: 74px;
  background: rgba(157, 118, 217, 0.12);
}

.question-illustration__copy {
  position: relative;
  z-index: 1;
  max-width: 72%;
}

.question-illustration__eyebrow {
  margin: 0;
  color: rgba(129, 93, 199, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.question-illustration__title {
  margin: 8px 0 0;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
}

.question-illustration__sub {
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.6;
}

.question-illustration__emoji-row {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  font-size: 18px;
}

.question-illustration__emoji-row span:nth-child(2) {
  font-size: 32px;
}

.cta-group,
.button-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease,
    background 0.18s ease;
  text-decoration: none;
}

.btn:hover {
  box-shadow: var(--shadow-press);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn:focus-visible,
.option-btn:focus-visible,
.dailylist-link:focus-visible {
  outline: 3px solid rgba(157, 118, 217, 0.26);
  outline-offset: 3px;
}

.btn-primary {
  color: #fffdfb;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 28px rgba(240, 107, 99, 0.24);
}

.btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 103, 173, 0.12);
}

.btn-ghost {
  color: var(--purple-deep);
  background: rgba(241, 232, 255, 0.8);
}

.muted-small {
  font-size: 12px;
  text-align: center;
}

.question-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.progress-meta {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.progress-wrap {
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 103, 173, 0.08);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffbe8a 0%, #ff917d 48%, #9d76d9 100%);
  transition: width 0.22s ease;
}

.question-title {
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.question-tip {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

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

.option-btn {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 103, 173, 0.1);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease,
    background 0.18s ease;
  box-shadow: 0 10px 22px rgba(180, 130, 108, 0.06);
}

.option-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(180, 130, 108, 0.12);
  border-color: rgba(157, 118, 217, 0.22);
}

.option-btn:active,
.option-btn.is-selected {
  transform: scale(0.985);
  background: linear-gradient(135deg, rgba(255, 238, 231, 0.96), rgba(243, 235, 255, 0.92));
  border-color: rgba(157, 118, 217, 0.24);
}

.option-index {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-deep);
  background: rgba(241, 232, 255, 0.88);
  font-weight: 900;
}

.option-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.option-label {
  margin: 0;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 800;
}

.option-hint {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
}

.result-card {
  background:
    linear-gradient(135deg, rgba(255, 238, 231, 0.98), rgba(255, 255, 255, 0.94)),
    var(--card-strong);
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-kicker {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.result-name {
  margin-top: 10px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.result-emoji {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 24px rgba(176, 129, 105, 0.12);
  font-size: 26px;
}

.result-summary {
  margin-top: 12px;
  font-size: 15px;
}

.audience-card h3,
.lock-card h3,
.soft-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.lock-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 245, 239, 0.92));
}

.lock-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.lock-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 201, 142, 0.26), rgba(157, 118, 217, 0.18));
  font-size: 18px;
}

.lock-tiles {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.lock-tile {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 103, 173, 0.08);
}

.lock-tile strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-main);
}

.dailylist-entry {
  margin-top: 6px;
  color: var(--purple-deep);
  font-size: 14px;
  font-weight: 800;
}

.fine-print {
  font-size: 12px;
}

.site-footer {
  padding: 16px 4px 2px;
  text-align: center;
}

.dailylist-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  color: rgba(87, 60, 53, 0.64);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  opacity: 0.84;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dailylist-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(18px);
  min-width: 180px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(84, 61, 68, 0.92);
  color: #fff;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 16px 30px rgba(45, 29, 37, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.spacer-sm {
  height: 2px;
}

@media (min-width: 431px) {
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .screen {
    padding-left: 20px;
    padding-right: 20px;
  }

  .image-frame--hero {
    min-height: 240px;
  }

  .image-frame--result {
    min-height: 246px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .option-btn,
  .image-frame,
  .dailylist-link,
  .toast {
    transition: none;
  }
}
