/* 이음보 운세 코너. 이음보 앱 A안 디자인 시스템(ieumbo-app docs/design/DESIGN-SYSTEM.md 9절, app/web/styles/a-ui.css)과 같은 토큰·컴포넌트를 쓴다.
   인라인 style 속성을 쓰지 않는다(CSP). 그라데이션·흐림 장식·이모지 없음. */

:root {
  --g00: #ffffff; --g100: #f7f8f9; --g200: #f3f4f5; --g300: #eeeff1; --g400: #dcdee3; --g500: #d1d3d8;
  --g600: #b0b3ba; --g700: #868b94; --g800: #555d6d; --g900: #2a3038; --g1000: #1a1c20;
  --brand-100: #F6E9E5; --brand-200: #EFD6CE; --brand-600: #A34D33; --brand-700: #8D412A; --brand-800: #793520;
  --text-sub: #646b78;
  --info: #217cf9; --info-soft: #eff6ff; --success: #079171; --success-soft: #edfaf6; --danger: #ca1d13; --danger-soft: #fdf0f0;
  --caution-soft: #fbf3e1; --caution-text: #7e5825;
  --gutter: 16px;
  --focus-ring: 0 0 0 3px rgba(163, 77, 51, .4);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color-scheme: light only;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--g200); }
body {
  margin: 0; background: var(--g200); color: var(--g1000);
  font-family: var(--font); font-size: 18px; line-height: 1.6;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: break-word;
}
.app { max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--g00); }
img { max-width: 100%; display: block; }
a { color: var(--brand-800); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; margin: 0; line-height: 1.35; color: var(--g1000); }
p { margin: 0; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 15px; word-break: break-all; }
[hidden] { display: none !important; }
:focus-visible { outline: 0; box-shadow: var(--focus-ring); border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--g1000); color: #fff; padding: 12px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* 윗줄 */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 8px 0 var(--gutter); background: var(--g00); border-bottom: 1px solid var(--g300); }
/* 로고: 이음보 사이트 헤더와 같은 SVG(.logo-mark), 같은 색(--brand #0b7a5a)·높이 28px */
.top-brand { color: #0b7a5a; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.top-brand .logo-mark { display: block; height: 32px; width: auto; color: #0b7a5a; }
.top-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.top-back { width: 48px; height: 48px; margin-left: -8px; display: grid; place-items: center; border: 0; background: transparent; color: var(--g1000); cursor: pointer; border-radius: 12px; }

/* 소개 */
.intro { padding-top: 24px; padding-bottom: 8px; }
.intro h1 { font-size: 26px; margin-bottom: 4px; }
.intro p { color: var(--text-sub); font-size: 17px; }

/* 구획 제목 */
.sec-h { font-size: 20px; margin: 16px 0 12px; }
.sec-t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#listArea { border-top: 8px solid var(--g200); }

/* 입력: .k-field 한 벌(테두리는 바깥 칸에만) */
.ffld { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 12px; align-items: start; margin: 0 0 12px; min-width: 0; }
.ffld > label:not(.k-field), .ffld > .lg { padding-top: 16px; font-size: 15px; font-weight: 600; color: var(--g800); line-height: 1.3; }
.ffld > .lg { display: block; }
.ffld--stack { display: block; }
.ffld--stack > .lg { display: block; padding: 0 0 6px; }
.fbox { min-width: 0; }
.k-field {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 56px; margin: 0; padding: 0 16px;
  border-radius: 12px; background: var(--g200); border: 2px solid transparent;
  font: inherit; font-size: 17px; line-height: 1.4; color: var(--g1000);
}
.k-field:focus-within { background: #fff; border-color: var(--brand-600); }
.k-field:has(.bad) { background: #fff; border-color: var(--danger); }
.k-field input, .k-field select {
  flex: 1; min-width: 0; width: 100%; min-height: 52px; padding: 0; margin: 0; border: 0; outline: 0; box-shadow: none;
  background: transparent; font: inherit; color: inherit; line-height: 1.4;
}
.k-field input::placeholder { color: var(--text-sub); opacity: 1; }
.k-field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23555d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 20px no-repeat;
}
.unit { flex: none; color: var(--g800); font-size: 16px; }
.k-field--grow { flex: 1; }
.k-field--min { flex: none; width: 120px; }
.k-field--text { min-height: 48px; padding: 10px 14px; margin-bottom: 8px; }
.frow { display: flex; gap: 8px; }
.frow--date .k-field { flex: 1 1 0; padding: 0 12px; }
.frow--date .k-field:first-child { flex: 1.5 1 0; }
.err { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--danger); }
.err:empty { display: none; }
.hint { margin: 8px 0 0; font-size: 15px; color: var(--text-sub); }
.hint:empty { display: none; }
.hint:has(+ .err:not(:empty)) { display: none; }

/* 분할 선택(칩과 같은 어두운 선택면) */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--g200); }
.seg + .seg { margin-top: 8px; }
.seg label { position: relative; flex: 1; min-width: 0; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 8px; font-size: 16px; font-weight: 500; text-align: center; color: var(--g900); }
.seg input:checked + span { background: var(--g900); color: #fff; font-weight: 700; }
.seg input:focus-visible + span { box-shadow: var(--focus-ring); }

/* 안내 상자 */
.k-note { margin: 16px var(--gutter) 0; padding: 12px 14px; border-radius: 12px; background: var(--info-soft); font-size: 15px; line-height: 1.55; color: var(--g1000); }
.form-wrap > .k-note { margin-left: 0; margin-right: 0; margin-top: 16px; }
.k-note.warn { background: var(--caution-soft); }

/* 버튼 */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 12px; font: 700 17px/1.3 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .08s ease-out, background-color .08s ease-out;
}
.btn:active { transform: scale(.9615); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:active { background: var(--brand-700); }
.btn-secondary { background: var(--g200); color: var(--g1000); }
.btn-secondary:active { background: var(--g300); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* 풀이 목록: 서비스별 색 카드(포스텔러 목록 구조를 따르되 색·아이콘은 이음보 것). 대표 카드는 크게, 나머지는 2열 */
:root { --tone-gold-1: #9a5a0c; --tone-gold-2: #6f4208; --tone-green-1: #0b7a5e; --tone-green-2: #075445; --tone-blue-1: #2468d6; --tone-blue-2: #0b4596;
  --tone-violet-1: #6a4cb8; --tone-violet-2: #4a3190; --tone-slate-1: #4a5568; --tone-slate-2: #2a3038; --tone-brand-1: #a34d33; --tone-brand-2: #793520; }
.tone-gold { --t1: var(--tone-gold-1); --t2: var(--tone-gold-2); } .tone-green { --t1: var(--tone-green-1); --t2: var(--tone-green-2); }
.tone-blue { --t1: var(--tone-blue-1); --t2: var(--tone-blue-2); } .tone-violet { --t1: var(--tone-violet-1); --t2: var(--tone-violet-2); }
.tone-slate { --t1: var(--tone-slate-1); --t2: var(--tone-slate-2); } .tone-brand { --t1: var(--tone-brand-1); --t2: var(--tone-brand-2); }
/* 칩 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--g200); color: var(--g900); font: 500 15px/1 var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--g900); color: #fff; font-weight: 700; }
/* 아이콘(스프라이트 <symbol>, 24px 격자·선 1.75·둥근 끝·단색) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic--s { width: 16px; height: 16px; }
/* 풀이 목록: 1열, 1.9:1 썸네일 + 이름·상태 한 줄 */
.rows { display: block; padding: 0 0 8px; }
.card { display: block; width: 100%; margin: 0 0 20px; padding: 0; border: 0; background: transparent; color: var(--g1000); font: inherit; text-align: left; cursor: pointer; }
.card[hidden] { display: none; }
.card:active .thumb { transform: scale(.985); }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 1.9 / 1; overflow: hidden; background: linear-gradient(150deg, var(--t1), var(--t2)); transition: transform .08s ease-out; }
.thumb::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.22) 1.4px, transparent 1.6px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 55%); mask-image: linear-gradient(200deg, #000, transparent 55%); }
.thumb-img { position: absolute; right: 2%; bottom: -8%; height: 100%; width: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); pointer-events: none; }
.thumb.is-illust .thumb-img { inset: 0; right: auto; bottom: auto; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 62%; filter: none; }
.thumb.is-illust::before { background: none; z-index: 1; -webkit-mask-image: none; mask-image: none; }
.thumb-ask { z-index: 2; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); max-width: 38%; color: #fff; font-size: 23px; font-weight: 800; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
/* 제목 위치: 일러스트마다 한쪽을 비워 둔 구도를 가정한다. 장면 밝기에 맞춰 글자색(흰/짙은색)과 짧은 가장자리 그라데이션을 고른다 */
.thumb.is-illust .thumb-ask { max-width: 46%; font-size: 22px; text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 0 14px rgba(0,0,0,.35); }
.thumb.tp-today::before { background: linear-gradient(200deg, rgba(10,20,50,.78), transparent 70%); }
.thumb.tp-today .thumb-ask { left: auto; right: 16px; top: 18%; transform: none; text-align: right; }
.thumb.tp-tojeong::before { background: linear-gradient(90deg, rgba(0,0,0,.55), transparent 60%); }
.thumb.tp-tojeong .thumb-ask { top: 16%; transform: none; }
.thumb.tp-taekil::before { background: linear-gradient(180deg, rgba(255,255,255,.4), transparent 60%); }
.thumb.tp-taekil .thumb-ask { top: 14%; transform: none; color: #10263d; text-shadow: 0 0 10px rgba(240,248,255,.9), 0 0 3px rgba(240,248,255,.8); }
.thumb.tp-newyear::before { background: linear-gradient(200deg, rgba(5,10,35,.6), transparent 65%); }
.thumb.tp-newyear .thumb-ask { left: auto; right: 16px; top: 17%; transform: none; text-align: right; max-width: 58%; }
.thumb.tp-life::before { background: linear-gradient(180deg, rgba(255,250,240,.5), transparent 60%); }
.thumb.tp-life .thumb-ask { top: 16%; transform: none; color: #3b2a1c; text-shadow: 0 0 10px rgba(255,248,235,.9), 0 0 3px rgba(255,248,235,.8); }
.thumb.tp-reunion::before { background: linear-gradient(270deg, rgba(10,8,35,.45), transparent 60%); }
.thumb.tp-reunion .thumb-ask { left: auto; right: 16px; top: 52%; text-align: right; }
.thumb.tp-love::before { background: linear-gradient(90deg, rgba(255,255,235,.45), transparent 55%); }
.thumb.tp-love .thumb-ask { color: #2b3a16; text-shadow: 0 0 10px rgba(240,250,200,.9), 0 0 3px rgba(240,250,200,.8); }
.thumb.tp-wealth::before { background: linear-gradient(90deg, rgba(60,25,5,.4), transparent 55%); }
.thumb.tp-wealth .thumb-ask { top: 18%; transform: none; }
.thumb.tp-match::before { background: linear-gradient(180deg, rgba(255,245,230,.5), transparent 60%); }
.thumb.tp-match .thumb-ask { top: 14%; transform: none; max-width: 70%; color: #3b2a1c; text-shadow: 0 0 10px rgba(255,245,230,.9), 0 0 3px rgba(255,245,230,.8); }
.thumb.tp-tarot::before { background: linear-gradient(90deg, rgba(0,0,0,.4), transparent 55%); }
.thumb.tp-zodiac::before { background: linear-gradient(180deg, rgba(255,248,235,.5), transparent 60%); }
.thumb.tp-zodiac .thumb-ask { top: 14%; transform: none; max-width: 70%; color: #3b2a1c; text-shadow: 0 0 10px rgba(255,248,235,.9), 0 0 3px rgba(255,248,235,.8); }
.tcat { position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 6px; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; background: rgba(0,0,0,.25); color: #fff; font-size: 13px; font-weight: 600; }
.thumb.is-illust .tcat { border: 0; border-radius: 999px; background: rgba(255,255,255,.82); color: var(--g900); }
.card-line { display: flex; align-items: center; gap: 8px; padding: 10px var(--gutter) 0; }
.card-name { font-size: 16px; font-weight: 500; line-height: 1.35; }
.card-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--g200); color: var(--g800); font-size: 13px; font-weight: 600; }
.card--soon { cursor: default; }
.card--soon:active .thumb { transform: none; }
@media (prefers-reduced-motion: reduce) { .thumb { transition: none; } .card:active .thumb { transform: none; } }

/* 공유 열림: 목록 위 한 줄 + 팝업(바닥 시트) */
.unlock-line { margin: 0; padding-top: 12px; padding-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--success); }
.unlock-line[hidden] { display: none; }
.fallback { margin-top: 12px; }
.fallback-row { display: flex; gap: 8px; }
.fallback-row .btn { flex: 1; height: 44px; font-size: 15px; }
.fallback-row .btn:first-child { flex: 2; }
body.is-modal { overflow: hidden; }
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 480px; margin: 0 auto; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--g00); color: var(--g1000); font-family: var(--font); max-height: 92vh; overflow: auto; overscroll-behavior: contain; animation: sheet-up .2s ease-out; }
.sheet::backdrop { background: rgba(26, 28, 32, .55); }
.sheet-body { padding: 20px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); }
.sheet-thumb { position: relative; display: block; width: 168px; aspect-ratio: 4 / 3; margin: 0 auto 16px; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--t1), var(--t2)); }
.sheet-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.sheet-thumb:not(.is-illust) img { object-fit: contain; }
.sheet-t { font-size: 22px; font-weight: 800; line-height: 1.35; margin: 0 0 6px; }
.sheet-d { margin: 0 0 16px; font-size: 16px; color: var(--text-sub); }
.sheet .btn { width: 100%; }
.sheet .fallback-row .btn { width: auto; }
.sheet .hint { min-height: 22px; }
.btn-quiet { margin-top: 8px; background: transparent; color: var(--g800); }
.btn-quiet:active { background: var(--g200); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }

