/* ══════════════════════════════════════════════
   오늘도 커마카세 — style.css
   디자인 수정은 이 파일만 건드리면 돼요!
══════════════════════════════════════════════ */

:root {
  --cream: #fdf6ec;
  --espresso: #2c1a0e;
  --caramel: #c87941;
  --latte: #d4a96a;
  --foam: #f5e6d0;
  --steam: #ede0cc;
  --accent: #9b4f1e;
  --soft: #7a5c44;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--cream);
  color: var(--espresso);
  font-family: 'Noto Sans KR', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 노이즈 텍스처 배경 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── 헤더 ── */
header {
  width: 100%;
  max-width: 480px;
  padding: 48px 24px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--caramel);
  text-transform: uppercase;
  margin-bottom: 10px;
}

header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--espresso);
  letter-spacing: -0.01em;
}

header h1 em {
  font-style: italic;
  color: var(--caramel);
}

header p {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.7;
  font-weight: 300;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--latte);
  margin: 20px auto;
  border-radius: 99px;
}

/* ── 광고 슬롯 ── */
.ad-slot {
  width: 100%;
  max-width: 480px;
  padding: 0 24px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.ad-placeholder {
  background: var(--foam);
  border: 1px dashed var(--latte);
  border-radius: 12px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--latte);
  letter-spacing: 0.1em;
}

/* ── 메인 ── */
main {
  width: 100%;
  max-width: 480px;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

/* ── 진행 바 ── */
.progress-wrap {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.progress-dot {
  flex: 1;
  height: 4px;
  background: var(--steam);
  border-radius: 99px;
  transition: background 0.4s;
}
.progress-dot.done   { background: var(--caramel); }
.progress-dot.active { background: var(--latte); }

/* ── 질문 카드 ── */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 32px rgba(44,26,14,0.08), 0 1px 4px rgba(44,26,14,0.06);
  animation: slideUp 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

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

.question-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--caramel);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.question-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--espresso);
  margin-bottom: 24px;
}

/* ── 선택지 버튼 ── */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-btn {
  background: var(--cream);
  border: 1.5px solid var(--steam);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  color: var(--espresso);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  line-height: 1.4;
}

.opt-btn:hover {
  background: var(--foam);
  border-color: var(--latte);
  transform: translateX(3px);
}

.opt-btn .emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ── 결과 화면 ── */
#result-screen { display: none; }

.result-card {
  background: linear-gradient(145deg, var(--espresso) 0%, var(--accent) 100%);
  border-radius: 24px;
  padding: 40px 28px 32px;
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(44,26,14,0.25);
  animation: slideUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

.result-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.result-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--latte);
  margin-bottom: 8px;
}

.result-emoji {
  font-size: 4.5rem;
  margin: 12px 0;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.result-drink {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.result-sub {
  font-size: 13px;
  color: var(--latte);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.6;
}

.result-desc {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--foam);
  text-align: left;
}

/* ── 태그 ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}

.tag {
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: var(--foam);
}

/* ── 공유 버튼 ── */
.share-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.share-btn {
  flex: 1;
  padding: 13px 8px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.share-kakao { background: #FEE500; color: #3c1e1e; }
.share-insta  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.share-copy   { background: rgba(255,255,255,0.15); color: var(--cream); border: 1px solid rgba(255,255,255,0.2); }

.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* ── 다시하기 버튼 ── */
.retry-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid var(--latte);
  background: transparent;
  color: var(--cream);
  font-size: 13.5px;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.retry-btn:hover { background: rgba(255,255,255,0.1); }

/* ── 결과 하단 광고 ── */
.ad-result {
  margin-top: 20px;
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

/* ── 푸터 ── */
footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--latte);
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

/* ── 토스트 알림 ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--espresso);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 13px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  z-index: 999;
}
.toast.show { transform: translateX(-50%) translateY(0); }
