@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700;900&display=swap');

:root {
  --bg: #F6F1E7;
  --card: #FFFDF8;
  --ink: #2B2926;
  --ink-soft: #716B63;
  --ink-faint: #A39C90;
  --accent: #8C3F2B;
  --accent-2: #8DAA9D;
  --line: #D8CEC0;
  --radius: 14px;

  /* 오행 point colors, per 일간 */
  --gan-갑목: #4C7A4A;
  --gan-을목: #7FAA6C;
  --gan-병화: #D9622B;
  --gan-정화: #E0955A;
  --gan-무토: #A97C50;
  --gan-기토: #C7A868;
  --gan-경금: #8C8F94;
  --gan-신금: #B0A99B;
  --gan-임수: #3E6E8C;
  --gan-계수: #7D97A6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 480px; margin: 0 auto; padding: 28px 20px 80px; }
@media (min-width: 560px) { .shell { max-width: 520px; } }

.serif { font-family: 'Noto Serif KR', serif; }

/* ---------- masthead (question/birth flow header) ---------- */
.masthead { text-align: center; margin-bottom: 20px; }
.kicker {
  font-size: 0.72rem; letter-spacing: 0.14em; color: var(--accent);
  font-weight: 600; margin-bottom: 6px; text-transform: uppercase;
}
.masthead h1 {
  font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 1.7rem; margin: 0 0 6px; color: var(--ink);
}
.masthead .sub { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

/* ---------- intro / hero screen ---------- */
.intro-screen { text-align: center; padding: 8px 0 0; }

.jar-icon { display: block; margin: 0 auto 10px; }
.jar-outline { fill: none; stroke: var(--line); stroke-width: 1.6; }
.jar-char { font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 27px; }
.intro-title {
  font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 2.1rem; margin: 0 0 12px; color: var(--ink);
}
.intro-desc { color: var(--ink-soft); font-size: 0.95rem; margin: 0 auto 32px; max-width: 34ch; }
.intro-cta {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  font-size: 1rem; font-weight: 700; padding: 15px 36px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(140, 63, 43, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.intro-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(140, 63, 43, 0.32); }
.intro-footnote { font-size: 0.76rem; color: var(--ink-faint); margin: 22px 0 0; }
.catalog-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
  background: transparent; border: none; color: var(--ink-soft); font-size: 0.86rem;
  font-weight: 600; cursor: pointer; padding: 8px 4px; font-family: inherit;
  border-bottom: 1px solid var(--line);
}
.catalog-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- catalog (술창고) ---------- */
.catalog-screen { padding-top: 4px; }
.catalog-header h2 { font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 1.35rem; margin: 0 0 6px; }
.catalog-search { margin: 4px 0 18px; }

.mode-tabs { display: flex; gap: 6px; margin: 18px 0 20px; border-bottom: 1px solid var(--line); }
.mode-tab {
  flex: 1; padding: 10px 8px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s;
}
.mode-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.filter-group { margin-bottom: 16px; }
.filter-title { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.filter-subtitle { font-size: 0.76rem; font-weight: 600; color: var(--ink-faint); margin: 10px 0 6px; }
.filter-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip-row.active-tag-row { margin-bottom: 10px; }
.filter-chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft); font-size: 0.82rem; cursor: pointer;
  font-family: inherit; transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--accent-2); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.filter-chip-more { background: transparent; border-style: dashed; color: var(--accent); }

.tag-category-list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.tag-category-label { font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.tag-category-count { font-weight: 500; color: var(--ink-faint); font-size: 0.74rem; }

.catalog-count { font-size: 0.82rem; color: var(--ink-faint); margin: 18px 0 12px; }

.catalog-cat-block { margin-bottom: 24px; }
.catalog-cat-title {
  font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 1.05rem;
  margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px;
}
.catalog-cat-count { font-family: 'Pretendard', sans-serif; font-size: 0.78rem; font-weight: 500; color: var(--ink-faint); }

.catalog-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.catalog-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.catalog-card-head { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--ink-faint); margin-bottom: 4px; }
.catalog-card-cat { font-weight: 700; color: var(--accent); }
.catalog-card .liquor-name { font-size: 1.05rem; margin-bottom: 2px; }
.catalog-card .liquor-meta { margin-bottom: 8px; }
.catalog-card .liquor-links { margin-top: 10px; }
.intro-seal {
  width: 34px; height: 34px; border-radius: 6px; background: var(--accent);
  color: #fff; font-family: 'Noto Serif KR', serif; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; opacity: 0.9;
}

/* ---------- progress bar ---------- */
.progress-wrap { margin: 0 0 24px; }
.progress-bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.2s ease; }
.progress-label { text-align: right; font-size: 0.74rem; color: var(--ink-faint); margin: 6px 2px 0; letter-spacing: 0.03em; }

