@font-face {
  font-family: 'MaruBuri';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/MaruBuri-400.woff2') format('woff2');
}
@font-face {
  font-family: 'MaruBuri';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/MaruBuri-700.woff2') format('woff2');
}

:root {
  --bg: #0d0b1e;
  --bg-2: #100d24;
  --bg-card: #1a1633;
  --bg-card-light: #241e45;
  --gold: #d4af6a;
  --gold-bright: #f0d9a8;
  --purple: #8b7ec8;
  --purple-dim: #4a4173;
  --text: #e8e4f0;
  --text-dim: #9a93b5;
  --reversed: #c87e8b;
  --card-border: #3d3568;
  --header-h: 66px;
  --page: 1180px;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'MaruBuri', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
/* 한글은 단어 중간에서 끊지 않습니다 */
h1, h2, h3, h4, p, .hero-title, .sec-t, .heading, .daily-h, .daily-p, .hint,
.mcard-t, .mcard-d, .r-body, .r-scene, .luna-text, .detail-dir p, .locked-note,
.modal-text, .ai-veil p, .sec-d, .hero-sub { word-break: keep-all; overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

#starfield { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#starfield span { position: absolute; color: var(--gold); user-select: none; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: var(--o); } 50% { opacity: calc(var(--o) * .25); } }

#app { position: relative; z-index: 1; flex: 1; }
.page { max-width: var(--page); margin: 0 auto; padding: 0 28px; overflow-x: clip; }

/* ══════════ 헤더 ══════════ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(13, 11, 30, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 106, .18);
}
.header-in {
  max-width: var(--page); margin: 0 auto; padding: 0 28px;
  height: var(--header-h); display: flex; align-items: center; gap: 30px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(212, 175, 106, .5); border-radius: 50%;
  color: var(--gold-bright); font-size: 17px;
  background: radial-gradient(circle at 35% 30%, rgba(212,175,106,.22), transparent 70%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-size: 9.5px; letter-spacing: 2.4px; color: var(--purple); }
.brand-ko { font-size: 16.5px; font-weight: 700; color: var(--gold-bright); letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 8px; border-radius: 30px;
  border: 1px solid transparent;
  transition: background .18s, border-color .18s;
}
.nav-item img {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(212, 175, 106, .45);
  filter: saturate(.85);
}
.nav-item span { font-size: 14.5px; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
.nav-item:hover { background: rgba(36, 30, 69, .8); border-color: rgba(212,175,106,.3); }
.nav-item:hover span { color: var(--text); }
.nav-item.on { background: var(--bg-card-light); border-color: rgba(212,175,106,.55); }
.nav-item.on span { color: var(--gold-bright); }
.nav-item.on img { filter: none; box-shadow: 0 0 0 2px rgba(212,175,106,.25); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 9px; position: relative; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(26,22,51,.7); border: 1px solid rgba(212,175,106,.35);
  color: var(--gold); font-size: 14px; line-height: 1; cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); }
.login-btn {
  border-radius: 22px; padding: 9px 18px;
  background: rgba(26,22,51,.72); border: 1px solid var(--gold);
  color: var(--gold-bright); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.login-btn:hover { background: var(--purple-dim); }

/* 계정 메뉴 — 닉네임 버튼 아래로 열립니다.
   탈퇴는 로그아웃과 색을 달리해, 누르려던 것이 아니면 눈에 띄게 했습니다. */
.acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 168px; padding: 6px;
  background: var(--bg-card); border: 1px solid var(--card-border);
  border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; gap: 2px;
}
.acct-who {
  padding: 8px 12px 9px; font-size: 12.5px; color: var(--text-dim);
  border-bottom: 1px solid var(--card-border); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-menu button {
  width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text); font-size: 14px; cursor: pointer;
}
.acct-menu button:hover { background: var(--purple-dim); }
.acct-menu .acct-danger { color: #e88b8b; }
.acct-menu .acct-danger:hover { background: rgba(200, 80, 80, .16); }

/* 탈퇴 확인 */
.del-list {
  margin: 0 0 14px; padding: 14px 16px 14px 32px; list-style: disc;
  background: rgba(26, 22, 51, .55); border: 1px solid var(--card-border); border-radius: 12px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; line-height: 1.6; color: var(--text);
}
.del-warn {
  margin-bottom: 18px; padding: 12px 14px; border-radius: 12px;
  background: rgba(200, 80, 80, .1); border: 1px solid rgba(200, 80, 80, .32);
  font-size: 13.5px; line-height: 1.7; color: #f0c0c0;
}
.submit-btn.danger {
  background: rgba(200, 80, 80, .18); border-color: rgba(200, 80, 80, .55); color: #f3c9c9;
}
.submit-btn.danger:hover:not(:disabled) { background: rgba(200, 80, 80, .3); }
.submit-btn:disabled { opacity: .45; cursor: not-allowed; }

/* 남은 무료 리딩 — 닉네임 왼쪽에 붙는 작은 표시 */
.quota-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 22px; padding: 7px 13px;
  background: rgba(26,22,51,.6); border: 1px solid rgba(212,175,106,.32);
  font-size: 12.5px; line-height: 1; white-space: nowrap; cursor: default;
}
.quota-chip[hidden] { display: none; }   /* display 를 지정했으니 hidden 을 다시 이겨줘야 합니다 */
.quota-label { color: var(--purple); letter-spacing: .3px; }
.quota-num { color: var(--gold-bright); font-weight: 700; font-variant-numeric: tabular-nums; }
.quota-chip.empty { border-color: rgba(150,140,190,.28); }
.quota-chip.empty .quota-num { color: var(--purple-dim); }
@media (max-width: 700px) {
  .quota-chip { padding: 6px 10px; gap: 5px; font-size: 11.5px; }
  .quota-label { display: none; }          /* 좁아지면 숫자만 남깁니다 */
}

/* 별가루 잔액 — 누르면 상점으로 */
.star-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 22px; padding: 7px 13px;
  background: rgba(26,22,51,.6); border: 1px solid rgba(212,175,106,.32);
  font-size: 12.5px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.star-chip[hidden] { display: none; }
.star-chip:hover { border-color: var(--gold); background: var(--purple-dim); }
.star-ico { color: var(--gold-bright); font-size: 13px; }
.star-num { color: var(--gold-bright); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .star-chip { padding: 6px 10px; gap: 4px; font-size: 11.5px; }
}

/* 별가루를 쓸지 묻는 창 */
.gate-cost {
  margin: 4px 0 18px; padding: 4px 16px;
  background: rgba(26,22,51,.55); border: 1px solid var(--card-border); border-radius: 12px;
}
.gate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; font-size: 14px; color: var(--text-dim);
}
.gate-row + .gate-row { border-top: 1px solid var(--card-border); }
.gate-row b { color: var(--gold-bright); font-size: 15px; font-variant-numeric: tabular-nums; }
.gate-row b.short { color: #e88b8b; }

/* ── 공유 창 ── */
.share-box { max-width: 380px; }
.share-ways { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.share-way {
  display: grid; grid-template-columns: 34px 1fr; align-items: center;
  gap: 4px 12px; padding: 13px 16px; text-align: left; cursor: pointer;
  background: var(--bg-card-light); border: 1px solid var(--card-border); border-radius: 13px;
  transition: border-color .18s;
}
.share-way:hover:not(:disabled) { border-color: var(--gold); }
.share-way:disabled { opacity: .5; cursor: wait; }
/* 아이콘은 왼쪽 칸에서 두 줄을 통째로 쓰고, 글은 전부 오른쪽 칸에 둡니다.
   칸을 지정하지 않으면 설명이 아이콘 밑으로 흘러들어가 한 글자씩 쪼개집니다. */
.sw-ico { grid-column: 1; grid-row: 1 / span 2; font-size: 21px; line-height: 1; text-align: center; }
.sw-t { grid-column: 2; color: var(--text); font-size: 14.5px; font-weight: 700; }
.sw-d { grid-column: 2; color: var(--text-dim); font-size: 12px; }
.sw-d:empty { display: none; }
.share-url {
  margin-top: 16px; padding: 10px 12px; border-radius: 9px;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--card-border);
  color: var(--text-dim); font-size: 11.5px; word-break: break-all; text-align: center;
}

/* ══════════════ 별가루 상점 ══════════════ */
.store-wrap { max-width: 940px; margin: 0 auto; padding-bottom: 70px; }
.store-bal {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; margin-bottom: 26px;
  background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 16px;
}
.sb-label { color: var(--text-dim); font-size: 14px; }
.sb-num {
  color: var(--gold-bright); font-size: 24px; font-weight: 800;
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
/* 사지 않고 얻는 길. 상품표 위에 둡니다 — 파는 것보다 먼저 보이게. */
.earn {
  margin-bottom: 26px; padding: 6px 20px 14px;
  background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 16px;
}
.earn-head {
  padding: 14px 0 4px; color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .5px;
}
.earn-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 0; border-top: 1px solid var(--card-border);
}
.earn-txt { flex: 1; min-width: 0; }
.earn-txt b { display: block; color: var(--text); font-size: 14.5px; font-weight: 700; }
.earn-txt span {
  display: block; margin-top: 4px;
  color: var(--text-dim); font-size: 12.5px; line-height: 1.65; word-break: keep-all;
}
.earn-txt span b { display: inline; color: var(--gold); font-weight: 700; }
.earn-code {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  background: var(--bg-card-light); border: 1px solid var(--card-border);
  color: var(--gold-bright); font-size: 13px; font-weight: 800; letter-spacing: 2px;
}
.earn-btn {
  flex: 0 0 auto; min-width: 96px; padding: 10px 14px;
  background: var(--bg-card-light); border: 1.5px solid var(--gold); border-radius: 22px;
  color: var(--gold-bright); font-size: 13.5px; font-weight: 800; cursor: pointer;
  transition: background .2s;
}
.earn-btn:hover:not(:disabled) { background: var(--purple-dim); }
.earn-btn:disabled { opacity: .55; cursor: default; }
.earn-btn.done { border-color: var(--card-border); color: var(--text-dim); }
.earn-btn.ghost { border-color: var(--card-border); color: var(--text-dim); }
.earn-btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 520px) {
  .earn-row { flex-wrap: wrap; }
  .earn-btn { width: 100%; }
}

