/* 오늘운세 디자인 — 한지(아이보리) 바탕 + 먹색 글씨 + 붉은 도장색 포인트, 다크 모드 지원 */
:root {
  --bg: #f6f1e8; --bg2: #efe7da; --card: #fffdf9; --ink: #1f2430; --ink2: #4a4f5c; --muted: #8a8478;
  --line: #e6dccb; --seal: #c8442f; --seal-d: #a8341f; --indigo: #2f4a7a; --gold: #b8893b;
  --good: #2f8a5b; --mid: #c08a1e; --bad: #c8442f;
  --shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 6px 20px rgba(60, 40, 10, .06);
  --radius: 18px; --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171f; --bg2: #1b1f29; --card: #1d222d; --ink: #ece6da; --ink2: #c4bdb0; --muted: #8f8a80;
    --line: #2c3240; --seal: #e0624c; --seal-d: #f07a64; --indigo: #8fa8d8; --gold: #d8ad62;
    --good: #5cc28c; --mid: #e3b04a; --bad: #ef7663; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14171f; --bg2: #1b1f29; --card: #1d222d; --ink: #ece6da; --ink2: #c4bdb0; --muted: #8f8a80;
  --line: #2c3240; --seal: #e0624c; --seal-d: #f07a64; --indigo: #8fa8d8; --gold: #d8ad62;
  --good: #5cc28c; --mid: #e3b04a; --bad: #ef7663; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; }

/* ---------- 상단 ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 760px; margin: 0 auto; padding: 10px 16px 4px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 700 21px/1 var(--serif); letter-spacing: -0.03em; }
.logo-seal { width: 32px; height: 32px; }
.top-btns { display: flex; gap: 6px; align-items: center; min-width: 0; }
.app-btn { display: flex; align-items: center; gap: 3px; border: 1px solid var(--seal); color: var(--seal); background: var(--card); border-radius: 999px; padding: 6px 11px 6px 8px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.app-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.app-card img { border-radius: 12px; flex: 0 0 48px; }
.app-card div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-card b { font-size: 16px; }
.app-card span { font-size: 13px; color: var(--ink2); }
.app-card .btn { padding: 10px 16px; flex: 0 0 auto; }
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 10px; animation: up .25s ease; }
.install-bar img { border-radius: 10px; }
.install-bar b { flex: 1; font-size: 15px; }
.install-bar .btn { padding: 9px 16px; font-size: 15px; }
.me-btn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 14px; cursor: pointer; max-width: 34vw; }
.me-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-in { max-width: 760px; margin: 0 auto; display: flex; gap: 4px; padding: 6px 12px 8px; white-space: nowrap; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 15px; color: var(--ink2); }
.nav a.on { background: var(--ink); color: var(--bg); font-weight: 600; }

.wrap { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }

/* ---------- 머리말 ---------- */
.hero { text-align: center; padding: 28px 0 18px; }
.hero-date { margin: 0; color: var(--seal); font-weight: 600; font-size: 15px; }
.hero h1 { font: 700 clamp(30px, 8vw, 40px)/1.25 var(--serif); margin: 6px 0 8px; }
.hero-sub { margin: 0; color: var(--muted); font-size: 14px; }
.page-h { padding: 14px 0 14px; }
.page-h h1 { font: 700 clamp(26px, 6.5vw, 32px)/1.3 var(--serif); }
.page-h p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 10px; }
.crumbs a { text-decoration: none; }

