/* ===== 디자인 토큰 (Stitch 디자인에서 가져온 값) ===== */
:root {
  --on-primary-fixed: #241a00;
  --on-secondary-fixed: #231043;
  --on-secondary-fixed-variant: #4f3d72;
  --primary: #735c00;
  --primary-container: #d4af37;
  --on-primary-container: #554300;
  --primary-fixed: #ffe088;
  --primary-fixed-dim: #e9c349;
  --secondary: #68558b;
  --on-secondary: #ffffff;
  --secondary-container: #d5bffd;
  --on-secondary-container: #5d4b80;
  --secondary-fixed: #ebddff;
  --secondary-fixed-dim: #d2bcfa;
  --tertiary: #9f402f;
  --tertiary-container: #ff9782;
  --on-tertiary-container: #7d2819;
  --tertiary-fixed: #ffdad3;
  --on-tertiary-fixed: #3f0400;
  --surface: #fcf9f4;
  --surface-low: #f6f3ee;
  --surface-container: #f0ede9;
  --surface-high: #ebe8e3;
  --surface-highest: #e5e2dd;
  --surface-lowest: #ffffff;
  --on-surface: #1c1c19;
  --on-surface-variant: #4d4635;
  --outline: #7f7663;
  --outline-variant: #d0c5af;
  --inverse-surface: #31302d;
  --inverse-on-surface: #f3f0eb;

  --r-card: 1rem;   /* rounded-2xl */
  --r-lg: 2rem;     /* rounded-lg (Stitch에서 2rem으로 재정의) */
  --margin: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --font-head: 'Bricolage Grotesque', 'Noto Sans KR', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-low);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 21px;
  display: flex;
  justify-content: center;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::-webkit-scrollbar { display: none; }

/* 아이콘 (Material Symbols). 폰트가 안 불러와져도 글자가 길게 튀어나오지 않게 1em로 자름 */
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; width: 1em; height: 1em; overflow: hidden; white-space: nowrap;
  direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  vertical-align: middle; flex: none;
}
.ms.fill { font-variation-settings: 'FILL' 1; }

/* ===== 앱 틀 ===== */
.app {
  position: relative;
  width: 100%; max-width: 480px; min-height: 100vh; min-height: 100dvh;
  background: var(--surface);
  box-shadow: 0 10px 40px -10px rgba(45, 27, 78, 0.08);
}
.topbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 50;
  width: 100%; max-width: 480px; height: 64px; padding: 0 var(--margin);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(252, 249, 244, 0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.badge-soft { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 0.25rem; border-radius: 999px; background: var(--secondary-fixed); color: var(--on-secondary-fixed); }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--on-surface-variant); transition: 0.2s; }
.icon-btn:hover, .icon-btn:active { background: var(--surface-high); color: var(--on-surface); }

main#view { padding: 64px 0 96px; min-height: 100dvh; }
.view { animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: 0.5; } }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 40;
  width: 100%; max-width: 480px; height: 64px; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(252, 249, 244, 0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 -2px 12px rgba(45, 27, 78, 0.05);
}
.tabbar a { flex: 1; text-align: center; padding: 8px 0; font-size: 13px; line-height: 16px; letter-spacing: 0.02em; font-weight: 700; color: var(--on-surface-variant); transition: color 0.2s; }
.tabbar a:hover { color: var(--on-surface); }
.tabbar a.on { color: var(--primary); }

/* ===== 공통 조각 ===== */
.pad { padding: 0 var(--margin); }
.card { background: var(--surface-lowest); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.pill-chip { display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 999px; font-size: 11px; line-height: 14px; letter-spacing: 0.04em; font-weight: 600; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; height: 56px;
  border: 0; border-radius: 999px; color: var(--surface); font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--on-secondary-fixed), #3b2463, var(--primary));
  box-shadow: 0 12px 28px -6px rgba(45, 27, 78, 0.28); transition: 0.2s;
}
.cta:active { transform: scale(0.98); }
.cta .ms { transition: transform 0.2s; }
.cta:hover .ms { transform: translateX(4px); }
.cta.gold { background: var(--primary-container); color: var(--on-primary-container); box-shadow: var(--shadow-md); }
.cta.dark { background: var(--on-secondary-fixed); box-shadow: 0 10px 15px -3px rgba(35, 16, 67, 0.2); }
.ghost-btn { display: flex; align-items: center; justify-content: center; gap: 0.375rem; width: 100%; height: 48px; border: 0; border-radius: 999px; background: var(--surface-low); color: var(--on-surface); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm); transition: 0.15s; }
.ghost-btn:hover { background: var(--surface-high); }
.ghost-btn:active { transform: scale(0.97); }

