:root {
  --night: #15172E;
  --dawn: #F2F2F6;
  --moon: #EAE6DA;
  --ivory: #F4F2EA;
  --ash: #5A5C72;
  --line: #D9D8E2;
  --paper: #FFFFFF;
  --muted: #E7E6EE;
  --serif: 'Gowun Batang', serif;
  --sans: 'IBM Plex Sans KR', system-ui, -apple-system, sans-serif;
}

/* 언어판 글꼴과 줄바꿈. 일본어에 keep-all 을 쓰면 가나가 이어진 문장이 줄을 넘지 못해 normal + strict 로 둔다. */
:root:lang(en) { --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif; }
:root:lang(ja) { --serif: 'Shippori Mincho', serif; --sans: 'IBM Plex Sans JP', system-ui, -apple-system, sans-serif; }
:root:lang(zh) { --serif: 'Noto Serif TC', serif; --sans: 'Noto Sans TC', system-ui, -apple-system, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dawn); color: var(--night); font-family: var(--sans); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--night); }
a:hover { color: #3A3D5C; }
:focus-visible { outline: 2px solid var(--night); outline-offset: 2px; }
/* 어두운 카드 안에서는 밤색 테두리가 안 보이므로 밝은 색으로 */
.char-card :focus-visible, .pair-card :focus-visible { outline-color: #F4F2EA; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.site-header, main, .site-footer { max-width: 480px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 700; text-decoration: none; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.site-footer { padding-top: 32px; padding-bottom: 40px; font-size: 13px; color: var(--ash); }
.site-footer p { margin: 4px 0; }
.site-footer a { margin-right: 12px; color: var(--ash); }
html:lang(ja) body, html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: normal; line-break: strict; }
html:lang(zh) body, html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { word-break: normal; line-break: strict; }

h1, h2, h3 { line-height: 1.3; margin: 0; word-break: keep-all; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 8px; }
.hero h1 { font-family: var(--serif); font-size: 36px; font-weight: 700; }
.lead { margin: 0; color: var(--ash); }
.ganji { margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ganji-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; width: 100%; max-width: 340px; }
.tile { height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 11px; }
.ganji figcaption { font-size: 13px; color: var(--ash); }
.el-0 { background: #26774A; color: #fff; }
.el-1 { background: #C23B25; color: #fff; }
.el-2 { background: #C9921A; color: var(--night); }
.el-3 { background: var(--moon); color: var(--night); box-shadow: inset 0 0 0 1px #B7B3A6; }
.el-4 { background: #2B3A7A; color: #fff; }

.form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form label.field { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: block; padding: 0; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row2.single { grid-template-columns: minmax(0, 1fr); }
.lunar-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.input { width: 100%; height: 48px; border: 1px solid #86879E; border-radius: 12px; padding: 0 12px; font: 400 16px var(--sans); color: var(--night); background: var(--paper); }
.input:disabled { background: var(--muted); color: var(--ash); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #E4E3EC; border-radius: 12px; padding: 4px; }
.seg button { height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--ash); font: 400 15px var(--sans); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--night); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ash); }
.seg button:disabled { opacity: 0.55; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--ash); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--night); }
.hint { font-size: 13px; color: var(--ash); margin: 6px 0 0; }
.form details summary { padding: 11px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.radio { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 10px 0; }
.radio input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--night); }
.error { color: #A3241A; font-size: 14px; margin: 0; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 14px; font: 700 16px var(--sans); text-decoration: none; cursor: pointer; transition: transform 120ms ease-out; }
.btn:active { transform: scale(0.97); }
.btn-primary { height: 54px; border: 0; background: var(--night); color: var(--ivory); font-size: 17px; }
.btn-moon { height: 48px; border: 0; background: var(--moon); color: var(--night); }
.btn-ghost { height: 48px; border: 1px solid rgba(244,242,234,0.5); background: transparent; color: var(--ivory); }
.btn-outline { height: 48px; border: 1.5px solid var(--night); background: transparent; color: var(--night); }
.privacy { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ash); text-align: center; }

.result { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.result > :empty:not([role]) { display: none; }
.char-card { position: relative; overflow: hidden; background: var(--night); color: var(--ivory); border-radius: 28px; padding: 30px 24px 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.char-card::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; opacity: 0.6;
  box-shadow: 38px 34px 0 #F4F2EA, 22px 96px 0 #F4F2EA, 300px 58px 0 #F4F2EA, 320px 150px 0 #F4F2EA, 30px 236px 0 #F4F2EA, 280px 300px 0 #F4F2EA; }
.when { font-size: 13px; color: #B9B8CC; }
.emblem { width: 184px; height: 184px; border-radius: 50%; background: var(--el, var(--moon)); color: var(--glyph, var(--night)); box-shadow: 0 0 0 10px rgba(234,230,218,0.10); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 84px; line-height: 1; }
.char-card h2 { font-family: var(--serif); font-size: 48px; line-height: 1.15; }
.ilju { font-size: 16px; color: #B9B8CC; }
.line { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.65; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(244,242,234,0.32); font-size: 14px; }
.card-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }

.warnings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.warnings li { background: #FBF3DD; color: #5E4300; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.section-head h2, .block h2 { font-size: 21px; font-weight: 700; }
.section-head span { font-size: 13px; color: var(--ash); }
.block { display: flex; flex-direction: column; gap: 12px; }
.block + .block { border-top: 1px solid var(--line); padding-top: 24px; }
/* 결과 묶음(.result) 밖에서 이어지는 블록은 아래 여백이 없어 다음 구분선에 글이 붙는다 */
main > .block:has(+ .block) { padding-bottom: 28px; }
.block p { margin: 0; }
.pillars { width: calc(100% + 12px); margin: 0 -6px; border-collapse: separate; border-spacing: 6px; table-layout: fixed; text-align: center; }
.pillars th { font-size: 13px; font-weight: 600; color: var(--ash); }
.pillars th.me { color: var(--night); font-weight: 700; }
.pillars td { background: var(--paper); border-radius: 10px; padding: 10px 0; }
.pillars td.me { box-shadow: inset 0 0 0 2px var(--night); }
.pillars td.empty { background: var(--muted); color: var(--ash); font-size: 13px; }
.pillars .h { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.pillars .k { font-size: 12px; color: var(--ash); }
.calc { border-top: 1px solid var(--line); padding-top: 4px; }
.calc summary { padding: 11px 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.calc dl { margin: 4px 0 8px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.55; }
.calc dt { font-weight: 600; }
.calc dd { margin: 2px 0 0; color: var(--ash); }
.bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.bar span { display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ash); }
.legend .top { color: var(--night); font-weight: 700; }
.teaser { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; border-radius: 16px; border: 2px solid var(--night); background: var(--paper); text-decoration: none; }
.teaser strong { display: block; font-size: 18px; }
.teaser span { font-size: 14px; color: var(--ash); }
.ad-slot { min-height: 120px; border-radius: 12px; background: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ash); }

.today-head { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 28px; }
.today-head .date { margin: 0; font-size: 14px; font-weight: 600; color: var(--ash); }
.today-head h1 { font-family: var(--serif); font-size: 34px; font-weight: 700; }
.center-link { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; }
.link-btn { min-height: 44px; border: 0; background: none; padding: 0; font: 600 14px var(--sans); color: var(--night); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.day-title { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.35; }
.lucky { display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: 16px; padding: 14px 16px; }
.lucky .swatch { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(21,23,46,0.15); }
.lucky strong { display: block; font-size: 16px; }
.lucky span { font-size: 14px; color: var(--ash); }
.tarot-block { align-items: stretch; }
/* 뒤집기: 3D 회전 대신 가로로 접었다 펴는 두 단계(브라우저마다 뒷면 숨김이 달라서) */
.tarot { align-self: center; width: 200px; height: 320px; border: 0; padding: 0; background: none; cursor: pointer; margin: 8px 0; }
.tarot-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform 200ms cubic-bezier(0, 0, 0.2, 1); }
.tarot.half .tarot-inner { transform: scaleX(0); transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.tarot-back, .tarot-front { position: absolute; inset: 0; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.tarot-front { display: none; }
.tarot.is-flipped .tarot-front { display: flex; }
.tarot.is-flipped .tarot-back { display: none; }
.tarot-back { background: var(--night); color: var(--moon); box-shadow: inset 0 0 0 10px var(--night), inset 0 0 0 11px rgba(234,230,218,0.45); font-family: var(--serif); font-size: 22px; overflow: hidden; }
.tarot-back::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; opacity: 0.7;
  box-shadow: 40px 48px 0 #F4F2EA, 150px 70px 0 #F4F2EA, 62px 250px 0 #F4F2EA, 160px 270px 0 #F4F2EA, 100px 30px 0 #F4F2EA, 30px 160px 0 #F4F2EA, 172px 170px 0 #F4F2EA; }
.tarot-front { background: var(--paper); color: var(--night); box-shadow: inset 0 0 0 2px var(--night), inset 0 0 0 10px var(--paper), inset 0 0 0 11px var(--line); padding: 20px; text-align: center; }
.t-num { font-family: var(--serif); font-size: 28px; }
.t-name { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.25; }
.t-en { font-size: 13px; color: var(--ash); }
.t-dir { font-size: 13px; font-weight: 700; border: 1px solid var(--night); border-radius: 999px; padding: 4px 10px; }
.tarot-text { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.7; text-align: center; min-height: 1.7em; }
.daily-cta { margin-top: -12px; }

.tarot-face { width: 120px; height: 192px; flex: none; border-radius: 12px; background: var(--paper); color: var(--night); box-shadow: inset 0 0 0 2px var(--night), inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; }
.tarot-face .t-num { font-size: 20px; }
.tarot-face .t-name { font-size: 20px; }
.tarot-face .t-en { font-size: 11px; }
.tarot-face.small { width: 100%; height: auto; aspect-ratio: 5 / 8; }
.tarot-face.small .t-name { font-size: 16px; }
.tarot-face.small .t-en { display: none; }
.crumbs { font-size: 14px; }
a.crumbs { display: inline-flex; min-height: 44px; align-items: center; }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.tarot-hero { display: flex; gap: 18px; align-items: center; }
.tarot-hero h1 { font-size: 30px; }
.tarot-hero-text { min-width: 0; }
/* 영어는 "compatibility" 같은 긴 단어가 320px 화면에서 엠블럼 옆에 안 들어간다 */
:root:lang(en) .tarot-hero h1 { font-size: clamp(24px, 8vw, 30px); }
.tarot-hero .lead { margin-top: 10px; }
.kw { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kw div, .symbols div { background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.kw dt, .symbols dt { font-size: 13px; font-weight: 700; }
.kw dd, .symbols dd { margin: 4px 0 0; font-size: 15px; color: #2D2F45; }
.symbols { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tarot-page section { display: flex; flex-direction: column; gap: 8px; }
.tarot-page h3 { font-size: 16px; margin-top: 6px; }
.tarot-page p { margin: 0; line-height: 1.75; }
.card-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; font-weight: 600; }
.card-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card-grid a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; align-items: center; }
.kw-one { font-size: 13px; color: var(--ash); }
.tarot-more { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; }

.deck { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.deck-card { position: relative; aspect-ratio: 5 / 8; border: 0; padding: 0; border-radius: 8px; background: var(--night); box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 5px rgba(234,230,218,0.45); color: var(--moon); font: 700 16px var(--sans); cursor: pointer; transition: transform 160ms ease-out, opacity 160ms ease-out; }
.deck-card[aria-pressed="true"] { transform: translateY(-6px); box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 5px var(--moon), 0 0 0 2px var(--moon); }
.deck-card[aria-pressed="true"]::after { content: attr(data-order); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.deck-card[aria-disabled="true"] { cursor: default; }
.deck-card[aria-disabled="true"]:not([aria-pressed="true"]) { opacity: 0.4; }
.spread { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spread-one { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.spread-pos { font-size: 13px; font-weight: 700; color: var(--ash); }
.spread-text { display: flex; flex-direction: column; gap: 18px; }
.spread-text h3 { font-size: 16px; }
.spread-text p { margin: 6px 0; line-height: 1.75; }
.spread-text a { font-size: 14px; font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.spread-advice { background: var(--paper); border-radius: 14px; padding: 14px 16px; }
.mini-emblem { width: 44px; height: 44px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; box-shadow: inset 0 0 0 1px rgba(21,23,46,0.12); }
.mini-emblem.big { width: 96px; height: 96px; font-size: 48px; }
.friend-card { display: flex; gap: 12px; align-items: center; background: var(--paper); border-radius: 16px; padding: 14px 16px; margin-bottom: 8px; }
.friend-card strong { display: block; }
.friend-card span { font-size: 14px; color: var(--ash); }
.pair-card { background: var(--night); color: var(--ivory); border-radius: 28px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pair { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.pair-one { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.pair-one .mini-emblem { width: 72px; height: 72px; font-size: 36px; }
.pair-one strong { font-family: var(--serif); font-size: 20px; }
.pair-one span:last-child { font-size: 13px; color: #B9B8CC; }
.pair-x { font-size: 22px; color: #B9B8CC; }
.pair-card h2 { font-family: var(--serif); font-size: 34px; }
.tti-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* 이름이 긴 언어(일본어·영어)에서는 궁합 등급이 좁은 칸에 접히지 않고 다음 줄로 내려간다 */
.tti-list li { background: var(--paper); border-radius: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.tti-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.tti-list .rels { font-size: 13px; color: var(--ash); margin-left: auto; white-space: nowrap; }
.tti-list p { flex-basis: 100%; margin: 4px 0 0; }
/* 오늘의 분야별 운: 등급 글자는 색과 함께 글자로도 적는다 */
.fortune { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fortune li { background: var(--paper); border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fortune p { flex-basis: 100%; margin: 2px 0 0; }
.grade { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
/* 오행 색(초록=나무, 빨강=불)과 헷갈리지 않게 팔레트 색만 쓴다. 좋음=달색, 보통=회색, 조심=경고색 */
.grade.g2 { background: var(--moon); color: var(--night); box-shadow: inset 0 0 0 1px #B7B3A6; }
.grade.g1 { background: var(--muted); color: var(--ash); }
.grade.g0 { background: #FBF3DD; color: #5E4300; }
.tti-list .grade, .fortune .grade { margin-left: auto; }
.fortune li > a { font-weight: 700; color: var(--night); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; display: inline-flex; align-items: center; }
/* 분야 이동 링크: 2열 격자. 제목은 두 칸을 차지한다 */
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.more-grid h2, .more-grid > p { grid-column: 1 / -1; }
nav.more-grid { padding-bottom: 12px; }
.more-grid .btn { min-height: 44px; height: auto; padding: 10px 8px; font-size: 14px; line-height: 1.3; }
.more-grid .btn[aria-current="page"] { background: var(--night); color: var(--ivory, #F4F2EA); border-color: var(--night); }
.tti-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tti-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; background: var(--paper); border-radius: 14px; text-decoration: none; }
.tti-grid span { font-size: 13px; color: var(--ash); }

.ilju-line { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.6; }
.chips.light { justify-content: flex-start; }
.chips.light li { border-color: var(--line); background: var(--paper); color: var(--night); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facts div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: 12px; font-weight: 700; color: var(--ash); }
.facts dd { margin: 2px 0 0; font-size: 15px; }
.ilju-more { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ivory); }

h3.sub { font-size: 17px; margin-top: 8px; }
.month-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mcell { min-height: 72px; border-radius: 12px; background: #E7E6EE; color: var(--ash); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; }
.mcell strong { font-size: 15px; }
.mcell.marked, .mcell.open { background: var(--paper); color: var(--night); }
.mcell.open { box-shadow: inset 0 0 0 2px var(--night); }
.preview { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.preview h3 { font-size: 17px; }
.preview-text { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.8; }
.locked { position: relative; background: var(--paper); border-radius: 16px; padding: 22px 20px; overflow: hidden; }
.locked-bars { filter: blur(5px); display: flex; flex-direction: column; gap: 12px; }
.locked-bars span { display: block; height: 12px; border-radius: 6px; background: #DEDCE7; }
.locked-bars span:nth-child(1) { width: 30%; background: #CFCDDB; }
.locked-bars span:nth-child(2) { width: 94%; }
.locked-bars span:nth-child(3) { width: 80%; }
.locked-bars span:nth-child(4) { width: 90%; }
.locked-bars span:nth-child(5) { width: 64%; }
.locked-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: rgba(255,255,255,0.62); padding: 0 20px; }
.locked-cover span { font-size: 14px; color: var(--ash); }
.center { text-align: center; align-self: center; }
.best { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.best div { background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.best dt { font-size: 13px; font-weight: 700; }
.best dd { margin: 4px 0 0; }
.months { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.months li { background: var(--paper); border-radius: 14px; padding: 14px 16px; }
.mhead { display: flex; justify-content: space-between; align-items: baseline; }
.mhead span { font-size: 13px; color: var(--ash); }
.months p { margin: 6px 0 0; line-height: 1.7; }

.lost { padding-top: 32px; }
.lost .emblem { width: 120px; height: 120px; font-size: 56px; }
.lost-links { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }

.doc { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.doc h1 { font-family: var(--serif); font-size: 32px; }
.doc h2 { font-size: 19px; margin-top: 12px; }
.doc p, .doc li { color: #2D2F45; }
.doc p, .doc ul { margin: 0; }
/* 글머리표 목록만. 카드 목록(.tti-list, .chips 등 클래스가 있는 ul)은 각자 스타일을 쓴다 */
.doc ul:not([class]) { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
:root:lang(en) .doc th, :root:lang(en) .doc td { hyphens: auto; overflow-wrap: anywhere; }
/* 분야별 운의 십신 표: 좁은 화면에서는 세 칸을 두 줄로 접는다 */
.fortune-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.fortune-table th, .fortune-table td { border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: left; vertical-align: top; }
.fortune-table th[scope="row"] { white-space: nowrap; font-weight: 700; }
@media (max-width: 420px) {
  .fortune-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fortune-table tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .fortune-table th, .fortune-table td { border: 0; padding: 0; }
  .fortune-table td:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
  .tarot-inner { transition: none; }
  .deck-card { transition: none; }
}
