/* ==========================================================
   인연옥 (INYEONOK)
   체리 와인 · 크림 핑크 · 블러시 핑크 · 딥 와인
   겉은 로맨틱하게, 풀이는 직설적으로
   ========================================================== */

:root {
  color-scheme: light;

  /* 브랜드 컬러 */
  --cherry: #a3445b;         /* 메인: 체리 와인 */
  --cream: #fff4f2;          /* 배경: 크림 핑크 */
  --blush: #f1b9c5;          /* 포인트: 블러시 핑크 */
  --wine: #572c39;           /* 텍스트: 딥 와인 */

  --outer: #f9e6e6;
  --bg: var(--cream);
  --surface: #ffffff;
  --surface-2: #fff8f7;
  --surface-3: #fbe8ea;
  --line: #f6dfe2;
  --line-strong: #eccbd2;
  --text: var(--wine);
  --text-2: #6f4652;
  --muted: #9a7580;
  --pink: var(--blush);
  --rose: var(--cherry);     /* 본문 위 강조 글자 */
  --pink-soft: #fde8ec;
  --pink-line: #f1b9c5;
  /* 이전 라벤더 토큰은 블러시 계열로 통일 */
  --lavender: #e9a9b8;
  --lavender-deep: #a3445b;
  --lavender-soft: #fdeef1;
  --grad: linear-gradient(135deg, #a3445b 0%, #b9526b 60%, #c86a80 100%);
  --grad-soft: linear-gradient(160deg, #fff8f6 0%, #ffe9ec 55%, #fbdde3 100%);
  --error: #b3263f;

  /* 캐릭터 얼굴 위치 (이미지 교체 시 여기만 조정) */
  --face-x: 42%;
  --face-y: 40%;

  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', 'AppleMyungjo', serif;
  --gutter: 18px;
  --col: 480px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --tabbar-h: 68px;
  --shadow: 0 16px 36px -24px rgba(87, 44, 57, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; background: var(--outer); }

body {
  margin: 0;
  background: var(--outer);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
strong { font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--rose); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--lavender-deep); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }

/* ── 모바일 프레임 ─────────────────────────────────── */
.shell {
  position: relative;
  max-width: var(--col);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px -20px rgba(87, 44, 57, 0.2);
}

.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 var(--gutter);
  background: rgba(255, 244, 242, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.logo { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.logo-mark { width: 24px; height: 24px; fill: var(--rose); }
.logo-star { fill: var(--lavender); }
.logo-word { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.header-badge {
  font-size: 12px; font-weight: 600; color: var(--lavender-deep);
  background: var(--lavender-soft); border-radius: 999px; padding: 4px 11px;
}

.app { flex: 1; padding: 6px var(--gutter) 40px; }
.app:focus { outline: none; }

.site-footer {
  padding: 22px var(--gutter) calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom));
  text-align: center; font-size: 12px; line-height: 1.7; color: var(--muted);
  border-top: 1px solid var(--line);
}
.disclaimer { color: var(--text-2); margin-bottom: 4px; }
body[data-view="input"] .site-footer,
body[data-view="survey"] .site-footer,
body[data-view="loading"] .site-footer { padding-bottom: 28px; }

/* 하단 탭바 */
.tabbar {
  position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--col);
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 6px 10px env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; border-radius: 16px;
}
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.tabbar a.is-active { color: var(--rose); background: var(--pink-soft); font-weight: 700; }
.tabbar a.is-active svg { stroke: var(--rose); fill: rgba(232, 138, 168, 0.25); }
body[data-view="input"] .tabbar,
body[data-view="survey"] .tabbar,
body[data-view="loading"] .tabbar { display: none; }

/* ── 버튼 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px; border-radius: 18px;
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(163, 68, 91, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(163, 68, 91, 0.85); }
.btn-primary:disabled { background: var(--surface-3); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { display: flex; width: 100%; }
.btn-text { background: none; border: 0; padding: 10px; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--rose); }

.actions { display: flex; gap: 8px; margin-top: 28px; }
.actions .btn-ghost { flex: 0 0 96px; }
.actions .btn-primary { flex: 1; }
.actions--sticky {
  position: sticky; bottom: 0; z-index: 5;
  margin: 28px calc(var(--gutter) * -1) 0; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(255, 244, 242, 0));
}

/* ── 칩 ───────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips--center { justify-content: center; }
.chip-sm {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--lavender-deep); background: var(--lavender-soft);
}
.chip-sm.is-pink { background: var(--pink-soft); color: var(--rose); }

/* ── 별빛 ─────────────────────────────────────────── */
.stars { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stars i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.9), 0 0 14px 4px rgba(241, 185, 197, 0.6);
}
.stars i:nth-child(1) { top: 8%; left: 10%; }
.stars i:nth-child(2) { top: 16%; left: 86%; width: 3px; height: 3px; }
.stars i:nth-child(3) { top: 34%; left: 6%; width: 3px; height: 3px; }
.stars i:nth-child(4) { top: 6%; left: 62%; }
.stars i:nth-child(5) { top: 46%; left: 92%; width: 3px; height: 3px; }
.stars i:nth-child(6) { top: 58%; left: 12%; width: 2px; height: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .stars i { animation: twinkle 3.6s ease-in-out infinite; }
  .stars i:nth-child(2n) { animation-delay: 1.2s; }
  .stars i:nth-child(3n) { animation-delay: 2.1s; }
  @keyframes twinkle { 50% { opacity: .25; } }
}

/* ── 메인 히어로: 캐릭터를 크게 ───────────────────── */
.hero {
  position: relative; margin: 4px calc(var(--gutter) * -1) 0;
  background: linear-gradient(180deg, #fff7f5 0%, #ffe8ec 55%, #fbdce3 100%);
  border-radius: 0 0 36px 36px; overflow: hidden; isolation: isolate;
}
/* 아치형 액자 속 대표 초상 */
.hero-visual { position: relative; z-index: 3; width: min(76%, 330px); margin: 0 auto; padding-top: 30px; }
.hero-visual::before {
  content: ''; position: absolute; z-index: -1; left: -14%; right: -14%; top: 4%; bottom: -10%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(251, 221, 228, 0.6) 55%, transparent);
}
.hero-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 30px 30px;
  border: 5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 30px 50px -28px rgba(87, 44, 57, 0.6), 0 0 0 1px var(--pink-line);
  background: #4a4447;
}
.hero-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--face-x) var(--face-y);
}
.hero-frame::after { /* 은은한 핑크빛 필터 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 233, 236, 0.1), rgba(232, 138, 168, 0.12));
}
.hero-name {
  position: absolute; z-index: 4; left: 50%; bottom: -16px; transform: translateX(-50%);
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.hero-name strong { font-family: var(--serif); font-size: 16px; line-height: 1.2; color: var(--text); }
.hero-name span { font-size: 11px; color: var(--muted); }
.hero-content {
  position: relative; z-index: 3; margin-top: 30px; padding: 0 24px 30px; text-align: center;
}
.hero-title {
  margin: 12px 0 10px; font-family: var(--serif); font-size: clamp(30px, 8.4vw, 38px);
  font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; color: var(--text);
}
.hero-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: var(--text-2); font-size: 16px; margin-bottom: 22px; }
.hero-meta { margin-top: 10px; font-size: 12px; color: var(--muted); }
.hero .chips { justify-content: center; }

/* ── 캐릭터 · 말풍선 ─────────────────────────────── */
.avatar {
  flex: 0 0 auto; display: block; border-radius: 50%; overflow: hidden; position: relative;
  background: var(--grad-soft);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--pink-line);
}
.avatar img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  object-position: var(--face-x) var(--face-y);
  transform: scale(1.55); transform-origin: var(--face-x) var(--face-y);
}
.avatar--sm { width: 36px; height: 36px; }
.avatar--md { width: 48px; height: 48px; }
.avatar--lg { width: 64px; height: 64px; }

.say { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; }
.say-body { flex: 1; min-width: 0; }
.say-name { font-size: 13px; font-weight: 700; margin-bottom: 5px; display: flex; gap: 6px; align-items: baseline; }
.say-name span { font-size: 11px; font-weight: 500; color: var(--muted); }
.bubble {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  padding: 13px 16px; font-size: 15px; line-height: 1.65; color: var(--text-2); box-shadow: var(--shadow);
}
.bubble p + p { margin-top: 6px; }
.bubble strong { color: var(--rose); }
.say--plain .bubble { border-radius: var(--r-md); }
.say--intro { margin: 22px 0 8px; }

/* 결과 화면의 한마디 (캐릭터 없이 이름만) */
.note {
  margin-top: 14px; padding: 13px 15px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--pink-soft), var(--lavender-soft));
  font-size: 14px; color: var(--text); line-height: 1.65;
}
.note-label { display: block; font-size: 11px; font-weight: 700; color: var(--lavender-deep); margin-bottom: 3px; letter-spacing: .02em; }

/* ── 섹션 · 카드 ──────────────────────────────────── */
.sec { margin-top: 40px; }
.sec-title { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px 20px; box-shadow: var(--shadow);
}
.card-tag {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; color: var(--rose);
  background: var(--pink-soft); padding: 3px 9px; border-radius: 999px;
}
.card-kicker { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-tile {
  position: relative; overflow: hidden; min-height: 170px; border-radius: var(--r-md); padding: 16px;
  text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--line);
  transition: transform .15s; box-shadow: var(--shadow);
}
.menu-tile:active { transform: scale(0.98); }
.menu-tile.is-main { background: var(--grad); border-color: transparent; color: #fff; }
.menu-tile.is-soon { background: var(--surface); }
.menu-tile-top { margin-bottom: 12px; }
.menu-tile strong { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.menu-tile-desc { font-size: 12px; margin-top: 4px; line-height: 1.5; opacity: .88; }
.menu-tile.is-soon .menu-tile-desc { color: var(--muted); opacity: 1; }
.menu-tile.is-soon strong { color: var(--text-2); }
.menu-tile.is-main .chip-sm { background: rgba(255, 255, 255, 0.22); color: #fff; }
.menu-tile-icon { position: absolute; right: 14px; bottom: 14px; width: 70px; fill: none; stroke-width: 2.2; }
.menu-tile.is-main .menu-tile-icon { stroke: rgba(255, 255, 255, 0.55); }
.menu-tile.is-soon .menu-tile-icon { stroke: var(--line-strong); }

.lens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lens-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 16px; box-shadow: var(--shadow); }
.lens-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px;
  background: var(--lavender-soft); color: var(--lavender-deep); font-size: 20px; font-family: var(--serif); font-weight: 700;
}
.lens-card:nth-child(2) .lens-icon { background: var(--pink-soft); color: var(--rose); }
.lens-card h3 { font-size: 16px; font-weight: 800; line-height: 1.4; letter-spacing: -0.03em; margin-bottom: 6px; }
.lens-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.steps { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 18px; box-shadow: var(--shadow); }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.steps li + li { border-top: 1px solid var(--line); }
.steps-no { font-size: 13px; font-weight: 800; color: var(--lavender-deep); width: 22px; flex-shrink: 0; line-height: 24px; }
.steps strong { font-size: 15px; display: block; }
.steps p { font-size: 13px; color: var(--muted); }

.preview-card { padding-top: 24px; }
.preview-type { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--rose); letter-spacing: -0.03em; margin: 2px 0 4px; }
.preview-tagline { color: var(--text-2); font-weight: 600; margin-bottom: 12px; }
.fade {
  max-height: 128px; overflow: hidden; color: var(--text-2); font-size: 15px; margin-bottom: 18px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent);
}
.fade p + p { margin-top: 8px; }
.fade-sub { font-weight: 700; color: var(--text); }

/* ── 페이지 공통 ──────────────────────────────────── */
.topbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 48px; margin-bottom: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); cursor: pointer; color: var(--text);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-title { text-align: center; font-size: 15px; font-weight: 700; }
.topbar-step { text-align: right; font-size: 12px; color: var(--muted); font-weight: 600; }

.page-title { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: -0.03em; margin-top: 12px; }
.page-lead { color: var(--text-2); font-size: 15px; margin: 6px 0 20px; }
.page-lead strong { color: var(--rose); }

/* ── 입력 폼 ──────────────────────────────────────── */
.form { margin-top: 8px; }
.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.field-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; color: var(--text); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 7px; }
.field-error { font-size: 13px; color: var(--error); margin-top: 7px; font-weight: 600; }

.input {
  width: 100%; min-height: 54px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 16px; color: var(--text);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #c4a3ab; }
.input:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 3px var(--lavender-soft); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.input[aria-invalid="true"] { border-color: var(--error); }
select.input {
  padding-right: 30px; padding-left: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A3445B' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
input[type="time"].input { display: flex; align-items: center; }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 9px 0; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; }
.seg input:checked + span { background: var(--surface); color: var(--rose); box-shadow: 0 4px 12px -6px rgba(87, 44, 57, .4); }
.seg input:focus-visible + span { outline: 2px solid var(--lavender-deep); outline-offset: 2px; }

.date-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; }
.select-wrap { display: block; min-width: 0; }

.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 500; margin-top: 10px; min-height: 32px; }
.check input {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); border-radius: 7px; background: var(--surface); display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: var(--lavender-deep); border-color: var(--lavender-deep); }
.check input:checked::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

.time-row { display: flex; align-items: center; gap: 14px; }
.time-wrap { flex: 1; min-width: 0; }
.time-row .check { margin-top: 0; flex-shrink: 0; }

.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 360px) { .pick-grid { grid-template-columns: repeat(2, 1fr); } }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 4px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .2s; text-align: center;
}
.pick input:checked + span { border-color: var(--pink); color: var(--rose); background: var(--pink-soft); box-shadow: inset 0 0 0 1px var(--pink); }
.pick input:focus-visible + span { outline: 2px solid var(--lavender-deep); outline-offset: 2px; }

.privacy-note { font-size: 12px; color: var(--muted); padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); line-height: 1.65; }

/* ── 설문 ─────────────────────────────────────────── */
.progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; }
.progress-track { flex: 1; position: relative; height: 6px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--to); border-radius: 6px; background: var(--grad); }
@media (prefers-reduced-motion: no-preference) {
  .progress-fill { animation: grow .45s ease-out; }
  @keyframes grow { from { width: var(--from); } }
}
.progress-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-count strong { color: var(--rose); font-size: 15px; }

.question fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-head { margin: 22px 0 18px; }
.q-topic { font-size: 12px; font-weight: 700; color: var(--lavender-deep); letter-spacing: .02em; margin-bottom: 6px; }
.q-title { font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.45; color: var(--text); letter-spacing: -0.02em; }
.q-title:focus { outline: none; }
.answers { display: grid; gap: 8px; }
.answer {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-strong);
  cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.answer:hover { border-color: var(--lavender); }
