: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 h1 { color: #0e2a23; }
body[data-theme="ivory"] .pc-intro h1 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: 390px;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 48px 36px 40px 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 h1 {
  font-size: 2.35rem;
  line-height: 1.28;
  margin: 0 0 14px;
  color: #fffaf0;
}
.pc-intro h1 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: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.pc-masters-preview img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c6963e;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  cursor: pointer;
  transition: transform .2s;
}
.pc-masters-preview img:hover { transform: translateY(-4px) scale(1.06); }
.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: hidden;
}

/* ================= 상단 고정 헤더 & 탭 ================= */
.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 {
  display: block;
  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;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 12px 9px;
  scrollbar-width: none;
}
.master-tabs::-webkit-scrollbar { display: none; }
.m-tab {
  flex: none;
  border: 0;
  background: transparent;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
}
.m-tab.active {
  background: 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(4, 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; }

/* ================= 고민별 가로 줄 (양반가 2.5장 노출 규칙) ================= */
.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);
}

.row-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 16px 8px;
  scrollbar-width: none;
}
.row-cards::-webkit-scrollbar { display: none; }

.p-card {
  flex: 0 0 calc(42% - 6px);
  min-width: 168px;
  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; gap: 14px; align-items: center; }
.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); } }

@media print {
  .pc-intro, .app-header, .bottom-nav, .floating-strip, .report-toolbar, .chat-box { display: none !important; }
  .stage, .app-shell { background: #fff; box-shadow: none; max-width: 100%; padding: 0; }
}

/* ================= 🔮 타로카드 & 🧠 현대 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;
}