/* ---------- 카드 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 14px 0; }
.card-h { font-size: 17px; margin-bottom: 10px; }
.card.center p { color: var(--ink2); margin: 0 0 14px; }
.sec { margin: 30px 0 10px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sec-h h2 { font: 700 21px/1.3 var(--serif); }
.sec-h a { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sec-lead { margin: 0 0 12px; color: var(--ink2); font-size: 15px; }
.sub-h { font: 700 19px/1.3 var(--serif); margin: 26px 0 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--seal); color: #fff; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover { background: var(--seal-d); }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 16px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 16px 0; }

/* 내 운세 카드 (홈) */
.me-card { padding: 18px; background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--seal) 7%, var(--card))); }
.me-empty { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.me-empty-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; }
.me-empty-txt b { font-size: 17px; }
.me-empty-txt span { color: var(--ink2); font-size: 14px; }
.me-sum { display: flex; gap: 16px; align-items: center; text-decoration: none; }
.me-sum .ring { flex: 0 0 92px; width: 92px; }
.me-sum-t { flex: 1; min-width: 0; }
.me-sum-t small { color: var(--seal); font-weight: 600; font-size: 13px; }
.me-sum-t b { display: block; font: 700 19px/1.35 var(--serif); margin: 2px 0 4px; }
.me-sum-t span { color: var(--ink2); font-size: 14px; }
.me-mini { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.me-mini span { font-size: 13px; background: var(--bg2); border-radius: 999px; padding: 4px 10px; color: var(--ink2); }

/* 점수 원 */
.ring { position: relative; width: 104px; aspect-ratio: 1; flex: 0 0 104px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: var(--bg2); }
.ring-fg { stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring-fg.t-h { stroke: var(--seal); } .ring-fg.t-m { stroke: var(--gold); } .ring-fg.t-l { stroke: var(--indigo); }
.ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ring-num b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.ring-num small { font-size: 13px; margin: 8px 0 0 1px; color: var(--muted); }

.stars { color: var(--gold); letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.stars i { font-style: normal; color: var(--line); }

/* 타일 (띠·별자리) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--seal); }
.tile-ic { font-size: 30px; line-height: 1.1; }
.tile-ic.sym, .row-ic.sym { font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', serif; color: var(--indigo); font-variant-emoji: text; }
.tile b { font-size: 14px; }
.tile .stars { font-size: 11px; letter-spacing: 0; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(6, 1fr); } }

/* 목록 줄 */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; }
.row-card:hover { border-color: var(--seal); }
.row-ic { font-size: 32px; line-height: 1; flex: 0 0 40px; text-align: center; }
.row-t { flex: 1; min-width: 0; }
.row-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-h b { font-size: 16px; }
.row-h small { color: var(--muted); font-size: 12px; }
.row-h em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 14px; }
.row-t p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); }
em.t-h { color: var(--seal); } em.t-m { color: var(--gold); } em.t-l { color: var(--indigo); }

/* 결과 */
.result-top { display: flex; align-items: center; gap: 16px; }
.result-top h2 { font: 700 21px/1.35 var(--serif); margin: 2px 0 4px; }
.result-k { margin: 0; color: var(--muted); font-size: 13px; }
.lead { font-size: 16.5px; line-height: 1.75; margin: 16px 0 6px; }
.hint { background: var(--bg2); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--ink2); margin: 10px 0 0; }
.cats { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 12px; }
.cats li { border-top: 1px dashed var(--line); padding-top: 12px; }
.cat-h { display: flex; align-items: center; gap: 8px; }
.cat-h b { font-size: 15px; white-space: nowrap; }
.cat-h em { font-style: normal; font-weight: 700; font-size: 14px; width: 26px; text-align: right; }
.cat-ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; flex: 0 0 26px; }
.c-love { background: #d9576b; } .c-money { background: #c08a1e; } .c-work { background: #3d6bb3; } .c-health { background: #3f9a6b; }
.bar { flex: 1; height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.bar i.t-h { background: var(--seal); } .bar i.t-m { background: var(--gold); } .bar i.t-l { background: var(--indigo); }
.cats p { margin: 6px 0 0 34px; font-size: 15px; color: var(--ink2); }
.cats.plain p { margin-left: 34px; }

.lucky { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.lucky div { background: var(--bg2); border-radius: 12px; padding: 10px 12px; }
.lucky small { display: block; color: var(--muted); font-size: 12px; }
.lucky b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0, 0, 0, .1); flex: 0 0 12px; }
.advice { font: 400 17px/1.6 var(--serif); text-align: center; margin: 16px 4px 2px; color: var(--ink); }

.years { list-style: none; margin: 0; padding: 0; }
.years li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.years li:last-child { border: 0; }
.years b { flex: 0 0 62px; color: var(--seal); }

/* 시간대별 */
.hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; align-items: end; height: 110px; margin: 10px 0 4px; }
.hours div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.hours i { width: 100%; max-width: 22px; border-radius: 6px 6px 3px 3px; background: var(--bg2); }
.hours i.best { background: var(--seal); } .hours i.worst { background: var(--indigo); opacity: .7; }
.hours i.now { outline: 2px solid var(--ink); outline-offset: 1px; }
.hours span { font-size: 11px; color: var(--muted); }
.hour-note { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; margin-top: 8px; }
.hour-note span { background: var(--bg2); padding: 5px 10px; border-radius: 99px; }
.hour-note .b { color: var(--seal); font-weight: 600; }

/* 달력 */
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .wk { text-align: center; font-size: 12px; color: var(--muted); padding: 2px 0; }
.cal .wk:first-child { color: var(--bad); }
.cal button { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--bg2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; padding: 0; position: relative; }
.cal button small { font-size: 10px; font-weight: 700; }
.cal button.h { background: color-mix(in srgb, var(--seal) 22%, var(--card)); }
.cal button.h small { color: var(--seal); }
.cal button.l { background: color-mix(in srgb, var(--indigo) 14%, var(--card)); }
.cal button.l small { color: var(--indigo); }
.cal button.today { outline: 2px solid var(--ink); }
.cal button.sel { outline: 2px solid var(--seal); }
.cal-legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.cal-pick { margin-top: 12px; background: var(--bg2); border-radius: 12px; padding: 12px; font-size: 14px; }

