/* ══════════════════════════════════════════════════════════════
   월하정 · 유료 사주 웹
   mobile-first(390px) · 달빛 다크 + 골드 · 웹툰형 세로 결과
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #08090D;
  --bg-2: #0B0E14;
  --panel: #0F131A;
  --ivory: #F4EFE4;
  --ivory-80: rgba(244, 239, 228, .82);
  --ivory-64: rgba(244, 239, 228, .64);
  --ivory-40: rgba(244, 239, 228, .4);
  --muted: #8B91A0;
  --gold: #D9B978;
  --gold-bright: #F0DCAF;
  --gold-dim: rgba(217, 185, 120, .78);
  --gold-line: rgba(217, 185, 120, .24);
  --gold-soft: rgba(217, 185, 120, .1);
  --line: rgba(255, 255, 255, .09);
  --rosy: #E4A0AE;
  --card: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  --r-lg: 24px;
  --r-md: 18px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --shell: 1080px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.011em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
body.is-locked { overflow: hidden; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── 배경 ─────────────────────────────────────────────── */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky__moon {
  position: absolute; top: -170px; left: 50%; width: 240px; height: 240px; margin-left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 246, 226, .75) 0%, rgba(249, 231, 194, .3) 40%, rgba(217, 185, 120, .07) 66%, transparent 76%);
  filter: blur(.5px); opacity: .35;
}
.sky__glow {
  position: absolute; inset: -20% -10% auto; height: 70%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(217, 185, 120, .1), transparent 70%);
}
.sky__stars {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, .7), transparent 100%),
    radial-gradient(1px 1px at 78% 12%, rgba(255, 255, 255, .55), transparent 100%),
    radial-gradient(1.3px 1.3px at 32% 42%, rgba(255, 240, 210, .5), transparent 100%),
    radial-gradient(1px 1px at 88% 56%, rgba(255, 255, 255, .35), transparent 100%),
    radial-gradient(1.1px 1.1px at 62% 32%, rgba(255, 255, 255, .4), transparent 100%),
    radial-gradient(1px 1px at 6% 72%, rgba(255, 255, 255, .3), transparent 100%),
    radial-gradient(1.4px 1.4px at 48% 8%, rgba(255, 245, 220, .45), transparent 100%);
}

