/* 내 몸을 원소로 팔면 얼마 — 스타일
   색: 웜 화이트 바탕 + 캐릭터 오렌지 1종. 잉크는 캐릭터 외곽선의 짙은 갈색 쪽으로 틴트.
   서체: Pretendard + 영수증 숫자용 시스템 모노. */
:root {
  --surface: #FBF7F1;
  --paper: #FFFDF9;
  --ink: #2B211A;
  --ink-2: #6B5D52;
  --ink-3: #766759;
  --line: #E7DDD2;
  --line-strong: #CDBFB1;
  --accent: #FF8A3D;        /* 캐릭터 몸 색. 버튼 바탕(잉크 글자 6.7:1) */
  --accent-ink: #B84C15;    /* 밝은 바탕 위 오렌지 글자(4.8:1) */
  --accent-soft: #FCE3D0;
  --accent-hover: #F57A2A;
  --gain: #1E6B45;          /* 지금 사면 이득(바탕 #E2F1E8 위 5.5:1) */
  --gain-soft: #E2F1E8;
  --loss: #A8321F;          /* 지금 사면 손해(바탕 #FBE6E1 위 5.6:1) */
  --loss-soft: #FBE6E1;

  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Pretendard Variable", Pretendard, monospace;

  --tracking-body: -0.01em;
  --tracking-title: -0.03em;
  --leading-body: 1.6;
  --leading-title: 1.25;

  --radius: 14px;
  --radius-inner: 8px;
  --shadow-paper: 0 1px 2px rgba(43, 33, 26, .06), 0 10px 28px rgba(43, 33, 26, .08);

  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }

.wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