.answer:active { transform: scale(0.99); }
.answer input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.answer-key {
  flex: 0 0 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 800;
}
.answer-text { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--text-2); }
.answer-check { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; }
.answer:has(input:checked) { background: var(--pink-soft); border-color: var(--pink); }
.answer input:checked ~ .answer-key { background: var(--grad); color: #fff; }
.answer input:checked ~ .answer-text { color: var(--text); }
.answer input:checked ~ .answer-check { background: var(--rose); border-color: var(--rose); }
.answer input:checked ~ .answer-check::after {
  content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.answer input:focus-visible ~ .answer-key { outline: 2px solid var(--lavender-deep); outline-offset: 2px; }
.question-help { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ── 로딩 · 준비 중 ───────────────────────────────── */
.page-loading, .page-soon { text-align: center; padding-top: 36px; }
.portrait { position: relative; width: 168px; height: 168px; margin: 0 auto 24px; }
.portrait-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--lavender), #fff 60%, var(--pink));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.portrait img {
  position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px);
  border-radius: 50%; object-fit: cover; object-position: var(--face-x) var(--face-y);
  background: var(--grad-soft);
}
@media (prefers-reduced-motion: no-preference) {
  .page-loading .portrait-ring { animation: spin 1.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
.page-loading h1, .page-soon h1 { font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; margin: 10px 0 22px; }
.loading-steps { display: inline-grid; gap: 10px; text-align: left; margin-bottom: 18px; }
.loading-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.loading-steps li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .loading-steps li { animation: stepOn .3s forwards; animation-delay: calc(var(--i) * 0.7s + 0.2s); }
  .loading-steps li:nth-child(1) { --i: 0; }
  .loading-steps li:nth-child(2) { --i: 1; }
  .loading-steps li:nth-child(3) { --i: 2; }
  @keyframes stepOn { to { color: var(--text); } }
  .loading-steps li::before { animation: dotOn .3s forwards; animation-delay: inherit; }
  @keyframes dotOn { to { background: var(--lavender-deep); border-color: var(--lavender-deep); } }
}
.page-loading .btn-text { display: block; margin: 0 auto; }
.page-soon .say { text-align: left; }

/* ── 결과: 캐릭터는 작게 ─────────────────────────── */
.result-head {
  position: relative; overflow: hidden; margin-top: 6px; padding: 26px 22px 24px;
  border-radius: var(--r-lg); background: var(--grad-soft); box-shadow: var(--shadow);
}
.result-guide { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.result-guide p { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.result-guide strong { display: block; font-size: 12px; color: var(--lavender-deep); }
.result-title { position: relative; z-index: 3; display: flex; flex-direction: column; margin: 0 0 8px; }
.result-title span { font-size: 16px; font-weight: 600; color: var(--text-2); }
.result-title em {
  font-family: var(--serif); font-style: normal; font-size: clamp(32px, 9.4vw, 40px); font-weight: 700; line-height: 1.25;
  letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-tagline { position: relative; z-index: 3; font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.result-head .chips { position: relative; z-index: 3; }
.result-head .chip-sm { background: rgba(255, 255, 255, 0.7); }
.result-profile { position: relative; z-index: 3; margin-top: 14px; font-size: 12px; color: var(--muted); }

.jump {
  position: sticky; top: 58px; z-index: 20; display: flex; gap: 6px;
  margin: 10px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter);
  background: rgba(255, 244, 242, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.jump a {
  flex: 1; text-align: center; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--text-2);
  padding: 8px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
}
.jump a:hover { color: var(--rose); border-color: var(--pink); }

.part { margin-top: 24px; }
.part-head { margin-bottom: 14px; }
.part-kicker { font-size: 12px; font-weight: 800; color: var(--lavender-deep); letter-spacing: .04em; }
.part-head h2 { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.part-note { margin-top: 4px; font-size: 14px; color: var(--muted); }

.block { margin-bottom: 10px; color: var(--text-2); font-size: 15px; }
.block > p + p { margin-top: 10px; }
.block-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 12px; letter-spacing: -0.03em; }
.block-title span { font-size: 11px; font-weight: 800; color: var(--rose); background: var(--pink-soft); padding: 3px 7px; border-radius: 8px; }
.type-name { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; margin-bottom: 8px; }
.value-key { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--rose); }

.scores { margin-top: 18px; padding: 16px; background: var(--surface-2); border-radius: var(--r-sm); }
.scores figcaption { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.scores li { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.score-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-primary .score-name { color: var(--rose); font-weight: 700; }
.score-dots { display: flex; gap: 4px; }
.score-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.score-dots i.on { background: var(--lavender); }
.is-primary .score-dots i.on { background: var(--pink); }
.score-num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 360px) { .score-dots { gap: 3px; } .score-dots i { width: 7px; height: 7px; } }

.tips { display: grid; gap: 8px; }
.tips li { background: var(--surface-2); border-radius: var(--r-sm); padding: 14px 16px; }
.tips strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.tips p { font-size: 14px; }
.tips li.tip-status { background: var(--lavender-soft); }
.tips li.tip-status strong { color: var(--lavender-deep); }

/* 사주 영역 — 설문 영역과 구분 (라벤더 바탕 + 점선) */
.part-saju {
  margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
  padding: 28px var(--gutter) 18px;
  background: linear-gradient(180deg, #fdeef1 0%, #fff7f6 100%);
  border-top: 1px dashed var(--lavender); border-bottom: 1px dashed var(--lavender);
}
.sample-badge {
  display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 10px;
  font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--rose);
  background: #fff; border: 1px dashed var(--pink); border-radius: 10px; padding: 7px 11px;
}
.page-report > .sample-badge { margin-top: 16px; }
.part-saju > div > .note:first-child { margin: 0 0 14px; }
.saju-grid { display: grid; gap: 10px; }
.pillars, .elements { padding: 16px; min-width: 0; }
.pillars figcaption, .elements figcaption { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pillars table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
.pillars th { font-size: 12px; font-weight: 500; color: var(--muted); padding-bottom: 6px; }
.pillars td { padding: 4px 3px; }
.pillars td > * { display: block; }
.hanja { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.5; background: var(--surface-2); border-radius: 12px; }
.reading { font-size: 11px; color: var(--muted); margin-top: 3px; }
.pillars-note { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.pillars-note strong { color: var(--rose); }
.el-wood { color: #4f8a5c; }
.el-fire { color: #c94b74; }
.el-earth { color: #a87a3c; }
.el-metal { color: #7d7890; }
.el-water { color: #4f6fb3; }
.elements li { display: grid; grid-template-columns: 24px 1fr 16px; align-items: center; gap: 10px; padding: 5px 0; }
.el-label { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.el-bar { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.el-bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--lavender), var(--pink)); }
.el-num { font-size: 13px; color: var(--muted); text-align: right; }
.readings { display: grid; gap: 10px; margin-top: 10px; }
.reading-item h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.03em; }
.reading-item p { font-size: 14px; color: var(--text-2); }
.loading-text { color: var(--muted); font-size: 14px; }

.toc-card { margin-bottom: 10px; }
.toc li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 15px; }
.toc li + li { border-top: 1px solid var(--line); }
.toc-no { font-size: 12px; font-weight: 800; color: var(--lavender-deep); flex-shrink: 0; width: 20px; }
.toc-title { flex: 1; min-width: 0; font-weight: 600; }
.toc-area { font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.lock-line { font-size: 13px; color: var(--muted); margin: -4px 0 14px; text-align: center; }

.end-actions { display: flex; gap: 8px; margin-top: 30px; }
.end-actions .btn { flex: 1; }

/* ── 상세 리포트 예시 ──────────────────────────────── */
.report-head { margin-top: 6px; padding: 24px 22px; border-radius: var(--r-lg); background: var(--grad-soft); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.report-head > * { position: relative; z-index: 3; }
.report-head > .stars { position: absolute; z-index: 0; }
.report-title { font-family: var(--serif); font-size: clamp(25px, 7.4vw, 30px); font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; margin: 12px 0 6px; }
.report-persona { font-size: 13px; color: var(--rose); font-weight: 600; }
.report-toc { margin: 18px 0 10px; }
.report-toc li a { display: flex; gap: 10px; padding: 8px 0; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text-2); }
.report-toc li a > span { color: var(--lavender-deep); font-size: 13px; font-weight: 800; width: 20px; }
.report-toc li a:hover { color: var(--rose); }
.chapter { margin-bottom: 10px; color: var(--text-2); font-size: 15px; }
.chapter > p + p { margin-top: 10px; }
.chapter-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-bottom: 6px !important; }
.chapter-meta span { font-weight: 800; color: var(--lavender-deep); letter-spacing: .06em; }
.chapter-meta em { font-style: normal; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; }
.chapter h2 { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.chapter-lead { color: var(--rose); font-weight: 600; font-size: 14px; margin: 2px 0 12px !important; }
.report-closing { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--pink-soft), var(--lavender-soft)); font-size: 14px; color: var(--text); }

.noscript { padding: 40px 0; text-align: center; }

/* 넓은 화면: 바깥은 은은한 그라데이션, 가운데 프레임 */
@media (min-width: 600px) {
  body { background: radial-gradient(70% 60% at 50% 0%, #ffe9ec, #fbe1e5 55%, var(--outer)) fixed; }
  .hero-visual { width: 320px; }
}

/* ==========================================================
   상세 리포트 예시 — 리포트 정보 · 목차 사이드바 · 장 번호
   ========================================================== */
.report-meta {
  position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.8);
}
.report-meta div { display: flex; flex-direction: column; gap: 2px; }
.report-meta dt { font-size: 11px; color: var(--muted); }
.report-meta dd { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.report-meta .avatar { width: 22px; height: 22px; box-shadow: 0 0 0 1.5px #fff; }
.report-side .sample-badge { margin-top: 16px; }
.report-toc a.is-active { color: var(--rose); }
.chapter-no { display: none; }

/* ==========================================================
   브랜드 리뉴얼 — 메인 · 카테고리 (모바일 우선)
   ========================================================== */
.logo-en { align-self: center; margin-left: 2px; font-size: 9.5px; font-weight: 800; letter-spacing: .2em; color: var(--cherry); }
.header-badge { letter-spacing: .1em; font-weight: 800; color: var(--cherry); background: var(--pink-soft); }
.sec-head { margin-bottom: 16px; }
.sec-head--page { margin: 18px 0 20px; }
.sec-kicker { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--cherry); margin-bottom: 4px; }
.sec-title { font-family: var(--sans); font-weight: 800; font-size: 23px; letter-spacing: -0.045em; margin-bottom: 0; }

/* 메인 히어로 */
.b-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 4px calc(var(--gutter) * -1) 0; padding: 0 24px 36px; text-align: center;
  border-radius: 0 0 40px 40px;
  background: radial-gradient(90% 55% at 50% 28%, #ffdfe6 0%, transparent 70%), linear-gradient(180deg, #fff7f5 0%, #ffe7eb 100%);
}
.b-hero-art { position: relative; height: 300px; margin: 0 -24px; }
.art-glow {
  position: absolute; left: 50%; top: 52%; width: 250px; height: 250px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, #fff 0%, rgba(255, 255, 255, 0.6) 55%, rgba(255, 255, 255, 0));
}
.art { position: absolute; filter: drop-shadow(0 16px 18px rgba(163, 68, 91, 0.16)); }
.art-heart { width: 190px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); }
.art-ribbon { width: 100px; left: 7%; top: 9%; transform: rotate(-14deg); }
.art-letter { width: 116px; left: 4%; bottom: 3%; transform: rotate(8deg); }
.art-cupid { width: 110px; right: 4%; top: 15%; transform: rotate(10deg); }
@media (prefers-reduced-motion: no-preference) {
  .art-heart { animation: floaty 6s ease-in-out infinite; }
  .art-cupid { animation: floaty 7s ease-in-out 1s infinite; }
  @keyframes floaty { 50% { translate: 0 -6px; } }
}
.b-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--cherry); }
.b-hero-title {
  margin: 10px 0 12px; font-family: var(--sans); font-size: clamp(34px, 10vw, 44px); font-weight: 900;
  line-height: 1.2; letter-spacing: -0.05em; color: var(--wine);
}
.b-hero-title em { font-style: normal; color: var(--cherry); background: linear-gradient(transparent 64%, rgba(241, 185, 197, 0.8) 0); padding: 0 2px; }
.b-hero-sub { color: var(--text-2); font-size: 16px; font-weight: 500; margin-bottom: 24px; }
.b-hero-actions { display: flex; gap: 8px; }
.b-hero-actions .btn-primary { flex: 1.4; }
.b-hero-actions .btn-ghost { flex: 1; }

/* 카테고리 카드 */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; min-height: 214px; padding: 12px 14px 16px;
  border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; transition: transform .15s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.cat-card:hover { transform: translateY(-2px); }
.cat-card:active { transform: scale(0.98); }
.cat-card.is-open { border-color: var(--blush); box-shadow: 0 18px 36px -22px rgba(163, 68, 91, 0.55); }
.cat-art { display: grid; place-items: center; height: 92px; margin: 0 -4px 8px; border-radius: 16px; background: radial-gradient(closest-side, #ffe4ea 0%, #fff5f4 70%, transparent); }
.cat-art img { width: 82px; height: 82px; }
.cat-no { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--cherry); }
.cat-title { margin-top: 2px; font-size: 16px; font-weight: 800; letter-spacing: -0.045em; color: var(--wine); }
.cat-desc { flex: 1; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.cat-status { display: inline-block; align-self: flex-start; margin-top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.cat-status.is-beta { background: var(--cherry); color: #fff; }
.cat-status.is-dev { background: var(--surface-3); color: var(--muted); }

/* 말투 비교 */
.tone-grid { display: grid; gap: 10px; }
.tone-card { margin: 0; padding: 18px 20px; border-radius: 20px; }
.tone-card figcaption { margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.tone-card blockquote { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
.tone-card.is-soft { background: #fff; border: 1px dashed var(--line-strong); color: var(--muted); }
.tone-card.is-soft blockquote { text-decoration: line-through; text-decoration-color: rgba(163, 68, 91, 0.55); text-decoration-thickness: 1.5px; }
.tone-card.is-real { background: var(--cherry); color: #fff; box-shadow: 0 18px 36px -20px rgba(163, 68, 91, 0.7); }
.tone-card.is-real figcaption { color: var(--blush); }
.tone .say--intro { margin-top: 18px; }

/* 진행 단계 + 구현 상태 */
.flow-status { display: grid; gap: 8px; }
.flow-status li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cat-block .flow-status li { background: var(--surface-2); }
.flow-no { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--cherry); font-size: 12px; font-weight: 800; }
.flow-label { flex: 1; font-size: 15px; font-weight: 700; }
.flow-chip { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.flow-status .is-done .flow-no, .flow-status .is-done .flow-chip { background: var(--cherry); color: #fff; }
.flow-status .is-sample .flow-chip { background: var(--pink-soft); color: var(--cherry); }
.flow-status .is-dev .flow-chip { background: var(--surface-3); color: var(--muted); }
.flow-status .is-dev .flow-label { color: var(--text-2); font-weight: 600; }
.flow-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* 시제품 안내 */
.dev-notice { background: linear-gradient(160deg, #fff 0%, #fff3f4 100%); }
.dev-notice h2 { margin: 2px 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.dev-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; font-size: 14px; color: var(--text-2); }
.dev-list li + li { border-top: 1px solid var(--line); }
.dev-list .cat-status { flex-shrink: 0; margin-top: 1px; }

/* 카테고리 상세 */
.chips--top { margin-top: 8px; }
.cat-hero { padding: 6px 0 4px; text-align: center; }
.cat-hero-art { display: block; width: 150px; height: 150px; margin: 0 auto 2px; filter: drop-shadow(0 18px 20px rgba(163, 68, 91, 0.18)); }
.cat-hero .cat-status { margin-top: 0; }
.cat-hero h1 { margin: 10px 0 4px; font-size: 30px; font-weight: 900; letter-spacing: -0.05em; }
.cat-hero-desc { font-size: 15px; color: var(--muted); }
.cat-hook {
  margin: 18px auto 0; max-width: 24em; padding: 14px 18px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow); color: var(--cherry); font-size: 16.5px; font-weight: 800; line-height: 1.55;
}
.cat-block { margin-top: 12px; }
.cat-block h2 { margin-bottom: 10px; font-size: 17px; font-weight: 800; letter-spacing: -0.035em; }
.cat-block .chip-sm { margin-bottom: 8px; }
.check-list li { position: relative; padding: 6px 0 6px 26px; font-size: 14.5px; color: var(--text-2); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23A3445B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.cat-block.is-paid { background: linear-gradient(160deg, #fff 0%, #fff0f2 100%); border-color: var(--blush); }
.price-line { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--pink-soft); color: var(--cherry); font-size: 12.5px; font-weight: 700; text-align: center; }
.cat-cta { display: grid; gap: 8px; margin-top: 20px; }

/* ==========================================================
   화면 구조 규칙 (디자인과 별개로 유지)
   - 하단 탭바: 허브 화면(홈 · 카테고리 목록)에서만 표시
   - 그 외 화면: 위 왼쪽 뒤로가기 + 바닥 고정 행동 버튼
   - 바닥 버튼: 보조(왼쪽) · 주요(오른쪽, 넓게)
   ========================================================== */
body:not([data-view="home"]):not([data-view="categories"]) .tabbar { display: none; }
body:not([data-view="home"]):not([data-view="categories"]) .site-footer { padding-bottom: 28px; }
.actions--single .btn { flex: 1; }
.actions--sticky .btn-ghost[disabled] { color: var(--muted); cursor: not-allowed; }
.btn-pair { display: flex; gap: 8px; }
.btn-pair .btn-ghost { flex: 0 0 auto; padding: 0 18px; }
.btn-pair .btn-primary { flex: 1; }
.end-actions--secondary .btn { min-height: 48px; font-size: 14px; font-weight: 600; }

/* 심화 분석 상품 */
.product-list fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.product { position: relative; display: block; margin-bottom: 10px; cursor: pointer; }
.product input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.product-body {
  display: block; padding: 20px; border-radius: var(--r-md); background: var(--surface);
  border: 1.5px solid var(--line-strong); box-shadow: var(--shadow); transition: border-color .2s;
}
.product input:checked + .product-body { border-color: var(--cherry); box-shadow: 0 0 0 3px var(--pink-soft), var(--shadow); }
.product input:focus-visible + .product-body { outline: 2px solid var(--cherry); outline-offset: 3px; }
.product-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product-top strong { font-size: 17px; font-weight: 800; letter-spacing: -0.035em; }
.product-price { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--cherry); }
.product-desc { display: block; margin: 6px 0 8px; font-size: 14px; color: var(--muted); }

/* 주문 확인 · 결제 */
.order-card { margin-top: 18px; }
.order-title { font-size: 18px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 10px; }
.order-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.order-rows dt { color: var(--muted); flex-shrink: 0; }
.order-rows dd { margin: 0; text-align: right; font-weight: 600; }
.dev-pay { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.dev-pay .cat-status { margin: 0 0 8px; }
.dev-pay p + p { margin-top: 6px; }
.dev-pay strong { color: var(--cherry); }

.actions .btn-ghost { flex: 0 0 auto; min-width: 88px; padding: 0 18px; white-space: nowrap; }

/* ── 만세력 입력 · 결과 ───────────────────────────── */
.calc-warn { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-sm); background: #fff6e8; border: 1px solid #f3d9a6; color: #7a4b12; font-size: 13.5px; }
.calc-warn p + p { margin-top: 6px; }
.hanja--empty { color: var(--line-strong); }
.figcap-sub { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.calc-detail { margin-top: 10px; padding: 16px 18px; font-size: 13px; }
.calc-detail summary { cursor: pointer; font-weight: 700; color: var(--cherry); }
.calc-detail dl { margin: 12px 0 0; }
.calc-detail dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.calc-detail dt { color: var(--muted); }
.calc-detail dd { margin: 0; color: var(--text); word-break: break-all; }
.reading-dev .cat-status { margin: 0 0 8px; }

/* ── 사주 풀이 (규칙 기반) ─────────────────────────── */
.pillars .tg-row td { font-size: 11px; color: var(--muted); padding: 2px 2px 4px; }
.interp { margin-top: 18px; }
.interp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.interp-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.035em; }
.draft-badge { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--cherry); background: #fff; border: 1px dashed var(--cherry); border-radius: 999px; padding: 3px 9px; }
.interp-note { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.interp-sec { margin-top: 10px; }
.interp-sec h4 { font-size: 13px; font-weight: 800; color: var(--cherry); letter-spacing: .02em; margin-bottom: 8px; }
.interp-item + .interp-item { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.interp-title { font-size: 16px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 4px; }
.interp-item p:not(.interp-title):not(.interp-basis) { font-size: 14.5px; color: var(--text-2); }
.interp-basis { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.interp-basis span { flex-shrink: 0; font-weight: 700; color: var(--cherry); background: var(--pink-soft); border-radius: 6px; padding: 1px 6px; }
.pick-grid--2 { grid-template-columns: 1fr 1fr; }
.interp-rule { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--pink-soft); font-size: 13.5px; font-weight: 700; color: var(--wine); display: flex; gap: 8px; align-items: baseline; }
.interp-rule span { flex-shrink: 0; font-size: 11px; color: var(--cherry); }
.cat-title { line-height: 1.35; }
/* 긴 질문형 제목: 마지막 단어만 따로 떨어지지 않게 줄 길이를 고르게 */
.cat-title, .cat-hero h1, .b-hero-title, .sec-title { text-wrap: balance; }
.cat-desc, .cat-hook { text-wrap: pretty; }

/* ── 분야 섹션 + 옆으로 넘기는 상품 포스터 ─────────── */
.shelf { margin-top: 26px; }
.shelf:first-of-type { margin-top: 4px; }
.shelf-kicker { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.shelf-title { margin-top: 2px; font-size: 19px; font-weight: 900; letter-spacing: -0.045em; line-height: 1.35; color: var(--wine); text-wrap: balance; }
.shelf-row {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  margin: 12px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shelf-row::-webkit-scrollbar { display: none; }
.poster {
  position: relative; flex: 0 0 62%; max-width: 270px; aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  border-radius: 22px; text-decoration: none; scroll-snap-align: start;
  box-shadow: 0 16px 30px -18px rgba(87, 44, 57, 0.55); transition: transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.poster:active { transform: scale(0.98); }
.poster::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(87, 44, 57, 0.82) 0%, rgba(87, 44, 57, 0.4) 34%, rgba(87, 44, 57, 0) 58%); }
.poster-art { position: absolute; z-index: 0; top: 11%; left: 50%; width: 64%; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 18px 18px rgba(87, 44, 57, 0.28)); }
.poster-status { position: absolute; z-index: 2; top: 12px; left: 12px; }
.poster-status .cat-status { margin: 0; }
.poster .cat-status.is-dev { background: rgba(255, 255, 255, 0.82); color: var(--wine); }
.poster-text { position: relative; z-index: 2; display: flex; flex-direction: column; color: #fff; }
.poster-title { font-size: 21px; font-weight: 900; letter-spacing: -0.05em; line-height: 1.25; text-wrap: balance; text-shadow: 0 1px 10px rgba(87, 44, 57, 0.35); }
.poster-desc { margin-top: 5px; font-size: 12.5px; line-height: 1.45; opacity: .92; text-wrap: pretty; }
.tint-face { background: radial-gradient(90% 60% at 50% 25%, #fff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(165deg, #ffd9e2 0%, #f4a6ba 55%, #c65a77 100%); }
.tint-solo { background: radial-gradient(90% 60% at 50% 25%, #fff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(165deg, #ffeae4 0%, #f5c0b6 55%, #cf7f80 100%); }
.tint-couple { background: radial-gradient(90% 60% at 50% 25%, #fff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(165deg, #ffe2ec 0%, #f0aac6 55%, #b05886 100%); }
.tint-some { background: radial-gradient(90% 60% at 50% 25%, #fff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(165deg, #ffdfe5 0%, #f59bb1 55%, #bf4869 100%); }
.tint-ex { background: radial-gradient(90% 60% at 50% 25%, #fff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(165deg, #f3e0e6 0%, #cd9fb0 55%, #865068 100%); }
.tint-husband { background: radial-gradient(90% 60% at 50% 25%, #fff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(165deg, #fff1df 0%, #f1c8aa 55%, #b47f5a 100%); }

/* ==========================================================
   다크 글로우 테마 (참고: 검은 바탕 + 번지는 그라데이션 패널)
   화면 구조 · 버튼 위치는 그대로, 색 · 질감 · 글씨만 바꾼다.
   ========================================================== */
:root {
  color-scheme: dark;
  --outer: #050506;
  --bg: #0b0a0c;
  --surface: #151317;
  --surface-2: #1c1a1f;
  --surface-3: #2a272d;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f0f2;
  --text-2: #c9c2c7;
  --muted: #8d858b;
  --wine: #f4f0f2;
  --cherry: #f39ac0;          /* 강조 글자: 다크 위에서 읽히는 핑크 */
  --rose: #f39ac0;
  --pink: #f39ac0;
  --pink-soft: rgba(243, 154, 192, 0.12);
  --pink-line: rgba(243, 154, 192, 0.35);
  --lavender: #c8a6e6;
  --lavender-deep: #f39ac0;
  --lavender-soft: rgba(200, 166, 230, 0.12);
  --lime: #e4ee78;            /* 작은 포인트(진행 표시 · 눈금) */
  --grad: linear-gradient(135deg, #f6f1f3 0%, #e9e1e6 100%);
  --grad-soft: radial-gradient(70% 80% at 85% 0%, rgba(214, 90, 160, 0.35), transparent 70%), #171419;
  --error: #ff8fa8;
  --shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.9);
  --r-lg: 32px;
  --r-md: 26px;
  --r-sm: 16px;

  /* 번지는 빛 패널 */
  --glow-magenta: radial-gradient(42% 40% at 50% 44%, #1c0918 0%, #6d0f43 26%, #d2297e 46%, rgba(222, 142, 200, 0.65) 66%, rgba(214, 178, 214, 0) 86%), linear-gradient(180deg, #dcb9da 0%, #c99dc9 100%);
  --glow-rose: radial-gradient(90% 80% at 0% 100%, #f2b1ad 0%, rgba(242, 177, 173, 0) 62%), radial-gradient(80% 90% at 100% 0%, #9c3b5c 0%, rgba(156, 59, 92, 0) 70%), #cc7d8d;
  --glow-lavender: radial-gradient(55% 50% at 60% 40%, rgba(255, 120, 190, 0.9) 0%, rgba(255, 120, 190, 0) 70%), radial-gradient(90% 90% at 0% 100%, #6b4fb0 0%, rgba(107, 79, 176, 0) 70%), #b38ad0;
  --glow-pink: radial-gradient(48% 44% at 50% 46%, #ff4f9a 0%, rgba(255, 79, 154, 0.55) 40%, rgba(255, 79, 154, 0) 72%), linear-gradient(160deg, #f1bfd6 0%, #d993bf 100%);
  --glow-sage: radial-gradient(46% 42% at 50% 48%, #0c0b12 0%, #1d2028 34%, rgba(29, 32, 40, 0) 72%), linear-gradient(180deg, #b2c7b4 0%, #8ea795 100%);
  --glow-coral: radial-gradient(45% 45% at 80% 70%, #3f5bff 0%, rgba(63, 91, 255, 0) 70%), linear-gradient(140deg, #e8865a 0%, #c75b3c 100%);
  --glow-blue: radial-gradient(70% 70% at 30% 100%, #5873ff 0%, rgba(88, 115, 255, 0) 70%), linear-gradient(160deg, #2f3c9e 0%, #1f2770 100%);
}

html, body { background: var(--outer); }
body { color: var(--text); letter-spacing: -0.015em; }
.shell { background: var(--bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04); }
@media (min-width: 600px) { body { background: radial-gradient(60% 50% at 50% 0%, #1d1219 0%, var(--outer) 70%) fixed; } }

/* 헤더 · 탭바 */
.site-header { background: rgba(11, 10, 12, 0.72); border-bottom: 0; }
.logo-mark { fill: #f6d3e3; }
.logo-star { fill: var(--lime); }
.logo-word { font-family: var(--sans); font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.logo-en { color: var(--muted); }
.header-badge { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }
.tabbar {
  left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 28px); max-width: calc(var(--col) - 28px);
  height: 64px; padding: 6px; border-radius: 999px;
  background: rgba(28, 26, 31, 0.82); border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.tabbar a { border-radius: 999px; color: var(--muted); }
.tabbar a.is-active { background: #f4f0f2; color: #111; font-weight: 600; }
.tabbar a.is-active svg { stroke: #111; fill: none; }
.site-footer { border-top-color: var(--line); color: var(--muted); }
.disclaimer { color: var(--text-2); }

/* 버튼: 알약 + 동그란 아이콘 */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: -0.02em; }
.btn-primary {
  position: relative; background: #f4f0f2; color: #121013; box-shadow: none; padding: 0 58px 0 26px;
}
.btn-primary::after {
  content: '→'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #121013; color: #fff; font-size: 16px; font-weight: 500;
}
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.btn-primary:disabled { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.btn-primary:disabled::after { background: rgba(255, 255, 255, 0.08); color: var(--muted); content: '–'; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: rgba(255, 255, 255, 0.1); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-text { color: var(--muted); }
.icon-btn { border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 0; color: var(--text); }
.actions--sticky { background: linear-gradient(to top, var(--bg) 68%, rgba(11, 10, 12, 0)); }

/* 칩 · 상태 */
.chip-sm { background: rgba(255, 255, 255, 0.08); color: var(--text-2); font-weight: 500; }
.chip-sm.is-pink { background: rgba(243, 154, 192, 0.16); color: var(--lime); }
.cat-status.is-beta { background: #f4f0f2; color: #111; }
.cat-status.is-dev { background: rgba(255, 255, 255, 0.1); color: var(--text-2); }
.sample-badge { background: rgba(255, 255, 255, 0.04); border-color: rgba(243, 154, 192, 0.5); color: var(--lime); }

/* 타이포 굵기 낮추기 */
.b-hero-title, .sec-title, .shelf-title, .page-title, .type-name, .result-title em, .cat-hero h1,
.preview-type, .dev-notice h2, .report-title, .part-head h2, .interp-head h3, .chapter h2, .q-title, .poster-title {
  font-family: var(--sans); font-weight: 600; letter-spacing: -0.045em; color: var(--text);
}
.sec-kicker, .part-kicker, .b-eyebrow, .shelf-kicker { color: var(--muted); font-weight: 500; letter-spacing: .12em; }
.shelf-kicker { letter-spacing: .02em; }

/* 공통 카드 */
.card, .lens-card, .steps, .tone-card.is-soft, .flow-status li, .prod-row, .pillars, .elements {
  background: var(--surface); border-color: var(--line); box-shadow: var(--shadow);
}
.card { border-radius: var(--r-md); }
.card-tag { background: rgba(255, 255, 255, 0.1); color: var(--text-2); }
.bubble { background: var(--surface-2); border-color: var(--line); color: var(--text-2); box-shadow: none; }
.bubble strong { color: var(--lime); }
.avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(243, 154, 192, 0.6); }
.note { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.note-label { color: var(--lime); }
.fade { color: var(--text-2); }

/* 메인 히어로: 마젠타 빛 패널 */
.b-hero { background: transparent; margin: 4px 0 0; padding: 0 0 30px; border-radius: 0; }
.b-hero-art { height: 320px; margin: 0; border-radius: var(--r-lg); background: var(--glow-magenta); overflow: hidden; }
.art-glow { display: none; }
.b-hero-art .art { filter: drop-shadow(0 20px 22px rgba(20, 0, 15, 0.45)); }
.b-hero-copy { padding: 22px 6px 0; }
.b-eyebrow { color: var(--muted); }
.b-hero-title { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.18; margin: 8px 0 12px; }
.b-hero-title em { color: var(--lime); background: none; font-weight: 600; }
.b-hero-sub { color: var(--text-2); font-weight: 400; }
.hero-meta { color: var(--muted); }

/* 분야 섹션 포스터: 상품마다 다른 빛 */
.shelf-title { font-size: 20px; }
.poster { border-radius: 28px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9); }
.poster::after { background: linear-gradient(to top, rgba(8, 6, 9, 0.78) 0%, rgba(8, 6, 9, 0.3) 34%, rgba(8, 6, 9, 0) 56%); }
.poster-title { font-size: 20px; text-shadow: none; }
.poster .cat-status.is-dev { background: rgba(0, 0, 0, 0.32); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tint-face { background: var(--glow-magenta); }
.tint-solo { background: var(--glow-rose); }
.tint-couple { background: var(--glow-lavender); }
.tint-some { background: var(--glow-pink); }
.tint-ex { background: var(--glow-sage); }
.tint-husband { background: var(--glow-coral); }

/* 말투 비교 · 진행 단계 · 시제품 안내 */
.tone-card.is-soft { color: var(--muted); border: 1px dashed rgba(255, 255, 255, 0.14); }
.tone-card.is-real { background: var(--glow-rose); color: #fff; box-shadow: var(--shadow); }
.tone-card.is-real figcaption { color: rgba(255, 255, 255, 0.8); }
.flow-no { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }
.flow-status .is-done .flow-no { background: var(--lime); color: #111; }
.flow-status .is-done .flow-chip { background: #f4f0f2; color: #111; }
.flow-status .is-sample .flow-chip { background: rgba(243, 154, 192, 0.16); color: var(--lime); }
.flow-status .is-dev .flow-chip { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.cat-block .flow-status li { background: var(--surface-2); }
.dev-notice { background: var(--surface); }
.dev-list li + li { border-top-color: var(--line); }

/* 상품 상세 */
.cat-hero { margin-top: 6px; padding: 26px 18px 22px; border-radius: var(--r-lg); color: #fff; }
.cat-hero h1 { color: #fff; }
.cat-hero .cat-status.is-dev { background: rgba(0, 0, 0, 0.3); color: #fff; }
.cat-hook { background: rgba(0, 0, 0, 0.28); color: #fff; box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 500; }
.cat-block.is-paid { background: var(--surface); border-color: rgba(243, 154, 192, 0.3); }
.check-list li { color: var(--text-2); }
.check-list li::before { background: rgba(228, 238, 120, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23E4EE78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.price-line { background: rgba(255, 255, 255, 0.06); color: var(--text-2); }

/* 입력 */
.input { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: var(--text); border-radius: 18px; }
.input::placeholder { color: #6e676d; }
.input:focus { border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }
.input:disabled { background: rgba(255, 255, 255, 0.03); color: var(--muted); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23F4F0F2' stroke-width='1.6'/%3E%3C/svg%3E"); }
select.input option { background: #1c1a1f; color: var(--text); }
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); }
.seg { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); border-radius: 999px; }
.seg span { border-radius: 999px; color: var(--muted); }
.seg input:checked + span { background: #f4f0f2; color: #111; box-shadow: none; }
.pick span { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: var(--text-2); border-radius: 18px; }
.pick input:checked + span { background: #f4f0f2; color: #111; border-color: #f4f0f2; box-shadow: none; }
.check input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.check input:checked { background: #f4f0f2; border-color: #f4f0f2; }
.check input:checked::after { border-color: #111; }
.privacy-note { background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.field-label { color: var(--text); font-weight: 500; }
.field-error { color: var(--error); }
.page-lead strong { color: var(--lime); }

/* 설문 */
.progress-track { background: rgba(255, 255, 255, 0.08); height: 4px; }
.progress-fill { background: linear-gradient(90deg, #d2297e, #f39ac0); overflow: visible; }
.progress-count strong { color: var(--lime); }
.q-topic { color: var(--muted); }
.answer { background: var(--surface); border-color: rgba(255, 255, 255, 0.08); border-radius: 22px; }
.answer:hover { border-color: rgba(255, 255, 255, 0.2); }
.answer-key { background: rgba(255, 255, 255, 0.06); color: var(--muted); border-radius: 50%; }
.answer:has(input:checked) { background: var(--glow-pink); border-color: transparent; }
.answer input:checked ~ .answer-key { background: #121013; color: #fff; }
.answer input:checked ~ .answer-text { color: #fff; font-weight: 600; }
.answer input:checked ~ .answer-check { background: #121013; border-color: #121013; }

/* 로딩 */
.portrait-ring { background: conic-gradient(from 0deg, var(--lime), #f39ac0, #d2297e 60%, var(--lime)); }
.loading-steps li { color: var(--muted); }

/* 결과 */
.result-head { background: var(--glow-rose); color: #fff; }
.result-head .chip-sm { background: rgba(0, 0, 0, 0.22); color: #fff; }
.result-guide p, .result-guide strong { color: rgba(255, 255, 255, 0.9); }
.result-title span { color: rgba(255, 255, 255, 0.85); font-weight: 400; }
.result-title em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; font-size: clamp(32px, 9.4vw, 40px); }
.result-tagline { color: #fff; font-weight: 500; }
.result-profile { color: rgba(255, 255, 255, 0.75); }
.jump { background: rgba(11, 10, 12, 0.82); }
.jump a { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.08); color: var(--text-2); }
.block-title span { background: rgba(228, 238, 120, 0.14); color: var(--lime); }
.value-key { color: var(--lime); font-family: var(--sans); font-weight: 600; }
.scores { background: var(--surface-2); }
.score-dots i { background: rgba(255, 255, 255, 0.1); }
.score-dots i.on { background: #c8a6e6; }
.is-primary .score-dots i.on { background: #f39ac0; }
.is-primary .score-name { color: var(--lime); }
.tips li { background: var(--surface-2); }
.tips li.tip-status { background: rgba(200, 166, 230, 0.1); }
.tips li.tip-status strong { color: #d9c1f0; }
.part-saju { background: radial-gradient(80% 40% at 100% 0%, rgba(210, 41, 126, 0.18), transparent 70%), #0f0d10; border-top-color: rgba(243, 154, 192, 0.25); border-bottom-color: rgba(243, 154, 192, 0.25); }
.hanja { background: rgba(255, 255, 255, 0.05); }
.el-wood { color: #a6e3a4; } .el-fire { color: #ff86b0; } .el-earth { color: #f2c681; } .el-metal { color: #e6e3ee; } .el-water { color: #8fbaff; }
.el-bar { background: rgba(255, 255, 255, 0.08); }
.el-bar span { background: linear-gradient(90deg, #c8a6e6, #f39ac0); }
.pillars-note strong { color: var(--lime); }
.calc-warn { background: rgba(228, 238, 120, 0.08); border-color: rgba(228, 238, 120, 0.3); color: #eef3b8; }
.calc-detail summary { color: var(--lime); }
.calc-detail dl div { border-top-color: var(--line); }
.calc-detail dd { color: var(--text-2); }
.draft-badge { background: transparent; border-color: rgba(243, 154, 192, 0.6); color: var(--lime); }
.interp-sec h4 { color: var(--lime); font-weight: 500; }
.interp-item + .interp-item { border-top-color: var(--line); }
.interp-basis span { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }
.interp-rule { background: rgba(243, 154, 192, 0.1); color: #f8dbe7; }
.interp-rule span { color: #f39ac0; }
.toc li + li { border-top-color: var(--line); }
.toc-no { color: var(--lime); }
.toc-area { background: rgba(255, 255, 255, 0.06); }

/* 심화 · 결제 · 보고서 */
.product-body { background: var(--surface); border-color: rgba(255, 255, 255, 0.1); }
.product input:checked + .product-body { border-color: #f39ac0; box-shadow: 0 0 0 3px rgba(243, 154, 192, 0.15), var(--shadow); }
.product-price { color: var(--lime); }
.order-rows div { border-top-color: var(--line); }
.dev-pay strong { color: var(--lime); }
.report-head { background: var(--glow-lavender); color: #fff; }
.report-head .chip-sm { background: rgba(0, 0, 0, 0.22); color: #fff; }
.report-title { color: #fff; }
.report-persona { color: rgba(255, 255, 255, 0.85); }
.report-meta { border-top-color: rgba(255, 255, 255, 0.3); }
.report-meta dt { color: rgba(255, 255, 255, 0.7); }
.report-meta dd { color: #fff; }
.report-toc li a { color: var(--text-2); }
.report-toc li a > span, .chapter-meta > span { color: var(--lime); }
.report-toc a.is-active { color: var(--lime); }
.chapter-lead { color: var(--lime); }
.chapter-meta em { background: rgba(255, 255, 255, 0.06); }
.report-closing { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.stars i { background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6); opacity: .5; }
.b-hero-actions .btn-ghost { flex: 0 0 auto; padding: 0 20px; white-space: nowrap; }
.b-hero-actions .btn-primary { flex: 1; }
.answer:has(input:checked) { background: radial-gradient(60% 120% at 20% 50%, #ff5aa5 0%, rgba(255, 90, 165, 0) 70%), linear-gradient(135deg, #c41f74 0%, #7d1a55 100%); }
.answer input:checked ~ .answer-key, .answer input:checked ~ .answer-check { background: #fff; color: #7d1a55; border-color: #fff; }
.answer input:checked ~ .answer-check::after { border-color: #7d1a55; }

/* ==========================================================
   스토리형 분석 — 한 화면 한 장면
   ========================================================== */
body[data-view="story"] .site-footer { padding-top: 14px; }
.story { display: flex; flex-direction: column; min-height: calc(100vh - 58px); padding-top: 10px; }
.story-top { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; }
.story-dots { display: flex; justify-content: center; gap: 6px; }
.story-dots li { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); transition: width .3s, background-color .3s; }
.story-dots li.done { background: rgba(255, 255, 255, 0.45); }
.story-dots li.now { width: 18px; background: var(--lime); }
.story-chip { border: 0; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.08); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.story-chip[aria-pressed="true"] { background: #f4f0f2; color: #111; }
.story-chip:disabled { opacity: .5; }

.scene { flex: 1; display: flex; flex-direction: column; animation: sceneIn .45s ease both; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 캐릭터 무대 */
.char-stage {
  position: relative; display: grid; place-items: center; height: 260px; margin: 12px 0 4px;
  border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(46% 46% at 50% 56%, rgba(210, 41, 126, 0.55) 0%, rgba(210, 41, 126, 0.12) 55%, rgba(210, 41, 126, 0) 72%), radial-gradient(80% 60% at 50% 100%, rgba(200, 166, 230, 0.25), transparent 70%), #121014;
}
.story--profile .char-stage, .story--taste .char-stage, .story--taste2 .char-stage, .story--menu .char-stage, .story--pay .char-stage { height: 170px; }
.char-float { animation: charFloat 4.6s ease-in-out infinite; }
.char-breath { transform-origin: 50% 100%; animation: charBreath 3.4s ease-in-out infinite; transition: transform .45s ease; }
.char-media { display: block; height: 220px; width: auto; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.55)); }
.story--profile .char-media, .story--taste .char-media, .story--taste2 .char-media, .story--menu .char-media, .story--pay .char-media { height: 150px; }
.story--intro .char-stage .char-media { animation: charEnter .7s cubic-bezier(.2, .8, .2, 1) both; }
.char-stage[data-char-state="discover"] .char-breath { transform: rotate(-4deg); }
.char-stage[data-char-state="explain"] .char-breath { transform: rotate(2deg); }
.char-tag { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 600; color: var(--text-2); background: rgba(0, 0, 0, 0.45); border: 1px dashed rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 3px 9px; }
@keyframes charFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes charBreath { 0%, 100% { scale: 1 1; } 50% { scale: 1.006 1.016; } }
@keyframes charEnter { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: none; } }

/* 대사 */
.dlg { position: relative; margin-top: 12px; padding: 14px 16px 16px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.dlg-name { font-size: 12px; font-weight: 600; color: var(--lime); margin-bottom: 4px; }
.dlg-name span { color: var(--muted); font-weight: 400; }
.dlg-text { min-height: 1.6em; font-size: 17px; line-height: 1.6; color: var(--text); white-space: pre-line; }
.dlg.is-typing .dlg-text::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--text-2); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.scene-body { margin-top: 12px; animation: sceneIn .5s .15s ease both; }

/* 분석 단계 */
.analysis-steps { display: grid; gap: 8px; }
.analysis-steps li { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; align-items: center; padding: 13px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: color .3s, border-color .3s; }
.step-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.25); }
.analysis-steps li.is-active { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.analysis-steps li.is-active .step-dot { border-color: var(--lime); border-top-color: transparent; animation: spin .8s linear infinite; }
.analysis-steps li.is-done { color: var(--text); }
.analysis-steps li.is-done .step-dot { background: var(--lime); border-color: var(--lime); }
.step-detail { grid-column: 2; font-size: 12.5px; color: var(--text-2); letter-spacing: .02em; }
.step-detail:empty { display: none; }
.scene-error { padding: 12px 14px; border-radius: 14px; background: rgba(255, 143, 168, 0.1); color: var(--error); font-size: 14px; }

/* 프로필 */
.profile-card, .taste-card, .pay-card, .reviews { padding: 20px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.profile-name { font-size: 13px; color: var(--muted); }
.profile-pillar { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 12px; }
.profile-hanja { font-family: var(--serif); font-size: 44px; line-height: 1.1; color: var(--text); letter-spacing: .04em; }
.profile-pillar-ko { font-size: 14px; color: var(--text-2); }
.profile-terms div { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.profile-terms dt { min-width: 40px; white-space: nowrap; color: var(--lime); font-weight: 600; }
.profile-terms dd { margin: 0; color: var(--text-2); }
.profile-persona { margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--glow-rose); color: #fff; }
.persona-label { font-size: 11px; font-weight: 600; opacity: .85; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.persona-label span { font-weight: 400; opacity: .8; }
.persona-nick { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; margin: 4px 0 6px; text-wrap: balance; }
.persona-core { font-size: 15px; line-height: 1.55; }
.profile-persona .interp-basis span { background: rgba(0, 0, 0, 0.22); color: #fff; }
.profile-persona .interp-basis { color: rgba(255, 255, 255, 0.85); }
.replay-link { display: block; margin: 10px auto 0; }

/* 맛보기 */
.taste-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.taste-kicker .cat-status { margin: 0; }
.taste-title { margin: 10px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.taste-body { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.taste-locked { margin-top: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, 0.04); filter: blur(.4px); }
.story-toc > li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 13px 4px; border-top: 1px solid var(--line); }
.story-toc > li:first-child { border-top: 0; }
.story-toc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.story-toc-title .cat-status { margin: 0; }
.story-toc-desc { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* 후기 · 결제 안내 */
.reviews { margin-bottom: 10px; }
.reviews h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.review-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.review.is-dev { opacity: .7; }
.dev-label { display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--lime); border: 1px dashed rgba(228, 238, 120, 0.5); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.pay-label { font-size: 12px; color: var(--muted); }
.pay-product { font-size: 19px; font-weight: 600; letter-spacing: -0.04em; margin: 2px 0 10px; }
.pay-rows div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pay-rows dt { color: var(--muted); }
.pay-rows dd { margin: 0; color: var(--text); }
.pay-toc { padding-left: 16px; list-style: decimal; color: var(--text-2); }
.pay-dev { margin-top: 12px; font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.pay-dev .cat-status { margin: 0; align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  .scene, .scene-body, .char-float, .char-breath, .story--intro .char-stage .char-media, .analysis-steps li.is-active .step-dot { animation: none !important; transition: none !important; }
  .dlg.is-typing .dlg-text::after { display: none; }
}
/* 스토리 설문 · 지금의 연애 습관 */
.story .question { margin: 0; }
.q-count { padding: 0; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.story--q1 .dlg-text, .story .dlg-text { white-space: pre-line; }
[class*="story--q"] .char-stage { height: 150px; }
[class*="story--q"] .char-media { height: 130px; }
.story--now .char-stage { height: 170px; }
.story--now .char-media { height: 150px; }
.taste-tagline { margin: -2px 0 8px; font-size: 15px; font-weight: 500; color: var(--lime); }
.taste-body + .taste-body { margin-top: 8px; }
.status-tip { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(200, 166, 230, 0.12); }
.status-tip-title { font-size: 12px; font-weight: 600; color: #d9c1f0; margin-bottom: 2px; }
.status-tip p:not(.status-tip-title) { font-size: 14px; color: var(--text-2); }
/* 전체 보고서 (개발 모드 미리보기) */
.fr-dev { margin: 6px 0 14px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fr-head { padding: 22px 20px; border-radius: var(--r-lg); background: var(--glow-lavender); color: #fff; }
.fr-no { font-size: 11px; letter-spacing: .14em; opacity: .8; }
.fr-title { margin: 4px 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.045em; color: #fff; }
.fr-desc { font-size: 14px; opacity: .9; }
.fr-blocks { display: grid; gap: 10px; margin-top: 12px; }
.fr-card, .fr-note { padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.fr-card .interp-title { color: var(--text); }
.fr-sub { margin-top: 10px; display: grid; gap: 2px; font-size: 14px; }
.fr-sub span { font-size: 11px; font-weight: 600; color: var(--lime); }
.fr-note-label { font-size: 12px; font-weight: 600; color: var(--lime); margin-bottom: 4px; }
.fr-scores { padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); }
.fr-scores li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--muted); }
.fr-scores li.is-primary { color: var(--lime); font-weight: 600; }
.fr-pillars { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 6px 4px; text-align: center; padding: 10px; border-radius: var(--r-md); background: var(--surface); }
.fr-pillars th { font-size: 12px; font-weight: 500; color: var(--muted); }
.fr-pillars td.tg { font-size: 11px; color: var(--muted); }
.fr-pillars td.hj { font-family: var(--serif); font-size: 26px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; color: var(--text); }
.fr-elements { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); font-size: 16px; }
.fr-elements em { font-style: normal; font-size: 12px; color: var(--muted); }
.fr-kv { padding: 8px 18px; border-radius: var(--r-md); background: var(--surface); }
.fr-kv div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.fr-kv div:first-child { border-top: 0; }
.fr-kv dt { color: var(--muted); }
.fr-kv dd { margin: 0; color: var(--text-2); word-break: break-all; }
.fr-disclaimer { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.dev-preview-link { display: block; margin: 12px auto 0; color: var(--lime); }
/* 궁합 스토리 */
.pair-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.pair-person { min-width: 0; padding: 14px 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.pair-name { font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.pair-person .profile-hanja { display: block; margin: 4px 0 2px; font-size: 34px; }
.pair-sub { font-size: 11.5px; color: var(--muted); }
.pair-amp { font-family: var(--serif); font-size: 22px; color: var(--lime); }
.story--match .profile-persona { margin-top: 16px; }
.interp-list { margin-top: 8px; }
.interp-draft { margin-top: 14px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toc-preview { margin: 6px 0 0; padding-left: 16px; list-style: disc; font-size: 13px; color: var(--text-2); }
.toc-preview li { margin: 2px 0; }
.fr-pair th[scope="row"] { font-size: 12px; font-weight: 600; color: var(--text-2); text-align: left; overflow-wrap: anywhere; }
.fr-pair td.hj { font-size: 22px; }
/* 대운 표 */
.fr-daeun { padding: 16px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.fr-daeun-head { font-size: 14px; color: var(--text-2); }
.fr-daeun-head strong { color: var(--text); }
.fr-daeun-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 12px 0 6px; padding: 0; list-style: none; }
.fr-daeun-list li { display: grid; gap: 2px; justify-items: center; padding: 8px 2px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.fr-daeun-list li.is-now { background: rgba(214, 255, 102, 0.14); outline: 1px solid var(--lime); }
.fr-daeun-list .age { font-size: 11px; color: var(--muted); }
.fr-daeun-list .hj { font-family: var(--serif); font-size: 19px; color: var(--text); }
.fr-daeun-list .yr { font-size: 10.5px; color: var(--muted); }
.fr-daeun-legend, .fr-daeun-warn { font-size: 11.5px; color: var(--muted); }
.fr-daeun-warn { margin-top: 6px; color: var(--lime); }
.fr-daeun-seun { margin: 10px 0 8px; font-size: 13.5px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.fr-daeun-seun span { font-size: 11px; font-weight: 600; color: var(--lime); }
/* 연애운 흐름 */
.solo-now { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; }
.solo-now > div { padding: 14px 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.solo-now-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.solo-now .profile-hanja { display: block; margin: 4px 0 2px; font-size: 34px; }
.fr-years { padding: 6px 14px; border-radius: var(--r-md); background: var(--surface); list-style: none; }
.fr-years li { display: grid; grid-template-columns: 42px 40px 38px 1fr; gap: 8px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fr-years li:first-child { border-top: 0; }
.fr-years .y { color: var(--text-2); font-weight: 600; }
.fr-years .hj { font-family: var(--serif); font-size: 16px; color: var(--text); }
.fr-years .lv { font-size: 11px; font-weight: 600; }
.fr-years .sg { font-size: 12px; overflow-wrap: anywhere; }
.fr-years li.lv-active .lv { color: var(--lime); }
.fr-years li.lv-active .sg { color: var(--text-2); }
.fr-years li.lv-some .lv { color: var(--lime); }
/* ── 한 화면 한 질문 (상품 02) ── */
.story--ask .char-stage { height: 190px; }
.ask-count { pointer-events: none; }
.ask-body { display: grid; gap: 10px; margin-top: 4px; }
.ask-input { font-size: 18px; }
.ask-list { display: grid; gap: 8px; }
.ask-list .pick span { justify-content: flex-start; padding-left: 18px; }
.ask-region { margin-top: 6px; }
.ask-privacy { margin-top: 10px; text-align: center; }

/* ── 02 분석 화면 ── */
.solo-load-title { margin: 6px 0 4px; text-align: center; font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: -0.04em; color: var(--text); }
.solo-load-title em, .solo-hero-title em { font-style: normal; color: var(--lime); }
.story--solo-analyze .char-stage { height: 200px; }
.solo-load-card { margin-top: 10px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.solo-load-label { text-align: center; font-size: 12px; color: var(--muted); }
.sj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 14px; }
.sj-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-family: var(--serif); font-size: 26px; color: transparent; transition: background .3s, color .3s, transform .3s; }
.sj-cell.is-on { color: #fff; transform: scale(1.02); }
.sj-cell.is-empty::after { content: '–'; color: var(--muted); }
.solo-progress { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.solo-progress strong { color: var(--lime); font-size: 15px; }
.solo-bar { height: 4px; margin: 6px 0 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.solo-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--lime)); transition: width .35s; }
.solo-step { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 13px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .sj-cell, .solo-bar i { transition: none; } }

/* 오행 색 (전통 오행 색 체계) */
.el-wood { background: #2f7d57 !important; color: #fff !important; }
.el-fire { background: #c8414f !important; color: #fff !important; }
.el-earth { background: #b8893a !important; color: #fff !important; }
.el-metal { background: #c9c9cf !important; color: #1b1b1f !important; }
.el-water { background: #2c4f8f !important; color: #fff !important; }

/* ── 02 결과 스크롤 페이지 ── */
.story--solo-result { padding-bottom: 40px; }
.solo-hero { padding: 22px 4px 8px; text-align: center; }
.solo-hero-title { font-size: 25px; font-weight: 600; line-height: 1.45; letter-spacing: -0.045em; color: var(--text); }
.solo-hero-sub { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.sj-card { margin-top: 12px; padding: 16px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.sj-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sj-badge { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-family: var(--serif); font-size: 22px; }
.sj-name { font-size: 15px; font-weight: 600; color: var(--text); }
.sj-sub { font-size: 12px; color: var(--lime); }
.sj-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.sj-col { display: grid; gap: 4px; justify-items: stretch; }
.sj-pos { font-size: 11.5px; color: var(--muted); }
.sj-tg { font-size: 10.5px; color: var(--muted); }
.sj-col.is-me .sj-pos { color: var(--lime); font-weight: 600; }
.sj-big { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; font-family: var(--serif); font-size: 26px; background: rgba(255, 255, 255, 0.05); color: var(--text); }
.sj-col.is-empty .sj-big { color: var(--muted); }
.solo-sec { margin-top: 14px; padding: 20px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.solo-sec.is-focus { border-color: rgba(var(--accent-rgb), 0.7); }
.solo-ch-no { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .12em; color: var(--lime); }
.focus-chip { letter-spacing: 0; padding: 2px 8px; border-radius: 999px; background: rgba(214, 255, 102, 0.15); color: var(--lime); font-weight: 600; }
.solo-ch-title { margin: 6px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.solo-ch-lead { font-size: 14.5px; line-height: 1.7; color: var(--text-2); }
.solo-ch-lead strong { color: var(--text); }
.solo-locked { position: relative; display: grid; gap: 9px; margin-top: 12px; padding: 16px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.solo-locked i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); filter: blur(3px); }
.lock-chip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: rgba(11, 10, 12, 0.85); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text); }
.solo-years { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; list-style: none; padding: 0; }
.solo-years li { display: grid; gap: 2px; justify-items: center; padding: 8px 2px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 11px; color: var(--muted); }
.solo-years .y { font-size: 12px; font-weight: 600; color: var(--text-2); }
.solo-years li.is-open { outline: 1px solid var(--lime); background: rgba(214, 255, 102, 0.1); }
.solo-years li.is-open .v { color: var(--lime); font-weight: 600; }
.solo-bubble { display: flex; align-items: flex-end; gap: 8px; margin: 18px 4px 0; }
.solo-bubble.is-right { flex-direction: row-reverse; }
.solo-bubble img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.06); flex-shrink: 0; }
.solo-bubble p { max-width: 75%; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: #f4f0f2; color: #141215; font-size: 13.5px; line-height: 1.5; }
.solo-bubble.is-right p { border-radius: 18px 18px 4px 18px; }
.story--solo-result .pay-rows { margin-top: 4px; }
/* ── 공통 흐름: 질문 진행 막대 · 블라인드 결과 ── */
.story--ask .story-top { grid-template-columns: auto 1fr auto; }
.ask-progress { height: 4px; margin: 0 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; align-self: center; }
.ask-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--lime)); transition: width .3s; }
.ask-kicker { margin: 4px 2px -2px; font-size: 12px; color: var(--lime); }
.solo-ch-desc { margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.blind-title { font-size: 16px; font-weight: 600; color: var(--text); }
.blind-text { margin-top: 4px; font-size: 14.5px; line-height: 1.7; color: var(--text-2); -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0.35)); mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0.35)); }
.blind-text::after { content: ' …'; }
.rp-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rp-page { display: grid; gap: 6px; align-content: start; aspect-ratio: 3 / 4; padding: 10px 8px; border-radius: 10px; background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.03)); border: 1px solid var(--line); overflow: hidden; }
.rp-no { font-size: 10px; letter-spacing: .1em; color: var(--lime); }
.rp-title { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text); word-break: keep-all; }
.rp-page i { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); filter: blur(2px); }
.rp-page i:nth-of-type(2) { width: 80%; } .rp-page i:nth-of-type(3) { width: 60%; }
.btn-sub { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 500; opacity: .65; }
.actions--single .btn:has(.btn-sub) { flex-direction: column; line-height: 1.2; }
.cat-toc { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--text-2); }
.cat-toc li > span { display: inline-block; width: 28px; font-size: 12px; font-weight: 600; color: var(--lime); }

/* ═══ 네온 라임 테마 (검정 바탕 + 형광 라임 · 라임 테두리 패널) ═══
 * 참고 콘셉트: 무채색 바탕 위에 라임 한 가지 색만 강하게. 핑크 · 보라 번짐은 쓰지 않는다.
 * 오행 색(el-*)은 의미 표시용이라 그대로 둔다.
 */
:root {
  --outer: #050505;
  --bg: #0d0d0d;
  --surface: #151515;
  --surface-2: #1b1b1b;
  --surface-3: #262626;
  --line: rgba(var(--accent-rgb), 0.16);
  --line-strong: rgba(var(--accent-rgb), 0.32);
  --text: #f3f3ee;
  --text-2: #c8c8c0;
  --muted: #8b8b84;
  --lime: var(--lamp-main);
  --lime-ink: #0d0d0d;
  --cherry: var(--lime);
  --rose: var(--lime);
  --pink: var(--lime);
  --pink-soft: rgba(var(--accent-rgb), 0.1);
  --pink-line: rgba(var(--accent-rgb), 0.4);
  --lavender: var(--lime);
  --lavender-deep: var(--lime);
  --lavender-soft: rgba(var(--accent-rgb), 0.1);
  --grad: var(--lime);
  --grad-soft: radial-gradient(70% 80% at 85% 0%, rgba(var(--accent-rgb), 0.18), transparent 70%), #141414;
  --error: #ff8a7a;
  --glow-magenta: radial-gradient(55% 50% at 50% 42%, rgba(var(--accent-rgb), 0.55) 0%, rgba(var(--accent-rgb), 0.12) 45%, rgba(var(--accent-rgb), 0) 72%), linear-gradient(180deg, #1c1c1c 0%, #0f0f0f 100%);
  --glow-rose: radial-gradient(70% 60% at 0% 100%, rgba(var(--accent-rgb), 0.45) 0%, rgba(var(--accent-rgb), 0) 65%), linear-gradient(160deg, #1d1d1d 0%, #101010 100%);
  --glow-lavender: radial-gradient(60% 55% at 70% 30%, rgba(var(--accent-rgb), 0.5) 0%, rgba(var(--accent-rgb), 0) 68%), linear-gradient(200deg, #1d1d1d 0%, #0f0f0f 100%);
  --glow-pink: radial-gradient(50% 45% at 50% 50%, rgba(var(--accent-rgb), 0.6) 0%, rgba(var(--accent-rgb), 0) 70%), #141414;
  --glow-sage: radial-gradient(60% 55% at 30% 30%, rgba(var(--accent-rgb), 0.35) 0%, rgba(var(--accent-rgb), 0) 70%), linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%);
  --glow-coral: radial-gradient(55% 50% at 80% 75%, rgba(var(--accent-rgb), 0.45) 0%, rgba(var(--accent-rgb), 0) 70%), linear-gradient(140deg, #1c1c1c 0%, #101010 100%);
  --glow-blue: radial-gradient(60% 60% at 30% 100%, rgba(var(--accent-rgb), 0.4) 0%, rgba(var(--accent-rgb), 0) 70%), #121212;
}
body { background: var(--bg); }

/* 버튼: 라임 바탕 · 검정 글자 */
.btn-primary, .btn-primary:hover { background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 1px var(--lime), 0 10px 28px -12px rgba(var(--accent-rgb), 0.55); }
.btn-primary .btn-icon, .btn-primary svg { color: var(--lime-ink); }
.btn-primary:disabled { background: var(--surface-3); color: var(--muted); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }

/* 선택지: 고르면 라임 */
.pick input:checked + span, .seg input:checked + span { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); box-shadow: none; }

/* 패널: 얇은 라임 테두리 */
.card, .solo-sec, .sj-card, .solo-load-card, .profile-card, .pay-card, .fr-card, .fr-note, .fr-daeun, .dlg, .char-stage, .poster, .cat-hero { border: 1px solid var(--line-strong); }
.solo-sec.is-focus { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; }
.char-stage { background: radial-gradient(60% 60% at 50% 55%, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0) 70%), #111; }

/* 제목 · 강조 */
.b-hero-title em, .solo-hero-title em, .solo-load-title em { color: var(--lime); font-style: normal; }
.sec-kicker, .b-eyebrow, .solo-ch-no, .shelf-kicker, .fr-no, .rp-no { color: var(--lime); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.solo-hero-title, .solo-ch-title, .b-hero-title, .cat-hero h1, .fr-title { letter-spacing: -0.05em; }
.fr-head, .result-head { background: var(--glow-lavender); border: 1px solid var(--lime); color: var(--text); }
.fr-title, .fr-desc, .fr-no { color: var(--text); }

/* 말풍선 · 잠금 · 진행 */
.solo-bubble p { background: var(--lime); color: var(--lime-ink); font-weight: 500; }
.lock-chip { border-color: var(--lime); color: var(--lime); }
.solo-locked i, .rp-page i { background: rgba(var(--accent-rgb), 0.2); }
.rp-page { background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.02)); }
.solo-bar i, .ask-progress i { background: var(--lime); }
.focus-chip { background: var(--lime); color: var(--lime-ink); }
.cat-status.is-beta { background: var(--lime); color: var(--lime-ink); }
.cat-toc li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 6px; }
.cat-toc .n { grid-row: span 2; font-size: 12px; font-weight: 700; color: var(--lime); }
.cat-toc .t { font-weight: 600; color: var(--text); word-break: keep-all; }
.cat-toc .d { font-size: 12.5px; color: var(--muted); }
.cat-toc li > span { width: auto; }
/* 그림은 무채색으로 — 색은 라임 한 가지만 */
.art, .b-hero-art .art, .poster img, .cat-hero-art, .poster-art { filter: grayscale(1) contrast(1.15) brightness(1.08); }

/* ── 해설 캐릭터 4명 (js/data/character.js · docs/CHARACTERS.md) ──
   그림은 각자 고유색(--char)을 쓰고 흑백 필터를 받지 않는다. 임시 자리 표시일 때만 안내 표시. */
.char-media { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
.char-stage { background: radial-gradient(60% 60% at 50% 55%, color-mix(in srgb, var(--char, var(--lime)) 26%, transparent), transparent 70%), #111; }
.char-tag { display: none; }
.is-placeholder .char-tag { display: inline-block; }
.shelf-host { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 18px; background: #121212; }
.host-face { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid var(--char); background: #1a1a1a; }
.host-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.shelf-host p { min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.shelf-host strong { color: var(--text); font-size: 13.5px; margin-right: 6px; }
.shelf-host q { display: block; margin-top: 2px; color: var(--text); font-size: 13px; quotes: '“' '”'; text-wrap: pretty; }
.cat-hero-char { position: relative; width: min(220px, 62%); margin: 0 auto 10px; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; border: 2px solid var(--char); background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--char) 30%, transparent), transparent 75%), #111; }
.cat-hero-char img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: none; }
.cat-hero-char figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 11.5px; color: var(--text-2); background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent); }
.cat-hero-char figcaption strong { color: #fff; font-size: 13px; margin-right: 4px; }
.cat-hero-char.is-placeholder::after { content: '캐릭터 이미지 준비 중'; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; color: var(--text-2); background: rgba(0, 0, 0, .55); border: 1px dashed rgba(255, 255, 255, .25); border-radius: 999px; padding: 2px 8px; }
.bubble-face { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #1a1a1a; }
.bubble-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.avatar img { object-fit: cover; object-position: 50% 8%; }
.dlg-name span { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--muted); }

/* ═══ 인연옥 (因緣屋) — 밤에만 문을 여는 한옥 상담소 ═══════════════════
 * 먹색 · 짙은 나무색 · 따뜻한 등불 · 절제된 옥빛 청록 · 붉은 인장.
 * 이전 네온 라임 토큰(--lime 등)은 이름만 남기고 등불 색으로 바꿔 쓴다. 오행 색(el-*)은 그대로.
 * 방 · 문 · 문 열림: js/rooms.js · docs/ROOMS.md
 */
:root {
  --outer: #070605;
  --bg: #0f0c0a;
  --surface: #17130f;
  --surface-2: #1d1813;
  --surface-3: #2a221b;
  --accent-rgb: 232, 180, 92;
  --lamp-main: #e8b45c;
  --lime: var(--lamp-main);
  --lime-ink: #1a120a;
  --line: rgba(232, 180, 92, 0.13);
  --line-strong: rgba(232, 180, 92, 0.28);
  --text: #f1e9dc;
  --text-2: #cfc3b1;
  --muted: #998c7a;
  --jade: #74b9a8;
  --seal: #b3362c;
  --wood: #3d2716;
  --wood-dark: #24170d;
  --paper: #ecdcbc;
  --font-room: 'Gowun Batang', 'Pretendard', serif;
}
@media (min-width: 600px) { body { background: radial-gradient(60% 50% at 50% 0%, #1e1710 0%, var(--outer) 70%) fixed; } }
.site-header { background: rgba(15, 12, 10, 0.78); }
.logo-mark { fill: var(--lamp-main); }
.logo-word { font-family: var(--font-room); font-weight: 700; }
.sec-kicker, .b-eyebrow, .solo-ch-no, .fr-no, .rp-no { color: var(--jade); }
.cat-status.is-beta { background: var(--seal); color: #f7e9d7; }
.cat-status.is-dev { background: rgba(255, 255, 255, 0.06); color: var(--text-2); }
.btn-primary, .btn-primary:hover { box-shadow: 0 0 0 1px var(--lime), 0 12px 30px -14px rgba(232, 180, 92, 0.7); }
.dlg { background: rgba(23, 19, 15, 0.92); }
.lantern { width: 100%; height: 100%; fill: none; stroke: var(--lamp-main); stroke-width: 1.6; stroke-linejoin: round; }
.avatar--lamp { display: inline-grid; place-items: center; padding: 6px; background: radial-gradient(circle, rgba(232, 180, 92, 0.25), transparent 70%), var(--surface-2); }
body[data-view="room"] .site-footer { position: relative; z-index: 1; background: rgba(12, 9, 7, 0.9); }

/* ── 바깥: 인연옥 외관 (그림 assets/rooms/exterior.webp 가 있으면 덮음) ── */
.ext-hero { position: relative; text-align: center; padding-bottom: 8px; }
.ext-scene { position: relative; height: 290px; margin-top: 6px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(70% 55% at 50% 0%, rgba(116, 185, 168, 0.16), transparent 70%), linear-gradient(180deg, #0a0f10 0%, #110d0a 100%); }
.ext-scene::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 92%, rgba(232, 180, 92, 0.32), transparent 70%), linear-gradient(180deg, transparent 60%, rgba(15, 12, 10, 0.9)); pointer-events: none; }
.ext-img { position: absolute; inset: 0; z-index: 3; background: url(../assets/rooms/exterior.webp) center / cover no-repeat; }
.ext-moon { position: absolute; top: 30px; right: 20%; width: 44px; height: 44px; border-radius: 50%; background: #efe6cf; box-shadow: 0 0 40px 6px rgba(239, 230, 207, 0.25); }
.ext-house { position: absolute; left: 0; bottom: 0; width: 100%; height: 220px; }
.ext-house .roof { fill: #070504; }
.ext-house .wall { fill: #1a110b; }
.ext-house .beam { fill: #2c1c10; }
.ext-house .win rect { fill: #e7b25e; }
.ext-house .lat path { stroke: #2c1c10; stroke-width: 3; fill: none; }
.ext-lantern { position: absolute; top: 112px; width: 13px; height: 19px; border-radius: 42%; background: #f2a65a; box-shadow: 0 0 22px 8px rgba(242, 166, 90, 0.45); }
.ext-lantern.l { left: 11%; }
.ext-lantern.r { right: 11%; }
.ext-copy { position: relative; z-index: 4; margin-top: -36px; padding: 0 6px; }
.ext-hero .b-hero-title { font-family: var(--font-room); font-size: 52px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.15; color: var(--paper); text-shadow: 0 4px 30px rgba(232, 180, 92, 0.35); }
.ext-hero .b-hero-sub { margin-top: 10px; }
.ext-hero .b-hero-actions { justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .ext-lantern { animation: lanternFlicker 3.6s ease-in-out infinite; }
  .ext-lantern.r { animation-delay: 1.3s; }
}
@keyframes lanternFlicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.82; } 55% { opacity: 0.95; } }

/* ── 문 (목록 · 연출 공용): 고정 문틀 + 왼쪽 · 오른쪽 문짝 + 문틈 빛 ── */
.door { position: relative; display: block; aspect-ratio: 3 / 4; --fw: 5px; --paper-l: linear-gradient(180deg, #eadbbd, #d6bf95); }
.door-opening { position: absolute; inset: var(--fw); overflow: hidden; background: #0c0806; }
.door-leaf { position: absolute; top: 0; bottom: 0; width: 50%; border: max(2px, calc(var(--fw) * 0.45)) solid var(--wood); background-image: var(--img-l), var(--lat1), var(--lat2), var(--paper-l); background-size: 100% 100%, var(--lat1-size), var(--lat2-size), 100% 100%; background-repeat: no-repeat, repeat, repeat, no-repeat; will-change: transform; }
.door-leaf--l { left: 0; }
.door-leaf--r { right: 0; background-image: var(--img-r), var(--lat1), var(--lat2), var(--paper-l); }
.leaf-glow { position: absolute; inset: 0; opacity: 0.45; pointer-events: none; }
.door-leaf--l .leaf-glow { background: radial-gradient(120% 70% at 100% 50%, color-mix(in srgb, var(--lamp) 75%, #fff) 0%, transparent 70%); }
.door-leaf--r .leaf-glow { background: radial-gradient(120% 70% at 0% 50%, color-mix(in srgb, var(--lamp) 75%, #fff) 0%, transparent 70%); }
.door-seam { position: absolute; top: 4%; bottom: 4%; left: 50%; width: 2px; margin-left: -1px; background: color-mix(in srgb, var(--lamp) 50%, #fff); box-shadow: 0 0 10px 3px color-mix(in srgb, var(--lamp) 70%, transparent); opacity: 0.5; }
.door-frame { position: absolute; inset: 0; border: var(--fw) solid var(--wood); background: var(--img-frame) center / 100% 100% no-repeat; background-origin: border-box; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 calc(var(--fw) * 0.6) calc(var(--fw) * 1.2) rgba(0, 0, 0, 0.45), 0 12px 30px rgba(0, 0, 0, 0.5); pointer-events: none; }
/* 문살: 띠살(연애방) · 정자살(궁합방) · 빗살(재회방) · 용자살(혼인방) */
.door--ttisal { --lat1: linear-gradient(90deg, var(--wood) 2px, transparent 2px); --lat1-size: 20% 100%; --lat2: linear-gradient(180deg, transparent 16%, var(--wood) 16% 17.5%, transparent 17.5% 20%, var(--wood) 20% 21.5%, transparent 21.5% 78.5%, var(--wood) 78.5% 80%, transparent 80% 82.5%, var(--wood) 82.5% 84%, transparent 84%); --lat2-size: 100% 100%; }
.door--jeongja { --lat1: linear-gradient(90deg, var(--wood) 2px, transparent 2px); --lat1-size: 33.4% 100%; --lat2: linear-gradient(180deg, var(--wood) 2px, transparent 2px); --lat2-size: 100% 16.7%; }
.door--bitsal { --lat1: repeating-linear-gradient(45deg, var(--wood) 0 1.5px, transparent 1.5px 11px); --lat1-size: 100% 100%; --lat2: repeating-linear-gradient(-45deg, var(--wood) 0 1.5px, transparent 1.5px 11px); --lat2-size: 100% 100%; --paper-l: linear-gradient(180deg, #dfe3d6, #b9c4b4); }
.door--yongja { --lat1: linear-gradient(90deg, transparent calc(50% - 1px), var(--wood) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); --lat1-size: 100% 100%; --lat2: linear-gradient(180deg, var(--wood) 2px, transparent 2px); --lat2-size: 100% 20%; }

/* ── 방 고르기: 문 카드 (문 전체를 누름) ── */
.door-list { display: grid; gap: 14px; margin-top: 16px; }
.door-card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 16px 16px 18px; border-radius: 22px; overflow: hidden; color: var(--text); text-decoration: none; background: radial-gradient(80% 90% at 0% 50%, color-mix(in srgb, var(--lamp) 16%, transparent), transparent 70%), linear-gradient(135deg, #1c1510, #110d0a); border: 1px solid var(--line-strong); transition: transform 0.15s ease, border-color 0.2s; -webkit-tap-highlight-color: transparent; }
.door-card:active { transform: scale(0.985); }
.door-card:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
.door-card.is-last { border-color: color-mix(in srgb, var(--lamp) 70%, transparent); }
.door-wrap { position: relative; padding-top: 16px; }
.door-lamp { position: absolute; top: 0; left: 50%; width: 11px; height: 15px; margin-left: -5.5px; border-radius: 42%; background: var(--lamp); box-shadow: 0 0 16px 6px color-mix(in srgb, var(--lamp) 50%, transparent); }
.door-lamp::before { content: ''; position: absolute; left: 50%; top: -6px; width: 1px; height: 6px; background: var(--wood); }
.door-info { min-width: 0; }
.door-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.door-room { font-family: var(--font-room); font-size: 23px; font-weight: 700; letter-spacing: 0.02em; color: var(--paper); }
.door-field { padding: 1px 8px; border: 1px solid rgba(116, 185, 168, 0.5); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--jade); white-space: nowrap; }
.door-q { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--text-2); word-break: keep-all; }
.door-meta { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.door-meta.is-soon::before { content: '· '; }
.door-open { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; padding: 7px 10px 7px 14px; border-radius: 999px; background: var(--lamp); color: #1a120a; font-size: 13px; font-weight: 800; white-space: nowrap; }
.door-open svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.room-prop { fill: none; stroke: var(--lamp); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.door-card > .room-prop { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; opacity: 0.55; }

/* ── 상담방 배경 (그림 assets/rooms/<분야>/bg.webp 가 있으면 rs-img 가 덮음) ── */
.room-scene { position: absolute; inset: 0; overflow: hidden; background: #130d09; }
.room-scene > div { position: absolute; }
.rs-wall { inset: 0; background: linear-gradient(90deg, transparent 8%, #2e1e12 8% 12%, transparent 12% 88%, #2e1e12 88% 92%, transparent 92%), linear-gradient(180deg, #1a120c 0%, #24180f 60%, #1a110b 100%); }
.rs-window { left: 22%; right: 22%; top: 13%; height: 40%; border: 5px solid #2b1b10; background-image: linear-gradient(90deg, #2b1b10 3px, transparent 3px), linear-gradient(180deg, #2b1b10 3px, transparent 3px), radial-gradient(70% 70% at 50% 55%, color-mix(in srgb, var(--lamp) 55%, #fff3d6) 0%, color-mix(in srgb, var(--lamp) 60%, #6b4a28) 75%); background-size: 25% 100%, 100% 33.4%, 100% 100%; box-shadow: 0 0 70px 10px color-mix(in srgb, var(--lamp) 30%, transparent); }
.room-scene--reunion .rs-window { left: 27%; right: 27%; height: auto; aspect-ratio: 1; border-radius: 50%; background-image: repeating-linear-gradient(45deg, #2b1b10 0 2px, transparent 2px 18px), repeating-linear-gradient(-45deg, #2b1b10 0 2px, transparent 2px 18px), radial-gradient(circle at 50% 50%, #e9f2ea 0%, color-mix(in srgb, var(--lamp) 70%, #23403a) 80%); background-size: 100% 100%; }
.room-scene--marriage .rs-window { background-size: 50% 100%, 100% 20%, 100% 100%; }
.rs-floor { left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 14%), linear-gradient(180deg, #2c1b0f 0%, #170e08 100%); box-shadow: 0 -1px 0 #3d2716; }
.rs-table { left: 30%; right: 30%; bottom: 16%; height: 6%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #4a2f1b, #2b1a0e); box-shadow: 0 14px 20px rgba(0, 0, 0, 0.5); }
.rs-table .room-prop { position: absolute; left: 50%; bottom: 100%; width: 34%; max-width: 70px; transform: translateX(-50%); opacity: 0.85; }
.rs-lamp { left: 11%; top: 24%; width: 7%; aspect-ratio: 0.72; border-radius: 42%; background: radial-gradient(circle at 50% 45%, #fff3d6, var(--lamp) 70%); box-shadow: 0 0 40px 18px color-mix(in srgb, var(--lamp) 40%, transparent); }
.rs-img { inset: 0; background: var(--img-bg) center / cover no-repeat; }
.rs-shade { inset: 0; background: radial-gradient(90% 70% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 20%, transparent 70%, rgba(10, 7, 5, 0.6)); }

/* ── 문 열림 연출 층 ── */
html.is-door-fx, html.is-door-fx body { overflow: hidden; }
.door-fx { position: fixed; top: 0; z-index: 1000; overflow: hidden; touch-action: none; contain: strict; }
.fx-backdrop { position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 50%, color-mix(in srgb, var(--lamp) 20%, transparent), transparent 70%), #080605; }
.fx-push { position: absolute; inset: 0; will-change: transform; }
.fx-door { position: absolute; transform-origin: 0 0; will-change: transform; }
.door-fx .door { --fw: 14px; width: 100%; height: 100%; aspect-ratio: auto; }
.fx-room { position: absolute; left: 50%; top: 50%; }
.fx-room .room-scene { will-change: transform, opacity; }
.fx-light { position: absolute; inset: 0; opacity: 0; background: radial-gradient(45% 55% at 50% 50%, color-mix(in srgb, var(--lamp) 55%, #fff) 0%, color-mix(in srgb, var(--lamp) 30%, transparent) 45%, transparent 75%); pointer-events: none; }
.fx-skip { position: absolute; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); padding: 9px 14px; border: 1px solid rgba(241, 233, 220, 0.3); border-radius: 999px; background: rgba(10, 8, 6, 0.6); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ── 상담방 화면 ── */
.room-fixed { position: fixed; top: 0; bottom: 0; left: 50%; z-index: 0; width: min(100vw, var(--col)); transform: translateX(-50%); pointer-events: none; }
.room-page { position: relative; }
.room-page > :not(.room-fixed) { position: relative; z-index: 1; }
.room-host { display: flex; justify-content: center; align-items: flex-end; height: 36vh; min-height: 200px; }
.room-char { margin: 0; }
.room-char img { display: block; height: 36vh; min-height: 200px; width: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6)); }
.room-char.no-char, .cat-hero-char.no-char, .bubble-face.no-char { display: none; }
.room-dlg { cursor: default; border-color: color-mix(in srgb, var(--lamp) 35%, transparent); }
.room-dlg .dlg-name { color: var(--lamp); }
.room-menu { margin-top: 14px; padding: 18px 16px; border-radius: 22px; background: rgba(15, 11, 9, 0.9); border: 1px solid var(--line-strong); }
.room-menu-title { font-size: 15px; font-weight: 700; color: var(--text-2); }
.room-menu-title:focus { outline: none; }
.room-items { display: grid; gap: 10px; margin-top: 12px; }
.room-item { display: block; padding: 14px 16px; border-radius: 16px; color: var(--text); text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); }
.room-item.is-open { border-color: color-mix(in srgb, var(--lamp) 40%, transparent); }
.room-item.is-last { box-shadow: 0 0 0 2px color-mix(in srgb, var(--lamp) 70%, transparent); }
.room-item:active { transform: scale(0.99); }
.room-item-top { display: flex; align-items: center; gap: 6px; }
.room-item-top .cat-status { margin: 0; }
.room-last { font-size: 11.5px; color: var(--lamp); }
.room-item-title { display: block; margin-top: 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; word-break: keep-all; }
.room-item-desc { display: block; margin-top: 3px; font-size: 13.5px; color: var(--text-2); word-break: keep-all; }
@media (prefers-reduced-motion: no-preference) {
  .is-enter-fx .room-char img { animation: roomCharIn 0.6s cubic-bezier(.2, .8, .2, 1) both; }
  .is-enter-fx .room-dlg { animation: roomUp 0.45s 0.08s cubic-bezier(.2, .8, .2, 1) both; }
  .is-enter-fx .room-menu { animation: roomUp 0.5s 0.2s cubic-bezier(.2, .8, .2, 1) both; }
  .is-enter-fade > :not(.room-fixed) { animation: roomFade 0.28s ease both; }
}
.is-enter-fade { animation: roomFade 0.2s ease both; }
@keyframes roomUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes roomCharIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes roomFade { from { opacity: 0; } to { opacity: 1; } }

/* ── 상품 상세 · 질문 화면: 같은 방 배경 ── */
.cat-hero { position: relative; overflow: hidden; }
.cat-hero-room { position: absolute; inset: 0; z-index: 0; opacity: 0.75; }
.cat-hero > :not(.cat-hero-room) { position: relative; z-index: 1; }
.cat-hero-char { width: min(180px, 52%); }
.char-stage { background: #130d09; }
.char-room { position: absolute; inset: 0; z-index: 0; }
.char-room .room-scene { opacity: 0.8; }
.char-float { position: relative; z-index: 1; }
.char-stage.no-char { height: 104px !important; }
.cat-hero-room { opacity: 0.5; }
.cat-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(12, 9, 7, 0.35), rgba(12, 9, 7, 0.82) 70%); pointer-events: none; }
.char-room .rs-table { display: none; }

/* ── 줄바꿈: 단어 안에서 안 끊고, 구절(<ph-s>) 단위로 · 끝줄에 한 단어만 남지 않게 ── */
body { word-break: keep-all; overflow-wrap: break-word; }
ph-s { display: inline-block; max-width: 100%; }
p, li, dd, q, .door-q, .room-item-desc { text-wrap: pretty; }
h1, h2, h3, .sec-title, .topbar-title, .room-item-title, .solo-hero-title, .solo-ch-title, .cat-hero h1, .b-hero-title { text-wrap: balance; }
.fr-card p + p:not([class]), .fr-note p + p:not([class]) { margin-top: 0.7em; }
.logo-door { fill: #f6dda4; }
.cat-toc li > .t, .cat-toc li > .d { display: block; }
.cat-toc .d { color: var(--muted); font-weight: 400; }

/* ── 캐릭터 그림: 방 배경에 스며들게 가장자리를 흐리게 · 임시 참고 그림이면 표시 ── */
.room-char img, .cat-hero-char img, .char-stage .char-media { -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 40%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 78% at 50% 40%, #000 55%, transparent 100%); filter: none; }
.room-char, .cat-hero-char { position: relative; }
.cat-hero-char { margin: 0 auto 10px; border: 0; background: none; aspect-ratio: 4 / 5; overflow: visible; }
[data-char]:has(img[data-temp])::after { content: '임시 · 참고 이미지'; position: absolute; right: 6px; top: 6px; z-index: 2; padding: 2px 8px; border-radius: 999px; border: 1px dashed rgba(241, 233, 220, 0.35); background: rgba(10, 8, 6, 0.6); color: var(--text-2); font-size: 10.5px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.bubble-face:has(img[data-temp])::after { display: none; }
.char-stage:has(img[data-temp])::after { right: 10px; top: 10px; }
.room-char img, .cat-hero-char img, .char-stage .char-media {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 70%, transparent 100%);
  mask-composite: intersect;
}

/* ── 문 카드: 그 방 담당 캐릭터 얼굴 ── */
.door-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.door-face { position: relative; flex: 0 0 50px; width: 50px; height: 50px; margin: -2px 0 0; }
.door-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 10%; border: 1.5px solid var(--lamp); box-shadow: 0 0 14px color-mix(in srgb, var(--lamp) 45%, transparent); background: #1a1410; }
.door-face.no-char { display: none; }
.door-face:has(img[data-temp])::after { content: '임시'; top: auto; right: 50%; bottom: -7px; transform: translateX(50%); padding: 0 5px; font-size: 9.5px; line-height: 1.5; border-style: solid; }
.door-face .face-crop { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; border: 1.5px solid var(--lamp); box-shadow: 0 0 14px color-mix(in srgb, var(--lamp) 45%, transparent); background: #1a1410; }
.door-face .face-crop img { position: absolute; left: var(--fl); top: var(--ft); width: var(--fw); max-width: none; height: auto; border: 0; border-radius: 0; box-shadow: none; object-fit: fill; }
.door-face .face-crop { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; border: 1.5px solid var(--lamp); box-shadow: 0 0 14px color-mix(in srgb, var(--lamp) 45%, transparent); background: #1a1410; }
.door-face .face-crop img { position: absolute; left: var(--fl); top: var(--ft); width: var(--fw); max-width: none; height: auto; border: 0; border-radius: 0; box-shadow: none; object-fit: fill; }

/* ═══ 인연옥 — 달밤의 궁궐 (남색 밤하늘 · 보름달 · 처마 단청) ═══════════
 * 바깥(배경 · 패널)은 차가운 밤, 방 안은 따뜻한 등불. 버튼은 달빛 크림, 포인트는 단청의 옥색 · 주홍.
 */
:root {
  --outer: #060a12;
  --bg: #0a1220;
  --surface: #101a2a;
  --surface-2: #142135;
  --surface-3: #1d2c43;
  --accent-rgb: 239, 227, 194;
  --lamp-main: #efe3c2;
  --lime-ink: #0c1424;
  --line: rgba(233, 230, 218, 0.1);
  --line-strong: rgba(233, 230, 218, 0.22);
  --text: #eceae2;
  --text-2: #c3c8d2;
  --muted: #8a93a3;
  --jade: #6fb5a3;
  --seal: #b8432f;
}
@media (min-width: 600px) { body { background: radial-gradient(60% 50% at 50% 0%, #13233a 0%, var(--outer) 70%) fixed; } }
.shell { background: var(--bg) url(../assets/brand/stars.svg) repeat; }
.site-header { background: rgba(10, 18, 32, 0.82); }
.btn-primary, .btn-primary:hover { box-shadow: 0 0 0 1px var(--lime), 0 12px 30px -14px rgba(239, 227, 194, 0.55); }
.dlg { background: rgba(14, 22, 36, 0.92); }
.room-menu { background: rgba(10, 16, 28, 0.9); }
.door-card { background: radial-gradient(80% 90% at 0% 50%, color-mix(in srgb, var(--lamp) 14%, transparent), transparent 70%), linear-gradient(135deg, #142135, #0c1524); }
.ext-hero .b-hero-title { color: #f3efe3; text-shadow: 0 4px 34px rgba(239, 227, 194, 0.3); }

/* 외관: 직접 그린 그림(assets/brand/exterior-night.svg) — exterior.webp 가 있으면 위에 덮임 */
.ext-scene { height: 440px; border-color: var(--line); background: #0b1426; }
.ext-scene::after { background: linear-gradient(180deg, transparent 62%, rgba(10, 18, 32, 0.92)); }
.ext-art { position: absolute; inset: 0; background: url(../assets/brand/exterior-night.svg) 30% 0 / cover no-repeat; }
.ext-vert { position: absolute; z-index: 4; right: 20px; top: 226px; display: flex; gap: 10px; writing-mode: vertical-rl; font-family: var(--font-room); font-size: 15px; letter-spacing: 0.32em; line-height: 1; color: rgba(243, 239, 227, 0.88); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.ext-vert .sub { font-size: 11px; letter-spacing: 0.28em; color: rgba(195, 200, 210, 0.7); }
.ext-copy { margin-top: -64px; }
@media (max-width: 340px) { .ext-vert { top: 236px; right: 14px; font-size: 14px; } }
.ext-vert { top: 250px; white-space: nowrap; gap: 8px; }
.ext-vert .sub { font-size: 12px; letter-spacing: 0.4em; }
@media (max-width: 340px) { .ext-vert { top: 246px; } }
.ext-vert { display: block; top: 238px; letter-spacing: 0.2em; }
.ext-vert > span { display: block; }
.ext-vert .sub { margin-right: 8px; letter-spacing: 0.3em; }
@media (max-width: 340px) { .ext-vert { top: 236px; font-size: 13.5px; } }

/* ── 상담방 상품: 그 자리에서 펼치기 ── */
.room-item { padding: 0; overflow: hidden; }
.room-item-head { display: block; width: 100%; padding: 14px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.room-item-head:focus-visible { outline: 2px solid var(--lamp); outline-offset: -2px; border-radius: 16px; }
.ri-caret { width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform 0.2s ease; }
.room-item.is-expanded .ri-caret { transform: rotate(180deg); }
.room-item.is-expanded { border-color: color-mix(in srgb, var(--lamp) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--lamp) 7%, var(--surface-2)), var(--surface-2)); }
.room-item-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.ri-label { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--jade); letter-spacing: 0.04em; }
.ri-reads { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ri-reads li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.5; color: var(--text); }
.ri-reads li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--lamp); }
.ri-meta { display: grid; gap: 4px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.ri-meta div { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 12.5px; line-height: 1.5; }
.ri-meta dt { color: var(--muted); white-space: nowrap; }
.ri-meta dd { margin: 0; color: var(--text-2); }
.ri-soon { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ri-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.ri-actions .btn { flex: 1; }
.ri-more { flex: none; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .room-item.is-expanded .room-item-body { animation: roomFade 0.22s ease both; } }

/* ── 결과 미리보기: 근거 · 가려 둔 제목 · 확인해 볼 것 ── */
.blind-basis { display: flex; gap: 8px; margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.blind-basis span { flex: none; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--text-2); font-weight: 600; }
.blind-titles { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.blind-titles li { display: flex; gap: 8px; align-items: baseline; padding: 9px 12px; border-radius: 12px; background: rgba(var(--accent-rgb), 0.06); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.45; }
.blind-titles li span { flex: none; font-size: 12px; opacity: 0.8; }
.blind-titles li.more { justify-content: center; font-weight: 500; font-size: 12.5px; color: var(--muted); background: none; border-style: dashed; }
.blind-check { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--jade); border-radius: 4px 12px 12px 4px; background: rgba(111, 181, 163, 0.08); font-size: 14px; line-height: 1.55; color: var(--text); }
.blind-check span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--jade); }
ph-g { display: block; min-width: 0; }

/* ═══ 질문 화면 — 캐릭터 그림 위 대화형 ═══════════════════════════════
 * 캐릭터 그림은 흐림 없이 선명하게, 화면 위쪽을 꽉 채운다. 아래쪽만 어둡게 깔아 글씨를 읽게 한다.
 * 지난 대화는 말풍선으로 쌓이고(오래될수록 옅게), 아래에서 큰 글씨 + 입력칸으로 답한다.
 */
body[data-view="ask"] .site-header, body[data-view="ask"] .tabbar, body[data-view="ask"] .site-footer { display: none; }
body[data-view="ask"] .app { padding: 0 var(--gutter); }
.story--chat { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.story--chat > :not(.ask-bg) { position: relative; z-index: 1; }
.ask-bg { position: fixed; top: 0; bottom: 0; left: 50%; z-index: 0; width: min(100vw, var(--col)); transform: translateX(-50%); overflow: hidden; background: #0a0d15; }
.ask-bg-room { position: absolute; inset: 0; opacity: 0.6; }
.ask-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 80%; object-fit: cover; object-position: 50% 0; }
.ask-bg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0, transparent 12%, transparent 40%, rgba(8, 10, 16, 0.72) 62%, #080a10 82%); }
.ask-bg.no-char .ask-bg-room { opacity: 1; }
.story--chat .story-top { padding-top: calc(10px + env(safe-area-inset-top)); }
.story--chat .story-top .icon-btn { background: rgba(0, 0, 0, 0.35); }
.chat-log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 30vh 0 8px; }
.chat { max-width: 84%; margin: 0; padding: 11px 16px; border-radius: 18px; font-size: 15.5px; line-height: 1.5; opacity: max(0.32, calc(1 - var(--age, 0) * 0.17)); }
.chat--char { align-self: flex-start; border-top-left-radius: 6px; background: rgba(12, 15, 24, 0.74); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text); }
.chat--me { align-self: flex-end; border-top-right-radius: 6px; background: color-mix(in srgb, var(--lamp) 26%, #1c2a46); border: 1px solid color-mix(in srgb, var(--lamp) 45%, transparent); color: #fff; font-weight: 600; }
.chat--react { border-color: color-mix(in srgb, var(--lamp) 50%, transparent); }
.chat--now { opacity: 1; font-weight: 500; font-size: 16px; }
.chat--now:focus { outline: none; }
.ask-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); font-size: 11.5px; color: var(--jade); }
@media (prefers-reduced-motion: no-preference) {
  .chat--now { animation: chatIn 0.35s ease both; }
  .ask-panel { animation: chatIn 0.35s 0.08s ease both; }
}
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ask-panel { padding: 14px 0 calc(22px + env(safe-area-inset-bottom)); }
.ask-prompt { margin-bottom: 12px; font-size: 27px; font-weight: 800; letter-spacing: -0.04em; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.ask-line { display: flex; align-items: center; gap: 10px; }
.ask-field { flex: 1; min-width: 0; padding: 8px 2px; border: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.55); border-radius: 0; background: transparent; color: #fff; font: inherit; font-size: 20px; font-weight: 700; outline: none; }
.ask-field::placeholder { color: rgba(255, 255, 255, 0.32); }
.ask-field:focus { border-bottom-color: var(--lamp); }
.ask-field--big { font-size: 28px; font-weight: 800; letter-spacing: 0.02em; }
.ask-toggle { display: flex; flex: none; gap: 6px; }
.ask-toggle input, .ask-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ask-toggle span { display: block; padding: 10px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: var(--text-2); font-size: 14px; font-weight: 700; cursor: pointer; }
.ask-toggle input:checked + span { background: #fff; color: #10131c; }
.ask-toggle input:focus-visible + span, .ask-choice input:focus-visible + span { outline: 2px solid var(--lamp); outline-offset: 2px; }
.ask-leap { margin-top: 10px; }
.ask-clock { display: flex; flex: 1; min-width: 0; align-items: center; gap: 4px; border-bottom: 2px solid rgba(255, 255, 255, 0.55); }
.ask-clock:focus-within { border-bottom-color: var(--lamp); }
.ask-clock .ask-field { flex: none; width: 2.1em; border: 0; text-align: center; }
.ask-clock span { font-size: 26px; font-weight: 800; color: rgba(255, 255, 255, 0.7); }
.ask-pill { flex: none; padding: 12px 15px; border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 999px; background: rgba(0, 0, 0, 0.3); color: #fff; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ask-region { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.ask-region select { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px; background: rgba(10, 12, 20, 0.85); color: #fff; font: inherit; font-size: 14px; }
.ask-submit { display: flex; justify-content: flex-end; margin-top: 16px; }
.ask-send { min-width: 120px; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 28px -12px rgba(239, 227, 194, 0.7); }
.ask-choices { display: grid; gap: 10px; }
.ask-choices--right { justify-items: end; }
.ask-choice { display: block; position: relative; }
.ask-choices--right .ask-choice span { min-width: 150px; text-align: center; }
.ask-choice span { display: block; padding: 15px 22px; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 18px; background: rgba(10, 12, 20, 0.82); color: #fff; font-size: 16.5px; font-weight: 700; line-height: 1.4; cursor: pointer; transition: background 0.15s, color 0.15s; }
.ask-choices:not(.ask-choices--right) .ask-choice span { text-align: left; font-weight: 600; font-size: 15px; }
.ask-choice input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.story--chat .field-error { margin-top: 8px; color: #ffb4a8; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.story--chat .field-hint { margin-top: 8px; color: var(--text-2); font-size: 12px; }
.story--chat .ask-privacy { margin-top: 14px; color: var(--muted); }

/* ── 캐릭터 그림: 흐리게 처리하지 않고 선명하게 (액자처럼 모서리만 둥글게) ── */
.room-char img, .cat-hero-char img, .char-stage .char-media { -webkit-mask-image: none; mask-image: none; border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); }
.room-char img { border: 1px solid rgba(255, 255, 255, 0.14); }

/* ═══ 분석 화면 — 질문 화면과 같은 무대에서 이어짐 ═══ */
body[data-view="analyze"] .site-header, body[data-view="analyze"] .tabbar, body[data-view="analyze"] .site-footer { display: none; }
body[data-view="analyze"] .app { padding: 0 var(--gutter); }
.story--analyze .chat-log { padding-top: 26vh; }
.analyze-title { font-size: 22px; line-height: 1.35; }
.analyze-title em { font-style: normal; color: var(--lamp, var(--lime)); }
.analyze-panel .solo-load-card { margin-top: 10px; padding: 14px; border-radius: 18px; background: rgba(10, 12, 20, 0.82); border: 1px solid rgba(255, 255, 255, 0.14); }
.analyze-panel .sj-grid { gap: 5px; }
.analyze-panel .sj-cell { height: 40px; font-size: 20px; }
.analyze-done { display: flex; justify-content: flex-end; margin-top: 14px; }
.analyze-retry { gap: 10px; align-items: center; }
.story--analyze .scene-error { padding: 12px 14px; border-radius: 14px; background: rgba(184, 67, 47, 0.18); border: 1px solid rgba(184, 67, 47, 0.5); color: #ffd2c8; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .story--analyze .chat--now { animation: chatIn 0.3s ease both; }
  .ask-bg-img { transition: opacity 0.3s ease; }
}

/* ═══ 결과 첫 화면: 캐릭터 그림 배너 + 헤드라인, 사주는 한 줄로 접어 둠 ═══ */
.res-hero { position: relative; margin: 0 calc(var(--gutter) * -1); padding: 0; text-align: left; }
.res-host { position: relative; height: 340px; margin: 0; overflow: hidden; background: #0a0d15; }
.res-host-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.res-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 18, 32, 0) 45%, rgba(10, 18, 32, 0.85) 82%, var(--bg) 100%); }
.res-host.no-char { height: 80px; }
.res-hero-copy { position: relative; z-index: 1; margin-top: -96px; padding: 0 var(--gutter) 6px; }
.res-hero .solo-hero-title { text-align: left; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.res-hero .solo-hero-sub { text-align: left; }
.story--solo-result .story-top { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: 8px; }
.story--solo-result .story-top .icon-btn { background: rgba(0, 0, 0, 0.4); }
.sj-fold { margin-top: 10px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); overflow: hidden; }
.sj-fold summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.sj-fold summary::-webkit-details-marker { display: none; }
.sj-fold-name { flex: none; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.sj-mini { display: flex; gap: 4px; }
.sj-mini-p { display: grid; gap: 2px; }
.sj-mini-p i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.08); }
.sj-mini-p.is-empty i { color: var(--muted); }
.sj-fold-more { margin-left: auto; flex: none; font-size: 12px; color: var(--text-2); }
.sj-fold[open] .sj-fold-more { color: var(--muted); }
.sj-fold .sj-card { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
@media (max-width: 340px) { .sj-mini-p i { width: 19px; height: 19px; font-size: 11.5px; } .sj-fold-more { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .story--solo-result .res-hero, .story--solo-result .sj-fold, .story--solo-result .solo-ch:first-of-type { animation: roomUp 0.5s cubic-bezier(.2, .8, .2, 1) both; }
  .story--solo-result .res-hero-copy { animation: roomUp 0.55s 0.1s cubic-bezier(.2, .8, .2, 1) both; }
  .story--solo-result .sj-fold { animation-delay: 0.18s; }
}

.res-host:has(img[data-temp])::after { top: 12px; right: 12px; z-index: 2; }
.story--solo-result { position: relative; }
.res-host-img { object-position: 50% var(--fy, 10%); }
.analyze-panel .solo-step { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ═══ 그림이 배경에 녹아들게 — 네모 액자 없이 · 은은한 움직임 ═══════════════
 * 인물은 선명하게 두고, 그림 가장자리(배경 부분)만 주변 배경으로 녹인다.
 * 움직임은 그림 전체가 숨 쉬듯 아주 살짝(크기 1.5% · 5px). 모션 줄이기 설정이면 모두 멈춘다.
 */
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.015); } }
@keyframes extDrift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.09) translateY(-1.5%); } }
@keyframes mistA { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
@keyframes lampFlicker { 0%, 100% { opacity: 1; } 42% { opacity: 0.86; } 47% { opacity: 0.97; } 70% { opacity: 0.9; } }
.char-breathe { display: block; transform-origin: 50% 35%; will-change: transform; }

/* 메인: 한옥 그림을 화면 끝까지, 아래는 밤하늘로 이어지게 */
.ext-scene { height: 560px; margin: 0 calc(var(--gutter) * -1); border: 0; border-radius: 0; background: transparent; }
.ext-scene::after { background: linear-gradient(180deg, rgba(10, 18, 32, 0.4) 0, transparent 16%, transparent 52%, rgba(10, 18, 32, 0.7) 78%, var(--bg) 97%); z-index: 4; }
.ext-img { transform-origin: 50% 40%; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 100%); }
.ext-art { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.ext-glow { position: absolute; z-index: 4; left: 50%; top: 9%; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 214, 0.32) 0%, rgba(255, 244, 214, 0) 65%); pointer-events: none; }
.ext-mist { position: absolute; z-index: 4; left: -30%; width: 160%; height: 130px; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(220, 228, 240, 0.22), transparent 70%); filter: blur(10px); pointer-events: none; }
.ext-mist--a { top: 47%; }
.ext-mist--b { top: 58%; height: 100px; opacity: 0.7; }
.ext-vert { z-index: 5; top: 300px; }
.ext-copy { margin-top: -150px; z-index: 6; }
@media (max-width: 340px) { .ext-scene { height: 500px; } .ext-vert { top: 260px; } }

/* 상담방: 캐릭터가 방 배경 속에 서 있게 (위쪽을 채우고 아래 · 양옆은 방으로 녹아듦) */
.room-fixed .room-char { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 74%; margin: 0; }
.room-fixed .room-char .char-breathe { width: 100%; height: 100%; }
.room-fixed .room-char img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: 50% var(--fy, 15%); border: 0; border-radius: 0; box-shadow: none; filter: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 52%, transparent 97%), linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0, #000 52%, transparent 97%), linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%); mask-composite: intersect; }
.room-fixed .room-char:has(img[data-temp])::after { top: 70px; right: 14px; }
.room-mist { position: absolute; z-index: 2; left: -20%; right: -20%; bottom: 18%; height: 30%; background: radial-gradient(50% 50% at 50% 60%, color-mix(in srgb, var(--lamp) 14%, transparent), transparent 70%); pointer-events: none; }
.room-host { height: 46vh; min-height: 260px; }
.room-dlg { background: rgba(14, 18, 28, 0.78); }

/* 상품 상세: 상자 대신 화면 끝까지, 캐릭터는 배경처럼 */
.cat-hero { margin: 6px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 22px; border: 0; border-radius: 0; background: transparent; }
.cat-hero::before { background: linear-gradient(180deg, rgba(10, 18, 32, 0.2), rgba(10, 18, 32, 0.6) 60%, var(--bg) 100%); }
.cat-hero-room { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
.cat-hero-char { position: relative; width: auto; height: 320px; margin: 0 calc(var(--gutter) * -1) -60px; aspect-ratio: auto; border: 0; border-radius: 0; background: none; overflow: hidden; }
.cat-hero-char .char-breathe { width: 100%; height: 100%; }
.cat-hero-char img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--fy, 15%); border: 0; border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 50%, transparent 96%), linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0, #000 50%, transparent 96%), linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-composite: intersect; }
.cat-hero-char:has(img[data-temp])::after { top: 12px; right: 14px; }

/* 질문 · 분석 · 결과 배너도 같은 숨쉬기 */
.ask-bg-breathe { position: absolute; top: 0; left: 0; width: 100%; height: 80%; }
.ask-bg-breathe .ask-bg-img { height: 100%; }
.res-host .char-breathe { position: absolute; inset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .char-breathe { animation: breathe 6.5s ease-in-out infinite; }
  .ext-img { animation: extDrift 28s ease-in-out infinite alternate; }
  .ext-glow { animation: glowPulse 7s ease-in-out infinite; }
  .ext-mist--a { animation: mistA 22s ease-in-out infinite alternate; }
  .ext-mist--b { animation: mistA 30s ease-in-out infinite alternate-reverse; }
  .rs-lamp { animation: lampFlicker 4.5s ease-in-out infinite; }
}
/* 그림이 투명해지는 아래쪽으로 뒤 배경(기본 그림 · 방 창문 · 소반)이 비치지 않게 */
.ext-art { -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 42%); mask-image: linear-gradient(180deg, #000 0, transparent 42%); }
.room-fixed:has(.room-char:not(.no-char)) .rs-window, .cat-hero:has(.cat-hero-char:not(.no-char)) .rs-window { opacity: 0.18; }
.room-fixed:has(.room-char:not(.no-char)) .rs-table, .cat-hero:has(.cat-hero-char:not(.no-char)) .rs-table { display: none; }

/* ═══ 진짜 방 안 — 네이비 밤 방 · 앞쪽 탁자 층 · 향 연기 · 들어올 때 정면 클로즈업 ═══ */
/* 방 기본 그림을 갈색 대신 네이비로 (그림 파일 bg.webp 가 있으면 그 그림이 덮음) */
.rs-wall { background: linear-gradient(90deg, transparent 8%, #18233a 8% 12%, transparent 12% 88%, #18233a 88% 92%, transparent 92%), linear-gradient(180deg, #0d1424 0%, #121c30 60%, #0c1220 100%); }
.rs-floor { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 14%), linear-gradient(180deg, #1a2234 0%, #0b101b 100%); box-shadow: 0 -1px 0 #26324a; }
.room-scene { background: #0b111d; }
.rs-shade { background: radial-gradient(90% 70% at 50% 40%, transparent 40%, rgba(3, 6, 14, 0.6) 100%), linear-gradient(180deg, rgba(3, 6, 14, 0.3), transparent 20%, transparent 70%, rgba(6, 9, 16, 0.65)); }
.ask-bg { background: #090e18; }
.room-fixed .room-char img, .cat-hero-char img, .ask-bg-img, .res-host-img { filter: saturate(0.92) contrast(1.04); }
/* 캐릭터 그림 가장자리에 네이비 빛을 얹어 방 색과 맞춤 */
.room-fixed .room-char::before, .ask-bg-breathe::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(85% 70% at 50% 35%, transparent 55%, rgba(10, 18, 34, 0.55) 100%); }
.ask-bg-breathe { overflow: hidden; }

/* 앞쪽 층: 탁자 그림(front.webp) 또는 바닥 그림자 + 향 + 연기 */
.room-front { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none; background: var(--img-front) center bottom / cover no-repeat, linear-gradient(180deg, transparent 0, rgba(5, 8, 15, 0.35) 45%, rgba(5, 8, 15, 0.7) 100%); }
.incense { position: absolute; z-index: 4; width: 2px; height: 46px; margin-left: -1px; background: linear-gradient(180deg, #3a2a1c, #6b4a2b); border-radius: 1px; transform: rotate(-6deg); transform-origin: 50% 100%; pointer-events: none; }
.incense i { position: absolute; left: 50%; top: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ff9d4a; box-shadow: 0 0 8px 3px rgba(255, 140, 60, 0.55); }
.incense::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 26px; height: 10px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle, #2b2f3a, #12151d); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); }
canvas.smoke { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ask-bg .room-front, .ask-bg .incense, .ask-bg canvas.smoke { z-index: 2; }
.ask-bg .ask-bg-shade { z-index: 3; }
.room-fixed .room-mist { z-index: 2; }

/* 들어올 때: 얼굴을 정면 가까이 보여 주다가 천천히 물러나며 방이 드러남 */
@keyframes charIntro {
  0% { transform: scale(1.42) translateY(5%); filter: brightness(0.55); }
  35% { filter: brightness(1); }
  100% { transform: scale(1) translateY(0); filter: brightness(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .char-intro .char-breathe { transform-origin: 50% var(--fy, 20%); animation: charIntro 2.6s cubic-bezier(.22, .7, .2, 1) both, breathe 6.5s 2.6s ease-in-out infinite; }
  .incense i { animation: lampFlicker 2.2s ease-in-out infinite; }
}

/* 앞쪽 탁자 칸: 화면 폭에 맞춘 3:2 칸을 대사 상자 바로 위(화면 52% 지점)에 바닥을 맞춰 둔다 */
.room-front { top: auto; bottom: 48%; height: calc(min(100vw, var(--col)) / 1.5); background: var(--img-front) center bottom / 100% auto no-repeat, linear-gradient(180deg, transparent 45%, rgba(5, 8, 15, 0.45) 100%); }
.room-front.has-art { background: var(--img-front) center bottom / 100% auto no-repeat; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
.room-front canvas.smoke { top: auto; bottom: 0; height: 300%; inset: auto 0 0 0; }
.room-front .incense { position: absolute; }
.ask-bg .room-front { bottom: 44%; }
/* 탁자 그림이 있는 방: 캐릭터 아랫부분은 탁자 뒤에서 사라지게 (탁자 아래로 몸이 비치지 않게) */
.room-fixed:has(.room-front.has-art) .room-char img {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 70%), linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 70%), linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
}
.ask-bg:has(.room-front.has-art) .ask-bg-img { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 69%); mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 69%); }
.ask-bg:has(.room-front.has-art) .ask-bg-room { opacity: 1; }

/* ═══ 탁자 너머에 앉은 구도 — 배경을 지운 캐릭터 + 탁자 그림이 있는 방 ═══
 * 탁자 윗면 높이(--tt)에 캐릭터의 허리 높이(--seat)가 오도록 크기와 위치를 맞춘다.
 * 탁자 칸: 폭 = 화면 폭, 높이 = 폭 / 1.5, 바닥 = 화면 52%(질문 화면 56%). 탁자 윗면 = 칸 위에서 58% 지점.
 */
.room-fixed:has(.room-front.has-art) .room-char.is-cutout,
.ask-bg.is-cutout:has(.room-front.has-art) .ask-bg-breathe {
  top: 8%; bottom: auto; left: 0; right: 0; margin: 0 auto;
  height: calc((var(--tt) - 8%) / var(--seat)); width: auto; aspect-ratio: 4 / 5; overflow: visible;
}
.room-fixed:has(.room-front.has-art) .room-char.is-cutout { --tt: calc(52% - min(100vw, var(--col)) * 0.28); }
.ask-bg.is-cutout:has(.room-front.has-art) .ask-bg-breathe { --tt: calc(56% - min(100vw, var(--col)) * 0.28); }
.room-fixed:has(.room-front.has-art) .room-char.is-cutout img,
.ask-bg.is-cutout:has(.room-front.has-art) .ask-bg-img {
  object-fit: contain; object-position: 50% 0; filter: saturate(0.95) brightness(0.96);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--seat) * 100% + 6%), transparent calc(var(--seat) * 100% + 20%));
  mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--seat) * 100% + 6%), transparent calc(var(--seat) * 100% + 20%));
  -webkit-mask-composite: source-over; mask-composite: add;
}
/* 네모 테두리용 가장자리 그늘은 끄고, 대신 벽에 드리운 그림자 + 촛불 빛 */
.room-fixed .room-char.is-cutout::before, .ask-bg.is-cutout .ask-bg-breathe::after { display: none; }
.room-char.is-cutout .char-breathe, .ask-bg.is-cutout .ask-bg-breathe { isolation: isolate; }
.room-char.is-cutout .char-breathe::before, .ask-bg.is-cutout .ask-bg-breathe::before {
  content: ''; position: absolute; z-index: -1; left: 4%; right: 4%; top: 18%; height: 70%; border-radius: 50%;
  background: radial-gradient(50% 50% at 52% 50%, rgba(2, 4, 10, 0.55), transparent 72%); transform: translate(5%, 3%); pointer-events: none;
}
.room-char.is-cutout .char-breathe::after, .ask-bg.is-cutout .ask-bg-breathe::after {
  content: ''; display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(55% 45% at 92% 72%, rgba(255, 176, 96, 0.55), transparent 70%), radial-gradient(60% 50% at 0% 30%, rgba(120, 150, 220, 0.35), transparent 70%);
}
.ask-bg.is-cutout .ask-bg-breathe::after { display: block; }

/* ═══ 탁자 없는 방 + 배경 지운 캐릭터: 방 한가운데 서 있게 — 방이 둘레로 보이도록 크기를 줄임 ═══ */
.room-fixed:not(:has(.room-front)) .room-char.is-cutout,
.ask-bg.is-cutout:not(:has(.room-front)) .ask-bg-breathe {
  top: 9%; bottom: auto; left: 0; right: 0; margin: 0 auto; height: 52%; width: auto; aspect-ratio: 4 / 5; overflow: visible;
}
.ask-bg.is-cutout:not(:has(.room-front)) .ask-bg-breathe { top: 7%; height: 54%; }
.room-fixed:not(:has(.room-front)) .room-char.is-cutout img,
.ask-bg.is-cutout:not(:has(.room-front)) .ask-bg-img {
  object-fit: contain; object-position: 50% 0; filter: saturate(0.95) brightness(0.96);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add;
}
.ask-bg.is-cutout .ask-bg-room { opacity: 1; }
.room-fixed:has(.room-char.is-cutout) .rs-window { opacity: 1; }

/* ═══ 위쪽 띠: 딱 끊기는 선 대신 아래로 스르륵 풀리는 그라데이션 ═══
 * 띠는 화면 위에 떠 있고(배경을 차지하지 않음), 메인 한옥 그림 · 상담방은 띠 밑까지 올라가 이어진다.
 */
.site-header { background: linear-gradient(180deg, rgba(10, 18, 32, 0.92) 0%, rgba(10, 18, 32, 0.66) 55%, rgba(10, 18, 32, 0) 100%); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; box-shadow: none; height: 72px; margin-bottom: -72px; }
.app { padding-top: 72px; }
body[data-view="home"] .app, body[data-view="room"] .app { padding-top: 0; }
body[data-view="home"] .ext-scene { margin-top: 0; }
body[data-view="home"] .ext-scene::after { background: linear-gradient(180deg, rgba(10, 18, 32, 0) 0, transparent 20%, transparent 52%, rgba(10, 18, 32, 0.7) 78%, var(--bg) 97%); }
body[data-view="room"] .room-page > .topbar { padding-top: 64px; }
/* 넓은 화면에서 가운데 기둥 양옆의 가는 선 대신 부드러운 그림자 */
.shell { box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.45); }
body[data-view="result"] .app { padding-top: 0; }
body[data-view="result"] .story--solo-result .story-top { top: 66px; }
body[data-view="result"] .res-host { height: 400px; }
body[data-view="result"] .res-hero-copy { margin-top: -110px; }

/* ═══ 배경 지운 캐릭터: 얼굴 중심으로 크게 · 뒤쪽 뿌연 층 없이 깔끔하게 ═══ */
.room-char.is-cutout .char-breathe::before, .room-char.is-cutout .char-breathe::after,
.ask-bg.is-cutout .ask-bg-breathe::before, .ask-bg.is-cutout .ask-bg-breathe::after,
.room-fixed:has(.room-char.is-cutout) .room-mist { display: none; }
.room-fixed:has(.room-char.is-cutout) .rs-shade, .ask-bg.is-cutout .rs-shade { background: linear-gradient(180deg, transparent 60%, rgba(6, 9, 16, 0.5)); }
.ask-bg.is-cutout .ask-bg-shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0, transparent 12%, transparent 48%, rgba(8, 10, 16, 0.7) 66%, #080a10 84%); }
.room-fixed:not(:has(.room-front)) .room-char.is-cutout,
.ask-bg.is-cutout:not(:has(.room-front)) .ask-bg-breathe { top: 4%; height: 64%; width: 100%; aspect-ratio: auto; overflow: hidden; }
.room-fixed:not(:has(.room-front)) .room-char.is-cutout img,
.ask-bg.is-cutout:not(:has(.room-front)) .ask-bg-img {
  object-fit: cover; object-position: calc(var(--fx, 0.5) * 100%) 0; filter: none;
  transform: scale(var(--zoom, 1.18)); transform-origin: calc(var(--fx, 0.5) * 100%) 12%;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 98%);
}
.room-fixed:not(:has(.room-front)) .room-char.is-cutout { top: 8%; height: 60%; }
.ext-fields { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.ext-fields li { padding: 4px 11px; border: 1px solid rgba(111, 181, 163, 0.45); border-radius: 999px; background: rgba(10, 18, 32, 0.5); color: var(--jade); font-size: 12.5px; font-weight: 600; }
/* 메인: 분야 표시와 ‘인연옥 들어가기’ 버튼 사이 숨 쉴 간격 */
.ext-hero .b-hero-actions { margin-top: 30px; }
.ext-hero .hero-meta { margin-top: 12px; }

/* ═══ 캐릭터와 방이 함께 움직이는 영상 (assets/rooms/<방>/scene.mp4) — 방 배경 · 캐릭터 그림 대신 화면 전체에 ═══ */
.scene-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; background: #0b111d; }
.room-fixed .scene-video { z-index: 1; }
.ask-bg .scene-video { z-index: 1; }
/* 영상 위쪽 글자 띠 자르기: --crop = 띠 높이 / 영상 높이 (폰은 세로로 꽉 차므로 높이 기준) */
.scene-video[style*="--crop"] { top: calc(-100% * var(--crop) / (1 - var(--crop))); height: calc(100% / (1 - var(--crop))); bottom: auto; }
.ask-bg .ask-bg-shade { z-index: 3; }
@keyframes sceneIn { from { transform: scale(1.12); filter: brightness(0.6); } to { transform: none; filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  .is-enter-fx .room-fixed .scene-video, .is-enter-fade .room-fixed .scene-video, .char-intro .scene-video { transform-origin: 50% 25%; animation: sceneIn 2.4s cubic-bezier(.22, .7, .2, 1) both; }
}

/* ═══ 정지 그림을 살아 있게 — 캐릭터 숨쉬기 · 배경 흐름(입체감) · 등불 일렁임 · 빛가루 ═══ */
@keyframes breatheLive {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  30% { transform: translateY(-6px) scale(1.022) rotate(-0.35deg); }
  60% { transform: translateY(-3px) scale(1.012) rotate(0.25deg); }
}
@keyframes roomDrift { from { transform: scale(1.04) translate(-1.2%, 0); } to { transform: scale(1.1) translate(1.2%, -1%); } }
@keyframes flicker { 0%, 100% { opacity: 0.55; } 18% { opacity: 0.8; } 22% { opacity: 0.62; } 47% { opacity: 0.9; } 52% { opacity: 0.7; } 78% { opacity: 0.85; } }
.lamp-flicker { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(28% 22% at 10% 42%, rgba(255, 170, 80, 0.32), transparent 70%), radial-gradient(30% 24% at 92% 46%, rgba(255, 170, 80, 0.22), transparent 70%); opacity: 0.6; }
canvas.motes { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.ask-bg .lamp-flicker, .ask-bg canvas.motes { z-index: 2; }
.room-scene .rs-img { transform-origin: 50% 40%; }
@media (prefers-reduced-motion: no-preference) {
  .room-fixed .char-breathe, .ask-bg .char-breathe { animation: breatheLive 5.2s ease-in-out infinite; }
  .room-fixed .char-intro .char-breathe, .ask-bg.char-intro .char-breathe { animation: charIntro 2.6s cubic-bezier(.22, .7, .2, 1) both, breatheLive 5.2s 2.6s ease-in-out infinite; }
  .room-fixed .room-scene .rs-img, .ask-bg .ask-bg-room .rs-img { animation: roomDrift 16s ease-in-out infinite alternate; }
  .lamp-flicker { animation: flicker 3.8s steps(1, end) infinite, flicker 5.3s ease-in-out infinite; }
}

/* ═══ 방 고르기 카드 — 상담방 그림 배경 + 오른쪽 캐릭터 크게 + 왼쪽 글자 (문 그림 · 원형 얼굴 없음) ═══
 * 카드 높이를 정해 두고(container), 캐릭터 그림은 얼굴이 카드 위쪽 30% 높이 · 가로 70% 지점에 오도록 놓는다.
 */
.door-list { gap: 14px; }
.char-card { display: block; position: relative; height: 228px; padding: 0; overflow: hidden; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.08); background: #0b111d; container-type: size; text-decoration: none; color: var(--text); grid-template-columns: none; }
.char-card.is-last { border-color: color-mix(in srgb, var(--lamp) 55%, transparent); }
.cc-bg { position: absolute; inset: 0; background: var(--card-bg) 50% 35% / cover no-repeat; filter: brightness(0.82) saturate(0.95); }
.cc-char { position: absolute; z-index: 1; top: calc(30cqh - var(--fyn) * 150cqh); left: calc(70cqw - var(--fx) * 120cqh); height: 150cqh; aspect-ratio: 4 / 5; }
.cc-char img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.cc-char.no-char { display: none; }
.cc-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(7, 11, 20, 0.94) 0%, rgba(7, 11, 20, 0.82) 38%, rgba(7, 11, 20, 0.25) 62%, transparent 78%), linear-gradient(0deg, rgba(7, 11, 20, 0.55), transparent 40%); }
.cc-info { position: absolute; z-index: 3; left: 18px; top: 18px; bottom: 16px; width: 56%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cc-field { padding: 2px 9px; border: 1px solid rgba(111, 181, 163, 0.45); border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--jade); }
.cc-title { margin-top: 4px; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -0.04em; color: #fff; word-break: keep-all; text-wrap: balance; }
.cc-host { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.cc-host b { font-family: var(--font-room); font-size: 16px; font-weight: 700; color: var(--lamp); }
.cc-host span { font-size: 12px; line-height: 1.4; color: var(--text-2); word-break: keep-all; }
.cc-go { margin-top: auto; padding: 8px 14px; border-radius: 999px; background: rgba(239, 227, 194, 0.94); color: #10131c; font-size: 13px; font-weight: 800; white-space: nowrap; }
.char-card:active { transform: scale(0.985); }
.char-card:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
@media (max-width: 340px) { .char-card { height: 236px; } .cc-title { font-size: 19px; } .cc-info { width: 60%; } }
.sound-toggle { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.sound-toggle[aria-pressed="true"] { color: var(--lamp-main); border-color: rgba(239, 227, 194, 0.5); }
.room-menu-note { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
/* 짧은 화면: 오래된 말풍선은 숨겨서 캐릭터 얼굴을 가리지 않게 */
@media (max-height: 720px) { .chat-log .chat:not(.chat--now):not(:nth-last-child(-n+3)) { display: none; } .chat-log { padding-top: 34vh; } }
@media (max-height: 620px) { .chat-log .chat:not(.chat--now):not(:nth-last-child(-n+2)) { display: none; } }
.cc-info { width: 54%; }
@media (max-width: 340px) { .cc-info { width: 55%; } .cc-host span { font-size: 11.5px; } }

/* ═══ 첫 화면 문구 · 버튼 ═══ */
.ext-hero .b-hero-sub2 { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--lamp-main); letter-spacing: -0.02em; }
.ext-enter.is-busy { opacity: 0.75; pointer-events: none; }

/* ═══ 오프닝: 외관으로 다가가는 층 (외관 그림 1.6배까지만) ═══ */
.ext-approach { position: fixed; top: 0; bottom: 0; z-index: 999; overflow: hidden; background: #0a1220; pointer-events: none; }
.ext-approach-img { position: absolute; inset: 0; background: url(../assets/rooms/exterior.webp) 50% 30% / cover no-repeat; transform-origin: 50% 40%; will-change: transform; }

/* ═══ 선택 화면: 네 사람이 함께 서 있는 무대 ═══ */
.hall-head { padding: 8px 0 12px; }
.hall-title { font-size: 26px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.3; text-wrap: balance; }
.hall-title:focus { outline: none; }
.hall-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.hall-stage { position: relative; height: min(76vh, 620px); min-height: 520px; margin: 0 calc(var(--gutter) * -1); overflow: hidden; container-type: size; background: #0b111d; }
.hall-bg { position: absolute; inset: 0; background: var(--hall-bg) 50% 30% / cover no-repeat; filter: brightness(0.78); }
.hall-floor { position: absolute; inset: auto 0 0 0; height: 30%; z-index: 5; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(10, 18, 32, 0.85) 70%, var(--bg)); }
.hall-stage canvas.motes { z-index: 6; }
.hall-fig { position: absolute; display: block; height: calc(var(--h) * 1cqh); aspect-ratio: 4 / 5; top: calc(var(--ty) * 1cqh - var(--fyn) * var(--h) * 1cqh); left: calc(var(--tx) * 1cqw - var(--fx) * var(--h) * 0.8cqh); text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.hall-fig--back { z-index: 2; }
.hall-fig--front { z-index: 4; }
.hall-img { display: block; width: 100%; height: 100%; }
.hall-img img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5)); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%); }
.hall-fig--back .hall-img img { filter: brightness(0.86) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.hall-tag { position: absolute; z-index: 7; left: calc(var(--fx) * 100%); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 11px 6px; border-radius: 12px; background: rgba(8, 12, 22, 0.72); border: 1px solid rgba(255, 255, 255, 0.12); white-space: nowrap; pointer-events: none; }
.hall-tag--above { top: calc(var(--fyn) * 100% - 21%); }
.hall-tag--below { top: calc(var(--fyn) * 100% + 15%); }
.hall-tag b { font-family: var(--font-room); font-size: 14.5px; font-weight: 700; color: #fff; }
.hall-tag span { font-size: 11px; color: var(--jade); font-weight: 700; }
.hall-fig:focus-visible .hall-tag { outline: 2px solid var(--lamp-main); }
.hall-fig:active .hall-img { transform: scale(0.985); }
.hall-cards { margin-top: 4px; }
.hall-cards .sec-title { font-size: 18px; margin-bottom: 12px; }
@media (max-width: 340px) { .hall-tag b { font-size: 13px; } .hall-tag { padding: 4px 9px 5px; } }
/* 네 사람이 차례로 등장 (오프닝 직후) */
@keyframes hallIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .is-enter-intro .hall-fig { animation: hallIn 0.55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(0.12s + var(--i) * 0.16s); }
  .is-enter-intro .hall-bg { animation: sceneIn 1.2s cubic-bezier(.22, .7, .2, 1) both; }
  .hall-fig .hall-img { animation: breatheLive 5.6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); transform-origin: 50% 35%; }
}
.is-enter-fade { animation: roomFade 0.25s ease both; }
.ext-enter::after { display: none; }

/* ═══ 상담방 입장: 캐릭터가 말을 건다 → 안내 버튼 → 아래 상품 고르기 · 정보 입력 ═══
 * 첫 화면(폰 높이) 안에 얼굴 · 대사창 · 버튼이 함께 보이도록 높이를 화면에 맞춘다. 대사창은 가슴 아래쪽.
 */
.room-host { height: clamp(190px, 40vh, 380px); min-height: 0; }
.room-fixed:not(:has(.room-front)) .room-char.is-cutout { top: 9%; height: 56%; }
.room-fixed:not(:has(.room-front)) .room-char.is-cutout img { transform: scale(min(var(--zoom, 1.18), 1.08)); }
.vn-dlg { position: relative; margin-top: 0; padding: 14px 18px 16px; border-radius: 18px; background: rgba(12, 20, 38, 0.82); border: 1px solid rgba(160, 180, 220, 0.22); box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.8); cursor: pointer; }
.vn-name { position: absolute; top: -14px; left: 14px; margin: 0; padding: 4px 12px; border-radius: 10px; background: #18243d; border: 1px solid color-mix(in srgb, var(--lamp) 50%, transparent); }
.vn-name b { font-family: var(--font-room); font-size: 14px; font-weight: 700; color: var(--lamp); }
.vn-text { margin-top: 6px; min-height: 3.1em; font-size: 16px; line-height: 1.6; color: #f1efe8; }
.vn-dlg.is-typing .vn-text::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--text-2); animation: caret 1s steps(1) infinite; }
.room-cta { display: flex; justify-content: center; align-items: center; margin: 12px 0 0; padding: 14px 18px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 16px; font-weight: 800; text-decoration: none; box-shadow: 0 12px 28px -14px rgba(239, 227, 194, 0.7); }
.room-cta:active { transform: scale(0.99); }
.room-menu { scroll-margin-top: 82px; margin-top: 18px; }
.room-menu-host { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rmh-face { position: relative; flex: 0 0 42px; width: 42px; height: 42px; }
.rmh-face .face-crop { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; border: 1.5px solid var(--lamp); background: #1a1410; }
.rmh-face .face-crop img { position: absolute; left: var(--fl); top: var(--ft); width: var(--fw); max-width: none; height: auto; }
.room-menu-host p { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.room-menu-host b { color: var(--lamp); margin-right: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .is-enter-fx .room-dlg, .is-enter-fade .room-dlg { animation: roomUp 0.45s 0.05s cubic-bezier(.2, .8, .2, 1) both; }
  .is-enter-fx .room-cta, .is-enter-fade .room-cta { animation: roomUp 0.45s 0.2s cubic-bezier(.2, .8, .2, 1) both; }
}
@media (max-height: 680px) { .room-host { height: clamp(170px, 34vh, 300px); } .vn-text { font-size: 15px; min-height: 0; } }

/* ═══ 선택 화면 이름표: 얼굴을 가리지 않게 — 뒷줄은 어깨, 앞줄은 가슴 높이 ═══ */
.hall-tag--above { top: calc(var(--fyn) * 100% + 17%); }
.hall-tag--below { top: calc(var(--fyn) * 100% + 23%); }
.hall-stage > .hall-tag { position: absolute; z-index: 8; transform: translateX(-50%); }
@media (prefers-reduced-motion: no-preference) { .is-enter-intro .hall-stage > .hall-tag { animation: roomFade 0.5s 0.9s ease both; } }

/* ═══ 상담방 안 정보 입력 ═══ */
.room-form { scroll-margin-top: 82px; margin-top: 16px; padding: 18px 16px 20px; border-radius: 22px; background: rgba(10, 16, 28, 0.92); border: 1px solid var(--line-strong); }
.room-form-title { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.room-form-for { margin-top: 2px; font-size: 13px; color: var(--jade); }
.rf-block { margin: 14px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.rf-legend { padding: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--lamp-main); }
.rf-row { display: grid; gap: 6px; margin-top: 12px; }
.rf-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.rf-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rf-input { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; background: rgba(255, 255, 255, 0.04); color: #fff; font: inherit; font-size: 16px; }
.rf-input:focus { outline: none; border-color: var(--lamp-main); }
.rf-input:disabled { opacity: 0.4; }
select.rf-input { appearance: auto; }
.rf-line .rf-input { flex: 1; }
.rf-seg { display: flex; gap: 6px; }
.rf-seg label { flex: 1; }
.rf-seg--sm { flex: none; }
.rf-seg input, .rf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rf-seg span, .rf-chip span { display: block; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); color: var(--text-2); font-size: 14px; font-weight: 700; text-align: center; white-space: nowrap; cursor: pointer; }
.rf-seg input:checked + span, .rf-chip input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.rf-seg input:focus-visible + span, .rf-chip input:focus-visible + span { outline: 2px solid var(--lamp-main); outline-offset: 2px; }
.rf-clock { display: flex; flex: 1; align-items: center; gap: 4px; min-width: 0; }
.rf-clock .rf-input { text-align: center; }
.rf-clock span { color: var(--muted); font-weight: 800; }
.rf-chip { position: relative; flex: none; }
.rf-leap { margin-top: 8px; }
.rf-submit { width: 100%; margin-top: 18px; border: 0; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.room-form .field-error { margin-top: 6px; }
.room-form .privacy-note { margin-top: 12px; }

/* ═══ 위쪽 띠 배경음 버튼 ═══ */
.bgm-btn { border: 1px solid var(--line-strong); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; }
.bgm-btn.is-on { color: #10131c; background: var(--lamp-main); border-color: var(--lamp-main); }

/* ═══ 문 열림 장면의 문 — 짙은 옻칠 나무 · 금빛 장식 · 창호지 빛 · 아래 나무판(궁판) ═══
 * 캐릭터 · 방 그림과 어울리게 CSS로 다시 그린 문. 그림 파일(frame · door-left · door-right)이 있으면 그 그림이 위에 덮인다.
 */
.door-fx .door { --wood: #24160c; --fw: 16px; }
.fx-backdrop { background: radial-gradient(60% 45% at 50% 50%, color-mix(in srgb, var(--lamp) 16%, transparent), transparent 70%), #070b14; }
.door-fx .door-opening { background: #0b0806; }
.door-fx .door-frame {
  border: 16px solid transparent;
  border-image: linear-gradient(180deg, #3e2715 0%, #23150b 45%, #3a2414 100%) 1;
  box-shadow: inset 0 0 0 1px rgba(214, 174, 98, 0.6), inset 0 0 0 5px rgba(16, 9, 4, 0.85), inset 0 0 0 6px rgba(214, 174, 98, 0.25), 0 40px 80px rgba(0, 0, 0, 0.65);
}
.door-fx .door-frame::before { content: ''; position: absolute; left: 50%; top: -16px; width: 46%; height: 16px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(214, 174, 98, 0.55) 20%, rgba(240, 206, 140, 0.8) 50%, rgba(214, 174, 98, 0.55) 80%, transparent); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); opacity: 0.55; }
.door-fx .door-leaf {
  border: 0; padding: 11px; background-origin: content-box, content-box, border-box, content-box, content-box, content-box; background-clip: border-box;
  background-image: linear-gradient(#20130a, #20130a), linear-gradient(180deg, #43291a, #2a190d 60%, #1f1209), var(--img-l), var(--lat1), var(--lat2), radial-gradient(75% 55% at 50% 42%, #f8e6bf 0%, #e3c28a 55%, #b38652 100%);
  background-size: 100% 3px, 100% 25%, 100% 100%, var(--lat1-size), var(--lat2-size), 100% 100%;
  background-position: 0 75%, 0 100%, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  box-shadow: inset 0 0 0 10px #2b1a0e, inset 0 0 0 11px rgba(214, 174, 98, 0.45), inset 0 0 30px rgba(0, 0, 0, 0.45);
}
.door-fx .door-leaf--r { background-image: linear-gradient(#20130a, #20130a), linear-gradient(180deg, #43291a, #2a190d 60%, #1f1209), var(--img-r), var(--lat1), var(--lat2), radial-gradient(75% 55% at 50% 42%, #f8e6bf 0%, #e3c28a 55%, #b38652 100%); }
/* 아래 나무판의 금선 장식 */
.door-fx .door-leaf::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 6%; height: 12%; border: 1px solid rgba(214, 174, 98, 0.5); border-radius: 3px; box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(20, 12, 6, 0.4); pointer-events: none; }
/* 문고리: 두 문짝이 만나는 쪽의 금빛 둥근 고리 */
.door-fx .door-leaf::before { content: ''; position: absolute; z-index: 2; top: 54%; width: 16px; height: 16px; border: 2px solid #d9b46a; border-radius: 50%; box-shadow: 0 0 8px rgba(217, 180, 106, 0.55), inset 0 0 4px rgba(0, 0, 0, 0.6); pointer-events: none; }
.door-fx .door-leaf--l::before { right: 8px; }
.door-fx .door-leaf--r::before { left: 8px; }
.door-fx .leaf-glow { bottom: 25%; }
.door-fx .door-seam { background: linear-gradient(180deg, transparent, #fff3d6 15%, #ffe2a8 85%, transparent); width: 3px; margin-left: -1.5px; }
/* 이름표: 이름 · 분야 · 고민 안내(최대 두 줄) — 얼굴을 가리지 않게 폭을 제한 */
.hall-stage > .hall-tag { max-width: 44cqw; padding: 5px 10px 6px; white-space: normal; text-align: center; }
.hall-stage > .hall-tag b { white-space: nowrap; }
.hall-stage > .hall-tag i { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-style: normal; font-size: 11px; line-height: 1.35; color: var(--text-2); word-break: keep-all; }
@media (max-width: 340px) { .hall-stage > .hall-tag { max-width: 46cqw; padding: 4px 8px 5px; } .hall-stage > .hall-tag i { font-size: 10.5px; } }

/* ═══ 캐릭터 칸: 화면 비율과 상관없이 그림 비율(4:5) 그대로 — 넓고 낮은 화면에서 얼굴만 확대되지 않게 ═══ */
.room-fixed:not(:has(.room-front)) .room-char.is-cutout,
.ask-bg.is-cutout:not(:has(.room-front)) .ask-bg-breathe {
  left: 0; right: 0; margin: 0 auto; width: auto; max-width: 100%; aspect-ratio: 4 / 5; overflow: visible;
}
.room-fixed:not(:has(.room-front)) .room-char.is-cutout img,
.ask-bg.is-cutout:not(:has(.room-front)) .ask-bg-img {
  object-fit: contain; object-position: 50% 0; transform: scale(1.04); transform-origin: 50% 0;
}

/* ═══ 질문 화면: 작은 화면에서도 답 버튼까지 한 화면에 ═══
 * 위 여백 대신 아래에서부터 쌓고(말풍선은 얼굴 아래), 지난 말풍선 수 · 글씨 · 버튼 간격을 화면 높이에 맞춰 줄인다.
 */
@media (max-height: 960px) {
  .story--chat .chat-log { padding-top: 12px; gap: 6px; }
  .chat-log .chat:not(.chat--now):not(.chat--react):not(:nth-last-child(-n+3)) { display: none; }
  .story--chat .ask-panel { padding: 8px 0 calc(14px + env(safe-area-inset-bottom)); }
  .ask-prompt { font-size: 23px; margin-bottom: 8px; }
  .ask-choices { gap: 7px; }
  .ask-choice span { padding: 11px 18px; font-size: 15px; }
  .ask-choices:not(.ask-choices--right) .ask-choice span { padding: 10px 16px; font-size: 14px; line-height: 1.35; }
  .story--chat .ask-submit { margin-top: 10px; }
  .story--chat .ask-privacy { margin-top: 8px; padding: 8px 10px; font-size: 11px; }
  .chat { padding: 9px 14px; font-size: 14.5px; }
}
@media (max-height: 680px) {
  .chat-log .chat:not(.chat--now):not(:nth-last-child(-n+2)) { display: none; }
  .ask-prompt { font-size: 21px; margin-bottom: 6px; }
  .ask-choice span { padding: 9px 16px; font-size: 14.5px; }
  .ask-choices:not(.ask-choices--right) .ask-choice span { padding: 8px 14px; font-size: 13.5px; }
  .ask-field--big { font-size: 24px; }
  .story--chat .ask-region { margin-top: 8px; }
  .story--chat .field-hint { display: none; }
}
@media (max-height: 600px) {
  .chat-log .chat:not(.chat--now) { display: none; }
  .ask-tag { display: none; }
  .ask-choices { gap: 6px; }
  .story--chat .ask-privacy { display: none; }
}
/* 결과 첫 화면 배너: 짧은 화면에서는 배너를 줄여 아래 내용이 조금 보이게 (얼굴은 위쪽이라 그대로 보임) */
body[data-view="result"] .res-host { height: clamp(300px, 56vh, 400px); }

/* ═══ 상담방 = 대화형 (질문 화면과 같은 무대): 캐릭터 크게 · 인사 말풍선 · 아래에서 고민 고르기 ═══ */
body[data-view="room"] .site-header, body[data-view="room"] .tabbar, body[data-view="room"] .site-footer { display: none; }
body[data-view="room"] .app { padding: 0 var(--gutter); }
.room-chip { pointer-events: none; font-size: 12px; }
.story--room .story-top { grid-template-columns: auto 1fr; }
.story--room .room-chip { justify-self: center; background: rgba(0, 0, 0, 0.45); }
.room-choices { display: grid; gap: 8px; }
.room-choices .room-item { position: relative; padding: 0; border: 0; background: none; box-shadow: none; }
.room-pick { display: block; padding: 12px 64px 12px 16px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 18px; background: rgba(10, 12, 20, 0.82); color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.room-pick:active { transform: scale(0.99); }
a.room-pick:focus-visible { outline: 2px solid var(--lamp-main); outline-offset: 2px; }
.room-item.is-last .room-pick { border-color: var(--lamp-main); }
.room-item.is-soon .room-pick { opacity: 0.55; }
.room-pick-top { display: block; line-height: 1; }
.room-pick-top .cat-status { margin: 0; font-size: 10.5px; }
.room-choices .room-item-title { display: block; margin-top: 6px; font-size: 16px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.room-choices .room-item-desc { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.room-choices .ri-more { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text-2); font-size: 11.5px; text-decoration: none; }
.room-greet { cursor: pointer; }
@media (max-height: 700px) { .room-choices .room-item-desc { display: none; } .room-pick { padding: 10px 60px 10px 14px; } }

/* ═══ 결과 = 대화형: 캐릭터 그림 위로 말풍선 · 카드가 쌓이고, 아래에서 다음 얘기를 골라 답한다 ═══ */
body[data-view="result"] .site-header, body[data-view="result"] .tabbar, body[data-view="result"] .site-footer { display: none; }
body[data-view="result"] .app { padding: 0 var(--gutter); }
.res-chat { display: flex; flex-direction: column; gap: 10px; padding: clamp(220px, 44vh, 400px) 0 calc(150px + env(safe-area-inset-bottom)); }
.res-chat .chat { opacity: 1; }
.rc-hero { max-width: 94%; padding: 16px 18px; background: rgba(10, 12, 20, 0.86); }
.rc-hero .solo-hero-title { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: -0.04em; color: #fff; }
.rc-hero .solo-hero-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.rc-saju { max-width: 94%; width: 94%; background: rgba(10, 12, 20, 0.86); }
.rc-saju-say { margin: 0 0 8px; }
.rc-saju .sj-fold { margin-top: 6px; }
.rc-saju .interp-draft { margin: 8px 0 0; }
.rc-turn { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.rc-turn[hidden] { display: none; }
.rc-card { align-self: flex-start; width: 94%; margin: 0; border-top-left-radius: 6px; background: rgba(12, 15, 24, 0.9); border-color: rgba(255, 255, 255, 0.14); }
.rc-card.is-focus { border-color: color-mix(in srgb, var(--lamp) 60%, transparent); }
.rc-turn .chat--me { max-width: 80%; }
@media (prefers-reduced-motion: no-preference) {
  .rc-turn.is-new > * { animation: chatIn 0.35s ease both; }
  .rc-turn.is-new > :nth-child(2) { animation-delay: 0.25s; }
  .rc-turn.is-new > :nth-child(3) { animation-delay: 0.5s; }
  .rc-turn.is-new > :nth-child(4) { animation-delay: 0.7s; }
  .rc-hero, .rc-saju { animation: chatIn 0.4s ease both; }
  .rc-saju { animation-delay: 0.3s; }
}
.rc-reply { position: fixed; z-index: 5; left: 50%; bottom: 0; width: min(100vw, var(--col)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 26px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(8, 10, 16, 0.92) 34%); }
.rc-next { max-width: 88%; padding: 11px 18px; border: 1.5px solid color-mix(in srgb, var(--lamp) 55%, rgba(255,255,255,0.3)); border-radius: 18px 18px 6px 18px; background: rgba(10, 12, 20, 0.85); color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; text-align: right; cursor: pointer; }
.rc-next[hidden] { display: none; }
.rc-pay { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--moon, #f3e7c8); color: #141215; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.rc-pay .btn-sub { font-size: 11px; font-weight: 500; opacity: 0.7; }
.story--chat > .rc-reply { position: fixed; z-index: 5; }
.rc-pay { padding: 9px 18px; font-size: 15px; }
@media (max-height: 680px) { .rc-reply { padding-top: 18px; gap: 6px; } .rc-next { padding: 9px 15px; font-size: 13.5px; } .rc-pay .btn-sub { display: none; } }

/* ═══ 오프닝: 그린 문 없이 한옥 사진 속 불 켜진 문으로 다가가 빛 속으로 ═══ */
.ext-approach { pointer-events: auto; }
.ext-approach-img { transition: opacity 0.3s ease; }
.op-light { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 55% at 50% 46%, #fff8e8 0%, #f8e2b4 45%, #e8c286 80%, #c99a5c 100%); }
.ext-skip { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 2; }

/* ═══ 결과 미리보기: 첫 풀이는 전부 · 나머지는 두 문장 + 흐림 ═══ */
.blind-full p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--text); }
.blind-text.is-open { -webkit-mask-image: none; mask-image: none; color: var(--text); }
.blind-text.is-open::after { content: none; }
.blur-txt { margin: 2px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--text-2); filter: blur(5px); user-select: none; pointer-events: none; }
.analyze-privacy { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.45); font-size: 12px; line-height: 1.5; color: var(--text-2); }
.rv-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.rv-list li { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.rv-body { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.rv-meta { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }

/* ═══ 방 문 열림: 그림 문 (assets/rooms/door — 문틀 · 왼쪽 · 오른쪽 문짝을 따로 움직임) ═══ */
.door-fx.is-img-door .door { --fw: 0px; }
.door-fx.is-img-door .door-frame { inset: 0; border: 0; background: url(../assets/rooms/door/frame.webp?v=20261109-5) center / 100% 100% no-repeat; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.door-fx.is-img-door .door-opening { inset: 7.03% 7.81% 5.21% 7.81%; background: #0b0806; }
.door-fx.is-img-door .door-leaf { border: 0; box-shadow: none; background: url(../assets/rooms/door/door-left.webp?v=20261109-5) center / 100% 100% no-repeat; }
.door-fx.is-img-door .door-leaf--l { left: 0; width: 50.46%; }
.door-fx.is-img-door .door-leaf--r { left: auto; right: 0; width: 49.54%; background-image: url(../assets/rooms/door/door-right.webp?v=20261109-5); }
.door-fx.is-img-door .door-leaf::before, .door-fx.is-img-door .door-leaf::after { content: none; }
.door-fx.is-img-door .leaf-glow { display: none; }
.door-fx.is-img-door .door-seam { width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, transparent, #ffd89a 20%, #fff1d0 50%, #ffd89a 80%, transparent); filter: blur(1px); }
.door-fx.is-img-door .door-seam { left: 50.46%; }
.door-fx.is-img-door .door-leaf--l { background-image: url(../assets/rooms/door/door-left.webp?v=20261109-5); }
.door-fx.is-img-door .door-frame { border-image: none; }
.door-fx.is-img-door .door-frame::before, .door-fx.is-img-door .door-frame::after { content: none; }
.door-fx.is-img-door .door-leaf { padding: 0; background-size: 100% 100%; background-position: 0 0; background-repeat: no-repeat; background-origin: border-box; }

/* ═══ 전체 보고서 = 대화형 ═══ */
.story--full .res-chat { padding-top: clamp(200px, 40vh, 360px); }
.fr-chat .fr-dev { align-self: center; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); font-size: 11.5px; color: var(--text-2); }
.fr-cover-kicker { margin: 0 0 6px; font-size: 11.5px; letter-spacing: 0.18em; color: var(--jade); }
.fr-toc { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.fr-toc a { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.45; }
.fr-toc a span { flex: none; font-size: 11.5px; color: var(--jade); font-weight: 700; }
.fr-head-card { padding-bottom: 16px; }
.fr-bubble { padding: 16px 18px; border-radius: 6px 18px 18px 18px; border: 1px solid rgba(255, 255, 255, 0.14); }
.fr-bubble .fr-card, .fr-bubble .fr-note, .fr-bubble .profile-persona { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.fr-bubble .interp-title, .fr-bubble .persona-nick { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.fr-bubble p { font-size: 14.5px; line-height: 1.75; }
.story--full .rc-next, .story--full .rc-pay { text-decoration: none; }
.story--full .rc-pay { color: #141215; }
.fr-step { pointer-events: none; justify-self: end; background: rgba(0, 0, 0, 0.45); }
body[data-view="full"] .site-header, body[data-view="full"] .tabbar, body[data-view="full"] .site-footer { display: none; }
body[data-view="full"] .app { padding: 0 var(--gutter); }
.fr-steps { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fr-steps li { padding: 10px 12px; border-left: 2px solid color-mix(in srgb, var(--lamp) 60%, transparent); background: rgba(255, 255, 255, 0.04); border-radius: 0 12px 12px 0; }
.fr-step-label { display: block; font-size: 12px; font-weight: 700; color: var(--jade); }
.fr-steps li p { margin: 3px 0 0; }

/* ═══ 결과 화면 칸마다 다른 재질 (모두 반투명, 눈이 쉬도록 색 · 질감 · 모양을 나눔) ═══ */
/* 사주 칸: 따뜻한 나무빛 유리 */
.rc-saju { background: rgba(38, 26, 16, 0.78); border-color: rgba(214, 174, 98, 0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* 챕터 풀이: 남색 유리 + 등불색 세로 띠 + 큰 장 번호 */
.rc-card.solo-ch { position: relative; padding-left: 22px; background: linear-gradient(165deg, rgba(22, 30, 54, 0.86), rgba(10, 14, 26, 0.9)); border: 1px solid rgba(140, 170, 230, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; }
.rc-card.solo-ch::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--lamp), color-mix(in srgb, var(--lamp) 20%, transparent)); }
.rc-card.solo-ch .solo-ch-no { color: color-mix(in srgb, var(--lamp) 70%, #fff); }
.rc-card.solo-ch .solo-locked { background: rgba(0, 0, 0, 0.28); }
.rc-card.solo-ch .blind-check { background: rgba(70, 160, 140, 0.12); border-left-color: var(--jade); border-radius: 0 12px 12px 0; }
/* 보고서 소개: 한지 종이 */
.report-preview.rc-card { background: linear-gradient(170deg, rgba(246, 236, 212, 0.94), rgba(230, 214, 182, 0.92)); border: 0; color: #2a2118; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); border-radius: 6px 20px 20px 20px; }
.report-preview .solo-ch-no { color: #8a5a2b; }
.report-preview .solo-ch-title { color: #1d1610; }
.report-preview .solo-ch-desc { color: #5a4a3a; }
.report-preview .rp-page { background: rgba(255, 252, 244, 0.7); border: 1px solid rgba(120, 90, 50, 0.22); box-shadow: 0 2px 6px rgba(80, 50, 20, 0.12); }
.report-preview .rp-no { color: #a0642c; }
.report-preview .rp-title { color: #2a2118; }
.report-preview .rp-page i { background: rgba(90, 70, 50, 0.22); }
/* 후기: 밝은 유리 말풍선 + 따옴표 */
.rc-reviews.rc-card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.rc-reviews .rv-list li { position: relative; padding-left: 34px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, 0.07); }
.rc-reviews .rv-list li::before { content: '“'; position: absolute; left: 12px; top: 4px; font: 700 26px/1 Georgia, serif; color: color-mix(in srgb, var(--lamp) 70%, #fff); }
/* 결제 안내: 짙은 자주 + 금테 + 인장 */
#pay-box.rc-card { position: relative; background: linear-gradient(160deg, rgba(74, 20, 30, 0.88), rgba(36, 10, 16, 0.92)); border: 1px solid rgba(214, 174, 98, 0.55); box-shadow: inset 0 0 0 4px rgba(36, 10, 16, 0.6), inset 0 0 0 5px rgba(214, 174, 98, 0.25); border-radius: 18px; }
#pay-box.rc-card::after { content: '緣'; position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid rgba(214, 90, 80, 0.8); border-radius: 8px; color: rgba(230, 110, 100, 0.9); font: 700 20px/1 serif; transform: rotate(-6deg); }
#pay-box .solo-ch-no { color: #e2c27a; }
#pay-box .pay-rows div { border-top-color: rgba(214, 174, 98, 0.22); }
#pay-box .pay-rows dt { color: rgba(240, 220, 190, 0.65); }

/* ═══ 신뢰 설명 (상담방 선택 화면 · 캐릭터 목록 위) ═══ */
.trust { margin: 22px 0 6px; padding: 20px 18px 16px; border-radius: 20px; background: linear-gradient(170deg, rgba(246, 236, 212, 0.95), rgba(232, 218, 188, 0.93)); color: #2a2118; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.trust-title { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.04em; color: #1a130d; text-wrap: balance; }
.trust-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #5a4a3a; }
.trust-items { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.trust-items li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: rgba(255, 252, 244, 0.7); border: 1px solid rgba(120, 90, 50, 0.18); }
.trust-no { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1c2a46; color: #f3e7c8; font-size: 12px; font-weight: 800; }
.trust-items strong { display: block; font-size: 14.5px; color: #1a130d; }
.trust-items p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: #5a4a3a; }
.trust-more { margin-top: 12px; }
.trust-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #1c2a46; color: #f3e7c8; font-size: 13px; font-weight: 700; }
.trust-more summary::-webkit-details-marker { display: none; }
.trust-more summary::after { content: '▾'; font-size: 11px; }
.trust-more[open] summary::after { content: '▴'; }
.trust-more dl { margin: 12px 0 0; display: grid; gap: 10px; }
.trust-more dt { font-size: 13.5px; font-weight: 800; color: #1a130d; }
.trust-more dd { margin: 3px 0 0; font-size: 13px; line-height: 1.65; color: #4a3c2e; }

/* ═══ 결과 한 줄 아래 ‘이렇게 풀이한 이유’ ═══ */
.why { margin-top: 10px; }
.why summary { cursor: pointer; list-style: none; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); font-size: 12.5px; font-weight: 700; color: var(--text); }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: '▾'; font-size: 10px; }
.why[open] summary::after { content: '▴'; }
.why-rule { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.why-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.why-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.why-list strong { font-size: 13px; color: #fff; }
.why-list span { font-size: 12px; color: var(--text-2); }

/* ═══ 결제 안내: 제공 내용 · 가격 ═══ */
#pay-box .pay-rows div { grid-template-columns: 1fr; gap: 4px; }
#pay-box .pay-rows dt { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.pay-list, .pay-toc { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13.5px; line-height: 1.5; }
.pay-list.is-more li::marker { color: #e2c27a; }
.pay-note { display: block; font-size: 12px; color: rgba(240, 220, 190, 0.65); }
/* 선택 화면 단체 그림: 위 · 아래 · 양옆이 남색 배경으로 자연스럽게 풀어지게 */
.hall-stage { background: transparent; }
.hall-bg { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-composite: intersect; }

/* ═══ 상담방 고민 버튼: 안에 든 내용 태그 ═══ */
.room-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.room-tags i { font-style: normal; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--lamp) 14%, rgba(255, 255, 255, 0.04)); border: 1px solid color-mix(in srgb, var(--lamp) 30%, transparent); color: color-mix(in srgb, var(--lamp) 55%, #fff); font-size: 11px; font-weight: 600; line-height: 1.3; }

/* ═══ 받을 보고서 미리보기: 페이지를 작게 줄여 흘려 보여 줌 ═══ */
.mp-wrap { margin: 14px -18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mp-track { display: flex; gap: 10px; width: max-content; padding: 4px 18px 10px; }
.mp-dup { display: contents; }
@media (prefers-reduced-motion: no-preference) { .mp-track { animation: mpRoll 28s linear infinite; } .mp-wrap:hover .mp-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .mp-wrap { overflow-x: auto; } .mp-dup { display: none; } }
@keyframes mpRoll { to { transform: translateX(-50%); } }
.mp-page { flex: none; display: flex; flex-direction: column; gap: 6px; width: 108px; height: 152px; padding: 9px 9px 8px; border-radius: 6px; background: #fffaf0; box-shadow: 0 4px 12px rgba(80, 50, 20, 0.22), inset 0 0 0 1px rgba(120, 90, 50, 0.15); overflow: hidden; }
.mp-no { font-size: 7px; letter-spacing: 0.12em; color: #a0642c; font-weight: 700; }
.mp-title { font-size: 9.5px; line-height: 1.3; font-weight: 800; color: #2a2118; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-lines { display: grid; gap: 4px; margin-top: auto; }
.mp-lines i { display: block; height: 3px; border-radius: 2px; background: rgba(90, 70, 50, 0.22); }
.mp-lines i:nth-child(2n) { width: 80%; } .mp-lines i:nth-child(3n) { width: 62%; }
.mp-count { font-size: 7.5px; color: #8a6a4a; }
.mp-face { display: block; height: 46px; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #1c2a46, #0d1424); }
.mp-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.mp-quote { display: grid; place-items: center; height: 46px; border-radius: 6px; background: rgba(28, 42, 70, 0.1); color: #a0642c; font: 700 26px/1 Georgia, serif; }
.mp-bars { display: flex; align-items: flex-end; gap: 3px; height: 46px; padding: 4px; border-radius: 6px; background: rgba(28, 42, 70, 0.08); }
.mp-bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #c2843f, #e8c286); }
.mp-meter { display: grid; gap: 5px; align-content: center; height: 46px; padding: 0 4px; }
.mp-meter i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #1c2a46, #6a7fb0); }
.mp-list { display: grid; gap: 5px; align-content: center; height: 46px; }
.mp-list i { display: block; height: 10px; border-radius: 4px; background: rgba(28, 42, 70, 0.12); border-left: 3px solid #c2843f; }
.mp-saju { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; height: 46px; }
.mp-saju b { border-radius: 3px; background: rgba(90, 70, 50, 0.15); }
.mp-saju b.el-wood { background: #3f8f5a; } .mp-saju b.el-fire { background: #c9483f; } .mp-saju b.el-earth { background: #c99a3f; } .mp-saju b.el-metal { background: #d8d4cc; } .mp-saju b.el-water { background: #2f4f8f; }
.mp-cap { margin: 8px 0 12px; font-size: 12px; line-height: 1.5; color: #6a5a48; }
.room-choices .ri-more { top: 12px; transform: none; }
.room-choices .room-item-title { padding-right: 8px; }
.mp-talk { display: grid; gap: 4px; align-content: center; height: 46px; padding: 0 2px; }
.mp-talk i { display: block; height: 10px; width: 70%; border-radius: 6px 6px 6px 2px; background: #1c2a46; }
.mp-talk i:nth-child(2) { justify-self: end; width: 55%; border-radius: 6px 6px 2px 6px; background: #c2843f; }
.mp-talk i:nth-child(3) { width: 82%; }

/* ═══ 결과: 장 사이 캐릭터 + 둥근 말풍선 (톡톡 튀어나옴) ═══ */
.rc-pop { position: relative; height: 230px; margin: 2px -4px; }
.rc-pop-fig { position: absolute; left: 50%; bottom: 0; width: 62%; height: 100%; transform: translateX(-50%); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.rc-pop-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.rc-pop-b { position: absolute; z-index: 1; max-width: 46%; padding: 10px 14px 11px; border-radius: 16px; background: linear-gradient(160deg, rgba(30, 38, 64, 0.86), rgba(12, 16, 32, 0.9)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--lamp) 38%, transparent); color: #f3ead8; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; text-align: left; word-break: keep-all; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.rc-pop-b--a { top: 16px; border-bottom-right-radius: 4px; }
.rc-pop-b--b { bottom: 24px; border-top-left-radius: 4px; color: color-mix(in srgb, var(--lamp) 70%, #fff); border-color: color-mix(in srgb, var(--lamp) 60%, transparent); }
.rc-pop.is-flip .rc-pop-b--a { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
.rc-pop.is-flip .rc-pop-b--b { border-top-left-radius: 16px; border-top-right-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .rc-turn.is-new .rc-pop { animation: none; }
  .rc-turn.is-new .rc-pop-fig { animation: popFig 0.5s ease both 0.15s; }
  .rc-turn.is-new .rc-pop-b { animation: popIn 0.45s cubic-bezier(.2, .8, .2, 1) both; }
  .rc-turn.is-new .rc-pop-b--a { animation-delay: 0.45s; }
  .rc-turn.is-new .rc-pop-b--b { animation-delay: 0.95s; }
  .rc-pop-b { animation: popBob 3.6s ease-in-out infinite; }
  .rc-turn.is-new .rc-pop-b--a { animation: popIn 0.45s cubic-bezier(.2, .8, .2, 1) 0.45s both, popBob 3.6s ease-in-out 1s infinite; }
  .rc-turn.is-new .rc-pop-b--b { animation: popIn 0.45s cubic-bezier(.2, .8, .2, 1) 0.95s both, popBob 3.6s ease-in-out 1.6s infinite; }
}
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes popBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes popFig { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%); } }
.rc-pop { border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse 70% 80% at 50% 70%, color-mix(in srgb, var(--lamp) 26%, #18203a) 0%, #0c1020 62%, #070910 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.45); margin: 2px 0; }
.rc-pop-b--a { left: 10px; } .rc-pop.is-flip .rc-pop-b--a { right: 10px; left: auto; }
.rc-pop-b--b { right: 10px; } .rc-pop.is-flip .rc-pop-b--b { left: 10px; right: auto; }

/* ═══ 결제 양식 (서버 연결 시) ═══ */
.pay-form { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(214, 174, 98, 0.25); }
.pay-email { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: #e2c27a; }
.pay-email input { padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(214, 174, 98, 0.4); background: rgba(0, 0, 0, 0.35); color: #fff; font: inherit; font-size: 15px; font-weight: 500; }
.pay-email input:focus { outline: 2px solid #e2c27a; outline-offset: 1px; }
.pay-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: rgba(240, 220, 190, 0.85); cursor: pointer; }
.pay-agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #e2c27a; }
.pay-msg { min-height: 1em; margin: 0; font-size: 12.5px; color: #ffb4a8; }
.pay-submit[disabled] { opacity: 0.5; cursor: not-allowed; }
.pay-mock { margin: 0; font-size: 11.5px; color: rgba(240, 220, 190, 0.6); text-align: center; }
.fr-paid { color: var(--text); }

/* ═══ 첫 화면: 분야 탭 · 큰 배너 · 분야별 카드 줄 ═══ */
body[data-view="home"] .app { padding: 0; }
.home-cat { padding-bottom: 28px; }
.home-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter) 12px; background: linear-gradient(180deg, rgba(8, 11, 20, 0.96) 70%, rgba(8, 11, 20, 0)); scrollbar-width: none; }
.home-tabs::-webkit-scrollbar { display: none; }
.home-tab { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.home-tab.is-on { background: #f3e7c8; border-color: #f3e7c8; color: #141215; }

.home-hero { position: relative; margin-top: 4px; }
.hh-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 11%; scrollbar-width: none; }
.hh-track::-webkit-scrollbar { display: none; }
.hh-slide { flex: none; width: 78%; scroll-snap-align: center; }
.hh-count { position: absolute; top: 12px; right: calc(11% + 12px); z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }

.pc { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 18px; background: #0c1020; color: #fff; text-decoration: none; isolation: isolate; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); -webkit-tap-highlight-color: transparent; }
.pc--big { aspect-ratio: 4 / 5.4; border-radius: 22px; }
.pc:active { transform: scale(0.985); }
.pc-bg { position: absolute; inset: 0; z-index: -2; background: var(--bg) 50% 30% / cover no-repeat; filter: brightness(0.82) saturate(1.05); }
.pc-char { position: absolute; z-index: -1; left: 50%; bottom: 0; width: 108%; height: 100%; transform: translateX(-50%); object-fit: cover; object-position: 50% 4%; }
.pc-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0, transparent 30%, transparent 48%, color-mix(in srgb, var(--lamp) 10%, rgba(6, 8, 16, 0.8)) 74%, rgba(6, 8, 16, 0.95) 100%); }
.pc-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 4px; padding: 16px 16px 18px; }
.pc-chip { justify-self: start; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--lamp) 85%, #000); color: #141215; font-size: 11px; font-weight: 800; }
.pc-host { font-size: 12.5px; font-weight: 700; color: color-mix(in srgb, var(--lamp) 60%, #fff); }
.pc-title { font-family: 'Gowun Batang', serif; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); text-wrap: balance; word-break: keep-all; }
.pc--big .pc-title { font-size: 28px; }
.pc-desc { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.pc--brand .pc-bg { background-image: var(--bg); background-position: 50% 30%; filter: none; }
.pc--brand .pc-title { font-size: 44px; margin: 4px 0 2px; }
.pc-enter { justify-self: start; margin-top: 8px; padding: 10px 18px; border-radius: 999px; background: #f3e7c8; color: #141215; font-size: 14px; font-weight: 800; text-decoration: none; }

.home-row { margin-top: 28px; }
.home-row-kicker { margin: 0; padding: 0 var(--gutter); font-size: 12px; color: var(--text-2); }
.home-row-title { margin: 3px 0 12px; padding: 0 var(--gutter); font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.home-row-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
.home-row-track::-webkit-scrollbar { display: none; }
.home-row-track .pc { flex: none; width: 60%; scroll-snap-align: start; }
.home-row-track .pc-title { font-size: 19px; }
.pc--room .pc-char { filter: brightness(0.85); }
.home-cat .trust { margin: 32px var(--gutter) 0; }
.home-tabs { top: 58px; }
.pc--brand .b-eyebrow { letter-spacing: 0.06em; font-size: 10.5px; color: #141215; }
.pc--brand .b-hero-title { margin: 4px 0 2px; color: #fff; font-family: 'Gowun Batang', serif; font-size: 44px; line-height: 1.1; }
.pc--brand .b-hero-sub { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 13.5px; }
.home-hero { margin-top: 12px; }

/* ═══ 첫 화면 (캐릭터 중심): 브랜드 띠 · 탭 · 캐릭터 카드 ═══ */
.home-brand { position: relative; margin: 0 0 6px; padding: 120px var(--gutter) 18px; background: linear-gradient(180deg, rgba(8, 11, 20, 0.05) 0, rgba(8, 11, 20, 0.35) 45%, #080b14 100%), var(--bg) 50% 32% / cover no-repeat; }
.home-brand .b-eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.12em; color: #9fd3c7; }
.home-brand .b-hero-title { margin: 4px 0 4px; font-family: 'Gowun Batang', serif; font-size: 40px; line-height: 1.1; color: #fff; }
.home-brand .b-hero-sub { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.home-brand .b-hero-sub2 { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; color: #f3e7c8; }
.home-lead { margin: 4px var(--gutter) 12px; font-size: 13px; color: var(--text-2); }
.home-list { display: grid; gap: 14px; padding: 0 var(--gutter); }
.cc-topics { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 2px; white-space: nowrap; min-width: 0; } /* 풀이 주제 3개는 한 줄로 */
.cc-topics i { flex: none; font-style: normal; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); border: 1px solid color-mix(in srgb, var(--lamp) 40%, transparent); color: color-mix(in srgb, var(--lamp) 55%, #fff); font-size: 11px; font-weight: 600; }
.cc-topics::before { content: '풀이 주제'; align-self: center; margin-right: 2px; font-size: 10.5px; color: rgba(255, 255, 255, 0.6); }
.home-tabs { top: 58px; }

/* 방 선택지: 주제 · 상품 이름 · 상태 · 가격 */
.room-choices .room-item-title { margin-top: 0; font-size: 17px; }
.room-pick-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.room-pick-meta .cat-status { margin: 0; font-size: 10.5px; }
.room-price { font-size: 12.5px; font-weight: 800; color: color-mix(in srgb, var(--lamp) 60%, #fff); }
.room-panel.is-single .room-pick { border-color: color-mix(in srgb, var(--lamp) 60%, rgba(255,255,255,0.3)); }
body[data-view="home"] .site-header { background: rgba(8, 11, 20, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* 첫 화면: 분야별 칸 (제목 + 그 분야 캐릭터 카드) */
.home-list { gap: 26px; }
.home-sec { display: grid; gap: 10px; }
.home-sec-kicker { margin: 0; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--lamp) 70%, #fff); }
.home-sec-title { margin: -6px 0 2px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.home-sec-cards { display: grid; gap: 12px; }

/* ═══ 질문 화면: 지금 질문이 가장 잘 보이게 (‘나는…’은 작게) ═══ */
.story--chat .chat--now { max-width: 92%; padding: 14px 18px; font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; color: #fff; background: rgba(14, 18, 32, 0.94); border: 1.5px solid color-mix(in srgb, var(--lamp, #f3d08a) 55%, transparent); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.story--chat .ask-tag { padding: 4px 11px; background: color-mix(in srgb, var(--lamp, #f3d08a) 20%, rgba(0, 0, 0, 0.6)); color: color-mix(in srgb, var(--lamp, #f3d08a) 45%, #fff); font-size: 12px; font-weight: 700; }
.story--chat .ask-prompt, .story--chat .ask-prompt:is(h1, h2, p) { font-size: 17px; font-weight: 700; color: rgba(255, 255, 255, 0.62); text-shadow: none; margin-bottom: 10px; }
@media (max-height: 780px) { .story--chat .chat--now { font-size: 16.5px; padding: 12px 16px; } .story--chat .ask-prompt { font-size: 15px; margin-bottom: 8px; } }

/* 첫 화면 한옥 띠: 그림 가장자리를 위 · 아래 · 양옆 모두 남색으로 서서히 풀어지게 */
.home-brand { margin-top: -58px; padding-top: 170px; background: none; isolation: isolate; }
.home-brand::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bg) 50% 34% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.55) 14%, #000 30%, #000 52%, rgba(0, 0, 0, 0.45) 78%, transparent 100%), linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.55) 14%, #000 30%, #000 52%, rgba(0, 0, 0, 0.45) 78%, transparent 100%), linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect; }
.home-brand::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(8, 11, 20, 0.55) 80%, transparent); pointer-events: none; }
body[data-view="home"] .site-header { background: linear-gradient(180deg, rgba(8, 11, 20, 0.9) 0, rgba(8, 11, 20, 0.6) 65%, rgba(8, 11, 20, 0) 100%); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; }
.home-tabs { background: linear-gradient(180deg, rgba(8, 11, 20, 0.92) 0, rgba(8, 11, 20, 0.78) 70%, rgba(8, 11, 20, 0)); }
.home-tabs { background: linear-gradient(180deg, rgba(8, 11, 20, 0) 0, rgba(8, 11, 20, 0.82) 38%, rgba(8, 11, 20, 0.82) 72%, rgba(8, 11, 20, 0) 100%); margin-top: -14px; padding-top: 22px; }
.home-tabs-sentinel { display: block; height: 1px; }
.home-tabs.is-stuck { background: linear-gradient(180deg, rgba(8, 11, 20, 0.97) 0, rgba(8, 11, 20, 0.97) 80%, rgba(8, 11, 20, 0) 100%); }
body.is-scrolled[data-view="home"] .site-header { background: rgba(8, 11, 20, 0.97); }
.home-tabs.is-stuck { background: rgba(8, 11, 20, 0.97); box-shadow: 0 10px 14px -4px rgba(8, 11, 20, 0.9); }

/* ═══ 터치 폰 가벼운 모드 — 아이폰 사파리는 그래픽 메모리가 넘치면 페이지를 통째로 다시 불러온다 ═══
 * 화면 전체 흐림(backdrop-filter) · 빛가루/연기 캔버스 · 큰 그림 숨쉬기 · 깜빡임을 끄고, 레이어 미리 만들기(will-change)를 푼다.
 */
@media (hover: none) and (pointer: coarse) {
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  canvas.motes, canvas.smoke, canvas[data-motes], canvas[data-smoke] { display: none !important; }
  .char-breathe, .ask-bg-breathe, .ask-bg-room, .room-scene, .rs-img, .lamp-flicker, .ext-mist, .ext-glow, .hall-bg, .cc-bg, .cc-char img, .pc-bg { animation: none !important; will-change: auto !important; }
  .char-breathe, .fx-push, .fx-door, .door-leaf, .fx-room .room-scene, .ext-approach-img { will-change: auto !important; }
  .lamp-flicker { display: none !important; }
}

/* ═══ 다음 장 버튼: 눈에 띄게 · ‘다음 얘기 듣기 →’ + 몇 장 · 제목 ═══ */
.rc-next { display: grid; gap: 2px; justify-items: end; padding: 12px 18px; background: color-mix(in srgb, var(--lamp, #f3d08a) 30%, #121a30); border: 1.5px solid color-mix(in srgb, var(--lamp, #f3d08a) 75%, #fff); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.rc-next b { font-size: 16px; font-weight: 800; color: #fff; }
.rc-next-sub { max-width: 100%; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--lamp, #f3d08a) 55%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-next { text-decoration: none; }
.fr-next .btn-sub { max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.75; }
.fr-close { align-self: center; padding: 4px 10px; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.story--full .rc-reply { gap: 6px; }
.chat-sub { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; opacity: 0.8; }
/* 결제한 보고서 · 결제 실패 화면도 위쪽 로고 띠 없이 */
body[data-view="r"] .site-header, body[data-view="r"] .tabbar, body[data-view="r"] .site-footer,
body[data-view="payfail"] .site-header, body[data-view="payfail"] .tabbar, body[data-view="payfail"] .site-footer { display: none; }
body[data-view="r"] .app, body[data-view="payfail"] .app { padding: 0 var(--gutter); }

/* ═══ 결제 창 (아래에서 올라옴) ═══ */
html.is-sheet, html.is-sheet body { overflow: hidden; }
.pay-sheet { position: fixed; inset: 0; z-index: 60; }
.pay-sheet[hidden] { display: none; }
.ps-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 12, 0.6); opacity: 0; transition: opacity 0.22s ease; }
.ps-panel { position: absolute; left: 50%; bottom: 0; width: min(100vw, var(--col)); max-height: 88dvh; overflow-y: auto; transform: translate(-50%, 100%); transition: transform 0.28s cubic-bezier(.2, .8, .2, 1); padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: linear-gradient(170deg, #1a1f36, #0d1120 70%); border-top: 1px solid color-mix(in srgb, var(--lamp) 50%, transparent); box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.55); color: var(--text); }
.pay-sheet.is-open .ps-backdrop { opacity: 1; }
.pay-sheet.is-open .ps-panel { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .ps-panel, .ps-backdrop { transition: none; } }
.ps-grip { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.ps-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: color-mix(in srgb, var(--lamp) 70%, #fff); }
.ps-title { margin: 4px 0 10px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.ps-title:focus { outline: none; }
.ps-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: rgba(243, 231, 200, 0.08); border: 1px solid rgba(243, 231, 200, 0.2); }
.ps-price span { font-size: 13px; font-weight: 700; color: #e2c27a; }
.ps-price strong { font-size: 22px; font-weight: 800; color: #fff; }
.ps-trust { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.ps-trust li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.ps-trust li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: color-mix(in srgb, var(--lamp) 70%, #fff); font-weight: 800; }
.ps-trust b { font-size: 14px; color: #fff; }
.ps-trust span { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.ps-more { margin: 4px 0 6px; font-size: 13px; color: var(--text-2); }
.ps-more summary { cursor: pointer; padding: 6px 0; font-weight: 700; color: var(--text); }
.ps-more .pay-toc { margin: 4px 0 8px; }
.ps-note { margin: 4px 0; font-size: 12.5px; line-height: 1.5; }
.ps-panel .pay-form { border-top-color: rgba(255, 255, 255, 0.12); }
.ps-close { display: block; margin: 10px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html.is-sheet .rc-reply { display: none; } .pay-sheet { z-index: 80; }
.ps-price { flex-wrap: wrap; } .ps-price em { flex-basis: 100%; font-style: normal; font-size: 12.5px; font-weight: 600; color: rgba(240, 220, 190, 0.8); }

/* ═══ 보고서 미리보기 (길게): 장마다 풀이 제목 🔒 + 흐린 줄 ═══ */
.rp-outline { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rp-ch { padding: 14px 14px 12px; border-radius: 12px; background: rgba(255, 252, 244, 0.75); border: 1px solid rgba(120, 90, 50, 0.2); }
.rp-ch-no { margin: 0; display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #a0642c; }
.rp-ch-no span { letter-spacing: 0; font-weight: 600; color: #8a6a4a; }
.rp-ch-title { margin: 4px 0 2px; font-size: 16px; font-weight: 800; color: #1d1610; letter-spacing: -0.02em; }
.rp-ch-desc { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: #6a5a48; }
.rp-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rp-items li { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; row-gap: 4px; font-size: 13px; font-weight: 700; color: #2a2118; line-height: 1.4; }
.rp-items li span { font-size: 11px; }
.rp-items li i { grid-column: 2; display: block; height: 7px; width: 88%; border-radius: 4px; background: rgba(90, 70, 50, 0.18); filter: blur(1.5px); }
.rp-cta { display: grid; justify-items: center; gap: 2px; width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: 999px; background: #1c2a46; color: #f3e7c8; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(28, 42, 70, 0.35); }
.rp-cta span { font-size: 12px; font-weight: 600; opacity: 0.8; }
.rp-cta span:empty { display: none; }

/* 결제 창 접힘: 바닥에 한 줄만 남고(누르면 다시 열림), 뒤 화면은 자유롭게 */
.pay-sheet.is-peek { pointer-events: none; }
.pay-sheet.is-peek .ps-backdrop { opacity: 0; }
.pay-sheet.is-peek .ps-panel { pointer-events: auto; cursor: pointer; overflow: hidden; transform: translate(-50%, calc(100% - 74px - env(safe-area-inset-bottom))); }
.pay-sheet.is-peek .ps-title { font-size: 16px; }
.pay-sheet.is-peek .ps-title::after { content: ' ▴'; font-size: 13px; color: color-mix(in srgb, var(--lamp) 70%, #fff); }
.pay-sheet:not(.is-open) .ps-backdrop { pointer-events: none; }
html.has-peek .rc-reply { bottom: calc(74px + env(safe-area-inset-bottom)); padding-bottom: 8px; }
html.has-peek .rc-reply .rc-pay { display: none; }
.story--chat > .pay-sheet { position: fixed; inset: 0; z-index: 80; }

/* ═══ 홍시의 방 개편: 결제 창 상품 안내 · 이미 산 보고서 · 풀이 출처 표시 ═══ */
.ps-product { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ps-product-name { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); word-break: keep-all; }
.ps-product-name span { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--lamp); border: 1px solid color-mix(in srgb, var(--lamp) 45%, transparent); vertical-align: 2px; }
.ps-gets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ps-gets li { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); word-break: keep-all; }
.ps-owned { display: block; margin: 12px 0 6px; text-align: center; text-decoration: none; }
.fr-src { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-2); border: 1px solid var(--line-strong); }
.fr-src.is-survey { color: #9fd3c7; border-color: rgba(159, 211, 199, 0.45); }

/* ═══ 결제한 보고서: 읽기 화면 (캐릭터는 처음에 잠깐, 그 뒤엔 단정한 남색 종이) ═══ */
.story--read { --paper: #0e1322; --ink: #eee7d8; --ink-2: #c3bcad; --ink-3: #8f8a7e; --rule: rgba(238, 231, 216, 0.1); --mark: color-mix(in srgb, var(--lamp) 72%, #fff); }
.story--read > .rd-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(130% 55% at 50% -12%, color-mix(in srgb, var(--lamp) 12%, transparent), transparent 62%), var(--paper); }
.story--read > .rd-intro { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; background: var(--paper); animation: rdOut 0.9s cubic-bezier(.4, 0, .2, 1) 1.6s forwards; }
.rd-intro-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; animation: rdZoom 2.5s ease-out both; }
.rd-intro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--paper) 85%, transparent) 78%, var(--paper)); }
.rd-intro-say { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: calc(14vh + env(safe-area-inset-bottom)); margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.45; color: #fff; text-align: center; animation: rdSay 0.6s ease 0.3s both; }
.rd-intro-say em { font-style: normal; color: var(--mark); }
@keyframes rdOut { to { opacity: 0; visibility: hidden; } }
@keyframes rdZoom { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rdSay { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .story--read > .rd-intro { animation-duration: 0.01s; } .rd-intro-img, .rd-intro-say { animation: none; } }

.story--read .story-top .icon-btn, .story--read .story-chip { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--rule); }
.story--read .res-chat { gap: 0; padding-top: 18px; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.story--read .res-chat > * { animation: none; }
.story--read .chat, .story--read .rc-card { align-self: stretch; width: auto; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.story--read .chat--me { display: none; }
.story--read .fr-dev { align-self: flex-start; margin: 0 0 18px; padding: 0; background: none; font-size: 12px; color: var(--ink-3); }

/* 표지 */
.story--read .fr-cover { padding: 18px 0 8px; }
.story--read .fr-cover-kicker { font-size: 11px; letter-spacing: 0.2em; color: var(--mark); }
.story--read .fr-cover .solo-hero-title { font-family: var(--serif); font-size: 28px; line-height: 1.4; color: var(--ink); }
.story--read .fr-cover .solo-hero-title em { font-style: normal; color: var(--mark); }
.story--read .fr-cover .solo-hero-sub { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.story--read .fr-toc { margin-top: 22px; gap: 0; border-top: 1px solid var(--rule); }
.story--read .fr-toc a { padding: 14px 2px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.story--read .fr-toc a span { min-width: 22px; font-variant-numeric: tabular-nums; color: var(--mark); }

/* 캐릭터 한마디 = 인용 한 줄 */
.story--read .rc-say { margin: 22px 0 4px; padding: 2px 0 2px 14px; border-left: 2px solid color-mix(in srgb, var(--lamp) 55%, transparent); font-family: var(--serif); font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* 장 머리 */
.story--read .fr-head-card { padding: 28px 0 18px; border-bottom: 1px solid var(--rule); }
.story--read .fr-head-card::before { display: none; }
.story--read .fr-head-card .solo-ch-no { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--mark); }
.story--read .fr-title { margin: 8px 0 8px; font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.38; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.story--read .fr-head-card .solo-ch-desc { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }

/* 본문 블록: 상자 없이 문단 + 가는 구분선 */
.story--read .fr-bubble { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.story--read .fr-bubble .fr-card, .story--read .fr-bubble .fr-note, .story--read .fr-bubble .profile-persona { padding: 0; background: none; border: 0; color: var(--ink-2); }
.story--read .fr-bubble .interp-title, .story--read .fr-bubble .persona-nick { margin: 0 0 12px; font-size: 19px; font-weight: 800; line-height: 1.45; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.story--read .fr-bubble :is(.fr-card, .fr-note, .profile-persona) > p:not(.interp-title):not(.interp-basis):not(.fr-src):not(.fr-note-label):not(.persona-label):not(.persona-nick), .story--read .fr-bubble .tips p { font-size: 16px; line-height: 1.9; color: var(--ink-2); word-break: keep-all; }
.story--read .fr-bubble :is(.fr-card, .fr-note) > p + p { margin-top: 12px; }
.story--read .fr-bubble .fr-sub { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.story--read .fr-src { display: inline-block; margin: 0 0 10px; padding: 0; border: 0; background: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); }
.story--read .fr-src.is-survey { color: var(--mark); }
.story--read .fr-note-label { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--mark); }
.story--read .fr-sub, .story--read .interp-rule { margin-top: 16px; padding: 12px 14px; display: grid; gap: 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); font-size: 15px; }
.story--read .fr-sub span, .story--read .interp-rule span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--mark); background: none; padding: 0; }
.story--read .interp-basis { margin-top: 18px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.story--read .interp-basis span { padding: 0 6px; border: 1px solid var(--rule); border-radius: 4px; background: none; color: var(--ink-3); font-weight: 600; }
.story--read .persona-label { font-size: 12px; letter-spacing: 0.08em; color: var(--mark); }
.story--read .persona-nick { font-family: var(--serif); font-size: 24px; }
.story--read .tips { display: grid; gap: 14px; }
.story--read .tips li { padding: 0 0 0 14px; border-left: 2px solid var(--rule); background: none; }
.story--read .tips strong { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }
.story--read .fr-steps li { background: none; }

/* 표 · 숫자 블록: 차분한 얇은 테두리 */
.story--read :is(.fr-pillars, .fr-elements, .fr-kv, .fr-daeun, .fr-years, .fr-scores) { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--rule); box-shadow: none; }
.story--read .fr-daeun-list li.is-now { background: color-mix(in srgb, var(--lamp) 14%, transparent); outline-color: color-mix(in srgb, var(--lamp) 60%, transparent); }

/* 아래 버튼 띠: 종이색으로 자연스럽게 */
.story--read .rc-reply { background: linear-gradient(180deg, transparent, var(--paper) 38%); }
.story--read .fr-close { color: var(--ink-3); }

/* 상황 질문: ‘말하고 싶지 않아 · 건너뛸게’는 한 단계 흐리게 (선택지와 구분) */
.ask-choice--skip > span { opacity: 0.72; font-weight: 600; border-style: dashed !important; }

/* 카드마다 ‘그러니 이번엔 이렇게 해 봐’ — 성향 설명 바로 뒤의 행동 조언 */
.fr-act { margin-top: 12px; padding: 11px 13px 12px; display: grid; gap: 4px; border-radius: 12px; border-left: 3px solid var(--lamp, #e8b45c); background: color-mix(in srgb, var(--lamp, #e8b45c) 9%, transparent); font-size: 14.5px; font-weight: 600; line-height: 1.65; color: #f6ecd8; }
.fr-act span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--lamp, #e8b45c); }
.story--read .fr-act { margin-top: 16px; padding: 13px 15px 14px; font-size: 15.5px; line-height: 1.8; color: var(--ink); background: color-mix(in srgb, var(--mark) 10%, transparent); border-left-color: var(--mark); }
.story--read .fr-act span { color: var(--mark); }

/* 방 맨 위 총정리(시그니처) — 다른 선택지와 다르게: 등불색 테두리 · 은은한 빛 · 묶은 상품 이름 */
.room-item--sig { position: relative; margin-bottom: 4px; border: 1px solid color-mix(in srgb, var(--lamp, #e8b45c) 70%, transparent) !important; background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--lamp, #e8b45c) 22%, transparent), transparent 60%),
  linear-gradient(160deg, color-mix(in srgb, var(--lamp, #e8b45c) 12%, #141a2c), #10162a); box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--lamp, #e8b45c) 60%, transparent); }
.room-item--sig .room-pick { display: block; padding: 16px 16px 14px; color: inherit; text-decoration: none; }
.room-item--sig .room-item-title { margin-top: 10px; font-size: 19px; }
.sig-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; color: #1b1406; background: var(--lamp, #e8b45c); }
.sig-badge::before { content: "✦"; font-size: 10px; }
.sig-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sig-parts span { padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--lamp, #e8b45c) 80%, #fff); background: color-mix(in srgb, var(--lamp, #e8b45c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--lamp, #e8b45c) 30%, transparent); }
.room-item--sig .room-pick-meta { margin-top: 12px; }
.room-item--sig .room-price { font-size: 15px; font-weight: 800; color: var(--lamp, #e8b45c); }
.room-item--sig .ri-more { position: absolute; right: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text-2); font-size: 11.5px; text-decoration: none; }
.room-panel .sig-or, .room-item--sig + .ask-prompt { margin-top: 14px; }
.room-choices .room-item-title, .room-item--sig .sig-badge { padding-right: 78px; }
.room-item--sig .sig-badge { padding-right: 10px; margin-right: 78px; }

/* 보고서 카드 안 소제목 목록: 강점 · 어려워지는 때 · 같이 보는 요소 · 스스로 확인 */
.fr-points { margin-top: 14px; display: grid; gap: 10px; }
.fr-points > div { display: grid; gap: 3px; padding-left: 11px; border-left: 2px solid color-mix(in srgb, var(--lamp, #e8b45c) 45%, transparent); }
.fr-points dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--lamp, #e8b45c); }
.fr-points dd { margin: 0; font-size: 14.5px; line-height: 1.7; }
.story--read .fr-points dt { color: var(--mark); }
.story--read .fr-points > div { border-left-color: color-mix(in srgb, var(--mark) 45%, transparent); }
.story--read .fr-points dd { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); word-break: keep-all; }
/* 행동 칸 안: 대사 예시 아래 왜 · 언제 · 반응 보기 */
.fr-act > p { margin: 0; }
.fr-how { margin-top: 8px; padding-top: 8px; display: grid; gap: 7px; border-top: 1px dashed color-mix(in srgb, var(--lamp, #e8b45c) 35%, transparent); font-weight: 400; }
.fr-how dt { font-size: 11px; font-weight: 700; opacity: 0.8; }
.fr-how dd { margin: 0; font-size: 14px; line-height: 1.65; }
.story--read .fr-how { border-top-color: color-mix(in srgb, var(--mark) 35%, transparent); }
.story--read .fr-how dd { font-size: 15px; line-height: 1.75; color: var(--ink-2); word-break: keep-all; }

/* 방 선택지: 한 단어 분류 · 알려 줄 것 — 무엇을 답해 주는지 한눈에 */
.ri-key { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.01em; color: color-mix(in srgb, var(--lamp, #e8b45c) 85%, #fff); background: color-mix(in srgb, var(--lamp, #e8b45c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--lamp, #e8b45c) 35%, transparent); }
.ri-key::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.room-item .ri-key + .room-item-title { margin-top: 8px; }
.ri-answers { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 9px; min-width: 0; color: var(--text-2); }
.ri-answers em { font-style: normal; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--lamp, #e8b45c) 80%, #fff); }
.ri-chips { display: flex; flex-wrap: wrap; gap: 5px; max-width: 100%; font-size: clamp(11.5px, 3.3vw, 12.5px); white-space: nowrap; }
.ri-chips span { flex: none; padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); }
/* 총정리 아래 ‘딱 궁금한 거 하나만 깊게 볼래?’ — 잘 보이게 */
.story--chat .room-panel .room-item--sig + .ask-prompt { margin: 22px 0 12px; padding-left: 10px; border-left: 3px solid var(--lamp, #e8b45c); font-size: 19px; font-weight: 800; line-height: 1.35; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }

/* ═══ 상담방: 캐릭터 얼굴이 먼저 보이고, 그 아래에 대사 · 선택지 ═══
 * 배경(캐릭터)은 고정이라, 첫 화면에서 얼굴 높이만큼 비워 두고 말풍선부터 시작한다. 내리면 선택지가 이어진다.
 */
.story--room .chat-log { flex: 0 0 auto; justify-content: flex-start; padding-top: clamp(230px, 42vh, 380px); gap: 10px; }
/* 인사: 한지 말풍선 (어두운 배경 위에서 또렷하게) */
.story--chat .chat.room-greet { max-width: 90%; opacity: 1; padding: 13px 17px; background: #f4ead7; border: 0; color: #2a2016; font-size: 15.5px; font-weight: 600; line-height: 1.6; letter-spacing: -0.01em; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
/* 고르기 대사: 먹색 판 + 등불 테두리, 물음은 크게 · 안내는 한 줄 아래 */
.story--chat .chat--now.room-ask { max-width: 94%; padding: 14px 18px; border-radius: 6px 18px 18px 18px; background: rgba(12, 16, 28, 0.96); border: 1.5px solid color-mix(in srgb, var(--lamp, #f3d08a) 70%, transparent); }
.room-ask b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: color-mix(in srgb, var(--lamp, #f3d08a) 75%, #fff); }
.room-ask span { display: block; margin-top: 5px; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: #ece4d4; }
.sig-apart { margin-left: 8px; font-size: 12px; color: var(--text-2); }

/* ═══ 맛보기 끝: 복채로 받는 것 (한지 카드 안, 영수증처럼) ═══ */
.rp-value { margin-top: 16px; padding: 16px 14px 14px; border: 1.5px dashed rgba(120, 80, 40, 0.45); border-radius: 14px; background: rgba(255, 251, 240, 0.75); color: #2a2118; }
.rv-kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; color: #a3242c; }
.rv-seal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: #a3242c; color: #fbeee0; font-size: 13px; font-weight: 700; transform: rotate(-6deg); }
.rv-title { margin: 8px 0 0; font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -0.03em; color: #1d1610; text-wrap: balance; }
.rv-gets, .rv-how { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.rv-gets li { display: grid; gap: 1px; padding-left: 14px; position: relative; }
.rv-gets li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #c0702c; }
.rv-gets b, .rv-how b { font-size: 15px; font-weight: 800; color: #1d1610; }
.rv-gets span, .rv-how span { font-size: 13.5px; line-height: 1.55; color: #5a4a3a; text-wrap: pretty; }
.rv-how-title { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(120, 80, 40, 0.25); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: #1d1610; }
.rv-how { counter-reset: rv; }
.rv-how li { display: grid; gap: 1px; padding-left: 28px; position: relative; counter-increment: rv; }
.rv-how li::before { content: counter(rv); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #1c2a46; color: #f3e7c8; font-size: 12px; font-weight: 800; }
/* 복채 비교: 다른 곳 가격대 → VS → 인연옥 복채 */
.rv-compare { margin: -2px 0 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(120, 80, 40, 0.25); text-align: center; }
.rv-c-head { margin: 4px 0 0; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -0.04em; color: #1d1610; }
.rv-c-head em { display: block; font-style: normal; font-size: 27px; color: #a3242c; }
.rv-c-q { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #3a2e22; }
.rv-c-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; justify-content: center; gap: 6px; }
.rv-c-list li { flex: 1 1 0; min-width: 0; max-width: 130px; display: grid; gap: 6px; padding: 10px 6px 12px; border: 1.5px solid rgba(163, 36, 44, 0.45); border-radius: 12px; background: rgba(255, 255, 255, 0.55); }
.rv-c-list span { justify-self: center; padding: 3px 6px; border-radius: 6px; background: #a3242c; color: #fbeee0; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.rv-c-list b { font-size: 13.5px; font-weight: 800; line-height: 1.3; color: #2a2118; word-break: keep-all; }
.rv-vs { margin: 12px 0 0; font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: #a3242c; }
.rv-ours { display: grid; gap: 2px; margin: 12px 0 0; padding: 14px 12px; border-radius: 14px; background: #1c2a46; color: #f3e7c8; }
.rv-ours span { font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--lamp, #f3d08a) 80%, #fff); }
.rv-ours strong { font-size: 40px; font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; color: #fff; }
.rv-ours small { margin-left: 3px; font-size: 18px; font-weight: 800; }
.rv-c-note { margin: 8px 0 0; font-size: 11.5px; color: #7a6a58; }
.ri-depth { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--lamp, #f3d08a) 80%, #fff); }

/* 상담방 ‘자세히 보기’: 튀지 않게, 그래도 눌러 보고 싶게 — 등불색 실선 테두리 + 동그란 화살표 */
.story--room .room-panel .ri-more { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 11px; border: 1px solid color-mix(in srgb, var(--lamp, #e8b45c) 40%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--lamp, #e8b45c) 7%, rgba(10, 12, 20, 0.6)); color: color-mix(in srgb, var(--lamp, #e8b45c) 55%, #fff); font-size: 11.5px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.story--room .room-panel .ri-more::after { content: '›'; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: color-mix(in srgb, var(--lamp, #e8b45c) 22%, transparent); font-size: 14px; font-weight: 800; line-height: 1; padding-bottom: 1px; box-sizing: border-box; }
.story--room .room-panel .ri-more:active { background: color-mix(in srgb, var(--lamp, #e8b45c) 18%, rgba(10, 12, 20, 0.6)); }
.story--room .room-panel .ri-more:focus-visible { outline: 2px solid var(--lamp, #e8b45c); outline-offset: 2px; }

/* 보고서 표 (겉 · 속 · 치명 포인트 / 시선 · 목소리 · 손끝 · 분위기) — 좁은 화면에선 표만 옆으로 밀어서 본다 */
.fr-table-wrap { margin: 14px 0; }
.fr-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); }
.fr-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.fr-table th, .fr-table td { padding: 10px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.fr-table thead th { background: rgba(255, 255, 255, 0.06); font-size: 12.5px; font-weight: 800; color: var(--text); white-space: nowrap; }
.fr-table tbody th { font-weight: 700; color: color-mix(in srgb, var(--lamp, #f2a65a) 70%, #fff); white-space: nowrap; }
.fr-table tbody td { color: var(--text-2); }
.fr-table tbody td:last-child { color: var(--text); font-weight: 600; }
.fr-table tbody tr:last-child th, .fr-table tbody tr:last-child td { border-bottom: 0; }
.fr-table strong, .fr-card strong, .fr-note strong, .blind-full strong, .blind-text strong, .fr-points strong, .fr-act strong { font-weight: 800; color: #fff; }
.story--read .fr-table strong, .story--read .fr-card strong, .story--read .fr-note strong { color: inherit; }
.report-preview .fr-table-scroll { border-color: rgba(120, 90, 50, 0.25); }

.fr-table.cols-4 { min-width: 480px; } /* 4칸 표(겉 · 속 · 치명)만 좁은 화면에서 옆으로 밀어 본다 */
.fr-table td, .fr-table th { word-break: keep-all; }

/* 미리보기 모자이크: 핵심어 · 조언 뒷부분 · 표 칸 */
.mosaic { position: relative; display: inline; padding: 0 2px; border-radius: 5px; background: color-mix(in srgb, var(--lamp, #e8b45c) 16%, transparent); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mosaic > span { filter: blur(4.5px); user-select: none; -webkit-user-select: none; pointer-events: none; color: rgba(255, 255, 255, 0.75); }

/* 명리 전문가 점검 (실제 점검 정보가 있을 때만) — 한지 위 인장 */
.expert-box { margin-top: 16px; padding: 16px 14px 14px; border: 1.5px solid rgba(163, 36, 44, 0.35); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 251, 240, 0.96), rgba(250, 240, 222, 0.92)); color: #2a2118; display: grid; gap: 8px; }
.ex-kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; color: #a3242c; }
.ex-seal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: #a3242c; color: #fff8ec; font-size: 15px; font-weight: 700; transform: rotate(-4deg); }
.ex-title { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.45; text-wrap: balance; }
.ex-quote { margin: 0; padding: 10px 12px; border-left: 3px solid #c0702c; background: rgba(192, 112, 44, 0.08); font-size: 14px; line-height: 1.6; }
.ex-checked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; }
.ex-checked b { margin-right: 2px; font-weight: 800; }
.ex-checked span { padding: 3px 9px; border-radius: 999px; background: rgba(163, 36, 44, 0.1); color: #7a1e24; font-weight: 700; }
.ex-note { margin: 0; font-size: 11.5px; line-height: 1.5; color: #6b5a48; }

/* 표정 그림이 아직 없어서 base 그림을 다시 쓰는 자리: ‘임시 그림’ 표시 (js/data/character.js 의 HAVE 에 표정을 추가하면 사라짐) */
[data-char]:has(img[data-temp-dup])::after { content: '임시 그림'; position: absolute; right: 8px; top: 8px; z-index: 3; padding: 2px 8px; border-radius: 999px; border: 1px dashed rgba(241, 233, 220, 0.45); background: rgba(10, 8, 6, 0.62); color: #f1e9dc; font-size: 10.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.bubble-face:has(img[data-temp-dup])::after { display: none; }
.solo-bubble:has(img[data-temp-dup]) { position: relative; }
.solo-bubble:has(img[data-temp-dup])::after { content: '임시'; left: 30px; right: auto; top: auto; bottom: 34px; padding: 0 5px; font-size: 9px; }
.ask-bg:has(img[data-temp-dup])::after { top: calc(env(safe-area-inset-top, 0px) + 64px); right: 14px; }

/* ── 약관 · 개인정보 · 환불 페이지와 화면 아래 정보 ── */
.policy-page { padding-bottom: 32px; }
.policy-tabs { display: flex; gap: 6px; margin: 4px 0 18px; overflow-x: auto; }
.policy-tabs a { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.policy-tabs a[aria-current="page"] { background: var(--text); color: var(--bg, #0c0a08); border-color: var(--text); }
.policy-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.policy-date { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.policy-sec { margin-bottom: 16px; }
.policy-sec h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.policy-sec p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text-2); }
.policy-biz, .footer-biz { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.policy-biz { justify-content: flex-start; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.footer-links { display: flex; justify-content: center; gap: 8px; margin: 0; font-size: 12px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* 결과 공유 이미지 */
.rc-share { display: block; width: 100%; margin-top: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--lamp, #f2a65a) 55%, transparent); background: color-mix(in srgb, var(--lamp, #f2a65a) 14%, transparent); color: #f1e9dc; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rc-share:disabled { opacity: 0.6; }
.share-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); background: rgba(5, 4, 3, 0.86); }
.share-box { display: grid; gap: 10px; justify-items: center; width: min(360px, 100%); max-height: 100%; }
.share-box img { width: 100%; max-height: 64vh; object-fit: contain; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.share-box p { margin: 0; text-align: center; font-size: 13px; color: #d9cbb4; }
.share-dl, .share-close { width: 100%; padding: 12px; border-radius: 12px; text-align: center; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.share-dl { background: #f1e9dc; color: #1a1410; border: 0; }
.share-close { background: transparent; color: #d9cbb4; border: 1px solid rgba(241, 233, 220, 0.3); }

/* 홈 맛보기: 생년월일 → 일주 한 줄 */
.teaser { margin: 4px var(--gutter) 18px; padding: 18px 16px 14px; border-radius: 16px; border: 1px solid rgba(242, 166, 90, 0.35); background: linear-gradient(180deg, rgba(36, 24, 16, 0.92), rgba(18, 13, 10, 0.92)); display: grid; gap: 10px; }
.tz-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: #f2a65a; }
.tz-title { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.35; color: #f1e9dc; }
.tz-sub { margin: -4px 0 2px; font-size: 14px; line-height: 1.5; color: #d9cbb4; }
.tz-form { display: grid; gap: 8px; }
.tz-cal { display: flex; gap: 6px; }
.tz-cal label { position: relative; }
.tz-cal input { position: absolute; opacity: 0; }
.tz-cal span { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(241, 233, 220, 0.25); font-size: 13px; font-weight: 700; color: #d9cbb4; cursor: pointer; }
.tz-cal input:checked + span { background: #f1e9dc; color: #1a1410; border-color: #f1e9dc; }
.tz-cal input:focus-visible + span { outline: 2px solid #f2a65a; outline-offset: 2px; }
.tz-date { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; }
.tz-date select { min-width: 0; padding: 10px 8px; border-radius: 10px; border: 1px solid rgba(241, 233, 220, 0.22); background: rgba(10, 8, 6, 0.6); color: #f1e9dc; font: inherit; font-size: 15px; }
.tz-go { padding: 12px; border-radius: 12px; border: 0; background: #f2a65a; color: #1a1410; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.tz-out:empty { display: none; }
.tz-wait, .tz-err { margin: 0; font-size: 13px; color: #d9cbb4; }
.tz-card { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: rgba(255, 248, 236, 0.06); border: 1px dashed rgba(242, 166, 90, 0.45); }
.tz-from { margin: 0 0 2px; justify-self: start; padding: 2px 9px; border-radius: 999px; background: rgba(242, 166, 90, 0.16); color: #f2a65a; font-size: 11.5px; font-weight: 800; }
.tz-other { justify-self: center; margin-top: 2px; font-size: 13px; font-weight: 700; color: #d9cbb4; text-decoration: underline; text-underline-offset: 3px; }
.tz-ilju { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.tz-ilju b { font-family: var(--serif); font-size: 30px; color: #f2a65a; letter-spacing: 0.04em; }
.tz-ilju span { font-size: 13px; font-weight: 700; color: #d9cbb4; }
.tz-nick { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 700; color: #fff8ec; }
.tz-line { margin: 0; font-size: 14.5px; line-height: 1.7; color: #e9dfcf; }
.tz-more { margin-top: 6px; padding: 12px; border-radius: 12px; border: 1px solid #f2a65a; background: transparent; color: #f2a65a; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.tz-more-sub { margin: 0; text-align: center; font-size: 12px; color: #b7a891; }
.tz-note { margin: 0; font-size: 11.5px; line-height: 1.5; color: #9c8f7c; }
.tz-tag { margin-right: 4px; padding: 1px 7px; border-radius: 6px; background: rgba(242, 166, 90, 0.18); color: #f2a65a; font-size: 12px; font-weight: 800; }

/* 후기 남기기 · 후기 별점 */
.rv-form { display: grid; gap: 10px; margin-top: 14px; padding: 16px 14px; border-radius: 14px; border: 1px solid rgba(242, 166, 90, 0.4); background: rgba(255, 248, 236, 0.05); }
.rv-f-title { margin: 0; font-size: 16px; font-weight: 800; color: #f1e9dc; }
.rv-f-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: #b7a891; }
.rv-f-stars { display: flex; gap: 4px; }
.rv-f-stars label { position: relative; cursor: pointer; }
.rv-f-stars input { position: absolute; opacity: 0; }
.rv-f-stars span { font-size: 30px; line-height: 1; color: rgba(241, 233, 220, 0.25); }
.rv-f-stars label.is-on span { color: #f2a65a; }
.rv-f-stars input:focus-visible + span { outline: 2px solid #f2a65a; outline-offset: 2px; border-radius: 4px; }
.rv-f-stars .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rv-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(241, 233, 220, 0.22); background: rgba(10, 8, 6, 0.6); color: #f1e9dc; font: inherit; font-size: 14.5px; line-height: 1.6; resize: vertical; }
.rv-f-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; color: #d9cbb4; }
.rv-f-agree input { margin-top: 3px; flex: none; }
.rv-f-msg { margin: 0; min-height: 1em; font-size: 12.5px; color: #f2a65a; }
.rv-f-msg:empty { display: none; }
.rv-f-send { padding: 12px; border-radius: 12px; border: 0; background: #f2a65a; color: #1a1410; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.rv-f-send:disabled { opacity: 0.6; }
.rv-stars { margin: 0 0 4px; font-size: 13px; letter-spacing: 1px; color: #f2a65a; }
.rv-stars span { color: rgba(241, 233, 220, 0.25); }