/* ── 상단 바 ──────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px;
  background: rgba(8, 9, 13, .78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 7px; color: var(--gold-bright); min-width: 0; }
.brand__mark { display: grid; place-items: center; color: var(--gold); }
.brand__han { font-family: var(--serif); font-size: 17px; letter-spacing: .16em; }
.brand__sub { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); padding-left: 2px; }
.topbar__right { display: flex; align-items: center; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--ivory-80); font-size: 11.5px; letter-spacing: -.01em; white-space: nowrap;
}
.chip--kakao { border-color: rgba(240, 220, 175, .35); color: var(--gold-bright); background: rgba(217, 185, 120, .09); }
.chip--kakao.is-on { background: rgba(217, 185, 120, .16); }
.chip__ico { color: var(--gold); }
.chip__count {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--gold); color: #14110A; font-size: 10px; font-weight: 700;
}

/* ── 셸 ───────────────────────────────────────────────── */
.shell { position: relative; z-index: 1; max-width: var(--shell); margin: 0 auto; padding: 0 16px 64px; }
.screen { display: none; }
.screen.is-active { display: block; animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── 홈 히어로 ────────────────────────────────────────── */
.hero { padding: 40px 2px 26px; }
.eyebrow { margin: 0 0 14px; font-size: 11.5px; letter-spacing: .22em; color: var(--gold-dim); text-transform: uppercase; }
.hero__title {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(27px, 8.4vw, 46px); line-height: 1.28; letter-spacing: -.02em;
  background: linear-gradient(180deg, #FFF8EA 0%, #EBD6A8 52%, #C8A469 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin: 16px 0 0; font-size: 13.5px; line-height: 1.72; color: var(--ivory-64); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero__note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ── 버튼 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s;
}
.btn:active { transform: scale(.985); }
.btn--gold {
  background: linear-gradient(135deg, #F0DCAF 0%, #D9B978 48%, #B8904E 100%);
  color: #1A1408; border-color: rgba(255, 240, 200, .5);
  box-shadow: 0 10px 28px -12px rgba(217, 185, 120, .7);
}
.btn--kakao {
  background: #FEE500; color: #17160F; border-color: #FEE500;
  box-shadow: 0 8px 22px -12px rgba(254, 229, 0, .55);
}
.btn--ghost { border-color: var(--line); color: var(--ivory-80); background: rgba(255, 255, 255, .03); }
.btn--block { width: 100%; padding: 16px 18px; font-size: 14.5px; }

/* ── 전문가 카드 ──────────────────────────────────────── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 2px 16px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 19px; letter-spacing: .02em; color: var(--ivory); }
.section-head__meta { font-size: 11.5px; color: var(--muted); }

.expert-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.ex {
  display: grid; grid-template-columns: 116px 1fr; gap: 0; text-align: left; width: 100%;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ex:hover { border-color: var(--gold-line); box-shadow: 0 16px 40px -30px rgba(217, 185, 120, .8); }
.ex:active { transform: scale(.99); }
.ex__img { position: relative; display: block; min-height: 150px; background: #0A0C11; overflow: hidden; }
.ex__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; opacity: .92; }
.ex__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(12, 15, 21, .92) 100%); }
.ex__no { position: absolute; top: 8px; left: 9px; font-family: var(--serif); font-size: 10px; letter-spacing: .1em; color: rgba(244, 239, 228, .8); }
.ex__price {
  position: absolute; bottom: 8px; left: 9px; z-index: 1;
  padding: 3px 7px; border-radius: 999px; background: rgba(8, 9, 13, .72);
  border: 1px solid var(--gold-line); color: var(--gold-bright); font-size: 10.5px;
}
.ex__body { display: flex; flex-direction: column; padding: 14px 14px 13px; min-width: 0; }
.ex__han { font-family: var(--serif); font-size: 10.5px; letter-spacing: .2em; color: var(--gold-dim); }
.ex__name { margin-top: 3px; font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ivory); letter-spacing: .01em; }
.ex__role { font-size: 11.5px; color: var(--ivory-64); margin-top: 2px; }
.ex__tag { margin-top: 8px; font-size: 12px; line-height: 1.55; color: rgba(217, 185, 120, .9); font-family: var(--serif); }
.ex__specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.ex__specs i { font-style: normal; font-size: 10px; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ivory-64); }
.ex__go { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--gold); display: flex; justify-content: space-between; align-items: center; }
.ex__go b { font-weight: 400; }

.how { margin-top: 34px; padding: 20px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.how__title { margin: 0 0 14px; font-family: var(--serif); font-size: 15px; color: var(--ivory); }
.how__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.how__list li { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--ivory-64); }
.how__list b { font-family: var(--serif); color: var(--gold-dim); font-size: 12px; letter-spacing: .06em; }
.home__foot { margin-top: 34px; text-align: center; font-size: 10.5px; line-height: 1.8; color: rgba(139, 145, 160, .8); }

/* ── 뒤로 ─────────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 4px; padding: 6px 0; font-size: 12px; color: var(--muted); }
.screen__title { margin: 6px 0 14px; font-family: var(--serif); font-size: 22px; font-weight: 600; }

/* ── 선택된 전문가 ────────────────────────────────────── */
.picked {
  display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; padding: 12px;
  border-radius: var(--r-md); border: 1px solid var(--gold-line); background: rgba(217, 185, 120, .055);
}
.picked__img { width: 54px; height: 66px; object-fit: cover; object-position: 50% 28%; border-radius: 10px; }
.picked__txt { display: flex; flex-direction: column; min-width: 0; }
.picked__han { font-family: var(--serif); font-size: 10px; letter-spacing: .18em; color: var(--gold-dim); }
.picked__txt strong { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.picked__role { font-size: 11.5px; color: var(--ivory-64); }
.picked__price { margin-left: auto; text-align: right; color: var(--gold-bright); }
.picked__price b { font-size: 17px; font-family: var(--serif); }
.picked__price span { font-size: 11px; color: var(--gold-dim); margin-left: 1px; }

/* ── 폼 ───────────────────────────────────────────────── */
.card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); padding: 18px 16px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 12.5px; color: var(--ivory-80); font-weight: 600; letter-spacing: .01em; }
.field__label em { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field__hint { margin: 0; font-size: 10.5px; color: var(--muted); }
.field__input, .field__select {
  width: 100%; padding: 12px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  color: var(--ivory); font-size: 14px; appearance: none; -webkit-appearance: none;
}
.field__input::placeholder { color: rgba(139, 145, 160, .75); }
.field__select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 28px;
}
.field__select.is-empty { color: var(--muted); }
.field__textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.date-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; }
.date-row .field__select { padding-left: 10px; font-size: 13.5px; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); align-self: flex-start; }
.seg--wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg__btn { padding: 8px 16px; border-radius: 999px; font-size: 12.5px; color: var(--ivory-64); }
.seg__btn.is-on { background: rgba(217, 185, 120, .16); color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--gold-line); }