/* 알림줄 */
.snack { position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 448px; margin: 0 auto; z-index: 30; padding: 14px 16px; border-radius: 12px; background: var(--g1000); color: #fff; font-size: 16px; }

/* 결과 */
.result > div { padding: 16px var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px)); }
.r-banner { position: relative; display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 18px 20px; border-radius: 16px; color: #fff; background: linear-gradient(150deg, var(--t1), var(--t2)); }
.r-banner h2 { color: #fff; }
.r-banner .tcat { position: static; }
.r-banner-img { width: 88px; height: auto; aspect-ratio: 1; flex: none; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.r-banner-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.r-banner h2 { font-size: 24px; }
.r-banner.is-illust { display: block; padding: 0; overflow: hidden; }
.r-banner.is-illust .r-banner-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; filter: none; }
.r-banner.is-illust .r-banner-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 16px; }
.r-banner.is-illust h2 { font-size: 22px; }
.r-pillar { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--g900); font-size: 15px; font-weight: 600; color: var(--g900); }
.r-opts { margin-bottom: 16px; }
.r-opts .btn { margin-top: 4px; }
.r-lead { margin: 0 0 20px; font-size: 24px; font-weight: 700; line-height: 1.4; }
.r-lead-wrap { margin: 0 0 20px; }
.r-lead-wrap .r-lead { margin-bottom: 14px; }
.r-lead-rest { font-size: 16px; line-height: 1.75; color: var(--g700, #333d4b); }
.r-paras > p { margin: 0 0 12px; line-height: 1.7; }
.r-paras > p:last-child { margin-bottom: 0; }
.r-lead-wrap .r-paras > p { margin-bottom: 14px; }
.r-sec { margin: 0 calc(-1 * var(--gutter)); padding: 20px var(--gutter); border-top: 8px solid var(--g200); }
.r-sec h3 { font-size: 20px; margin-bottom: 12px; }
.r-sec h4, .r-box h4 { font-size: 17px; font-weight: 700; margin: 12px 0 4px; }
.r-sec p + p, .r-box p + p { margin-top: 8px; }
.r-poem { margin: 0 0 20px; padding: 16px; border-radius: 12px; background: var(--g100); font-size: 18px; line-height: 1.8; text-align: center; }
.r-list { margin: 0; padding-left: 20px; }
.r-list li { margin-bottom: 6px; }
.r-list li:last-child { margin-bottom: 0; }
.r-box { margin-top: 8px; padding: 14px 16px; border-radius: 12px; background: var(--g100); }
.r-box:first-of-type { margin-top: 0; }
.r-box h4:first-child { margin-top: 0; }
.r-box.is-alt { background: var(--caution-soft); }
.r-tag { display: inline-flex; align-items: center; height: 24px; margin-right: 8px; padding: 0 8px; border-radius: 6px; background: var(--g200); color: var(--g900); font-size: 13px; font-weight: 600; vertical-align: 2px; }
.r-tag--good { background: var(--success-soft); color: #075445; }
.r-tag--rest { background: var(--info-soft); color: #0b4596; }
.r-tag--warn { background: var(--brand-100); color: var(--brand-800); }
.r-months { margin: 0; padding: 0; list-style: none; }
.r-months > li { padding: 14px 0; border-bottom: 1px solid var(--g300); }
.r-months > li:first-child { padding-top: 0; }
.r-months > li:last-child { border-bottom: 0; padding-bottom: 0; }
.r-months h4 { margin-top: 0; }
.r-basis, .r-period { font-size: 15px; color: var(--text-sub); }
.r-period { color: var(--g1000); font-weight: 600; font-size: 16px; }
.r-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--brand-100); font-size: 15px; line-height: 1.55; }
.r-curve { width: 100%; height: auto; border-radius: 12px; background: var(--g100); }
.r-curve text { font-family: var(--font); font-size: 20px; font-weight: 600; fill: var(--g800); }
.r-out { margin-top: 20px; scroll-margin-top: 72px; }
.r-out:empty { margin: 0; }
.r-out > .btn { margin-top: 16px; }
.r-out .r-sec:first-child { border-top: 0; padding-top: 4px; }
.r-out > .btn, .r-opts > .btn, .rel-box + .btn { margin-top: 4px; }
.r-out-title { font-size: 20px; margin-bottom: 12px; }
.r-cards > li { padding: 14px 16px; margin-bottom: 8px; border: 0; border-radius: 12px; background: var(--g100); }
.r-cards > li:first-child { padding-top: 14px; }
.r-cards > li:last-child { margin-bottom: 0; padding-bottom: 14px; }
.partner-form { margin-bottom: 16px; }
.partner-form h3 { font-size: 20px; margin-bottom: 12px; }
.rel-box { margin-bottom: 16px; }
.r-opts .hint { margin-bottom: 4px; }
.r-more { margin-top: 12px; }

/* 접기 */
details { border-top: 1px solid var(--g300); }
details:last-child { border-bottom: 1px solid var(--g300); }
summary { display: flex; align-items: center; min-height: 52px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; margin-left: auto; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23555d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
details[open] > summary::after { transform: rotate(180deg); }
details > :not(summary) { padding-bottom: 12px; }
details .r-list, details .terms { padding-top: 0; }
.r-months details { margin-top: 8px; }
dl.terms { margin: 0; }
dl.terms dt { font-weight: 700; margin-top: 10px; }
dl.terms dd { margin: 2px 0 0; color: var(--text-sub); }

/* 띠별 선택 */
.zgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 8px; }
.zbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--g1000); cursor: pointer; }
.zbtn:active { background: var(--g200); }
.zbtn .av { width: 56px; height: 56px; border-radius: 50%; background: var(--g200); object-fit: contain; }

