:root {
  --bg: #fdf6ee;
  --bg-soft: #fff9f2;
  --ink: #3a2e2a;
  --coral: #e8735a;
  --coral-deep: #d15c42;
  --peach: #f6c78a;
  --sage: #8fac8b;
  --line: rgba(58,46,42,0.1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg) 40%);
  color: var(--ink);
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}
.app { width: 100%; max-width: 480px; min-height: 100vh; padding: 48px 24px 40px; display: flex; flex-direction: column; }
.hidden { display: none !important; }

.back-link { display: inline-block; font-size: 13px; color: #9a8a80; text-decoration: none; margin-bottom: 18px; }
.eyebrow { letter-spacing: 0.3em; font-size: 11px; color: var(--coral-deep); text-transform: uppercase; font-weight: 700; }
.title, .intro-title { font-size: 28px; font-weight: 800; margin: 14px 0 8px; line-height: 1.35; letter-spacing: -0.01em; }
.subtitle, .intro-sub { font-size: 15px; color: #6b5a52; line-height: 1.6; margin-bottom: 32px; }

.card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; margin-bottom: 14px; position: relative;
  box-shadow: 0 4px 16px rgba(58,46,42,0.04);
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.card-emoji { font-size: 26px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge.live { background: #eaf1ec; color: #2f5d4f; }
.badge.soon { background: #f1e6da; color: #9a8a80; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: 13.5px; color: #6b5a52; line-height: 1.5; }
.card-arrow { position: absolute; right: 20px; bottom: 20px; font-size: 18px; color: var(--coral); }
.foot-note { margin-top: 28px; font-size: 12px; color: #b0a297; text-align: center; line-height: 1.6; }

.empty-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 22px; text-align: center; box-shadow: 0 4px 16px rgba(58,46,42,0.04);
  margin-bottom: 14px;
}
.empty-emoji { font-size: 32px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.empty-desc { font-size: 13.5px; color: #6b5a52; line-height: 1.6; }

.credibility {
  font-size: 12.5px; color: #8a7a70; line-height: 1.6; margin-bottom: 32px;
  padding: 12px 14px; background: #fff; border-radius: 10px;
  border-left: 3px solid var(--coral);
}
.stat-row { display: flex; gap: 10px; margin-bottom: 40px; }
.stat-chip { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; text-align: center; }
.stat-chip b { display: block; font-size: 20px; color: var(--coral-deep); margin-bottom: 2px; }
.stat-chip span { font-size: 11px; color: #9a8a80; }

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff; border: none; padding: 18px; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer; width: 100%;
  box-shadow: 0 10px 24px rgba(232,115,90,0.28);
}
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  background: transparent; color: #8a7a70; border: 1px solid var(--line);
  padding: 16px; border-radius: 14px; font-size: 14px; width: 100%; cursor: pointer; margin-top: 12px;
}
.screen { flex: 1; display: flex; flex-direction: column; }

.progress-track { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 30px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--peach), var(--coral)); transition: width 0.35s ease; }
.q-index { font-size: 13px; color: var(--coral-deep); font-weight: 700; margin-bottom: 10px; }
.q-text { font-size: 22px; font-weight: 700; line-height: 1.5; margin-bottom: 34px; min-height: 100px; color: var(--ink); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  text-align: left; background: #fff; border: 1.5px solid var(--line);
  color: var(--ink); padding: 16px 18px; border-radius: 14px; font-size: 15px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
@media (hover: hover) and (pointer: fine) {
  .opt:hover { border-color: var(--coral); }
}
.opt-selected {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep)) !important;
  border-color: var(--coral-deep) !important;
  color: #fff !important;
  transform: scale(0.98);
}

.result-badge {
  align-self: flex-start; background: #fff0ea; color: var(--coral-deep);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.social-proof { font-size: 12.5px; color: #9a8a80; margin-bottom: 18px; }
.social-proof b { color: var(--coral-deep); }
.ambiguous-note {
  font-size: 13px; color: #a06a4a; background: #fff3e8; border-left: 3px solid var(--peach);
  padding: 12px 14px; border-radius: 10px; margin: 4px 0 24px; line-height: 1.6;
}
.result-type { font-size: 34px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.result-pct { font-size: 16px; color: #8a7a70; margin-bottom: 28px; }
.bar-wrap { margin-bottom: 8px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12px; color: #9a8a80; margin-bottom: 6px; }
.bar-bg { height: 8px; background: #f1e6da; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--peach), var(--coral-deep)); border-radius: 999px; }
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.type-dist-title { font-size: 13px; color: #9a8a80; font-weight: 700; margin-bottom: 14px; }
.share-row { display: flex; gap: 10px; margin: 28px 0 4px; }
.btn-share {
  flex: 1; background: #fff; border: 1px solid var(--line);
  color: var(--ink); padding: 13px 8px; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-share:active { background: #fff0ea; }

.report-section { margin-bottom: 26px; }
.report-section h3 { font-size: 15px; color: var(--coral-deep); margin: 0 0 10px; font-weight: 700; }
.report-section p { font-size: 14px; line-height: 1.7; color: #55453f; margin: 0; white-space: pre-line; }
.report-badge { font-size: 12px; color: var(--coral-deep); background: #fff0ea; padding: 5px 10px; border-radius: 999px; display: inline-block; margin-bottom: 18px; }

.related-blog-link {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 4px;
}
.related-blog-link span:first-child { font-size: 13px; font-weight: 700; color: var(--coral-deep); }
.related-blog-title { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .related-blog-link:hover { border-color: var(--coral); }
}

/* article template */
.article-meta { font-size: 12.5px; color: #9a8a80; margin-bottom: 10px; }
.article-title { font-size: 26px; font-weight: 800; line-height: 1.4; margin-bottom: 24px; color: var(--ink); }
.article-section { margin-bottom: 28px; }
.article-section h2 { font-size: 17px; color: var(--coral-deep); margin: 0 0 12px; font-weight: 700; }
.article-section p { font-size: 15px; line-height: 1.85; color: #55453f; margin: 0 0 10px; white-space: pre-line; }

@media print {
  body { background: white; color: black; }
  .no-print { display: none !important; }
  .report-section p, .report-section h3 { color: black; }
}
