/* =========================================================
   무신당 · 2027 신년운세 — 스타일
   먹빛 바탕 + 금박 포인트 · 모바일 9:16 세로 중심
   ========================================================= */

@font-face {
  font-family: 'MD Serif';
  src: url('../assets/fonts/MDSerif-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MD Serif';
  src: url('../assets/fonts/MDSerif-600.woff2') format('woff2');
  font-weight: 500 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MD Serif';
  src: url('../assets/fonts/MDSerif-Bold.woff2') format('woff2');
  font-weight: 700 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MD Sans';
  src: url('../assets/fonts/MDSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MD Sans';
  src: url('../assets/fonts/MDSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --ink: #08080a;
  --ink-2: #0e0e12;
  --ink-3: #15151c;
  --ink-4: #1e1e27;

  --gold: #d9b76f;
  --gold-2: #f2dfb4;
  --gold-3: #9c7a35;
  --gold-dim: rgba(217, 183, 111, .34);
  --gold-line: rgba(217, 183, 111, .22);

  --paper: #f6f0e4;
  --paper-2: rgba(246, 240, 228, .74);
  --paper-3: rgba(246, 240, 228, .5);
  --paper-4: rgba(246, 240, 228, .3);

  --line: rgba(246, 240, 228, .1);
  --line-2: rgba(246, 240, 228, .06);

  --red: #b4473c;
  --green: #7fc49a;

  --serif: 'MD Serif', 'Nanum Myeongjo', 'AppleMyungjo', 'Noto Serif KR', serif;
  --sans: 'MD Sans', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;

  --pad: 24px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: #040405;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(120% 70% at 50% -10%, #1a1509 0%, #0a090b 45%, #040405 100%);
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(55% 45% at 50% 42%, rgba(217, 183, 111, .07), transparent 72%);
}

button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
p { margin: 0; }
b, strong { font-weight: 600; }

/* ---------- 앱 프레임 ---------- */
.app {
  position: relative;
  width: min(100vw, 440px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(217, 183, 111, .08), 0 40px 120px rgba(0, 0, 0, .9);
}
@media (min-width: 480px) {
  body { display: flex; align-items: center; justify-content: center; }
  .app { height: min(920px, 100dvh); border-radius: 26px; }
}

.app::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none; z-index: 60;
  background-image: radial-gradient(rgba(246, 240, 228, .035) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .5;
  mix-blend-mode: overlay;
}

/* ---------- 화면 전환 ---------- */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .42s ease, transform .42s cubic-bezier(.2, .7, .3, 1), visibility 0s .42s;
  overflow: hidden;
}
.screen.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .42s ease, transform .42s cubic-bezier(.2, .7, .3, 1), visibility 0s;
}
.screen--result { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* =========================================================
   랜딩
   ========================================================= */
.screen--landing { justify-content: space-between; }

.landing-media { position: absolute; top: 0; left: 0; right: 0; height: 66%; z-index: 0; overflow: hidden; background: #08080a; }
.landing-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  filter: grayscale(.4) sepia(.2) brightness(.6) contrast(1.12) saturate(.85);
  transform: scale(1.01);
  animation: slowZoom 24s ease-out forwards;
}
@keyframes slowZoom { from { transform: scale(1.01); } to { transform: scale(1.07); } }

.landing-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, .86) 0%, rgba(5, 5, 7, .22) 16%, rgba(5, 5, 7, .02) 30%, rgba(5, 5, 7, .3) 58%, rgba(6, 6, 8, .8) 82%, #08080a 100%),
    radial-gradient(75% 50% at 50% 24%, rgba(217, 183, 111, .1) 0%, transparent 70%);
}
.landing-media::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 30%;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0), #08080a 72%);
}
.landing-glow {
  position: absolute; left: 50%; bottom: 8%;
  width: 130%; height: 46%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(217, 183, 111, .16), transparent 72%);
  filter: blur(20px);
}

.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 18px) var(--pad) 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-seal {
  width: 38px; height: 38px; border-radius: 50%;
  overflow: hidden; flex: none;
  border: 1px solid rgba(217, 183, 111, .5);
  box-shadow: 0 0 18px rgba(217, 183, 111, .18), inset 0 0 12px rgba(0, 0, 0, .6);
}
.brand-seal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: var(--serif); font-size: 17px; letter-spacing: .18em; color: var(--gold-2); }
.brand-txt i { font-style: normal; font-size: 9.5px; letter-spacing: .16em; color: var(--paper-3); margin-top: 3px; }

.topbar-year {
  font-size: 10.5px; letter-spacing: .18em; color: var(--paper-3);
  border: 1px solid var(--gold-line); border-radius: 999px;
  padding: 6px 11px; backdrop-filter: blur(4px);
}
.topbar-year b { font-family: var(--serif); color: var(--gold); letter-spacing: .1em; }

.landing-copy { position: relative; z-index: 3; padding: 0 var(--pad); margin-top: auto; padding-bottom: 6px; }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .24em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow-line { width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

.landing-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(27px, 7.6vw, 34px);
  line-height: 1.42; letter-spacing: -.02em;
  margin: 0 0 14px;
  color: #fbf4e6;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .8), 0 1px 2px rgba(0, 0, 0, .6);
}
.landing-title-sub {
  display: block; margin-top: 8px;
  font-size: .78em;
  background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold-2) 42%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.landing-desc { font-size: 13.5px; line-height: 1.75; color: var(--paper-2); }

.landing-cta {
  position: relative; z-index: 3;
  padding: 22px var(--pad) calc(20px + var(--safe-b));
  display: flex; flex-direction: column; gap: 10px;
}