/* ---------- generic card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.step-card h2 { font-family: 'Noto Serif KR', serif; font-weight: 700; margin-top: 0; font-size: 1.15rem; }
.hint { color: var(--ink-soft); font-size: 0.86rem; margin: 4px 0; }
.error { color: var(--accent); font-size: 0.88rem; }

.date-input {
  width: 100%; padding: 13px; font-size: 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  margin: 12px 0; font-family: inherit;
}
.time-input {
  width: 100%; padding: 13px; font-size: 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  margin: 0 0 12px; font-family: inherit;
}
.field-label { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); margin: 14px 0 4px; }

.privacy-note { font-size: 0.78rem; color: var(--ink-faint); margin: 4px 0 12px; }

/* ---------- question / choice cards (vertical, emoji-led) ---------- */
.question-card { min-height: 0; display: flex; flex-direction: column; }
.qtext-solo { font-family: 'Noto Serif KR', serif; font-size: 1.2rem; font-weight: 700; margin: 4px 0 22px; text-align: left; line-height: 1.4; }

.opt-col { display: flex; flex-direction: column; gap: 10px; }
.opt-btn-v {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 0.95rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.opt-btn-v:hover { border-color: var(--accent-2); background: #FFFDF8; }
.opt-btn-v.active { background: #FBF0EA; border-color: var(--accent); color: var(--accent); font-weight: 700; }
.opt-emoji { font-size: 1.25rem; line-height: 1; flex-shrink: 0; width: 22px; text-align: center; }
.opt-label { flex: 1; }
.opt-check { font-size: 1rem; color: var(--accent); flex-shrink: 0; opacity: 0; transition: opacity 0.15s; }
.opt-btn-v.active .opt-check { opacity: 1; }

/* 복수 선택(안주) 화면임을 분명히 알려주는 배지 — 단일 선택 화면과 헷갈리지 않도록
   체크박스(☐/☑) 아이콘을 항상 보여주고, 상단에 안내 문구를 따로 둔다. */
.multi-badge {
  display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600;
  color: var(--accent); background: #FBF0EA; border: 1px solid #EED9CC;
  border-radius: 10px; padding: 9px 13px; margin: -6px 0 18px;
}
.multi-badge-icon { font-size: 0.95rem; }
.opt-checkbox { font-size: 1.15rem; line-height: 1; flex-shrink: 0; width: 22px; text-align: center; color: var(--ink-faint); }
.opt-btn-v-multi.active .opt-checkbox { color: var(--accent); }

.question-card .nav-row { margin-top: 26px; }
.nav-row-single { justify-content: flex-start !important; }

.qblock { margin: 20px 0; }
.qtext { font-weight: 700; margin-bottom: 12px; font-family: 'Noto Serif KR', serif; font-size: 1.05rem; }

.nav-row { display: flex; justify-content: space-between; margin-top: 24px; gap: 10px; }
.btn-primary, .btn-secondary {
  padding: 12px 24px; border-radius: 10px; font-size: 0.95rem; cursor: pointer; border: none;
  font-family: inherit; font-weight: 600;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-primary:disabled {
  background: var(--line); color: var(--ink-faint); cursor: not-allowed;
}

/* ---------- results ---------- */
.results { display: flex; flex-direction: column; gap: 6px; }
.group-title {
  font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 1.15rem;
  margin: 26px 0 12px;
}

/* hero result card: giant hanja */
.pillar-hero { text-align: center; padding: 32px 20px 28px; }
.pillar-eyebrow { font-size: 0.76rem; letter-spacing: 0.12em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 10px; }
.pillar-hanja {
  font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 4.4rem; line-height: 1;
  margin: 0 0 10px; letter-spacing: 0.02em;
}
.pillar-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.pillar-name .hanja-sm { color: var(--ink-faint); font-weight: 400; margin-left: 6px; font-size: 0.95rem; }
.pillar-tagline { color: var(--ink-soft); font-size: 0.94rem; margin: 0 0 16px; }
.pillar-info-line { font-size: 0.82rem; color: var(--ink-faint); margin: 0 0 16px; }

.badge-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: #fff;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.75); }

.character-card { padding: 22px 24px; }
.character-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.character-title { font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 1.02rem; }
.profile-desc { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }

.tengan-icon { display: block; }
.ti-fill { fill: var(--accent); stroke: var(--accent); stroke-width: 1.2; opacity: 0.9; }
.ti-flame { fill: #E8B04B; stroke: var(--accent); stroke-width: 0.6; }
.ti-trunk { stroke: var(--accent); stroke-width: 2; }
.ti-rim { stroke: var(--accent); stroke-width: 1.5; }
.ti-snow { fill: #F6F1E7; }
.ti-ray { stroke: #E8B04B; stroke-width: 2.2; stroke-linecap: round; }
.ti-blade { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; }
.ti-facet { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.5; }
.ti-blade-line { stroke: var(--ink-soft); stroke-width: 2.4; stroke-linecap: round; }
.ti-hilt { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.ti-wave { fill: none; stroke: var(--accent-2); stroke-width: 1.8; }
.ti-mist { fill: none; stroke: var(--ink-faint); stroke-width: 1.8; opacity: 0.75; }

.profile-chart { display: flex; justify-content: center; margin-top: 14px; }
.radar-chart { max-width: 100%; height: auto; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis-line { stroke: var(--line); stroke-width: 1; }
.radar-value { fill: rgba(140, 63, 43, 0.18); stroke: var(--accent); stroke-width: 2; }
.radar-dot { fill: var(--accent); }
.radar-label { font-size: 11px; fill: var(--ink-soft); }

/* ---------- recommendation cards (stacked) ---------- */
.rec-stack { display: flex; flex-direction: column; gap: 18px; }
.rec-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; position: relative; overflow: hidden;
}
.rec-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
}
.rec-card.accent-a::before { background: var(--gan-병화); }
.rec-card.accent-c::before { background: var(--accent-2); }
.rec-label { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; }
.liquor-name { font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 6px; }
.liquor-explain { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; margin: 10px 0 14px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chip {
  font-size: 0.76rem; font-weight: 600; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}

.liquor-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.liquor-link {
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  transition: opacity 0.15s;
}
.liquor-link:hover { opacity: 0.75; }
.liquor-link-buy { background: var(--accent); color: #fff; border-color: var(--accent); }
.liquor-link-info { background: transparent; color: var(--ink-soft); }

.disclaimer { font-size: 0.78rem; color: var(--ink-faint); text-align: center; margin: 26px 0; }

.result-actions { display: flex; gap: 10px; }
.result-actions .btn-primary,
.result-actions .btn-secondary { flex: 1; text-align: center; }
.share-toast { font-size: 0.85rem; color: var(--accent-2); text-align: center; margin: 10px 0 0; }
.share-toast-error { color: var(--accent); }

/* ==========================================================
   2026 redesign — 밤의 주막 / contemporary Korean nocturne
   ========================================================== */
:root {
  --bg: #09080c;
  --bg-raised: #111015;
  --card: rgba(20, 18, 23, 0.86);
  --card-solid: #151319;
  --ink: #f2ece1;
  --ink-soft: #aaa2a7;
  --ink-faint: #706a71;
  --accent: #c46b43;
  --accent-bright: #e08a5f;
  --accent-2: #7e9d84;
  --gold: #bf9a69;
  --line: rgba(236, 220, 202, 0.12);
  --line-strong: rgba(236, 220, 202, 0.23);
  --radius: 24px;
  --serif: 'Noto Serif KR', Georgia, serif;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  --gan-갑목: #72a276;
  --gan-을목: #8fb58a;
  --gan-병화: #d86c45;
  --gan-정화: #d98b62;
  --gan-무토: #b18a61;
  --gan-기토: #c2a36d;
  --gan-경금: #9da1a5;
  --gan-신금: #c0b7a8;
  --gan-임수: #5d88a4;
  --gan-계수: #8299aa;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 16%, rgba(111, 55, 39, 0.16), transparent 30rem),
    radial-gradient(circle at 86% 78%, rgba(53, 77, 66, 0.13), transparent 32rem),
    linear-gradient(145deg, #09080c 0%, #0b0a0f 48%, #08080b 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  color-scheme: dark;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .26;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.shell {
  width: min(100%, 1180px);
  max-width: none;
  margin: 0 auto;
  padding: 34px 34px 100px;
}

.serif, .masthead h1, .intro-title, .card h2, .group-title,
.catalog-header h2, .catalog-cat-title, .liquor-name, .pillar-hanja {
  font-family: var(--serif);
}

/* intro */
.intro-screen { text-align: left; padding: 0; }

.intro-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin-bottom: 48px;
  animation: fade-down .8s ease both;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(196, 107, 67, .65);
  border-radius: 50%;
  color: var(--accent-bright);
  font-size: .85rem;
}

.nav-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font: 600 .82rem var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}
.nav-store:hover { color: var(--ink); border-color: var(--accent); }

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  min-height: 58px;
  margin: 0 auto 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  animation: fade-down .65s ease both;
}
.result-brand {
  padding: 4px 8px 4px 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.result-brand .brand-seal { transition: transform .25s, border-color .25s, background .25s; }
.result-brand:hover .brand-seal { transform: rotate(-8deg); border-color: var(--accent-bright); background: rgba(196,107,67,.09); }
.result-brand:hover { color: #fff8ed; }

.intro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  min-height: min(690px, calc(100vh - 190px));
}

.intro-art {
  --mx: 0;
  --my: 0;
  position: relative;
  aspect-ratio: 1;
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: 42% 42% 48% 48% / 38% 38% 54% 54%;
  background: rgba(22, 17, 19, .58);
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(154, 90, 57, .09), 0 40px 100px rgba(0, 0, 0, .38);
  animation: art-in 1.1s cubic-bezier(.2,.8,.2,1) both;
}

.intro-art::before {
  content: '';
  position: absolute;
  inset: 6%;
  z-index: 2;
  border: 1px solid rgba(225, 197, 164, .11);
  border-radius: 50%;
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}

.intro-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.045) translate(calc(var(--mx) * -8px), calc(var(--my) * -8px));
  filter: saturate(.78) contrast(1.08) brightness(.82);
  opacity: .94;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

.art-halo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(227, 170, 118, .18);
  border-radius: 50%;
  transform: translate(calc(-50% + var(--mx) * 10px), calc(-50% + var(--my) * 10px));
  box-shadow: 0 0 60px rgba(186, 100, 59, .11), inset 0 0 60px rgba(186, 100, 59, .08);
  pointer-events: none;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

.gan-orbit {
  position: absolute;
  z-index: 4;
  inset: 9%;
  border: 1px solid rgba(226, 208, 188, .2);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(0,0,0,.3), 0 0 55px rgba(196,107,67,.07);
}
.gan-orbit::before, .gan-orbit::after { content: ''; position: absolute; inset: 12%; border: 1px solid rgba(226,208,188,.13); border-radius: 50%; }
.gan-orbit::after { inset: 25%; border-style: dashed; animation: orbit-spin 34s linear infinite; }
.gan-orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(236,220,202,.24);
  border-radius: 50%;
  background: rgba(8,7,10,.78);
  color: #d7c7b5;
  box-shadow: 0 6px 20px rgba(0,0,0,.36);
  font: 500 1rem var(--serif);
  transform: translate(-50%, -50%);
  animation: stem-glow 10s ease-in-out infinite;
}
.gan-orbit span:nth-child(1) { left: 50%; top: 0; animation-delay: 0s; }
.gan-orbit span:nth-child(2) { left: 78%; top: 9%; animation-delay: 1s; }
.gan-orbit span:nth-child(3) { left: 96%; top: 32%; animation-delay: 2s; }
.gan-orbit span:nth-child(4) { left: 96%; top: 68%; animation-delay: 3s; }
.gan-orbit span:nth-child(5) { left: 78%; top: 91%; animation-delay: 4s; }
.gan-orbit span:nth-child(6) { left: 50%; top: 100%; animation-delay: 5s; }
.gan-orbit span:nth-child(7) { left: 22%; top: 91%; animation-delay: 6s; }
.gan-orbit span:nth-child(8) { left: 4%; top: 68%; animation-delay: 7s; }
.gan-orbit span:nth-child(9) { left: 4%; top: 32%; animation-delay: 8s; }
.gan-orbit span:nth-child(10) { left: 22%; top: 9%; animation-delay: 9s; }

.day-pillar-core {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 25.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 21%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(224,138,95,.42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,14,14,.52), rgba(8,7,10,.2) 70%, transparent 71%);
  box-shadow: 0 0 34px rgba(196,107,67,.14), inset 0 0 22px rgba(191,154,105,.06);
}
.day-pillar-core small { color: #b7aaa0; font: 600 clamp(.58rem,.8vw,.7rem) var(--sans); letter-spacing: .06em; }
.day-pillar-core strong { margin: .03em 0 -.09em; color: #f2dfc8; font: 500 clamp(1.75rem,3.2vw,2.7rem) var(--serif); text-shadow: 0 0 28px rgba(224,138,95,.22); }
.day-pillar-core b { color: var(--accent-bright); font: 600 .7rem var(--sans); letter-spacing: .28em; text-indent: .28em; }

.element-key {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 72%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
.element-key span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid rgba(236,220,202,.13); border-radius: 999px; background: rgba(8,7,10,.78); color: #8f8888; font: 600 .66rem var(--sans); backdrop-filter: blur(8px); }
.element-key b { font: 500 .82rem var(--serif); }
.element-key .el-wood b { color: #82a887; }
.element-key .el-fire b { color: #db7250; }
.element-key .el-earth b { color: #c09a68; }
.element-key .el-metal b { color: #c2bcb2; }
.element-key .el-water b { color: #6f98b2; }

.intro-copy { max-width: 520px; animation: copy-in .9s .15s ease both; }
.intro-kicker { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; color: var(--accent-bright); font-size: .7rem; letter-spacing: .21em; }
.intro-kicker span { font-family: var(--serif); }
.intro-kicker::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.intro-title {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: clamp(3.4rem, 5.4vw, 5.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.065em;
}
.intro-title em { color: #d2bd9e; font-style: normal; }

.intro-desc { max-width: 39ch; margin: 0 0 36px; color: var(--ink-soft); font-size: 1.02rem; line-height: 2; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }

.intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 46px;
  min-width: 220px;
  padding: 16px 18px 16px 23px;
  border: 1px solid #d2774f;
  border-radius: 999px;
  background: linear-gradient(135deg, #b95e38, #9a442a);
  color: #fff8ef;
  box-shadow: 0 12px 35px rgba(154, 68, 42, .25), inset 0 1px rgba(255,255,255,.12);
  font: 700 .95rem var(--sans);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s, filter .3s;
}
.intro-cta span:last-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.11); }
.intro-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(154, 68, 42, .34); filter: brightness(1.07); }

.catalog-link {
  margin: 0;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: .86rem;
}
.catalog-link:hover { color: var(--ink); border-color: var(--accent); }
.intro-footnote { margin: 22px 0 0; color: var(--ink-faint); font-size: .76rem; }
.intro-footnote span { margin-right: 6px; color: var(--gold); }

.intro-rail { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; color: var(--ink-faint); font: .65rem var(--serif); letter-spacing: .24em; }
.intro-rail i { width: 46px; height: 1px; background: var(--line); }

/* inner pages */
.masthead { text-align: left; margin: 16px auto 34px; max-width: 760px; }
.masthead-home {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 4px 8px 4px 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.masthead-seal { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(196,107,67,.55); border-radius: 50%; color: var(--accent-bright); font-family: var(--serif); transition: background .25s, border-color .25s, transform .25s; }
.masthead-title { display: flex; flex-direction: column; }
.masthead .kicker { margin: 0 0 1px; color: var(--accent); font-size: .67rem; letter-spacing: .18em; }
.masthead-name { color: var(--ink); font: 600 1.45rem var(--serif); }
.masthead-home:hover .masthead-seal { transform: rotate(-8deg); border-color: var(--accent-bright); background: rgba(196,107,67,.09); }
.masthead-home:hover .masthead-name { color: #fff8ed; }

.progress-wrap { max-width: 760px; margin: 0 auto 20px; }
.progress-bar { height: 2px; background: rgba(255,255,255,.07); }
.progress-bar-fill { background: linear-gradient(90deg, var(--accent), var(--gold)); box-shadow: 0 0 12px rgba(196,107,67,.35); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.progress-label { color: var(--ink-faint); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(25,23,29,.92), rgba(15,14,18,.9));
  box-shadow: 0 25px 60px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025);
}
.step-card { max-width: 760px; margin: 0 auto; padding: clamp(26px, 5vw, 48px); }
.step-card h2 { margin: 0 0 10px; color: var(--accent-bright); font-size: .76rem; font-family: var(--sans); font-weight: 600; letter-spacing: .12em; }
.hint { color: var(--ink-soft); }
.error { color: #ed876e; }
.field-label { color: #c9c0b7; }
.privacy-note { color: var(--ink-faint); }

.date-input, .time-input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(4,4,6,.42);
  color: var(--ink);
  accent-color: var(--accent);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.date-input:hover, .time-input:hover { border-color: rgba(196,107,67,.46); }
.date-input:focus, .time-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(196,107,67,.09); background: rgba(4,4,6,.65); }

.qtext-solo { margin: 6px 0 26px; color: var(--ink); font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 500; line-height: 1.5; }
.opt-col { gap: 10px; }
.opt-btn-v {
  min-height: 60px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
  color: #c7c0ba;
  font-size: .96rem;
  transition: transform .22s, border-color .22s, background .22s, color .22s;
}
.opt-btn-v:hover { transform: translateX(4px); border-color: rgba(196,107,67,.48); background: rgba(196,107,67,.055); color: var(--ink); }
.opt-btn-v.active { border-color: var(--accent); background: linear-gradient(90deg, rgba(196,107,67,.18), rgba(196,107,67,.045)); color: #f5dfd1; }
.opt-emoji { filter: saturate(.7); }
.opt-check, .opt-btn-v-multi.active .opt-checkbox { color: var(--accent-bright); }
.multi-badge { border-color: rgba(196,107,67,.28); background: rgba(196,107,67,.08); color: #d69170; }

.nav-row { margin-top: 28px; }
.btn-primary, .btn-secondary {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s, filter .2s, border-color .2s, color .2s;
}
.btn-primary { background: linear-gradient(135deg, #b95e38, #934026); color: #fff8ef; box-shadow: 0 10px 25px rgba(154,68,42,.18); }
.btn-secondary { border: 1px solid var(--line-strong); background: rgba(255,255,255,.015); color: var(--ink-soft); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }
.btn-secondary:hover { border-color: var(--accent); color: var(--ink); }
.btn-primary:disabled { background: #2b282c; color: #676168; box-shadow: none; }

/* result */
.results { max-width: 1000px; margin: 10px auto 0; display: grid; grid-template-columns: .92fr 1.08fr; gap: 18px; }
.results > * { min-width: 0; }
.pillar-hero { display: grid; align-content: center; min-height: 490px; margin: 0; padding: 38px; text-align: center; overflow: hidden; position: relative; }
.pillar-hero::before { content: ''; position: absolute; inset: 11%; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 80px rgba(196,107,67,.08); animation: breathe 7s ease-in-out infinite; }
.pillar-hero > * { position: relative; z-index: 1; }
.pillar-eyebrow { color: var(--accent); letter-spacing: .18em; }
.pillar-hanja { font-size: clamp(4.5rem, 9vw, 7.2rem); text-shadow: 0 12px 40px rgba(0,0,0,.5); }
.pillar-name { color: var(--ink); }
.pillar-name .hanja-sm, .pillar-info-line { color: var(--ink-faint); }
.pillar-tagline { color: var(--ink-soft); }
.badge { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.07) !important; color: #d9d1c8; }

.character-card { margin: 0; padding: 34px; }
.character-title { color: var(--ink); }
.profile-desc { color: var(--ink-soft); font-size: .95rem; line-height: 1.8; }
.profile-chart { margin-top: 24px; }
.radar-grid, .radar-axis-line { stroke: var(--line-strong); }
.radar-value { fill: rgba(196,107,67,.13); stroke: var(--accent-bright); }
.radar-dot { fill: var(--accent-bright); }
.radar-label { fill: var(--ink-soft); }

.group-title { grid-column: 1 / -1; margin: 44px 0 4px; font-size: 1.85rem; font-weight: 500; }
.rec-stack { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rec-card { min-height: 250px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(20,18,23,.8); }
.rec-card::before { left: 0; top: auto; right: 0; bottom: 0; width: auto; height: 2px; }
.rec-label { color: var(--ink-soft); }
.liquor-name { color: var(--ink); font-size: 1.35rem; }
.liquor-meta, .liquor-explain { color: var(--ink-soft); }
.chip { border-color: var(--line); background: rgba(255,255,255,.025); color: #aaa2a7; }
.liquor-link { border-color: var(--line-strong); }
.liquor-link-buy { background: rgba(196,107,67,.14); border-color: rgba(196,107,67,.36); color: #e4a181; }
.liquor-link-info { color: var(--ink-soft); }
.disclaimer, .result-actions, .share-toast { grid-column: 1 / -1; }
.disclaimer { color: var(--ink-faint); }

/* catalog */
.catalog-screen { max-width: 1080px; margin: 0 auto; }
.catalog-site-header { max-width: 1080px; }
.mobile-home { display: none; }
.catalog-header { margin: 24px 0 32px; }
.catalog-header h2 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -.045em; }
.mode-tabs { gap: 22px; border-color: var(--line); }
.mode-tab { color: var(--ink-faint); font-size: .94rem; }
.mode-tab.active { color: var(--accent-bright); border-bottom-color: var(--accent); }
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.filter-title, .tag-category-label { color: #c8c0b7; }
.filter-subtitle, .tag-category-count, .catalog-count { color: var(--ink-faint); }
.filter-chip { border-color: var(--line-strong); background: rgba(255,255,255,.02); color: var(--ink-soft); }
.filter-chip:hover { border-color: rgba(196,107,67,.46); color: var(--ink); }
.filter-chip.active { border-color: var(--accent); background: rgba(196,107,67,.18); color: #f2c2a9; }
.filter-chip-more { color: var(--accent-bright); }
.catalog-cat-title { color: var(--ink); font-size: 1.3rem; font-weight: 500; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.catalog-card { min-height: 190px; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: rgba(20,18,23,.76); transition: transform .28s, border-color .28s, background .28s; }
.catalog-card:hover { transform: translateY(-5px); border-color: rgba(196,107,67,.38); background: rgba(27,23,27,.94); }
.catalog-card-head { color: var(--ink-faint); }
.catalog-card-cat { color: var(--accent-bright); }

/* reveal + motion */
.reveal-item { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--reveal-delay) ease, transform .65s var(--reveal-delay) cubic-bezier(.2,.8,.2,1); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fade-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes art-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes copy-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .48; transform: scale(1.025); } }
@keyframes stem-glow { 0%, 16%, 100% { border-color: rgba(236,220,202,.2); color: #9e948a; } 8% { border-color: var(--accent-bright); color: #f5dec9; box-shadow: 0 0 24px rgba(196,107,67,.3); } }

@media (max-width: 900px) {
  .shell { padding-inline: 24px; }
  .intro-nav { margin-bottom: 26px; }
  .intro-hero { grid-template-columns: 1fr; gap: 38px; min-height: 0; }
  .intro-copy { max-width: 670px; order: -1; }
  .intro-title { font-size: clamp(3rem, 9vw, 5rem); }
  .intro-desc { max-width: 48ch; }
  .intro-art { width: min(100%, 650px); margin: 0 auto; }
  .results { grid-template-columns: 1fr; }
  .group-title, .rec-stack, .disclaimer, .result-actions, .share-toast { grid-column: 1; }
  .pillar-hero { min-height: 430px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .shell { padding: 20px 16px 72px; }
  .intro-nav { margin-bottom: 34px; }
  .brand-mark { font-size: .88rem; }
  .nav-store { font-size: .76rem; }
  .result-header { min-height: 52px; margin-bottom: 24px; padding-bottom: 12px; }
  .result-brand { font-size: .86rem; }
  .intro-hero { gap: 30px; }
  .intro-kicker { margin-bottom: 18px; }
  .intro-title { margin-bottom: 20px; font-size: clamp(2.75rem, 14vw, 4.3rem); line-height: 1.18; }
  .intro-title br { display: none; }
  .intro-desc { margin-bottom: 28px; font-size: .95rem; line-height: 1.85; }
  .intro-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .intro-cta { width: 100%; }
  .catalog-link { align-self: flex-start; }
  .intro-art { border-radius: 30px; }
  .gan-orbit span { width: 34px; height: 34px; font-size: .86rem; }
  .day-pillar-core { top: 25.5%; width: 24%; }
  .element-key { top: 73%; gap: 4px; }
  .element-key span { padding: 4px 7px; font-size: .6rem; }
  .intro-rail { margin-top: 34px; }
  .masthead { margin-top: 4px; }
  .step-card { padding: 26px 19px; }
  .qtext-solo { font-size: 1.32rem; }
  .opt-btn-v { min-height: 58px; }
  .nav-row { gap: 8px; }
  .btn-primary, .btn-secondary { padding-inline: 18px; }
  .pillar-hero { min-height: 390px; padding: 25px 18px; }
  .character-card { padding: 25px 20px; }
  .rec-stack { grid-template-columns: 1fr; }
  .rec-card { min-height: 0; padding: 23px 20px; }
  .result-actions { flex-direction: column; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { min-height: 0; }
  .catalog-screen { padding-bottom: 76px; }
  .mobile-home {
    position: fixed;
    z-index: 20;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 18px;
    border: 1px solid rgba(224,138,95,.45);
    border-radius: 999px;
    background: rgba(17,16,21,.92);
    color: #f2ece1;
    box-shadow: 0 14px 38px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(14px);
    font: 700 .9rem var(--sans);
    cursor: pointer;
  }
  .mobile-home span:first-child { color: var(--accent-bright); font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-item { opacity: 1; transform: none; }
}