/* 리딩 끝 '결과 공유' 버튼에 붙는 별가루 표시 */
.chat-again .gain { color: var(--gold-bright); font-weight: 800; margin-left: 3px; }

.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pack {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 30px 18px 22px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 18px;
}
.pack.best { border-color: var(--gold); background: var(--bg-card-light); }
.pack-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 12px; white-space: nowrap;
  background: var(--gold); color: #1a1330; font-size: 11.5px; font-weight: 800;
}
.pack-star { color: var(--gold-bright); font-size: 26px; line-height: 1; }
.pack-n {
  margin-top: 10px; color: var(--text); font-size: 32px; font-weight: 800;
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
.pack-n small { font-size: 15px; font-weight: 600; color: var(--text-dim); margin-left: 3px; }
.pack-bonus { min-height: 19px; margin-top: 5px; color: var(--gold); font-size: 12.5px; font-weight: 700; }
.pack-note { margin-top: 3px; color: var(--text-dim); font-size: 13px; }
.pack-buy {
  width: 100%; margin-top: 18px; padding: 13px;
  background: var(--bg-card-light); border: 1.5px solid var(--gold); border-radius: 24px;
  color: var(--gold-bright); font-size: 15px; font-weight: 800; letter-spacing: .5px; cursor: pointer;
  transition: background .2s;
}
.pack-buy:hover:not(:disabled) { background: var(--purple-dim); }
.pack-buy:disabled { opacity: .5; cursor: wait; }
.pack.best .pack-buy { background: var(--gold); border-color: var(--gold); color: #1a1330; }
.pack.best .pack-buy:hover:not(:disabled) { background: var(--gold-bright); }
.pack-per { margin-top: 9px; color: var(--text-dim); font-size: 11.5px; }
.store-soon {
  margin-bottom: 16px; padding: 12px 15px; border-radius: 12px;
  background: rgba(139,126,200,.12); border: 1px solid rgba(139,126,200,.3);
  color: var(--purple); font-size: 13.5px;
}
.store-note { margin-top: 28px; }
.store-note ul { margin: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.store-note li { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; }
.store-note b { color: var(--gold); }
.store-note a { color: var(--gold); }
.store-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--text-dim); }
@media (max-width: 700px) {
  .store-grid { grid-template-columns: 1fr; gap: 22px; }
  .store-bal { padding: 15px 18px; }
  .sb-num { font-size: 21px; }
}

/* 크롤러·초기 로딩용 안내문. 화면에는 잠깐만 보였다 교체됩니다. */
.seo-intro { max-width: 720px; margin: 0 auto; padding: 70px 22px; position: relative; z-index: 1; }
.seo-intro h1 { color: var(--gold-bright); font-size: 26px; font-weight: 800; letter-spacing: 1px; word-break: keep-all; }
.seo-intro h2 { color: var(--gold); font-size: 17px; font-weight: 700; margin-top: 28px; letter-spacing: .5px; }
.seo-intro p { color: var(--text-dim); font-size: 14.5px; line-height: 1.85; margin-top: 10px; word-break: keep-all; }
.seo-intro a { color: var(--gold); }

/* ══════════ 히어로 ══════════ */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
  padding: 64px 0 56px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 3px; color: var(--gold);
  border: 1px solid rgba(212,175,106,.4); border-radius: 30px; padding: 5px 14px;
}
.hero-title {
  font-size: clamp(29px, 3vw, 42px); font-weight: 800; line-height: 1.4;
  color: #fff; margin-top: 22px; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero-sub { margin-top: 18px; color: var(--text-dim); font-size: 16px; line-height: 1.85; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-primary {
  background: linear-gradient(150deg, #2c2450, #1e1940);
  border: 1.5px solid var(--gold); border-radius: 30px;
  padding: 15px 30px; color: var(--gold-bright);
  font-size: 16px; font-weight: 700; letter-spacing: .5px; cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 8px 26px rgba(0,0,0,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212,175,106,.18); }
.btn-ghost {
  background: none; border: 1px solid var(--purple-dim); border-radius: 30px;
  padding: 15px 26px; color: var(--purple); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--purple); color: var(--text); }