.brand {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 0;
  margin: -10px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  cursor: pointer;
}
.brand:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; line-height: var(--leading-title); letter-spacing: var(--tracking-title); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.screen[hidden] { display: none; }
.screen:focus { outline: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { background: var(--line); color: var(--ink-3); cursor: not-allowed; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: var(--paper); }
.btn--quiet { background: transparent; min-height: 48px; color: var(--ink-2); font-weight: 600; }
.btn--quiet:hover { background: transparent; color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- 첫 화면 ---------- */
/* 2026-10-12: 몸무게 입력칸을 맨 위로. 375×667에서 제목·몸무게·성별·출생연도·버튼이 스크롤 없이 보이게 세로 여백을 줄였다.
   자동 포커스는 하지 않는다(모바일 키보드가 올라와 제목·버튼을 가림). 대신 입력칸을 크게 둔다. */
.intro { padding-top: 8px; }
.intro__title { margin-top: 18px; font-size: clamp(26px, 7.4vw, 32px); font-weight: 800; }
.intro__title em { font-style: normal; color: var(--accent-ink); }
.quick .field { margin-top: 18px; }
.quick .field > legend, .quick .field > label { margin-bottom: 8px; }
.field--weight > label { font-size: 17px; }
.num.num--big { box-shadow: inset 0 0 0 2px var(--accent); background: #fff; }
.num.num--big input { height: 68px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.num.num--big input::placeholder { color: var(--line-strong); font-weight: 700; }
.num.num--big span { font-size: 20px; font-weight: 700; color: var(--ink); padding-right: 20px; }
.quick__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick__row .seg { gap: 6px; }
.quick__row .seg label, .quick__row .num input { min-height: 52px; }
.quick__row .num input { padding: 0 4px 0 14px; }
.quick__row .num span { padding-right: 12px; }
.quick__go { margin-top: 18px; }
.quick .intro__meta { margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.hint--error { color: var(--loss); font-weight: 600; }
.intro__hero { margin: 36px 0 0; position: relative; }
.intro__lead { color: var(--ink-2); font-size: 16px; }
.intro__char { width: 56%; margin: 8px 0 12px auto; }

/* ---------- 첫 화면 캐릭터 ----------
   그림이 한 장(몸·팔·눈이 붙은 PNG)이라 부위를 나누지 않고 층을 겹쳐 움직인다.
   층마다 주기를 서로 나눠지지 않게 잡아(1.5s·5.3s·4.7s·2.3s·3.1s) 같은 모습이 금방 반복되지 않게 한다.
   transform·opacity만 쓴다. 눈 깜빡임은 눈 위에 몸 색 타원 + 감은 눈 선(SVG)을 잠깐 켠다. */
.hero-char { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-char img { width: 100%; display: block; }
.hero-char__sway { animation: hc-sway 5.3s ease-in-out infinite; transform-origin: 50% 90%; }
.hero-char__jump { transform-origin: 50% 100%; }
.hero-char__jump.is-jump { animation: hc-jump 620ms cubic-bezier(.3, .7, .4, 1); }
.hero-char__bounce { position: relative; animation: hc-bounce 1.5s ease-in-out infinite; transform-origin: 50% 92%; will-change: transform; }
.hero-char__blink { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: hc-blink 4.7s steps(1, end) infinite; }
.hero-char__shadow {
  position: absolute; left: 22%; right: 22%; bottom: 3%; height: 7%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 50, 20, .28), rgba(90, 50, 20, 0));
  animation: hc-shadow 1.5s ease-in-out infinite;
}
.hero-char__spark { position: absolute; width: 7%; aspect-ratio: 1; opacity: 0; pointer-events: none;
  background: #F2C14E; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.hero-char__spark--a { left: 6%; top: 38%; animation: hc-spark 2.3s ease-in-out infinite; }
.hero-char__spark--b { right: 4%; top: 8%; width: 5%; animation: hc-spark 3.1s ease-in-out .8s infinite; }
.hero-char__spark--c { right: 10%; top: 58%; width: 4.5%; animation: hc-spark 3.7s ease-in-out 1.6s infinite; }

/* 통통: 내려앉을 때 납작(squash), 뛰어오를 때 길쭉(stretch). 0%와 100%가 같아 이음매가 없다 */
@keyframes hc-bounce {
  0%, 100% { transform: translateY(0) scale(1.05, .95); }
  14% { transform: translateY(-3%) scale(.96, 1.05); }
  45% { transform: translateY(-8%) scale(1, 1); }
  76% { transform: translateY(-2%) scale(.97, 1.04); }
  90% { transform: translateY(0) scale(1.07, .93); }
}
/* 그림자: 몸이 높이 뜨면 작고 옅게 */
@keyframes hc-shadow {
  0%, 100% { transform: scale(1.08, 1); opacity: 1; }
  45% { transform: scale(.72, .8); opacity: .55; }
  90% { transform: scale(1.12, 1); opacity: 1; }
}
/* 갸웃·좌우 이동: 오른쪽 갸웃 → 가운데 → 왼쪽으로 살짝 걸어갔다 돌아옴 */
@keyframes hc-sway {
  0%, 100% { transform: translateX(0) rotate(0); }
  18% { transform: translateX(2%) rotate(5deg); }
  30% { transform: translateX(2%) rotate(4deg); }
  46% { transform: translateX(0) rotate(0); }
  64% { transform: translateX(-4%) rotate(-4deg); }
  76% { transform: translateX(-4%) rotate(-6deg); }
  88% { transform: translateX(-1%) rotate(-1deg); }
}
/* 깜빡임: 4.7초에 두 번(한 번은 연달아 두 번) */
@keyframes hc-blink {
  0% { opacity: 0; }
  40% { opacity: 1; } 42.5% { opacity: 0; }
  86% { opacity: 1; } 88% { opacity: 0; } 90.5% { opacity: 1; } 92.5% { opacity: 0; }
}
@keyframes hc-spark {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0); }
  35% { opacity: 1; transform: scale(1) rotate(25deg); }
  60% { opacity: 0; transform: scale(.5) rotate(45deg); }
}
/* 탭 점프: 한 번 웅크렸다 높이 뛰고 납작하게 착지 */
@keyframes hc-jump {
  0% { transform: translateY(0) scale(1, 1); }
  15% { transform: translateY(0) scale(1.1, .88); }
  45% { transform: translateY(-22%) scale(.92, 1.1) rotate(-6deg); }
  75% { transform: translateY(0) scale(1.1, .9); }
  100% { transform: translateY(0) scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-char__sway, .hero-char__bounce, .hero-char__shadow, .hero-char__jump.is-jump { animation: none !important; }
  .hero-char__blink, .hero-char__spark { animation: none !important; opacity: 0; }
}
.intro__meta { margin: 0 0 20px; color: var(--ink-3); font-size: 14px; }

/* ---------- 기본 정보 ---------- */
.step-title { font-size: 26px; font-weight: 800; margin-top: 28px; }
.step-sub { margin-top: 8px; color: var(--ink-2); }
.field { margin-top: 28px; border: 0; padding: 0; }
.field > legend, .field > label { display: block; font-weight: 700; margin-bottom: 10px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.seg input:checked + label { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent-ink); font-weight: 700; }
.seg input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.num {
  display: flex; align-items: center;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.num:focus-within { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.num input {
  flex: 1; min-width: 0;
  height: 52px; padding: 0 16px;
  border: 0; background: transparent; outline: none;
  font-size: 18px; font-weight: 600;
}
.num span { padding-right: 16px; color: var(--ink-2); }
.hint { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.hint--note { color: var(--accent-ink); }
.actions { margin-top: 32px; display: grid; gap: 8px; }

/* ---------- 영수증 ---------- */
.receipt-head { margin-top: 20px; }
.toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 20px 0 16px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--line);
}
.toggle button {
  min-height: 44px;
  border: 0; border-radius: 10px;
  background: transparent;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(43, 33, 26, .1); }

.receipt {
  position: relative;
  background: var(--paper);
  padding: 24px 20px 28px;
  box-shadow: var(--shadow-paper);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 18px;
}
.receipt::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
    linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x;
}
.receipt__shop { text-align: center; font-family: var(--font-body); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.receipt__meta { text-align: center; color: var(--ink-2); font-size: 12.5px; margin-top: 4px; }
.receipt hr { border: 0; border-top: 1.5px dashed var(--line-strong); margin: 14px 0; }
.receipt__cols { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12.5px; }
.receipt ol { list-style: none; margin: 0; padding: 0; }
.receipt li { padding: 8px 0; }
.receipt li + li { border-top: 1px dotted var(--line); }
.r-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.r-name { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
.r-sym { color: var(--ink-3); font-weight: 400; margin-left: 4px; font-family: var(--font-mono); font-size: 12.5px; }
.r-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-price--none { color: var(--ink-3); }
.r-sub { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.r-sub span:first-child { font-family: var(--font-body); }
.r-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.r-total strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.receipt__note { margin-top: 10px; font-family: var(--font-body); font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.receipt__barcode {
  height: 36px; margin: 18px auto 0; width: 70%;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
  opacity: .85;
}

/* ---------- 문진 ---------- */
.quiz-top { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.quiz-back { width: 44px; height: 44px; flex: none; border: 0; background: transparent; border-radius: var(--radius-inner); cursor: pointer; display: grid; place-items: center; }
.quiz-back:disabled { visibility: hidden; }
.quiz-back svg { width: 22px; height: 22px; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 240ms var(--ease); }
.quiz-count { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); min-width: 44px; text-align: right; letter-spacing: 0; }
.quiz-intro { margin-top: 20px; color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.quiz-q { font-size: 24px; font-weight: 800; margin-top: 10px; }
.quiz-serving { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.options { margin-top: 24px; display: grid; gap: 8px; }
.option {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  text-align: left;
  font-size: 17px; font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.option:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.option[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent-ink); }

/* ---------- 결과 ---------- */
.result-hero { margin-top: 12px; text-align: center; }
.result-char { width: 72%; max-width: 300px; margin: 0 auto; }
.result-kicker { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.result-type { font-size: clamp(34px, 10vw, 42px); font-weight: 800; color: var(--accent-ink); margin-top: 2px; }
.result-line { margin-top: 8px; font-size: 16px; }
.result-overall { margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.result-overall b { color: var(--ink); }

.section-title { font-size: 20px; font-weight: 800; margin: 40px 0 6px; }
.section-sub { color: var(--ink-2); font-size: 14px; }

.cards { margin-top: 16px; display: grid; gap: 10px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 16px 16px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.card__head { display: flex; align-items: center; gap: 12px; }
.card__icon { width: 52px; height: 52px; flex: none; border-radius: var(--radius-inner); background: var(--surface); padding: 3px; }
.card__name { font-weight: 800; font-size: 17px; }
.card__badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12px; font-weight: 600; color: var(--ink-2); vertical-align: 2px; }
.card__stage { font-size: 14px; color: var(--ink-2); }
.card__stage b { color: var(--ink); }
.card__pct { margin-left: auto; text-align: right; font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.card__pct small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.meter { position: relative; height: 8px; margin: 14px 0 12px; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 4px; }
.meter::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(100% / 1.5); width: 2px; background: var(--ink); opacity: .5; }
.card dl { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.card dl div { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px; }
.card dt { color: var(--ink-3); }
.card dd { margin: 0; }
.card dd strong { font-weight: 700; }

.share-preview { margin-top: 16px; }
.share-preview img { width: 100%; border-radius: var(--radius-inner); box-shadow: var(--shadow-paper); }
.share-preview p { margin-top: 8px; font-size: 14px; color: var(--ink-2); text-align: center; }

.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.legal a { color: var(--ink); text-underline-offset: 3px; display: inline-block; padding: 10px 0; }
.result-actions { margin-top: 28px; display: grid; gap: 10px; }

/* 결과 캐릭터 등장: 한 번, 짧게 */
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.result-char.is-in { animation: rise 420ms var(--ease) both; }

/* ---------- 출처 페이지 ---------- */
.doc h1 { font-size: 28px; font-weight: 800; margin-top: 24px; }
.doc h2 { font-size: 20px; font-weight: 800; margin-top: 36px; }
.doc h3 { font-size: 16px; font-weight: 700; margin-top: 22px; }
.doc p, .doc li { font-size: 15px; color: var(--ink); }
.doc p { margin-top: 10px; }
.doc ul { padding-left: 1.2em; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent-ink); overflow-wrap: anywhere; }
.doc .table-wrap { overflow-x: auto; margin-top: 12px; }
.doc table { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.doc th, .doc td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.doc td.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0; }
.doc .back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.receipt-head .step-title { margin-top: 0; }
.doc .doc-end { margin-top: 32px; }
.card__approx { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-2); margin-right: 3px; vertical-align: 2px; }
.copyright { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.copyright a { color: var(--ink-2); }

/* 모든 화면 하단: 개인정보 처리방침 링크 */
.site-foot { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--ink); }

/* 영수증 맨 위 합계 */
.r-total--top { margin-top: 10px; }
.r-est { margin-left: 5px; padding: 0 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--ink-2); vertical-align: 1px; }

/* 결과: 숨은 강점·이름 정하는 법 */
.result-strength { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.result-strength b { color: var(--accent-ink); }
.result-rule { margin-top: 6px; font-size: 13px; color: var(--ink-3); }

/* 결과: 내 몸값 */
.momgap { margin-top: 24px; background: var(--paper); border-radius: var(--radius); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); }
.momgap__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.momgap__row + .momgap__row { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-strong); }
.momgap__label { font-family: var(--font-body); font-size: 14px; color: var(--ink-2); }
.momgap__main { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.momgap__sub { font-size: 16px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 결과: 식습관 해석 */
.diet { margin-top: 10px; background: var(--paper); border-radius: var(--radius); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; font-size: 15px; }
.diet dl { margin: 0; display: grid; gap: 6px; }
.diet dl div { display: grid; grid-template-columns: 5.6em 1fr; gap: 8px; }
.diet dt { color: var(--ink-3); }
.diet dd { margin: 0; }
.diet p { color: var(--ink-2); font-size: 14px; }

/* 카드: 이렇게 나온 이유 */
.card__why { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); display: grid; gap: 4px; font-size: 14.5px; line-height: 1.6; }
.card__why-title { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.card__why .muted { color: var(--ink-2); }

/* 결과: 지금 나에게 필요한 과일 */
.fruit__box { margin-top: 16px; background: var(--paper); border-radius: var(--radius); padding: 14px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.fruit-main { display: grid; gap: 10px; }
.fruit-main__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface); }
.fruit-main__name { font-size: 24px; font-weight: 800; letter-spacing: var(--tracking-title); }
.fruit-main__rank { margin-bottom: -8px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.fruit-fact { font-size: 15px; color: var(--ink); }
.fruit-fact b { font-weight: 800; }
.fruit-price { display: inline-flex; align-self: start; justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.fruit-price--gain { background: var(--gain-soft); color: var(--gain); }
.fruit-price--loss { background: var(--loss-soft); color: var(--loss); }
.fruit-price--flat { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.fruit-subs { list-style: none; margin: 0; padding-left: 0; display: grid; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.fruit-sub { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.fruit-sub__img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--surface); }
.fruit-sub__body { display: grid; gap: 3px; min-width: 0; }
.fruit-sub__name { font-size: 16px; font-weight: 800; }
.fruit-sub .fruit-fact { font-size: 13.5px; color: var(--ink-2); }
.fruit-sub .fruit-price { font-size: 12.5px; padding: 2px 8px; }
/* 사진이 없을 때(가격 정보 실패·이미지 오류) 이름만 크게 쓴 타일 */
.fruit-tile { display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); font-weight: 800; letter-spacing: var(--tracking-title); }
.fruit-main .fruit-tile { aspect-ratio: 5 / 2; border-radius: 12px; font-size: 36px; }
.fruit-sub .fruit-tile { width: 64px; height: 64px; border-radius: 10px; font-size: 16px; }
.fruit__link { min-height: 52px; font-size: 16px; }
.fruit-note { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 알토랩의 다른 실험(교차 링크: 버튼이 아니라 텍스트 링크 목록) ---------- */
.xlinks { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.xlinks__title { font-size: 16px; font-weight: 800; }
.xlinks__list { list-style: none; margin: 8px 0 0; padding: 0; }
.xlinks__list li + li { border-top: 1px solid var(--line); }
.xlinks__list a { display: block; padding: 10px 0; min-height: 44px; color: var(--ink); text-decoration: none; }
.xlinks__list b { display: block; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.xlinks__list span { display: block; margin-top: 1px; font-size: 14px; color: var(--ink-2); }
.xlinks__list a:hover b { text-decoration-color: var(--accent-ink); }
.xlinks__all { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-ink); font-size: 15px; font-weight: 600; text-underline-offset: 3px; }

/* ---------- 첫 화면 아래: 원소 체질 목록·자주 묻는 질문 ---------- */
.types-nav { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.types-nav__title { font-size: 16px; font-weight: 800; }
.types-nav__sub { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.types-nav__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.types-nav__list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; text-underline-offset: 3px; }
.faq { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.faq__title { font-size: 16px; font-weight: 800; }
.faq dl { margin: 6px 0 0; }
.faq dt { margin-top: 14px; font-size: 15px; font-weight: 700; }
.faq dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- 원소 체질 페이지(/e/…) ---------- */
.epage__top { display: flex; justify-content: space-between; align-items: center; }
.epage__top a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.epage__hero { margin-top: 8px; text-align: center; }
.epage__kind { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.epage__name { font-size: clamp(34px, 10vw, 42px); font-weight: 800; color: var(--accent-ink); margin-top: 2px; }
.epage__line { margin-top: 8px; font-size: 16px; }
.epage section { margin-top: 32px; }
.epage h2 { font-size: 20px; font-weight: 800; }
.epage p { margin-top: 8px; font-size: 15px; }
.epage ul { margin: 8px 0 0; padding-left: 1.2em; font-size: 15px; }
.epage li + li { margin-top: 4px; }
.epage__block { margin-top: 10px; background: var(--paper); border-radius: var(--radius); padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.epage__block h3 { font-size: 16px; font-weight: 800; }
.epage__block ul { padding-left: 1.1em; }
.epage__note { color: var(--ink-3); font-size: 13px; }
.epage__cta { margin-top: 28px; }
.epage__others { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.epage__others a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; text-underline-offset: 3px; }