.foot { padding-top: 24px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); border-top: 8px solid var(--g200); color: var(--text-sub); font-size: 14px; line-height: 1.6; }
.foot a { color: var(--text-sub); }

/* 링크 복사용 임시 칸 */
.offscreen-copy { position: fixed; left: -9999px; top: 0; }

@media print { .top, .foot { display: none; } }

/* 추천 */
.rec { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-content: center; width: 100%; padding: 8px 0; border: 0; background: transparent; font: inherit; text-align: left; color: var(--g1000); cursor: pointer; }
.rec-img { grid-row: 1 / 3; width: 120px; height: 90px; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; object-position: 50% 40%; background: linear-gradient(150deg, var(--t1), var(--t2)); }
.rec-name { font-size: 16px; font-weight: 600; align-self: end; }
.rec-ask { font-size: 14px; color: var(--text-sub); align-self: start; }

/* 입력 화면(포스텔러식 한 단계씩): 라벨 왼쪽 행, 하단 고정 큰 버튼 */
.form-wrap { padding-bottom: 112px; }
.form-t { margin: 20px 0 16px; font-size: 24px; line-height: 1.35; }
.step-t { margin: 20px 0 -12px; font-size: 14px; font-weight: 700; color: var(--brand-800); }
.step-t[hidden] { display: none; }
.step-t:not([hidden]) + .form-t { margin-top: 20px; }
.fbox .frow > .seg--one { flex: none; width: 124px; padding: 4px; }
.fbox .frow > .seg--one span { padding: 0 6px; font-size: 15px; white-space: nowrap; }
.k-field input:disabled { color: var(--g700); }
.k-field:has(input:disabled) { opacity: .6; }
.bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 6; width: 100%; max-width: 480px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--g00); border-top: 1px solid var(--g300); }
.bar .btn { height: 56px; font-size: 18px; }

