@import url("https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;700;800&family=Noto+Sans+KR:wght@400;500;700;900&display=swap");

:root {
  --bg-0: #16131c;
  --bg-1: #221a2e;
  --ink-0: #f8e9d8;
  --ink-1: #d8c0a6;
  --brand: #ff8a3d;
  --brand-2: #ff5e62;
  --line: #5a3f2b;
  --card: rgba(36, 28, 46, 0.82);
}

* {
  box-sizing: border-box;
}

body[data-page="anju-picker"] {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-0);
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 143, 74, 0.25) 0, rgba(255, 143, 74, 0) 26%),
    radial-gradient(circle at 88% 10%, rgba(255, 94, 98, 0.2) 0, rgba(255, 94, 98, 0) 24%),
    radial-gradient(circle at 52% 100%, rgba(255, 195, 107, 0.17) 0, rgba(255, 195, 107, 0) 34%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
}

.anju-page {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 42px;
}

.quick-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-card,
.info-card,
.result-head-card,
.compact-head {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: var(--card);
  box-shadow: 0 16px 32px -24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.hero-card h1,
.compact-head h1,
.result-head-card h1 {
  margin: 0 0 8px;
  line-height: 1.24;
}

.result-head-card h1 {
  font-size: clamp(28px, 5.2vw, 44px);
  letter-spacing: -0.02em;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 150, 85, 0.2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: #ffd8b0;
}

.sub {
  color: var(--ink-1);
  margin-bottom: 16px;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.name-form {
  display: grid;
  gap: 10px;
}

.name-form label {
  font-size: 14px;
  font-weight: 700;
  color: #ffd9b6;
}

.name-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 52px;
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-0);
  background: rgba(255, 255, 255, 0.06);
}

.name-help {
  margin: 0;
  font-size: 13px;
  color: var(--ink-1);
}

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn-secondary {
  color: var(--ink-0);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
}

.progress-wrap {
  margin: 14px 0;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a65, #ff648c);
  transition: width 0.24s ease;
}

.question-step {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
}

.step-indicator {
  font-size: 13px;
  color: var(--ink-1);
  margin: 0 0 8px;
}

.choice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.choice-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  min-height: 64px;
  cursor: pointer;
}

.choice-item input {
  width: 20px;
  height: 20px;
}

.step-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cute-main-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 14, 26, 0.82);
  padding: 12px;
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cute-main-bg {
  display: block;
  width: 100%;
  border-radius: 14px;
  filter: saturate(1.08) contrast(1.08) brightness(0.92);
}

.cute-main-icon {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: min(180px, 30vw);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
}

.cute-main-bubble {
  position: absolute;
  left: 24px;
  bottom: 22px;
  margin: 0;
  background: rgba(27, 20, 39, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  color: #ffd9b8;
}

.pocha-main-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 10%, rgba(255, 182, 72, 0.26), transparent 55%);
}

.result-name {
  margin: 10px 0 8px;
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 900;
  color: #ffd39c;
}

.name-chip {
  display: inline-flex;
  margin: 2px 0 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 133, 86, 0.18);
  border: 1px solid var(--line);
  color: #ffd0ad;
  font-weight: 700;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag-pill {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 6px 11px;
  font-size: 13px;
}

.result-hint {
  margin: 2px 0 0;
  color: var(--ink-1);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.result-card-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 12px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.result-card-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.footer-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.recommend-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.recommend-list a {
  color: #ffc17c;
  font-weight: 600;
}

@media (max-width: 640px) {
  .anju-page {
    width: calc(100% - 18px);
    padding-top: 14px;
  }

  .hero-card,
  .info-card,
  .result-head-card,
  .compact-head,
  .question-step {
    padding: 16px;
    border-radius: 16px;
  }

  .choice-item {
    min-height: 70px;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 54px;
  }

  .hero-actions,
  .footer-actions,
  .share-actions,
  .quick-nav {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cute-main-icon {
    width: 120px;
    right: 14px;
    bottom: 12px;
  }

  .cute-main-bubble {
    left: 12px;
    right: 140px;
    bottom: 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.35;
  }
}
