:root {
  --black: #0b0709;
  --ink: #171014;
  --deep-rose: #7a1f3d;
  --wine: #4a0f23;
  --gold: #d7b56d;
  --ivory: #f7efe4;
  --muted-ivory: rgba(247, 239, 228, 0.74);
  --soft-peach: #e8a9a1;
  --moon-blue: #8ea6c8;
  --panel: rgba(22, 13, 18, 0.82);
  --panel-strong: rgba(35, 17, 25, 0.94);
  --line: rgba(215, 181, 109, 0.24);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  color: var(--ivory);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -15%, rgba(122, 31, 61, 0.58), transparent 38rem),
    linear-gradient(160deg, #080607 0%, #170910 48%, #0b0709 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  min-height: 100vh;
}

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 7, 9, 0.18) 0%, rgba(11, 7, 9, 0.94) 82%),
    radial-gradient(circle at 90% 12%, rgba(215, 181, 109, 0.14), transparent 15rem);
}

.screen {
  position: relative;
  min-height: 100vh;
  padding: 28px 20px 40px;
  animation: fadeIn 380ms ease both;
}

.screen.result-screen {
  padding-bottom: 120px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark::before {
  width: 26px;
  height: 26px;
  content: "";
  border: 1px solid rgba(215, 181, 109, 0.55);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(215, 181, 109, 0.34), transparent),
    radial-gradient(circle at 60% 38%, rgba(247, 239, 228, 0.9) 0 2px, transparent 3px);
  box-shadow: 0 0 22px rgba(215, 181, 109, 0.22);
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 181, 109, 0.2);
  border-radius: 999px;
  color: rgba(247, 239, 228, 0.72);
  background: rgba(247, 239, 228, 0.05);
  font-size: 12px;
  white-space: nowrap;
}

.hero {
  display: grid;
  min-height: calc(100vh - 68px);
  align-content: space-between;
  gap: 28px;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(215, 181, 109, 0.18);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(247, 239, 228, 0.23), transparent 4rem),
    radial-gradient(circle at 48% 44%, rgba(122, 31, 61, 0.64), transparent 10rem),
    linear-gradient(145deg, #10080c, #391020 58%, #090608);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 24px 58px 64px;
  content: "";
  border: 1px solid rgba(215, 181, 109, 0.26);
  border-radius: 50% 50% 48% 48%;
  background:
    linear-gradient(155deg, rgba(247, 239, 228, 0.1), transparent 30%),
    radial-gradient(circle at 52% 28%, rgba(215, 181, 109, 0.34), transparent 5rem),
    radial-gradient(circle at 50% 70%, rgba(11, 7, 9, 0.64), transparent 6rem);
  filter: blur(0.1px);
}

.hero-visual::after {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  height: 92px;
  content: "";
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(215, 181, 109, 0.16), transparent),
    radial-gradient(circle at 22% 28%, rgba(232, 169, 161, 0.4), transparent 4rem),
    rgba(247, 239, 228, 0.06);
  backdrop-filter: blur(12px);
}

.mirror-line {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 1px;
  height: 220px;
  background: linear-gradient(transparent, rgba(215, 181, 109, 0.8), transparent);
  transform: translateX(-50%);
  opacity: 0.62;
}

.perfume {
  position: absolute;
  right: 76px;
  bottom: 36px;
  z-index: 1;
  width: 54px;
  height: 70px;
  border: 1px solid rgba(215, 181, 109, 0.36);
  border-radius: 16px 16px 8px 8px;
  background:
    linear-gradient(180deg, rgba(247, 239, 228, 0.24), transparent),
    rgba(11, 7, 9, 0.48);
}

.perfume::before {
  position: absolute;
  top: -18px;
  left: 17px;
  width: 18px;
  height: 18px;
  content: "";
  border: 1px solid rgba(215, 181, 109, 0.34);
  border-radius: 6px 6px 2px 2px;
  background: rgba(215, 181, 109, 0.14);
}

.card-stack {
  position: absolute;
  bottom: 46px;
  left: 42px;
  z-index: 1;
  width: 94px;
  height: 56px;
  transform: rotate(-7deg);
}

