:root {
  --bg-stage: #0d1624;
  --paper: #f6f7fa;
  --paper-soft: #edf0f6;
  --card: #ffffff;
  --ink: #152236;
  --muted: #5c6b80;
  --line: #dce2ec;
  --gold: #c59b47;
  --gold-deep: #966f22;
  --gold-light: #fcf5e3;
  --crimson: #b83b48;
  --navy: #162944;
  --목: #2aa86c;
  --화: #d94c3a;
  --토: #d1992a;
  --금: #6f7c8c;
  --수: #355886;
  --radius: 16px;
  --app-width: 500px;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--paper); line-height: 1.55; }
h1, h2, h3, h4, .serif { font-family: 'Gowun Batang', serif; letter-spacing: -0.02em; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ================= PC + 모바일 스테이지 레이아웃 (천문각 우주 은하수 & 황금 별자리 배경) ================= */
.stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  background-color: #060916;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(45, 72, 160, 0.28) 0%, rgba(8, 12, 28, 0.72) 70%),
    url('/img/cosmos-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* 우주 별빛 반짝임 오버레이 */
.stage::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 80%, transparent),
    radial-gradient(2px 2px at 28% 62%, #f8dfa5 80%, transparent),
    radial-gradient(1.5px 1.5px at 78% 24%, #fff 80%, transparent),
    radial-gradient(2px 2px at 86% 74%, #a8d4ff 80%, transparent),
    radial-gradient(1.2px 1.2px at 64% 48%, #fff 80%, transparent),
    radial-gradient(1.8px 1.8px at 18% 84%, #f8dfa5 80%, transparent);
  animation: cosmicTwinkle 5s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes cosmicTwinkle {
  0% { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0.95; transform: scale(1.02); }
}

/* 테마 2: 바이올렛 우주 성운 오로라 */
body[data-theme="starlight"] .stage,
body[data-theme="palace"] .stage {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(88, 42, 168, 0.45) 0%, rgba(10, 12, 32, 0.78) 70%),
    url('/img/cosmos-bg.webp');
}

/* 테마 2: 천문각화사한 아이보리 & 딥그린 (Quiet Luxury 밝은 무대) */
body[data-theme="ivory"] {
  --paper: #faf9f5;
  --paper-soft: #f1eee6;
  --ink: #16231f;
  --muted: #5d6964;
  --line: #dfd9cc;
}
body[data-theme="ivory"] .stage {
  background-image:
    radial-gradient(65% 50% at 50% 8%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 75%),
    linear-gradient(115deg, #e5e0d3 0%, #efeadd 45%, #f6f3eb 100%);
}
body[data-theme="ivory"] .pc-intro { color: #16231f; }
body[data-theme="ivory"] .pc-intro .pc-headline { color: #0e2a23; }
body[data-theme="ivory"] .pc-intro .pc-headline span { color: #966f22; }
body[data-theme="ivory"] .pc-desc { color: #4c5954; }
body[data-theme="ivory"] .pc-desc b { color: #0e2a23; }
body[data-theme="ivory"] .pc-badge { background: #0e2a23; color: #f3d692; border-color: #0e2a23; }
body[data-theme="ivory"] .pc-features { background: rgba(255,255,255,0.72); border-color: #d6cfc0; }
body[data-theme="ivory"] .pc-features b { color: #0e2a23; }
body[data-theme="ivory"] .pc-features span { color: #5d6964; }

/* 테마 3: 미스틱 스타라이트 (타로·별자리 오로라 네이비 퍼플) */
body[data-theme="starlight"] .stage {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(98, 62, 168, 0.5) 0%, rgba(12, 14, 34, 0.75) 70%),
    url('/img/cosmos-bg.webp');
}

.pc-intro {
  display: none;
  width: 420px;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 36px 28px 36px 16px;
  color: #f3ede0;
  flex-direction: column;
  justify-content: center;
}
.pc-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(198, 150, 62, 0.5);
  background: rgba(198, 150, 62, 0.14);
  color: #f1cf8a;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.pc-intro .pc-headline {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 2.35rem;
  line-height: 1.28;
  margin: 0 0 14px;
  color: #fffaf0;
}
.pc-intro .pc-headline span { color: #f2c46d; }
.pc-desc {
  color: #b9ae9e;
  font-size: 0.92rem;
  margin: 0 0 22px;
  line-height: 1.65;
}
.pc-desc b { color: #f5dec0; }
.pc-masters-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.pc-master-circle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(198, 150, 62, 0.45);
  color: #f6e7c8;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s;
  text-align: left;
  min-width: 0;
}
.pc-master-circle:hover {
  transform: translateY(-2px);
  background: rgba(198, 150, 62, 0.22);
  border-color: #f2c46d;
}
.pc-master-circle img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #c6963e;
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
  flex: none;
}
.pc-master-circle span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-theme="ivory"] .pc-master-circle {
  background: rgba(255,255,255,0.85);
  color: #16231f;
  border-color: #c9bfa8;
}
.pc-features {
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.84rem;
}
.pc-features div { display: flex; flex-direction: column; }
.pc-features b { color: #f3d28e; font-size: 0.88rem; }
.pc-features span { color: #afa393; font-size: 0.78rem; }

@media (min-width: 980px) {
  .pc-intro { display: flex; }
}

/* ================= 중앙 500px 앱 쉘 ================= */
.app-shell {
  width: 100%;
  max-width: var(--app-width);
  min-height: 100dvh;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  padding-bottom: calc(134px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}

/* ================= 상단 고정 헤더 & 탭 ================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 247, 250, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 8px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo .seal {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #13253d, #234066);
  border: 1px solid var(--gold);
  color: #f6d58e;
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}
.brand-logo b, .brand-logo .brand-title {
  display: block;
  margin: 0;
  font-weight: 700;
  letter-spacing: normal;
  font-family: 'Gowun Batang', serif;
  font-size: 1.12rem;
  line-height: 1.15;
}
.brand-logo small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.profile-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.master-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px 12px 10px;
}
.m-tab {
  flex: none;
  border: 1px solid var(--line);
  background: #f8f9fc;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
}
.m-tab:hover {
  border-color: var(--gold);
}
.m-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #f9e3b0;
  font-weight: 700;
}

/* ================= 오늘의 천문 배너 ================= */
.daily-banner {
  margin: 12px 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(125deg, rgba(8, 15, 36, 0.86) 0%, rgba(28, 38, 86, 0.82) 100%),
    url('/img/cosmos-bg.webp') center/cover;
  color: #f3f7fc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(8, 15, 36, 0.28);
  border: 1px solid rgba(246, 213, 142, 0.35);
  cursor: pointer;
}
.daily-banner-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.daily-banner-left img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  flex: none;
}
.daily-banner-left small {
  display: block;
  color: #e4c17a;
  font-size: 0.73rem;
  font-weight: 700;
}
.daily-banner-left b {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.daily-banner-btn {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(246, 213, 142, 0.16);
  border: 1px solid rgba(246, 213, 142, 0.45);
  color: #f6d58e;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ================= 3:4 대형 포스터 회전판 (우주 천문 스테이지) ================= */
.hero-stage {
  position: relative;
  padding: 18px 0 22px;
  overflow: hidden;
  background: url('/img/cosmos-bg.webp') center/cover;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.45);
  transform: scale(1.2);
  transition: background-image 0.65s ease;
  z-index: 0;
  opacity: 0.55;
}
.hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 28, 0.35) 0%, rgba(8, 12, 28, 0.55) 75%, var(--paper) 100%);
  z-index: 0;
  pointer-events: none;
}
.carousel-track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 7.5%;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }

.hero-poster {
  flex: 0 0 85%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  border: 1px solid rgba(255, 235, 190, 0.28);
  transition: transform .35s ease, opacity .35s ease;
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-poster:hover img { transform: scale(1.03); }

/* 포스터 위 세로 붓글씨/서체 타이틀 & 하단 정보 오버레이 */
.poster- shade, .poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.02) 42%, rgba(12,9,6,0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: #fff;
}
.poster-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.poster-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(198, 150, 62, 0.92);
  color: #1c140a;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.poster-views {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  color: #f3e4c6;
}
.poster-vertical-title {
  writing-mode: vertical-rl;
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: #fffdf7;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85);
  margin-top: 8px;
}
.poster-bottom h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: #fff8ea;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.poster-bottom p {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: #e2d7c5;
  line-height: 1.4;
}
.poster-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.8rem;
}
.poster-master {
  color: #f5cf82;
  font-weight: 700;
}
.poster-price b {
  color: #ffd97d;
  font-size: 0.95rem;
}
.poster-price s {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  margin-right: 4px;
}

.carousel-dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.carousel-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(36, 27, 18, 0.25);
  cursor: pointer;
  transition: all .25s;
}
.carousel-dots button.on {
  width: 22px;
  background: var(--ink);
}

/* ================= 천문각 4칸 빠른 메뉴 ================= */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 16px 18px;
}
.q-tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform .15s, border-color .15s;
}
.q-tile:hover { transform: translateY(-2px); border-color: var(--gold); }
.q-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 6px;
  border-radius: 12px;
  background: var(--paper-soft);
  font-size: 1.25rem;
}
.q-tile b { display: block; font-size: 0.8rem; margin-bottom: 2px; }
.q-tile small { display: block; font-size: 0.67rem; color: var(--muted); letter-spacing: -0.03em; }

/* ================= 고민별 가로 줄 (천문각 노출 규칙) ================= */
.theme-row {
  margin-bottom: 26px;
}
.row-head {
  padding: 0 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.row-head h2 {
  font-size: 1.12rem;
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
}
.row-head span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ================= 홈 9인의 명인 원형 캐릭터 그리드 ================= */
.home-masters-circle-sec {
  padding: 6px 0 12px;
}
.home-masters-circle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px;
}
.home-master-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.home-master-circle:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 14px rgba(198, 150, 62, 0.14);
}
.home-master-circle img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.home-master-circle b {
  font-size: 0.79rem;
  color: var(--ink);
  margin-bottom: 2px;
  white-space: nowrap;
}
.home-master-circle small {
  font-size: 0.67rem;
  color: var(--muted);
  white-space: nowrap;
}

.row-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 2px 16px 8px;
}

.p-card {
  width: 100%;
  min-width: 0;
  cursor: pointer;
}
.p-card-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  margin-bottom: 8px;
  background: #241c14;
}
.p-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.p-card:hover .p-card-thumb img { transform: scale(1.04); }
.p-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.22) 0%, transparent 45%, rgba(0,0,0,0.78) 100%);
}
.p-card-vtitle {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  letter-spacing: 0.05em;
}
.p-card-master-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #f7dca0;
  font-weight: 700;
}
.p-card-info b {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-card-info .views {
  font-size: 0.74rem;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 2px;
}
.p-card-info p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* 전체 보기 2열 격자 & 명인 스포트라이트 */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 10px;
  padding: 8px 16px 24px;
}
.grid-2col .p-card { flex: initial; min-width: 0; }