/* ===== 캐릭터 이미지 (이미지가 없으면 이모지로 대체) ===== */
.char { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.char img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.char-emoji { font-size: 96px; line-height: 1; }

/* ===== 홈 ===== */
.home .glow-wrap { position: relative; overflow: hidden; padding: 0 var(--margin) 1.5rem; display: flex; flex-direction: column; align-items: center; }
.home .orb1 { position: absolute; top: -4rem; left: 50%; transform: translateX(-50%); width: 18rem; height: 18rem; border-radius: 50%; background: rgba(255, 224, 136, 0.3); filter: blur(64px); pointer-events: none; z-index: -1; }
.home .orb2 { position: absolute; top: 12rem; right: -4rem; width: 13rem; height: 13rem; border-radius: 50%; background: rgba(235, 221, 255, 0.4); filter: blur(40px); pointer-events: none; z-index: -1; }
.tagline { margin-top: 1rem; display: flex; align-items: center; gap: 0.375rem; padding: 4px 12px; border-radius: 999px; background: rgba(235, 232, 227, 0.8); box-shadow: var(--shadow-sm); color: var(--on-surface-variant); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.1em; }
.tagline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-container); animation: pulse 2s infinite; }
.hero-text { margin-top: 1rem; text-align: center; }
.hero-title { font-family: var(--font-head); font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; color: var(--on-secondary-fixed); }
.hero-sub { margin: 0.5rem auto 0; max-width: 320px; color: var(--on-surface-variant); line-height: 1.625; }
.hero-sub b { color: var(--primary); font-weight: 600; }
.hero-visual { margin-top: 1.5rem; width: 100%; display: flex; flex-direction: column; align-items: center; }
.bubble { z-index: 20; align-self: flex-end; margin: 0 1rem -12px 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); box-shadow: var(--shadow-md); font-size: 13px; line-height: 16px; font-weight: 700; color: var(--on-secondary-fixed); display: flex; gap: 6px; align-items: center; }
.mascot { position: relative; width: 256px; height: 256px; display: flex; align-items: center; justify-content: center; }
.mascot .halo { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(to top right, rgba(255, 224, 136, 0.4), rgba(235, 221, 255, 0.5), rgba(212, 175, 55, 0.2)); filter: blur(24px); transform: scale(0.95); animation: pulse 2s infinite; }
.mascot-card { position: relative; width: 100%; height: 100%; padding: 12px; border-radius: 1.5rem; background: var(--surface-lowest); box-shadow: 0 16px 36px -12px rgba(45, 27, 78, 0.12); overflow: hidden; }
.mascot-img { width: 100%; height: 100%; border-radius: 1rem; overflow: hidden; background: linear-gradient(160deg, var(--secondary-fixed), #fbf3df); }
.badge-name { position: absolute; left: 1.5rem; bottom: 1.5rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); font-size: 11px; line-height: 14px; font-weight: 600; display: flex; gap: 4px; }
.badge-name b { color: var(--primary); font-weight: 700; }
.badge-name span { color: var(--on-surface-variant); font-weight: 500; }
.badge-no { position: absolute; top: 1.5rem; right: 1.5rem; padding: 2px 8px; border-radius: 999px; background: rgba(255, 224, 136, 0.9); color: var(--on-primary-fixed); font-size: 11px; line-height: 14px; font-weight: 700; display: flex; align-items: center; gap: 2px; }
.feature-list { margin: 1.25rem auto 0; width: calc(100% - 2 * var(--margin)); max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.feature { padding: 14px; display: flex; align-items: center; gap: 12px; }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--secondary-fixed); color: var(--on-secondary-fixed); flex: none; }
.feature .ico .ms { font-size: 22px; }
.feature-title { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 16px; letter-spacing: 0.02em; font-weight: 700; }
.feature-title i { font-style: normal; padding: 2px 6px; border-radius: 999px; background: var(--secondary-container); color: var(--on-secondary-container); font-size: 10px; font-weight: 600; }
.feature p { margin-top: 2px; font-size: 13px; line-height: 1.375; color: var(--on-surface-variant); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature-grid .card { padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.feature-grid .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 8px; }
.feature-grid .ico .ms { font-size: 18px; }
.feature-grid b { display: block; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; }
.feature-grid span.s { display: block; margin-top: 2px; font-size: 11px; line-height: 14px; color: var(--on-surface-variant); font-weight: 600; letter-spacing: 0.04em; }
.pills { margin: 1.25rem auto 0; width: calc(100% - 2 * var(--margin)); max-width: 360px; display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 4px 0; }
.pills span { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface-high); color: var(--on-surface-variant); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: 0.04em; }
.pills span.on { background: var(--primary-fixed); color: var(--on-primary-fixed); font-weight: 700; }
.home-action { margin: 1.5rem auto 0; width: calc(100% - 2 * var(--margin)); max-width: 360px; display: flex; flex-direction: column; align-items: center; }
.micro { margin-top: 12px; display: flex; align-items: center; gap: 4px; color: rgba(77, 70, 53, 0.8); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; }
.micro .ms { font-size: 15px; }