/* 타로: 뒷면 카드 격자(이음보 색 면 + 안쪽 테두리, 이미지 없음) */
.tpick { margin: 0 0 8px; }
.tpick-t { margin: 0 0 6px; font-size: 20px; }
.tpick-d { margin: 0 0 8px; font-size: 15px; color: var(--text-sub); line-height: 1.55; }
.tpick-n { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--brand-800); }
.tgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 6px; }
.tcard { position: relative; display: block; width: 100%; aspect-ratio: 5 / 8; padding: 0; border: 0; border-radius: 8px; background: var(--brand-700); color: #fff; font: 700 18px/1 var(--font); cursor: pointer; transition: transform .08s ease-out; }
.tcard::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 5px; }
.tcard::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; }
.tcard:active { transform: scale(.94); }
.tcard.is-on { background: var(--g900); }
.tcard.is-on::after { border: 0; border-radius: 0; margin: 0; width: auto; height: auto; inset: 0; display: grid; place-items: center; content: attr(data-n); }
.tcard:disabled:not(.is-on) { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } .tcard:active { transform: none; } }

/* 풀이 불러오는 연출: 서비스마다 하나. 색은 브랜드색 하나, CSS 만 쓴다. */
.loader { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px var(--gutter) 40px; color: var(--brand-600); }
.ld-art { position: relative; width: 120px; height: 96px; }
.ld-text { font-size: 16px; font-weight: 600; color: var(--g800); text-align: center; }
.ld-still { display: none; }
.r-out > .loader { padding-top: 32px; }
.ld-art span { position: absolute; display: block; }
/* 별이 이어지는 선 */
.ld-dot { width: 14px; height: 14px; border-radius: 50%; background: currentColor; animation: ld-twinkle 1.2s ease-in-out infinite; }
.ld-d0 { left: 6px; top: 58px; } .ld-d1 { left: 53px; top: 16px; animation-delay: .25s; } .ld-d2 { left: 100px; top: 52px; animation-delay: .5s; }
.ld-line { height: 2px; background: currentColor; opacity: .5; transform-origin: left center; transform: scaleX(0); animation: ld-draw 1.2s ease-in-out infinite; }
.ld-l0 { left: 17px; top: 56px; width: 52px; transform: rotate(-39deg) scaleX(0); animation-name: ld-draw0; }
.ld-l1 { left: 64px; top: 28px; width: 50px; transform: rotate(35deg) scaleX(0); animation-name: ld-draw1; animation-delay: .25s; }
@keyframes ld-twinkle { 0%, 100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes ld-draw0 { 0% { transform: rotate(-39deg) scaleX(0); } 50%, 100% { transform: rotate(-39deg) scaleX(1); } }
@keyframes ld-draw1 { 0% { transform: rotate(35deg) scaleX(0); } 50%, 100% { transform: rotate(35deg) scaleX(1); } }
/* 반짝이는 동그라미 */
.ld-ring0 { left: 36px; top: 6px; width: 48px; height: 48px; margin: 0; border-radius: 50%; border: 3px solid rgba(163, 77, 51, .25); border-top-color: currentColor; animation: ld-spin 1s linear infinite; }
.ld-art:has(.ld-ring0) { height: 60px; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
/* 두 원이 겹쳐지는 궁합 */
.ld-pair0, .ld-pair1 { top: 20px; width: 52px; height: 52px; border-radius: 50%; border: 3px solid currentColor; }
.ld-pair0 { left: 4px; animation: ld-pair-a 1.4s ease-in-out infinite; }
.ld-pair1 { right: 4px; animation: ld-pair-b 1.4s ease-in-out infinite; }
@keyframes ld-pair-a { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(30px); } }
@keyframes ld-pair-b { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-30px); } }
/* 타로 카드 뒤집힘 */
.ld-art:has(.ld-card) { perspective: 400px; }
.ld-card { left: 44px; top: 0; width: 56px; height: 90px; transform-style: preserve-3d; animation: ld-flip 1.6s ease-in-out infinite; }
.ld-face { inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ld-front { background: var(--brand-700); border: 1px solid var(--brand-200); box-shadow: inset 0 0 0 4px var(--brand-700), inset 0 0 0 5px rgba(255, 255, 255, .55); }
.ld-back { background: var(--brand-100); border: 2px solid var(--brand-600); transform: rotateY(180deg); }
.ld-back::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--brand-600); transform: rotate(45deg); border-radius: 2px; }
@keyframes ld-flip { 0%, 15% { transform: rotateY(0); } 55%, 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
/* 달력 칸에 도장 */
.ld-art:has(.ld-cell) { width: 132px; height: 84px; }
.ld-cell { width: 36px; height: 34px; border-radius: 6px; border: 2px solid rgba(163, 77, 51, .3); animation: ld-stamp 1.8s ease-in infinite; }
.ld-c0 { left: 0; top: 0; } .ld-c1 { left: 44px; top: 0; animation-delay: .25s; } .ld-c2 { left: 88px; top: 0; animation-delay: .5s; }
.ld-c3 { left: 0; top: 44px; animation-delay: .75s; } .ld-c4 { left: 44px; top: 44px; animation-delay: 1s; } .ld-c5 { left: 88px; top: 44px; animation-delay: 1.25s; }
@keyframes ld-stamp { 0%, 8% { background: transparent; border-color: rgba(163, 77, 51, .3); transform: scale(1); } 14% { transform: scale(1.25); } 22%, 80% { background: var(--brand-600); border-color: var(--brand-600); transform: scale(1); } 100% { background: transparent; border-color: rgba(163, 77, 51, .3); } }
/* 해가 떠오름 */
.ld-art { overflow: hidden; }
.ld-sun { left: 40px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: currentColor; animation: ld-rise 1.6s ease-out infinite; }
.ld-horizon { left: 0; right: 0; bottom: 0; height: 40px; background: var(--g00); border-top: 3px solid currentColor; }
@keyframes ld-rise { 0% { transform: translateY(54px); opacity: .5; } 70%, 100% { transform: translateY(0); opacity: 1; } }
/* 결과가 부드럽게 나타남 */
.r-in { animation: r-in .4s ease-out both; }
@keyframes r-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ld-art { display: none; }
  .ld-still { display: inline; }
  .loader { padding-top: 32px; }
  .r-in { animation: none; }
}