.master-hero-box {
  margin: 12px 16px 18px;
  border-radius: 18px;
  overflow: hidden;
  background: #231b13;
  color: #f8f1e4;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.master-hero-top {
  display: flex;
  gap: 14px;
  padding: 18px;
  align-items: center;
}
.master-hero-top img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex: none;
}
.master-hero-top small {
  color: #ecc87a;
  font-size: 0.76rem;
  font-weight: 700;
}
.master-hero-top h2 { margin: 2px 0 6px; font-size: 1.3rem; color: #fff; }
.master-hero-top p { margin: 0; font-size: 0.84rem; color: #d6c8b4; }

/* ================= 실시간 롤링 후기 (천문각 일간 + 금박 재구매) ================= */
.reviews-section {
  padding: 8px 16px 28px;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}
.sec-kicker {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-deep);
  font-weight: 700;
}
.sec-head h2 { margin: 2px 0 0; font-size: 1.2rem; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--crimson);
  background: rgba(184, 59, 59, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
}
.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.review-feed {
  display: grid;
  gap: 10px;
}
.rev-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  animation: slideInUp 0.55s ease;
  cursor: pointer;
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.8rem;
}
.rev-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.day-badge {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.ord-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #b59449;
}
.ord-badge.shimmer {
  background: linear-gradient(90deg, #9b6f1e 0%, #f5d98e 50%, #9b6f1e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 2.6s linear infinite;
}
@keyframes goldShimmer { to { background-position: 200% center; } }

.rev-stars { color: #d8a237; font-size: 0.82rem; letter-spacing: 1px; }
.rev-text {
  margin: 0 0 10px;
  font-size: 0.87rem;
  color: var(--ink);
  line-height: 1.55;
}
.rev-prod {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--paper);
  font-size: 0.76rem;
  color: var(--muted);
}
.rev-prod b { color: var(--ink); }

/* ================= 푸터 ================= */
.app-footer {
  padding: 24px 16px 32px;
  border-top: 1px solid var(--line);
  background: #f0ebe0;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-masters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.footer-m-btn {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.76rem;
}
.footer-m-btn b { display: block; color: var(--ink); font-size: 0.82rem; }
.footer-legal p { margin: 6px 0; line-height: 1.5; }

/* ================= 하단 플로팅 후기 띠 & 하단 네비게이션 ================= */
.floating-strip {
  position: fixed;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(468px, calc(100% - 24px));
  z-index: 25;
  background: rgba(18, 32, 54, 0.92);
  backdrop-filter: blur(14px);
  color: #f4f7fb;
  border: 1px solid rgba(197, 155, 71, 0.45);
  border-radius: 14px;
  padding: 9px 34px 9px 14px;
  box-shadow: 0 8px 24px rgba(10, 18, 32, 0.32);
  font-size: 0.78rem;
  transition: opacity .25s, transform .25s;
}
@media (min-width: 980px) {
  .floating-strip { left: calc(50% + 195px); }
}
.strip-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.strip-content b { color: #f6cf7f; margin-right: 6px; }
.strip-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #b8ab99;
  font-size: 1.1rem;
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-width);
  z-index: 35;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 980px) {
  .bottom-nav { left: calc(50% + 195px); }
}
.nav-item {
  position: relative;
  border: 0;
  background: transparent;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
}
.nav-item .nav-ico { font-size: 1.2rem; }
.nav-item.active {
  color: var(--ink);
  font-weight: 700;
}
.badge-cnt {
  position: absolute;
  top: 2px;
  right: 26%;
  background: var(--crimson);
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 999px;
}