.check { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; line-height: 1.6; color: var(--ivory-64); }
.check input { appearance: none; -webkit-appearance: none; flex: 0 0 18px; height: 18px; margin: 1px 0 0; border-radius: 6px; border: 1px solid var(--gold-line); background: rgba(255, 255, 255, .04); position: relative; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #171207; font-size: 12px; font-weight: 700; }
.check--inline { margin-top: 2px; font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipchip {
  padding: 7px 11px; border-radius: 999px; font-size: 11.5px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ivory-64);
}
.chipchip:hover { border-color: var(--gold-line); color: var(--gold-bright); }
.form__error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(217, 99, 79, .12); border: 1px solid rgba(217, 99, 79, .35); color: #F3B6A9; font-size: 12px; }

/* ── 주문 ─────────────────────────────────────────────── */
.order { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); padding: 16px; }
.order__top { display: flex; gap: 12px; align-items: center; }
.order__top img { width: 56px; height: 70px; object-fit: cover; object-position: 50% 28%; border-radius: 10px; }
.order__han { display: block; font-family: var(--serif); font-size: 10px; letter-spacing: .18em; color: var(--gold-dim); }
.order__top strong { display: block; font-family: var(--serif); font-size: 15.5px; line-height: 1.35; margin-top: 2px; }
.order__by { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ivory-64); }
.order__meta { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.order__meta div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.order__meta dt { font-size: 11px; color: var(--muted); }
.order__meta dd { margin: 0; font-size: 12px; color: var(--ivory-80); line-height: 1.5; }
.order__four { font-family: var(--serif); letter-spacing: .12em; color: var(--gold-bright) !important; }
.order__sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ivory-64); }
.order__sum b { font-family: var(--serif); font-size: 20px; color: var(--gold-bright); }

