:root {
  --bg: #fdf7f3;
  --card: #ffffff;
  --primary: #e8857a;
  --primary-dark: #d96a5e;
  --text: #3d3630;
  --muted: #9a8f86;
  --line: #f0e6df;
  --redflag: #fff3cd;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
#app { max-width: 480px; margin: 0 auto; padding: 16px; min-height: 100vh; }

.screen { display: flex; flex-direction: column; gap: 14px; }
.screen-title { font-size: 20px; margin: 8px 0 0; }
.sub { color: var(--muted); margin: -6px 0 4px; }

.hero { text-align: center; padding: 24px 12px 8px; }
.hero h1 { font-size: 24px; margin: 0 0 6px; }
.hero p { color: var(--muted); margin: 0; }

.card { background: var(--card); border-radius: 16px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; gap: 12px; text-align: center; }

.consent ul { padding-left: 18px; color: var(--text); font-size: 14px; }
.consent li { margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.field input { padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; color: var(--text); }

.btn { width: 100%; padding: 14px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: .15s; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.primary:disabled { background: #e6d5d1; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--primary-dark); border: 1px solid var(--line); }

.pick { display: flex; align-items: center; gap: 14px; cursor: pointer; transition: .15s; }
.pick:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.pick-emoji { font-size: 36px; }
.pick p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.q-card { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.q-card.q-redflag { background: #fffaf2; border: 1px solid #f3e2c4; }
.q-title { font-weight: 600; margin-bottom: 10px; }
.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.q-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.q-card.q-missing { border: 1px solid var(--primary); }

.score-card { text-align: center; background: linear-gradient(135deg, #f6a896, #e8857a); color: #fff; }
.score-num { font-size: 52px; font-weight: 800; line-height: 1; }
.score-label { opacity: .9; }

.reco-list { display: flex; flex-direction: column; gap: 12px; }
.reco-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.reco-item:last-child { border-bottom: none; }
.reco-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 14px; }
.reco-body { flex: 1; min-width: 0; }
.reco-aspect { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.reco-card h3 { margin: 0 0 6px; }
.reco-intro { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.btn.buy { width: auto; flex-shrink: 0; padding: 9px 16px; font-size: 14px; background: var(--primary); color: #fff; border-radius: 20px; }
.btn.buy:hover { background: var(--primary-dark); }
.bundle-cta { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.bundle-cta p { margin: 0 0 10px; font-size: 13px; color: var(--text); }
.bundle-cta .btn { margin: 0; }
.text-card p { margin: 0 0 10px; font-size: 14px; }
.text-card p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.redflag-note { background: var(--redflag); border: 1px solid #f3e2c4; font-size: 14px; }
.muted { color: var(--muted); }

.spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
