:root {
  --bg: #f4efe7;
  --bg-accent: #f0d7b5;
  --ink: #1d1a17;
  --muted: #6a625b;
  --card: #fff7ec;
  --primary: #ec5f2a;
  --primary-dark: #b3441f;
  --shadow: 0 18px 45px rgba(29, 26, 23, 0.18);
  --radius: 18px;
  --font: "Space Grotesk", "Sora", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff6e9 0%, var(--bg) 45%, #eadcc8 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.35;
}

.bg-shape-a {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -140px;
  background: linear-gradient(120deg, #f7c28b, #ffd6a8);
}

.bg-shape-b {
  width: 360px;
  height: 360px;
  bottom: -80px;
  right: -80px;
  background: linear-gradient(120deg, #f39b78, #f2b9a0);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.tag {
  color: var(--muted);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  min-height: 480px;
}

.screen {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.4s ease;
}

.screen.is-active {
  display: flex;
}

h1, h2, h3 {
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
}

.bullets {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(236, 95, 42, 0.25);
}

.btn.primary:active {
  background: var(--primary-dark);
}

.btn.ghost {
  background: transparent;
  border-color: #d9c7b1;
  color: var(--ink);
}

.progress {
  background: #efe3d5;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ef7340, #f29d6b);
  transition: width 0.3s ease;
}

.meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  background: #f7e4cf;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: #a0542c;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2d4c3;
  background: white;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: border 0.2s ease, transform 0.2s ease;
}

.option:hover {
  transform: translateY(-1px);
  border-color: #f0b083;
}

.option.selected {
  border-color: #ef7340;
  box-shadow: 0 10px 20px rgba(239, 115, 64, 0.15);
}

.option .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d8c6b4;
}

.option.selected .dot {
  border-color: #ef7340;
  background: #ef7340;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.result-badge {
  background: #1d1a17;
  color: #ffd7b4;
  padding: 6px 16px;
  border-radius: 999px;
  width: fit-content;
  letter-spacing: 2px;
}

.result-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.result-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.share {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .card {
    padding: 20px;
  }

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

  .footer {
    flex-direction: column;
    gap: 4px;
  }
}