.pay { margin: 22px 0 16px; }
.pay__title { margin: 0 0 10px; font-family: var(--serif); font-size: 14px; }
.pay__methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pay__m { padding: 12px 6px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(255, 255, 255, .02); color: rgba(139, 145, 160, .8); font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.pay__m small { font-size: 9.5px; color: rgba(139, 145, 160, .7); }
.pay__note { margin: 10px 0 0; font-size: 11px; line-height: 1.65; color: var(--muted); }
.pay__note b { color: var(--ivory-80); font-weight: 500; }
.fine { margin: 10px 2px 0; font-size: 10.5px; line-height: 1.7; color: rgba(139, 145, 160, .8); }

/* ── 로딩 ─────────────────────────────────────────────── */
.loading { display: flex; flex-direction: column; align-items: center; padding: 54px 0 40px; text-align: center; }
.loading__moon {
  width: 92px; height: 92px; border-radius: 50%; margin-bottom: 18px;
  background: radial-gradient(circle at 42% 38%, #FFF6E2 0%, #F2DEB4 30%, rgba(217, 185, 120, .35) 62%, transparent 72%);
  box-shadow: 0 0 60px rgba(240, 220, 175, .28); animation: pulse 3.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.loading__eyebrow { margin: 0; font-family: var(--serif); font-size: 11px; letter-spacing: .3em; color: var(--gold-dim); }
.loading__title { margin: 8px 0 26px; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.5; }
.ring {
  --p: 0;
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .07) 0);
  transition: --p .2s linear;
}
.ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #0A0C11; }
.ring span { position: relative; font-family: var(--serif); font-size: 22px; color: var(--gold-bright); }
.stages { margin: 24px 0 0; display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 300px; }
.stages li { display: flex; align-items: center; gap: 9px; font-size: 12px; color: rgba(139, 145, 160, .65); transition: color .3s; }
.stages li::before { content: '○'; font-size: 10px; color: rgba(139, 145, 160, .5); }
.stages li.is-now { color: var(--ivory-80); }
.stages li.is-now::before { content: '◐'; color: var(--gold); }
.stages li.is-done { color: rgba(217, 185, 120, .8); }
.stages li.is-done::before { content: '●'; color: var(--gold); }

/* ── 결과(웹툰) ───────────────────────────────────────── */
#screen-result { margin: 0 -16px; }
.webtoon { max-width: 720px; margin: 0 auto; }
.wo-hero { position: relative; overflow: hidden; background: #0A0C11; }
.wo-hero__img { width: 100%; height: 74vw; max-height: 560px; min-height: 380px; object-fit: cover; object-position: 50% 24%; }
.wo-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 13, .55) 0%, rgba(8, 9, 13, 0) 28%, rgba(8, 9, 13, .35) 55%, rgba(8, 9, 13, .96) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 9, 13, .5), transparent 60%);
}
.wo-hero__top { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .16em; color: rgba(244, 239, 228, .7); font-family: var(--serif); }
.wo-hero__txt { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.wo-hero__han { margin: 0; font-family: var(--serif); font-size: 11px; letter-spacing: .28em; color: var(--gold-dim); }
.wo-hero__name { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(26px, 8vw, 40px); font-weight: 600; letter-spacing: -.01em; color: #FFF6E6; text-shadow: 0 2px 22px rgba(0, 0, 0, .6); }
.wo-hero__role { margin: 4px 0 0; font-size: 12px; color: var(--ivory-80); }
.wo-hero__product { margin: 12px 0 0; display: inline-block; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(8, 9, 13, .5); color: var(--gold-bright); font-size: 11px; }

.wo-shared { margin: 0; padding: 10px 20px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }

.wo-card {
  margin: 14px 16px 0; padding: 18px 16px; border-radius: var(--r-lg);
  border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(217, 185, 120, .07), rgba(255, 255, 255, .012));
}
.wo-card__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.wo-card__head h2 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--gold-bright); }
.wo-card__head span { font-size: 10px; color: var(--muted); letter-spacing: .06em; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pillar {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 2px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(8, 9, 13, .45);
}
.pillar--self { border-color: var(--gold-line); background: rgba(217, 185, 120, .07); }
.pillar.is-empty { opacity: .55; border-style: dashed; }
.pillar__label { font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.pillar__gan, .pillar__ji {
  font-family: var(--serif); font-size: clamp(26px, 8.4vw, 38px); line-height: 1.15; font-weight: 500;
  color: var(--ivory); white-space: nowrap;
}
.pillar__ji { color: var(--gold-bright); }
.pillar.is-empty .pillar__gan, .pillar.is-empty .pillar__ji { font-size: 20px; color: var(--muted); }
.pillar__kr { font-size: 10.5px; color: var(--ivory-64); }
.pillar__sip { margin-top: 3px; font-size: 9.5px; color: var(--gold-dim); padding: 1px 6px; border-radius: 999px; background: rgba(217, 185, 120, .08); }
.wo-note { margin: 12px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--muted); text-align: center; }

.ohs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.oh { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.oh__ring {
  width: 54px; height: 54px; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .06) 0);
}
.oh__ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #0B0E14; }
.oh__han { position: relative; font-family: var(--serif); font-size: 20px; color: var(--c); }
.oh__name { font-size: 10.5px; color: var(--ivory-80); font-weight: 500; }
.oh__pct { font-size: 10px; color: var(--muted); margin-top: -3px; }
.bar { display: flex; height: 8px; margin-top: 16px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.bar__seg { height: 100%; }

.chap { margin: 26px 16px 0; padding: 0 2px; }
.chap__head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--gold-line); }
.chap__no {
  flex: 0 0 auto; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--gold);
  opacity: .55; letter-spacing: -.02em;
}
.chap__title { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.4; color: #FFF4E0; }
.chap__subtitle { margin: 3px 0 0; font-size: 11.5px; color: var(--gold-dim); letter-spacing: .02em; }
.chap__lead {
  margin: 16px 0 0; padding: 14px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .035); border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: 14px; line-height: 1.75; color: var(--ivory);
}
.chap__p { margin: 14px 0 0; font-size: 14px; line-height: 1.85; color: var(--ivory-80); }
.chap__sub { margin: 18px 0 6px; font-size: 12px; font-weight: 600; color: var(--gold-dim); }
.chap__list { margin: 12px 0 0; display: flex; flex-direction: column; gap: 9px; }
.chap__list li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.75; color: var(--ivory-80); }
.chap__list li::before { content: '·'; position: absolute; left: 4px; top: -1px; color: var(--gold); font-weight: 700; }
.chap__quote {
  margin: 20px 0 0; padding: 16px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(217, 185, 120, .1), rgba(255, 255, 255, .02));
  border: 1px solid var(--gold-line);
  font-family: var(--serif); font-size: 14px; line-height: 1.8; color: var(--gold-bright); text-align: center;
}
.chap__callout { margin: 18px 0 0; padding: 14px; border-radius: 14px; background: rgba(217, 185, 120, .07); border: 1px solid rgba(217, 185, 120, .18); }
.chap__callout b { display: block; font-size: 11.5px; color: var(--gold); margin-bottom: 5px; letter-spacing: .02em; }
.chap__callout p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--ivory-80); }
.chap__letter {
  margin: 18px 0 0; padding: 22px 18px; border-radius: 16px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(217, 185, 120, .12), transparent 60%),
    rgba(255, 255, 255, .03);
  border: 1px solid var(--gold-line);
  font-family: var(--serif); font-size: 14px; line-height: 2; color: var(--ivory);
}