.hero-art { position: relative; }
.hero-art img {
  width: 100%; display: block; border-radius: 22px;
  border: 1px solid rgba(212,175,106,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.hero-art::after {
  content: ''; position: absolute; inset: -30px; border-radius: 40px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(139,126,200,.28), transparent 70%);
}

/* ══════════ 섹션 공통 ══════════ */
.section { padding: 30px 0 12px; }
.sec-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.sec-t { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.sec-tag {
  font-size: 11.5px; letter-spacing: 1px; color: var(--gold);
  border: 1px solid rgba(212,175,106,.5); border-radius: 20px; padding: 3px 11px;
}
.sec-tag.locked { color: var(--purple); border-color: var(--purple-dim); }
.sec-more { margin-left: auto; font-size: 13.5px; color: var(--gold); background: none; border: none; cursor: pointer; }
.sec-more:hover { color: var(--gold-bright); }
.sec-d { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }

/* ══════════ 오늘의 타로 패널 ══════════ */
.daily-panel {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  border: 1px solid rgba(212,175,106,.35); border-radius: 22px; overflow: hidden;
  background: linear-gradient(120deg, #1c1637, #17122f);
  box-shadow: 0 14px 40px rgba(0,0,0,.42);
}
.daily-panel-art { position: relative; min-height: 220px; }
.daily-panel-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daily-panel-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,10,46,0) 40%, rgba(28,22,55,.95) 100%);
}
.daily-panel-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.daily-date { font-size: 12.5px; letter-spacing: 1.5px; color: var(--purple); }
.daily-h { font-size: 27px; font-weight: 800; color: var(--gold-bright); margin-top: 10px; }
.daily-p { color: var(--text-dim); font-size: 15px; line-height: 1.85; margin-top: 12px; max-width: 44ch; }
.daily-panel-body .btn-primary { align-self: flex-start; margin-top: 22px; padding: 13px 26px; font-size: 15px; }