.card-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(215, 181, 109, 0.32);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(247, 239, 228, 0.12), rgba(122, 31, 61, 0.24));
}

.card-stack span:nth-child(2) {
  transform: translate(10px, -8px) rotate(12deg);
}

.card-stack span:nth-child(3) {
  transform: translate(20px, -16px) rotate(24deg);
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 9em;
  color: var(--ivory);
  font-size: clamp(38px, 12vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  color: var(--ivory);
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  color: var(--ivory);
  font-size: 18px;
  line-height: 1.3;
}

.lead {
  color: var(--muted-ivory);
  font-size: 16px;
  line-height: 1.7;
}

.primary-button,
.secondary-button,
.ghost-button,
.choice-button {
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.primary-button {
  width: 100%;
  padding: 16px 20px;
  color: #180c10;
  background: linear-gradient(135deg, #f3d58a, #d7b56d 42%, #f8e0a1);
  box-shadow: 0 18px 38px rgba(215, 181, 109, 0.22);
  font-weight: 800;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.choice-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.secondary-button {
  padding: 15px 18px;
  color: var(--ivory);
  border: 1px solid rgba(215, 181, 109, 0.22);
  background: rgba(247, 239, 228, 0.08);
  font-weight: 700;
}

.ghost-button {
  padding: 13px 16px;
  color: rgba(247, 239, 228, 0.76);
  border: 1px solid rgba(247, 239, 228, 0.12);
  background: rgba(247, 239, 228, 0.03);
}

.proof-line {
  color: rgba(247, 239, 228, 0.66);
  font-size: 13px;
  text-align: center;
}

.result-peek {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(215, 181, 109, 0.17);
  border-radius: var(--radius-sm);
  background: rgba(247, 239, 228, 0.06);
}

.peek-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(247, 239, 228, 0.78);
  font-size: 13px;
}

.top-bar {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.progress-shell {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 239, 228, 0.08);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--deep-rose), var(--gold));
  transition: width 260ms ease;
}

.question-card,
.panel-card {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(247, 239, 228, 0.07), rgba(247, 239, 228, 0.035)),
    var(--panel);
  box-shadow: var(--shadow);
}

.question-index {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.form-input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  color: var(--ivory);
  border: 1px solid rgba(215, 181, 109, 0.25);
  border-radius: 18px;
  outline: none;
  background: rgba(11, 7, 9, 0.42);
}

.form-input::placeholder {
  color: rgba(247, 239, 228, 0.38);
}

.form-input:focus {
  border-color: rgba(215, 181, 109, 0.72);
  box-shadow: 0 0 0 4px rgba(215, 181, 109, 0.1);
}

.choices {
  display: grid;
  gap: 10px;
}

.choice-button {
  width: 100%;
  padding: 14px 15px;
  color: rgba(247, 239, 228, 0.88);
  border: 1px solid rgba(247, 239, 228, 0.12);
  background: rgba(247, 239, 228, 0.055);
  line-height: 1.35;
  text-align: left;
}

.choice-button.selected {
  color: var(--ivory);
  border-color: rgba(215, 181, 109, 0.7);
  background:
    linear-gradient(135deg, rgba(122, 31, 61, 0.55), rgba(215, 181, 109, 0.12)),
    rgba(247, 239, 228, 0.06);
}

.button-row {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 12px;
  margin-top: 20px;
}

.button-row.single {
  grid-template-columns: 1fr;
}

.loading-wrap {
  display: grid;
  min-height: calc(100vh - 80px);
  align-content: center;
  gap: 28px;
}

.ritual-orb {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 0 auto;
  border: 1px solid rgba(215, 181, 109, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(215, 181, 109, 0.28), transparent 4rem),
    radial-gradient(circle at 50% 52%, rgba(122, 31, 61, 0.5), transparent 7rem),
    rgba(247, 239, 228, 0.04);
  animation: pulse 2.2s ease-in-out infinite;
}

.ritual-orb::before,
.ritual-orb::after {
  position: absolute;
  inset: 38px;
  content: "";
  border: 1px solid rgba(247, 239, 228, 0.12);
  border-radius: 36px;
  transform: rotate(45deg);
}