/* 시즌 허브 링크·기억하기·족보 다리 */
.intro .hub-line { margin-top: 8px; font-size: 16px; }
.hub-link { color: var(--brand-800); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mine { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 4px; }
.mine .btn { width: auto; height: 48px; margin-top: 0; padding: 0 16px; }
.remember { margin-top: 4px; }
.remember label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; }
.remember input { width: 22px; height: 22px; }
.remember .linkbtn { margin-top: 4px; padding: 8px 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text-sub); text-decoration: underline; cursor: pointer; }
.rec--text { grid-template-columns: 1fr; text-decoration: none; padding: 12px 0; }
.rec--text .rec-name { align-self: start; }
.bridge-line { margin-top: 8px; font-size: 16px; }

/* 초대 링크·가족 입력 */
.invite-banner { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--success-soft); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--g1000); }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.slot-row[hidden], .invite-banner[hidden], .invite-url[hidden] { display: none; }
.mine-parents { display: contents; }
.invite-sec .btn { margin-top: 12px; }
.invite-sec .hint a { color: inherit; text-decoration: underline; }
.invite-url { margin-top: 12px; }
.invite-url .btn { margin-top: 0; }

/* ---- 새 풀이 5개(주간·월간·오늘의 카드·가족·기일 달력) ---- */
.thumb.tp-week::before { background: linear-gradient(180deg, rgba(255,250,240,.5), transparent 60%); }
.thumb.tp-week .thumb-ask { top: 14%; transform: none; max-width: 52%; color: #3b2a1c; text-shadow: 0 0 10px rgba(255,248,235,.9), 0 0 3px rgba(255,248,235,.8); }
.thumb.tp-month::before { background: linear-gradient(90deg, rgba(5,10,35,.5), transparent 55%); }
.thumb.tp-month .thumb-ask { top: 14%; transform: none; }
.thumb.tp-dailycard::before { background: linear-gradient(200deg, rgba(255,248,235,.55), transparent 65%); }
.thumb.tp-dailycard .thumb-ask { left: auto; right: 16px; top: 14%; transform: none; text-align: right; max-width: 52%; color: #3b2a1c; text-shadow: 0 0 10px rgba(255,248,235,.9), 0 0 3px rgba(255,248,235,.8); }
.thumb.tp-family::before { background: linear-gradient(90deg, rgba(40,20,5,.6), transparent 55%); }
.thumb.tp-family .thumb-ask { top: 12%; transform: none; max-width: 44%; }
.thumb.tp-memorial::before { background: linear-gradient(180deg, rgba(255,246,230,.55), transparent 60%); }
.thumb.tp-memorial .thumb-ask { top: 12%; transform: none; max-width: 36%; font-size: 21px; color: #3b2a1c; text-shadow: 0 0 10px rgba(255,246,230,.9), 0 0 3px rgba(255,246,230,.8); }

/* 흐름 높낮이: 점수 숫자 대신 5칸 막대 */
.lvbar { display: inline-flex; gap: 3px; align-items: center; vertical-align: middle; }
.lvbar i { display: block; width: 14px; height: 8px; border-radius: 3px; background: var(--g400); }
.lvbar i.on { background: var(--brand-600); }
.lvbar--v { flex-direction: column-reverse; gap: 3px; }
.lvbar--v i { width: 20px; height: 7px; }
.mo-flow h4, .fam-pair h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mo-word { font-size: 14px; font-weight: 600; color: var(--text-sub); }

/* 주간: 7일 스트립 */
.wk-range { margin: -8px 0 12px; }
.wk-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 124px; padding: 8px 0 6px; border: 2px solid transparent; border-radius: 12px; background: var(--g100); color: var(--g1000); font: inherit; cursor: pointer; }
.wk-day:active { transform: scale(.96); }
.wk-w { font-size: 14px; font-weight: 600; color: var(--text-sub); }
.wk-d { font-size: 20px; font-weight: 800; line-height: 1.1; }
.wk-day .lvbar { margin: 2px 0; }
.wk-k { min-height: 16px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.wk-day.is-good { background: var(--success-soft); }
.wk-day.is-good .wk-k { color: #075445; }
.wk-day.is-rest { background: var(--info-soft); }
.wk-day.is-rest .wk-k { color: #0b4596; }
.wk-day.is-today .wk-w::after { content: "·"; }
.wk-day[aria-pressed="true"] { border-color: var(--g900); }
.wk-detail { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--g100); min-height: 120px; }
.wk-detail h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 18px; }
.wk-act { font-weight: 600; }
.wk-detail p + p { margin-top: 6px; }

/* 오늘의 카드: 눌러서 뒤집기 */
.dc-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0 20px; }
.dc-card { width: 176px; aspect-ratio: 5 / 8; padding: 0; border: 0; background: transparent; perspective: 800px; cursor: pointer; font: inherit; }
.dc-card:disabled { cursor: default; }
.dc-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s ease; }
.dc-card.is-open .dc-inner { transform: rotateY(180deg); }
.dc-back, .dc-front { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dc-back { background: var(--brand-700); box-shadow: inset 0 0 0 7px var(--brand-700), inset 0 0 0 8px rgba(255,255,255,.55); }
.dc-back::after { content: ""; width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; }
.dc-front { transform: rotateY(180deg); padding: 16px 14px; background: var(--brand-100); border: 2px solid var(--brand-600); text-align: center; }
.dc-name { font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--brand-800); }
.dc-ori { font-size: 15px; font-weight: 600; color: var(--g800); }
.dc-hint { font-size: 16px; color: var(--text-sub); }
.dc-kw { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.dc-kw .r-tag { margin-right: 0; }
.dc-msg { margin-bottom: 8px; }
.dc-body .r-box { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .dc-inner { transition: none; } }

/* 가족·기일 입력 */
.fam-hint { margin-bottom: 12px; }
.fam-member { margin: 0 0 16px; padding: 14px 14px 2px; border: 1px solid var(--g300); border-radius: 12px; }
.fam-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fam-t { font-size: 18px; }
.fam-head .linkbtn { padding: 8px 4px; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text-sub); text-decoration: underline; cursor: pointer; }
.fam-slots { margin-bottom: 8px; align-items: center; }
.fam-slots-t { font-size: 14px; color: var(--text-sub); }
.fam-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fam-bar .btn { width: auto; height: 48px; padding: 0 16px; }
.fam-count { font-size: 15px; color: var(--text-sub); }
.fam-member .ffld { grid-template-columns: 1fr; }
.fam-member .ffld > .lg, .fam-member .ffld > label:not(.k-field) { padding-top: 0; padding-bottom: 6px; }
.mem-date .seg--one { flex: none; width: 96px; align-self: stretch; }
.mem-date .k-field { flex: 1 1 0; padding: 0 12px; }

/* 가족 결과: 기운 분포 막대 */
.fam-els { display: grid; gap: 8px; margin-bottom: 12px; }
.fam-el { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 10px; font-size: 16px; }
.fam-el-n { font-weight: 700; }
.fam-el-track { height: 14px; border-radius: 7px; background: var(--g200); overflow: hidden; }
.fam-el-fill { display: block; height: 100%; border-radius: 7px; background: var(--brand-600); width: 0; }
.fam-el-fill.fe1 { width: 10%; } .fam-el-fill.fe2 { width: 20%; } .fam-el-fill.fe3 { width: 30%; } .fam-el-fill.fe4 { width: 40%; } .fam-el-fill.fe5 { width: 50%; }
.fam-el-fill.fe6 { width: 60%; } .fam-el-fill.fe7 { width: 70%; } .fam-el-fill.fe8 { width: 80%; } .fam-el-fill.fe9 { width: 90%; } .fam-el-fill.fe10 { width: 100%; }
.fam-el-c { font-size: 14px; color: var(--text-sub); text-align: right; }
.fam-plain { font-size: 16px; }
.fam-plain + .fam-plain { margin-top: 8px; }
.fam-pair .r-list { margin-top: 8px; font-size: 16px; }

/* 기일·명절 결과 */
.mm-list { margin: 0; padding: 0; list-style: none; }
.mm-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--g300); }
.mm-item:last-child { border-bottom: 0; }
.mm-date { flex: none; display: flex; flex-direction: column; width: 92px; line-height: 1.3; }
.mm-date b { font-size: 17px; }
.mm-date span { font-size: 14px; color: var(--text-sub); }
.mm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mm-title { font-size: 17px; font-weight: 600; }
.mm-left { font-size: 14px; color: var(--text-sub); }
.mm-item .r-tag { margin-right: 0; flex: none; }
.mm-gija + .mm-gija { margin-top: 20px; }
.mm-gija .r-box h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mm-gija .r-tag { margin-right: 0; }
.mm-act .btn { margin-bottom: 8px; }
.mm-act .hint { margin-bottom: 12px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-bottom: 12px; }
.cal-h { padding: 4px 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-sub); }
.cal-h.is-sun, .cal-c.is-sun .cal-n { color: var(--danger); }
.cal-c { position: relative; min-height: 58px; padding: 4px 2px; border-radius: 8px; background: var(--g100); text-align: center; }
.cal-c.is-empty { background: transparent; }
.cal-c.is-today { box-shadow: inset 0 0 0 2px var(--g900); }
.cal-n { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.cal-t { display: block; margin-top: 2px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.5; }
.cal-t--gija { background: var(--brand-100); color: var(--brand-800); }
.cal-t--bd { background: var(--success-soft); color: #075445; }
.cal-t--hol { background: var(--info-soft); color: #0b4596; }
.cal-dot { display: block; width: 5px; height: 5px; margin: 4px auto 0; border-radius: 50%; background: var(--g600); }
.cal-list { margin-top: 4px; font-size: 16px; }
/* 카카오톡 공유 버튼: 공유 팝업·초대 공유. 보조 버튼 모양을 따르고 위 버튼과 간격만 둔다 */
.sheet .btn-kakao { margin-top: 8px; }


.mo-flow.is-past { opacity: .55; }
.mo-flow.is-past .mo-past { font-weight: 500; }
.dc-easy { font-size: 14px; opacity: .85; }

/* 타로 카드 그림(78장+뒷면, 360x600). 그림이 없으면(404) JS 가 img 를 빼서 글자 카드가 그대로 보인다 */
.tarot-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 5; border-radius: 6px; object-fit: cover; background: var(--g100); }
.tarot-img.is-rev { transform: rotate(180deg); }
.r-cards > li.has-img { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 14px; align-items: start; }
.r-cards > li.has-img .tc-fig { grid-column: 1; }
.r-cards > li.has-img .tc-body { grid-column: 2; min-width: 0; }
.r-cards > li:not(.has-img) .tc-fig:empty { display: none; }
.tpick.has-back .tcard:not(.is-on) { background: url("/unse/tarot/back.webp") center / cover no-repeat; }
.tpick.has-back .tcard:not(.is-on)::before, .tpick.has-back .tcard:not(.is-on)::after { display: none; }
.dc-wrap.has-back .dc-back { background: url("/unse/tarot/back.webp") center / cover no-repeat; box-shadow: none; }
.dc-wrap.has-back .dc-back::after { display: none; }
.dc-front { overflow: hidden; }
.dc-front.has-img { padding: 0; background: transparent; border: 0; }
.dc-front.has-img .dc-name, .dc-front.has-img .dc-ori { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dc-front .tarot-img { position: absolute; inset: 0; height: 100%; border-radius: 12px; }
.dc-front .tarot-img { opacity: 0; }
.dc-front.has-img .tarot-img { opacity: 1; }

/* 결과 공유 블록(share.js) */
.share-row { display: grid; gap: 8px; }
.share-sec .hint { margin: 0 0 12px; }
.share-sec .share-status { margin: 8px 0 0; min-height: 0; }
.share-url { margin-top: 12px; }
.share-url[hidden] { display: none; }
.share-url input { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; }
.tc-body .r-paras + p, .tc-body .r-paras + .r-paras, .tc-body p + .r-paras { margin-top: 12px; }

/* 운세 허브 안내 구역(크롤러가 읽는 정적 본문, 2026-11-18) */
.seo-info { padding-top: 28px; padding-bottom: 12px; }
.seo-info p { color: var(--text-sub); font-size: 16px; line-height: 1.7; margin-top: 8px; }
.seo-info .seo-sub { font-size: 17px; margin-top: 18px; }
.seo-zodiac { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seo-zodiac a { display: block; padding: 10px 6px; text-align: center; border: 1px solid var(--line, #e5e5e5); border-radius: 10px; text-decoration: none; }
@media (min-width: 640px) { .seo-zodiac { grid-template-columns: repeat(6, 1fr); } }

/* 바로가기 8칸(2026-11-18) */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; padding-top: 16px; padding-bottom: 4px; }
.quick-i { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--g1000); font: 500 14px/1.25 var(--font); cursor: pointer; }
.quick-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--g100); }
.quick-ic .ic { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick-n { text-align: center; }
.quick-dot { position: absolute; top: 0; right: calc(50% - 32px); width: 9px; height: 9px; border-radius: 50%; background: #e5484d; }
/* 오늘·내일·날짜 고르기 */
.day-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.day-btn { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--g200); color: var(--g900); font: 500 15px/1 var(--font); cursor: pointer; }
.day-btn.is-on { background: var(--g1000); color: #fff; }
.day-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-sub); }
.day-pick input { height: 38px; padding: 0 10px; border: 1px solid var(--g300, #d5d5d5); border-radius: 10px; font: 15px/1 var(--font); background: #fff; color: var(--g1000); }
/* 만세력 표 */
.mt-wrap { overflow-x: auto; }
.mt { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 300px; }
.mt-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt-h { padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--text-sub); text-align: center; border-bottom: 1px solid var(--g200); }
.mt-l { width: 66px; padding: 10px 4px; font-size: 13px; font-weight: 500; color: var(--text-sub); text-align: left; }
.mt-c { padding: 10px 4px; text-align: center; border-bottom: 1px solid var(--g200); font-size: 15px; }
.mt-big { display: block; font-size: 30px; font-weight: 700; line-height: 1.2; }
.mt-sm { display: block; font-size: 13px; color: var(--text-sub); font-weight: 400; }
td.mt-sm { display: table-cell; font-size: 14px; color: var(--g1000); }
.el-wood { color: #1f8a4c; } .el-fire { color: #d9402b; } .el-earth { color: #a8731a; } .el-metal { color: #5b6573; } .el-water { color: #2358c9; }
.el-wood .mt-sm, .el-fire .mt-sm, .el-earth .mt-sm, .el-metal .mt-sm, .el-water .mt-sm { color: var(--text-sub); }
.mt-bars { display: grid; gap: 10px; margin-top: 4px; }
.mt-bar { display: grid; grid-template-columns: 24px 1fr 36px; align-items: center; gap: 10px; font-size: 15px; }
.mt-track { height: 12px; border-radius: 6px; background: var(--g200); overflow: hidden; }
.mt-fill { display: block; height: 100%; border-radius: 6px; }
.el-bg-wood { background: #1f8a4c; } .el-bg-fire { background: #d9402b; } .el-bg-earth { background: #c28b2c; } .el-bg-metal { background: #7a8594; } .el-bg-water { background: #2358c9; }
.mt-en { text-align: right; color: var(--text-sub); }

/* 카카오톡 보내기 버튼: 카카오 노란색(#FEE500)·검정 말풍선 심볼·반투명 검정 글자(카카오 디자인 가이드) */
.btn.btn-kakao { background: #FEE500; color: rgba(0, 0, 0, .85); gap: 8px; }
.btn.btn-kakao:active { background: #F2D900; }
.btn.btn-kakao::before { content: ""; flex: none; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3C6.48 3 2 6.58 2 11c0 2.86 1.87 5.37 4.68 6.78l-.95 3.5c-.08.3.26.54.52.36l4.2-2.8c.5.06 1.02.09 1.55.09 5.52 0 10-3.58 10-8S17.52 3 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* X·페이스북 공유 버튼: 각 서비스 로고 색(X 검정, 페이스북 #1877F2)과 흰 로고 */
.btn#shareX, .btn#shareFb { gap: 8px; color: #fff; }
.btn#shareX { background: #000; }
.btn#shareX:active { background: #2b2b2b; }
.btn#shareFb { background: #1877F2; }
.btn#shareFb:active { background: #1465d3; }
.btn#shareX::before, .btn#shareFb::before { content: ""; flex: none; width: 18px; height: 18px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.btn#shareX::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E"); }
.btn#shareFb::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M13.5 22v-8.2h2.8l.5-3.4h-3.3V8.3c0-.98.4-1.8 1.9-1.8h1.5V3.6S15.9 3.4 14.7 3.4c-2.6 0-4.3 1.6-4.3 4.4v2.6H7.5v3.4h2.9V22z'/%3E%3C/svg%3E"); }

/* 올해의 화두(신년운세 맨 위) */
.hwadu { margin: 8px 0 12px; padding: 20px 18px; border-radius: 16px; background: var(--g100); }
.hwadu-k { margin: 0 0 4px; font-size: 14px; color: var(--text-sub); }
.hwadu-t { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.35; color: var(--g1000); }
.hwadu-s { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--g800); }
/* 날짜 달력 */
.dcal-host { margin-top: 12px; }
.dcal-legend { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--text-sub); }
.dcal-sw { display: inline-block; width: 18px; height: 18px; border-radius: 5px; }
.dcal-m { margin-bottom: 18px; }
.dcal-m h4 { margin: 0 0 8px; font-size: 16px; }
.dcal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dcal-w span { text-align: center; font-size: 12px; color: var(--text-sub); padding-bottom: 2px; }
.dcal-d { aspect-ratio: 1 / 1; display: grid; place-items: center; border: 2px solid transparent; border-radius: 8px; font: 500 14px/1 var(--font); cursor: pointer; padding: 0; }
.dcal-d.is-today { border-color: var(--g1000); }
.lv1 { background: #EEF0F2; color: #5b6573; } .lv2 { background: #F4E3DB; color: #3a2218; } .lv3 { background: #EBC7B8; color: #3a2218; } .lv4 { background: #D9917A; color: #2a1008; } .lv5 { background: #A34D33; color: #fff; }
/* 최근 본 풀이 */
.recent { padding-top: 12px; padding-bottom: 0; }
.recent-h { display: flex; align-items: baseline; justify-content: space-between; }
.recent-t { margin: 0; font-size: 17px; font-weight: 700; color: var(--g1000); }
.recent-x { border: 0; background: transparent; color: var(--text-sub); font: 14px/1 var(--font); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.recent-c { padding-left: 0; padding-right: 0; padding-top: 8px; padding-bottom: 4px; }

/* 결과 그래픽 */
.viz { margin: 4px 0 14px; }
.viz .r-basis { margin-top: 8px; }
.r-curve.mbars, .r-curve.astrip { background: var(--g100); }
.ic--h { display: inline-block; width: 20px; height: 20px; margin: 0 8px -3px 0; color: var(--brand-600, #A34D33); }
h3.has-ic, h4.has-ic { display: flex; align-items: center; }
h3.has-ic .ic--h, h4.has-ic .ic--h { margin: 0 8px 0 0; flex: none; }
.viz-venn { text-align: center; padding: 8px 0 2px; }
.venn { width: min(300px, 100%); height: auto; }
.lucky { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 12px 0 10px; }
.lucky-i { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.lucky-dots { display: flex; }
.lucky-dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); margin-left: -8px; }
.lucky-dot:first-child { margin-left: 0; }
.lucky-l { font-size: 13px; color: var(--text-sub); text-align: center; }
.lucky-compass { display: block; }
.lucky-nums { display: flex; gap: 6px; }
.lucky-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--g100); font: 700 16px/1 var(--font); font-style: normal; color: var(--g1000); }
.date-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.date-head h4 { margin: 0; }
.dbadge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 58px; border-radius: 12px; background: #fff; border: 1px solid var(--g300, #d5d5d5); overflow: hidden; }
.dbadge-m { font-style: normal; font-size: 12px; width: 100%; text-align: center; background: var(--brand-600, #A34D33); color: #fff; padding: 2px 0; }
.dbadge-d { font-size: 22px; line-height: 1.1; }
.dbadge-w { font-style: normal; font-size: 12px; color: var(--text-sub); }
.zhero { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; }
.zhero-img { width: 120px; height: 120px; object-fit: contain; flex: none; }
.zhero-n { margin: 0; font-size: 20px; font-weight: 700; }

/* 운세 안내 링크 목록과 달력 표(검색용 정적 페이지) */
.seo-links, .zp-more { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links a, .zp-more a { display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--g200); color: var(--g900); font-size: 15px; text-decoration: none; }
.dtab-wrap { overflow-x: auto; }
.dtab { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtab th, .dtab td { white-space: nowrap; }
.dtab th { padding: 8px 5px; text-align: left; font-weight: 600; color: var(--text-sub); border-bottom: 1px solid var(--g300, #d5d5d5); }
.dtab td { padding: 8px 5px; border-bottom: 1px solid var(--g200); }
.dtab-son td { background: var(--brand-100, #f6e7e1); font-weight: 600; }

/* 도구 페이지(음력 변환기·신살 확인) */
.tool { margin: 16px 0 8px; padding: 18px 16px; border-radius: 16px; background: var(--g100); }
.tl-form { display: grid; gap: 14px; }
.tl-f { display: grid; gap: 6px; }
.tl-l { font-size: 14px; font-weight: 600; color: var(--text-sub); }
.tl-seg { display: flex; gap: 8px; }
.tl-r { flex: 1; }
.tl-r input { position: absolute; opacity: 0; pointer-events: none; }
.tl-r span { display: grid; place-items: center; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--g300, #d5d5d5); font: 600 16px/1 var(--font); cursor: pointer; }
.tl-r input:checked + span { background: var(--g1000); color: #fff; border-color: var(--g1000); }
.tl-r input:focus-visible + span { outline: 2px solid var(--brand-600, #A34D33); outline-offset: 2px; }
.tl-date { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.tl-i { height: 48px; padding: 0 12px; border: 1px solid var(--g300, #d5d5d5); border-radius: 12px; background: #fff; font: 17px/1 var(--font); color: var(--g1000); width: 100%; box-sizing: border-box; }
.tl-leap { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tl-msg { margin: 0; min-height: 0; color: #b3261e; font-size: 15px; }
.tl-out { margin-top: 12px; }
.tl-card { padding: 16px; border-radius: 12px; background: #fff; }
.tl-big { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.tl-sub { margin: 4px 0 0; font-size: 15px; color: var(--text-sub); line-height: 1.55; }
.tl-h { margin: 18px 0 8px; font-size: 17px; }
.tl-item { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--g200); }
.tl-item.is-found { border-color: var(--brand-600, #A34D33); }
.tl-item.is-focus { box-shadow: 0 0 0 2px var(--g1000); }
.tl-it { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tl-badge { font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--g200); color: var(--text-sub); }
.tl-badge.on { background: var(--brand-600, #A34D33); color: #fff; }
.tl-note { margin: 14px 0 0; font-size: 14px; color: var(--text-sub); }