/* 탭 */
.tabs { display: flex; background: var(--bg2); border-radius: 14px; padding: 4px; gap: 4px; margin: 6px 0 4px; }
.tabs button { flex: 1; border: 0; background: transparent; border-radius: 10px; padding: 9px 6px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* 검색·칩 */
.search { display: flex; gap: 8px; margin: 8px 0 10px; }
.search input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); }
.search input:focus { outline: 2px solid var(--seal); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 14px; text-decoration: none; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* 꿈 */
.dream-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { .dream-list { grid-template-columns: 1fr 1fr; } }
.dream-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; }
.dream-item:hover { border-color: var(--seal); }
.dream-item b { font-size: 16px; }
.dream-item > span:last-child { grid-column: 1 / -1; color: var(--ink2); font-size: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; vertical-align: 1px; }
.badge.good { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.badge.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.badge.mid { background: color-mix(in srgb, var(--mid) 16%, transparent); color: var(--mid); }
.cases { margin: 0; }
.cases dt { font-weight: 700; margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--seal); }
.cases dt:first-child { margin-top: 0; }
.cases dd { margin: 4px 0 0 15px; color: var(--ink2); }

/* 글 */
.prose h2 { font: 700 19px/1.35 var(--serif); margin: 4px 0 10px; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; }
.prose p { margin: 0 0 10px; color: var(--ink2); }
.prose ul { padding-left: 20px; color: var(--ink2); }
.prose a { color: var(--seal); }
.note { text-align: center; color: var(--muted); font-size: 13px; margin: 20px 0; }
.other { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0; }
.other a { font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: var(--card); }
.tti-years { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 14px; }
.tti-years div { display: flex; flex-direction: column; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.tti-years span { color: var(--muted); font-size: 13px; }
.ilgan-list li { margin: 3px 0; }
.big-mail { font-size: 20px; font-weight: 700; }

/* 메뉴·배너 */
.banner { display: flex; flex-direction: column; gap: 2px; margin: 26px 0; padding: 20px; border-radius: var(--radius); text-decoration: none; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255, 210, 150, .35), transparent 40%), linear-gradient(135deg, #b23a26, #7a2316); box-shadow: var(--shadow); }
.banner-k { font-size: 13px; opacity: .85; }
.banner b { font: 700 21px/1.35 var(--serif); }
.banner span:last-child { font-size: 14px; opacity: .9; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-grid a { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.menu-grid b { font-size: 16px; }
.menu-grid span { font-size: 13px; color: var(--muted); }
.ny-h { text-align: center; padding: 26px 0 10px; }
.ny-k { color: var(--seal); font-weight: 700; margin: 0 0 4px !important; }

/* 광고 */
.ad { margin: 22px 0; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.ad-dev { border: 1.5px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* 타로 */
.tcard { border: 0; padding: 0; background: none; cursor: pointer; perspective: 800px; display: inline-block; }
.tcard img { display: block; width: 150px; height: auto; aspect-ratio: 300 / 480; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 22px rgba(30, 20, 60, .28); transition: transform .45s; background: #1a237e; }
.tcard.big img { width: 180px; }
.tcard.flip img { animation: flip .6s ease; }
@keyframes flip { 0% { transform: rotateY(0) } 50% { transform: rotateY(90deg) } 100% { transform: rotateY(0) } }
.tarot-today { display: flex; gap: 18px; align-items: center; }
.tarot-today-txt { display: flex; flex-direction: column; gap: 4px; }
.tarot-today-txt b { font: 700 18px/1.4 var(--serif); }
.tarot-today-txt span, .tarot-today-txt p { color: var(--ink2); font-size: 14px; margin: 0; }
@media (max-width: 420px) { .tarot-today { flex-direction: column; text-align: center; } }
.tarot-one { display: flex; justify-content: center; margin: 6px 0 14px; }
.spread { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0; }
@media (min-width: 600px) { .spread { grid-template-columns: repeat(10, 1fr); } }
.spread button { border: 0; padding: 0; background: none; cursor: pointer; aspect-ratio: 300 / 480; border-radius: 6px; overflow: hidden; transition: transform .15s, opacity .2s; }
.spread button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spread button:hover { transform: translateY(-3px); }
.spread button.picked { opacity: .25; transform: translateY(4px); pointer-events: none; }
.spread-result .reading { display: grid; gap: 12px; margin-top: 14px; text-align: left; }
.reading-item { display: flex; gap: 12px; background: var(--bg2); border-radius: 14px; padding: 12px; }
.reading-item img { width: 72px; height: auto; aspect-ratio: 300 / 480; object-fit: cover; border-radius: 8px; flex: 0 0 72px; }
.reading-item small { color: var(--seal); font-weight: 700; font-size: 13px; }
.reading-item b { display: block; font-size: 15px; margin: 2px 0; }
.reading-item p { margin: 0; font-size: 14px; color: var(--ink2); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.card-grid a { text-decoration: none; text-align: center; font-size: 13px; }
.card-grid img { width: 100%; height: auto; aspect-ratio: 300 / 516; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; background: var(--bg2); }
.tarot-detail { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.tarot-detail-img { flex: 0 0 auto; margin: 0 auto; }
.tarot-detail-img img { width: 200px; height: auto; border-radius: 12px; display: block; }
.tarot-detail .prose { flex: 1 1 260px; }
.pager { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin: 16px 0; }
.pager a { text-decoration: none; color: var(--ink2); }

/* 사주 */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin: 8px 0; }
.pillars .ph { font-size: 12px; color: var(--muted); }
.pillar { background: var(--bg2); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; gap: 6px; }
.pillar .g { border-radius: 10px; padding: 6px 0 4px; color: #fff; }
.pillar .g b { display: block; font: 700 26px/1.1 var(--serif); }
.pillar .g small { font-size: 12px; opacity: .92; }
.pillar .tg { font-size: 11px; color: var(--ink2); }
.pillar.empty { opacity: .45; justify-content: center; font-size: 13px; }
.el-0 { background: #3f8f5a; } .el-1 { background: #c8442f; } .el-2 { background: #b8893b; } .el-3 { background: #8a8f99; } .el-4 { background: #2f4a7a; }
.el-bars { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.el-bars div { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.el-bars b { width: 54px; }
.el-bars .bar i { background: currentColor; }
.el-bars em { font-style: normal; width: 22px; text-align: right; font-weight: 700; }
.daewoon { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.daewoon div { flex: 0 0 64px; background: var(--bg2); border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 12px; }
.daewoon b { display: block; font: 700 18px/1.3 var(--serif); }
.daewoon .now { outline: 2px solid var(--seal); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: var(--bg2); border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.sinsal { list-style: none; padding: 0; margin: 0; }
.sinsal li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink2); }
.sinsal li:last-child { border: 0; }
.sinsal b { color: var(--ink); }
.mon-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 120px; }
.mon-bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; font-size: 11px; color: var(--muted); }
.mon-bars i { width: 100%; max-width: 24px; border-radius: 6px 6px 3px 3px; }
.mon-bars i.t-h { background: var(--seal); } .mon-bars i.t-m { background: var(--gold); } .mon-bars i.t-l { background: var(--indigo); }

/* 궁합 */
.gh-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.gh-form legend { font: 700 17px/1.3 var(--serif); margin-bottom: 8px; }
.gh-vs { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.gh-vs > div { flex: 1; }
.gh-vs b { display: block; font: 700 18px/1.3 var(--serif); }
.gh-vs small { color: var(--muted); font-size: 13px; }
.gh-heart { font-size: 28px; color: var(--seal); }

/* 입력 */
.f-row { display: flex; gap: 6px; margin-bottom: 10px; }
.f-row > * { flex: 1; min-width: 0; }
.f-label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
select, .f-input { width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 11px 10px; font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.f-input { background-image: none; padding-right: 10px; }
select:focus, .f-input:focus { outline: 2px solid var(--seal); border-color: transparent; }
.seg { display: flex; background: var(--bg2); border-radius: 12px; padding: 3px; }
.seg label { flex: 1; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 4px; border-radius: 9px; font-size: 15px; color: var(--muted); font-weight: 600; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--seal); }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink2); margin: 0 0 10px; }
.form-err { color: var(--bad); font-size: 14px; min-height: 0; margin: 0 0 8px; }
.form-err:empty { display: none; }

/* 내 정보 창 */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 10, 20, .45); }
.modal[hidden] { display: none; }
.sheet { background: var(--card); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; animation: up .25s ease; }
@media (min-width: 600px) { .modal { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-h h2 { font: 700 20px/1.3 var(--serif); }
.x { border: 0; background: var(--bg2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.sheet .privacy { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.people { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.people button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.people button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sheet-foot { display: flex; justify-content: space-between; margin-top: 10px; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: underline; padding: 4px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* 바닥글 */
.foot { border-top: 1px solid var(--line); background: var(--bg2); padding: 24px 16px 36px; font-size: 13px; color: var(--muted); }
.foot-in { max-width: 760px; margin: 0 auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.foot-links a { text-decoration: none; color: var(--ink2); }
.foot p { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