.ritual-orb::after {
  inset: 70px;
  border-color: rgba(215, 181, 109, 0.3);
  animation: spin 5s linear infinite;
}

.loading-copy {
  display: grid;
  gap: 12px;
  text-align: center;
}

.loading-copy p {
  min-height: 56px;
}

.fine-print {
  color: rgba(247, 239, 228, 0.55);
  font-size: 12px;
  line-height: 1.55;
}

.result-header {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.persona-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(215, 181, 109, 0.18);
  border-radius: 32px;
  background: var(--persona-bg, linear-gradient(145deg, #2a0d19, #0b0709));
  box-shadow: var(--shadow);
}

.persona-visual::before {
  position: absolute;
  inset: 42px 72px 84px;
  content: "";
  border: 1px solid rgba(247, 239, 228, 0.18);
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 50% 24%, rgba(247, 239, 228, 0.24), transparent 4rem),
    linear-gradient(180deg, rgba(247, 239, 228, 0.06), transparent);
}

.persona-visual::after {
  position: absolute;
  right: 32px;
  bottom: 28px;
  left: 32px;
  height: 104px;
  content: "";
  border-radius: 26px;
  background: rgba(247, 239, 228, 0.07);
  backdrop-filter: blur(10px);
}

.persona-label {
  position: absolute;
  bottom: 48px;
  left: 52px;
  z-index: 2;
  display: grid;
  gap: 4px;
}

.persona-label strong {
  color: var(--ivory);
  font-size: 24px;
}

.persona-label span {
  color: rgba(247, 239, 228, 0.68);
  font-size: 13px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword {
  padding: 8px 11px;
  border: 1px solid rgba(215, 181, 109, 0.2);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(215, 181, 109, 0.07);
  font-size: 12px;
  font-weight: 700;
}

.reading {
  color: rgba(247, 239, 228, 0.82);
  font-size: 15px;
  line-height: 1.82;
  white-space: pre-line;
}

.section-stack {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.radar-wrap {
  display: grid;
  gap: 14px;
}

.radar-svg {
  width: 100%;
  height: auto;
}

.radar-label {
  fill: rgba(247, 239, 228, 0.75);
  font-size: 11px;
  font-weight: 700;
}

.radar-grid {
  fill: none;
  stroke: rgba(247, 239, 228, 0.16);
  stroke-width: 1;
}

.radar-shape {
  fill: rgba(215, 181, 109, 0.28);
  stroke: rgba(215, 181, 109, 0.92);
  stroke-width: 2;
}

.share-preview-layout {
  display: grid;
  gap: 16px;
}

.share-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1350;
  overflow: hidden;
  border: 1px solid rgba(215, 181, 109, 0.22);
  border-radius: 28px;
  background: var(--persona-bg, linear-gradient(145deg, #2a0d19, #0b0709));
  box-shadow: var(--shadow);
}

.share-card::before {
  position: absolute;
  inset: 38px;
  content: "";
  border: 1px solid rgba(215, 181, 109, 0.18);
  border-radius: 28px;
}

.share-art {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 56%;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 239, 228, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(247, 239, 228, 0.3), transparent 30%),
    radial-gradient(circle at 50% 68%, rgba(11, 7, 9, 0.35), transparent 52%),
    rgba(247, 239, 228, 0.05);
  transform: translateX(-50%);
}

.share-card-content {
  position: absolute;
  right: 34px;
  bottom: 42px;
  left: 34px;
  display: grid;
  gap: 14px;
  text-align: center;
}

.share-card-content .small {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.share-card-content strong {
  color: var(--ivory);
  font-size: clamp(26px, 8vw, 42px);
  line-height: 1.15;
}

.share-card-content p {
  color: rgba(247, 239, 228, 0.83);
  font-size: clamp(16px, 4.8vw, 24px);
  line-height: 1.45;
}

.share-actions {
  display: grid;
  gap: 10px;
}

.teaser-card {
  position: relative;
  overflow: hidden;
}

.locked-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(215, 181, 109, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(122, 31, 61, 0.38), rgba(11, 7, 9, 0.82)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(247, 239, 228, 0.03) 12px 13px);
}

.locked-card::before {
  position: absolute;
  inset: 28px;
  content: "";
  border: 1px solid rgba(215, 181, 109, 0.16);
  border-radius: 22px;
  filter: blur(0.1px);
}

.lock-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 8px 11px;
  border: 1px solid rgba(215, 181, 109, 0.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(11, 7, 9, 0.5);
  font-size: 12px;
  font-weight: 800;
}

.locked-card-copy {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: grid;
  gap: 8px;
}

.locked-card-copy strong {
  font-size: 22px;
}

.locked-card-copy span {
  color: rgba(247, 239, 228, 0.64);
  font-size: 13px;
  line-height: 1.5;
}

.chapter-list {
  display: grid;
  gap: 10px;
}

.chapter-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(247, 239, 228, 0.1);
  border-radius: 16px;
  background: rgba(247, 239, 228, 0.045);
}

.chapter-lock {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(215, 181, 109, 0.18);
  border-radius: 50%;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.chapter-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.chapter-item span {
  color: rgba(247, 239, 228, 0.55);
  font-size: 12px;
  line-height: 1.5;
}

.reviews {
  display: grid;
  gap: 10px;
}

.review-card {
  padding: 15px;
  border: 1px solid rgba(215, 181, 109, 0.14);
  border-radius: 18px;
  color: rgba(247, 239, 228, 0.82);
  background: rgba(247, 239, 228, 0.055);
  font-size: 14px;
  line-height: 1.65;
}

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(215, 181, 109, 0.16);
  background: linear-gradient(180deg, rgba(11, 7, 9, 0), rgba(11, 7, 9, 0.94) 20%, #0b0709);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, 0.62);
  animation: fadeIn 160ms ease both;
}

.modal-sheet {
  width: min(100%, 480px);
  max-height: 92vh;
  margin: 0 auto;
  overflow: auto;
  padding: 18px 18px 24px;
  border: 1px solid rgba(215, 181, 109, 0.18);
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 78% 0%, rgba(122, 31, 61, 0.4), transparent 12rem),
    #100a0d;
  box-shadow: 0 -22px 80px rgba(0, 0, 0, 0.4);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.close-button {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 239, 228, 0.12);
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(247, 239, 228, 0.06);
}

.price-options {
  display: grid;
  gap: 12px;
}

.price-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(247, 239, 228, 0.12);
  border-radius: 20px;
  background: rgba(247, 239, 228, 0.055);
}

.price-card.recommended {
  border-color: rgba(215, 181, 109, 0.55);
  background:
    linear-gradient(145deg, rgba(122, 31, 61, 0.34), rgba(247, 239, 228, 0.055)),
    rgba(247, 239, 228, 0.05);
}

.badge {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #180c10;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.price {
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.included {
  display: grid;
  gap: 6px;
  color: rgba(247, 239, 228, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 94px;
  left: 18px;
  z-index: 60;
  max-width: 444px;
  margin: 0 auto;
  padding: 13px 15px;
  border: 1px solid rgba(215, 181, 109, 0.22);
  border-radius: 16px;
  color: var(--ivory);
  background: rgba(18, 10, 14, 0.94);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.5;
  animation: toastIn 220ms ease both;
}

.event-dock {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(247, 239, 228, 0.1);
  border-radius: 16px;
  background: rgba(247, 239, 228, 0.035);
}

.event-dock summary {
  color: rgba(247, 239, 228, 0.68);
  cursor: pointer;
  font-size: 12px;
}

.event-dock pre {
  max-height: 220px;
  overflow: auto;
  margin: 12px 0 0;
  color: rgba(247, 239, 228, 0.62);
  font-size: 11px;
  white-space: pre-wrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(215, 181, 109, 0);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 46px rgba(215, 181, 109, 0.16);
  }
}

@keyframes spin {
  to {
    transform: rotate(405deg);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 481px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(122, 31, 61, 0.3), transparent 36rem),
      #050404;
  }

  .app-shell {
    box-shadow: 0 0 0 1px rgba(247, 239, 228, 0.06);
  }
}

@media (max-width: 360px) {
  .screen {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .question-card,
  .panel-card {
    padding: 18px;
  }
}