/* ══════════ 리딩 그리드 ══════════ */
.reading-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px; margin-top: 4px;
}
.mcard {
  position: relative; border-radius: 16px; overflow: hidden;
  cursor: pointer; border: 1px solid rgba(61,53,104,.8); padding: 0; background: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.38);
  transition: transform .18s, border-color .2s;
  text-align: left;
}
.mcard:hover { transform: translateY(-4px); border-color: rgba(212,175,106,.6); }
.mcard img {
  width: 100%; display: block; aspect-ratio: 5 / 6; object-fit: cover;
  filter: saturate(.45) brightness(.5); transition: filter .25s;
}
.mcard:hover img { filter: saturate(.62) brightness(.62); }
.mcard.unlocked img { filter: none; }
.mcard.unlocked:hover img { filter: brightness(1.06); }
.mcard.shake { animation: shake .4s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.mcard-ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(180deg, rgba(10,6,26,.2) 0%, rgba(10,6,26,.08) 38%, rgba(10,6,26,.94) 100%);
}
.mcard-t { color: #fff; font-size: 17.5px; font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.mcard-d { color: rgba(255,255,255,.8); font-size: 12px; margin-top: 5px; line-height: 1.5; }
.mcard-lock {
  position: absolute; top: 11px; right: 11px;
  font-size: 10.5px; letter-spacing: .5px; color: var(--gold-bright);
  background: rgba(13,11,30,.78); border: 1px solid rgba(212,175,106,.45);
  border-radius: 20px; padding: 3px 9px;
}

/* 오늘 이미 본 리딩 — 횟수를 다 써도 다시 볼 수 있다는 표시 */
.mcard-seen {
  position: absolute; top: 11px; left: 11px;
  font-size: 10.5px; letter-spacing: .3px; color: #0d0b1e; font-weight: 700;
  background: var(--gold-bright); border-radius: 20px; padding: 3px 10px;
}
.mcard.seen { outline: 1px solid rgba(212,175,106,.5); outline-offset: -1px; }

.locked-note {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 22px 0 0; padding: 18px 22px;
  border: 1px dashed var(--purple-dim); border-radius: 16px;
  color: var(--text-dim); font-size: 14px; line-height: 1.7;
}
.locked-note b { color: var(--gold-bright); font-weight: 700; }
.locked-note button {
  margin-left: auto; flex: none; background: none; border: 1px solid var(--gold);
  color: var(--gold-bright); border-radius: 22px; padding: 10px 20px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.locked-note button:hover { background: var(--purple-dim); }

/* ══════════ 오늘의 타로 화면 ══════════ */
.back-btn {
  color: var(--gold); font-size: 15px; font-weight: 600;
  background: none; border: none; cursor: pointer; padding: 8px 4px; margin: 26px 0 0;
}
.back-btn:hover { color: var(--gold-bright); }

.draw-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: start; padding: 18px 0 70px; }
.draw-left { position: sticky; top: calc(var(--header-h) + 26px); }
.screen-head { margin-bottom: 26px; }
.heading { color: var(--gold-bright); font-size: 30px; font-weight: 800; letter-spacing: 3px; }
.today-line { color: var(--text-dim); font-size: 13px; letter-spacing: 1px; margin-top: 9px; }
.hint { color: var(--text-dim); font-size: 14px; margin-top: 14px; min-height: 20px; }

.card { perspective: 1000px; cursor: pointer; width: 280px; height: 448px; position: relative; background: none; border: none; padding: 0; display: block; }
.card-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.25,.9,.35,1.15); }
.card.flipped .card-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; border-radius: 16px; border: 1.5px solid; backface-visibility: hidden; overflow: hidden; }
.card-back { background: linear-gradient(155deg, #241e45 0%, #191439 55%, #241e45 100%); border-color: var(--gold); }
.card-back svg { width: 100%; height: 100%; display: block; }
.card-front { background: linear-gradient(165deg, #1e1a3c, #171232 60%, #1c1738); border-color: var(--gold-bright); transform: rotateY(180deg); }
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.card-img.reversed { transform: rotate(180deg); }
.card-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 12px; text-align: center; background: linear-gradient(transparent, rgba(10,8,24,.9) 55%); }
.card-name { font-size: 18px; font-weight: 700; color: var(--gold-bright); letter-spacing: 1px; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.reversed-tag { display: inline-block; color: #e8a0ac; font-size: 11.5px; margin-top: 5px; border: 1px solid #c87e8b; border-radius: 8px; padding: 1px 9px; background: rgba(10,8,24,.6); }
.card-glow { position: absolute; inset: -22px; border-radius: 30px; background: radial-gradient(ellipse at center, rgba(212,175,106,.24), transparent 68%); pointer-events: none; animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.reading { background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 18px; padding: 28px 30px; animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.r-title { color: var(--gold-bright); font-size: 25px; font-weight: 700; }
.r-sub { color: var(--text-dim); font-size: 13px; margin-top: 3px; letter-spacing: .5px; }
.keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.keyword { border: 1px solid var(--purple-dim); border-radius: 20px; padding: 4px 12px; color: var(--purple); font-size: 12.5px; }
.r-label { color: var(--gold); font-size: 12px; letter-spacing: 2px; font-weight: 700; margin-top: 22px; }
.r-body { font-size: 16px; line-height: 1.9; margin-top: 8px; }
.r-scene { font-size: 15px; line-height: 1.9; margin-top: 8px; color: var(--text-dim); }
.note-line { color: var(--text-dim); font-size: 12.5px; line-height: 1.7; margin-top: 22px; opacity: .75; }

.ai-locked { position: relative; margin-top: 18px; background: linear-gradient(165deg, #221c42, #1a1633); border: 1px solid rgba(212,175,106,.55); border-radius: 18px; padding: 26px; overflow: hidden; }
.ai-locked-title { color: var(--gold); font-size: 12.5px; letter-spacing: 2px; font-weight: 700; margin-bottom: 12px; }
.ai-blur { font-size: 16px; line-height: 1.9; color: var(--text-dim); filter: blur(4.5px); user-select: none; }
.ai-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; background: linear-gradient(180deg, rgba(26,22,51,.55), rgba(26,22,51,.92)); }
.ai-veil p { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.ai-veil button { border: 1.5px solid var(--gold); background: var(--bg-card-light); color: var(--gold-bright); border-radius: 24px; padding: 12px 26px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.ai-veil button:hover { background: var(--purple-dim); }

.luna { margin-top: 18px; background: linear-gradient(165deg, #221c42, #1a1633); border: 1px solid rgba(212,175,106,.55); border-radius: 18px; padding: 26px; animation: fadeUp .6s ease both; }
.luna-loading { color: var(--purple); font-size: 14.5px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.luna-keys { color: var(--gold-bright); font-size: 15px; font-weight: 700; letter-spacing: 1px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--purple-dim); }
.luna-keys span { color: var(--gold); }
.luna-text { font-size: 16px; line-height: 1.9; }
.luna-error { color: #e8a0ac; font-size: 14px; line-height: 1.7; }

/* ══════════ 카드 도감 ══════════ */
.lib-head { padding: 34px 0 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.filter {
  background: none; border: 1px solid var(--card-border); border-radius: 24px;
  padding: 8px 18px; color: var(--text-dim); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.filter:hover { border-color: var(--purple); color: var(--text); }
.filter.on { background: var(--bg-card-light); border-color: var(--gold); color: var(--gold-bright); }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 16px; padding-bottom: 70px; }
.lib-card { background: none; border: none; padding: 0; cursor: pointer; text-align: center; }
.lib-card img {
  width: 100%; aspect-ratio: 5 / 7; object-fit: cover; display: block;
  border-radius: 11px; border: 1px solid var(--card-border);
  transition: transform .18s, border-color .2s, box-shadow .2s;
}
.lib-card:hover img { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 12px 26px rgba(0,0,0,.5); }
.lib-name { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 9px; }
.lib-num { font-size: 11px; color: var(--purple-dim); margin-top: 2px; letter-spacing: 1px; }
.lib-empty { color: var(--text-dim); padding: 40px 0; }

/* 도감 상세 */
.detail-ov { position: fixed; inset: 0; z-index: 200; background: rgba(5,4,14,.84); display: flex; align-items: center; justify-content: center; padding: 26px; overflow-y: auto; animation: fadeIn .2s ease; backdrop-filter: blur(4px); }
.detail-box {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
  background: var(--bg-card); border: 1px solid var(--gold); border-radius: 22px;
  padding: 30px; max-width: 780px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.65); animation: fadeUp .3s ease both;
}
.detail-box > img { width: 100%; border-radius: 14px; border: 1px solid var(--card-border); }
.detail-body { position: relative; }
.detail-close { position: absolute; top: -8px; right: -6px; background: none; border: none; color: var(--text-dim); font-size: 24px; cursor: pointer; line-height: 1; padding: 6px; }
.detail-close:hover { color: var(--gold); }
.detail-dir { margin-top: 20px; }
.detail-dir h4 { color: var(--gold); font-size: 12.5px; letter-spacing: 2px; font-weight: 700; }
.detail-dir.rev h4 { color: var(--reversed); }
.detail-dir p { font-size: 15px; line-height: 1.85; margin-top: 7px; color: var(--text); }
.detail-more { display: inline-block; margin-top: 22px; padding: 9px 16px; border-radius: 18px;
  background: var(--bg-card-light); border: 1px solid var(--card-border);
  color: var(--gold); font-size: 13px; }
.detail-more:hover { border-color: var(--gold); }

/* ══════════ 토스트 ══════════ */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(10px); z-index: 300;
  background: rgba(26,22,51,.97); border: 1px solid var(--gold); color: var(--gold-bright);
  border-radius: 26px; padding: 13px 24px; font-size: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
  max-width: calc(100% - 40px); text-align: center;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════ 로그인 모달 ══════════ */
.modal-ov { position: fixed; inset: 0; z-index: 250; background: rgba(5,4,14,.82); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; animation: fadeIn .2s ease; backdrop-filter: blur(3px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: var(--bg-card); border: 1px solid var(--gold); border-radius: 22px; padding: 30px 26px 24px; max-width: 380px; width: 100%; box-shadow: 0 16px 48px rgba(0,0,0,.6); animation: fadeUp .3s ease both; }
.modal-head { position: relative; }
.modal-moon { text-align: center; color: var(--gold); font-size: 18px; letter-spacing: 6px; }
.modal-title { color: var(--gold-bright); font-size: 21px; font-weight: 800; margin-top: 10px; text-align: center; letter-spacing: 1px; }
.modal-text { color: var(--text-dim); font-size: 13.5px; line-height: 1.75; margin-top: 9px; text-align: center; }
.modal-text b { color: var(--gold-bright); font-weight: 700; }
.close-x { position: absolute; top: -10px; right: -8px; background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; line-height: 1; padding: 6px; }
.close-x:hover { color: var(--gold); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 15px; }
.field label { color: var(--text-dim); font-size: 12px; letter-spacing: 1px; }
.field input { width: 100%; background: #14112a; border: 1px solid var(--card-border); border-radius: 12px; padding: 13px 14px; color: var(--text); font-size: 15px; font-family: inherit; outline: none; }
.field input:focus { border-color: var(--gold); }
.field input::placeholder { color: #5d5680; }
.submit-btn { width: 100%; margin-top: 20px; background: var(--bg-card-light); border: 1.5px solid var(--gold); border-radius: 24px; padding: 14px; color: var(--gold-bright); font-size: 15.5px; font-weight: 800; letter-spacing: 1px; cursor: pointer; }
.submit-btn:hover { background: var(--purple-dim); }
.form-note { margin-top: 10px; color: var(--gold); font-size: 12.5px; line-height: 1.6; text-align: center; min-height: 16px; }
.divider { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; color: var(--purple-dim); font-size: 11.5px; letter-spacing: 2px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }
.social { display: flex; flex-direction: column; gap: 8px; }
.social button { display: flex; align-items: center; justify-content: center; width: 100%; border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.s-kakao { background: #fee500; color: #191600; }
.s-naver { background: #03c75a; color: #fff; }
.s-google { background: #fff; color: #1f1f1f; }
.s-apple { background: #000; color: #fff; border-color: #46425e !important; }
.social button:hover { filter: brightness(.94); }
.social button:disabled { opacity: .55; cursor: default; }
.modal-foot { margin-top: 17px; text-align: center; color: var(--text-dim); font-size: 12.5px; }
.modal-foot button { background: none; border: none; color: var(--gold); font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.legal { margin-top: 14px; color: var(--purple-dim); font-size: 11px; line-height: 1.6; text-align: center; }
.legal a { color: var(--gold); }

/* ══════════ 푸터 ══════════ */
.site-footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid rgba(212,175,106,.16); background: rgba(16, 13, 36, .6); }
.footer-in { max-width: var(--page); margin: 0 auto; padding: 46px 28px 34px; display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; }
.foot-moon { color: var(--gold); font-size: 17px; letter-spacing: 7px; }
.foot-name { font-size: 18px; font-weight: 700; color: var(--gold-bright); margin-top: 10px; letter-spacing: 1px; }
.foot-brand p { color: var(--text-dim); font-size: 13px; line-height: 1.8; margin-top: 12px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-size: 12px; letter-spacing: 2px; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.foot-col a { color: var(--text-dim); font-size: 13.5px; }
.foot-col a:hover { color: var(--gold-bright); }
.foot-note { color: var(--text-dim); font-size: 12px; line-height: 1.75; margin-top: 6px; opacity: .8; }
/* 사업자 정보 — 법으로 표시해야 하는 항목이라 눈에 보여야 합니다.
   다만 서비스 분위기를 해치지 않게 작고 차분하게 둡니다. */
.biz-info {
  max-width: var(--page); margin: 0 auto; padding: 18px 28px 0;
  border-top: 1px solid rgba(212,175,106,.12);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  color: var(--text-dim); font-size: 11.5px; line-height: 1.7;
}
.biz-info b { color: var(--text-dim); font-weight: 400; }
.biz-info a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.biz-info a:hover { color: var(--gold); }
.biz-addr { flex-basis: 100%; }
.footer-bottom { max-width: var(--page); margin: 0 auto; padding: 14px 28px 30px; color: var(--text-dim); font-size: 11.5px; opacity: .7; }

/* ══════════ 반응형 ══════════ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 40px; }
  .hero-art { order: -1; }
  .draw-wrap { grid-template-columns: 1fr; gap: 30px; }
  .draw-left { position: static; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  :root { --header-h: 60px; }
  .page, .header-in, .footer-in, .footer-bottom, .biz-info { padding-left: 18px; padding-right: 18px; }

  /* 좁은 화면에서는 로그인 버튼을 맨 왼쪽에 둡니다.
   * 예전에는 헤더 전체가 가로로 스크롤돼서, 오른쪽 끝의 로그인이
   * 화면 밖으로 밀려 아예 안 보였습니다. 이제 메뉴만 스크롤됩니다. */
  .header-in { gap: 10px; overflow: visible; }
  .header-right { order: -1; margin-left: 0; flex: none; gap: 7px; }
  /* 모바일에선 계정 버튼이 왼쪽 끝에 있어서 메뉴도 왼쪽에 맞춰 엽니다. */
  .acct-menu { right: auto; left: 0; }
  /* 닉네임이 길어도 버튼이 메뉴 자리를 다 먹지 않도록 잘라 줍니다. */
  .login-btn {
    padding: 8px 14px; font-size: 13px;
    max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .icon-btn { width: 32px; height: 32px; }
  .brand { order: 0; }
  .brand-text { display: none; }
  .nav {
    order: 1; margin-left: 0; flex: 1; min-width: 0;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { padding: 6px 10px 6px 6px; flex: none; }
  .nav-item img { width: 26px; height: 26px; }
  .nav-item span { font-size: 13px; }
  .daily-panel { grid-template-columns: 1fr; }
  .daily-panel-art { height: 170px; min-height: 0; }
  .daily-panel-art::after { background: linear-gradient(180deg, rgba(20,10,46,0) 30%, rgba(28,22,55,.95) 100%); }
  .daily-panel-body { padding: 24px 22px 28px; }
  .reading-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
  .detail-box { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .detail-box > img { max-width: 200px; margin: 0 auto; }
  .card { width: 240px; height: 384px; }
  .reading, .luna, .ai-locked { padding: 22px; }
  .sec-t { font-size: 22px; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ══════════ 리딩 진행 (셔플 → 선택 → 상담) ══════════ */
.flow { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); }
.flow-bar {
  position: sticky; top: var(--header-h); z-index: 60;
  background: rgba(16, 13, 36, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,106,.16);
}
.flow-bar-in {
  max-width: var(--page); margin: 0 auto; padding: 13px 28px;
  display: flex; align-items: center; gap: 14px;
}
.flow-back { background: none; border: none; color: var(--gold); font-size: 20px; cursor: pointer; line-height: 1; padding: 4px 6px; }
.flow-back:hover { color: var(--gold-bright); }
.flow-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(212,175,106,.5); flex: none; }
.flow-title { font-size: 15px; font-weight: 700; color: var(--text); }
.flow-who { font-size: 11.5px; color: var(--purple); margin-top: 2px; letter-spacing: .5px; }
.flow-state { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #7fd6a3; border: 1px solid rgba(127,214,163,.45); border-radius: 20px; padding: 5px 12px; }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7fd6a3; }
.badge-live.done { color: var(--text-dim); border-color: var(--card-border); }
.badge-live.done::before { background: var(--text-dim); }
.btn-end { background: none; border: 1px solid var(--reversed); color: #e8a0ac; border-radius: 20px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; }
.btn-end:hover { background: rgba(200,126,139,.12); }

.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 24px 48px; text-align: center; }
.stage-title { font-size: 23px; font-weight: 800; color: var(--gold-bright); letter-spacing: 1px; }
.stage-sub { color: var(--text-dim); font-size: 14px; line-height: 1.75; margin-top: 10px; max-width: 46ch; }
.stage-note { color: var(--text-dim); font-size: 12.5px; line-height: 1.7; border: 1px dashed var(--purple-dim); border-radius: 12px; padding: 10px 16px; margin-top: 18px; max-width: 44ch; }
.q-input {
  width: min(440px, 100%); margin-top: 26px;
  background: #14112a; border: 1px solid var(--card-border); border-radius: 14px;
  padding: 15px 18px; color: var(--text); font-size: 15.5px; font-family: inherit;
  outline: none; text-align: center;
}
.q-input:focus { border-color: var(--gold); }
.q-input::placeholder { color: #5d5680; }
.stage .btn-primary { margin-top: 22px; }
/* 앱 안내 — 히어로 아래 한 줄 */
.hero-app {
  display: flex; align-items: baseline; gap: 9px;
  margin-top: 20px; padding: 12px 16px;
  background: rgba(36,30,69,.45); border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-dim); font-size: 13.5px; line-height: 1.7; word-break: keep-all;
}
.hero-app b { color: var(--gold-bright); font-weight: 700; }
.hero-app-icon { color: var(--gold); flex: none; }

/* 셔플 */
.shuffle-stage { position: relative; width: 210px; height: 320px; margin: 30px auto 6px; }
.shuffle-card {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--gold);
  background: linear-gradient(155deg, #241e45, #191439 55%, #241e45);
  animation: shuffleMove 1.15s ease-in-out infinite;
}
.shuffle-card svg { width: 100%; height: 100%; display: block; }
@keyframes shuffleMove {
  0%   { transform: translate(0,0) rotate(0deg); }
  30%  { transform: translate(-46px,-14px) rotate(-9deg); }
  60%  { transform: translate(42px,10px) rotate(8deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

/* 부채꼴 선택 */
.fan-wrap { width: 100%; overflow-x: auto; overflow-y: hidden; padding: 48px 0 52px; scrollbar-width: none; }
.fan-wrap::-webkit-scrollbar { display: none; }
.fan { display: flex; justify-content: center; min-width: max-content; padding: 0 70px; }
.fan-card {
  flex: 0 0 76px; width: 76px; height: 122px; margin-right: -62px; position: relative;
  border-radius: 9px; overflow: hidden;
  border: 1px solid rgba(212,175,106,.55);
  background:
    linear-gradient(90deg, rgba(255,255,255,.10) 0 2px, transparent 2px),
    linear-gradient(160deg, #2a2350, #1a1539 60%, #241e45);
  cursor: pointer; padding: 0;
  transform-origin: 50% 100%;
  transition: transform .2s ease, box-shadow .2s, opacity .3s, border-color .2s;
}
/* 얇게 겹칠 때 카드 옆면처럼 보이도록 가는 금선 하나 */
.fan-card::before {
  content: ''; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px;
  background: rgba(212,175,106,.5);
}
.fan-card::after {
  content: ''; position: absolute; inset: 5px; border-radius: 5px;
  border: 1px solid rgba(212,175,106,.16);
}

.fan-card:hover:not(.taken) { transform: var(--t) translateY(-26px) scale(1.06) !important; box-shadow: 0 14px 30px rgba(0,0,0,.6); z-index: 99 !important; border-color: var(--gold-bright); }
.fan-card.taken { opacity: .18; pointer-events: none; }
.pick-count { color: var(--gold); font-size: 14px; letter-spacing: 1px; margin-top: 8px; }
.slots { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.slot-box { width: 54px; height: 86px; border-radius: 8px; border: 1.5px dashed var(--purple-dim); overflow: hidden; }
.slot-box.filled { border: 1.5px solid var(--gold); animation: slotIn .35s ease; }
.slot-box svg { width: 100%; height: 100%; display: block; }
@keyframes slotIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.slot-label { color: var(--text-dim); font-size: 11px; letter-spacing: .5px; }

/* 채팅 상담 */
.chat { flex: 1; display: flex; flex-direction: column; }
.chat-scroll { flex: 1; max-width: 820px; width: 100%; margin: 0 auto; padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 11px; }
.msg { display: flex; gap: 10px; align-items: flex-end; animation: msgIn .35s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid rgba(212,175,106,.4); }
.msg-ava.hidden { visibility: hidden; }
.bubble {
  max-width: 56%; padding: 11px 15px; border-radius: 14px 14px 14px 4px;
  background: var(--bg-card); border: 1px solid var(--card-border);
  font-size: 14.5px; line-height: 1.72; color: var(--text);
  word-break: keep-all; overflow-wrap: break-word;
}
.msg.me { justify-content: flex-end; }
.msg.me .bubble { border-radius: 14px 14px 4px 14px; background: var(--purple-dim); border-color: transparent; color: #f2eefc; }
.msg.sys { justify-content: center; }
.msg.sys .bubble {
  max-width: 78%; background: rgba(36,30,69,.55); border-color: transparent;
  color: var(--text-dim); font-size: 12px; text-align: center; border-radius: 20px; padding: 7px 15px;
}
.bubble-card { padding: 14px; max-width: 300px; }
.bubble-card img { width: 132px; border-radius: 10px; display: block; margin: 0 auto; border: 1px solid var(--card-border); }
.bubble-card img.reversed { transform: rotate(180deg); }
.bubble-pos { color: var(--gold); font-size: 11.5px; letter-spacing: 2px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.bubble-name { color: var(--gold-bright); font-size: 17px; font-weight: 700; text-align: center; margin-top: 11px; }
.bubble-en { color: var(--text-dim); font-size: 11.5px; text-align: center; margin-top: 2px; }
.bubble-rev { display: block; width: fit-content; margin: 7px auto 0; color: #e8a0ac; font-size: 11px; border: 1px solid #c87e8b; border-radius: 8px; padding: 1px 9px; }
.verdict-bubble { text-align: center; }
.verdict-word { font-size: 28px; font-weight: 800; letter-spacing: 5px; }
.verdict-yes { color: var(--gold-bright); text-shadow: 0 0 24px rgba(240,217,168,.4); }
.verdict-no { color: #e8a0ac; text-shadow: 0 0 24px rgba(200,126,139,.35); }
.verdict-maybe { color: var(--purple); text-shadow: 0 0 24px rgba(139,126,200,.35); }

.typing { display: flex; gap: 5px; padding: 13px 15px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .17s; }
.typing i:nth-child(3) { animation-delay: .34s; }
@keyframes dot { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-foot { position: sticky; bottom: 0; background: rgba(13,11,30,.92); backdrop-filter: blur(12px); border-top: 1px solid rgba(212,175,106,.16); }
.chat-foot-in { max-width: 820px; margin: 0 auto; padding: 12px 24px 16px; display: flex; gap: 10px; align-items: center; }
.chat-input { flex: 1; background: #14112a; border: 1px solid var(--card-border); border-radius: 24px; padding: 11px 16px; color: var(--text); font-size: 14px; font-family: inherit; outline: none; }
.chat-input:disabled { color: var(--text-dim); cursor: not-allowed; }
.chat-send { flex: none; border-radius: 24px; padding: 11px 18px; background: var(--bg-card-light); border: 1.5px solid var(--gold); color: var(--gold-bright); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.chat-send:hover { background: var(--purple-dim); }
.chat-hint {
  max-width: 820px; margin: 0 auto; padding: 0 24px 10px;
  color: var(--text-dim); font-size: 12.5px; line-height: 1.5;
}
.chat-again { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 4px 24px 24px; }

@media (max-width: 780px) {
  .flow-bar-in, .chat-scroll, .chat-foot-in, .chat-hint { padding-left: 18px; padding-right: 18px; }
  .bubble { max-width: 84%; font-size: 14px; }
  .fan { padding: 0 40px; }
  .fan-card { flex-basis: 62px; width: 62px; height: 100px; margin-right: -52px; }
  .stage-title { font-size: 22px; }
}

/* ══════════ 리딩 결과: 카드 옆에 해석을 붙여서 ══════════ */
.result-head { max-width: 820px; margin: 0 auto; padding: 26px 24px 4px; }
.result-q { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-top: 8px; }
.result-q b { color: var(--gold-bright); font-weight: 700; }

.result-cards { max-width: 820px; margin: 0 auto; padding: 16px 24px 6px; display: flex; flex-direction: column; gap: 11px; }
.rcard {
  display: grid; grid-template-columns: 116px 1fr; gap: 17px;
  background: var(--bg-card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px 17px;
  animation: fadeUp .45s ease both;
}
.rcard-art { position: relative; }
.rcard-art img { width: 100%; border-radius: 10px; display: block; border: 1px solid var(--card-border); }
.rcard-art img.reversed { transform: rotate(180deg); }
.rcard-pos {
  display: block; text-align: center; color: var(--gold);
  font-size: 11.5px; letter-spacing: 2px; font-weight: 700; margin-bottom: 9px;
}
.rcard-pos small { display: block; color: var(--text-dim); font-size: 10.5px; letter-spacing: 0; font-weight: 400; margin-top: 3px; }
.rcard-name { color: var(--gold-bright); font-size: 17.5px; font-weight: 700; }
.rcard-en { color: var(--text-dim); font-size: 12px; margin-top: 2px; letter-spacing: .5px; }
.rcard-rev { display: inline-block; color: #e8a0ac; font-size: 11px; border: 1px solid #c87e8b; border-radius: 8px; padding: 1px 8px; margin-left: 8px; vertical-align: 3px; }
.rcard .keywords { margin-top: 8px; }
.rrow { display: grid; grid-template-columns: 82px 1fr; gap: 12px; margin-top: 9px; align-items: baseline; }
.rrow dt { color: var(--gold); font-size: 11.5px; letter-spacing: 1px; font-weight: 700; word-break: keep-all; }
.rrow dd { margin: 0; font-size: 13.5px; line-height: 1.72; color: var(--text); word-break: keep-all; }
.rrow.dim dd { color: var(--text-dim); }

/* 이 자리에서의 뜻 — 루나가 직접 읽어준 부분입니다.
 * 기본 의미(사전 설명)와 눈에 띄게 구분되도록 상자로 감싸고 왼쪽에 금선을 둡니다. */
.rrow-here {
  margin-top: 12px; padding: 11px 14px;
  grid-template-columns: 1fr;   /* 제목을 위로 올려 문장에 폭을 다 줍니다 */
  gap: 6px;
  background: linear-gradient(100deg, rgba(212,175,106,.10), rgba(212,175,106,.03));
  border: 1px solid rgba(212,175,106,.28); border-left: 3px solid var(--gold);
  border-radius: 10px;
}
.rrow-here dt { color: var(--gold-bright); font-size: 11px; letter-spacing: 1.5px; }
.rrow-here dt::before { content: '🌙 '; }
.rrow-here dd { color: var(--text); font-size: 14px; line-height: 1.78; font-weight: 500; }
.rrow-here dd.pending { color: var(--purple); font-weight: 400; animation: pulse 1.2s ease-in-out infinite; }

/* ══════════ 리딩 중 화면 ══════════ */
.veil-ov {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 24px;
  background: rgba(9, 7, 22, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: veilIn .25s ease both;
}
.veil-ov.out { animation: veilOut .28s ease both; }
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes veilOut { to { opacity: 0; } }
.veil-box { text-align: center; max-width: 320px; }
.veil-art { position: relative; width: 168px; height: 168px; margin: 0 auto 22px; }
.veil-art img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(212,175,106,.5);
  box-shadow: 0 0 44px rgba(212,175,106,.22);
  animation: veilBreathe 3.4s ease-in-out infinite;
}
@keyframes veilBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.veil-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1px dashed rgba(212,175,106,.35);
  animation: veilSpin 14s linear infinite;
}
@keyframes veilSpin { to { transform: rotate(360deg); } }
.veil-title { color: var(--gold-bright); font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.veil-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.veil-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: dot 1.1s ease-in-out infinite; }
.veil-dots i:nth-child(2) { animation-delay: .17s; }
.veil-dots i:nth-child(3) { animation-delay: .34s; }
.veil-sub { color: var(--text-dim); font-size: 13px; margin-top: 14px; }
@media (max-width: 700px) {
  .veil-art { width: 132px; height: 132px; margin-bottom: 18px; }
  .veil-title { font-size: 15.5px; }
}
.rcard-verdict { display: flex; align-items: baseline; gap: 14px; margin-top: 12px; }
.rcard-verdict .verdict-word { font-size: 25px; }

.chat-divider {
  max-width: 820px; margin: 22px auto 4px; padding: 0 24px;
  display: flex; align-items: center; gap: 14px;
  color: var(--gold); font-size: 12.5px; letter-spacing: 2px; font-weight: 700;
}
.chat-divider::after { content: ''; flex: 1; height: 1px; background: rgba(212,175,106,.28); }

@media (max-width: 780px) {
  .result-head, .result-cards, .chat-divider { padding-left: 18px; padding-right: 18px; }
  .rcard { grid-template-columns: 92px 1fr; gap: 13px; padding: 12px 14px; }
  .rcard-name { font-size: 16px; }
  .rrow { grid-template-columns: 70px 1fr; gap: 10px; }
  .rcard { grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; }
  .rrow { grid-template-columns: 1fr; gap: 2px; }
  .rcard-name { font-size: 18px; }
}

/* ══════════ 스페셜 리딩 (서비스 예정) ══════════ */
.special-group { margin-top: 26px; }
.special-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.special-cat { font-size: 15.5px; font-weight: 700; color: var(--gold-bright); letter-spacing: .5px; }
.special-cnt { font-size: 12px; color: var(--purple-dim); font-variant-numeric: tabular-nums; }
/* 스페셜은 세 종류뿐이라 셋으로 나눠 넉넉하게 보여줍니다. */
.special-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.scard {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: linear-gradient(150deg, rgba(36,30,69,.55), rgba(26,22,51,.55));
  border: 1px solid var(--card-border); border-radius: 14px;
  padding: 0; overflow: hidden; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.scard:hover { border-color: rgba(212,175,106,.45); background: linear-gradient(150deg, rgba(44,36,80,.7), rgba(30,25,60,.7)); transform: translateY(-3px); }

/* 주제 그림 — 평소엔 밤 분위기로 살짝 눌러 두고, 올려두면 살아납니다 */
.scard-art { display: block; position: relative; aspect-ratio: 10 / 14; overflow: hidden; }
.scard-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.74) saturate(.88); transform: scale(1.01);
  transition: filter .3s ease, transform .5s ease;
}
.scard:hover .scard-art img { filter: brightness(.95) saturate(1); transform: scale(1.05); }
.scard-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,11,30,.10) 0%, rgba(13,11,30,0) 34%, rgba(13,11,30,.72) 100%);
}

.scard-body { display: flex; flex-direction: column; flex: 1; padding: 13px 15px 15px; }
/* 제목이 한 줄이든 두 줄이든 '서비스 예정' 배지 높이는 맞춰 둡니다 */
.scard-t { display: block; font-size: 15.5px; font-weight: 700; color: var(--text); line-height: 1.5; word-break: keep-all; }
.scard-d { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-dim); line-height: 1.55; word-break: keep-all; }
.scard-body .scard-soon { align-self: flex-start; margin-top: auto; }
.scard:hover .scard-t { color: var(--gold-bright); }

/* 그림 위에 값을 얹어 둡니다 — 눌러보고 나서야 유료인 걸 알면 곤란하니까요 */
.scard-cost {
  position: absolute; top: 9px; right: 9px; z-index: 1;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(13,11,30,.78); border: 1px solid rgba(212,175,106,.5);
  color: var(--gold-bright); font-size: 12px; font-weight: 700; line-height: 1;
  backdrop-filter: blur(6px);
}
.scard-soon {
  display: inline-block; margin-top: 10px;
  font-size: 10.5px; letter-spacing: 1px; color: var(--purple);
  border: 1px solid var(--purple-dim); border-radius: 20px; padding: 2px 9px;
}
@media (max-width: 780px) {
  .special-grid { grid-template-columns: 1fr; gap: 14px; }
  .scard-body { padding: 11px 12px 13px; }
  .scard-t { font-size: 13.5px; }
}
