:root {
  /* 2026-11-04 파스텔 테마: 20~50대 여성 취향, 귀여운 12지신에 맞춘 밝고 부드러운 화면 */
  --bg: #fff6f3;
  --bg2: #fdebef;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(222, 160, 182, 0.38);
  --text: #4b3942;
  --ink: #3b2a33;
  --muted: #7d6873;   /* v0.50.4 글자 대비 올림(예전 #9b8590) */
  --neon: #ec7fa0;      /* 주 색: 로즈 핑크 */
  --neon2: #ffa38f;     /* 보조: 코랄 */
  --lav: #b49ddb;       /* 보조: 라벤더 */
  --mint: #8fd4b6;
  --rose-soft: #fde4ea;
  --gold: #d0843a;      /* 제목·강조: 꿀색 */
  --wood: #4fae82;
  --fire: #ef6f88;
  --earth: #d99a3c;
  --metal: #9690ad;
  --water: #5d9ad8;
  --radius: 22px;
  --shadow: 0 6px 20px rgba(214, 120, 150, 0.12), 0 1px 3px rgba(150, 90, 120, 0.06);
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --serif: 'Gowun Dodum', 'Noto Sans KR', sans-serif;
  --mono: 'Gowun Dodum', 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(900px 520px at 85% -8%, #ffe1ea 0%, transparent 62%),
              radial-gradient(760px 480px at -12% 30%, #efe6ff 0%, transparent 60%),
              radial-gradient(800px 520px at 110% 95%, #e3f6ee 0%, transparent 60%),
              var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(236, 127, 160, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(236, 127, 160, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 0.9rem; }

header.top, main, footer.foot { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 28px; color: var(--ink);
  border: 2px solid var(--neon2); border-radius: 12px;
  box-shadow: 0 0 12px var(--neon2), inset 0 0 12px rgba(240, 118, 140, 0.4);
  text-shadow: none;
}
h1 { margin: 0; font-size: 1.35rem; letter-spacing: 0.02em; }
h1 em { font-style: normal; font-family: var(--mono); color: var(--neon); text-shadow: none; }
.tagline { margin: 0; font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  backdrop-filter: blur(10px);
}
.card h2, .card h3 { margin-top: 0; }
.card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.card h3 .tag { font-family: var(--mono); font-size: 0.7rem; color: var(--neon); border: 1px solid var(--neon); border-radius: 6px; padding: 1px 6px; }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
input[type="text"], input[type="date"], input[type="time"], select {
  font: inherit; color: var(--text);
  background: rgba(236, 127, 160, 0.04);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; color-scheme: light;
}
input:focus, select:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(236, 127, 160, 0.15); }
.row { display: flex; gap: 12px; align-items: end; }
.grow { flex: 1; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); padding-bottom: 12px; }
details.advanced { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
details.advanced summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
details.advanced[open] { display: grid; gap: 10px; }

button { font: inherit; cursor: pointer; border: none; }
button.primary {
  padding: 14px; border-radius: 14px; font-weight: 800; font-size: 1.05rem; color: #3b2a33;
  background: linear-gradient(90deg, var(--neon), #c9b6ec 50%, var(--neon2));
  box-shadow: 0 0 20px rgba(236, 127, 160, 0.35);
  transition: transform 0.1s;
}
button.primary:active { transform: scale(0.98); }
button.ghost, button.chip {
  color: var(--text); background: rgba(236, 127, 160, 0.05);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.85rem;
}
button.chip[aria-pressed="true"] { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 10px rgba(236, 127, 160, 0.3); }
button.ghost:hover, button.chip:hover { border-color: var(--neon); }

/* 탭 */
.tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
  padding: 8px 0; margin-top: 8px;
}
.tabs button {
  padding: 10px 4px; border-radius: 12px; color: var(--muted); background: transparent;
  font-weight: 600; font-size: 0.85rem; border: 1px solid transparent; white-space: nowrap; flex: 1 0 auto; padding-left: 10px; padding-right: 10px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--neon); background: rgba(236, 127, 160, 0.08); text-shadow: none; }
.main-tabs button { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 2px; padding: 8px 2px; font-size: 0.78rem; }
.main-tabs button i { font-style: normal; font-size: 1.2rem; line-height: 1; }
.subnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.subnav button { flex: none; border: 1px solid var(--line); background: rgba(236, 127, 160,0.04); color: var(--muted); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.subnav button[aria-current="page"] { color: #3b2a33; background: var(--neon); border-color: var(--neon); }

/* 사주 원국 */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.pillar { border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; background: rgba(236, 127, 160, 0.02); }
.pillar.me { border-color: var(--gold); box-shadow: 0 0 14px rgba(232, 160, 70, 0.25); }
.pillar .cap { font-size: 0.75rem; color: var(--muted); }
.pillar .god { font-size: 0.72rem; color: var(--muted); min-height: 1.1em; }
.char { font-family: var(--serif); font-size: 2.1rem; line-height: 1.15; margin: 4px 0; }
.char small { display: block; font-family: var(--sans); font-size: 0.68rem; opacity: 0.8; }
.el-0 { color: var(--wood); text-shadow: none; }
.el-1 { color: var(--fire); text-shadow: none; }
.el-2 { color: var(--earth); text-shadow: none; }
.el-3 { color: var(--metal); text-shadow: none; }
.el-4 { color: var(--water); text-shadow: none; }
.pillar.empty .char { color: var(--muted); opacity: 0.4; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
@media (max-width: 560px) { .split { grid-template-columns: 1fr; } }
.radar svg { width: 100%; max-width: 280px; display: block; margin: 0 auto; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 54px 1fr 40px; gap: 8px; align-items: center; font-size: 0.85rem; }
.bar .track { height: 10px; border-radius: 6px; background: rgba(236, 127, 160, 0.06); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 6px; box-shadow: 0 0 10px currentColor; }
.bar .num { font-family: var(--mono); text-align: right; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stat .k { font-size: 0.75rem; color: var(--muted); }
.stat .v { font-weight: 800; font-size: 1.05rem; }

/* 운세 */
.today-head { display: flex; gap: 16px; align-items: center; }
.score-ring { position: relative; width: 110px; height: 110px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score-ring .label b { font-size: 2rem; font-family: var(--mono); line-height: 1; }
.score-ring .label span { font-size: 0.72rem; color: var(--muted); }
.cats { display: grid; gap: 12px; }
.cat { border-left: 3px solid var(--neon); padding: 4px 0 4px 12px; }
.cat .top { display: flex; justify-content: space-between; font-weight: 700; }
.cat .top .num { font-family: var(--mono); color: var(--neon); }
.cat p { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.kit > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.kit .k { font-size: 0.75rem; color: var(--muted); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 6px; box-shadow: 0 0 8px currentColor; }
.mission { display: flex; gap: 12px; align-items: center; border: 1px dashed var(--neon2); border-radius: 14px; padding: 14px; }
.mission.done { border-style: solid; border-color: var(--wood); background: rgba(91, 181, 138, 0.06); }
.mission button { white-space: nowrap; }

/* 부적 공방 */
.controls { display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.workshop { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .workshop { grid-template-columns: 1fr; justify-items: center; } }
.charm-stage { width: 300px; max-width: 100%; border-radius: 14px; overflow: hidden; position: relative; }
.charm-stage svg { width: 100%; height: auto; display: block; }
.charm-stage.reveal { animation: reveal 0.7s ease-out; }
@keyframes reveal { from { transform: rotateY(90deg) scale(0.9); filter: brightness(3); } to { transform: none; filter: none; } }
.rarity-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; border: 1px solid currentColor; box-shadow: 0 0 10px currentColor; }
.formula { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); background: rgba(236, 127, 160, 0.03); border-radius: 10px; padding: 10px; overflow-x: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prob { font-size: 0.78rem; color: var(--muted); }
.prob span { margin-right: 10px; }
.collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.collection .mini { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.collection .mini svg { width: 100%; height: auto; display: block; }

/* 이모티콘 */
.emoji-main { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; }
@media (max-width: 560px) { .emoji-main { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.emoji-main svg, .emoji-set svg { width: 100%; height: auto; display: block; }
.emoji-main .stage { width: 240px; max-width: 100%; }
.emoji-set { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.emoji-set figure { margin: 0; text-align: center; font-size: 0.78rem; color: var(--muted); }

.foot { text-align: center; color: var(--muted); font-size: 0.75rem; padding: 24px 16px 40px; }
.foot p { margin: 4px 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--neon); color: var(--ink);
  padding: 10px 18px; border-radius: 18px; z-index: 20; font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(236, 127, 160, 0.3);
  width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; text-align: center; line-height: 1.45;
}

/* 생년월일 (양력/음력) */
fieldset.cal { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 4px; margin: 0; display: grid; gap: 10px; }
fieldset.cal legend { padding: 0 6px; color: var(--muted); font-size: 0.9rem; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: rgba(236, 127, 160, 0.04); border: 1px solid var(--line); border-radius: 12px; padding: 3px; width: fit-content; }
.seg label { display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 18px; border-radius: 9px; color: var(--muted); font-weight: 600; }
.seg input:checked + span { background: rgba(236, 127, 160, 0.12); color: var(--ink); box-shadow: inset 0 0 0 1px var(--neon); text-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--neon); }
.ymd { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.ymd input[type="number"] { font: inherit; color: var(--text); background: rgba(236, 127, 160, 0.04); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; color-scheme: light; width: 100%; }
.ymd input[type="number"]:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(236, 127, 160, 0.15); }
.leap-row { padding-bottom: 0 !important; }
.conv { margin: 0 0 8px; min-height: 1.4em; font-family: var(--mono); font-size: 0.82rem; }
.conv.err { color: var(--fire); }

/* 스토리 공유 */
.story-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .story-wrap { grid-template-columns: 1fr; justify-items: center; } }
.story-preview { width: 300px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #fff8f6; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 20px 60px rgba(120, 70, 90, 0.225); }
.story-preview img { width: 100%; height: 100%; display: block; }
.story-preview .loading { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }
.howto { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.88rem; }
.howto li { margin: 4px 0; }
.share-row { margin-top: 12px; }
.preview-note { border: 1px dashed var(--gold); border-radius: 12px; padding: 10px 12px; color: var(--gold); font-size: 0.85rem; margin-top: 12px; }

/* 입력칸 가독성: 드롭다운 글씨를 밝게, 화살표 직접 그림 */
select {
  -webkit-appearance: none; appearance: none;
  color: var(--ink) !important; font-weight: 600;
  background-color: #fff8f6 !important;
  background-image: linear-gradient(45deg, transparent 50%, #f4a6bd 50%), linear-gradient(135deg, #f4a6bd 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 32px !important;
  border-color: rgba(179, 157, 219, 0.35) !important;
}
select option { background: #fff8f6; color: var(--ink); }
.ymd input[type="number"] { background-color: #fff8f6; color: var(--ink); font-weight: 600; border-color: rgba(179, 157, 219, 0.35); }
.ymd input::placeholder { color: var(--muted); }
.ymd label { color: #5a4651; font-weight: 600; }

/* 고민 선택 */
.concern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 10px; }
.concern-grid label { display: block; cursor: pointer; }
.concern-grid input { position: absolute; opacity: 0; pointer-events: none; }
.concern-grid span { display: grid; place-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(236, 127, 160, 0.03); color: #5a4651; font-size: 0.85rem; font-weight: 600; text-align: center; }
.concern-grid span i { font-style: normal; font-size: 1.3rem; }
.concern-grid input:checked + span { border-color: var(--neon2); color: var(--ink); background: rgba(240, 118, 140, 0.12); box-shadow: 0 0 12px rgba(240, 118, 140, 0.35); }
.concern-grid input:focus-visible + span { outline: 2px solid var(--neon); }

/* 캐릭터 */
.hero-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .hero-wrap { grid-template-columns: 1fr; justify-items: center; } }
.hero-stage { width: 300px; max-width: 100%; border-radius: 22px; background: radial-gradient(circle at 50% 45%, rgba(179, 157, 219, 0.25), transparent 70%), #fff8f6; border: 1px solid var(--line); }
.hero-stage svg { width: 100%; height: auto; display: block; }
.hero-stage.reveal { animation: pop 0.6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(0.7) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-title { margin: 0 0 4px; font-size: 1.2rem; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.slot { border: 1px dashed var(--line); border-radius: 14px; padding: 8px; text-align: center; min-height: 112px; display: grid; place-items: center; gap: 4px; font-size: 0.75rem; color: var(--muted); cursor: pointer; background: rgba(236, 127, 160, 0.02); }
.slot.filled { border-style: solid; border-color: var(--gold); color: var(--ink); }
.slot svg { width: 46px; height: auto; }
.slot.emote svg { width: 64px; }
.equip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.equip-list button { padding: 0; background: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.equip-list button.on { border-color: var(--gold); box-shadow: 0 0 10px rgba(232, 160, 70, 0.4); }
.equip-list svg { width: 100%; height: auto; display: block; }
.emote-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.emote-chips button { padding: 2px; border-radius: 12px; border: 1px solid var(--line); background: rgba(236, 127, 160, 0.03); color: var(--muted); font-size: 0.72rem; }
.emote-chips button[aria-pressed="true"] { border-color: var(--neon2); color: var(--ink); box-shadow: 0 0 10px rgba(240, 118, 140, 0.35); }
.emote-chips svg { width: 100%; height: auto; display: block; }
.concern-card { border: 1px solid var(--neon2); border-radius: 14px; padding: 14px; background: rgba(240, 118, 140, 0.06); }
.concern-card .big { font-family: var(--mono); font-size: 2rem; font-weight: 700; }

/* 성장·진화 */
.growth-head { display: flex; justify-content: space-between; align-items: end; }
.growth .lv { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--gold); text-shadow: none; line-height: 1.1; }
.streak { font-size: 0.95rem; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 120, 60, 0.6); background: rgba(255, 120, 60, 0.1); }
.streak b { color: #e07a3c; font-family: var(--mono); font-size: 1.1rem; }
.exp { position: relative; height: 22px; border-radius: 11px; background: rgba(236, 127, 160, 0.07); overflow: hidden; margin-top: 10px; }
.exp-fill { height: 100%; background: linear-gradient(90deg, #f6c47a, #f6b07a); box-shadow: 0 0 14px rgba(232, 160, 70, 0.6); border-radius: 11px; transition: width 0.6s; }
.exp span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: var(--ink); text-shadow: none; }
.evolve-btn { width: 100%; margin-top: 10px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 12px rgba(232, 160, 70, 0.4); transform: scale(1); } 50% { box-shadow: 0 0 30px rgba(232, 160, 70, 0.9); transform: scale(1.02); } }
.evo-road { display: flex; align-items: center; gap: 2px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.evo { margin: 0; flex: 1 0 58px; text-align: center; font-size: 0.66rem; color: var(--muted); }
.evo svg { width: 100%; height: auto; display: block; }
.evo.locked svg { filter: brightness(0) drop-shadow(0 0 4px rgba(179, 157, 219, 0.6)); opacity: 0.55; }
.evo.now { color: var(--gold); }
.evo.now svg { filter: drop-shadow(0 0 8px rgba(232, 160, 70, 0.7)); }
.evo-arrow { color: var(--muted); font-size: 1rem; }
.quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.quests li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 0.88rem; }
.quests li b { font-family: var(--mono); color: var(--gold); }
.quests li.done { opacity: 0.55; text-decoration: line-through; }
.quests li.done b { color: var(--wood); text-decoration: none; }
.evo-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(6px); padding: 16px; }
.evo-box { max-width: 360px; width: 100%; text-align: center; background: var(--card); border: 1px solid var(--gold); border-radius: 22px; padding: 20px; box-shadow: 0 0 40px rgba(232, 160, 70, 0.35); }
.evo-stage { position: relative; width: 260px; height: 325px; margin: 8px auto; }
.evo-stage > div { position: absolute; inset: 0; }
.evo-before { animation: evoOut 2.2s forwards; }
.evo-after { opacity: 0; animation: evoIn 2.2s forwards; }
.evo-flash { background: radial-gradient(circle, #fff 0%, rgba(236, 127, 160, 0) 70%); opacity: 0; animation: flash 2.2s forwards; pointer-events: none; }
@keyframes evoOut { 0% { filter: none; } 30% { filter: brightness(0) invert(1); } 45%, 100% { opacity: 0; filter: brightness(0) invert(1); transform: scale(1.1); } }
@keyframes evoIn { 0%, 50% { opacity: 0; transform: scale(0.6); filter: brightness(0) invert(1); } 70% { opacity: 1; filter: brightness(0) invert(1); transform: scale(1.08); } 100% { opacity: 1; filter: none; transform: none; } }
@keyframes flash { 0%, 35% { opacity: 0; } 50% { opacity: 1; } 75%, 100% { opacity: 0; } }

/* 단계 해금·궁합 */
.slot.locked { border-style: dashed; opacity: 0.6; cursor: not-allowed; background: repeating-linear-gradient(45deg, rgba(236, 127, 160,0.02), rgba(236, 127, 160,0.02) 6px, rgba(236, 127, 160,0.05) 6px, rgba(236, 127, 160,0.05) 12px); }
.perks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 0.8rem; }
.perks em { font-style: normal; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(232, 160, 70, 0.5); color: #c77a26; background: rgba(232, 160, 70, 0.08); }
.hero-stage { overflow: hidden; }
.friend-form { display: grid; gap: 10px; }
.friend-form input[type="text"] { font: inherit; color: var(--ink); background: #fff8f6; border: 1px solid rgba(179, 157, 219, 0.35); border-radius: 12px; padding: 12px 14px; }
.compat-stage { border-radius: 20px; overflow: hidden; }
.compat-stage svg { width: 100%; height: auto; display: block; }
.reasons { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 0.86rem; color: #5a4651; }
.reasons li { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.reasons b { color: var(--ink); margin-right: 6px; }
.reasons em { font-style: normal; float: right; font-family: var(--mono); color: var(--gold); }

/* 캐릭터 말투 */
.speech { position: relative; background: #fff; color: #3b2a33; border-radius: 16px; padding: 10px 14px; margin: 8px 0 12px; font-size: 0.9rem; font-weight: 600; line-height: 1.5; box-shadow: 0 6px 20px rgba(120, 70, 90, 0.158); }
.speech p { margin: 0; }
.speech p + p { margin-top: 4px; }
.speech::after { content: ''; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
.speech.left::after { left: -9px; top: 18px; bottom: auto; transform: none; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.speech.pop { animation: speechPop 0.35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes speechPop { from { transform: scale(0.85); opacity: 0.4; } to { transform: none; opacity: 1; } }
.say-row { display: flex; gap: 12px; align-items: flex-start; }
.say-face { width: 92px; flex: none; cursor: pointer; }
.say-face svg { width: 100%; height: auto; display: block; }
.hero-stage { cursor: pointer; }
.hero-stage.jump { animation: heroJump 0.5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes heroJump { 0% { transform: none; } 35% { transform: translateY(-14px) scale(1.03, 0.97); } 70% { transform: translateY(2px) scale(0.98, 1.02); } 100% { transform: none; } }
.pers { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: rgba(236, 127, 160, 0.03); }

/* 띠끼리 대화 */
.dialogue { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; background: rgba(236, 127, 160, 0.02); }
.dlg-title { font-size: 0.8rem; color: var(--gold); margin-bottom: 4px; }
.dlg-row { display: flex; gap: 8px; align-items: center; }
.dlg-row.right { justify-content: flex-end; }
.dlg-row .speech { flex: 1; margin: 6px 0; }
.dlg-face { flex: none; display: grid; justify-items: center; font-size: 0.7rem; color: var(--muted); }
.dlg-face svg { border-radius: 50%; background: radial-gradient(circle, rgba(179, 157, 219, 0.35), rgba(13, 10, 31, 0.9)); border: 2px solid var(--line); }
.speech.right::after { left: auto; right: -9px; top: 18px; bottom: auto; transform: none; border: 10px solid transparent; border-left-color: #fff; border-right: 0; }
.zmap-grid { display: grid; gap: 6px; }
.zmap { border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; background: rgba(236, 127, 160, 0.02); }
.zmap summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.zmap summary::-webkit-details-marker { display: none; }
.zmap summary svg { border-radius: 50%; background: rgba(179, 157, 219, 0.2); flex: none; }
.zmap summary em { margin-left: auto; font-style: normal; font-size: 0.75rem; border: 1px solid; border-radius: 999px; padding: 1px 8px; }
.zmap p { margin: 4px 0 8px; font-size: 0.86rem; color: #5a4651; }
.zmap p b { color: var(--ink); }

/* 12띠 수집 도감 */
.rel-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rel-badges span { font-size: 0.75rem; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(236, 127, 160,0.15); color: var(--muted); }
.rel-badges span.on { color: var(--c); border-color: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 40%, transparent); }
.ms-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.ms { border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; display: grid; gap: 2px; font-size: 0.72rem; color: var(--muted); }
.ms b { color: var(--ink); font-size: 0.9rem; }
.ms span { color: #5a4651; font-weight: 600; }
.ms i { font-style: normal; }
.ms.ready { border-color: var(--gold); box-shadow: 0 0 12px rgba(232, 160, 70, 0.4); }
.ms.done { border-color: var(--wood); }
.ms button { padding: 4px; font-size: 0.75rem; }
.dex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .dex-grid { grid-template-columns: repeat(3, 1fr); } }
.dex-card { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: rgba(236, 127, 160,0.03); text-align: center; display: grid; justify-items: center; gap: 3px; font-size: 0.85rem; }
.dex-card summary { list-style: none; cursor: pointer; display: grid; justify-items: center; gap: 3px; }
.dex-card summary::-webkit-details-marker { display: none; }
.dex-card[open] { grid-column: 1 / -1; }
.dex-card em { font-style: normal; font-size: 0.7rem; border: 1px solid; border-radius: 999px; padding: 0 8px; }
.dex-card em.me { color: var(--gold); border-color: var(--gold); }
.dex-card small { color: var(--muted); font-size: 0.7rem; }
.dex-card p { margin: 6px 0 0; font-size: 0.85rem; color: #5a4651; text-align: left; }
.dex-card p b { color: var(--ink); }
.dex-face svg { border-radius: 50%; background: radial-gradient(circle, rgba(179, 157, 219,0.35), rgba(13,10,31,0.9)); border: 2px solid var(--line); display: block; }
.dex-card.locked .dex-face svg { filter: brightness(0) drop-shadow(0 0 3px rgba(179, 157, 219,0.7)); opacity: 0.6; }
.dex-card.locked b { color: var(--muted); }
.dex-card.legend { border-color: var(--gold); box-shadow: 0 0 12px rgba(232, 160, 70, 0.3); }
.dex-card.mine { border-color: rgba(232, 160, 70, 0.6); }
.legend-hint { font-size: 0.68rem; color: rgba(199, 122, 38, 0.6); }
.legend-hint.on { color: var(--gold); font-weight: 700; }
.dex-find { font-size: 0.72rem; padding: 4px 8px; margin-top: 2px; }

.proverb { color: var(--gold) !important; font-weight: 700; }
.dlg-title small { display: block; font-size: 0.72rem; margin-top: 2px; }

/* 개운 · 매일 수집 */
.luck-head { display: flex; gap: 14px; align-items: center; }
.luck-ring { width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-items: center; text-align: center; background: conic-gradient(#f6c47a calc(var(--p) * 1%), rgba(236, 127, 160,0.08) 0); position: relative; box-shadow: 0 0 18px rgba(232, 160, 70,0.35); }
.luck-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.luck-ring b, .luck-ring span { position: relative; }
.luck-ring b { font-family: var(--mono); font-size: 1.7rem; color: var(--gold); line-height: 1; display: block; }
.luck-ring span { font-size: 0.68rem; color: var(--muted); display: block; margin-top: -18px; }
.luck-tier { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); text-shadow: none; }
.gauges { display: grid; gap: 7px; margin-top: 12px; }
.gauge { display: grid; grid-template-columns: 78px 1fr 52px; gap: 8px; align-items: center; font-size: 0.82rem; }
.gauge em { font-style: normal; font-size: 0.62rem; margin-left: 4px; padding: 0 5px; border-radius: 6px; border: 1px solid currentColor; }
.g-track { height: 14px; border-radius: 7px; background: rgba(236, 127, 160,0.07); overflow: hidden; }
.g-fill { height: 100%; border-radius: 7px; box-shadow: 0 0 10px currentColor; transition: width 0.8s; }
.gauge .num { font-family: var(--mono); font-size: 0.75rem; text-align: right; color: var(--muted); }
.dw-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.dw { border: 1px solid var(--line); border-radius: 10px; padding: 4px 2px; text-align: center; font-size: 0.66rem; color: var(--muted); }
.dw .char { margin: 0; line-height: 1.2; }
.dw.now { border-color: var(--gold); box-shadow: 0 0 10px rgba(232, 160, 70,0.4); color: var(--gold); }
.fc-chart { width: 100%; height: auto; display: block; }
.fc-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.72rem; color: var(--muted); margin: 2px 0 8px; }
.fc-legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 4px; }
.fc-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.fc-table th, .fc-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.fc-table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; }
.fc-table small { color: var(--muted); }
.drops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drop { border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px; text-align: center; display: grid; gap: 3px; font-size: 0.78rem; background: rgba(236, 127, 160,0.03); }
.drop small { color: var(--muted); font-size: 0.68rem; }
.drop-img { height: 104px; display: grid; place-items: center; }
.drop-img svg { max-height: 104px; width: auto; }
.drops:not(.claimed) .drop { animation: glowPulse 2s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 0 rgba(232, 160, 70,0); } 50% { box-shadow: 0 0 14px rgba(232, 160, 70,0.35); } }
.drops.claimed .drop { opacity: 0.75; }
.emote-chips button.locked, .emoji-set figure.locked { opacity: 0.55; }
.emo-lock { display: grid; place-items: center; aspect-ratio: 1; font-size: 0.72rem; color: var(--muted); }
.emo-lock.big { font-size: 1.6rem; border: 1px dashed var(--line); border-radius: 14px; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.sticker-grid figure { margin: 0; position: relative; display: grid; place-items: center; }
.sticker-grid .cnt { position: absolute; top: 2px; right: 6px; font-size: 0.7rem; font-family: var(--mono); background: var(--gold); color: #3b2a33; border-radius: 999px; padding: 0 5px; }
.react { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.react-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.react-row button { background: none; border: none; padding: 0; cursor: pointer; }
.react .sent svg { display: block; }
.five-sum { margin: 0 0 6px; font-size: 0.86rem; color: #c77a26; }
.five-sum b { color: var(--gold); }

/* 운명 뽑기 */
.gacha-stage { display: flex; gap: 14px; align-items: center; }
.capsule { width: 70px; height: 70px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--ink); background: linear-gradient(180deg, #f48aa2 0 50%, #fbe9ef 50% 100%); border: 3px solid #fff8f6; box-shadow: inset 0 -6px 0 rgba(120, 70, 90, 0.068); }
.capsule.ready { animation: wobble 1.6s ease-in-out infinite; box-shadow: 0 0 18px rgba(240, 118, 140, 0.6); }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.last-pack { font-size: 0.78rem; margin-top: 8px; }
.reveal-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc, #c9b6ec) 30%, #fff8f6), #fff8f6 70%); padding: 12px; }
.rv-box { width: 100%; max-width: 440px; text-align: center; }
.rv-capsule { width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; color: var(--ink); background: linear-gradient(180deg, var(--rc, #f48aa2) 0 50%, #fbe9ef 50% 100%); border: 4px solid #fff8f6; animation: capOpen 1.1s forwards; }
.r-common { --rc: #a79fb0; } .r-rare { --rc: #5fa8e0; } .r-epic { --rc: #a77bd8; } .r-legend { --rc: #e0a43a; } .r-myth { --rc: #ec6f9a; }
.r-legend .rv-box, .r-myth .rv-box { animation: burst 1.6s ease-out; }
@keyframes capOpen { 0% { transform: scale(0.6) rotate(0); } 40% { transform: scale(1) rotate(-15deg); } 60% { transform: scale(1.05) rotate(15deg); } 85% { transform: scale(1.4); opacity: 1; filter: brightness(2) drop-shadow(0 0 30px var(--rc)); } 100% { transform: scale(0); opacity: 0; height: 0; margin: 0; } }
@keyframes burst { 0%, 60% { filter: none; } 70% { filter: brightness(2.2); } 100% { filter: none; } }
.rv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.rv-card { opacity: 0; transform: rotateY(90deg); animation: flipIn 0.6s forwards; animation-delay: calc(1.1s + var(--d)); border-radius: 14px; padding: 6px; background: rgba(236, 127, 160,0.04); border: 2px solid var(--c); box-shadow: 0 0 18px var(--c); display: grid; gap: 2px; font-size: 0.78rem; }
.rv-card small { color: var(--muted); font-size: 0.68rem; }
.rv-inner { height: 150px; display: grid; place-items: center; }
.rv-inner svg { max-height: 150px; max-width: 100%; width: auto; height: auto; }
@keyframes flipIn { to { opacity: 1; transform: none; } }
.rv-banner { font-size: 1.3rem; font-weight: 900; color: var(--rc); text-shadow: none; margin-bottom: 10px; opacity: 0; animation: flipIn 0.5s forwards; animation-delay: 2s; }
.shop-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 8px 0; text-align: left; }
.shop-item b { display: block; } .shop-item small { color: var(--muted); font-size: 0.78rem; }
.shop-item.sub { border-color: var(--gold); background: rgba(232, 160, 70,0.06); }
.shop-item button { white-space: nowrap; }
.shop-item button[disabled] { opacity: 0.5; cursor: default; }
/* 승천 */
.asc-row { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.asc { border: 1px solid var(--line); border-radius: 10px; padding: 5px 1px; text-align: center; font-size: 0.62rem; color: var(--muted); opacity: 0.55; }
.asc b { display: block; font-size: 0.72rem; color: #5a4651; }
.asc.on { opacity: 1; border-color: var(--c); box-shadow: 0 0 10px var(--c); }
.asc.on b { color: var(--c); }
.abilities { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.abilities li { border-left: 3px solid var(--c); padding: 4px 10px; display: grid; font-size: 0.84rem; }
.abilities li span { color: var(--muted); font-size: 0.78rem; }
/* 월별 리포트 */
.report-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mcell { border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; display: grid; gap: 1px; color: var(--ink); background: linear-gradient(0deg, rgba(255,201,60, calc(var(--h) / 260)), rgba(236, 127, 160,0.02)); }
.mcell span { font-family: var(--mono); font-weight: 800; color: var(--gold); }
.mcell small { color: var(--muted); font-size: 0.68rem; }
.mcell.now { border-color: #f9b3c6; box-shadow: 0 0 10px rgba(255,143,179,0.5); }
.mcell.sel { outline: 2px solid var(--neon); }
.mcell.past { opacity: 0.6; }
.locked-detail { border: 1px dashed var(--gold); border-radius: 14px; padding: 12px; text-align: center; }

/* 3단계 시작 · 소환 · 여정 · 할 일 · 풍수 */
.steps-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.steps-dots i { width: 28px; height: 6px; border-radius: 3px; background: rgba(236, 127, 160,0.12); }
.steps-dots i.on { background: linear-gradient(90deg, var(--neon), var(--neon2)); }
.step { display: grid; gap: 14px; }
.step h2 { margin: 0; }
.step-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.summon-stage { width: 240px; margin: 8px auto; border-radius: 20px; overflow: hidden; animation: pop 0.8s cubic-bezier(.2,1.4,.4,1); }
.summon-stage svg { display: block; width: 100%; height: auto; }
.summon-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.summon-plan div { border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: grid; font-size: 0.75rem; }
.summon-plan b { color: var(--gold); } .summon-plan small { color: var(--muted); }
.j-step { margin-top: 10px; border: 1px solid rgba(91, 181, 138,0.4); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; background: rgba(91, 181, 138,0.05); }
.j-step b { font-size: 1.02rem; }
.j-step.done { opacity: 0.7; }
.todo-item { display: flex; justify-content: space-between; width: 100%; padding: 11px 12px; margin-top: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(236, 127, 160,0.03); color: var(--ink); font-size: 0.9rem; text-align: left; }
.todo-item b { color: var(--neon); font-size: 0.8rem; }
.todo-item.done { opacity: 0.6; } .todo-item.done b { color: var(--wood); }
.boost { margin-top: 10px; border: 1px solid rgba(232, 160, 70,0.4); border-radius: 12px; padding: 8px 10px; display: grid; font-size: 0.85rem; }
.boost b { color: var(--gold); } .boost small { font-size: 0.74rem; }
.trial { margin-top: 8px; border: 1px dashed rgba(179, 157, 219,0.6); border-radius: 12px; padding: 8px 10px; display: grid; gap: 3px; font-size: 0.84rem; }
.trial .ok { color: var(--wood); }
.feng-wrap { display: grid; grid-template-columns: 1fr; gap: 8px; justify-items: center; }
.radar-map { width: 100%; max-width: 300px; }
.feng-loc { display: grid; gap: 4px; justify-items: center; text-align: center; }
.spot { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.spot:last-child { border-bottom: none; }
.spot-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; border: 1px solid; flex: none; }
.spot.done { opacity: 0.55; }
.spot-btns { display: grid; gap: 4px; }
.spot-btns a, .spot-btns button { font-size: 0.78rem; padding: 6px 10px; text-align: center; text-decoration: none; border-radius: 10px; }
.spot-btns a.ghost { color: var(--text); border: 1px solid var(--line); }
.spot em.you { font-style: normal; font-size: 0.7rem; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 8px; }

/* 수호신 대화 · 축제 · 궁합방 · 선물 */
.chat-log { max-height: 52vh; overflow-y: auto; display: grid; gap: 8px; padding: 4px 2px 8px; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg p { margin: 0; padding: 10px 12px; border-radius: 16px; font-size: 0.92rem; line-height: 1.5; max-width: 80%; white-space: pre-wrap; }
.msg.bot p { background: #fff; color: #3b2a33; border-bottom-left-radius: 4px; }
.msg.me { justify-content: flex-end; }
.msg.me p { background: linear-gradient(90deg, #f4a6bd, #c9b6ec); color: #3b2a33; border-bottom-right-radius: 4px; font-weight: 600; }
.msg .av svg { border-radius: 50%; background: radial-gradient(circle, rgba(179, 157, 219,0.4), #fff8f6); display: block; }
.typing { opacity: 0.7; font-style: italic; }
.chips.quick { margin: 6px 0; flex-wrap: nowrap; overflow-x: auto; }
.chips.quick .chip { white-space: nowrap; }
.chat-form { display: flex; gap: 6px; }
.chat-form input { flex: 1; font: inherit; color: var(--ink); background: #fff8f6; border: 1px solid rgba(179, 157, 219,0.35); border-radius: 12px; padding: 12px; }
.fest { display: flex; gap: 12px; align-items: center; border-color: rgba(232, 160, 70,0.3); }
.fest.on { border-color: var(--gold); box-shadow: 0 0 18px rgba(232, 160, 70,0.3); background: linear-gradient(90deg, rgba(240, 118, 140,0.12), rgba(232, 160, 70,0.08)); }
.fest-ic { font-size: 2.2rem; }
.fest p { margin: 2px 0; font-size: 0.86rem; }
.fest small { color: var(--muted); font-size: 0.75rem; }
.team-map svg { width: 100%; height: auto; display: block; border-radius: 18px; }
.gift-card svg { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto 10px; }

/* ---------- 실시간 궁합방 · 응원 우편함 ---------- */
.rt-join { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.rt-join input { flex: 1 1 140px; min-width: 0; text-transform: lowercase; letter-spacing: 0.12em; }
.rt-room { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(91, 181, 138, 0.08); border: 1px solid rgba(91, 181, 138, 0.35); }
.code { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.14em; color: #c77a26; font-size: 1.05em; }
.rt-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rt-msg { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; margin: 6px 0; }
.rt-msg select { flex: 1; min-width: 0; }
.rt-members { display: grid; gap: 6px; margin: 8px 0; }
.rt-mem { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(236, 127, 160, 0.04); }
.rt-mem.me { background: rgba(232, 160, 70, 0.1); }
.rt-mem .nm { font-weight: 800; }
.rt-mem .muted { flex: 1; font-size: 0.78rem; }
.inbox { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: 0.85rem; }
.inbox li { padding: 6px 10px; border-radius: 10px; background: rgba(240, 118, 140, 0.08); }
.inbox .muted { font-size: 0.72rem; margin-left: 4px; }

/* 수호신의 기억 */
.memory .mem-sum { background: rgba(138,125,255,0.14); border: 1px solid rgba(179, 157, 219,0.3); border-radius: 12px; padding: 10px 12px; font-size: 0.86rem; line-height: 1.5; margin-bottom: 8px; }
.mem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mem-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(236, 127, 160,0.05); border-radius: 10px; padding: 8px 10px; font-size: 0.88rem; }
.mem-list small { color: #8c6cc4; }
.mem-x { background: none; border: 0; color: #8c6cc4; font-size: 0.9rem; cursor: pointer; padding: 2px 6px; }
.mem-x:hover { color: #e0607e; }

/* 계절 한정 패키지 */
.card.season { border-color: var(--sc); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sc) 40%, transparent), 0 8px 30px color-mix(in srgb, var(--sc) 18%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 14%, transparent), transparent 60%), var(--card, rgba(255, 255, 255,0.9)); }
.season-head { display: flex; gap: 10px; align-items: center; }
.season-head b { display: block; font-size: 1rem; }
.season-head small { color: var(--muted); font-size: 0.78rem; }
.season-ic { font-size: 2rem; filter: drop-shadow(0 0 8px var(--sc)); }
.season-body { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin-top: 10px; align-items: start; }
.season-preview { display: grid; gap: 6px; justify-items: center; }
.season-preview svg { border-radius: 16px; border: 1px solid color-mix(in srgb, var(--sc) 50%, transparent); }
.season-preview .ghost { padding: 6px 10px; font-size: 0.8rem; }
.season-free h4 { margin: 0 0 6px; } .season-free h4 small { color: var(--muted); font-weight: 400; }
.season-missions, .season-tiers, .season-contents { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.season-missions li { display: grid; grid-template-columns: minmax(0,1fr) 46px 34px; white-space: nowrap; gap: 6px; align-items: center; font-size: 0.8rem; }
.season-missions .track { height: 6px; border-radius: 4px; background: rgba(236, 127, 160,0.1); overflow: hidden; }
.season-missions .fill { height: 100%; background: var(--sc); }
.season-missions b { text-align: right; font-size: 0.76rem; }
.season-missions li.done span { color: var(--sc); }
.season-tiers { margin-top: 8px; }
.season-tiers li { display: flex; gap: 8px; align-items: center; font-size: 0.78rem; opacity: 0.75; }
.season-tiers li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; border: 1.5px solid var(--sc); font-size: 0.72rem; flex: none; }
.season-tiers li b { display: block; font-size: 0.8rem; } .season-tiers li small { color: var(--muted); }
.season-tiers li.got { opacity: 1; } .season-tiers li.got i { background: var(--sc); color: #3b2a33; font-weight: 800; }
.season-set { border-color: var(--sc); }
.card.season.soon { box-shadow: none; }
.season-modal { border-color: var(--sc); }
.season-modal-art { display: grid; place-items: center; margin: 6px 0 10px; }
.season-modal-art svg { border-radius: 18px; }
.season-contents li { font-size: 0.88rem; text-align: left; }
.season-title { color: #c77a26; }
.wardrobe .chip.on { border-color: var(--gold); background: rgba(232, 160, 70,0.15); }
@media (max-width: 380px) { .season-body { grid-template-columns: 1fr; } }

/* 운세 보기: 질문형 메뉴판 */
.ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ask-item { position: relative; display: grid; gap: 3px; text-align: left; padding: 14px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(236, 127, 160,0.04); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.ask-item:hover, .ask-item:focus-visible { transform: translateY(-2px); border-color: var(--neon); }
.ask-item .ask-ic { font-size: 1.6rem; }
.ask-item b { font-size: 0.95rem; } .ask-item small { color: var(--muted); font-size: 0.76rem; }
.ask-item.mine { grid-column: 1 / -1; border-color: var(--gold); background: linear-gradient(120deg, rgba(232, 160, 70,0.14), rgba(236, 127, 160,0.03)); }
.ask-item em { position: absolute; top: 10px; right: 12px; font-style: normal; font-size: 0.7rem; font-weight: 700; color: #3b2a33; background: var(--gold); border-radius: 999px; padding: 2px 8px; }
.ask-back { padding: 6px 12px; font-size: 0.82rem; }
.ask-score { display: flex; gap: 14px; align-items: center; margin: 8px 0 4px; }
.ask-score .num { font-size: 3rem; font-weight: 800; line-height: 1; flex: none; }
.ask-score .num small { font-size: 1rem; margin-left: 2px; }
.ask-score b { font-size: 1.02rem; } .ask-score p { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.55; }
.ask-block { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.ask-block h4 { margin: 0 0 6px; font-size: 0.9rem; } .ask-block p { margin: 0; font-size: 0.9rem; line-height: 1.6; }
.ask-trend { width: 100%; height: auto; display: block; margin: 2px 0 6px; }
.ask-guardian { display: flex; gap: 8px; align-items: flex-end; margin: 14px 0 12px; }
.ask-guardian p { margin: 0; background: #fff; color: #3b2a33; border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 0.88rem; line-height: 1.5; }
.ask-guardian svg { border-radius: 50%; background: radial-gradient(circle, rgba(179, 157, 219,0.4), #fff8f6); display: block; }
.ask-cta { width: 100%; font-size: 1rem; padding: 14px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chips .chip { font-size: 0.86rem; }
.ask-chips .chip.more { color: var(--neon); border-color: var(--neon); }

/* 점수 근거 (v0.19 층 엔진) */
.why { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.why summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--neon); list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: ' ▾'; }
.why[open] summary::after { content: ' ▴'; }
.why summary small { color: var(--muted); font-weight: 400; }
.why-layers { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 6px; }
.why-layers li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; background: rgba(236, 127, 160,0.04); border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; }
.why-layers li b { font-size: 1rem; text-align: right; }
.why-layers li small { grid-column: 1 / -1; color: var(--muted); font-size: 0.74rem; line-height: 1.45; }
.why-calc { font-size: 0.8rem; color: #5a4651; margin: 4px 0 0; line-height: 1.5; }
.bonus-line { font-size: 0.8rem; margin: 8px 0 0; color: var(--gold); }
.bonus-line small { color: var(--muted); }
.mcell small { font-size: 0.62rem; }

/* 운의 타임라인 (v0.20) */
.timeline { display: grid; gap: 8px; margin-bottom: 14px; }
.tl-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 0 4px; }
.tl-title h3 { margin: 0; } .tl-title small { color: var(--muted); font-size: 0.78rem; }
.tl-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.85); overflow: hidden; position: relative; }
.tl-card::before { content: ''; position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--neon), transparent); opacity: 0.18; pointer-events: none; }
.tl-card.open { border-color: rgba(236, 127, 160, 0.45); box-shadow: 0 6px 24px rgba(236, 127, 160, 0.08); }
.tl-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tl-ic { font-size: 1.35rem; width: 28px; text-align: center; flex: none; position: relative; z-index: 1; }
.tl-sum { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; }
.tl-sum b { font-size: 0.98rem; grid-column: 1; }
.tl-sum small { grid-column: 1; color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-score { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-weight: 800; font-size: 1.15rem; border: 1.5px solid; border-radius: 999px; padding: 2px 10px; min-width: 44px; text-align: center; }
.tl-caret { color: var(--muted); flex: none; }
.tl-body { padding: 0 14px 14px 52px; }
.tl-lead { margin: 0 0 10px; font-size: 0.92rem; line-height: 1.6; }
.tl-bars { margin: 6px 0 10px; }
.tl-kit { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.tl-kit span { background: rgba(236, 127, 160,0.06); border-radius: 999px; padding: 5px 10px; font-size: 0.8rem; }
.tl-do { font-size: 0.84rem; margin: 4px 0 6px; color: #5a4651; line-height: 1.55; }
.tl-step { width: 100%; margin-top: 10px; padding: 12px; }
.tl-two { display: grid; gap: 6px; } .tl-two .ghost { width: 100%; }
.tl-nav { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; }
.tl-nav .ghost { font-size: 0.78rem; padding: 6px 10px; }
.wk-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: end; height: 120px; margin: 4px 0 8px; }
.wk-col { display: grid; justify-items: center; align-content: end; gap: 2px; font-size: 0.72rem; color: var(--muted); }
.wk-col b { font-size: 0.78rem; } .wk-col i { width: 70%; border-radius: 6px 6px 2px 2px; opacity: 0.85; }
.wk-col small { font-size: 0.62rem; } .wk-col.now span { color: var(--neon); font-weight: 800; } .wk-col.now i { opacity: 1; box-shadow: 0 0 10px currentColor; }
.wk-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.wk-lines li { display: grid; grid-template-columns: 64px 30px 1fr; gap: 6px; font-size: 0.8rem; align-items: center; }
.wk-lines li.now { color: var(--neon); } .wk-lines small { color: var(--muted); }
.yr-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; align-items: end; height: 72px; }
.yr-col { display: grid; justify-items: center; align-content: end; gap: 2px; font-size: 0.66rem; color: var(--muted); }
.yr-col i { width: 80%; border-radius: 4px 4px 1px 1px; opacity: 0.8; }
.yr-col.now span { color: var(--neon); font-weight: 800; } .yr-col.now i { opacity: 1; outline: 1.5px solid #fff; }
.dw-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.dw-chip { flex: none; display: grid; justify-items: center; gap: 1px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; font-size: 0.82rem; font-family: 'Song Myung', serif; }
.dw-chip b { font-family: inherit; font-size: 0.66rem; color: var(--muted); font-weight: 400; } .dw-chip i { font-style: normal; font-size: 0.7rem; font-family: sans-serif; }
.dw-chip.now { border-color: var(--gold); background: rgba(232, 160, 70,0.12); }
@media (max-width: 380px) { .tl-body { padding-left: 14px; } .tl-card::before { display: none; } }

/* 첫 가입: 사주 한 장 요약 */
.saju-card { border-color: var(--neon); box-shadow: 0 0 40px rgba(236, 127, 160, 0.25); text-align: center; }
.sc-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 4px; }
.sc-p { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; font-family: 'Song Myung', serif; }
.sc-p small { font-family: sans-serif; color: var(--muted); font-size: 0.7rem; } .sc-p b { font-size: 1.35rem; font-weight: 400; }
.sc-els { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; }
.sc-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; text-align: left; }
.sc-list li { display: grid; grid-template-columns: 86px 1fr; gap: 6px; font-size: 0.84rem; background: rgba(236, 127, 160,0.05); border-radius: 10px; padding: 8px 10px; }
.sc-list span { color: var(--muted); }

/* 🧪 전체 미리보기 갤러리 */
.gal-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.gal-tabs button { border: 1px solid var(--line); background: rgba(236, 127, 160,0.04); color: var(--muted); border-radius: 12px; padding: 9px 2px; font: inherit; font-size: 0.76rem; white-space: nowrap; font-weight: 700; cursor: pointer; }
.gal-tabs button[aria-pressed="true"] { color: #3b2a33; background: var(--neon); border-color: var(--neon); }
.gal-controls { display: grid; gap: 6px; margin-bottom: 12px; }
.gal-row { display: grid; grid-template-columns: 40px 1fr; gap: 6px; align-items: start; }
.gal-row > span { font-size: 0.78rem; color: var(--muted); padding-top: 6px; }
.gal-row .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gal-row .chip { padding: 4px 9px; font-size: 0.76rem; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gal-grid.charm { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.gal-item { margin: 0; display: grid; gap: 4px; justify-items: center; background: rgba(236, 127, 160,0.03); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.gal-item svg { max-width: 100%; height: auto; border-radius: 10px; }
.gal-item figcaption { text-align: center; display: grid; gap: 1px; } .gal-item figcaption b { font-size: 0.84rem; } .gal-item figcaption small { color: var(--muted); font-size: 0.7rem; }
.gallery code { background: rgba(236, 127, 160,0.08); padding: 1px 5px; border-radius: 6px; }

/* 📖 운세 풀이 */
.rd-tabs { grid-template-columns: repeat(3, 1fr); }
.rd-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.rd-head h4 { margin: 0; font-size: 1.05rem; } .rd-head small { color: var(--muted); font-size: 0.78rem; }
.rd-head > div:nth-child(2) { flex: 1; }
.rd-head .tl-score { flex: none; }
.rd-pillar { display: grid; gap: 0; border: 1px solid var(--gold); border-radius: 12px; padding: 4px 10px; font-family: 'Song Myung', serif; font-size: 1.3rem; line-height: 1.2; text-align: center; color: var(--gold); }
.rd-p { margin: 0 0 8px; font-size: 0.93rem; line-height: 1.7; }
.rd-box { border-radius: 14px; padding: 10px 12px; margin: 10px 0; background: rgba(236, 127, 160,0.04); border: 1px solid var(--line); }
.rd-box h5 { margin: 0 0 6px; font-size: 0.9rem; }
.rd-box p, .rd-box li { font-size: 0.87rem; line-height: 1.6; margin: 0 0 4px; }
.rd-box ul, .rd-box ol { margin: 0; padding-left: 18px; }
.rd-box.good { border-color: rgba(91, 181, 138,0.35); background: rgba(91, 181, 138,0.06); }
.rd-box.watch { border-color: rgba(232, 160, 70,0.35); background: rgba(232, 160, 70,0.06); }
.rd-box.focus { border-color: rgba(255,143,179,0.45); background: rgba(255,143,179,0.07); }
.rd-box.when { border-color: rgba(236, 127, 160,0.35); }
.rd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .rd-two .rd-box { margin: 0; }
.rd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.rd-field { background: rgba(236, 127, 160,0.04); border-radius: 12px; padding: 8px 10px; }
.rd-field b { font-size: 0.84rem; } .rd-field p { margin: 4px 0 0; font-size: 0.8rem; line-height: 1.55; color: #5a4651; }
.rd-field.mine { outline: 1.5px solid #f9b3c6; }
.tl-read { width: 100%; margin-top: 8px; font-size: 0.86rem; }
@media (max-width: 400px) { .rd-two, .rd-fields { grid-template-columns: 1fr; } }

/* ---------- v0.21 내년 운세 카드 · 다음 할 일 길잡이 ---------- */
.tl-card.tl-next { border: 1.5px solid rgba(232, 160, 70, 0.6); background: linear-gradient(135deg, rgba(70, 40, 10, 0.55), rgba(255, 255, 255, 0.9)); box-shadow: 0 6px 26px rgba(232, 160, 70, 0.12); margin-bottom: 4px; }
.tl-card.tl-next::before { background: linear-gradient(var(--gold), transparent); }
.tl-card.tl-next .tl-sum b { color: var(--gold); font-size: 1.05rem; }
.guide { border: 1.5px solid rgba(236, 127, 160, 0.5); background: linear-gradient(160deg, rgba(236, 127, 160, 0.10), rgba(255, 255, 255, 0.92)); }
.guide.done { border-style: dashed; color: var(--muted); font-size: 0.86rem; text-align: center; }
.guide-top { display: flex; justify-content: space-between; align-items: baseline; }
.guide-top b { font-size: 1rem; } .guide-top small { color: var(--neon); font-weight: 700; }
.guide-track { height: 6px; border-radius: 999px; background: rgba(236, 127, 160,0.08); margin: 8px 0 12px; overflow: hidden; }
.guide-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon), var(--gold)); border-radius: 999px; }
.guide h4 { margin: 0 0 4px; font-size: 1.08rem; }
.guide p { margin: 0 0 12px; font-size: 0.9rem; line-height: 1.55; color: #5a4651; }
.guide-go { width: 100%; padding: 13px; font-size: 1rem; }
.guide-foot { display: flex; flex-direction: column; gap: 4px; align-items: center; margin-top: 10px; }
.guide-foot small { color: var(--muted); font-size: 0.74rem; text-align: center; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 0.78rem; cursor: pointer; padding: 4px; }
.tl-card.tl-next .tl-sum small { white-space: normal; }
.tl-next-hint { display: block; color: var(--gold); font-size: 0.74rem; margin-top: 2px; opacity: 0.9; }

/* ---------- v0.22 기록함 · 어제 운세 맞았나요? ---------- */
.yday { border: 1.5px solid rgba(255, 143, 179, 0.55); background: linear-gradient(160deg, rgba(255, 143, 179, 0.10), rgba(255, 255, 255, 0.92)); }
.yday-top { display: flex; justify-content: space-between; align-items: center; }
.yday-top b { font-size: 1rem; }
.yday-was { margin: 6px 0 10px; font-size: 0.88rem; color: #5a4651; }
.yday-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.yday-btns button { padding: 10px 4px; font-size: 0.84rem; }
.yday-memo { width: 100%; box-sizing: border-box; margin-bottom: 4px; }
.yday small { display: block; text-align: center; font-size: 0.72rem; }
.rec-save { width: 100%; margin-top: 8px; font-size: 0.86rem; }
.rec-save.saved { color: var(--gold); border-color: rgba(232, 160, 70, 0.5); }
.rec-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.rec-stats div { background: rgba(236, 127, 160, 0.04); border: 1px solid var(--line); border-radius: 12px; padding: 8px 2px; }
.rec-stats b { display: block; font-size: 1.15rem; color: var(--neon); }
.rec-stats small { font-size: 0.68rem; color: var(--muted); }
.rec-insight { margin: 10px 0 0; font-size: 0.84rem; color: #5a4651; }
.rec-days { list-style: none; margin: 0; padding: 0; }
.rec-days li, .rec-item summary { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rec-date { flex: none; width: 40px; color: var(--muted); font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; }
.rec-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rec-title b { font-size: 0.88rem; font-weight: 600; }
.rec-title small { color: var(--muted); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-days em, .rec-item summary em { font-style: normal; font-weight: 800; width: 28px; text-align: right; }
.rec-fb { flex: none; width: 40px; text-align: center; }
.rec-item summary { cursor: pointer; list-style: none; }
.rec-item summary::-webkit-details-marker { display: none; }
.rec-item p { margin: 8px 0; font-size: 0.86rem; line-height: 1.55; color: #5a4651; }
.rec-memo-row { display: flex; gap: 6px; margin: 8px 0 12px; }
.rec-memo-row input { flex: 1; min-width: 0; }

/* ---------- v0.23 이번 주 재물 흐름 · 백업 ---------- */
.ww { margin-top: 14px; padding: 12px; border-radius: 14px; border: 1px solid rgba(232, 160, 70, 0.35); background: rgba(232, 160, 70, 0.05); }
.ww h5 { margin: 0 0 8px; font-size: 0.95rem; } .ww h5 small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.ww p { margin: 8px 0; font-size: 0.86rem; line-height: 1.55; }
.ww-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 64px; }
.ww-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.ww-col i { width: 70%; border-radius: 6px 6px 2px 2px; opacity: 0.85; }
.ww-col span { font-size: 0.72rem; color: var(--muted); }
.ww-col.best i { opacity: 1; box-shadow: 0 0 10px var(--gold); } .ww-col.best span { color: var(--gold); font-weight: 700; }
.ww-col.now span { color: var(--neon); }
.ww-num summary { cursor: pointer; font-size: 0.86rem; color: var(--gold); padding: 4px 0; }
.ww-balls { display: flex; gap: 6px; justify-content: center; margin: 8px 0; flex-wrap: wrap; }
.ww-balls span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: radial-gradient(circle at 35% 30%, #f6c47a, var(--gold)); color: #3a2a00; }
.ww-safe { font-size: 0.76rem !important; color: var(--muted); margin: 4px 0 !important; }
.ww .tl-step { margin-top: 6px; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-in { margin-top: 10px; } .bk-in summary { cursor: pointer; color: var(--muted); font-size: 0.86rem; padding: 4px 0; }
.bk-in textarea { width: 100%; box-sizing: border-box; margin: 8px 0; font-size: 0.8rem; }
.bk-file { display: block; font-size: 0.84rem; margin-top: 8px; } .bk-file input { display: block; margin-top: 4px; font-size: 0.8rem; }
.bk-warn { margin: 10px 0 0; font-size: 0.76rem; color: #e0789a; }

/* ---------- v0.24 12지신 신수 카드 ---------- */
.card-banner { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%; text-align: left; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(232, 160, 70, 0.5); background: linear-gradient(135deg, rgba(70, 40, 10, 0.5), rgba(255, 255, 255, 0.9)); color: var(--ink); cursor: pointer; }
.card-banner span { grid-row: span 2; font-size: 1.8rem; } .card-banner b { color: var(--gold); } .card-banner small { color: var(--muted); font-size: 0.78rem; }
.sc-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.sc-areas button { padding: 9px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(236, 127, 160, 0.04); color: #5a4651; font: inherit; font-size: 0.84rem; cursor: pointer; }
.sc-areas button[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); background: rgba(232, 160, 70, 0.14); }
.sc-spread { margin-bottom: 10px; }
.sc-draw { width: 100%; padding: 14px; font-size: 1rem; }
.sc-cards { display: grid; gap: 8px; justify-content: center; margin-bottom: 12px; }
.sc-cards.n1 { grid-template-columns: minmax(0, 190px); } .sc-cards.n3 { grid-template-columns: repeat(3, 1fr); }
.sc-card { position: relative; border-radius: 14px; padding: 8px 6px 10px; text-align: center; border: 1.5px solid var(--el); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--el) 22%, transparent), rgba(255, 255, 255, 0.95) 70%); box-shadow: 0 0 18px color-mix(in srgb, var(--el) 30%, transparent); animation: scFlip 0.6s ease both; }
.sc-card .sc-pos { display: block; color: var(--el); font-weight: 700; font-size: 0.72rem; }
.sc-card .sc-art svg, .sc-card .sc-art img { width: 100%; height: auto; max-height: 150px; }
.sc-card b { display: block; font-size: 0.86rem; line-height: 1.3; margin-top: 2px; }
.sc-card span { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
.sc-cards.n1 .sc-card b { font-size: 1rem; }
@keyframes scFlip { from { transform: rotateY(90deg) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-summary { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.55; }
.sc-read { border-top: 1px solid var(--line); padding: 10px 0; }
.sc-read h4 { margin: 0 0 6px; font-size: 1rem; } .sc-read h4 em { font-style: normal; color: var(--gold); font-size: 0.8rem; margin-right: 4px; }
.sc-read p { margin: 6px 0; font-size: 0.88rem; line-height: 1.55; color: #5a4651; }
.sc-read .sc-fit { font-size: 0.82rem; color: var(--muted); }
.sc-read ul { margin: 6px 0 0; padding-left: 0; list-style: none; font-size: 0.84rem; line-height: 1.6; }

/* ---------- v0.25 전문가 보기 · 여러 명식 ---------- */
.ex-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .ex-head h3 { margin: 0; }
.ex-switch { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(236, 127, 160, 0.05); color: var(--muted); font: inherit; font-size: 0.8rem; cursor: pointer; }
.ex-switch i { width: 30px; height: 18px; border-radius: 999px; background: rgba(236, 127, 160, 0.15); position: relative; }
.ex-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.ex-switch.on { color: var(--neon); border-color: var(--neon); } .ex-switch.on i { background: var(--neon); } .ex-switch.on i::after { left: 14px; }
.ex-people { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.ex-people button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(236, 127, 160, 0.04); color: #5a4651; font: inherit; font-size: 0.82rem; cursor: pointer; }
.ex-people button small { margin-left: 4px; color: var(--muted); font-size: 0.7rem; }
.ex-people button[aria-pressed="true"] { border-color: var(--neon); color: var(--ink); background: rgba(236, 127, 160, 0.12); }
.ex-form { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } .ex-grid.three { grid-template-columns: 1.4fr 1fr 1fr; }
.ex-grid label { font-size: 0.78rem; color: var(--muted); } .ex-grid input, .ex-grid select { width: 100%; box-sizing: border-box; }
.ex-who { font-size: 0.84rem; margin: 0 0 8px; color: #5a4651; }
.ex-table-wrap { overflow-x: auto; }
.ex-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 0.78rem; }
.ex-table th, .ex-table td { border: 1px solid var(--line); padding: 5px 3px; }
.ex-table th { color: var(--muted); font-weight: 600; font-size: 0.72rem; }
.ex-table tr.ex-big td { font-size: 1.35rem; font-family: 'Song Myung', serif; }
.ex-table td small { display: block; font-size: 0.64rem; color: var(--muted); }
.ex-table sup { color: var(--fire); font-size: 0.62rem; margin-left: 1px; }
.ex-empty { color: var(--muted); }
.ex-block { margin-top: 12px; } .ex-block h5 { margin: 0 0 6px; font-size: 0.92rem; } .ex-block h5 small { color: var(--muted); font-weight: 400; }
.ex-block ul { margin: 0; padding-left: 18px; font-size: 0.84rem; line-height: 1.6; }
.ex-dw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ex-dw span { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.74rem; }
.ex-dw b { font-family: 'Song Myung', serif; font-size: 1.05rem; } .ex-dw i { font-style: normal; font-weight: 800; } .ex-dw small { color: var(--muted); font-size: 0.66rem; }
.ex-basis { list-style: none; padding: 0 !important; } .ex-basis li { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.ex-basis b { font-weight: 600; color: var(--muted); font-size: 0.78rem; } .ex-basis span { font-size: 0.8rem; }
.ex-grid label.check { display: flex; align-items: center; gap: 6px; color: #5a4651; font-size: 0.82rem; align-self: end; padding-bottom: 10px; }
.ex-grid label.check input { width: auto; margin: 0; }

/* ---------- v0.26 첫 7일 안내 ---------- */
.intro-day { border: 1px dashed rgba(236, 127, 160, 0.5); padding: 12px 14px; }
.intro-top { display: flex; justify-content: space-between; align-items: center; } .intro-top small { color: var(--neon); font-weight: 700; font-size: 0.74rem; }
.intro-day b { display: block; margin-top: 4px; font-size: 0.98rem; }
.intro-day p { margin: 4px 0 8px; font-size: 0.86rem; line-height: 1.55; color: #5a4651; }
.intro-day [data-intro-go] { width: 100%; padding: 9px; font-size: 0.88rem; }

/* ---------- v0.27 홈: 오늘 펼침 · 이달·올해 작은 창 · 오늘의 미션 3가지 ---------- */
.tl-card.compact .tl-head { padding-top: 10px; padding-bottom: 10px; }
.tl-card.compact:not(.open) .tl-ic { font-size: 1.15rem; }
.tl-card.compact:not(.open) .tl-sum b { font-size: 0.95rem; }
.tl-card.compact:not(.open) .tl-score { transform: scale(0.82); }
.tl-hint { margin: 2px 0 10px; text-align: center; font-size: 0.74rem; color: var(--muted); }
.dmission { border: 1.5px solid rgba(236, 127, 160, 0.5); background: linear-gradient(160deg, rgba(236, 127, 160, 0.09), rgba(255, 255, 255, 0.92)); }
.dm-top { display: flex; justify-content: space-between; align-items: baseline; } .dm-top b { font-size: 1.02rem; } .dm-top small { color: var(--neon); font-weight: 700; }
.dm-list { list-style: none; margin: 0; padding: 0; }
.dm-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.dm-item:first-child { border-top: 0; padding-top: 2px; }
.dm-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; border: 1.5px solid var(--neon); color: var(--neon); }
.dm-item.done .dm-num { background: var(--neon); color: #fff; }
.dm-body { flex: 1; min-width: 0; }
.dm-body small { display: block; color: var(--muted); font-size: 0.72rem; }
.dm-body b { display: block; font-size: 0.96rem; margin: 2px 0; line-height: 1.4; }
.dm-item.done .dm-body b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(236, 127, 160, 0.25); font-weight: 600; font-size: 0.88rem; }
.dm-body p { margin: 2px 0 8px; font-size: 0.84rem; line-height: 1.5; color: #5a4651; }
.dm-go { width: 100%; padding: 10px; font-size: 0.9rem; }
.dm-body .yday-btns { margin-bottom: 6px; }
.dm-body .linkish { display: block; margin: 2px auto 0; }
.dm-done { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(91, 181, 138, 0.08); border: 1px solid rgba(91, 181, 138, 0.4); }
.dm-done p { margin: 4px 0 0; font-size: 0.86rem; line-height: 1.5; }
.dm-body .yday-btns button { padding: 9px 2px; font-size: 0.78rem; white-space: nowrap; letter-spacing: -0.02em; }

/* ---------- v0.28 신년(내년) 운세 카드 ---------- */
.ny-title { color: #c77a26; font-weight: 700; }
.ny-tags { display: block; color: var(--gold); font-size: 0.74rem; margin-top: 2px; opacity: 0.9; }
.ny-sec { margin-top: 14px; }
.ny-sec h5 { margin: 0 0 8px; font-size: 0.9rem; color: var(--gold); }
.ny-fields { list-style: none; margin: 0; padding: 0; }
.ny-fields li { display: grid; grid-template-columns: 92px auto; grid-template-rows: auto auto; column-gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ny-fields li span { font-size: 0.86rem; }
.ny-fields li small { grid-column: 1 / -1; color: #5a4651; font-size: 0.8rem; margin-top: 2px; }
.ny-stars { color: var(--gold); letter-spacing: 1px; font-size: 0.9rem; } .ny-stars i { font-style: normal; color: rgba(150, 90, 120, 0.18); }
.ny-seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ny-season { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: rgba(236, 127, 160, 0.03); }
.ny-season.best { border-color: rgba(232, 160, 70, 0.6); background: rgba(232, 160, 70, 0.08); }
.ny-season.slow { border-style: dashed; }
.ny-season b { font-size: 0.9rem; } .ny-season small { color: var(--muted); font-size: 0.7rem; margin-left: 4px; }
.ny-season em { display: block; font-style: normal; font-size: 0.78rem; margin: 3px 0 2px; color: #c77a26; }
.ny-season.slow em { color: #8c6cc4; } .ny-season.good em { color: #5a4651; }
.ny-season p { margin: 0; font-size: 0.76rem; line-height: 1.45; color: var(--muted); }
.ny-months { list-style: none; margin: 0; padding: 0; }
.ny-months li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.ny-months li span b { font-size: 0.95rem; } .ny-months li span small { color: var(--muted); font-size: 0.74rem; margin-left: 6px; }
.ny-months li p { margin: 2px 0 0; font-size: 0.82rem; line-height: 1.5; color: #5a4651; }
.ny-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.ny-pledge-form { display: flex; gap: 6px; margin-bottom: 4px; } .ny-pledge-form input { flex: 1; min-width: 0; } .ny-pledge-form button { padding: 8px 14px; }
.ny-pledged { margin: 0 0 4px; font-size: 0.92rem; color: var(--ink); }
.rd-months { list-style: none; margin: 0; padding: 0; }
.rd-months li { display: grid; grid-template-columns: 1fr 34px 1.1fr; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.rd-months li span small { color: var(--muted); font-size: 0.7rem; margin-left: 2px; }
.rd-months li > small { color: #5a4651; font-size: 0.76rem; }
.rd-months li.good { background: rgba(232, 160, 70, 0.06); } .rd-months li.caution { background: rgba(240, 118, 140, 0.06); }
.tl-card.tl-next .tl-sum .ny-title { grid-column: 1; display: block; font-size: 1rem; margin: 2px 0 1px; line-height: 1.35; }
.tl-card.tl-next .tl-sum .tl-score { grid-row: 1 / span 3; }

/* ---------- v0.30 마음 날씨 + 오늘의 우산 ---------- */
.mood-row { display: grid; gap: 6px; padding: 10px 12px; margin: 2px 0 10px; border-radius: 14px; background: rgba(236, 127, 160, 0.05); border: 1px dashed var(--line); }
.mood-row b { font-size: 0.92rem; }
.mood-row small { color: var(--muted); font-size: 0.76rem; }
.mood-row.set { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-style: solid; font-size: 0.84rem; color: #5a4651; }
.mood-btns { display: flex; gap: 6px; }
.mood-btns button { flex: 1; min-width: 0; font-size: 1.45rem; line-height: 1; padding: 8px 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(236, 127, 160, 0.04); cursor: pointer; }
.mood-btns button:hover, .mood-btns button:focus-visible { border-color: var(--neon); background: rgba(236, 127, 160, 0.1); }
.mood-care { margin: -4px 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(232, 160, 70, 0.1); border: 1px solid rgba(232, 160, 70, 0.4); font-size: 0.82rem; line-height: 1.6; }

.umb { margin: 10px 0; padding: 12px; border-radius: 16px; border: 1.5px solid rgba(232, 160, 70, 0.55); background: linear-gradient(160deg, rgba(232, 160, 70, 0.1), rgba(255, 255, 255, 0.6)); }
.umb h5 { margin: 0 0 4px; font-size: 0.98rem; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.umb h5 small { color: var(--muted); font-weight: 400; font-size: 0.76rem; }
.umb-frame { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.6; color: #5a4651; }
.umb-opts { display: grid; gap: 6px; margin-bottom: 8px; }
.umb-opt { text-align: left; display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(236, 127, 160, 0.04); color: var(--text); font: inherit; font-size: 0.88rem; cursor: pointer; }
.umb-opt span { font-size: 0.74rem; color: var(--muted); }
.umb-opt span i { font-style: normal; color: var(--gold); margin-left: 4px; }
.umb-opt.on { border-color: var(--gold); background: rgba(232, 160, 70, 0.14); box-shadow: 0 0 0 1px rgba(232, 160, 70, 0.35); }
.umb-do { width: 100%; }
.umb-week { display: block; margin-top: 6px; color: var(--muted); font-size: 0.76rem; }
.umb.done { border-color: rgba(91, 181, 138, 0.5); background: linear-gradient(160deg, rgba(91, 181, 138, 0.08), rgba(255, 255, 255, 0.6)); }
.umb-doneline { margin: 0 0 6px; font-weight: 700; font-size: 0.9rem; }
.umb-after b { font-size: 0.86rem; display: block; margin-bottom: 6px; }
.umb-after-msg { margin: 0; font-size: 0.84rem; color: #5a4651; }
.umb-after .yday-btns { display: flex; gap: 6px; }
.umb-after .yday-btns button { flex: 1; white-space: nowrap; }
.rec-habit { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
/* 계절 한정 소품 그림 (공용 그림) */
.item-thumb { width: 22px; height: 22px; object-fit: contain; vertical-align: -6px; margin-right: 4px; }
.item-thumb.lg { width: 48px; height: 48px; flex: none; margin: 0 4px 0 0; }
.season-ic-img { width: 34px; height: 34px; object-fit: contain; display: block; }

/* ---------- 쉬운 모드 (v0.31): 글씨 1.25배 · 대비 · 48px 버튼 · 카드 3장 홈 ---------- */
.top-btns { display: flex; gap: 8px; align-items: center; flex: none; }
#btn-easy { min-width: 48px; min-height: 44px; font-weight: 800; padding: 6px 12px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 0.9rem; }
#btn-easy .ez-ic { font-size: 1.05rem; }
#btn-easy[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.easy-check { padding: 10px 12px !important; margin: 4px 0 12px; border: 1px dashed var(--line); border-radius: 12px; font-weight: 600; }
.easy-check input { width: 22px; height: 22px; margin: 0; flex: none; }
.easy-suggest b, .easy-more b { display: block; font-size: 1.05rem; }
.easy-suggest p, .easy-more p { margin: 4px 0 10px; color: var(--muted); font-size: 0.9rem; }
.easy-more .primary { width: 100%; }
.easy-back { width: 100%; margin-bottom: 10px; }
.easy-today .easy-date { color: var(--muted); font-weight: 600; }
.easy-score { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 4px; flex-wrap: wrap; }
.easy-score b { font-family: var(--mono); font-size: 3rem; line-height: 1; }
.easy-score b small { font-size: 1.1rem; margin-left: 2px; }
.easy-score p { margin: 0; font-size: 1.3rem; font-weight: 800; }
.easy-link-box summary { cursor: pointer; font-weight: 700; padding: 12px 0 4px; }
.easy-link-form { display: grid; gap: 8px; }
.easy-link-form label { display: grid; gap: 4px; }
.easy-link-out input { width: 100%; margin: 10px 0 8px; font-size: 0.8rem; }

html.easy { font-size: 125%; --muted: #7d6873; --line: rgba(200, 130, 160, 0.5); }
html.easy body { line-height: 1.7; }
html.easy button, html.easy .umb-opt, html.easy .seg label span, html.easy .concern-grid label span { min-height: 48px; }
html.easy .main-tabs button { font-size: 0.8rem; min-height: 56px; }
html.easy .subnav button { min-height: 44px; }
html.easy .tl-lead { font-size: 1rem; }
html.easy .dm-item { font-size: 1rem; gap: 12px; }
html.easy .dm-body p { font-size: 0.92rem; }
html.easy .dm-body .yday-btns button { font-size: 0.85rem; white-space: normal; }
html.easy .umb-opts { gap: 10px; }
html.easy .umb-opt { font-size: 0.95rem; padding: 12px 14px; }
html.easy .mood-btns { gap: 8px; }
html.easy .mood-btns button { min-height: 56px; font-size: 1.6rem; }
html.easy .yday-btns { gap: 8px; }
html.easy .yday-btns button { padding: 12px 6px; white-space: normal; }
html.easy .tl-next-hint, html.easy [data-guide-all] { display: none !important; }
html.easy .linkish { min-height: 44px; }
html.easy h1 { font-size: 1.15rem; }
html.easy .tagline { display: none; }
html.easy .brand-mark { width: 40px; height: 40px; font-size: 24px; }
html.easy #btn-edit { font-size: 0.8rem; padding: 8px 10px; }
.easy-suggest .yday-btns, #easy-link-ask .yday-btns, .easy-link-out .yday-btns { grid-template-columns: 1fr 1fr; }
html.easy .main-tabs button { font-size: 0.66rem; line-height: 1.2; word-break: keep-all; padding: 8px 1px; }
html.easy .main-tabs button i { font-size: 1.1rem; }

/* ---------- 타고난 그릇(격국, v0.36) ---------- */
.gyeok-card h5 { margin: 14px 0 4px; font-size: 0.9rem; color: var(--gold); }
.gyeok-card p { margin: 0 0 6px; line-height: 1.7; }
.gk-title { font-size: 1.1rem; }
.gk-title small { color: var(--muted); font-size: 0.8rem; margin-left: 6px; }
.gk-basis { font-size: 0.84rem; }
.gk-list { margin: 0; padding-left: 20px; line-height: 1.8; }
.gk-care { padding: 10px 12px; border-radius: 12px; background: rgba(232, 160, 70, 0.07); border: 1px solid rgba(232, 160, 70, 0.25); font-size: 0.9rem; }
.gk-mission { font-size: 0.9rem; margin-top: 10px !important; }

/* ---------- 신년운세 책자 (첫 화면 개편) ---------- */
.booklet { padding: 22px 20px; background: rgba(255, 255, 255, 0.92); }
.bk-head { text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.bk-head small { color: var(--gold); letter-spacing: 0.12em; font-weight: 700; }
.bk-head h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; margin: 6px 0 4px; line-height: 1.35; }
.bk-sub { margin: 0; color: var(--muted); font-size: 0.86rem; }
.bk-lead { font-size: 1rem; line-height: 1.8; margin: 0 0 6px; }
.bk-part { margin-top: 22px; }
.bk-part h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid rgba(232, 160, 70, 0.3); color: var(--gold); }
.bk-part h3 small { font-family: var(--sans); font-size: 0.7rem; color: var(--text); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.bk-part h4 { margin: 14px 0 4px; font-size: 0.95rem; color: #5a4651; }
.bk-part p { margin: 0 0 8px; line-height: 1.85; font-size: 0.95rem; color: #5a4651; word-break: keep-all; }
.bk-more { width: 100%; margin-top: 12px; }

/* ---------- 오늘의 운세 한 문단 · 앱 쓰는 법 · 운세 보기의 흐름 ---------- */
.today-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--gold); margin: 0 0 8px; }
.td-lead { font-size: 1.02rem; font-weight: 700; margin: 0 0 6px; line-height: 1.7; word-break: keep-all; }
.td-body { margin: 0 0 8px; line-height: 1.85; color: #5a4651; word-break: keep-all; }
.td-why { margin: 0 0 4px; font-size: 0.8rem; color: var(--muted); }
.howto summary { cursor: pointer; color: var(--muted); }
.howto summary b { color: var(--text); }
.howto ol { margin: 10px 0 0; padding-left: 20px; line-height: 1.8; font-size: 0.9rem; }
.flow-card h3 small { font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.flow-card .timeline { margin-top: 8px; }
.today-card h3 small { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.td-letter { padding: 14px 16px; border-radius: 14px; background: rgba(255, 248, 230, 0.05); border: 1px solid rgba(232, 160, 70, 0.22); margin-bottom: 14px; }
.td-letter p { margin: 0 0 6px; line-height: 1.85; word-break: keep-all; }
.td-from { display: block; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.td-sign { text-align: right; color: var(--muted); font-size: 0.88rem; margin: 8px 0 0 !important; }
.td-qh { margin: 0 0 6px; font-size: 0.95rem; color: #5a4651; }
.td-qa { margin: 0 0 10px; }
.td-qa dt { font-weight: 700; margin-top: 10px; color: var(--gold); font-size: 0.92rem; }
.td-qa dd { margin: 3px 0 0; line-height: 1.75; color: #5a4651; word-break: keep-all; }
/* 수호신의 쪽지 */
.td-note { padding: 14px 16px; border-radius: 14px; background: rgba(91, 181, 138, 0.05); border: 1px dashed rgba(91, 181, 138, 0.35); margin: -4px 0 14px; transform: rotate(-0.4deg); }
.td-note p { margin: 0 0 6px; line-height: 1.8; word-break: keep-all; }
.td-note .td-from { color: var(--wood); }
.nt-task b { color: var(--ink); }
.nt-stamps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 8px; }
.nt-stamps span { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(236, 127, 160,0.03); font-size: 1rem; position: relative; padding-top: 10px; }
.nt-stamps span i { position: absolute; top: 2px; font-style: normal; font-size: 0.62rem; color: var(--muted); }
.nt-stamps span.on { border-color: var(--gold); background: rgba(232, 160, 70, 0.1); }
.nt-stamps span.now { outline: 2px solid var(--wood); }
.nt-reward { font-size: 0.86rem; color: var(--gold); }
.nt-do { width: 100%; margin-top: 4px; }
.td-note.done { transform: none; border-style: solid; }
.nt-charm { width: 160px; margin: 0 auto; } .nt-charm svg { width: 100%; height: auto; display: block; }
.nt-month { font-size: 0.8rem; color: var(--muted); margin-top: 4px !important; }
.nt-key { width: 100%; margin-top: 6px; border-color: var(--gold); color: var(--gold); }
.nt-story { text-align: left; margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(232, 160, 70, 0.08); border: 1px solid rgba(232, 160, 70, 0.3); }
.nt-story p { margin: 6px 0; line-height: 1.75; font-size: 0.9rem; }
.nt-story small { color: var(--muted); font-size: 0.75rem; }
.weekly-letter { background: rgba(255, 248, 230, 0.05); border-color: rgba(232, 160, 70, 0.3); }
.weekly-letter h3 { font-family: var(--serif); font-weight: 400; color: var(--gold); margin: 0 0 10px; }
.weekly-letter p { margin: 0 0 8px; line-height: 1.85; word-break: keep-all; }
.st-item { padding: 10px 0; border-top: 1px solid var(--line); }
.st-item summary { cursor: pointer; font-weight: 700; }
.st-item p { margin: 8px 0 0; line-height: 1.8; color: #5a4651; }
.st-item.locked { color: var(--muted); font-size: 0.88rem; }
/* 글자들의 관계 (v0.37) */
.rel-list { list-style: none; margin: 0; padding: 0; }
.rel-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.rel-list li:first-child { border-top: 0; }
.rel-list p { margin: 0 0 4px; line-height: 1.75; word-break: keep-all; }
.rel-list small { color: var(--wood); font-size: 0.84rem; line-height: 1.6; display: block; }
.rel-card h5 { margin: 14px 0 4px; color: var(--gold); font-size: 0.9rem; }
.rel-hwa { margin: 0 0 6px; line-height: 1.75; font-size: 0.92rem; color: #5a4651; }
/* 부적 돌보기 (v0.38) */
.cg-meter { display: block; color: var(--gold); letter-spacing: 1px; font-size: 0.7rem; margin-top: 2px; }
.eq-moment { text-align: center; }
.eq-glow { position: relative; padding: 8px 0; }
.eq-glow::before { content: ''; position: absolute; inset: 0; margin: auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 160, 70, 0.45), transparent 70%); animation: eqPulse 1.6s ease-out 2; }
.eq-glow .nt-charm { position: relative; animation: eqRise 0.8s ease-out; }
@keyframes eqPulse { 0% { transform: scale(0.4); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes eqRise { from { transform: translateY(16px) scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .eq-glow::before, .eq-glow .nt-charm { animation: none; } }
.eq-moment .speech { text-align: left; }
.eq-pair { color: var(--gold); font-size: 0.88rem; margin: 6px 0 10px; }
.cg-line { margin: 4px 0; font-size: 0.86rem; color: var(--wood); text-align: left; }
.cc-box { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cc-line { margin: 0 0 8px; font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.cc-line.on { color: var(--gold); }
.cc-offer { width: 100%; }
.offer-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 46vh; overflow: auto; margin-bottom: 8px; }
.offer-list label { display: grid; justify-items: center; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: center; }
.offer-list label:has(input:checked) { border-color: var(--neon2); background: rgba(240, 118, 140, 0.08); }
.offer-list input { margin: 0; }
.offer-list small { font-size: 0.7rem; color: var(--muted); }
.nt-charm.sm { width: 64px; }
.offer-sum { text-align: center; font-weight: 700; margin: 4px 0 10px; }
/* v0.39 원국 깊이 보기 */
.ilju-card h5, .pl-card h5 { margin: 14px 0 4px; color: var(--gold); font-size: 0.9rem; }
.ilju-card p, .pl-card p, .tg-card p { margin: 0 0 6px; line-height: 1.75; word-break: keep-all; }
.tg-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.tg-list li { display: grid; grid-template-columns: 5.5em 1fr 3em; align-items: center; gap: 8px; font-size: 0.86rem; }
.tg-list li small { color: var(--muted); font-size: 0.72rem; }
.tg-list li i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--w), rgba(236, 127, 160,0.06) var(--w)); }
.tg-list li b { text-align: right; font-family: var(--mono); }
.tg-list li.top span { color: var(--gold); font-weight: 700; }
.pl-item { border-top: 1px solid var(--line); padding-top: 4px; }
.pl-item:first-of-type { border-top: 0; }
/* 개운 반영 (v0.40) */
.kaiun-box { margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(232, 160, 70, 0.07); border: 1px solid rgba(232, 160, 70, 0.3); }
.kaiun-box.empty { background: rgba(236, 127, 160, 0.03); border-style: dashed; }
.kaiun-box p { margin: 0 0 4px; line-height: 1.7; font-size: 0.92rem; }
.kaiun-box b { color: var(--gold); }
.kaiun-box small { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 2px; }
.kaiun-chip { font-style: normal; font-size: 0.72rem; color: var(--gold); margin-left: 4px; white-space: nowrap; }
.bk-kaiun { color: var(--gold) !important; font-size: 0.88rem !important; }
.bk-next { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 14px; }
/* v0.41 지난 일 맞히기 */
.rt-q { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.rt-q p { margin: 0 0 6px; line-height: 1.6; }
.rt-q small { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 400; }
.rt-sum { margin: 10px 0 0; color: var(--gold); line-height: 1.7; }
.person-card p { margin: 0 0 6px; line-height: 1.75; word-break: keep-all; }
.kaiun-graph { width: 100%; height: auto; display: block; margin: 4px 0; } .evo-box .kaiun-graph + p { font-size: 0.88rem; line-height: 1.6; }
.td-kaiun { color: var(--gold); font-size: 0.9rem; } .td-kaiun small { color: var(--muted); font-size: 0.72rem; }
.bk-months summary { cursor: pointer; list-style: none; }
.bk-months summary h3 { display: inline; }
.bk-months summary small { color: var(--muted); font-size: 0.76rem; margin-left: 6px; }
.bk-month { border-top: 1px solid var(--line); padding-top: 6px; }
.bk-month h4 small { color: var(--muted); font-weight: 400; font-size: 0.76rem; }
.bk-act { color: var(--wood) !important; font-size: 0.88rem !important; }
/* v0.41 태어난 시간 추정 */
.hg-q { border-top: 1px solid var(--line); padding: 8px 0; }
.hg-opts { display: grid; gap: 6px; margin-top: 6px; }
.hg-opts button { text-align: left; padding: 9px 12px; white-space: normal; }
.hg-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hg-res li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hg-res small { display: block; color: var(--muted); font-size: 0.76rem; }
.hg-card h5 { margin: 10px 0 6px; color: var(--gold); }
/* 2026-11-03 분야별 운세 접기 (총운만 펼쳐 두고 오늘의 운세를 바로 아래로) */
.bk-fields { padding-top: 16px; }
.bk-fields-h { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--gold); margin: 0 0 4px; }
.bk-fields-h small { display: block; font-family: var(--sans); font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.bk-fold { margin-top: 0; border-bottom: 1px solid var(--line); }
.bk-fold summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 0; }
.bk-fold summary::-webkit-details-marker { display: none; }
.bk-fold summary h3 { display: inline; border: 0; margin: 0; padding: 0; font-size: 1.08rem; flex: 1; }
.bk-fold summary::after { content: '▾'; color: var(--muted); transition: transform 0.2s; }
.bk-fold[open] summary::after { transform: rotate(180deg); }
.bk-peek { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.bk-fold[open] > summary { border-bottom: 1px solid rgba(232, 160, 70, 0.3); margin-bottom: 8px; }
.bk-fields .bk-next { margin-top: 12px; }


/* ======================================================================
   파스텔 테마 마무리 층 (2026-11-04): 귀엽고 부드러운 기본 부품
   ====================================================================== */
.bg-grid { background-image: radial-gradient(rgba(236, 127, 160, 0.13) 1.4px, transparent 1.6px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
h1, h2, h3, .card h3, .bk-head h2 { font-family: var(--serif); letter-spacing: 0; }
h1 { font-size: 1.4rem; color: var(--ink); }
h1 em { font-family: var(--serif); color: var(--neon); }
.tagline { font-family: var(--sans); color: var(--muted); }
.brand-mark { border: none; border-radius: 16px; color: #fff; font-size: 26px; background: linear-gradient(135deg, #ff9fbb, #ffb99a); box-shadow: 0 6px 14px rgba(236, 127, 160, 0.35); }
.card { background: var(--card); border: 1px solid rgba(240, 190, 205, 0.55); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.card h3 .tag { font-family: var(--sans); color: var(--neon); border-color: rgba(236, 127, 160, 0.5); background: var(--rose-soft); border-radius: 999px; padding: 1px 8px; }
input[type="text"], input[type="date"], input[type="time"], input[type="number"], select, textarea { background: #fff; border-color: rgba(222, 160, 182, 0.55); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(236, 127, 160, 0.18); }

button.primary { color: #fff; border-radius: 999px; background: linear-gradient(100deg, #e9719a, #f08a6e); box-shadow: 0 6px 16px rgba(233, 113, 154, 0.32); text-shadow: 0 1px 1px rgba(150, 50, 80, 0.25); }
button.primary:hover { filter: brightness(1.03); }
button.ghost, button.chip { color: var(--text); background: #fff; border: 1px solid rgba(222, 160, 182, 0.6); box-shadow: 0 1px 2px rgba(150, 90, 120, 0.06); }
button.ghost:hover, button.chip:hover { border-color: var(--neon); background: #fff7f9; }
button.chip[aria-pressed="true"] { color: #fff; background: var(--neon); border-color: var(--neon); box-shadow: none; }

/* 위 탭: 둥근 알약 + 은은한 흰 막 */
.tabs { background: rgba(255, 246, 243, 0.88); backdrop-filter: blur(12px); border-radius: 0 0 20px 20px; }
.tabs button { color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--ink); background: #fff; border-color: rgba(236, 127, 160, 0.45); box-shadow: 0 4px 12px rgba(236, 127, 160, 0.18); }
.main-tabs button { border-radius: 18px; }
.subnav button { background: #fff; color: var(--muted); border-color: rgba(222, 160, 182, 0.5); }
.subnav button[aria-current="page"] { color: #fff; background: linear-gradient(100deg, #e9719a, #f08a6e); border-color: transparent; }

/* 막대·게이지 바탕 */
.bar .track { background: #f6e6ec; }
.bar .fill { box-shadow: none; }
.pillar { background: #fff; border-color: rgba(222, 160, 182, 0.45); }
.pillar.me { border-color: var(--gold); box-shadow: 0 4px 12px rgba(232, 160, 70, 0.2); }

/* 책자: 종이 같은 따뜻한 흰색 */
.booklet { background: linear-gradient(180deg, #fffdfb, #fff8f6); }
.bk-head small { color: var(--neon); }
.bk-head h2 { color: var(--ink); }
.bk-part h3 { color: var(--gold); border-bottom-color: rgba(232, 160, 70, 0.3); }
.bk-part h4 { color: var(--ink); }
.bk-part p, .td-body { color: #5a4651; }

/* 안내창·보상창 바탕 */
.evo-modal { background: rgba(90, 55, 72, 0.35); backdrop-filter: blur(4px); }
.evo-box { background: #fff; color: var(--text); border-color: rgba(236, 127, 160, 0.35); box-shadow: 0 16px 40px rgba(150, 80, 110, 0.25); }

.foot { color: var(--muted); }
::selection { background: #ffd3df; }
.char { font-family: 'Song Myung', var(--serif); }

/* ======================================================================
   v0.42 오늘 5분야 · 좋은 습관 · 오늘 할 일 3가지 · 복떡 · 두루마리 · 12지신 타로
   큰 글씨·큰 버튼(60대·아이도 누르기 쉽게, 버튼 높이 48px 이상)
   ====================================================================== */
.z-face { width: 64px; height: 64px; object-fit: contain; flex: none; }
.z-face.big { width: 120px; height: 120px; display: block; margin: 0 auto 4px; }
.z-face-emoji { font-size: 2.4rem; }

.five-card { padding: 20px 18px; background: linear-gradient(165deg, #fff 0%, #fff4f6 100%); }
.five-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.five-total { --c: var(--neon); width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 50% 40%, #fff 55%, #ffeef3); border: 4px solid var(--c); box-shadow: 0 6px 16px rgba(236, 127, 160, 0.2); }
.five-total b { font-size: 2rem; line-height: 1; color: var(--c); font-family: var(--serif); }
.five-total small { font-size: 0.68rem; color: var(--muted); }
.five-hi { flex: 1; min-width: 0; }
.five-hi small { color: var(--muted); font-size: 0.8rem; }
.five-hi h2 { margin: 2px 0; font-size: 1.45rem; color: var(--ink); }
.five-hi p { margin: 0; font-size: 0.9rem; }
.five-z { width: 70px; height: 70px; }
.five-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.five-list li { display: grid; grid-template-columns: 30px 58px 1fr 38px; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 8px 10px; border-radius: 16px; background: #fff; border: 1px solid rgba(240, 190, 205, 0.5); }
.fv-ic { font-size: 1.35rem; grid-row: span 2; }
.fv-l { font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.fv-bar { height: 12px; border-radius: 999px; background: #f6e6ec; overflow: hidden; }
.fv-bar i { display: block; height: 100%; border-radius: 999px; }
.fv-n { font-size: 1.25rem; text-align: right; font-family: var(--serif); }
.fv-line { grid-column: 2 / 5; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.five-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }

.habit-card h3, .todo3 h3, .scroll-lock h3, .scroll-open h3 { font-size: 1.15rem; }
.habit-card .td-note { margin-top: 4px; }

.todo3-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.todo3-head h3 { margin: 0; }
.todo3-head h3 small { color: var(--neon); font-size: 0.9rem; }
.tteok-chip { min-height: 44px; padding: 6px 14px; border-radius: 999px; background: #fff5e6; border: 1px solid #f3cf98; color: #9a5a17; font-size: 1rem; }
.todo3-list { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 8px; }
.todo3-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #fff; border: 1px solid rgba(240, 190, 205, 0.5); min-height: 56px; }
.todo3-list li.done { background: #f1fbf5; border-color: #bfe6cf; }
.t3-ic { font-size: 1.4rem; width: 32px; text-align: center; }
.todo3-list li.done .t3-ic { color: var(--wood); }
.t3-l { flex: 1; font-weight: 600; font-size: 0.95rem; display: grid; }
.t3-l small { color: #b27424; font-weight: 400; font-size: 0.78rem; }
.todo3-list li.done .t3-l { color: var(--muted); text-decoration: line-through; }
.todo3-list li em { font-style: normal; color: var(--wood); font-weight: 700; font-size: 0.85rem; }
.todo3-list button { min-height: 44px; white-space: nowrap; }
.todo3-bar { height: 10px; border-radius: 999px; background: #f6e6ec; overflow: hidden; }
.todo3-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f4a6bd, #f7b48f); border-radius: 999px; transition: width 0.4s; }
.todo3-foot { margin: 10px 0 0; font-size: 0.88rem; }

.scroll-lock { text-align: center; background: linear-gradient(170deg, #fffaf3, #fff1f4); border: 1.5px dashed rgba(224, 160, 100, 0.55); }
.scroll-lock h3 { justify-content: center; }
.sl-art { position: relative; width: 96px; margin: 0 auto 4px; }
.sl-art .z-face { width: 96px; height: 96px; }
.sl-scroll { position: absolute; right: -10px; bottom: 0; font-size: 2rem; }
.sl-desc { margin: 0 0 6px; }
.sl-tease { margin: 0 0 12px; color: var(--gold); font-weight: 700; }
.sl-ways { display: grid; gap: 8px; }
.sl-ways button { min-height: 52px; width: 100%; font-size: 1rem; border-radius: 999px; }
.sl-ways button small { color: var(--neon); margin-left: 4px; }
.sl-bal { display: block; margin-top: 8px; color: var(--muted); }
.sl-bal a, .scroll-badge a { color: var(--neon); }
.scroll-badge { margin: 16px 0 -6px; padding: 10px 14px; border-radius: 16px; background: #f1fbf5; border: 1px solid #bfe6cf; font-size: 0.88rem; }

.scroll-pop { text-align: center; }
.scroll-pop h3 { margin: 4px 0 8px; }
.tteok-shop { text-align: center; max-height: 86vh; overflow-y: auto; }
.tteok-shop h4 { margin: 16px 0 8px; text-align: left; }
.ts-art { position: relative; width: 120px; margin: 0 auto; }
.ts-mill { position: absolute; right: -12px; bottom: 6px; font-size: 2rem; }
.ts-bal { font-size: 1.05rem; } .ts-bal b { color: #b27424; font-size: 1.3rem; }
.ts-scrolls, .ts-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.ts-scroll, .ts-pack { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 18px; background: #fff; border: 1px solid rgba(240, 190, 205, 0.7); color: var(--text); min-height: 100px; }
.ts-scroll span, .tp-ic { font-size: 1.8rem; }
.ts-scroll b, .ts-pack b { font-size: 0.92rem; }
.ts-scroll small, .ts-pack small { color: var(--muted); font-size: 0.78rem; }
.ts-scroll.own { background: #f1fbf5; border-color: #bfe6cf; }
.ts-pack em { font-style: normal; font-weight: 700; color: var(--neon); }
.ts-note { font-size: 0.78rem !important; margin-top: 8px; }
.ts-free { text-align: left; margin: 0 0 14px; padding-left: 20px; line-height: 1.9; font-size: 0.9rem; }

/* 12지신 타로 */
.tarot-card { background: linear-gradient(170deg, #fff, #f6f0ff); }
.tr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tr-head h2 { margin: 0; font-size: 1.4rem; color: var(--ink); }
.tr-head p { margin: 2px 0 0; }
.tr-guide { font-size: 1.05rem; text-align: center; margin: 12px 0; line-height: 1.6; }
.tr-guide small { color: var(--neon); }
.tr-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-topic { display: grid; justify-items: center; gap: 4px; padding: 16px 8px; min-height: 120px; border-radius: 20px; background: #fff; border: 1px solid rgba(200, 170, 230, 0.6); color: var(--text); box-shadow: 0 3px 10px rgba(180, 157, 219, 0.15); }
.tr-topic span { font-size: 2rem; letter-spacing: -0.3em; }
.tr-topic b { font-size: 1.05rem; color: var(--ink); }
.tr-topic small { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.tr-back { width: 100%; margin-top: 10px; min-height: 48px; }
.tr-deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tc-back { aspect-ratio: 2 / 3; border-radius: 14px; border: 2px solid #fff; color: #fff; font-size: 1.2rem;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 0 18%, transparent 19%), repeating-linear-gradient(45deg, #c9b6ec 0 8px, #d9c8f4 8px 16px);
  box-shadow: 0 4px 10px rgba(140, 108, 196, 0.25); transition: transform 0.15s; }
.tc-back.on { transform: translateY(-6px) scale(1.04); background: radial-gradient(circle at 50% 50%, #fff 0 22%, transparent 23%), repeating-linear-gradient(45deg, #f4a6bd 0 8px, #f9c2d2 8px 16px); }
.tc-back b { color: var(--neon); font-size: 1.3rem; }
.tr-reveal { width: 100%; margin-top: 14px; min-height: 56px; font-size: 1.1rem; }
.tr-cards { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.tr-cards.n1 { grid-template-columns: minmax(0, 200px); justify-content: center; }
.tr-card { display: grid; justify-items: center; text-align: center; gap: 4px; animation: tcFlip 0.6s ease both; }
.tr-card:nth-child(2) { animation-delay: 0.2s; } .tr-card:nth-child(3) { animation-delay: 0.4s; }
@keyframes tcFlip { from { transform: rotateY(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.tr-pos { color: var(--neon); font-weight: 700; }
.tc-face { width: 100%; aspect-ratio: 2 / 3; border-radius: 14px; background: linear-gradient(180deg, #fff8fb, #f0e6ff); border: 2px solid #f0d4e0; display: grid; place-items: center; overflow: hidden; }
.tc-face.rev .tc-img { transform: rotate(180deg); }
.tc-img { width: 92%; height: auto; }
.tr-card b { font-size: 0.85rem; color: var(--ink); line-height: 1.35; }
.tr-kw { color: var(--muted); font-size: 0.74rem; }
.tr-lines p { margin: 0 0 10px; line-height: 1.8; }
.tr-lines b { color: var(--neon); margin-right: 4px; }
.tr-sum { padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(200, 170, 230, 0.6); margin-bottom: 12px; }
.tr-sum p { margin: 0 0 6px; line-height: 1.7; }
.tr-act { color: var(--ink); }
.tr-foot { font-size: 0.78rem !important; margin-top: 10px; }
.main-tabs button { font-size: 0.74rem; }
.scroll-pop .yday-btns, .tarot-card .yday-btns { display: grid; grid-template-columns: 1fr; gap: 8px; }
.scroll-pop .yday-btns button, .tarot-card .yday-btns button { min-height: 52px; width: 100%; }
/* v0.42.1 34장 덱: 6줄 칸, 메이저 아르카나 앞면 */
.tr-deck { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tc-back { border-radius: 10px; font-size: 0.9rem; }
.tc-back b { font-size: 1.05rem; }
.tc-face { position: relative; }
.tc-face.major { background: linear-gradient(180deg, #fff9ef, #fbe9f1 60%, #ece3ff); border-color: #ecd2a6; }
.tc-face.major .tc-in { position: absolute; inset: 5px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1.5px solid rgba(208, 132, 58, 0.35); border-radius: 10px; padding: 6px 2px; }
.tc-face.major.rev .tc-in { transform: rotate(180deg); }
.tc-num { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; font-size: 0.8rem; }
.tc-sym { font-size: 2.4rem; line-height: 1.1; }
.tc-name { font-size: 0.82rem; color: var(--ink); }
.tc-buddy { position: absolute; right: 2px; bottom: 2px; width: 34%; height: auto; }
.todo3-pieces { margin: 10px 0 0; font-size: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.todo3-pieces small { flex-basis: 100%; color: var(--muted); font-size: 0.78rem; }
.pc-dots { display: inline-flex; gap: 4px; }
.pc-dots i { width: 14px; height: 14px; border-radius: 50%; background: #f6e6ec; border: 1px solid #f0c9d6; }
.pc-dots i.on { background: linear-gradient(135deg, #f4a6bd, #f7b48f); border-color: transparent; }
.item-big { width: 120px; height: 120px; object-fit: contain; display: block; margin: 0 auto 4px; }

/* ---------- v0.43 단순화: 접힌 줄 · 오늘의 기운 카드 ---------- */
.fold-list { display: grid; gap: 10px; margin-top: 12px; }
details.card.fold { padding: 0; margin: 0; overflow: hidden; }
details.fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
.fd-ic { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: var(--rose-soft); font-size: 1.25rem; font-weight: 800; color: var(--neon); }
.fd-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fd-t b { font-size: 1rem; color: var(--ink); }
.fd-t small { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-arrow { color: var(--neon); transition: transform 0.2s; }
details.fold[open] .fd-arrow { transform: rotate(180deg); }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold-body { padding: 4px 14px 14px; }
.fold-body > .card, .fold-body > article.card, .fold-body > details.card { box-shadow: none; border: 0; background: transparent; padding: 10px 2px; margin: 0; }
.fold-body > .card + .card { border-top: 1px dashed var(--line); }
.fold-go { display: grid; gap: 8px; padding-top: 10px; }
.fold-go button { min-height: 48px; }

.ki-card { padding: 18px; background: linear-gradient(165deg, #fff 0%, #f6f0ff 100%); }
.ki-card h3 small, .ki-gh small { color: var(--muted); font-weight: 400; font-size: 0.78rem; margin-left: 6px; }
.ki-back { width: 100%; min-height: 180px; display: grid; place-items: center; align-content: center; gap: 6px; border-radius: 22px; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #fde4ea 40%, #e7dcff 100%); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.8), 0 8px 22px rgba(180,157,219,0.35); color: var(--ink); animation: kiPulse 2.4s ease-in-out infinite; }
.ki-back .ki-star { font-size: 3rem; color: var(--neon); line-height: 1; }
.ki-back b { font-size: 1.15rem; }
.ki-back small { color: var(--muted); }
@keyframes kiPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.ki-hint { font-size: 0.86rem; color: var(--text); margin: 10px 0 0; }
.ki-row { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: start; }
.ki-face { position: relative; border-radius: 18px; padding: 12px 8px 10px; text-align: center; background: linear-gradient(170deg, #fff, color-mix(in srgb, var(--el) 22%, #fff)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--el) 55%, #fff), 0 6px 16px rgba(150,90,120,0.15); }
.ki-face.flip { animation: kiFlip 0.8s ease-out; }
@keyframes kiFlip { 0% { transform: rotateY(90deg) scale(0.9); opacity: 0.3; } 60% { transform: rotateY(-10deg) scale(1.04); opacity: 1; } 100% { transform: none; } }
.ki-face .ki-img { width: 96px; height: 96px; object-fit: contain; display: block; margin: 4px auto; }
.ki-face b { display: block; font-size: 0.92rem; color: var(--ink); line-height: 1.3; }
.ki-face small { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.ki-rar { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 0.72rem; font-weight: 800; color: #fff; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ki-text p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.55; }
.ki-why { font-weight: 700; color: var(--ink); }
.ki-act { background: var(--rose-soft); border-radius: 12px; padding: 8px 10px; }
.ki-gh { margin: 14px 0 6px; font-size: 0.95rem; }
.ki-gauge { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kg { display: grid; justify-items: center; gap: 4px; font-size: 0.8rem; }
.kg > span { font-weight: 800; color: var(--ink); }
.kg i { width: 100%; max-width: 44px; height: 64px; border-radius: 12px; background: rgba(222,160,182,0.18); display: flex; align-items: flex-end; overflow: hidden; }
.kg i b { width: 100%; border-radius: 12px 12px 0 0; transition: height 0.6s; }
.kg small { color: var(--muted); font-size: 0.72rem; }
.kg.hl i { box-shadow: 0 0 0 2px var(--neon); }
.ki-prog { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 12px 0 0; font-size: 0.86rem; }
.ki-prog b { color: var(--neon); }
.ki-week { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; }
.ki-week small { color: var(--muted); font-size: 0.76rem; }
.ki-dots { display: inline-flex; gap: 4px; }
.ki-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(222,160,182,0.25); }
.ki-dots i.on { background: var(--neon); }
.ki-go, .ki-hero-btn { width: 100%; min-height: 48px; margin-top: 12px; }
.ki-done { margin: 12px 0 0; font-size: 0.88rem; background: var(--rose-soft); border-radius: 12px; padding: 10px 12px; }
.hero-main .hero-stage { max-width: 300px; margin: 0 auto; }
@media (max-width: 380px) { .ki-row { grid-template-columns: 1fr; } .ki-face { max-width: 180px; margin: 0 auto; } }
.slots.two { grid-template-columns: repeat(2, 1fr); }
/* v0.43.1 타로 아르카나 그림 카드 */
.tc-face.major.art { padding: 0; background: #fff; }
.tc-face.major.art .tc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-face.major.art.rev .tc-art { transform: rotate(180deg); }
.tc-face.major.art .tc-label { position: absolute; left: 6%; right: 6%; bottom: 5%; background: rgba(255,250,245,0.92); border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: var(--ink); text-align: center; padding: 2px 4px; }
.tc-face.major.art .tc-label small { color: var(--gold); }
.hero-main .hero-title { text-align: center !important; width: 100%; }

/* 2026-11-04 한 해 조심할 점 · 참고할 점 */
.bk-part.bk-checks h3 small { display: block; border: none; padding: 0; margin: 4px 0 0; font-size: 0.74rem; color: var(--muted); font-weight: 500; }
.ck-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.ck { border-radius: 14px; padding: 10px 12px; background: var(--rose-soft, #fff0f3); border-left: 4px solid var(--neon); }
.ck.watch { background: #fff4ea; border-left-color: #e8964a; }
.ck.good { background: #eef8f1; border-left-color: #5bb27a; }
.ck.note { background: #f2effb; border-left-color: #9a86d6; }
.ck b { display: block; font-size: 0.92rem; line-height: 1.45; }
.ck em { font-style: normal; font-size: 0.7rem; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,0.06); margin-right: 2px; vertical-align: 1px; }
.ck p { margin: 6px 0 0; font-size: 0.88rem; line-height: 1.6; }
.ck .ck-act { font-weight: 600; }
.ck-when { font-weight: 500; color: var(--muted); }

/* 좁은 폰: 앱 이름은 한 줄, 글씨 버튼은 작게 */
.brand h1 { white-space: nowrap; }
@media (max-width: 400px) {
  .tagline { display: none; }
  .brand { gap: 8px; }
  .brand h1 { font-size: 1.15rem; }
  .top-btns { gap: 6px; }
  #btn-easy, #btn-edit { padding: 6px 9px; font-size: 0.82rem; }
}
@media (max-width: 400px) {
  html.easy .brand-mark { display: none; }
  html.easy .brand h1 { font-size: 1.05rem; }
  html.easy #btn-easy, html.easy #btn-edit { font-size: 0.78rem; padding: 6px 8px; }
}
.bk-part.bk-checks h3 { display: block; }
.ck-calib { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); background: rgba(154,134,214,0.1); border-radius: 10px; padding: 6px 10px; }

/* ---------- v0.46 유료 상세 풀이: 「한지와 인주」 책자 스타일 (2026-11-04 사용자 결정) ----------
   매일 쓰는 화면은 파스텔 그대로, 돈을 내고 여는 풀이만 한지 질감·먹색 글씨·붉은 인주로 격을 다르게 */
.hanji {
  --hj-paper: #f5eedf; --hj-paper2: #fbf7ee; --hj-ink: #2b2420; --hj-ink2: #5b4d42; --hj-red: #b8382a; --hj-navy: #2f3e5c; --hj-gold: #b8944a; --hj-line: #d8cbb2;
  --hj-serif: 'Gowun Batang', 'Noto Serif KR', serif;
  background: var(--hj-paper);
  background-image: radial-gradient(rgba(120, 90, 50, 0.07) 1px, transparent 1.2px);
  background-size: 7px 7px;
  color: var(--hj-ink);
}
.hj-offer { border: 1px solid var(--hj-gold); border-radius: 6px; padding: 18px 16px; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: none; }
.card.hj-offer { background-color: var(--hj-paper); }
.hj-offer.slim { margin-top: 12px; padding: 14px; }
.hj-offer h3 { font-family: var(--hj-serif); font-size: 1.2rem; margin: 0; color: var(--hj-ink); text-wrap: balance; }
.hj-eyebrow { margin: 0; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--hj-red); font-weight: 700; }
.hj-desc { margin: 0; font-size: 0.92rem; color: var(--hj-ink2); }
.hj-teaser { margin: 0; font-family: var(--hj-serif); line-height: 1.8; }
.hj-teaser b { color: var(--hj-navy); }
.hj-blur { filter: blur(3.5px); user-select: none; color: var(--hj-ink2); }
.hj-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hj-line); }
.hj-toc li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--hj-line); font-size: 0.9rem; }
.hj-toc li span:last-child { color: var(--hj-ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hj-note { margin: 0; font-size: 0.8rem; color: var(--hj-ink2); }
.hj-mini { margin: 10px 0 0; font-size: 0.82rem; }
.hj-buy { appearance: none; border: none; border-radius: 4px; background: var(--hj-red); color: #fbf2e2; font: inherit; font-family: var(--hj-serif); font-weight: 700; font-size: 1rem; padding: 13px 16px; min-height: 48px; cursor: pointer; width: 100%; box-shadow: inset 0 0 0 2px var(--hj-red), inset 0 0 0 4px rgba(251, 242, 226, 0.35); }
.hj-buy:hover { filter: brightness(1.06); }
.hj-buy:focus-visible, .hj-close:focus-visible, .hj-index a:focus-visible { outline: 3px solid var(--hj-navy); outline-offset: 2px; }
.hj-buy s { opacity: 0.7; font-weight: 400; }
.hj-offer.owned .hj-buy { background: var(--hj-navy); box-shadow: inset 0 0 0 2px var(--hj-navy), inset 0 0 0 4px rgba(251, 242, 226, 0.3); }

.hj-pay { max-width: 420px; border: 1px solid var(--hj-gold); border-radius: 6px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.hj-pay h3 { font-family: var(--hj-serif); margin: 0; font-size: 1.25rem; color: var(--hj-ink); }
.hj-price { margin: 0; font-family: var(--hj-serif); font-size: 1.1rem; }
.hj-price b { font-size: 1.6rem; color: var(--hj-red); }
.hj-price small { font-family: var(--sans); font-size: 0.8rem; color: var(--hj-ink2); }
.hj-promise { margin: 0; padding-left: 18px; font-size: 0.85rem; color: var(--hj-ink2); display: flex; flex-direction: column; gap: 2px; }
.pay-modal .ghost { color: var(--hj-ink2); border-color: var(--hj-line); background: transparent; }

.hj-reader { position: fixed; inset: 0; z-index: 200; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); }
body.hj-open { overflow: hidden; }
.hj-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--hj-paper2); border-bottom: 1px solid var(--hj-ink); font-family: var(--hj-serif); font-weight: 700; }
.hj-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hj-bar small { color: var(--hj-ink2); font-weight: 400; font-family: var(--sans); }
.hj-close { appearance: none; border: 1px solid var(--hj-line); background: transparent; color: var(--hj-ink); border-radius: 4px; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; }
.hj-book { max-width: 680px; margin: 0 auto; padding: 24px max(18px, env(safe-area-inset-right, 0px)) 48px max(18px, env(safe-area-inset-left, 0px)); font-size: 1.02rem; line-height: 1.9; }
.hj-cover { position: relative; padding: 18px 0 22px; border-bottom: 3px double var(--hj-ink); margin-bottom: 18px; }
.hj-cover h2 { font-family: var(--hj-serif); font-size: 1.6rem; margin: 6px 0 0; padding-right: 76px; text-wrap: balance; color: var(--hj-ink); }
.hj-seal { position: absolute; right: 0; top: 14px; width: 62px; height: 62px; display: grid; place-items: center; background: var(--hj-red); color: #fbf2e2; font-family: var(--hj-serif); font-weight: 700; font-size: 1.15rem; border-radius: 6px; transform: rotate(-5deg); box-shadow: inset 0 0 0 3px var(--hj-red), inset 0 0 0 5px rgba(251, 242, 226, 0.55); }
.hj-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hj-index a { font-size: 0.82rem; padding: 4px 10px; border: 1px solid var(--hj-line); border-radius: 99px; color: var(--hj-navy); text-decoration: none; background: var(--hj-paper2); }
.hj-sec { padding-top: 22px; scroll-margin-top: 70px; }
.hj-blk { scroll-margin-top: 70px; }
.tr-bridge { margin-top: 16px; }
.hj-offer h3, .hj-offer .hj-desc { word-break: keep-all; }
.hj-sec h3 { font-family: var(--hj-serif); font-size: 1.3rem; color: var(--hj-red); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--hj-ink); }
.hj-sec h4 { font-family: var(--hj-serif); font-size: 1.05rem; color: var(--hj-navy); margin: 22px 0 6px; }
.hj-sec p { margin: 0 0 10px; color: var(--hj-ink); }
.hj-intro { color: var(--hj-ink2) !important; font-size: 0.92rem; }
.hj-end { text-align: center; padding-top: 30px; display: flex; flex-direction: column; gap: 12px; font-family: var(--hj-serif); color: var(--hj-ink2); }
html.easy .hj-book { font-size: 1.15rem; }
@media (prefers-reduced-motion: reduce) { .hj-buy { transition: none; } }
/* v0.46.1 궁합 상세 맛보기 · 타로 이용 표시 */
.hj-qa { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hj-qa li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px dashed var(--hj-line); border-radius: 4px; background: var(--hj-paper2); }
.hj-qa b { font-family: var(--hj-serif); color: var(--hj-navy); font-size: 0.95rem; }
.hj-qa .hj-blur { font-size: 0.88rem; }
.tr-price { display: inline-block; margin-top: 6px; font-style: normal; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--rose-soft); color: #b0486b; }
.tr-price.free { background: #e3f6ee; color: #2f8a63; }
.tr-price-note { margin: 10px 0 0; font-size: 0.85rem; }
.tr-reveal small, [data-tarot-again] small { font-weight: 400; opacity: 0.9; }
.tr-price-note a { color: #c45c80; font-weight: 700; }

/* v0.47 타로 이야기 풀이: 카드의 대답 → 카드마다 그림·뜻·주제·내 상황 → 세 장 이야기 */
.tr-situ { margin: 0 0 14px; text-align: center; }
.tr-situ p { margin: 0 0 8px; }
.tr-situ .chips { justify-content: center; }
.tr-situ .chip { min-height: 44px; }
.tr-answer { text-align: center; padding: 16px 14px; margin: 4px 0 14px; border-radius: 20px; background: linear-gradient(135deg, #fff0f5, #f3ecff); border: 1px solid rgba(236, 127, 160, 0.35); }
.tr-answer small { color: var(--neon); font-weight: 700; }
.tr-answer p { margin: 6px 0 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; color: var(--ink); word-break: keep-all; }
.tr-read { padding: 14px; margin-bottom: 12px; border-radius: 18px; background: #fff; border: 1px solid rgba(200, 170, 230, 0.55); }
.tr-read h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--ink); line-height: 1.4; }
.tr-read p { margin: 0 0 10px; line-height: 1.8; word-break: keep-all; }
.tr-read p:last-child { margin-bottom: 0; }
.tr-read p b { display: block; font-size: 0.85rem; color: var(--neon); margin-bottom: 2px; }
.tr-scene { padding: 10px 12px; border-radius: 12px; background: #fffaf3; font-style: normal; }
.tr-situ-line { padding: 10px 12px; border-radius: 12px; background: #f3fbf7; }
.tr-situ-line b { color: #2f8a63 !important; }
.tr-tone { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 99px; background: var(--rose-soft); color: #b0486b; font-size: 0.75rem; font-weight: 700; }
.tr-rev { display: inline-block; padding: 0 8px; border-radius: 99px; background: #eef0f8; color: #5d6b94; font-size: 0.75rem; font-weight: 700; vertical-align: middle; }
.tr-story { padding: 14px; margin-bottom: 12px; border-radius: 18px; background: #fbf7ff; border: 1px dashed rgba(156, 127, 214, 0.6); }
.tr-story b { color: #7a5cc0; }
.tr-story p { margin: 6px 0 0; line-height: 1.85; word-break: keep-all; }
.tr-pos-line { display: block; margin-bottom: 2px; }
/* v0.47.1 카드별 풀이는 접힘(대답·이야기만 펼침) · 다시 나온 카드 */
.tr-read summary { list-style: none; cursor: pointer; display: grid; gap: 2px; min-height: 48px; padding-right: 28px; position: relative; }
.tr-read summary::-webkit-details-marker { display: none; }
.tr-read summary::after { content: '▾'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--neon); font-size: 1.1rem; transition: transform 0.2s; }
.tr-read[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.tr-read[open] summary { margin-bottom: 10px; }
.tr-read-h { font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.4; }
.tr-fold-guide { text-align: center; font-size: 0.82rem; margin: 4px 0 8px; }
.tr-repeat { margin: -4px 0 14px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #fff8e6, #fff0f5); border: 1px solid rgba(208, 132, 58, 0.35); line-height: 1.75; word-break: keep-all; color: var(--ink); }
.tr-again-badge { display: inline-block; padding: 0 8px; border-radius: 99px; background: #fff3d6; color: #b5701f; font-size: 0.75rem; font-weight: 700; vertical-align: middle; }
/* v0.48 올인원 패키지(그해 상세판 + 정통사주 + 궁합 3명 + 복떡 50개 = 4,900원) */
.hj-bundle { margin-top: 6px; padding: 14px; border: 1px dashed var(--hj-gold); border-radius: 6px; background: var(--hj-paper2); display: flex; flex-direction: column; gap: 8px; }
.hj-bundle-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-family: var(--hj-serif); color: var(--hj-ink); font-size: 0.92rem; }
.hj-bundle-list small { color: var(--hj-ink2); font-size: 0.75rem; }
.hj-buy.navy { background: var(--hj-navy); box-shadow: inset 0 0 0 2px var(--hj-navy), inset 0 0 0 4px rgba(251, 242, 226, 0.3); }
.hj-buy small { font-weight: 400; opacity: 0.9; }
/* v0.49 결제 노출 규칙: 처음 3일 접힌 한 줄 · 올인원 안내 한 줄 · 지신 상점 */
.hj-quiet { margin-top: 14px; border-radius: 14px; background: #fff; border: 1px dashed rgba(200, 170, 230, 0.7); }
.hj-quiet > summary { list-style: none; cursor: pointer; padding: 12px 14px; min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--ink); font-size: 0.92rem; word-break: keep-all; }
.hj-quiet > summary::-webkit-details-marker { display: none; }
.hj-quiet > summary small { color: var(--muted); }
.hj-quiet[open] > summary { border-bottom: 1px dashed rgba(200, 170, 230, 0.7); }
.hj-quiet > .hj-offer { margin: 10px; }
.hj-mention a { color: var(--hj-red); font-weight: 700; }
.sh-list { display: flex; flex-direction: column; gap: 8px; }
.sh-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(200, 170, 230, 0.55); text-align: left; }
.sh-ic { font-size: 1.5rem; }
.sh-item b { display: block; color: var(--ink); font-size: 0.95rem; }
.sh-item small { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.sh-btn { min-height: 44px; padding: 8px 12px; white-space: nowrap; }
.tteok-shop h4 small.ts-bal { font-weight: 400; font-size: 0.82rem; margin-left: 6px; }
.tteok-shop .hj-bundle { margin-top: 12px; text-align: left; }

/* ---------- v0.50 오늘의 이야기 · 여백(2026-11-05 사용자 의견 「꽉 채워 여백의 미가 없다」) ---------- */
[data-panel="today"] > .card, [data-panel="today"] > article.card { margin: 22px 0; }
[data-panel="today"] .fold-list { gap: 14px; margin-top: 26px; }
.five-card { padding: 26px 22px 22px; }
.five-head { margin-bottom: 18px; }
.five-hi h2 { font-size: 1.5rem; line-height: 1.35; margin: 4px 0 6px; word-break: keep-all; }
.five-hi p { color: var(--muted); line-height: 1.6; word-break: keep-all; }
.ts-why { display: flex; gap: 12px; align-items: center; margin: 0 0 20px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(240, 190, 205, 0.5); line-height: 1.7; word-break: keep-all; }
.ts-why .ts-z { width: 54px; height: 54px; flex: none; }
.ts-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .ts-grid { grid-template-columns: 1fr 1fr; } }
.ts-tile { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(240, 190, 205, 0.45); }
.ts-tile h4 { margin: 0 0 8px; font-size: 1rem; color: var(--ink); }
.ts-tile p, .ts-tile li { margin: 0; line-height: 1.75; font-size: 0.97rem; color: var(--text); word-break: keep-all; }
.ts-tile ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.ts-tile.good { background: #fff8f0; }
.ts-tile.watch { background: #f7f4ff; }
.ts-tile.think { background: #f2f9f6; }
.ts-tile.act { background: #fff4f7; border-color: rgba(236, 127, 160, 0.45); }
.ts-tile .ts-dont-h { margin: 10px 0 4px; font-weight: 700; color: #7a3b4c; }
.ts-tile ul.ts-dont { margin-top: 0; }
.ts-lucky { margin: 18px 0 0; font-size: 0.92rem; color: var(--muted); text-align: center; }
.ts-react { margin: 20px 0 0; padding-top: 18px; border-top: 1px dashed var(--line); text-align: center; }
.ts-react > p { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.ts-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ts-btns button { min-height: 48px; min-width: 132px; }
.ts-thanks { margin: 0; line-height: 1.7; color: var(--text) !important; font-weight: 400 !important; word-break: keep-all; }
.five-more { margin-top: 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(240, 190, 205, 0.45); }
.five-more > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; min-height: 48px; font-weight: 700; color: var(--ink); }
.five-more > summary::-webkit-details-marker { display: none; }
.five-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-weight: 400; }
.five-chips i { font-style: normal; font-size: 0.85rem; display: inline-flex; gap: 2px; align-items: center; }
.five-more .five-list { padding: 0 12px 12px; }
.five-more .five-note { padding: 0 14px 14px; margin: 0; }
/* 읽는 책(상세판·정통사주): 문단 사이 숨 쉴 틈 · 부록은 접힘 */
.hj-sec { padding-top: 34px; }
.hj-sec p { margin: 0 0 16px; }
.hj-sec h4 { margin: 28px 0 8px; }
.hj-blk { padding-bottom: 4px; }
.hj-appendix { margin-top: 40px; padding: 14px 16px; border: 1px dashed var(--hj-line); border-radius: 12px; background: var(--hj-paper2); }
.hj-appendix > summary { cursor: pointer; font-family: var(--hj-serif); font-weight: 700; color: var(--hj-navy); min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.hj-appendix > summary small { font-family: inherit; font-weight: 400; color: var(--hj-ink2); font-size: 0.82rem; }
.hj-appendix .hj-sec h3 { font-size: 1.1rem; color: var(--hj-navy); }
.hj-appendix .hj-sec p { font-size: 0.94rem; }
.hj-ap-link { border-style: dashed !important; }
.five-more > summary > span:first-child { white-space: nowrap; }
.five-chips i { font-size: 0.8rem; }
/* v0.50.1 장 끝 한 줄(다음 장 예고) · 오늘의 한 편 */
.hj-cliff p { font-style: italic; color: var(--hj-navy) !important; border-left: 3px solid var(--hj-red); padding-left: 12px; margin-top: 18px; }
.ts-why span { font-size: 1.02rem; line-height: 1.85; }
.ts-why { display: block; }
.ts-why .ts-z { float: left; width: 46px; height: 46px; margin: 2px 10px 4px 0; }
.ts-why::after { content: ''; display: block; clear: both; }
/* v0.50.2 무료 책자 앞머리 · 내 사주 이야기 */
.bk-story { margin: 6px 0 20px; }
.bk-story h3, .sj-story h4 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--ink); word-break: keep-all; }
.bk-story p, .sj-story p { line-height: 1.85; word-break: keep-all; }
.bk-hook { font-size: 1.02rem; padding: 14px 16px; border-radius: 16px; background: #fff8f0; border: 1px solid rgba(240, 190, 205, 0.45); }
.bk-cliff { color: #4a3a6b; background: #f4effc; border-left: 4px solid #8a6fc9; border-radius: 0 12px 12px 0; padding: 12px 14px; margin-top: 18px; font-weight: 600; line-height: 1.75; }
.sj-story { padding: 24px 20px; }
.sj-expert > summary { min-height: 56px; }
/* v0.50.3 기운 카드 한 편 · 타로 이야기 */
.ki-story { line-height: 1.8; word-break: keep-all; margin: 0 0 12px; }
.tr-tale { margin: 16px 0 12px; padding: 16px 18px; border-radius: 18px; background: #fff8f0; border: 1px solid rgba(240, 190, 205, 0.5); }
.tr-tale small { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.tr-tale p { margin: 0; line-height: 1.85; word-break: keep-all; }
.ki-story { margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; background: #fff8f0; border: 1px solid rgba(240, 190, 205, 0.45); }
/* v0.50.5 글씨 버튼: 돋보기 + 「크게/작게」 두 글자, 쉬운 모드에서도 머리줄 버튼은 같은 크기(자리 차지 줄임) */
#btn-easy, html.easy #btn-easy { font-size: 14px; padding: 6px 10px; gap: 3px; min-width: 0; min-height: 40px; }
#btn-easy .ez-ic, html.easy #btn-easy .ez-ic { font-size: 15px; }
html.easy #btn-edit { font-size: 14px; padding: 6px 10px; min-height: 40px; }
html.easy .top h1 { font-size: 20px; }

/* v0.51 한눈에 정리: 할 일·피할 일·언제를 맨 앞에 */
.brief-box { margin: 14px 0 18px; padding: 16px 18px; border-radius: 18px; background: #fffaf3; border: 1.5px solid rgba(208, 132, 58, 0.45); }
.brief-box h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--ink); }
.brief-row { margin-top: 10px; }
.brief-row h4 { margin: 0 0 4px; font-size: 0.98rem; color: var(--ink); }
.brief-row ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.brief-row li { line-height: 1.7; font-size: 0.96rem; color: var(--text); word-break: keep-all; }
.brief-row p { margin: 0; line-height: 1.7; font-size: 0.96rem; color: var(--text); word-break: keep-all; }
/* v0.51.1 이야기 한 장면 + 쉽게 말하면 */
.ts-scene, .bk-scene { display: block; margin: 0 0 8px; font-style: italic; color: #7a5a8c; line-height: 1.7; }
.bk-scene { padding: 10px 14px; border-radius: 14px; background: #faf6ff; }
.ts-plain, .bk-hook b { color: var(--ink); }
.ki-quote { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: #fff8f0; color: #7a5a3c; line-height: 1.7; font-size: 0.95rem; }

/* v0.52 지신 밥 주기 · 성장 막대 · 꾸밈 · 성장 미리 보기 */
.jisin-grow { margin: 12px 0 14px; padding: 14px 16px; border-radius: 18px; background: #fffaf6; border: 1px solid rgba(236, 127, 160, 0.3); }
.jg-bowls { margin: 0 0 12px; }
.jg-bowls.compact { margin: 12px 0 4px; }
.jg-bh { margin: 0 0 8px; font-size: 0.95rem; color: var(--ink); }
.jg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.jg-bowl { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; min-height: 48px; border-radius: 14px; border: 1.5px dashed rgba(236, 127, 160, 0.5); background: #fff; color: var(--text); cursor: pointer; }
.jg-bowl span { font-size: 1.5rem; line-height: 1; }
.jg-bowl b { font-size: 0.9rem; }
.jg-bowl small { font-size: 0.72rem; color: var(--muted); text-align: center; line-height: 1.3; }
.jg-bowl.done { border-style: solid; background: #fff1f5; cursor: default; }
.jg-bar-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text); margin: 4px 0 6px; }
.jg-bar { position: relative; height: 14px; border-radius: 99px; background: #f3e6ec; overflow: visible; margin: 0 0 14px; }
.jg-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb3c7, #ec7fa0); transition: width 0.6s; }
.jg-bar em { position: absolute; top: -6px; transform: translateX(-50%); font-style: normal; font-size: 1rem; filter: grayscale(1); opacity: 0.35; }
.jg-bar em.on { filter: none; opacity: 1; }
.jg-meta, .jg-cond { margin: 6px 0 0; font-size: 0.88rem; color: var(--text); line-height: 1.6; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jg-up { color: #d0577c; font-weight: 700; }
.jg-face { width: 30px; height: 30px; object-fit: contain; }
.jg-decor { position: relative; display: inline-block; border-radius: 50%; }
.jg-decor.d3 { filter: drop-shadow(0 0 10px var(--el)); }
.jg-decor.d4 { filter: drop-shadow(0 0 8px var(--el)) drop-shadow(0 0 18px var(--el)); }
.jg-decor .jd { position: absolute; font-size: 1.6rem; animation: jdbob 2.4s ease-in-out infinite; }
.jg-decor .jd1 { left: 8%; top: 18%; }
.jg-decor .jd2 { right: 8%; top: 10%; animation-delay: 0.6s; }
@keyframes jdbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.gp-box { max-width: 560px; max-height: 88vh; overflow-y: auto; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.gp-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: center; }
.gp-item b { font-size: 0.82rem; color: var(--ink); }
.gp-item small { font-size: 0.72rem; color: var(--muted); }
.gp-item.now { border: 2px solid #ec7fa0; background: #fff1f5; }
.gp-item.locked .gp-pic { filter: saturate(0.55) brightness(1.05); opacity: 0.8; }
.gp-pic svg { width: 110px; height: auto; }
.gp-emo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gp-emo > div { display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; color: var(--text); }
.gp-emo .off .gp-face { filter: grayscale(1) brightness(1.2); opacity: 0.45; }
.gp-face { width: 52px; height: 52px; object-fit: contain; }

/* v0.53 두 번째 지신 */
.duo-box { margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; background: #fbf7ff; border: 1px solid rgba(167, 123, 224, 0.3); }
.duo-box h4 { margin: 0 0 8px; font-size: 1rem; color: var(--ink); }
.duo-box h4 small { font-weight: normal; color: var(--muted); font-size: 0.8rem; }
.duo-box p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.7; }
.duo-box.locked { background: #faf7f5; border-style: dashed; }
.duo-peek { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.duo-peek span { display: flex; flex-direction: column; align-items: center; opacity: 0.55; filter: grayscale(0.5); }
.duo-peek-face { width: 40px; height: 40px; object-fit: contain; }
.duo-peek em { font-size: 0.78rem; color: var(--muted); font-style: normal; }
.duo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo-row figure { margin: 0; text-align: center; }
.duo-row svg { max-width: 100%; height: auto; }
.duo-row figcaption { display: flex; flex-direction: column; font-size: 0.85rem; }
.duo-row figcaption small { color: var(--muted); }
.duo-scene { margin-top: 8px !important; color: #4a3a6b; font-weight: 600; }
.duo-talk { background: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; }
.duo-talk p { margin: 2px 0 !important; font-size: 0.86rem !important; }
.duo-talk b { color: var(--neon); margin-right: 4px; }
.duo-meta { font-size: 0.8rem !important; margin-top: 6px !important; }
.duo-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.duo-grid.small { grid-template-columns: repeat(4, 1fr); }
.duo-opt { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; align-items: center; column-gap: 10px; text-align: left; padding: 8px 10px; min-height: 48px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--text); }
.duo-opt .duo-face { grid-row: 1 / span 3; width: 44px; height: 44px; object-fit: contain; }
.duo-opt em { font-style: normal; font-size: 0.78rem; color: var(--neon); }
.duo-opt small { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.duo-grid.small .duo-opt { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 6px 4px; }
.duo-grid.small .duo-opt .duo-face { grid-row: auto; width: 36px; height: 36px; }
.duo-opt.on { border-color: var(--neon); background: #fff1f5; }
.duo-name { display: block; margin-top: 12px; font-size: 0.88rem; }
.duo-name input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font: inherit; box-sizing: border-box; }
.duo-warn { font-size: 0.82rem; color: #9a4f12; margin: 8px 0 0; }

/* v0.54 오늘의 작은 예언 · 내일 맛보기 */
.omen-box { margin: 18px 0 12px; padding: 14px 16px; border-radius: 18px; background: #f6f1ff; border: 1px solid rgba(125, 95, 196, 0.28); }
.omen-box h4 { margin: 0 0 6px; font-size: 1rem; color: #4a3a6b; }
.omen-text { margin: 0 0 10px; font-size: 1rem; line-height: 1.75; font-weight: 600; color: var(--ink); }
.omen-ask, .omen-wait, .omen-done { margin: 0 0 8px; font-size: 0.88rem; line-height: 1.6; }
.omen-wait { color: #5d4d7d; }
.omen-done { color: #4a3a6b; font-weight: 600; }
.omen-btns { display: flex; gap: 8px; margin: 0 0 8px; }
.omen-btns button { flex: 1; min-height: 46px; }
.omen-y { margin: 8px 0; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px dashed rgba(125, 95, 196, 0.35); }
.omen-y p { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.6; }
.omen-stamps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 0; font-size: 0.78rem; color: var(--muted); }
.omen-stamps span { width: 100%; margin-bottom: 2px; }
.omen-stamps i { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-style: normal; font-size: 0.72rem; }
.omen-stamps i.on { background: #ffe3ee; border-color: var(--neon); }
.omen-stamps i.miss { opacity: 0.5; }
.omen-stamps small { margin-left: 6px; }
.peek-box { margin: 0 0 12px; }
.peek-btn { width: 100%; min-height: 50px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.peek-btn small { font-size: 0.76rem; color: var(--muted); }
.peek-box.open { padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #eef1ff, #fbf3ff); border: 1px solid rgba(47, 62, 92, 0.15); }
.peek-box.open p { margin: 0 0 4px; }
.peek-h { font-size: 0.82rem; color: #2f3e5c; }
.peek-head { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.peek-hint { font-size: 0.88rem; }
.peek-lock { font-size: 0.8rem; color: var(--muted); }
.peek-open { display: block; font-style: normal; font-size: 0.78rem; color: #2f3e5c; margin-top: 2px; }

/* v0.55 지신의 기록 */
#fold-diary .fd-t small { font-style: italic; }
.diary-paper { padding: 16px 18px 14px; border-radius: 14px; background: #fbf8f1; border: 1px solid rgba(90, 70, 50, 0.14);
  box-shadow: inset 0 0 0 4px #fbf8f1, inset 0 0 0 5px rgba(90, 70, 50, 0.08);
  font-family: 'Gowun Batang', serif; color: #3a302a; }
.diary-paper p { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.85; }
.diary-date { font-size: 0.8rem !important; color: #8a7a6a; letter-spacing: 0.02em; }
.diary-ps { font-size: 0.86rem !important; color: #6a5a4a; font-style: italic; }
.diary-sign { text-align: right; font-size: 0.86rem !important; color: #6a5a4a; margin-top: 4px !important; }

/* v0.55 오늘의 행운 긁기 */
.sc-box { margin: 14px 0 6px; }
.sc-h { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.sc-h small { font-weight: normal; color: var(--muted); font-size: 0.8rem; margin-left: 4px; }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-tile { position: relative; min-height: 74px; padding: 10px 12px; border-radius: 14px; background: #fffaf3; border: 1px solid rgba(208, 132, 58, 0.25); display: flex; flex-direction: column; justify-content: center; gap: 4px; overflow: hidden; user-select: none; }
.sc-l { font-size: 0.78rem; color: var(--muted); }
.sc-v { font-size: 0.98rem; color: var(--ink); line-height: 1.4; }
.sc-tile.open .sc-v { animation: sc-pop 0.5s ease; }
@keyframes sc-pop { 0% { transform: scale(0.85); opacity: 0.3; } 100% { transform: scale(1); opacity: 1; } }
.sc-foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; transition: opacity 0.35s; } /* v0.66: 위아래로 쓸면 화면이 움직이고, 좌우로 문지르면 긁힘(예전 none은 폰에서 칸 위 스크롤을 막음) */
.sc-foil.gone { opacity: 0; }
.sc-all { display: block; margin: 6px auto 0; }


/* v0.56 내 오행 · 모자란 기운 채우기 */
.oh-hint { margin: -4px 0 10px; font-size: 0.84rem; }
.oh-rows { display: flex; flex-direction: column; gap: 6px; }
.oh-row { display: grid; grid-template-columns: 58px 1fr 40px auto; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.oh-row.on { border-color: var(--neon); background: #fff4f7; box-shadow: 0 2px 8px rgba(236, 127, 160, 0.15); }
.oh-n { display: flex; flex-direction: column; font-weight: 700; line-height: 1.2; }
.oh-n small { font-weight: normal; font-size: 0.72rem; color: var(--muted); }
.oh-track { height: 10px; border-radius: 6px; background: #f3ecef; overflow: hidden; }
.oh-track i { display: block; height: 100%; border-radius: 6px; }
.oh-v { font-size: 0.85rem; text-align: right; }
.oh-tag { font-style: normal; font-size: 0.72rem; padding: 2px 7px; border-radius: 10px; background: #ffe3ee; color: #b2456b; white-space: nowrap; }
.oh-row.need .oh-tag { background: #fff0d9; color: #a5601c; }
.oh-panel { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: #fffaf6; border-left: 5px solid var(--el); }
.oh-panel h4 { margin: 0 0 8px; font-size: 1.02rem; }
.oh-panel h4 small { font-weight: normal; color: var(--muted); font-size: 0.8rem; margin-left: 4px; }
.oh-panel p { margin: 0 0 8px; line-height: 1.75; font-size: 0.92rem; }
.oh-status { color: #5d4d55; }
.oh-bh { font-weight: 700; margin-top: 10px !important; }
.oh-bring { margin: 0 0 10px; padding-left: 20px; line-height: 1.8; font-size: 0.92rem; }
.oh-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.oh-chips span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 0.85rem; line-height: 1.45; }
.oh-chips b { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.oh-go { width: 100%; }

/* ===== v0.57 소원 부적 · 지신 데일리 코디 · 걱정 태우기 ===== */
.wish-form { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: #fff8ec; border: 1px dashed rgba(208, 132, 58, 0.45); display: grid; gap: 8px; }
.wish-form .wish-h { margin: 0; }
.wish-form .wish-h small { color: var(--muted); font-weight: 400; }
.wish-form input[type="text"] { width: 100%; box-sizing: border-box; }
.wish-form .wish-date { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; }
.wish-form small { font-size: 0.78rem; line-height: 1.5; }
.wish-charm { display: inline-block; width: 64px; flex: none; }
.wish-charm svg { width: 100%; height: auto; display: block; }
.wish-charm.gold { filter: sepia(1) saturate(2.6) hue-rotate(-8deg) brightness(1.06) drop-shadow(0 0 6px rgba(240, 180, 60, 0.75)); }
.wish-due { background: linear-gradient(135deg, #fff8e6, #fff0f4); border: 1px solid rgba(208, 132, 58, 0.35); }
.wish-due .wd-row { display: flex; gap: 14px; align-items: center; }
.wish-due .wd-tag { margin: 0; font-size: 0.82rem; color: var(--gold); font-weight: 700; }
.wish-due .wd-ask { margin: 4px 0; font-size: 1.05rem; line-height: 1.6; }
.wish-due .wd-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.wish-due .wd-btns .primary { grid-column: 1 / -1; }
.wish-due .wd-btns button { min-height: 44px; }
.wish-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-bottom: 12px; }
.wish-frame { margin: 0; padding: 10px 8px 8px; text-align: center; background: #fffaf0; border: 4px double #d0a04a; border-radius: 6px; box-shadow: inset 0 0 0 2px #fff, 0 4px 12px rgba(160, 110, 40, 0.18); }
.wish-frame .wish-charm { width: 72px; }
.wish-frame figcaption { display: grid; gap: 2px; margin-top: 6px; font-size: 0.84rem; line-height: 1.4; }
.wish-frame figcaption small { color: var(--muted); font-size: 0.74rem; }
.wish-wait-h { margin: 6px 0 4px; font-weight: 700; font-size: 0.9rem; }
.wish-wait { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.wish-wait li { display: flex; align-items: center; gap: 10px; }
.wish-wait .wish-charm { width: 40px; opacity: 0.85; }
.wish-wait span { display: grid; font-size: 0.88rem; }
.wish-wait small { color: var(--muted); font-size: 0.76rem; }
.wish-pop .wish-shine { display: inline-block; animation: wishGlow 1.6s ease-in-out infinite alternate; }
.wish-pop .wish-charm { width: 110px; }
@keyframes wishGlow { from { transform: scale(0.98); } to { transform: scale(1.04); } }
.care-box p { line-height: 1.6; margin: 6px 0; }
.care-call { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.coordi .cd-guide { margin: 0 0 10px; line-height: 1.6; font-size: 0.9rem; }
.coordi .cd-stage { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.coordi .cd-stage > .cd-wrap, .coordi .cd-stage > svg { flex: none; width: 140px; }
.coordi .cd-wrap svg { width: 100%; height: auto; display: block; }
.coordi .cd-score { display: grid; gap: 2px; }
.coordi .cd-score small { color: var(--muted); font-size: 0.76rem; }
.cd-hearts { color: #ec7fa0; font-size: 1.35rem; letter-spacing: 1px; }
.cd-hearts i { font-style: normal; color: #e7cdd6; }
.coordi .cd-say { margin: 4px 0 0; font-size: 0.86rem; line-height: 1.55; }
.cd-row { display: grid; grid-template-columns: 36px 1fr; gap: 6px; align-items: start; margin: 8px 0; }
.cd-slot { font-weight: 700; font-size: 0.84rem; padding-top: 12px; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-item { flex: none; width: 68px; min-height: 64px; display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.cd-item span { font-size: 1.4rem; line-height: 1.2; }
.cd-item small { font-size: 0.66rem; line-height: 1.25; word-break: keep-all; }
.cd-item em { font-style: normal; color: #ec7fa0; font-size: 0.66rem; }
.cd-item.on { border-color: #ec7fa0; background: #fff0f5; box-shadow: 0 0 0 2px rgba(236, 127, 160, 0.3); }
.cd-item.none span { font-size: 1rem; color: var(--muted); }
.cd-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cd-btns button { min-height: 46px; }
.cd-streak { margin: 10px 0 2px; font-size: 0.86rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cd-note { font-size: 0.76rem; margin: 2px 0 0; }
.cd-wrap { position: relative; display: inline-block; }
.cd-on { position: absolute; font-size: 1.7rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15)); pointer-events: none; }
.cd-head { left: 50%; top: 16%; transform: translateX(-50%); }
.cd-neck { left: 50%; top: 60%; transform: translateX(-50%); }
.cd-hand { right: 12%; top: 62%; }
.coordi .cd-on { font-size: 1.25rem; }

.burn-intro textarea { width: 100%; box-sizing: border-box; resize: none; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.burn-h { margin: 10px 0 6px; font-weight: 700; font-size: 0.88rem; }
.burn-h small { font-weight: 400; color: var(--muted); }
.burn-pick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.burn-pick button { flex: none; width: 62px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; justify-items: center; cursor: pointer; color: var(--text); }
.burn-pick button svg { width: 100%; height: auto; }
.burn-pick button small { font-size: 0.68rem; }
.burn-pick button.on { border-color: #ef8a5a; box-shadow: 0 0 0 2px rgba(239, 138, 90, 0.35); }
.burn-pick .paper span { font-size: 1.8rem; padding: 12px 0 6px; }
.burn-box { max-width: 340px; }
.burn-tip { margin: 0 0 8px; font-size: 0.84rem; }
.burn-care { background: #fff3f6; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; font-size: 0.84rem; }
.burn-care p { margin: 2px 0; }
.burn-stage { position: relative; width: 100%; max-width: 250px; aspect-ratio: 300 / 480; margin: 0 auto 10px; border-radius: 10px; overflow: hidden; background: #2b2420; touch-action: none; }
.burn-paper { position: absolute; inset: 0; background: #f5eedf; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; box-sizing: border-box; }
.burn-paper .bp-charm { width: 46%; }
.burn-paper .bp-charm svg { width: 100%; height: auto; display: block; }
.burn-paper .bp-worry { margin: 0; font-family: 'Gowun Batang', var(--serif); font-size: 1.05rem; line-height: 1.6; color: #2b2420; text-align: center; word-break: keep-all; }
.burn-fire { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.burn-stage.fade .burn-paper { transition: opacity 0.7s; opacity: 0; }
.burn-end .burn-take { font-size: 1rem; line-height: 1.6; margin: 4px 0; }
.burn-end .burn-exp { font-size: 0.86rem; color: var(--muted); margin: 0 0 8px; }

/* v0.58 코디 소품 그림 */
.cd-item .cd-thumb { width: 1.9rem; height: 1.9rem; object-fit: contain; display: block; margin: 0 auto; }

/* ---------- v0.59 오늘의 포춘 쿠키 · 나만의 습관 2가지 ---------- */
.fc-card { padding: 18px 16px 20px; background: linear-gradient(170deg, #fff 0%, #fff3e6 100%); text-align: center; }
.fc-h { margin: 0 0 6px; font-family: var(--serif); font-size: 1.15rem; color: var(--gold); }
.fc-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 360px; }
.fc-machine { all: unset; cursor: pointer; position: relative; display: flex; align-items: flex-end; justify-content: center; width: min(320px, 92%); }
.fc-machine:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; border-radius: 16px; }
.fc-combo { width: 100%; max-height: 330px; object-fit: contain; }
.fc-mwrap { width: 62%; display: block; }
.fc-mwrap .fc-mimg, .fc-msvg { width: 100%; height: auto; display: block; }
.fc-jisin { width: 44%; margin-left: -10%; transform: scaleX(-1); filter: drop-shadow(0 4px 6px rgba(75, 57, 66, .15)); }
.fc-stage[data-step="idle"] .fc-machine { animation: fc-bob 2.4s ease-in-out infinite; }
.fc-stage[data-step="spin"] .fc-machine { animation: fc-shake .22s linear 7; }
.fc-stage[data-step="spin"] .fc-crank { animation: fc-crank .5s linear 3; transform-origin: 160px 150px; transform-box: view-box; }
.fc-stage[data-step="spin"] .fc-jisin { animation: fc-push .5s ease-in-out 3; }
.fc-cookie { all: unset; cursor: pointer; position: relative; width: 132px; height: 100px; visibility: hidden; }
.fc-cookie > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fc-cookie svg, .fc-cookie img { width: 100%; height: 100%; object-fit: contain; }
.fc-half, .fc-paper { opacity: 0; }
.fc-cookie > .fc-paper { inset: auto; left: 50%; top: 54%; width: 0; height: 26px; transform: translateX(-50%); background: #fff; border: 1px solid #e3c9a0; border-radius: 4px; font-size: .78rem; color: var(--ink); white-space: nowrap; overflow: hidden; }
.fc-stage[data-step="ready"] .fc-cookie, .fc-stage[data-step="crack"] .fc-cookie { visibility: visible; }
.fc-stage[data-step="ready"] .fc-cookie { animation: fc-roll .9s cubic-bezier(.3, 1.3, .5, 1) both, fc-wiggle 1.4s .9s ease-in-out infinite; }
.fc-stage[data-step="crack"] .fc-whole { opacity: 0; }
.fc-stage[data-step="crack"] .fc-half { opacity: 1; }
.fc-stage[data-step="crack"] .fc-half.l { animation: fc-split-l .7s ease-out forwards; }
.fc-stage[data-step="crack"] .fc-half.r { animation: fc-split-r .7s ease-out forwards; }
.fc-stage[data-step="crack"] .fc-paper { animation: fc-paper .8s .25s ease-out forwards; }
/* v0.59 그림 기계(띠별 지신 + 기계 한 장): 쿠키는 기계 왼쪽 아래 쿠키 구멍에서 굴러 나옴, 쪽지는 쪼갠 반쪽 사이 */
.fc-stage.combo[data-step="ready"] .fc-cookie { animation: fc-roll-chute 1s cubic-bezier(.3, 1.2, .5, 1) both, fc-wiggle 1.4s 1s ease-in-out infinite; }
.fc-stage .fc-paper { z-index: 2; }
.fc-guide { margin: 8px 0 0; color: var(--muted); font-size: .95rem; min-height: 1.4em; }
.fc-card.open { text-align: left; padding: 16px 16px 20px; }
.fc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fc-broken { position: relative; width: 74px; height: 52px; flex: none; }
.fc-broken i { position: absolute; top: 0; width: 74px; height: 52px; }
.fc-broken i svg, .fc-broken i img { width: 100%; height: 100%; object-fit: contain; }
.fc-broken i.l { left: -8px; transform: rotate(-14deg); }
.fc-broken i.r { left: 8px; transform: rotate(14deg); }
.fc-top-t { display: flex; flex-direction: column; gap: 2px; }
.fc-top-t b { font-family: var(--serif); color: var(--gold); }
.fc-slip { padding: 16px 14px; border-radius: 16px; background: #fffdf8; border: 1px dashed rgba(208, 132, 58, .45); animation: fc-unfold .6s ease-out; }
.ts-one { margin: 14px 0; }
.sc-tile.wide { grid-column: 1 / -1; min-height: 84px; }
.sc-tile.wide .sc-v { font-size: 1.02rem; line-height: 1.5; }
.sc-sub { color: var(--muted); font-size: .8rem; }
@keyframes fc-bob { 50% { transform: translateY(-4px); } }
@keyframes fc-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.6deg) translateX(-2px); } 75% { transform: rotate(1.6deg) translateX(2px); } }
@keyframes fc-crank { to { transform: rotate(360deg); } }
@keyframes fc-push { 50% { transform: scaleX(-1) translateX(6px) rotate(-4deg); } }
@keyframes fc-roll { from { transform: translate(-40px, -70px) rotate(-540deg) scale(.35); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes fc-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(0) scale(1.05); } }
@keyframes fc-roll-chute { from { transform: translate(-100px, -112px) rotate(-200deg) scale(.3); opacity: 0; } 15% { opacity: 1; } 55% { transform: translate(-46px, -12px) rotate(-60deg) scale(.75); } to { transform: none; opacity: 1; } }
@keyframes fc-split-l { to { transform: translate(-46px, 10px) rotate(-28deg); } }
@keyframes fc-split-r { to { transform: translate(46px, 10px) rotate(28deg); } }
@keyframes fc-paper { 0% { opacity: 1; width: 0; } 100% { opacity: 1; width: 124px; padding: 3px 6px; } }
@keyframes fc-unfold { from { opacity: 0; transform: translateY(-8px) scaleY(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fc-stage *, .fc-slip { animation: none !important; } .fc-stage[data-step="crack"] .fc-paper { opacity: 1; width: 124px; } }

.dh-card h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dh-lead, .dh-ask { margin: 4px 0 12px; line-height: 1.7; }
.dh-ask { font-weight: 600; color: var(--ink); }
.dh-in { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: .9rem; color: var(--muted); }
.dh-in input { min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 1rem; background: #fff; color: var(--text); }
.dh-rec-h { margin: 6px 0 6px; font-weight: 600; } .dh-rec-h small { color: var(--muted); font-weight: 400; }
.dh-recs { margin-bottom: 12px; }
.dh-rows { display: grid; gap: 10px; }
.dh-row { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); }
.dh-row:focus-visible { outline: 3px solid var(--neon); }
.dh-row .dh-t { flex: 1; font-size: 1.02rem; }
.dh-row small { color: var(--gold); font-weight: 600; white-space: nowrap; }
.dh-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--neon); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex: none; }
.dh-row.on { background: #fff3f6; border-color: var(--neon); cursor: default; }
.dh-row.on .dh-box { background: var(--neon); }
.dh-week { display: flex; align-items: center; gap: 6px; margin: 14px 0 4px; font-size: .82rem; color: var(--muted); }
.dh-week span { margin-right: 4px; }
.dh-week i { width: 22px; height: 22px; border-radius: 50%; background: #f3e9ee; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .75rem; color: #fff; }
.dh-week i.n1 { background: #f5b9c9; } .dh-week i.n2 { background: var(--neon); }
.dh-note { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.tr-lock, .cp-lock { padding: 18px 16px; border-radius: 16px; background: #fff7fa; border: 1.5px dashed var(--neon); text-align: center; line-height: 1.7; }
.tr-lock-h { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 0 0 6px; }
.cp-lock { margin: 0 0 12px; }
.cp-lock p { margin: 0 0 8px; }
.cp-fs { border: 0; padding: 0; margin: 0; display: contents; }
.cp-fs:disabled { opacity: .5; }
.cp-cost { font-size: .85rem; }
.cd-left { margin: 10px 0 4px; font-size: .92rem; }
.cd-item:disabled { cursor: default; opacity: .45; }
.cd-item.on:disabled { opacity: 1; }
.wish-recs, .burn-recs { margin: 6px 0; align-items: center; }
.hj-buy:disabled { opacity: .45; cursor: default; }
/* v0.59 산통 점괘 */
.st-box { margin: 0 0 16px; padding: 14px; border-radius: 16px; background: linear-gradient(170deg, #fffaf0, #fdf0e0); border: 1px solid rgba(208, 132, 58, .35); }
.st-h { margin: 0 0 8px; font-family: var(--serif); font-weight: 700; color: var(--gold); }
.st-h small { display: block; font-family: inherit; font-weight: 400; color: var(--muted); font-size: .8rem; }
.st-tile { min-height: 96px; align-items: center; text-align: center; }
.st-tile .st-grade { font-size: 1.8rem; font-family: var(--serif); }
.st-foot { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.st-slip { padding: 14px; border-radius: 12px; background: #fffdf7; border: 1px dashed rgba(184, 56, 42, .4); line-height: 1.7; }
.st-grade { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.st-grade b { font-family: var(--serif); font-size: 2rem; color: #b8382a; }
.st-grade small { color: var(--muted); font-size: 1rem; }
.st-good .st-grade b { color: #d0843a; }
.st-head { font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.st-act { font-weight: 600; }
.st-items { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.st-items li { display: grid; grid-template-columns: 118px 1fr; gap: 8px; font-size: .92rem; border-bottom: 1px dotted #ead8c4; padding-bottom: 6px; }
.st-items li span { font-weight: 600; }
.st-items li em { font-style: normal; }
.st-low { background: #fff3ef; border-radius: 10px; padding: 8px 10px; font-size: .9rem; }
.st-note { font-size: .78rem; margin: 8px 0 0; }

/* v0.59 4단계: 나의 흐름 카드의 읽는 요약(이번 주·올해·10년) */
.tl-story { margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: #fffaf7; border: 1px solid var(--line); }
.tl-story p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.75; }
.tl-story .tl-story-lead { font-weight: 600; }
.tl-story-more > summary { cursor: pointer; color: var(--neon); font-size: 0.86rem; padding: 4px 0; list-style: none; }
.tl-story-more > summary::-webkit-details-marker { display: none; }
.tl-story-more[open] > summary { margin-bottom: 6px; }
html.easy .tl-story p { font-size: 1rem; }

/* ===== v0.60 유료 부적: 금박 한지 · 붉은 한지 · 만드는 의식 · 씨앗 ===== */
.paid-charm { width: 100%; height: auto; display: block; border-radius: 4px; }
/* v0.61.2 금박 빛 한 줄기가 부적 위를 천천히 훑고 지나감(배경화면 그림에는 안 나옴) */
.paid-charm .pc-sheen { transform-box: view-box; transform: translateX(-200px) rotate(18deg); animation: pc-sheen 5.5s ease-in-out 1.2s infinite; }
@keyframes pc-sheen { 0% { transform: translateX(-200px) rotate(18deg); } 45%, 100% { transform: translateX(560px) rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .paid-charm .pc-sheen { animation: none; } }
.wish-charm.paid svg { box-shadow: 0 2px 8px rgba(150, 105, 30, 0.25); border-radius: 3px; }
.wish-charm.paid.glow svg, .rt-charm.glow svg { animation: pcGlow 1.8s ease-in-out infinite alternate; }
.wish-charm.paid.done svg { box-shadow: 0 0 0 2px #f3d27a, 0 0 14px rgba(240, 180, 60, 0.75); }
@keyframes pcGlow { from { filter: drop-shadow(0 0 3px rgba(243, 200, 90, 0.5)); } to { filter: drop-shadow(0 0 14px rgba(255, 205, 80, 0.95)); } }
.wish-png { margin-top: 4px; min-height: 36px; padding: 4px 10px; font-size: 0.8rem; }
.wish-wait .wish-png { display: inline-block; }
.cp-top { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.cp-top:not(:has(.cp-preview)) { grid-template-columns: 1fr; }
.cp-preview { display: block; width: 96px; transform: rotate(-3deg); }
.cp-gets { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.88rem; line-height: 1.45; color: var(--hj-ink, #2b2420); }
.cp-gets li { padding-left: 2px; }
.rt-box { max-width: 380px; text-align: center; display: grid; gap: 10px; }
.rt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.rt-steps li { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 6px; opacity: 0.45; font-size: 1.1rem; }
.rt-steps li small { font-size: 0.7rem; font-family: var(--hj-serif, serif); }
.rt-steps li.on { opacity: 1; background: rgba(184, 56, 42, 0.1); box-shadow: inset 0 0 0 1px rgba(184, 56, 42, 0.4); }
.rt-steps li.done { opacity: 0.8; }
.rt-tip { margin: 0; font-family: var(--hj-serif, serif); font-size: 0.95rem; min-height: 1.5em; color: var(--hj-ink, #2b2420); }
.rt-body { min-height: 230px; display: grid; place-items: center; }
.rt-ink { display: grid; justify-items: center; gap: 10px; width: 100%; }
.rt-stone { position: relative; width: 200px; height: 150px; border-radius: 48% 48% 40% 40%; background: radial-gradient(ellipse at 50% 40%, #5a5550, #2e2a27 70%); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.45), 0 6px 14px rgba(0, 0, 0, 0.2); touch-action: none; cursor: grab; }
.rt-well { position: absolute; left: 50%; top: 18%; width: 46%; height: 26%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, #0d0b0a, #1b1716); opacity: 0.15; transition: opacity 0.2s; }
.rt-stick { position: absolute; left: 50%; top: 62%; width: 22px; height: 54px; transform: translate(-50%, -70%) rotate(12deg); border-radius: 4px; background: linear-gradient(90deg, #1b1716, #3a3330 45%, #1b1716); box-shadow: 0 0 0 1px #c9962c inset; pointer-events: none; }
.rt-bar { width: 200px; height: 8px; border-radius: 4px; background: rgba(43, 36, 32, 0.12); overflow: hidden; }
.rt-bar i { display: block; height: 100%; width: 0; background: #2b2420; transition: width 0.15s; }
.rt-trace { display: grid; justify-items: center; gap: 10px; }
.rt-trace canvas { width: 100%; max-width: 300px; aspect-ratio: 300 / 160; background: #fbf3df; border: 1px solid #d8c59a; border-radius: 4px; touch-action: none; }
.rt-seal { display: grid; justify-items: center; gap: 10px; }
.rt-charm { display: block; width: 130px; }
.rt-charm.stamped .pc-seal { transform-box: fill-box; transform-origin: center; animation: pcStamp 0.45s ease-out; }
@keyframes pcStamp { 0% { transform: scale(1.8); opacity: 0; } 60% { transform: scale(0.92); opacity: 1; } 100% { transform: scale(1); } }
.rt-sealbtn { appearance: none; width: 72px; height: 72px; border-radius: 8px; border: none; background: #b8382a; color: #fff6e6; font-family: 'Song Myung', serif; font-size: 1.15rem; line-height: 1.05; display: grid; place-content: center; cursor: pointer; box-shadow: 0 6px 0 #7e2418, 0 8px 14px rgba(0, 0, 0, 0.2); transition: transform 0.12s, box-shadow 0.12s; touch-action: none; }
.rt-sealbtn.holding, .rt-sealbtn.pressed { transform: translateY(5px); box-shadow: 0 1px 0 #7e2418, 0 2px 6px rgba(0, 0, 0, 0.2); }
.rt-sealbtn:focus-visible { outline: 3px solid var(--hj-navy, #2f3e5c); outline-offset: 3px; }
.rt-blow { display: flex; align-items: center; justify-content: center; gap: 8px; }
.rt-jisin { width: 110px; animation: rtBreath 1.6s ease-in-out infinite alternate; }
.rt-jisin svg { width: 100%; height: auto; display: block; }
@keyframes rtBreath { from { transform: translateX(0) scale(1); } to { transform: translateX(6px) scale(1.04); } }
.rt-line { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.rt-done { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rt-done button, .rt-foot button { min-height: 48px; }
.rt-foot button { width: 100%; }
.burn-paper .bp-red { position: absolute; inset: 0; }
.burn-paper .bp-red svg { width: 100%; height: 100%; border-radius: 0; }
.burn-paper .bp-charm { position: absolute; top: 3%; left: 4%; width: 24%; transform: rotate(-8deg); opacity: 0.95; }
.burn-paper { padding: 0; background: #a9321f; }
.burn-seed[hidden] { display: none; }
.burn-seed { position: absolute; left: 0; right: 0; top: 36%; display: grid; place-items: center; pointer-events: none; }
.burn-seed span { font-size: 3.2rem; animation: seedGrow 1.1s ease-out both; filter: drop-shadow(0 0 10px rgba(255, 220, 120, 0.9)); }
@keyframes seedGrow { 0% { transform: scale(0.2) translateY(20px); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.burn-end .burn-seedline { font-size: 0.95rem; line-height: 1.6; margin: 0 0 6px; color: #3f7a4f; }
.burn-end .burn-seedline:empty { display: none; }
.seed-garden { margin: 0 0 10px; padding: 8px 10px; border-radius: 12px; background: #f3faf2; font-size: 0.88rem; display: grid; gap: 2px; }
.seed-garden span { font-size: 1.1rem; letter-spacing: 2px; word-break: break-all; }
.seed-garden i { font-style: normal; }
.seed-garden small { color: var(--muted); font-size: 0.76rem; }
.seed-pot { font-size: 2.6rem; flex: none; width: 64px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .wish-charm.paid.glow svg, .rt-charm.glow svg, .rt-jisin, .burn-seed span, .rt-charm.stamped .pc-seal { animation: none; }
}

/* v0.61 포춘 쿠키 다듬기 1부: 지신 반응 · 절기·명절 쿠키 · 황금 쿠키 */
.fc-badge { margin: 0 auto 6px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff0e0; color: #8a4b12; font-size: .88rem; }
.fc-odds { margin: 6px 0 0; color: var(--muted); font-size: .78rem; }
.fc-shape { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fc-react { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(300px, 92%); }
.fc-react[hidden] { display: none; }
.fc-face { width: 112px; height: 112px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(75, 57, 66, .18); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 3px solid #f3d3a8; animation: fc-pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.fc-face img { width: 100%; height: 100%; object-fit: contain; }
.fc-face span { font-size: 3rem; }
.fc-say { margin: 0; padding: 10px 14px; word-break: keep-all; border-radius: 16px; background: #fffdf8; border: 1px solid #ecd2ad; color: var(--ink); font-size: .95rem; line-height: 1.55; box-shadow: 0 4px 12px rgba(75, 57, 66, .1); animation: fc-pop .45s .12s cubic-bezier(.3, 1.4, .5, 1) both; }
.fc-react.big .fc-face { width: 150px; height: 150px; border-color: #f2c94c; box-shadow: 0 0 0 6px rgba(242, 201, 76, .35), 0 8px 24px rgba(208, 160, 58, .4); animation: fc-pop-big .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.fc-react.big .fc-say { border-color: #f2c94c; background: #fffbe8; }
.fc-stage[data-step="react"] .fc-cookie { visibility: visible; }
.fc-stage[data-step="react"] .fc-whole { opacity: 0; }
.fc-stage[data-step="react"] .fc-half { opacity: 1; }
.fc-stage[data-step="react"] .fc-half.l { transform: translate(-46px, 10px) rotate(-28deg); }
.fc-stage[data-step="react"] .fc-half.r { transform: translate(46px, 10px) rotate(28deg); }
.fc-stage[data-step="react"] .fc-paper { opacity: 1; width: 124px; padding: 3px 6px; }
.fc-stage[data-step="react"] .fc-machine { opacity: .35; transition: opacity .3s; }
.fc-say-s { word-break: keep-all; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.fc-special { word-break: keep-all; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff5e8; border: 1px solid #f0d4ae; color: var(--ink); font-size: .92rem; line-height: 1.6; }
.fc-special b { color: #a0521a; margin-right: 4px; }
.fc-goldnote { word-break: keep-all; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(120deg, #fff8d6, #fff1b8); border: 1px solid #f2c94c; color: #7a5a12; font-size: .85rem; }
.fc-card.gold { background: linear-gradient(170deg, #fffdf2 0%, #fff4cc 100%); }
.gold .fc-cimg, .gold .fc-csvg, .fc-broken.gold svg, .fc-broken.gold img { filter: sepia(.6) saturate(2.2) hue-rotate(-6deg) brightness(1.12) drop-shadow(0 0 6px rgba(242, 201, 76, .8)); }
.gold .fc-gold-img, .fc-broken.gold img.fc-gold-img { filter: drop-shadow(0 0 8px rgba(242, 201, 76, .75)); } /* 황금 쿠키 그림은 이미 금빛이라 색 필터 없이 빛만 */
/* v0.64.2 황금 반쪽: 황금 쿠키 그림을 지그재그로 갈라 두 쪽으로 */
.fc-gcut.l { clip-path: polygon(0 0, 53% 0, 46% 17%, 55% 33%, 45% 50%, 54% 67%, 46% 84%, 51% 100%, 0 100%); }
.fc-gcut.r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 51% 100%, 46% 84%, 54% 67%, 45% 50%, 55% 33%, 46% 17%); }
.fc-broken .fc-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.fc-sparkle { position: absolute; inset: -14px; pointer-events: none; }
.fc-sparkle i { position: absolute; font-style: normal; color: #f2c94c; font-size: 1.1rem; text-shadow: 0 0 6px #fff3a0; animation: fc-twinkle 1.6s ease-in-out infinite; }
.fc-sparkle i:nth-child(1) { left: 2%; top: 10%; } .fc-sparkle i:nth-child(2) { right: 4%; top: 0; animation-delay: .3s; }
.fc-sparkle i:nth-child(3) { left: 46%; top: -6%; animation-delay: .6s; } .fc-sparkle i:nth-child(4) { left: 8%; bottom: 4%; animation-delay: .9s; }
.fc-sparkle i:nth-child(5) { right: 6%; bottom: 10%; animation-delay: 1.2s; }
@keyframes fc-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fc-pop-big { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes fc-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .fc-face, .fc-say, .fc-sparkle i { animation: none !important; } }

/* v0.62 세상에 하나뿐인 부적: 지신 탭 진열장 · 만들기 창 · 오늘/타로의 한 줄 제안 */
.cm-show { margin: 14px 0 6px; padding: 14px 12px 12px; border-radius: 18px; background: linear-gradient(160deg, #fff9ec 0%, #ffeef0 100%); border: 1px solid rgba(208, 160, 58, .35); box-shadow: 0 6px 18px rgba(208, 132, 58, .12); }
.cm-show-h { margin: 0 0 10px; text-align: center; font-family: var(--serif); color: #a0521a; font-size: 1.05rem; word-break: keep-all; }
.cm-show-h small { display: block; margin-top: 2px; font-family: inherit; color: var(--muted); font-size: .78rem; }
.cm-show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 10px; border-radius: 14px; background: #fff; border: 1px solid rgba(208, 160, 58, .3); text-align: center; transition: transform .2s; }
.cm-card:active { transform: scale(.97); }
.cm-card:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.cm-card b { font-size: .95rem; color: var(--ink); }
.cm-card small { color: var(--muted); font-size: .76rem; line-height: 1.45; word-break: keep-all; }
.cm-thumb { display: block; width: 100%; max-width: 150px; filter: drop-shadow(0 6px 10px rgba(160, 82, 26, .25)); }
.cm-card.wish .cm-thumb { animation: cm-float 3.6s ease-in-out infinite; }
.cm-card.burn .cm-thumb { animation: cm-float 3.6s 1.8s ease-in-out infinite; }
@keyframes cm-float { 50% { transform: translateY(-4px); } }
.cm-modal { padding: 12px; touch-action: manipulation; }
.cm-modal .cm-box { position: relative; max-width: 400px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px 16px 0; background: linear-gradient(180deg, #fffaf0, #fff3f0); text-align: center; }
body.cm-open { overflow: hidden; }
/* 만들기 버튼은 늘 화면 아래에 보이게(폰에서 창 안 스크롤을 몰라 못 넘어가던 문제) */
.cm-foot { position: sticky; bottom: 0; margin: 6px -16px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(255, 246, 240, 0), #fff3f0 26%); }
.cm-box.burn .cm-foot { background: linear-gradient(180deg, rgba(255, 236, 230, 0), #ffece6 26%); }
.cm-foot .hj-note { margin: 6px 0 0; font-size: .74rem; }
.cm-card, .cm-nudge-thumb, .cm-forge-link, [data-cm-open] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cm-modal .cm-box.burn { background: linear-gradient(180deg, #fff6f0, #ffece6); }
.cm-x { all: unset; cursor: pointer; position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 50%; color: var(--muted); font-size: 1.1rem; }
.cm-eyebrow { margin: 0; color: #b8862a; font-size: .82rem; letter-spacing: .08em; }
.cm-box h3 { margin: 2px 0 10px; font-family: var(--serif); color: var(--ink); word-break: keep-all; }
.cm-preview { width: min(220px, 60%, 34dvh); margin: 0 auto; filter: drop-shadow(0 10px 18px rgba(160, 82, 26, .3)); }
.cm-live { margin: 8px 0 10px; color: var(--muted); font-size: .82rem; }
.cm-field { display: flex; flex-direction: column; gap: 4px; text-align: left; margin: 0 0 8px; font-size: .88rem; color: var(--ink); }
.cm-field input { width: 100%; box-sizing: border-box; min-height: 46px; font-size: 1rem; scroll-margin-bottom: 130px; }
.cm-recs { justify-content: center; margin-bottom: 8px; }
.cm-burnpick { text-align: left; margin: 0 0 8px; font-size: .86rem; }
.cm-burnpick summary { cursor: pointer; padding: 6px 0; }
.cm-burnpick summary small { color: var(--muted); }
.cm-gets { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: .8rem; }
.cm-gets li { padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(208, 160, 58, .25); }
.cm-go small { margin-left: 6px; opacity: .85; font-weight: 400; }
/* 만들기 창은 .hanji 밖이라 --hj-red가 비어 버튼이 투명했음(글자만 크림색) → 색을 직접 */
.cm-modal { --hj-red: #b8382a; --hj-navy: #2f3e5c; --hj-serif: 'Gowun Batang', serif; }
.cm-box.wish .cm-go { background: linear-gradient(180deg, #d9a440, #b8792a); color: #fffaf0; box-shadow: 0 6px 16px rgba(184, 121, 42, .35), inset 0 0 0 2px rgba(255, 250, 240, .35); border-radius: 14px; }
.cm-box.burn .cm-go { background: linear-gradient(180deg, #d0503c, #a8322a); color: #fffaf0; box-shadow: 0 6px 16px rgba(168, 50, 42, .32), inset 0 0 0 2px rgba(255, 250, 240, .3); border-radius: 14px; }
.cm-nudge { position: relative; display: flex; gap: 12px; align-items: center; margin: 14px 0 0; padding: 12px 34px 12px 12px; border-radius: 16px; background: linear-gradient(120deg, #fff8e8, #fff1f1); border: 1px solid rgba(208, 160, 58, .35); text-align: left; }
.cm-nudge.burn { background: linear-gradient(120deg, #fff2ec, #ffe9e4); border-color: rgba(184, 56, 42, .25); }
.cm-nudge-thumb { all: unset; cursor: pointer; flex: none; width: 64px; filter: drop-shadow(0 4px 8px rgba(160, 82, 26, .25)); transform: rotate(-4deg); }
.cm-nudge-t p { margin: 0 0 4px; font-size: .88rem; line-height: 1.55; color: var(--ink); word-break: keep-all; }
.cm-nudge-x { all: unset; cursor: pointer; position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; line-height: 28px; text-align: center; color: var(--muted); font-size: .85rem; border-radius: 50%; }
.cm-forge-link { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: center; width: 100%; margin: 12px 0 0; padding: 10px; border-radius: 14px; background: linear-gradient(120deg, #fff8e8, #fff1f1); border: 1px solid rgba(208, 160, 58, .35); }
.cm-forge-thumb { flex: none; width: 48px; }
.cm-forge-link b { display: block; font-size: .9rem; color: var(--ink); }
.cm-forge-link small { color: var(--muted); font-size: .78rem; word-break: keep-all; }
@media (prefers-reduced-motion: reduce) { .cm-thumb { animation: none !important; } }

/* v0.63 접어 둔 작은 칸: 작은 예언 · 매일 습관 */
.mini-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.mini-fold > summary::-webkit-details-marker { display: none; }
.mini-fold > summary h3, .mini-fold > summary h4 { margin: 0; }
.mini-fold > summary::after { content: '▾'; color: var(--muted); transition: transform .2s; flex: none; }
.mini-fold[open] > summary::after { transform: rotate(180deg); }
.mini-fold[open] > summary { margin-bottom: 8px; }
.mini-hint { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.mini-fold > summary { flex-wrap: wrap; }
.mini-fold > summary h3, .mini-fold > summary h4 { word-break: keep-all; }
.dh-card.mini-fold > summary h3 { flex: 1 1 auto; }
.dh-card.mini-fold > summary .mini-hint { order: 3; flex-basis: calc(100% - 24px); margin-left: 0; }
.dh-card.mini-fold > summary::after { order: 2; }

/* ---------- v0.64 소원 부적 990 / 100일 등불 2,900 · 걱정 태우기 무료 ---------- */
.cm-price { display: inline-block; margin-top: 2px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: .74rem; font-weight: 700; color: #8a5a12; background: #fff1cf; }
.cm-price.free { color: #2f6b3a; background: #e3f4e4; }
.cm-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.cm-tier { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 14px; background: #fff; border: 2px solid rgba(208, 160, 58, .25); text-align: center; touch-action: manipulation; }
.cm-tier b { font-size: .92rem; color: var(--ink); word-break: keep-all; }
.cm-tier .cm-tier-p { font-weight: 800; color: #a0521a; font-size: 1rem; }
.cm-tier small { color: var(--muted); font-size: .72rem; line-height: 1.4; word-break: keep-all; }
.cm-tier.on { border-color: #c98a2e; background: linear-gradient(180deg, #fffaf0, #fff1d8); box-shadow: 0 4px 14px rgba(201, 138, 46, .25); }
.cm-tier:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.cm-tier-tag { position: absolute; top: -9px; right: 8px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: .7rem; font-weight: 700; color: #fff; background: #c0503a; }
.cm-lt-note { margin: 0 0 8px; font-size: .8rem; color: #8a5a12; text-align: left; }
.cm-for small { color: var(--muted); font-weight: 400; }
.cm-go:disabled { opacity: .55; cursor: default; }

.lantern-card { background: linear-gradient(160deg, #2b2a4a 0%, #3d2f52 100%); color: #fbf2e2; border: 1px solid rgba(243, 210, 122, .35); }
.lantern-card .muted { color: rgba(251, 242, 226, .7); }
.lt-row { display: flex; gap: 14px; align-items: center; }
.lt-lamp { position: relative; flex: none; width: 64px; height: 64px; display: grid; place-items: center; font-size: 2.3rem; }
.lt-lamp b { position: relative; font-weight: 400; animation: lt-sway 4s ease-in-out infinite; transform-origin: 50% 0; }
.lt-glow { position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 92, var(--lt, .3)) 0%, rgba(255, 150, 60, calc(var(--lt, .3) * .5)) 45%, transparent 72%); animation: lt-breathe 3.2s ease-in-out infinite; }
@keyframes lt-sway { 50% { transform: rotate(4deg); } }
@keyframes lt-breathe { 50% { transform: scale(1.08); opacity: .85; } }
.lt-t { min-width: 0; }
.lt-tag { margin: 0; font-size: .8rem; color: #f3d27a; }
.lt-wish { margin: 2px 0 4px; font-family: 'Nanum Brush Script', var(--serif); font-size: 1.45rem; line-height: 1.2; word-break: keep-all; }
.lt-wish small { font-family: var(--serif); font-size: .75rem; color: #f6d9b0; }
.lt-line { margin: 0; font-size: .88rem; line-height: 1.6; word-break: keep-all; }
.lt-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 12px 0 4px; }
.lt-bar i { height: 8px; border-radius: 4px; background: rgba(251, 242, 226, .16); }
.lt-bar i.on { background: linear-gradient(90deg, #f3b54a, #ffd98a); box-shadow: 0 0 8px rgba(255, 200, 100, .6); }
.lt-meta { display: block; font-size: .74rem; }
.lt-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.lt-btns > button { flex: 1 1 140px; }
.lt-btns .linkish { flex: 0 0 100%; text-align: center; color: #f6d9b0; }
.lantern-card .ghost { color: #fbf2e2; border-color: rgba(251, 242, 226, .4); }
.lt-letter p { text-align: left; line-height: 1.75; word-break: keep-all; }
.lt-letter .lt-sign { text-align: right; color: var(--hj-ink2, #5b4d42); font-family: var(--hj-serif, serif); }
@media (prefers-reduced-motion: reduce) { .lt-lamp b, .lt-glow { animation: none; } }
.cm-box [hidden] { display: none !important; }
.lantern-card .ghost, .lantern-card button.ghost { background: rgba(255, 255, 255, .08); color: #fbf2e2; border: 1px solid rgba(251, 242, 226, .45); }
.lantern-card button:disabled { opacity: .7; }

/* v0.64.6 지신 말풍선 안 「지신과 이야기하기」 */
.hero-say-box .say-chat { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1.5px solid #f3c6d4; border-radius: 999px; background: #fff6f9; color: #b0466c; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.hero-say-box .say-chat:active { transform: scale(0.98); }

/* v0.64.7 진열장 = 소원 부적 + 100일 등불, 걱정 태우기 카드는 접힘 안에 하나 */
.cm-card.lantern .cm-thumb { animation: cm-float 3.6s 1.8s ease-in-out infinite; }
.cm-card.burn-solo { width: min(220px, 70%); margin: 4px auto 0; display: flex; }
.cm-card.lantern .cm-thumb { position: relative; }
.cm-lt-badge { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: #2f3e5c; color: #ffe6a6; font-style: normal; font-size: .72rem; font-weight: 700; white-space: nowrap; box-shadow: 0 0 12px rgba(255, 200, 90, .6); }

/* v0.64.9 100일 등불 그림: 달밤 연못 바탕 + 날마다 자라는 등불 */
.lantern-card { background: linear-gradient(100deg, rgba(36, 34, 70, .25) 0%, rgba(36, 34, 70, .78) 42%, rgba(36, 34, 70, .9) 100%), var(--lt-bg, none) left center / cover no-repeat, linear-gradient(160deg, #2b2a4a 0%, #3d2f52 100%); overflow: hidden; }
.lantern-card .lt-lamp { width: 96px; height: 112px; }
.lantern-card .lt-lamp img { position: relative; width: 100%; height: 100%; object-fit: contain; animation: lt-sway 4s ease-in-out infinite; transform-origin: 50% 0; filter: brightness(calc(.8 + var(--lt, .3) * .4)) drop-shadow(0 0 calc(var(--lt, .3) * 22px) rgba(255, 190, 90, .8)); }
.lantern-card .lt-glow { inset: 6px; }
.lantern-card .lt-wish, .lantern-card .lt-line, .lantern-card .lt-tag { text-shadow: 0 1px 6px rgba(20, 16, 50, .7); }
.cm-thumb.lt-thumb { aspect-ratio: 5 / 8; border-radius: 10px; overflow: hidden; background: var(--lt-bg) 22% center / cover no-repeat, #2b2a4a; display: grid; place-items: center; }
.cm-thumb.lt-thumb img { width: 92%; filter: drop-shadow(0 0 14px rgba(255, 196, 92, .75)); }
.cm-lt-grow { margin: 4px 0 10px; padding: 10px 8px; border-radius: 14px; background: linear-gradient(160deg, #2b2a4a, #3d2f52); color: #fbf2e2; }
.cm-lt-grow p { margin: 0 0 6px; font-size: .82rem; color: #f3d27a; text-align: center; }
.cm-lt-grow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cm-lt-grow li { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.cm-lt-grow img { width: 100%; max-width: 72px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255, 190, 90, .6)); }
.cm-lt-grow b { font-size: .78rem; }
.cm-lt-grow small { font-size: .68rem; color: rgba(251, 242, 226, .75); }
.cm-lt-grow[hidden] { display: none; }
.lt-kept-big { display: block; width: min(220px, 70%); margin: 0 auto 4px; filter: drop-shadow(0 0 18px rgba(255, 196, 92, .7)); }
.wish-frame { position: relative; }
.lt-kept-mini { position: absolute; top: -6px; right: -6px; width: 46px; filter: drop-shadow(0 0 6px rgba(255, 196, 92, .7)); }
@media (prefers-reduced-motion: reduce) { .lantern-card .lt-lamp img { animation: none; } }

/* ======================================================================
   v0.65 웹 출시: 바닥글 사업자 정보 · 약관 링크 · 가입 동의 줄 · 결제 창 고지
   ====================================================================== */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 12px 0 8px; font-size: 0.82rem; }
.foot-links a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.foot-biz { font-style: normal; line-height: 1.7; font-size: 0.74rem; color: var(--muted); }
.foot-biz span { display: inline-block; margin: 0 5px; }
.foot-biz b { font-weight: 600; color: var(--text); }
.foot-biz a { color: var(--text); }
.foot-ver { margin-top: 8px !important; opacity: 0.85; }
.agree-note { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin: 12px 0 10px; }
.agree-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cp-legal { text-align: left; line-height: 1.6; }
.cp-legal a { color: var(--hj-navy, #2f3e5c); text-decoration: underline; text-underline-offset: 3px; }

/* v0.66 효과음 버튼(머리줄, 글씨 크게 모드에서도 크기 고정) */
#btn-sound, html.easy #btn-sound { min-width: 40px; min-height: 40px; padding: 4px 8px; font-size: 16px; line-height: 1; }
#btn-sound[aria-pressed="false"] { opacity: .65; }

/* ======================================================================
   v0.66.1 팝업 창이 화면보다 길 때 멈추던 문제(사용자 「운세를 보다 아래로 올리면 화면이 멈춰 껐다 켜야 함」)
   원인: .evo-modal·.reveal-modal이 가운데 고정(grid place-items: center)인데 창 안 스크롤이 없어,
   작은 폰에서 진화 창(약 700~750px)의 「확인」 버튼이 화면 밖으로 잘림 → 쓸어도 뒤 페이지만 움직이고 닫을 수 없음
   고침: 창 자체가 스크롤되게(넘치면 위부터 보이고 아래로 쓸어 버튼까지), 뒤 페이지는 창이 떠 있는 동안 멈춤.
   화면 고정은 body에 붙인 이름표(cm-open·hj-open) 대신 「지금 창이 실제로 떠 있는지」(:has)로 정해서,
   창이 다른 길로 닫혀 이름표만 남아도 화면이 굳지 않게 함
   ====================================================================== */
.evo-modal, .reveal-modal {
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding-top: max(16px, env(safe-area-inset-top, 0px)); padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}
.evo-modal > *, .reveal-modal > * { margin: auto; flex-shrink: 0; } /* 짧으면 가운데, 길면 위부터 */
.hj-reader { overscroll-behavior: contain; }
body.hj-open, body.cm-open { overflow: visible; }
body:has(> .evo-modal, > .reveal-modal, > .hj-reader) { overflow: hidden; }