.months { margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.mrow {
  display: grid; grid-template-columns: 34px 46px 1fr auto; gap: 8px; align-items: center;
  padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .028); border: 1px solid transparent;
}
.mrow[data-score="5"] { background: rgba(217, 185, 120, .12); border-color: var(--gold-line); }
.mrow[data-score="1"] { opacity: .72; }
.mrow__m { font-size: 11px; color: var(--gold-dim); }
.mrow__g { font-family: var(--serif); font-size: 14px; color: var(--ivory); letter-spacing: .02em; }
.mrow__t { display: flex; flex-direction: column; min-width: 0; }
.mrow__t b { font-size: 12px; color: var(--ivory); font-weight: 500; }
.mrow__t em { font-style: normal; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.mrow__s { display: flex; gap: 2px; }
.mrow__s i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.mrow__s i.on { background: var(--gold); }

.wo-foot { margin: 34px 16px 0; padding: 20px 0 10px; border-top: 1px solid var(--line); }
.wo-foot__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.wo-foot__brand { margin: 18px 0 0; text-align: center; font-size: 10px; line-height: 1.8; color: rgba(139, 145, 160, .75); }

/* ── 모달(보관함) ─────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; background: rgba(4, 5, 8, .72); backdrop-filter: blur(6px); }
.modal__panel {
  width: 100%; max-width: 560px; max-height: 82vh; overflow-y: auto;
  background: #0C0F15; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 18px 16px 26px;
  animation: up .28s ease both;
}
@keyframes up { from { transform: translateY(20px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; }
.modal__head h2 { margin: 0; font-family: var(--serif); font-size: 18px; }
.modal__close { font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 8px; }
.modal__sub { margin: 6px 0 14px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.lib-list { display: flex; flex-direction: column; gap: 8px; }
.lib {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.lib:hover { border-color: var(--gold-line); }
.lib img { width: 42px; height: 52px; object-fit: cover; object-position: 50% 28%; border-radius: 8px; }
.lib__txt { display: flex; flex-direction: column; min-width: 0; }
.lib__txt b { font-family: var(--serif); font-size: 14px; }
.lib__txt em { font-style: normal; font-size: 11.5px; color: var(--ivory-64); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib__txt span { font-size: 10.5px; color: var(--muted); }
.lib__arrow { margin-left: auto; color: var(--gold); font-size: 13px; }
.lib-empty { padding: 26px 10px 10px; text-align: center; }
.lib-empty p { margin: 0 0 4px; font-family: var(--serif); font-size: 15px; }
.lib-empty span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }

/* ── 토스트 ───────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px);
  z-index: 80; max-width: min(92vw, 520px);
  padding: 12px 15px; border-radius: 14px;
  background: rgba(20, 24, 32, .96); border: 1px solid var(--gold-line);
  color: var(--ivory); font-size: 12px; line-height: 1.6;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .9);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── 데스크톱 ─────────────────────────────────────────── */
@media (min-width: 720px) {
  body { font-size: 15.5px; }
  .shell { padding: 0 28px 80px; }
  .hero { padding: 64px 0 34px; }
  .expert-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .ex { grid-template-columns: 1fr; }
  .ex__img { min-height: 0; aspect-ratio: 16 / 11; }
  .ex__img::after { background: linear-gradient(180deg, transparent 45%, rgba(12, 15, 21, .95) 100%); }
  .ex__no { font-size: 11px; }
  .ex__price { left: auto; right: 10px; }
  .ex__body { padding: 16px 18px 16px; }
  .ex__name { font-size: 19px; }
  .how__list { grid-template-columns: repeat(4, 1fr); }
  #screen-result { margin: 0; }
  .wo-hero { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .wo-hero__img { height: 460px; }
  .wo-card { margin: 21px 0 0; padding: 24px 24px; }
  .chap { margin: 34px 0 0; padding: 0; }
  .chap__title { font-size: 22px; }
  .chap__no { font-size: 38px; }
  .wo-foot { margin: 44px 0 0; }
  .pillars { gap: 10px; }
  .pillar { padding: 18px 6px 14px; }
  .pillar__gan, .pillar__ji { font-size: 44px; }
  .ohs { max-width: 520px; margin: 0 auto; }
  .oh__ring { width: 68px; height: 68px; }
  .oh__han { font-size: 24px; }
  .mrow { grid-template-columns: 44px 56px 1fr 64px; padding: 11px 14px; }
  .mrow__t b { font-size: 12.5px; }
  .mrow__t em { font-size: 11px; }
  .modal { place-items: center; }
  .modal__panel { border-radius: 22px; border-bottom: 1px solid var(--line); padding: 22px; }
}

@media (min-width: 1024px) {
  .expert-grid { grid-template-columns: repeat(4, 1fr); }
  .ex__tag { min-height: 38px; }
}

/* 좁은 화면 보정 */
@media (max-width: 359px) {
  .brand__sub { display: none; }
  .chip { font-size: 10.5px; padding: 6px 8px; }
  .ex { grid-template-columns: 100px 1fr; }
  .mrow { grid-template-columns: 30px 42px 1fr; }
  .mrow__s { display: none; }
  .oh__ring { width: 46px; height: 46px; }
  .oh__han { font-size: 17px; }
}

/* ── 웹툰 컷 · 말풍선 ────────────────────────────────── */
.wo-cut {
  position: relative; margin: 30px 0 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--gold-line); background: #05070B;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.wo-cut img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.wo-cut::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 9, 13, .12), rgba(8, 9, 13, .62));
}
.wo-cut figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .04em; color: var(--gold-bright);
}
.wo-cut figcaption span {
  flex: 0 0 auto; padding: 2px 7px; border-radius: 999px;
  border: 1px solid rgba(244, 239, 228, .28); background: rgba(8, 9, 13, .45);
  font-size: 9.5px; letter-spacing: .16em; color: rgba(244, 239, 228, .8);
}

.say { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; }
.say__ava {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: 50% 20%;
  border: 1px solid var(--gold-line); background: #0B0E14;
}
.say__b {
  position: relative; min-width: 0; margin: 0; padding: 12px 14px;
  border-radius: 4px 16px 16px 16px;
  background: linear-gradient(180deg, rgba(217, 185, 120, .14), rgba(217, 185, 120, .055));
  border: 1px solid rgba(217, 185, 120, .3);
  font-family: var(--serif); font-size: 13.5px; line-height: 1.72; color: #FFF4E0;
}
.say__b::before {
  content: ''; position: absolute; left: -7px; top: 0; width: 0; height: 0;
  border-top: 9px solid rgba(217, 185, 120, .3); border-left: 9px solid transparent;
}
.say__name {
  display: block; margin-bottom: 4px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--gold-dim);
}

.wo-card--partner { border-color: rgba(228, 160, 174, .28); background: linear-gradient(180deg, rgba(228, 160, 174, .08), rgba(255, 255, 255, .012)); }
.wo-card--partner .wo-card__head h2 { color: #F3C9D2; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