/* ================= 공통 카드 · 만세력 · 달력 · 대운 ================= */
.view { padding-top: 4px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin: 12px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.card-head h2 { margin: 0; font-size: 1.15rem; }
.hint { color: var(--muted); font-size: 0.8rem; }

/* 입력 폼 */
.birth-form { display: grid; gap: 12px; }
.field > label { display: block; font-weight: 500; margin-bottom: 5px; font-size: 0.88rem; }
.field small { color: var(--muted); font-weight: 400; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input[type=date], input[type=time], input:not([type]), select, textarea {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  background: #fff;
  min-height: 44px;
  width: 100%;
  font-size: 0.92rem;
}
.row input[type=date], .row input[type=time] { flex: 1; min-width: 140px; }
textarea { min-height: 82px; resize: vertical; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #faf7f0; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 15px; font-size: 0.88rem; }
.seg input:checked + span { background: var(--ink); color: #f8dfa5; font-weight: 700; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; cursor: pointer; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: 0.84rem; }
.advanced .field { margin-top: 10px; }

.btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b2015 0%, #463320 100%);
  color: #f8dfa5;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(198, 150, 62, 0.45);
}
.btn.gold {
  background: linear-gradient(135deg, #c6963e 0%, #9b6f1e 100%);
  color: #fff;
  border: 0;
}
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.small {
  width: auto;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.8rem;
}
.btn:disabled { opacity: 0.6; cursor: wait; }
.error { color: var(--화); font-size: 0.85rem; margin: 0; }

/* 씨앗 요약 & 만세력 */
.seed-card { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.seed-card > div:last-child { flex: 1 1 200px; min-width: 0; }
/* 사주 입력 직후 안내: 한 줄 전체를 쓰고, 흰 바탕에서도 읽히는 진한 초록 */
.seed-flash { flex: 1 1 100%; padding: 10px 12px; border-radius: 10px; background: #e7f6ee; border: 1px solid #2aa86c; color: #145c3a; font-size: 0.9rem; font-weight: 700; line-height: 1.5; }
/* 생년월일 년·월·일 목록 (휴대폰에서 한 번에 고르기) */
.ymd { display: flex; gap: 6px; flex: 1 1 220px; min-width: 0; }
.ymd select { flex: 1 1 0; min-width: 0; font-size: 1rem; padding: 10px 6px; }
.ymd .bd-y { flex: 1.4 1 0; }
.seed-card .big {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Gowun Batang', serif;
  font-size: 2rem;
  flex: none;
}
.seed-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.seed-card p { margin: 0; font-size: 0.83rem; color: var(--muted); }

.pillars {
  display: grid;
  grid-template-columns: 54px repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.82rem;
  text-align: center;
}
.pillars > div { padding: 7px 3px; border-bottom: 1px solid var(--line); }
.pillars .rh { background: var(--paper-soft); color: var(--muted); font-size: 0.74rem; display: flex; align-items: center; justify-content: center; }
.pillars .ch { background: var(--paper-soft); font-weight: 700; }
.pillars .gz { font-family: 'Gowun Batang', serif; font-size: 1.65rem; line-height: 1.1; padding: 10px 2px; }
.pillars .gz small { display: block; font-size: 0.7rem; font-family: 'Noto Sans KR', sans-serif; }
.pillars .me { outline: 2px solid var(--gold); outline-offset: -3px; border-radius: 8px; }
.pillars > div:nth-last-child(-n+5) { border-bottom: 0; }

.el-목 { color: var(--목); } .el-화 { color: var(--화); } .el-토 { color: var(--토); } .el-금 { color: var(--금); } .el-수 { color: var(--수); }
.bg-목 { background: var(--목); } .bg-화 { background: var(--화); } .bg-토 { background: var(--토); } .bg-금 { background: var(--금); } .bg-수 { background: var(--수); }

.elements { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 8px; }
.el { text-align: center; font-size: 0.8rem; }
.el .bar { height: 56px; background: var(--paper-soft); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.el .bar i { display: block; width: 100%; border-radius: 8px 8px 0 0; }
.el b { display: block; margin-top: 4px; }
.strength { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--paper-soft); font-size: 0.78rem; }

.basis { margin-top: 8px; font-size: 0.82rem; }
.basis summary { cursor: pointer; color: var(--gold-deep); font-weight: 700; }
.basis dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 10px; margin: 8px 0 0; }
.basis dt { color: var(--muted); }
.basis dd { margin: 0; }

/* 오늘의 일운 & 달력 */
.today-body { display: flex; gap: 14px; align-items: flex-start; }
.today-img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex: none; }
.score { display: flex; gap: 5px; margin: 5px 0 8px; }
.score i { width: 12px; height: 12px; border-radius: 50%; background: #e5dec9; }
.score i.on { background: var(--gold); }
.today-card .msg { font-family: 'Gowun Batang', serif; font-size: 1.05rem; margin: 0 0 8px; font-weight: 700; }

.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav button { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; text-align: center; font-size: 0.76rem; }
.calendar .dow { color: var(--muted); font-size: 0.72rem; }
.calendar .d { border-radius: 8px; padding: 5px 0; min-height: 38px; }
.calendar .d b { display: block; font-weight: 700; }
.calendar .s5 { background: #d4ecd0; } .calendar .s4 { background: #eaf5e6; } .calendar .s3 { background: #f6f3ea; }
.calendar .s2 { background: #fbe2d7; } .calendar .s1 { background: #f5c6b5; }
.calendar .is-today { outline: 2px solid var(--gold-deep); }

/* 대운 */
.daewoon { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; }
.dw { flex: none; width: 68px; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 7px 4px; font-size: 0.75rem; }
.dw .gz { font-family: 'Gowun Batang', serif; font-size: 1.15rem; display: block; font-weight: 700; }
.dw.now { border-color: var(--gold); background: var(--gold-light); }

/* ================= 상품 상세 · 결제 · 리포트 화면 ================= */
.detail-hero {
  position: relative;
  margin: 8px 16px 14px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(15,11,8,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
}
.detail-hero-overlay small { color: #f6cf7f; font-weight: 700; font-size: 0.8rem; }
.detail-hero-overlay h2 { margin: 3px 0 5px; font-size: 1.45rem; }
.detail-hero-overlay p { margin: 0; font-size: 0.85rem; color: #ddd2c0; }

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.toc-chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.78rem;
}

.pay-box {
  background: var(--gold-light);
  border: 1px solid rgba(198, 150, 62, 0.45);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
}
.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin: 4px 0;
}
.pay-row.final {
  border-top: 1px dashed rgba(155, 111, 30, 0.35);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.pay-row.final b { color: var(--crimson); font-size: 1.25rem; }

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.pm-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}
.pm-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #f8dfa5;
  font-weight: 700;
}

.pay-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

/* 리포트 본문 */
.report-paper {
  background: #fffdf8;
  border: 1px solid #dfd5c0;
  border-radius: 16px;
  padding: 20px 18px;
  margin-top: 14px;
  line-height: 1.75;
  font-size: 0.96rem;
}
.report-paper h2 {
  font-size: 1.2rem;
  color: #3a2814;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin: 26px 0 10px;
}
.report-paper h2:first-child { margin-top: 4px; }
.report-paper ul, .report-paper ol { padding-left: 20px; }
.report-paper li { margin: 6px 0; }
.report-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* 명인 1:1 채팅 */
.chat-box {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.chat-log { display: grid; gap: 10px; margin-bottom: 12px; }
.bubble { padding: 10px 14px; border-radius: 14px; max-width: 88%; font-size: 0.9rem; white-space: pre-wrap; }
.bubble.user { background: var(--ink); color: #f8dfa5; justify-self: end; }
.bubble.assistant { background: var(--paper-soft); color: var(--ink); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; }
.chat-form .btn { width: auto; padding: 0 18px; }

/* 궁합 점수 박스 */
.score-box { background: var(--paper); border-radius: 14px; padding: 14px; margin: 12px 0; }
.score-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.score-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.score-box .total { font-family: 'Gowun Batang', serif; font-size: 1.9rem; color: var(--crimson); font-weight: 700; }
.score-row { display: grid; grid-template-columns: 7.5em 1fr 3.2em; gap: 6px; align-items: center; font-size: 0.82rem; }
.score-row .bar { height: 8px; border-radius: 6px; background: #e5dec9; overflow: hidden; }
.score-row .bar i { display: block; height: 100%; background: var(--crimson); }
.score-row p { grid-column: 1 / -1; margin: 0 0 6px; color: var(--muted); font-size: 0.78rem; }

/* 보관함 목록 */
.vault-list { display: grid; gap: 10px; }
.vault-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}
.vault-item b { display: block; font-size: 0.92rem; }
.vault-item small { color: var(--muted); font-size: 0.78rem; }

.mini-shop { display: grid; gap: 8px; }

/* 모달 시트 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.modal-backdrop[hidden] { display: none; }
.modal-sheet {
  width: 100%;
  max-width: var(--app-width);
  max-height: 88dvh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px 32px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-head h3 { margin: 0; }
.modal-close { border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}
.loading img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); animation: bob 1.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 천문각 정밀 만세력 원국 검증표 (리포트 상단 공식 감정서) */
.saju-verify-box {
  margin: 12px 0 18px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fdfaf2 0%, #f7f1e1 100%);
  border: 1.5px solid #d4b46a;
  color: #1c2430;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.sv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #cdb06c;
}
.sv-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #7c5813;
  background: #f5e4b8;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.sv-header h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #162336;
}
.sv-seal {
  flex-shrink: 0;
  padding: 4px 8px;
  border: 2px solid #9e2a2b;
  color: #9e2a2b;
  font-family: 'Gowun Batang', serif;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 6px;
  background: rgba(255, 245, 245, 0.85);
  letter-spacing: 0.04em;
}
.saju-verify-person + .saju-verify-person {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cdb06c;
}
.sv-person-head {
  margin-bottom: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
}
.sv-person-head b {
  display: block;
  font-size: 0.88rem;
  color: #142238;
}
.sv-person-head span {
  color: #3b4a5e;
}
.sv-pillar-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.sv-col {
  background: #ffffff;
  border: 1px solid #dfd3b6;
  border-radius: 10px;
  padding: 7px 5px;
  text-align: center;
  font-size: 0.76rem;
}
.sv-col.is-day {
  border: 1.5px solid #b8862d;
  background: #fffdf7;
}
.sv-th {
  font-weight: 800;
  font-size: 0.73rem;
  color: #6b5322;
  margin-bottom: 3px;
}
.sv-god {
  font-size: 0.73rem;
  color: #3f4e63;
  font-weight: 600;
}
.sv-gz {
  font-family: 'Gowun Batang', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #132033;
  margin: 3px 0;
  line-height: 1.2;
}
.sv-gz small {
  display: block;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #526071;
  margin-top: 2px;
}
.sv-meta {
  font-size: 0.69rem;
  color: #4b5a6e;
  line-height: 1.35;
  margin-top: 2px;
  word-break: keep-all;
}
.sv-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm 12mm;
  }
  body, .stage, .app-shell {
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .pc-intro,
  .app-header,
  .bottom-nav,
  .floating-strip,
  .report-toolbar,
  .chat-box,
  .detail-hero,
  .modern-hero,
  #checkoutCard,
  #formCard,
  #productDetailPanel > .card:first-of-type,
  .tarot-table-card,
  #view-mbti > .card,
  .lucky-sponsor-box,
  #rewardGateWrap,
  #tarotRewardGateWrap,
  #mbtiRewardGateWrap,
  .app-footer,
  .modal-backdrop,
  .drawer-backdrop,
  #miniShop {
    display: none !important;
  }
  .card, .report-print-root, .saju-verify-box, .tarot-reading-card, .score-box {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #111111 !important;
    margin: 0 0 12px 0 !important;
    break-inside: avoid;
  }
  .report-print-root {
    break-inside: auto !important;
    border: 0 !important;
    padding: 0 !important;
  }
  .report-paper h2, .report-paper h3 {
    color: #111111 !important;
    page-break-after: avoid;
    break-after: avoid;
  }
  .report-paper p, .report-paper li {
    color: #1a1a1a !important;
    orphans: 3;
    widows: 3;
  }
}

/* ================= 🔮 타로카드 & 🧠 현대 MBTI×사주 라운지 ================= */
.modern-hero {
  margin: 10px 16px 12px;
  padding: 18px 16px;
  border-radius: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.modern-hero.tarot-theme {
  background: linear-gradient(135deg, #271745 0%, #4b2d7f 60%, #734b9c 100%);
}
.modern-hero.mbti-theme {
  background: linear-gradient(135deg, #162b40 0%, #24476b 60%, #356796 100%);
}
.modern-hero img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f6cf7f;
  flex: none;
}
.modern-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #f9dfb0;
  margin-bottom: 4px;
}
.modern-hero h2 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.modern-hero p { margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.86); line-height: 1.45; }

.tarot-themes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.t-theme-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 11px;
  padding: 10px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: all .18s;
}
.t-theme-btn.active {
  background: #36205d;
  color: #f9dfb0;
  border-color: #36205d;
}

.tarot-table-card {
  background: radial-gradient(circle at 50% 25%, #2a1a4a 0%, #170e2b 100%);
  color: #f7efe0;
  border-color: rgba(246, 207, 127, 0.35);
}
.tarot-table-card .card-head h2 { color: #f9dfb0; }
.tarot-guide-txt {
  margin: 4px 0 12px;
  font-size: 0.83rem;
  color: #dcd0ee;
  text-align: center;
}
.tarot-guide-txt b { color: #f6cf7f; }

.tarot-fan {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  padding: 6px 2px 12px;
}
.tarot-deck-card {
  aspect-ratio: 2 / 3.1;
  border-radius: 8px;
  border: 1.5px solid #d4af37;
  background: linear-gradient(145deg, #2d1b4e 0%, #140b29 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #f6cf7f;
  font-size: 0.95rem;
  transition: transform .22s ease, box-shadow .22s ease, opacity .2s;
  position: relative;
  user-select: none;
}
.tarot-deck-card::after {
  content: '✦';
  font-size: 1.05rem;
  opacity: 0.85;
}
.tarot-deck-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 16px rgba(246, 207, 127, 0.35);
}
.tarot-deck-card.picked {
  opacity: 0.22;
  transform: scale(0.92);
  pointer-events: none;
}

.tarot-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(246, 207, 127, 0.25);
}
.tarot-slot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(246, 207, 127, 0.45);
  border-radius: 12px;
  padding: 10px 6px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tarot-slot.filled {
  background: linear-gradient(180deg, #fffdf8 0%, #f4ead5 100%);
  color: var(--ink);
  border: 2px solid #d4af37;
  animation: flipIn .4s ease;
}
@keyframes flipIn {
  0% { transform: rotateY(90deg) scale(0.9); opacity: 0; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}
.slot-pos {
  font-size: 0.68rem;
  color: #cbbbe2;
  margin-bottom: 4px;
}
.tarot-slot.filled .slot-pos {
  color: var(--gold-deep);
  font-weight: 700;
}
.slot-symbol {
  font-size: 1.9rem;
  margin: 4px 0;
}
.slot-symbol.rev {
  transform: rotate(180deg);
}
.slot-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}
.slot-dir {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
}
.slot-dir.up { background: #e3f4e8; color: #1f6e43; }
.slot-dir.rev { background: #fce6e5; color: #a93226; }

.tarot-reading-card {
  border-left: 4px solid #5b3e96;
  padding-left: 12px;
  margin: 12px 0;
}
.tarot-reading-card h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  color: #36205d;
}
.tarot-reading-card p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* MBTI 16유형 그리드 & 1분 테스트 */
.mbti-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.mbti-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.mbti-chip b {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}
.mbti-chip small {
  display: block;
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mbti-chip.active {
  background: #1b3652;
  border-color: #1b3652;
  color: #fff;
  box-shadow: 0 4px 12px rgba(27, 54, 82, 0.25);
}
.mbti-chip.active b { color: #f6cf7f; }
.mbti-chip.active small { color: #d6e4f0; }

.mbti-quiz-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.quiz-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.quiz-head b { display: block; font-size: 0.92rem; color: #1b3652; }
.quiz-head small { color: var(--muted); font-size: 0.76rem; }
.quiz-q {
  margin: 10px 0;
  font-size: 0.83rem;
}
.quiz-q p { margin: 0 0 6px; font-weight: 700; }
.quiz-opts {
  display: grid;
  gap: 5px;
}
.quiz-opts label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 0.79rem;
}
.quiz-opts input:checked + span {
  font-weight: 700;
  color: #1b3652;
}

.mbti-stat-row {
  display: grid;
  grid-template-columns: 7.5em 1fr 2.8em;
  gap: 8px;
  align-items: center;
  font-size: 0.83rem;
  margin: 7px 0;
}
.mbti-stat-row .bar {
  height: 9px;
  border-radius: 999px;
  background: #e6e0d2;
  overflow: hidden;
}
.mbti-stat-row .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #24476b, #c6963e);
  border-radius: 999px;
}

/* ================= 천문각: 세부 고민 태그 칩 바 & 우측 서랍(Drawer) ================= */
.ft-tag-section {
  margin: 4px 16px 14px;
}
.ft-tag-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ft-tag-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 2px 0;
}
.ft-tag-scroll::-webkit-scrollbar { display: none; }
.ft-tag-Scroll-open {
  flex-wrap: wrap;
  overflow-x: visible;
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.ft-chip {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #ded7c8;
  background: #fff;
  color: #5f5344;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all .15s;
}
.ft-chip.active {
  border-color: #191919;
  background: #191919;
  color: #f8dfa5;
  font-weight: 700;
}
.ft-tag-expand {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

/* 천문각가로 배너형 상품 리스트 카드 (태그 선택 시 노출) */
.ft-banner-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.ft-banner-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}
.ft-banner-thumb {
  position: relative;
  height: 138px;
  overflow: hidden;
}
.ft-banner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.ft-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 13, 9, 0.88) 0%, rgba(18, 13, 9, 0.25) 100%);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.ft-banner-overlay small { color: #f6cf7f; font-size: 0.74rem; font-weight: 700; }
.ft-banner-overlay h3 { margin: 4px 0; font-size: 1.08rem; }
.ft-banner-overlay p { margin: 0; font-size: 0.78rem; color: #e2d7c5; }
.ft-banner-meta {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #7d6b57;
}
.ft-coin-price {
  color: #d7990b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ================= 천문각: 2×2 하늘색 해결책 타일 & #꿈해몽 카드 ================= */
.jeomsin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  margin: 18px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.jm-head { margin-bottom: 12px; }
.jm-kicker {
  display: block;
  font-size: 0.74rem;
  color: #6682a8;
  font-weight: 700;
}
.jm-head h2 {
  margin: 2px 0 0;
  font-size: 1.15rem;
  color: #1f2024;
}
.jm-tiles-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.jm-tile {
  background: #f4f7fe;
  border: 1px solid #e3ecfc;
  border-radius: 14px;
  padding: 14px 12px;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: transform .16s, box-shadow .16s;
}
.jm-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(102, 154, 255, 0.16);
}
.jm-tile b {
  display: block;
  font-size: 0.94rem;
  color: #1f2024;
  margin-bottom: 4px;
}
.jm-tile small {
  display: block;
  font-size: 0.75rem;
  color: #697586;
  line-height: 1.35;
}
.jm-tile-ico {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 1.75rem;
}

.jm-dream-list {
  display: grid;
  gap: 8px;
}
.jm-dream-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafd;
  border: 1px solid #edf2fa;
  cursor: pointer;
  font-size: 0.84rem;
  text-align: left;
}
.jm-dream-tag {
  background: #e0f8f9;
  color: #097c80;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 999px;
  flex: none;
}
.jm-dream-search {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.jm-dream-search input { flex: 1; }

/* 천문각 우측 서랍 메뉴 (Drawer) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: flex-end;
}
.drawer-backdrop[hidden] { display: none; }
.drawer-panel {
  width: min(290px, 82vw);
  height: 100dvh;
  background: #fffdf9;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.22);
  animation: slideLeft .22s ease;
}
@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.drawer-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--gold-light);
  color: var(--gold-deep);
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.drawer-top b { display: block; font-size: 1.05rem; }
.drawer-coin-box {
  background: #1c1610;
  color: #f8dfa5;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.drawer-links {
  display: grid;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  align-content: start;
}
.drawer-links a, .drawer-sub-btn {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.drawer-links a:hover, .drawer-sub-btn:hover {
  background: var(--paper-soft);
}
.drawer-foot {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

/* 천문각: 스크롤 내릴 때 상단 로고 줄 숨김 & 하단바 컴팩트화 */
.app-header.scrolled .header-top {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .28s ease;
}
.header-top {
  max-height: 64px;
  transition: all .28s ease;
}

/* ================= 1클릭 복채 미션 잠금해제 게이트 & 오행 개운 스폰서 박스 ================= */
#rewardGateWrap {
  position: relative;
  margin-top: 8px;
}
.reward-blur-preview {
  max-height: 280px;
  overflow: hidden;
  filter: blur(5.5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.65;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.15) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.15) 100%);
}
.reward-gate-card {
  position: relative;
  margin-top: -150px;
  background: linear-gradient(165deg, #10192e 0%, #1c2848 100%);
  color: #f7f4ec;
  border: 1.5px solid rgba(246, 213, 142, 0.55);
  border-radius: 18px;
  padding: 22px 16px 18px;
  box-shadow: 0 16px 38px rgba(6, 10, 24, 0.45);
  text-align: center;
}
.reward-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(246, 213, 142, 0.18);
  border: 1px solid rgba(246, 213, 142, 0.5);
  color: #f6d58e;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.reward-gate-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.42;
  color: #fff8e7;
}
.reward-desc {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: #c8d2e4;
  line-height: 1.55;
}
.reward-desc b { color: #f6d58e; }
.reward-btn-stack {
  display: grid;
  gap: 9px;
  text-align: left;
}
.reward-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 13px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  border: 1px solid transparent;
}
.reward-btn:hover { transform: translateY(-2px); }
.reward-btn.primary {
  background: linear-gradient(135deg, #f7d78c 0%, #d49f38 100%);
  color: #161209;
  box-shadow: 0 6px 18px rgba(212, 159, 56, 0.35);
}
.reward-btn.primary small { color: #3a2d12; }
.reward-btn.gold-line {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(246, 213, 142, 0.45);
  color: #fff6e0;
}
.reward-btn.gold-line small { color: #bfcbe0; }
.reward-btn.soft {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e6ecf7;
}
.reward-btn.soft small { color: #aebbd0; }
.reward-btn .r-ico { font-size: 1.4rem; flex: none; }
.reward-btn div { flex: 1; min-width: 0; }
.reward-btn b { display: block; font-size: 0.86rem; margin-bottom: 2px; }
.reward-btn small { display: block; font-size: 0.74rem; line-height: 1.35; }
.reward-btn .r-arr { font-size: 0.78rem; font-weight: 700; flex: none; }
.reward-legal-note {
  display: block;
  margin-top: 11px;
  font-size: 0.68rem;
  color: #96a4bc;
  line-height: 1.4;
}

.lucky-sponsor-box {
  margin: 18px 0 14px;
  padding: 15px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdf8ec 0%, #f5ebd2 100%);
  border: 1.5px solid #d4af62;
  color: #1c2433;
}
.coupang-ftc-notice {
  padding: 8px 11px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #162944;
  color: #ffdf8e;
  font-size: 0.82rem;
  line-height: 1.45;
  border-left: 4px solid #f0b429;
}
.ls-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.ls-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8c6214;
}
.ls-top small { font-size: 0.68rem; color: #7b6d52; }
.lucky-sponsor-box b { display: block; font-size: 0.94rem; margin-bottom: 4px; }
.lucky-sponsor-box p { margin: 0 0 10px; font-size: 0.82rem; color: #3d485c; line-height: 1.5; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 8px; }




/* 오늘의 12별자리 순위 */
.star-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.star-row { display: grid; grid-template-columns: 42px 26px 1fr; gap: 6px; align-items: start; padding: 8px 10px; border-radius: 10px; background: #fafaf7; border: 1px solid #eee6d6; font-size: 0.86rem; line-height: 1.45; }
.star-row.top { background: #fff6e0; border-color: #f1d48a; }
.star-row.last { background: #f3f4f7; }
.star-no { font-weight: 800; color: #9a6b12; }
.star-ico { font-size: 1.15rem; }
.star-main small { color: #8a7f6c; }
.star-lucky { display: block; margin-top: 2px; }

/* 11-10: 버튼·이름표 글자가 한 글자씩 떨어지지 않게 (낱말 단위 줄바꿈) */
.btn, button, .report-toolbar .btn, .nav-item, .tag, .drawer-badge { word-break: keep-all; overflow-wrap: anywhere; }
.report-toolbar .btn { white-space: normal; line-height: 1.35; }
#currentProfileName { word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
/* 11-10 홈 점검: 머리 날짜 줄·PC 왼쪽 명인 이름이 잘리거나 한 글자만 떨어지지 않게 */
.brand-logo small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; display: block; }
.pc-master-circle span { white-space: normal; word-break: keep-all; overflow: visible; text-overflow: clip; line-height: 1.2; }
/* 11-10: 긴 세로 제목은 카드 안에서 두 줄(세로 두 열)로 접히게 */
.poster-vertical-title { max-height: 62%; }
.p-card-vtitle { max-height: calc(100% - 20px); line-height: 1.15; }

/* 11-11: 명인 칩은 한 줄 가로 밀기, 무료 운세 바로가기 줄 */
.master-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.master-tabs::-webkit-scrollbar { display: none; }
.free-quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.free-quick::-webkit-scrollbar { display: none; }
.free-quick button { flex: none; border: 1px solid #ead9b5; background: #fffaf0; color: #6b4a12; padding: 7px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.free-quick button:hover { border-color: var(--gold); background: #fff3d8; }
/* 11-14: «매일 무료» 머리줄 + 오늘 안 본 메뉴 표시 */
.free-quick-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 0 14px 6px; font-size: 0.78rem; color: #8a6a2c; }
.free-quick-head b { background: #1b7a48; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 0.74rem; }
.free-quick-head em { font-style: normal; margin-left: auto; color: #b0832e; font-weight: 700; }
.free-quick button { position: relative; }
.free-quick button.fresh::after { content: '오늘'; position: absolute; top: -7px; right: -2px; background: #e8452c; color: #fff; font-size: 0.6rem; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.free-quick { padding-top: 7px; }
/* 풀이 안 안내 줄(> 로 시작) — 베타 유료 표시·자녀 안내 등 */
.md-note { margin: 6px 0 10px; padding: 7px 11px; border-left: 3px solid #c6963e; background: #fbf5e8; border-radius: 6px; font-size: 0.84rem; color: #6b4a12; }

/* 이번 주 운세 7일 표 */
.week-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 320px; }
.week-table th, .week-table td { border-bottom: 1px solid #eee6d6; padding: 6px 4px; text-align: center; }
.week-table th { background: #faf5ea; font-weight: 700; color: #6b4a12; }
.week-table td:first-child { text-align: left; white-space: nowrap; }
.week-table .wk-good { color: #1b7a48; font-weight: 800; }
.week-table .wk-care { color: #b85d14; font-weight: 800; }
.week-table .wk-mid { color: #8a7f6c; }

/* 무료판 «유료 서비스에서 공개» 안내 */
.soon-card { border: 2px dashed var(--gold, #c9a14a); margin-top: 12px; }
.soon-card h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.4; }
.soon-card ul { margin: 0 0 10px; padding-left: 18px; line-height: 1.7; }
.soon-card p { margin: 0 0 8px; font-size: 0.92rem; line-height: 1.6; }
.soon-card .soon-list { list-style: none; padding-left: 0; }
.soon-card .soon-list li { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(201, 161, 74, 0.08); }
.soon-card .soon-list li b { display: block; margin-bottom: 4px; }
.soon-card .soon-teaser { margin: 0; opacity: 0.88; }
.soon-card .soon-more { display: inline-block; margin-left: 4px; font-size: 0.8rem; opacity: 0.75; white-space: nowrap; }

/* hidden 속성이 label.check 의 display 에 덮이지 않게 (양력인데 윤달 칸이 보이던 문제) */
[hidden] { display: none !important; }

/* 👍👎 맛보기 평가 */
.fb-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); }
.fb-q { margin: 0 0 8px; font-weight: 700; font-size: 0.95rem; }
.fb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-btns .on { outline: 2px solid var(--gold, #c9a14a); }
.fb-more { display: flex; gap: 6px; margin-top: 8px; }
.fb-more input { flex: 1 1 auto; min-width: 0; padding: 8px 10px; font-size: 0.95rem; }

/* 11-12 옆으로 미는 줄 화살표 · 사주 삭제 버튼 */
.hs-wrap { position: relative; }
.hs-arrow { position: absolute; top: calc(50% - 5px); transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e3d3ad; background: rgba(255,255,255,0.96); color: #6b4a12; font-size: 1.25rem; font-weight: 800; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.18); cursor: pointer; z-index: 3; padding: 0 0 2px; }
.hs-l { left: 4px; }
.hs-r { right: 4px; }
.profile-del { border: 1px solid #e6c9c0; background: #fff6f3; color: #a2412a; border-radius: 8px; padding: 4px 9px; font-size: 0.78rem; font-weight: 700; cursor: pointer; }

.m-tab-sub { font-size: 0.7em; font-weight: 500; opacity: 0.75; margin-left: 2px; }

/* 11-12: 한글이 음절 중간에서 끊기지 않게 (예: «직접 선/택») — 긴 영문·주소만 강제로 끊는다 */
body, h1, h2, h3, h4, p, li, small, b, span, label, .hint { word-break: keep-all; overflow-wrap: break-word; }

/* 11-12: 무료 바로가기 7개를 가로 스크롤 대신 두 줄로 모두 보이게 */
.free-quick { flex-wrap: wrap; overflow-x: visible; }

/* 11-12: PC 왼쪽 명인 이름(«애기동자 별이»)이 혼자 두 줄로 밀리지 않게 */
.pc-master-circle span { white-space: nowrap; letter-spacing: -0.03em; }

/* 11-13 화면 폭 점검: 360·390px 폰에서 상단 🎨·☰ 버튼이 화면 밖으로 밀리던 문제 */
.header-top { gap: 8px; }
.brand-logo { min-width: 0; flex: 1 1 auto; }
.brand-logo > :last-child { min-width: 0; overflow: hidden; }
.brand-logo small { max-width: none; }
.header-actions { flex: 0 0 auto; }
#currentProfileName { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 430px) {
  .header-top { padding-left: 12px; padding-right: 12px; }
  .header-actions { gap: 4px; }
  .profile-pill { max-width: 118px; padding: 6px 9px; }
  .icon-btn { width: 32px; height: 32px; }
  .brand-logo { gap: 7px; }
  .brand-logo b, .brand-logo .brand-title { font-size: 1rem; }
}
/* 11-13 MBTI 16유형 표: 폰에서 4번째 칸이 잘리던 문제 */
.mbti-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mbti-chip { min-width: 0; }
.mbti-chip b { white-space: nowrap; font-size: 0.84rem; }
.brand-logo b, .brand-logo .brand-title { white-space: nowrap; }
.mbti-chip small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; word-break: keep-all; }
@media (max-width: 380px) { .brand-logo b, .brand-logo .brand-title { font-size: 0.95rem; } .brand-logo small { font-size: 0.66rem; } }
/* 11-13: 위 고정 머리줄에 안내 박스 윗줄이 가려지지 않게 */
.seed-flash, .card, #orderForm, #reportResultArea, [data-role="paywall"] { scroll-margin-top: 130px; }
/* 11-13: 상품 카드 제목이 «…»로 잘리던 문제 → 두 줄까지 보여 준다 */
.p-card-info b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
/* 명인 탭에 카드가 하나뿐이면 반쪽 칸에 몰리지 않게 가운데에 넓게 */
.grid-2col > .p-card:only-child, .row-cards > .p-card:only-child { grid-column: 1 / -1; justify-self: center; max-width: 300px; }

/* 11-17 손금 보기 */
.free-quick button.new::after { content: 'NEW'; position: absolute; top: -7px; right: -2px; background: #1b7a48; color: #fff; font-size: 0.6rem; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.palm-intro { display: flex; gap: 12px; align-items: center; }
.palm-intro svg { flex: none; }
.palm-prog { height: 6px; background: #f1e6cf; border-radius: 99px; overflow: hidden; }
.palm-prog span { display: block; height: 100%; background: var(--gold, #b8892e); }
.palm-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.palm-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border: 1.5px solid #ead9b5; border-radius: 12px; background: #fffaf0; cursor: pointer; font-size: 0.82rem; font-weight: 700; color: #4a3410; line-height: 1.35; }
.palm-opt:hover, .palm-opt.on { border-color: #d64545; background: #fff3ef; }
.palm-sum { font-size: 1.02rem; font-weight: 800; color: #6b4a12; margin: 0 0 10px; }
.palm-sec { border: 1px solid #ead9b5; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.palm-sec small { color: #9a7b4a; }
.palm-sec p, .palm-saju p { margin: 4px 0 0; font-size: 0.88rem; line-height: 1.6; }
.palm-saju { border: 1.5px solid #b8892e; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff8e8; }
.palm-opt svg, .palm-opt img { max-width: 100%; height: auto; }

/* 11-21: 별자리 창 — 내 사주 × 서양 Big 3 */
.b3-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 12px; }
.b3-tabs button { padding: 9px 6px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 0.84rem; font-weight: 700; cursor: pointer; }
.b3-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.b3-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.b3-cell { display: grid; justify-items: center; gap: 1px; padding: 10px 6px; border-radius: 12px; background: var(--gold-light); border: 1px solid #efdcae; text-align: center; }
.b3-cell small { color: var(--gold-deep); font-weight: 700; font-size: 0.74rem; }
.b3-sym { font-size: 1.5rem; line-height: 1.2; }
.b3-cell b { font-family: 'Gowun Batang', serif; font-size: 0.98rem; }
.b3-cell em { font-style: normal; color: var(--muted); font-size: 0.72rem; }
.b3-merc { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #f1f4f9; font-size: 0.82rem; line-height: 1.5; }
.b3-merc.retro { background: #fdeceb; color: #7a2630; }
.b3-cross { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.b3-cross h4 { margin: 0 0 6px; font-size: 0.95rem; }
.b3-cross p { margin: 0 0 6px; font-size: 0.86rem; line-height: 1.6; }
.b3-empty { text-align: center; padding: 14px 6px; }
.b3-empty p { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.6; }

/* 11-21: 이어서 보면 좋은 풀이 · 결제 고지 · 명식 화첩 카드 */
.next-pick { display: grid; gap: 3px; margin: 14px 0; padding: 12px 14px; border: 1px solid #e6d3a6; border-radius: 12px; background: var(--gold-light); cursor: pointer; }
.next-pick-label { font-size: 0.76rem; font-weight: 700; color: var(--gold-deep); }
.next-pick b { font-family: 'Gowun Batang', serif; font-size: 1rem; }
.next-pick small { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.next-pick-go { justify-self: end; font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.pay-notice { margin: 0 0 10px; padding: 8px 10px 8px 26px; border-radius: 10px; background: #f6f3ea; font-size: 0.78rem; line-height: 1.6; color: #5a4a30; }
.share-card-img { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 10px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15); background: #eee; }

/* 11-22: 무료 바로가기 9개를 2줄(5+4) 타일로 — 아이콘 위·글자 아래 */
.free-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px 5px; overflow: visible; padding: 8px 10px 10px; }
.free-quick button { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-width: 0; padding: 7px 2px 6px; border-radius: 12px; font-size: 0.7rem; line-height: 1.2; letter-spacing: -0.03em; white-space: normal; word-break: keep-all; text-align: center; }
.free-quick button i { font-style: normal; font-size: 1.15rem; line-height: 1.1; }
.free-quick button span { display: block; }
.free-quick button.fresh::after, .free-quick button.new::after { top: -6px; right: -3px; }

/* 11-22: 홈 일운 배너 — 긴 문장이 «달력 보기» 버튼 위로 넘치지 않게(글자 상자가 줄어들 수 있게) */
.daily-banner-left { flex: 1 1 auto; }
.daily-banner-left > div { min-width: 0; flex: 1 1 auto; }
.daily-banner-left small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .daily-banner-btn { padding: 5px 8px; font-size: 0.7rem; } }
.daily-banner-left b { white-space: normal; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
/* 11-29: 화면 확대를 허용(접근성)한 뒤, 아이폰 사파리가 16px 미만 입력칸을 누를 때 화면을 저절로 확대하지 않도록 휴대폰에서는 입력 글자를 16px 로 */
@media (max-width: 768px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { font-size: 16px !important; }
}

/* 12-04 풀이 중간 «명인의 생활 한 수» 카드 · 맨 아래 후원 문구 */
.report-paper .master-tip { margin: 22px 0; line-height: 1.55; }
.master-tip .mt-say { margin: 2px 0 10px; font-size: 0.95rem; color: #2b2216; font-family: inherit; line-height: 1.6; }
.master-tip .mt-ftc { margin: 8px 0 0; font-size: 0.72rem; color: #7b6d52; line-height: 1.4; }
.lucky-sponsor-box .ls-support { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #fffaf0; border: 1px dashed #d4af62; font-size: 0.84rem; color: #4a3a1e; }

/* 12-05 재물운 풀이 끝 토스 «오늘의 재물관상» 안내 */
.toss-face-card{margin:18px 0 6px;padding:14px 16px;border:1px solid #e3cf9c;border-radius:14px;background:#fffaf0}
.toss-face-card .tf-say{margin:0 0 10px;font-size:.92rem;line-height:1.6;color:#4a3a20}
.toss-face-card a{display:block;text-align:center;text-decoration:none}
@media print{.toss-face-card{display:none}}