/* ===== 입력 ===== */
.form-head { padding: 1rem var(--margin) 0.5rem; }
.step-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.back-btn { width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; color: var(--on-surface-variant); transition: 0.2s; }
.back-btn:hover { background: var(--surface-container); color: var(--on-surface); }
.step-chip { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(235, 221, 255, 0.7); color: var(--on-secondary-fixed); font-size: 11px; line-height: 14px; font-weight: 700; }
.step-chip .ms { font-size: 15px; }
.progress { width: 100%; height: 6px; border-radius: 999px; background: var(--surface-high); overflow: hidden; margin-bottom: 20px; }
.progress i { display: block; width: 50%; height: 100%; border-radius: 999px; background: linear-gradient(to right, var(--primary-container), var(--primary)); }
.title-group { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tag-gold { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--primary-fixed); color: var(--on-primary-fixed); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; }
.form-title { font-family: var(--font-head); font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; }
.form-sub { margin-top: 6px; color: var(--on-surface-variant); }
.mini-mascot { position: relative; flex: none; width: 80px; height: 80px; border-radius: 1rem; background: var(--surface-low); box-shadow: var(--shadow-sm); overflow: hidden; }
.mini-mascot .char-emoji { font-size: 44px; }
.mini-mascot .tint { position: absolute; inset: 0; background: linear-gradient(to top, rgba(35, 16, 67, 0.2), transparent); }
#sajuForm { padding: 12px var(--margin) 24px; display: flex; flex-direction: column; gap: 20px; }
.field { padding: 16px; }
.field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.field-head label, .field-head .lbl { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.field-head .opt { font-size: 11px; font-weight: 400; color: var(--outline); letter-spacing: 0.04em; }
.field-head .side { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--primary); }
.field-head .side.mute { color: var(--outline); font-weight: 400; }
.field-head .side.chip { padding: 2px 8px; border-radius: 999px; background: rgba(233, 195, 73, 0.4); color: var(--on-primary-fixed); }
.req { color: var(--tertiary); }
.input { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 3rem; background: var(--surface-low); color: var(--on-surface); font: inherit; font-size: 16px; line-height: 24px; font-weight: 500; outline: none; transition: 0.2s; }
.input::placeholder { color: var(--outline); }
.input:focus { background: var(--surface); box-shadow: 0 0 0 2px var(--primary-container); }
.input-wrap { position: relative; }
.input-wrap .ms { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--on-surface-variant); pointer-events: none; font-size: 18px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 3rem; background: var(--surface-high); }
.seg button { border: 0; padding: 10px 2px; border-radius: 2rem; background: transparent; color: var(--on-surface-variant); font-size: 13px; line-height: 16px; letter-spacing: 0.02em; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; transition: 0.2s; }
.seg button .ms { font-size: 16px; }
.seg button.on { background: var(--surface-lowest); color: var(--on-surface); box-shadow: var(--shadow-sm); font-weight: 700; }
.seg button.on .ms { color: var(--primary-container); font-variation-settings: 'FILL' 1; }
.seg button[disabled] { opacity: 0.45; cursor: not-allowed; }
.seg-note { margin-top: 8px; padding: 0 4px; font-size: 11px; line-height: 14px; color: var(--on-surface-variant); }
.date-row { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 8px; }
.date-row .input-wrap .input { height: 54px; padding: 0 28px 0 8px; text-align: center; font-family: var(--font-head); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.date-row .input-wrap span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; line-height: 16px; letter-spacing: 0.02em; font-weight: 700; color: var(--on-surface-variant); pointer-events: none; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.time-wrap.off { opacity: 0.4; pointer-events: none; }
.check-row { margin-top: 12px; padding-top: 12px; display: flex; align-items: flex-start; gap: 12px; }
.check-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box { width: 24px; height: 24px; flex: none; border-radius: 6px; background: var(--surface-high); display: grid; place-items: center; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); transition: 0.2s; color: transparent; }
.check-row input:checked + .check-box { background: var(--primary-container); color: var(--on-secondary-fixed); }
.check-row input:focus-visible + .check-box { box-shadow: 0 0 0 2px var(--primary-container); }
.check-row .t { flex: 1; }
.check-row .t b { display: block; font-size: 14px; line-height: 21px; font-weight: 700; cursor: pointer; }
.check-row .t small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.375; color: var(--on-surface-variant); font-weight: 600; letter-spacing: 0.04em; }
.gender-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gender-btn { height: 48px; border: 0; border-radius: 3rem; background: var(--surface-low); color: var(--on-surface-variant); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.gender-btn:hover { background: var(--surface-high); }
.gender-btn.on { background: rgba(235, 221, 255, 0.5); color: var(--on-secondary-fixed); font-weight: 700; box-shadow: var(--shadow-sm); }
.trust { padding: 14px; border-radius: var(--r-card); background: var(--surface-low); display: flex; align-items: center; gap: 12px; }
.trust .ico { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--surface-lowest); color: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.trust .ico .ms { font-size: 19px; }
.trust p { font-size: 11px; line-height: 1.625; color: var(--on-surface-variant); font-weight: 600; letter-spacing: 0.04em; }
.trust strong { color: var(--on-surface); font-weight: 700; }
.error { min-height: 20px; margin: -8px 4px -4px; color: #ba1a1a; font-size: 13px; line-height: 16px; font-weight: 700; }
.form-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; color: var(--outline); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; }
.form-foot span { display: flex; align-items: center; gap: 4px; }
.form-foot .ms { font-size: 14px; }
.form-foot i { width: 4px; height: 4px; border-radius: 50%; background: var(--outline-variant); }

/* ===== 결과 ===== */
.result-wrap { padding: 0 var(--margin); display: flex; flex-direction: column; gap: 1.5rem; }
.result-card { position: relative; padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface-lowest); box-shadow: var(--shadow-xl); overflow: hidden; }
.result-card .g1 { position: absolute; top: -3rem; right: -3rem; width: 11rem; height: 11rem; border-radius: 50%; background: rgba(212, 175, 55, 0.2); filter: blur(40px); pointer-events: none; }
.result-card .g2 { position: absolute; bottom: -4rem; left: -3rem; width: 10rem; height: 10rem; border-radius: 50%; background: rgba(213, 191, 253, 0.3); filter: blur(40px); pointer-events: none; }
.result-card > * { position: relative; z-index: 1; }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-top .who { padding: 4px 12px; border-radius: 999px; background: var(--primary-fixed); color: var(--on-primary-fixed); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 6px; }
.rc-top .who .ms { font-size: 14px; }
.rc-top .no { padding: 4px 10px; border-radius: 999px; background: var(--surface-low); color: var(--secondary); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.rc-mascot { margin: 1rem 0; display: flex; flex-direction: column; align-items: center; }
.avatar { position: relative; width: 224px; height: 224px; padding: 8px; border-radius: 50%; background: linear-gradient(to bottom, rgba(255, 224, 136, 0.3), var(--surface-container), rgba(235, 221, 255, 0.2)); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); }
.avatar .inner { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--surface-lowest); box-shadow: var(--shadow-md); display: grid; place-items: center; }
.avatar .star { position: absolute; top: -4px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-lowest); color: var(--primary-container); box-shadow: var(--shadow-md); display: grid; place-items: center; }
.avatar .star .ms { font-size: 18px; }
.avatar .el { position: absolute; bottom: 8px; left: -4px; width: 28px; height: 28px; border-radius: 50%; color: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.rc-titles { text-align: center; margin-top: 1rem; }
.rc-label { font-size: 13px; line-height: 16px; letter-spacing: 0.1em; font-weight: 700; color: var(--secondary); text-transform: uppercase; }
.rc-title { margin-top: 4px; font-family: var(--font-head); font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.rc-title span { display: block; color: var(--primary); }
.rc-quote { margin: 8px auto 0; max-width: 340px; color: var(--on-surface-variant); font-weight: 500; line-height: 1.625; }
.pillar-box { margin-top: 1rem; padding: 8px; border-radius: 1rem; background: rgba(246, 243, 238, 0.7); }
.pillar-box .row { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; margin-bottom: 6px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.04em; }
.pillar-box .row span:first-child { color: var(--on-surface-variant); }
.pillar-box .row span:last-child { color: var(--primary); }
.pillar-bar { height: 8px; border-radius: 999px; background: var(--surface-high); overflow: hidden; display: flex; }
.pillar-bar i { display: block; height: 100%; width: 50%; }
.el-row { margin-top: 10px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.el-chip { padding: 6px 12px; border-radius: 12px; font-size: 13px; line-height: 16px; font-weight: 700; }
.el-chip small { font-size: 11px; font-weight: 500; opacity: 0.75; margin-right: 4px; }
.hour-line { margin-top: 10px; text-align: center; font-size: 12px; color: var(--on-surface-variant); font-weight: 600; }
.tags { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tags span { padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; }
.tags span:nth-child(1) { background: var(--secondary-fixed); color: var(--on-secondary-fixed); }
.tags span:nth-child(2) { background: var(--primary-fixed); color: var(--on-primary-fixed); }
.tags span:nth-child(3) { background: var(--tertiary-fixed); color: var(--on-tertiary-fixed); }
.tags span:nth-child(4) { background: var(--surface-highest); color: var(--on-surface); }
.rc-foot { padding-top: 12px; display: flex; align-items: center; justify-content: space-between; color: var(--on-surface-variant); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.8; }
.rc-foot b { display: inline-flex; align-items: center; gap: 4px; }
.rc-foot b i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-container); }
.trait-sec { display: flex; flex-direction: column; gap: 0.5rem; }
.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.sec-head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head h2 .ms { color: var(--primary); font-size: 22px; }
.sec-head .side { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--secondary); }
.trait { padding: 1rem; border-radius: var(--r-lg); background: var(--surface-lowest); box-shadow: var(--shadow-sm); }
.trait .t { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.trait .t h3 { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.trait .t .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.trait .t .dot .ms { font-size: 16px; }
.trait p { color: var(--on-surface-variant); line-height: 1.625; }
.friend { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 1rem; background: var(--surface-low); }
.friend + .friend { margin-top: 10px; }
.friend .em { font-size: 24px; line-height: 1; }
.friend .l { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; }
.friend .n { font-size: 14px; line-height: 21px; font-weight: 700; }
.draft-note { padding: 0 4px; font-size: 11px; line-height: 14px; color: var(--on-surface-variant); }
.share-box { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.banner { position: relative; overflow: hidden; display: block; padding: 1.5rem; border-radius: var(--r-lg); background: linear-gradient(to bottom right, var(--secondary), var(--on-secondary-fixed)); color: var(--on-secondary); box-shadow: var(--shadow-xl); margin-bottom: 0.5rem; }
.banner .o { position: absolute; right: -2.5rem; bottom: -2.5rem; width: 9rem; height: 9rem; border-radius: 50%; background: rgba(212, 175, 55, 0.2); filter: blur(24px); }
.banner > div { position: relative; display: flex; flex-direction: column; gap: 8px; }
.banner .tg { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--primary-fixed); color: var(--on-primary-fixed); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.04em; }
.banner h3 { font-family: var(--font-head); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; color: var(--surface); }
.banner p { color: rgba(210, 188, 250, 0.9); }
.banner .go { margin-top: 8px; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; color: var(--primary-fixed); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; }
.banner .go span { display: flex; align-items: center; gap: 4px; }
.banner .go .c { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); display: grid; place-items: center; color: var(--surface); }
.foot-note { margin: 0 var(--margin); text-align: center; font-size: 11px; line-height: 14px; color: var(--on-surface-variant); }

/* ===== 2027 운세 ===== */
.bridge { position: relative; padding: 1rem var(--margin) 1.5rem; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.bridge .o1 { position: absolute; top: -3rem; width: 16rem; height: 16rem; border-radius: 50%; background: rgba(255, 224, 136, 0.3); filter: blur(64px); pointer-events: none; z-index: -1; }
.bridge .o2 { position: absolute; top: 5rem; right: -2.5rem; width: 12rem; height: 12rem; border-radius: 50%; background: rgba(235, 221, 255, 0.4); filter: blur(40px); pointer-events: none; z-index: -1; }
.status-pill { display: flex; align-items: center; gap: 4px; padding: 6px 1rem; border-radius: 999px; background: rgba(235, 232, 227, 0.8); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); color: var(--on-surface-variant); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-container); animation: pulse 2s infinite; margin-right: 4px; }
.bridge-card { width: 100%; margin-top: 1rem; padding: 1rem; border-radius: var(--r-lg); background: var(--surface-lowest); box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 1rem; overflow: hidden; }
.bridge-card .thumb { width: 80px; height: 80px; flex: none; border-radius: 50%; background: var(--surface-low); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); overflow: hidden; }
.bridge-card .thumb .char-emoji { font-size: 44px; }
.bridge-card .meta { min-width: 0; }
.bridge-card .mrow { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; }
.bridge-card .mrow b { padding: 2px 8px; border-radius: 999px; background: var(--secondary-fixed); color: var(--on-secondary-fixed); font-size: 11px; line-height: 14px; font-weight: 700; }
.bridge-card .mrow span { font-size: 11px; color: var(--on-surface-variant); font-weight: 500; }
.bridge-card h2 { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.bridge-card h2 em { font-style: normal; color: var(--primary); }
.bridge-card p { margin-top: 2px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-sec { padding: 0 var(--margin); margin-bottom: 1.5rem; }
.offer { padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface-lowest); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; text-align: center; }
.offer h1 { margin: 4px 0; font-family: var(--font-head); font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.offer .desc { max-width: 280px; color: var(--on-surface-variant); }
.price-box { width: 100%; margin-top: 1rem; padding: 1rem; border-radius: 1rem; background: var(--surface-low); display: flex; align-items: center; justify-content: space-between; text-align: left; }
.price-box .l { font-weight: 500; }
.price-box .p { display: flex; align-items: baseline; gap: 4px; }
.price-box .p b { font-family: var(--font-head); font-size: 32px; line-height: 38px; font-weight: 700; color: var(--primary); }
.price-box .p span { font-size: 18px; font-weight: 700; }
.chapters { padding: 0 var(--margin); margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.chapter { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border-radius: 1rem; background: var(--surface-lowest); box-shadow: var(--shadow-sm); }
.chapter .ic { width: 44px; height: 44px; flex: none; border-radius: 1rem; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.chapter .ic .ms { font-size: 24px; }
.chapter .c1 { display: flex; align-items: center; gap: 6px; }
.chapter .c1 b { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.04em; }
.chapter .c1 i { font-style: normal; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; }
.chapter h4 { margin-top: 2px; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.chapter p { margin-top: 4px; line-height: 1.375; color: var(--on-surface-variant); }
.buy-bar { position: sticky; bottom: 80px; z-index: 30; padding: 0 var(--margin) 8px; }
.buy-inner { position: relative; overflow: hidden; padding: 0.5rem; border-radius: var(--r-lg); background: var(--secondary); color: var(--on-secondary); box-shadow: var(--shadow-xl); backdrop-filter: blur(16px); }
.buy-inner .o { position: absolute; right: -1.5rem; bottom: -1.5rem; width: 6rem; height: 6rem; border-radius: 50%; background: rgba(212, 175, 55, 0.2); filter: blur(24px); pointer-events: none; }
.buy-inner .cta { position: relative; font-family: var(--font-head); font-size: 22px; line-height: 28px; }
.buy-note { position: relative; padding-top: 6px; text-align: center; color: var(--secondary-fixed); font-size: 11px; line-height: 14px; font-weight: 500; }

/* ===== 토스트 ===== */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  display: flex; align-items: center; gap: 8px; max-width: 90vw; padding: 10px 16px; border-radius: 999px;
  background: var(--inverse-surface); color: var(--inverse-on-surface); box-shadow: var(--shadow-xl);
  font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; transition: 0.3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ms { color: var(--primary-container); font-size: 18px; }