/* ---------- 버튼 ---------- */
.btn {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 56px; padding: 0 22px;
  border-radius: 14px; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .16s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, opacity .2s;
  overflow: hidden;
}
.btn:active { transform: scale(.985); }
.btn .arrow { font-family: var(--sans); font-weight: 400; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--gold {
  color: #1a1305;
  background: linear-gradient(112deg, #efd9a7 0%, #d9b76f 42%, #b98f3f 100%);
  box-shadow: 0 8px 26px rgba(217, 183, 111, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--gold::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 62%);
  transform: translateX(-120%);
}
.btn--gold:hover::after { transform: translateX(120%); transition: transform .8s ease; }

.btn--ghost {
  color: var(--gold-2);
  border: 1px solid rgba(217, 183, 111, .38);
  background: rgba(12, 11, 9, .42);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(217, 183, 111, .68); background: rgba(24, 21, 14, .6); }

.btn[disabled] { opacity: .32; pointer-events: none; }
.btn--gold[disabled] { box-shadow: none; }

.cta-sub {
  margin: -2px 0 0; text-align: center;
  font-family: var(--serif); font-size: 12px; letter-spacing: -.01em; color: var(--paper-3);
}

.trust {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 6px; font-size: 10.5px; letter-spacing: .04em; color: var(--paper-4);
}
.trust i { width: 2px; height: 2px; border-radius: 50%; background: var(--paper-4); }

.last-link {
  margin: 4px auto 0; font-size: 11.5px; color: var(--paper-3);
  border-bottom: 1px solid rgba(246, 240, 228, .18); padding-bottom: 2px;
}

/* =========================================================
   입력 폼
   ========================================================= */
.screen--form { background: radial-gradient(120% 60% at 50% 0%, #171308 0%, #0b0a0c 55%, #08080a 100%); }

.form-head {
  display: flex; align-items: center; gap: 14px;
  padding: calc(var(--safe-t) + 14px) 16px 12px;
  flex: none;
}
.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  color: var(--paper-2); background: rgba(255, 255, 255, .02);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .06); border-color: var(--gold-line); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn--dim { color: var(--paper-4); }

.step-meter { flex: 1; display: flex; align-items: center; gap: 12px; }
.step-label { font-family: var(--serif); font-size: 13px; letter-spacing: .06em; color: var(--gold); min-width: 46px; }
.step-label em { font-style: normal; color: var(--paper-4); font-family: var(--sans); font-size: 11px; }
.step-bar { flex: 1; height: 2px; background: rgba(246, 240, 228, .1); border-radius: 2px; overflow: hidden; }
.step-bar i { display: block; height: 100%; width: 25%; border-radius: 2px; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width .45s cubic-bezier(.2, .7, .3, 1); }

.steps { position: relative; flex: 1; overflow: hidden; }
.steps::before {
  content: ''; position: absolute; left: 50%; bottom: -14%;
  width: 360px; height: 360px; transform: translateX(-50%);
  background: url('../assets/ornament.svg') center / contain no-repeat;
  opacity: .07; pointer-events: none; z-index: 0;
}
.steps::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 210px; height: 210px; transform: translate(-50%, -50%);
  background: url('../assets/ornament.svg') center / contain no-repeat;
  opacity: .04; pointer-events: none; z-index: 0;
}
.step {
  position: absolute; inset: 0;
  padding: 12px var(--pad) 8px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  z-index: 1;
  opacity: 0; visibility: hidden; transform: translateX(22px);
  transition: opacity .34s ease, transform .38s cubic-bezier(.2, .7, .3, 1), visibility 0s .38s;
}
.step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .34s ease, transform .38s cubic-bezier(.2, .7, .3, 1), visibility 0s; }
.step.is-left { transform: translateX(-22px); }

.step-kicker { font-size: 10.5px; letter-spacing: .28em; color: var(--gold-3); margin-bottom: 10px; }
.step-title { font-family: var(--serif); font-size: 25px; line-height: 1.4; margin: 0 0 8px; color: #fbf4e6; letter-spacing: -.01em; }
.step-help { font-size: 12.5px; color: var(--paper-3); line-height: 1.65; margin-bottom: 26px; }

.field { display: block; margin-bottom: 22px; }
.field--plain { margin-top: 4px; }
.field-label { display: block; font-size: 11px; letter-spacing: .16em; color: var(--paper-3); margin-bottom: 9px; }
.field input {
  width: 100%; height: 56px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-size: 17px; letter-spacing: .02em;
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--paper-4); font-size: 15px; }
.field input:focus { border-color: rgba(217, 183, 111, .55); background: rgba(217, 183, 111, .05); box-shadow: 0 0 0 3px rgba(217, 183, 111, .08); }

/* 직접 묻고 싶은 질문 */
.field--ask { position: relative; margin-top: 20px; margin-bottom: 10px; }
.field-label em { font-style: normal; font-size: 9.5px; letter-spacing: .1em; color: var(--gold-3); border: 1px solid var(--gold-line); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.field textarea {
  width: 100%; min-height: 92px; padding: 14px 16px 26px; resize: vertical;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-family: inherit; font-size: 14.5px; line-height: 1.6; letter-spacing: .01em;
  color: #f6f0e4; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea::placeholder { color: var(--paper-4); font-size: 13.5px; }
.field textarea:focus { border-color: rgba(217, 183, 111, .55); background: rgba(217, 183, 111, .05); box-shadow: 0 0 0 3px rgba(217, 183, 111, .08); }
.field-count { position: absolute; right: 14px; bottom: 10px; font-size: 10px; letter-spacing: .06em; color: var(--paper-4); }
.field-count b { color: var(--gold-3); font-weight: 400; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ask-ex {
  font-size: 11px; color: var(--paper-3); text-align: left;
  padding: 7px 11px; border-radius: 999px;
  border: 1px dashed rgba(217, 183, 111, .28); background: rgba(217, 183, 111, .04);
}
.ask-ex:active { color: var(--gold-2); border-color: var(--gold-3); }

.choice-row { display: flex; gap: 10px; }
.choice {
  position: relative; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 62px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  color: var(--paper-2); font-size: 14.5px;
  transition: border-color .2s, background .2s, color .2s, transform .16s;
}
.choice:active { transform: scale(.99); }
.choice-han { font-family: var(--serif); font-size: 16px; color: var(--gold-3); transition: color .2s; }
.choice.is-on {
  border-color: rgba(217, 183, 111, .6);
  background: linear-gradient(160deg, rgba(217, 183, 111, .14), rgba(217, 183, 111, .04));
  color: var(--gold-2);
  box-shadow: inset 0 0 22px rgba(217, 183, 111, .07);
}
.choice.is-on .choice-han { color: var(--gold-2); }
.choice-txt { letter-spacing: -.01em; }
.choice-sub { display: block; font-size: 11px; color: var(--paper-4); margin-top: 3px; }

.fine { font-size: 11px; color: var(--paper-4); margin-top: -6px; }

.segmented {
  display: flex; gap: 4px; padding: 4px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02); margin-bottom: 16px;
}
.seg {
  flex: 1; height: 44px; border-radius: 9px;
  font-size: 14px; color: var(--paper-3);
  transition: background .22s, color .22s;
}
.seg.is-active { background: linear-gradient(160deg, rgba(217, 183, 111, .2), rgba(217, 183, 111, .07)); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(217, 183, 111, .28); }

.switch { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-box {
  width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); position: relative; transition: all .2s; flex: none;
}
.switch-box::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #1a1305; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .18s;
}
.switch input:checked + .switch-box { background: var(--gold); border-color: var(--gold); }
.switch input:checked + .switch-box::after { transform: rotate(45deg) scale(1); }
.switch-txt { font-size: 13px; color: var(--paper-2); }

.date-row { display: flex; gap: 8px; }
.select { position: relative; flex: 1; }
.select select, .select input {
  width: 100%; height: 58px; padding: 0 26px 0 14px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-size: 16px; font-family: var(--serif);
  color: var(--paper);
  appearance: none; outline: none; box-sizing: border-box;
  transition: border-color .2s, background .2s;
}
.select input::placeholder { color: var(--paper-4); opacity: .8; font-size: 14px; }
.select select:focus, .select input:focus { border-color: rgba(217, 183, 111, .5); background: rgba(217, 183, 111, .05); }
.select select option { background: #14141a; color: #f6f0e4; }
.select-unit {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--paper-4); pointer-events: none;
}
.select::after {
  display: none;
}

.hint { font-size: 11.5px; line-height: 1.6; color: var(--paper-4); margin-top: 14px; }
.hint--warn { color: #e0a08f; }

.step-note {
  margin-top: auto; padding: 18px 0 6px;
  font-family: var(--serif); font-size: 12.5px; line-height: 1.75;
  color: rgba(246, 240, 228, .42); letter-spacing: -.01em;
  position: relative; padding-left: 14px;
}
.step-note::before {
  content: ''; position: absolute; left: 0; top: 22px; bottom: 12px;
  width: 1px; background: linear-gradient(180deg, rgba(217, 183, 111, .5), transparent);
}
.step-note b { font-weight: 400; color: var(--gold-3); display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .2em; margin-bottom: 6px; }

.hour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hour {
  min-height: 62px; padding: 8px 4px;
  border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: border-color .2s, background .2s, transform .16s;
}
.hour:active { transform: scale(.98); }
.hour-han { font-family: var(--serif); font-size: 17px; color: var(--paper-2); line-height: 1.2; }
.hour-name { font-size: 10px; color: var(--paper-3); }
.hour-time { font-size: 9px; color: var(--paper-4); letter-spacing: -.02em; }
.hour.is-on { border-color: rgba(217, 183, 111, .6); background: linear-gradient(160deg, rgba(217, 183, 111, .15), rgba(217, 183, 111, .04)); }
.hour.is-on .hour-han { color: var(--gold-2); }
.hour.is-on .hour-time { color: var(--gold-3); }
.choice--wide { flex-direction: column; gap: 0; min-height: 56px; width: 100%; }
.choice--wide.is-on { border-color: rgba(217, 183, 111, .6); }

.concerns { display: grid; gap: 10px; }
.concern {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 16px; text-align: left;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  transition: border-color .2s, background .2s, transform .16s;
}
.concern:active { transform: scale(.99); }
.concern.is-on {
  border-color: rgba(217, 183, 111, .55);
  background: linear-gradient(120deg, rgba(217, 183, 111, .14), rgba(217, 183, 111, .03));
}
.concern-ico {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold-line); color: var(--gold);
  background: radial-gradient(circle at 30% 20%, rgba(217, 183, 111, .18), transparent 70%);
}
.concern-ico svg { width: 20px; height: 20px; }
.concern-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.concern-name { display: block; font-family: var(--serif); font-size: 16.5px; color: #fbf4e6; letter-spacing: .01em; }
.concern-desc { display: block; font-size: 11.5px; color: var(--paper-3); }
.concern-mark {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line);
  flex: none; position: relative;
}
.concern.is-on .concern-mark { border-color: var(--gold); background: var(--gold); }
.concern.is-on .concern-mark::after {
  content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px;
  border: solid #1a1305; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.form-foot {
  flex: none; padding: 12px var(--pad) calc(14px + var(--safe-b));
  background: linear-gradient(180deg, rgba(8, 8, 10, 0) 0%, rgba(8, 8, 10, .92) 30%, var(--ink) 100%);
}
.foot-fine { text-align: center; font-size: 10px; color: rgba(246, 240, 228, .22); margin-top: 10px; }

/* =========================================================
   로딩
   ========================================================= */
.screen--loading {
  justify-content: center; align-items: center;
  background: radial-gradient(70% 50% at 50% 42%, #171208 0%, #0a090b 60%, #08080a 100%);
}
.loading-inner { width: 100%; padding: 0 40px; text-align: center; }
.loading-seal { position: relative; width: 132px; height: 132px; margin: 0 auto 34px; }
.loading-seal img {
  position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px);
  border-radius: 50%; object-fit: cover; transform: scale(1.12);
  opacity: .92; animation: pulseGold 2.6s ease-in-out infinite;
}
@keyframes pulseGold {
  0%, 100% { filter: brightness(.85) drop-shadow(0 0 14px rgba(217, 183, 111, .2)); }
  50% { filter: brightness(1.1) drop-shadow(0 0 26px rgba(217, 183, 111, .45)); }
}
.seal-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(217, 183, 111, .3);
  border-top-color: var(--gold);
  animation: spin 3.6s linear infinite;
}
.seal-ring--2 { inset: 8px; border-color: rgba(217, 183, 111, .14); border-bottom-color: rgba(217, 183, 111, .6); animation-duration: 2.4s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-eyebrow { font-size: 10px; letter-spacing: .3em; color: var(--gold-3); margin-bottom: 12px; }
.loading-title { font-family: var(--serif); font-size: 22px; color: #fbf4e6; margin: 0 0 8px; letter-spacing: .01em; }
.loading-sub { font-size: 12px; color: var(--paper-3); min-height: 20px; }
.loading-bar { height: 2px; background: rgba(246, 240, 228, .1); border-radius: 2px; overflow: hidden; margin: 30px auto 12px; }
.loading-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
.loading-count { font-family: var(--serif); font-size: 12px; color: var(--gold-3); letter-spacing: .12em; }

/* =========================================================
   결과지
   ========================================================= */
.screen--result { background: linear-gradient(180deg, #0b0a0c 0%, #08080a 12%, #08080a 100%); }
#resultBody { padding-bottom: calc(40px + var(--safe-b)); }

.res-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 12px) var(--pad) 12px;
  background: linear-gradient(180deg, rgba(8, 8, 10, .96) 30%, rgba(8, 8, 10, .6) 80%, transparent);
  backdrop-filter: blur(8px);
}
.res-top .brand-txt b { font-size: 14px; }
.res-top .brand-seal { width: 30px; height: 30px; }
.res-link { font-size: 11.5px; color: var(--paper-3); border-bottom: 1px solid rgba(246, 240, 228, .16); padding-bottom: 2px; }

/* 고민 표식 */
.res-concern {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 var(--pad) 2px; padding: 8px 13px;
  border: 1px solid rgba(217, 183, 111, .22); border-radius: 999px;
  background: rgba(217, 183, 111, .06);
}
.res-concern-k { font-size: 9.5px; letter-spacing: .18em; color: var(--paper-4); }
.res-concern b { font-family: var(--serif); font-size: 13px; color: var(--gold-2); }
.res-concern em { font-style: normal; font-size: 10px; color: var(--paper-4); letter-spacing: .02em; }
.chip--key {
  color: #0b0a0c; font-weight: 600; border-color: transparent;
  background: linear-gradient(100deg, var(--gold-3), var(--gold-2));
}
.chip b { font-family: var(--serif); font-size: 12px; }
.eyebrow-key { color: var(--gold-2); font-weight: 600; letter-spacing: .04em; }
.acc-hint { font-size: 11px; color: var(--paper-4); margin: 20px 0 0; letter-spacing: .02em; }

/* 직접 물은 말 */
.qa { margin-top: 14px; padding: 18px; border-radius: var(--r-m); border: 1px solid rgba(217, 183, 111, .26); background: linear-gradient(155deg, rgba(217, 183, 111, .1), rgba(255, 255, 255, .014)); }
.qa-q { margin: 0 0 14px; padding: 12px 14px; border-left: 2px solid var(--gold-3); background: rgba(0, 0, 0, .22); border-radius: 0 8px 8px 0; font-family: var(--serif); font-size: 14px; line-height: 1.7; color: var(--gold-2); white-space: pre-wrap; word-break: keep-all; }
.qa-verdict { font-family: var(--serif); font-size: 15px; line-height: 1.75; color: #fbf4e6; margin-bottom: 6px; }
.qa-block { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line-2); }
.qa-block h4 { margin: 0 0 7px; font-size: 11.5px; letter-spacing: .08em; color: var(--gold); font-weight: 400; }
.qa-block p { font-size: 12.8px; line-height: 1.82; color: var(--paper-2); }
.qa-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.qa-block li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.76; color: var(--paper-2); }
.qa-block li::before { content: "·"; position: absolute; left: 4px; top: 0; color: var(--gold-3); }
.qa-basis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.qa-note { font-size: 10.5px; line-height: 1.6; color: var(--paper-4); margin-top: 12px; }

/* 유료 패키지 시트 */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(4, 4, 6, .74); backdrop-filter: blur(3px); animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  padding: 10px var(--pad) calc(18px + var(--safe-b));
  background: linear-gradient(180deg, #14131a 0%, #0b0a0d 46%, #08080a 100%);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .55);
  animation: sheetUp .3s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes sheetUp { from { transform: translateY(26px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 40px; height: 3px; border-radius: 999px; background: rgba(246, 240, 228, .16); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-timer {
  font-size: 10.5px; letter-spacing: .12em; color: #e8b2a5;
  border: 1px solid rgba(180, 71, 60, .38); background: rgba(180, 71, 60, .12);
  border-radius: 999px; padding: 5px 11px;
}
.sheet-timer b { font-family: var(--serif); font-size: 12.5px; letter-spacing: .06em; color: #f0c4b6; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: var(--paper-3); font-size: 13px; }
.sheet-title { font-family: var(--serif); font-size: 22px; color: #fbf4e6; margin: 14px 0 6px; }
.sheet-desc { font-size: 12px; line-height: 1.65; color: var(--paper-3); }
.pkg-list { display: grid; gap: 9px; margin: 16px 0 14px; }
.pkg {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 15px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .022);
  transition: border-color .2s, background .2s, transform .16s;
}
.pkg:active { transform: scale(.994); }
.pkg.is-on { border-color: rgba(217, 183, 111, .6); background: linear-gradient(120deg, rgba(217, 183, 111, .15), rgba(217, 183, 111, .03)); }
.pkg-badge {
  position: absolute; top: -8px; right: 12px;
  font-size: 9.5px; letter-spacing: .04em; color: #1a1305; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(100deg, var(--gold-3), var(--gold-2));
}
.pkg-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pkg-tag { font-size: 10px; letter-spacing: .14em; color: var(--gold-3); border: 1px solid var(--gold-line); border-radius: 4px; padding: 2px 7px; }
.pkg-off { font-size: 10px; color: #e0a08f; letter-spacing: .04em; }
.pkg-name { display: block; font-family: var(--serif); font-size: 15.5px; color: #fbf4e6; line-height: 1.45; word-break: keep-all; }
.pkg-inc { display: block; font-size: 11.5px; line-height: 1.6; color: var(--paper-3); margin-top: 5px; }
.pkg-price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.pkg-price b { font-family: var(--serif); font-size: 19px; color: var(--gold-2); }
.pkg-price s { font-size: 11px; color: var(--paper-4); }
.sheet-foot { padding-top: 4px; }
.sheet-fine { font-size: 10px; line-height: 1.55; color: var(--paper-4); margin-top: 9px; text-align: center; }
body.sheet-open .screen--result { overflow: hidden; }

/* hero */
.hero { padding: 20px var(--pad) 8px; position: relative; }
.hero-eyebrow { font-size: 11px; letter-spacing: .18em; color: var(--gold-3); margin-bottom: 14px; }
.hero-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(31px, 9vw, 39px);
  line-height: 1.34; margin: 0 0 14px; color: #fbf4e6; letter-spacing: -.025em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-3), var(--gold-2) 45%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 13px; color: var(--paper-2); line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
  font-size: 11px; letter-spacing: .02em; color: var(--gold-2);
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(217, 183, 111, .3);
  background: rgba(217, 183, 111, .06);
}
.hero-quote {
  margin-top: 22px; padding: 16px 18px;
  border-left: 2px solid var(--gold-3);
  background: linear-gradient(90deg, rgba(217, 183, 111, .07), transparent);
  font-family: var(--serif); font-size: 14px; line-height: 1.75; color: var(--gold-2);
}

/* 섹션 공통 */
.section { padding: 34px var(--pad) 0; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.sec-num {
  font-family: var(--serif); font-size: 11px; color: var(--gold-3);
  border: 1px solid var(--gold-line); border-radius: 4px;
  width: 22px; height: 22px; display: grid; place-items: center; flex: none;
  transform: translateY(2px);
}
.sec-kicker { font-size: 10px; letter-spacing: .24em; color: var(--gold-3); }
.sec-title { font-family: var(--serif); font-size: 21px; color: #fbf4e6; margin: 8px 0 4px; letter-spacing: -.01em; }
.sec-desc { font-size: 12px; color: var(--paper-3); line-height: 1.7; margin-bottom: 20px; }
.card {
  border-radius: var(--r-m); border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  padding: 18px;
}
.card + .card { margin-top: 10px; }
.card-t { font-size: 12px; letter-spacing: .1em; color: var(--gold); margin-bottom: 9px; }
.card p { font-size: 13px; line-height: 1.78; color: var(--paper-2); }
.card p + p { margin-top: 8px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* 원국 */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pillar {
  position: relative; text-align: center;
  padding: 12px 4px 10px; border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .008));
}
.pillar--day { border-color: rgba(217, 183, 111, .48); background: linear-gradient(180deg, rgba(217, 183, 111, .12), rgba(217, 183, 111, .02)); box-shadow: 0 0 24px rgba(217, 183, 111, .08); }
.pillar-head { font-size: 10px; letter-spacing: .14em; color: var(--paper-3); margin-bottom: 10px; }
.pillar-head b { font-family: var(--serif); color: var(--paper-2); font-weight: 400; display: block; font-size: 9px; letter-spacing: .2em; margin-top: 2px; opacity: .6; }
.pillar-char { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: #fbf4e6; }
.pillar-char small { display: block; font-family: var(--sans); font-size: 9px; color: var(--paper-4); letter-spacing: .1em; margin-top: 1px; }
.pillar-el {
  display: inline-block; margin-top: 6px; font-size: 9px; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 4px;
  color: var(--el); background: var(--el-soft); border: 1px solid var(--el-dim, rgba(255, 255, 255, .1));
}
.pillar-god { font-size: 9.5px; color: var(--paper-3); margin-top: 6px; letter-spacing: -.01em; }
.pillar-div { height: 1px; background: var(--line-2); margin: 8px 6px; }
.pillar-nayin { font-size: 8.5px; color: var(--paper-4); margin-top: 8px; letter-spacing: -.02em; }
.pillar-tag {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  font-size: 8px; letter-spacing: .1em; padding: 2px 7px; border-radius: 999px;
  background: var(--gold); color: #1a1305; font-weight: 600;
}
.pillar--empty .pillar-char { color: var(--paper-4); }

.hidden-row { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.hidden-row span { font-size: 8px; color: var(--paper-4); letter-spacing: .04em; }

.pillar-note { font-size: 11px; color: var(--paper-4); margin-top: 12px; text-align: center; line-height: 1.6; }

/* 오행 */
.elem-stack { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 4px 0 18px; border: 1px solid var(--line-2); }
.elem-stack i { display: block; height: 100%; transition: width 1s cubic-bezier(.2, .7, .3, 1); }
.elem-list { display: grid; gap: 9px; }
.elem-row { display: grid; grid-template-columns: 42px 1fr 34px; align-items: center; gap: 10px; }
.elem-name { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--paper-2); }
.elem-dot { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.elem-name small { color: var(--paper-4); font-size: 10px; }
.elem-track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.elem-track i { display: block; height: 100%; border-radius: 3px; width: 0; transition: width 1.1s cubic-bezier(.2, .7, .3, 1); }
.elem-pct { text-align: right; font-family: var(--serif); font-size: 12px; color: var(--paper-2); }

.elem-comment { margin-top: 16px; font-size: 12px; line-height: 1.72; color: var(--paper-3); }
.elem-comment b { color: var(--gold-2); font-weight: 400; }

/* 2027 총운 */
.year-card { position: relative; overflow: hidden; }
.year-top { display: flex; align-items: flex-start; gap: 16px; }
.gauge { position: relative; width: 76px; height: 76px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 4; }
.gauge .track { stroke: rgba(246, 240, 228, .1); }
.gauge .val { stroke: url(#goldGrad); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .7, .3, 1); }
.gauge-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-txt b { font-family: var(--serif); font-size: 21px; color: var(--gold-2); line-height: 1; }
.gauge-txt span { font-size: 8px; letter-spacing: .12em; color: var(--paper-4); margin-top: 3px; }
.year-main { flex: 1; }
.year-label { font-size: 10.5px; letter-spacing: .16em; color: var(--gold-3); margin-bottom: 6px; }
.year-title { font-family: var(--serif); font-size: 19px; color: #fbf4e6; line-height: 1.4; }
.year-gods { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.god-badge {
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--paper-3);
}
.god-badge--good { border-color: rgba(127, 196, 154, .4); color: var(--green); }
.god-badge--warn { border-color: rgba(180, 71, 60, .45); color: #e0917f; }
.god-badge--mid { border-color: rgba(217, 183, 111, .35); color: var(--gold-2); }
.year-body { margin-top: 16px; font-size: 13px; line-height: 1.82; color: var(--paper-2); }
.year-body strong { color: var(--gold-2); font-weight: 400; }
.year-split { display: grid; gap: 10px; margin-top: 14px; }
.year-item { padding: 13px 15px; border-radius: 11px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2); }
.year-item h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .1em; color: var(--gold); font-weight: 400; }
.year-item p { font-size: 12.5px; line-height: 1.72; color: var(--paper-2); }
.year-item--warn { border-color: rgba(180, 71, 60, .3); background: rgba(180, 71, 60, .06); }
.year-item--warn h4 { color: #e0a08f; }

/* 고민 */
.concern-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.concern-title .kicker { font-size: 10px; letter-spacing: .2em; color: var(--gold-3); }
.blocks { margin-top: 14px; }
.block { padding: 16px 0; border-top: 1px solid var(--line-2); }
.block:first-child { border-top: 0; padding-top: 4px; }
.block h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; color: var(--gold); font-weight: 400; }
.block p { font-size: 13px; line-height: 1.82; color: var(--paper-2); }
.block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.block li { position: relative; padding-left: 18px; font-size: 12.5px; line-height: 1.72; color: var(--paper-2); }
.block li::before {
  content: ''; position: absolute; left: 2px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-3); box-shadow: 0 0 8px rgba(217, 183, 111, .5);
}

.accordion { margin-top: 14px; display: grid; gap: 8px; }
.acc-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .018); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-size: 13px; color: var(--paper-2); text-align: left; }
.acc-btn .acc-plus { color: var(--gold-3); font-size: 16px; line-height: 1; transition: transform .25s; }
.acc-item.is-open .acc-plus { transform: rotate(45deg); }
.acc-body { display: none; padding: 0 16px 16px; font-size: 12.5px; line-height: 1.76; color: var(--paper-3); }
.acc-item.is-open .acc-body { display: block; }
.acc-body b { color: var(--paper-2); font-weight: 400; }

/* 금전운 */
.money-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.money-index { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold-2); }
.money-index small { font-size: 11px; font-family: var(--sans); color: var(--paper-4); letter-spacing: .1em; margin-left: 3px; }
.money-index-cap { font-size: 10.5px; letter-spacing: .16em; color: var(--paper-4); margin-top: 6px; }
.money-note { font-size: 11.5px; color: var(--paper-3); text-align: right; line-height: 1.6; max-width: 46%; }

.chart {
  display: flex; align-items: flex-end; gap: 5px;
  height: 150px; padding: 8px 0 0; margin: 8px 0 0;
  border-bottom: 1px solid var(--line-2);
}
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; cursor: pointer; }
.bar-val { font-family: var(--serif); font-size: 8.5px; color: var(--paper-4); margin-bottom: 4px; opacity: 0; transition: opacity .2s; }
.bar-col.is-on .bar-val { opacity: 1; color: var(--gold-2); }
.bar {
  width: 100%; max-width: 22px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(217, 183, 111, .55), rgba(217, 183, 111, .16));
  height: 4px; transition: height 1s cubic-bezier(.2, .7, .3, 1), background .25s;
  position: relative;
}
.bar-col.is-best .bar { background: linear-gradient(180deg, #f2dfb4, var(--gold-3)); box-shadow: 0 0 16px rgba(217, 183, 111, .35); }
.bar-col.is-worst .bar { background: linear-gradient(180deg, rgba(224, 112, 95, .85), rgba(180, 71, 60, .28)); }
.bar-col.is-on .bar { filter: brightness(1.18); }
.bar-col.is-on::after {
  content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 100%; height: 1px; background: var(--gold-2);
}
.bar-x { display: flex; gap: 5px; margin-top: 8px; }
.bar-x span { flex: 1; text-align: center; font-size: 9.5px; color: var(--paper-4); letter-spacing: -.02em; }
.bar-x span.is-best { color: var(--gold-2); }
.bar-x span.is-worst { color: #e0a08f; }

.month-detail {
  margin-top: 14px; padding: 15px 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(217, 183, 111, .08), rgba(255, 255, 255, .015));
  min-height: 92px;
  animation: fadeUp .35s ease both;
}
.month-detail[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chart-hint { font-size: 10.5px; color: var(--paper-4); margin-top: 18px; letter-spacing: -.01em; }
.md-gods { display: flex; gap: 5px; margin-bottom: 8px; }
.md-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.md-top b { font-family: var(--serif); font-size: 17px; color: var(--gold-2); }
.md-top span { font-size: 11px; color: var(--paper-4); }
.md-line { font-size: 12.5px; line-height: 1.7; color: var(--paper-2); }
.md-lucky { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.md-lucky span { font-size: 10.5px; color: var(--gold-2); border: 1px solid rgba(217, 183, 111, .28); border-radius: 999px; padding: 3px 8px; }

.best-grid { display: grid; gap: 10px; margin-top: 18px; }
.best-card {
  padding: 16px; border-radius: 13px;
  border: 1px solid rgba(217, 183, 111, .28);
  background: linear-gradient(150deg, rgba(217, 183, 111, .1), rgba(217, 183, 111, .015));
}
.best-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.best-top b { font-family: var(--serif); font-size: 17px; color: var(--gold-2); }
.best-top em { font-style: normal; font-size: 10px; letter-spacing: .1em; color: var(--gold-3); border: 1px solid var(--gold-line); border-radius: 999px; padding: 3px 8px; }
.best-range { font-size: 11px; color: var(--paper-4); margin-bottom: 8px; }
.best-line { font-size: 12.5px; line-height: 1.7; color: var(--paper-2); }
.lucky-title { margin-top: 12px; font-size: 10.5px; letter-spacing: .14em; color: var(--gold-3); }
.lucky-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.lucky {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(217, 183, 111, .1); border: 1px solid rgba(217, 183, 111, .2);
  font-size: 11.5px; color: var(--gold-2);
}
.lucky i { font-style: normal; font-size: 9px; color: var(--paper-4); }
.worst-card {
  margin-top: 10px; padding: 15px 16px; border-radius: 12px;
  border: 1px solid rgba(180, 71, 60, .3); background: rgba(180, 71, 60, .07);
}
.worst-card b { font-family: var(--serif); font-size: 15px; color: #e8b2a5; }
.worst-card p { font-size: 12px; line-height: 1.7; color: var(--paper-2); margin-top: 5px; }

/* 개운 */
.presc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.presc-el {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; color: var(--el);
  background: var(--el-soft); border: 1px solid var(--el-dim);
  box-shadow: 0 0 24px var(--el-soft);
}
.presc-head b { font-family: var(--serif); font-size: 17px; color: #fbf4e6; display: block; }
.presc-head span { font-size: 11.5px; color: var(--paper-3); }
.presc-why { font-size: 12.5px; line-height: 1.78; color: var(--paper-2); margin-bottom: 16px; }
.presc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.presc-tile {
  padding: 13px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .022);
}
.presc-tile h5 { margin: 0 0 5px; font-size: 9.5px; letter-spacing: .16em; color: var(--gold-3); font-weight: 400; }
.presc-tile p { font-size: 12px; line-height: 1.55; color: var(--paper-2); }
.swatches { display: flex; gap: 4px; margin-top: 6px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); }
.presc-three { margin-top: 16px; }
.presc-three h4 { font-size: 11px; letter-spacing: .12em; color: var(--gold); font-weight: 400; margin: 0 0 10px; }
.presc-three ol { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 9px; }
.presc-three li { counter-increment: p; position: relative; padding-left: 26px; font-size: 12.5px; line-height: 1.7; color: var(--paper-2); }
.presc-three li::before {
  content: counter(p); position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9.5px; color: var(--gold-2);
  border: 1px solid var(--gold-line);
}

/* 대운 */
.daewoon-note { font-size: 11.5px; line-height: 1.7; color: var(--paper-4); margin-bottom: 14px; }
.dw-list { display: grid; gap: 6px; }
.dw-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .015);
}
.dw-row.is-now {
  border-color: rgba(217, 183, 111, .45);
  background: linear-gradient(90deg, rgba(217, 183, 111, .12), rgba(217, 183, 111, .02));
}
.dw-years { font-size: 11.5px; color: var(--paper-3); }
.dw-years b { display: block; font-family: var(--serif); font-size: 13px; color: var(--paper-2); font-weight: 400; }
.dw-gz { font-family: var(--serif); font-size: 15px; color: var(--gold-2); letter-spacing: .06em; }
.dw-gz small { font-family: var(--sans); font-size: 9px; color: var(--paper-4); display: block; text-align: center; letter-spacing: 0; }
.dw-els { display: flex; gap: 6px; justify-content: flex-end; }
.dw-els i { width: 8px; height: 8px; border-radius: 2px; }
.el-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px 3px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: 10.5px; color: var(--paper-2); letter-spacing: .02em;
}
.el-tag i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.el-tag b { font-weight: 400; font-family: var(--serif); font-size: 11px; }
.el-tag small { font-size: 8.5px; color: var(--paper-4); letter-spacing: 0; }
.dw-legend {
  margin: -2px 0 14px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
  font-size: 11.5px; line-height: 1.7; color: var(--paper-3);
}
.dw-now-tag { font-size: 8.5px; letter-spacing: .1em; color: #1a1305; background: var(--gold); padding: 2px 6px; border-radius: 999px; }

/* 만세력 검증 */
.verify { border-top: 1px solid var(--line-2); margin-top: 34px; }
.verify-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 12px; color: var(--paper-3); }
.verify-body { display: none; padding-bottom: 10px; }
.verify.is-open .verify-body { display: block; }
.verify-body dl { margin: 0; display: grid; gap: 8px; }
.verify-body dt { font-size: 10px; letter-spacing: .12em; color: var(--gold-3); }
.verify-body dd { margin: 2px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--paper-3); }
.verify-body p { font-size: 10.5px; color: var(--paper-4); line-height: 1.7; margin-top: 12px; }

/* 마무리 */
.closing { padding: 38px var(--pad) 0; text-align: center; }
.closing-seal { width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 1px solid var(--gold-line); }
.closing-seal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.closing-quote { font-family: var(--serif); font-size: 15px; line-height: 1.9; color: var(--gold-2); }
.closing-sign { font-size: 10px; letter-spacing: .22em; color: var(--paper-4); margin-top: 14px; }
.closing-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; }
.btn--sm { min-height: 48px; font-size: 13px; padding: 0 16px; justify-content: center; gap: 7px; border-radius: 11px; }
.disclaimer { font-size: 10px; line-height: 1.8; color: rgba(246, 240, 228, .28); padding: 26px var(--pad) 0; text-align: center; }

/* =========================================================
   유료 전환 (PAYWALL_ENABLED = true 일 때)
   ========================================================= */
.gate { position: relative; }
.gate.is-locked > .gate-inner {
  max-height: 190px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 100%);
  filter: blur(.6px);
  pointer-events: none; user-select: none;
}
.gate-lock { display: none; padding: 14px 18px 4px; text-align: center; }
.gate.is-locked > .gate-lock { display: block; }
.gate-lock--compact { padding: 16px 0 4px; display: none; }
.gate.is-locked > .gate-lock--compact { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lock-line { font-size: 10.5px; letter-spacing: .02em; color: var(--paper-3); }
.lock-link { font-size: 11.5px; color: var(--gold-2); border-bottom: 1px solid rgba(217, 183, 111, .45); padding-bottom: 1px; }
.gate-lock .lock-badge {
  display: inline-flex;align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .16em; color: var(--gold);
  border: 1px solid var(--gold-line); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px;
}
.gate-lock h4 { font-family: var(--serif); font-size: 17px; color: #fbf4e6; margin: 0 0 8px; }
.gate-lock p { font-size: 12px; line-height: 1.7; color: var(--paper-3); margin-bottom: 16px; }
.gate-lock .btn { max-width: 100%; }

/* 잠금 카드 티저 */
.gate-lock .tease {
  margin: 4px 0 12px; padding: 12px 14px; list-style: none;
  border-radius: 10px; border: 1px dashed rgba(217, 183, 111, .26);
  background: rgba(0, 0, 0, .22); text-align: left;
  display: grid; gap: 7px;
}
.gate-lock .tease li { font-size: 12px; line-height: 1.6; color: var(--paper-2); letter-spacing: -.01em; }
.gate-lock .tease b {
  font-weight: 400; letter-spacing: .06em;
  color: rgba(246, 240, 228, .34);
  padding: 1px 3px; border-radius: 3px;
  background: rgba(246, 240, 228, .07);
}
.gate-lock .lock-note { margin-bottom: 14px; }

/* =========================================================
   토스트
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: rgba(24, 21, 14, .96); border: 1px solid var(--gold-line);
  color: var(--gold-2); font-size: 12.5px; padding: 12px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 99;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6); max-width: 88vw; text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   접근성 · 모션
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid rgba(217, 183, 111, .7); outline-offset: 2px; }

/* 아주 작은 화면 */
@media (max-height: 700px) {
  .landing-title { font-size: 26px; }
  .landing-desc { font-size: 12.5px; }
  .btn { min-height: 50px; }
  .hour { min-height: 56px; }
}
