/* ══════════════════════════════════════════════════════════════
   점점 — 2026 리디자인 테마 레이어 (app.css 위에 덮어씀)
   화이트 · 파스텔 라벤더/피치 · 3D 클레이 일러스트 · 경쾌한 모션
   롤백: index.html 에서 theme.css 링크를 빼면 이전 테마로 돌아감
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f7fd;
  --bg-elevated: #f1effa;
  --border: #ecebf4;
  --border-strong: #dedbea;
  --text-primary: #17142b;
  --text-secondary: #55526d;
  --text-tertiary: #9592ab;
  --accent: #6d4cf6;
  --accent-2: #a855f7;
  --accent-3: #ff7ab6;
  --accent-bg: #f3efff;
  --accent-border: #dcd1fe;
  --gold: #e7a51c;
  --gold-bg: #fff6df;
  --peach: #ffb38a;
  --mint: #3cc9a0;
  --purple: #7c3aed;
  --ink: #17142b;
  --ink-2: #2a2547;
  --grad: linear-gradient(120deg, #6d4cf6 0%, #a855f7 52%, #ff7ab6 100%);
  --grad-soft: linear-gradient(135deg, #f4f0ff 0%, #fdf0f7 55%, #fff4ea 100%);
  --radius: 20px;
  --radius-sm: 13px;
  --radius-lg: 30px;
  --shadow: 0 1px 2px rgba(40,30,90,.04), 0 4px 16px rgba(40,30,90,.05);
  --shadow-md: 0 10px 30px rgba(60,40,140,.10), 0 2px 8px rgba(40,30,90,.05);
  --shadow-lg: 0 30px 70px rgba(60,40,140,.16), 0 8px 22px rgba(40,30,90,.08);
  --shadow-accent: 0 10px 26px rgba(109,76,246,.32);
  --gnb-h: 68px;
  --tab-h: 64px;
}

body { background: var(--bg); color: var(--text-primary); letter-spacing: -.01em; }
::selection { background: #e7defe; }

/* ══════════════════════════ 스플래시 (화이트) ══════════════════════════ */
.splash { background: radial-gradient(120% 90% at 50% 25%, #f6f1ff 0%, #ffffff 55%, #fff7f0 100%); }
.splash__aura { background: radial-gradient(closest-side, rgba(168,85,247,.16), transparent 68%),
  conic-gradient(from 0deg, rgba(109,76,246,.10), rgba(255,122,182,.10), rgba(255,179,138,.10), rgba(109,76,246,.10)); }
.splash__stars i { background: var(--gold); box-shadow: 0 0 6px 1px rgba(231,165,28,.6); }
.splash__logo img { filter: drop-shadow(0 10px 26px rgba(109,76,246,.25)); }
.splash__ring { border-color: rgba(109,76,246,.35); }
.splash__ring--d { border-color: rgba(255,122,182,.4); }
.splash__word { background: var(--grad); -webkit-background-clip: text; background-clip: text; font-size: 34px; font-weight: 900; }
.splash__tag { color: var(--text-tertiary); font-weight: 600; }
.splash__bar { background: var(--bg-elevated); }
.splash__bar i { background: linear-gradient(90deg, transparent, #6d4cf6, #ff7ab6, transparent); }

/* ══════════════════════════ 상단 GNB ══════════════════════════ */
.layout { display: block; min-height: 100vh; }
.gnb { position: sticky; top: 0; z-index: 50; height: var(--gnb-h);
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background .25s; }
.gnb.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(40,30,90,.05); background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
.gnb__inner { max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.gnb .brand { display: flex; align-items: center; gap: 10px; padding: 0; flex: none; }
.gnb .brand img { width: 46px; height: 46px; border-radius: 11px; }
.gnb .brand__name { font-size: 33px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.gnb .brand__name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gnb__nav { display: flex; align-items: center; gap: 2px; }
.gnb__nav .nav__link { padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--text-secondary); gap: 7px; overflow: visible; }
.gnb__nav .nav__link svg { width: 17px; height: 17px; }
.gnb__nav .nav__link:hover { background: var(--bg-soft); color: var(--text-primary); }
.gnb__nav .nav__link.active { background: var(--accent-bg); color: var(--accent); }
.gnb__nav .nav__link.active::before { display: none; }
.gnb__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gnb .nav-credit { margin: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 4px 16px 4px 4px; border-radius: 999px;
  border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  color: var(--text-primary); font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(109,76,246,.14); transition: transform .2s var(--ease), box-shadow .25s var(--ease); }
.gnb .nav-credit svg { width: 30px !important; height: 30px !important; padding: 7px; border-radius: 50%; background: var(--grad); color: #fff; stroke-width: 2.2;
  box-shadow: 0 3px 8px rgba(109,76,246,.3); transition: transform .4s var(--ease-spring); }
.gnb .nav-credit:hover { background: linear-gradient(#faf8ff, #faf8ff) padding-box, var(--grad) border-box; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(109,76,246,.22); }
.gnb .nav-credit:hover svg { transform: rotate(-12deg) scale(1.06); }
.gnb .nav-credit:active { transform: scale(.97); }
.gnb__cta { border-radius: 999px !important; }
.gnb__icon { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--text-secondary); place-content: center; }
.gnb__icon svg { width: 19px; height: 19px; }

.main { margin-left: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--gnb-h)); overflow-x: clip; }
.view { padding: 30px 24px 40px; max-width: 1180px; }
.view-enter { animation: viewIn2 .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes viewIn2 { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 모바일 하단 탭바 */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(40,30,90,.05); }
.tab__link { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--text-tertiary); position: relative; transition: color .2s; }
.tab__link svg { width: 22px; height: 22px; transition: transform .3s var(--ease-spring); }
.tab__link.active { color: var(--accent); }
.tab__link.active svg { transform: translateY(-2px) scale(1.08); }
.tab__link.active::after { content: ""; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-3); transform: translateX(15px); }

/* ══════════════════════════ 타이포 · 공용 ══════════════════════════ */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; text-transform: none;
  color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-border); padding: 5px 12px; border-radius: 999px; }
.page-head h1 { font-size: 34px; font-weight: 900; letter-spacing: -.04em; margin: 12px 0 8px; }
.section-title { font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 페이지 히어로 — 제목 + 3D 일러스트 */
.page-hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
  padding: 26px 34px; margin-bottom: 26px; border-radius: var(--radius-lg); background: var(--grad-soft); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -80px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168,85,247,.16), transparent); }
.page-hero h1 { font-size: 32px; font-weight: 900; letter-spacing: -.04em; margin: 12px 0 8px; line-height: 1.2; }
.page-hero p { margin: 0; color: var(--text-secondary); font-size: 15.5px; max-width: 620px; }
.page-hero__art { width: 168px; height: 168px; position: relative; }
.page-hero__art img { width: 100%; height: 100%; object-fit: contain; animation: floaty 5s ease-in-out infinite; }
.page-hero__art::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 2px; height: 12px; border-radius: 50%;
  background: rgba(90,60,180,.12); filter: blur(5px); animation: floatShadow 5s ease-in-out infinite; z-index: -1; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes floatShadow { 0%,100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }

/* ══════════════════════════ 카드 · 버튼 · 폼 ══════════════════════════ */
.card { border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow); }
.card--pad-lg { padding: 30px; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-border); }

.btn { border-radius: 14px; font-weight: 800; letter-spacing: -.01em; }
.btn--primary { background: var(--grad); background-size: 160% 100%; background-position: 0% 50%; color: #fff; box-shadow: var(--shadow-accent);
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), background-position .5s var(--ease); }
.btn--primary:hover { background-position: 100% 50%; box-shadow: 0 14px 32px rgba(109,76,246,.40); transform: translateY(-1px); }
.btn--primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.btn--ghost { background: #fff; border-color: var(--border-strong); color: var(--text-primary); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--accent-border); color: var(--accent); }
.btn--soft { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-border); }
.btn--soft:hover { background: #ebe4ff; }
.btn--light { background: #fff; color: var(--text-primary); border-color: var(--border-strong); backdrop-filter: none; }
.btn--light:hover { background: var(--bg-soft); border-color: var(--accent-border); }
.btn--hero-ghost { background: transparent; color: var(--text-secondary); border: 1px dashed var(--border-strong); }
.btn--hero-ghost:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
.btn--lg { padding: 15px 28px; font-size: 16px; border-radius: 16px; }
.btn--xl { padding: 18px 34px; font-size: 17.5px; border-radius: 18px; }
.btn:not(.btn--primary) .ripple { background: rgba(109,76,246,.18); }

.input, .select, textarea.input { border-radius: 13px; border-color: var(--border-strong); padding: 12px 14px; background: #fff; }
.input:hover, .select:hover { border-color: #cdc6e6; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(109,76,246,.13); }
.field label { color: var(--text-primary); font-weight: 800; }
.segmented { background: var(--bg-elevated); border-radius: 14px; }
.segmented__thumb { background: var(--grad); box-shadow: 0 4px 12px rgba(109,76,246,.3); border-radius: 10px; }
.switch input:checked + .switch__track { background: var(--accent); }
.chat-input textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(109,76,246,.13); }

.pill--gold { background: var(--accent-bg); color: var(--accent); }
.badge--accent { background: var(--accent-bg); color: var(--accent); }
.ms-god { color: var(--accent); }
.ms-pillar { background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.ms-gz { border-radius: 12px; }
.ms-pillar { animation: pillarIn .5s var(--ease-spring) both; }
.ms-pillar:nth-child(2) { animation-delay: .07s; } .ms-pillar:nth-child(3) { animation-delay: .14s; } .ms-pillar:nth-child(4) { animation-delay: .21s; }
@keyframes pillarIn { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }

.report-item { border-radius: 18px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.report-item:hover { border-color: var(--accent-border); }
.report-item__ico, .hist-item__ico { background: var(--accent-bg); color: var(--accent); border-radius: 14px; }
.empty__ico { background: var(--accent-bg); color: var(--accent); border-radius: 26px; }
.empty__art { width: 150px; height: 150px; margin: 0 auto 12px; }
.empty__art img { width: 100%; height: 100%; object-fit: contain; animation: floaty 5s ease-in-out infinite; }
.member-card { border-radius: 20px; }
.member-card__num { background: var(--grad); color: #fff; border-radius: 10px; }
.stat::before { background: var(--grad); }
.sample-tab.active { background: var(--grad); box-shadow: 0 4px 12px rgba(109,76,246,.3); }
.sample-note, .local-badge--warn { border-radius: 14px; }
.sample-note { background: var(--accent-bg); border-color: var(--accent-border); }
.sample-note svg { color: var(--accent); }
.mbti-field { background: linear-gradient(135deg, #faf8ff, #fff); border-radius: 18px; border-color: var(--accent-border); }

/* 생성 진행 */
.tl-step.active .tl-step__dot { border-color: var(--accent); }
@keyframes tlRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(109,76,246,.30); } 50% { box-shadow: 0 0 0 8px rgba(109,76,246,.05); } }
.tl-step__logo { color: var(--accent); }
.gen-progressbar { height: 12px; background: var(--bg-elevated); }
.gen-progressbar__fill { background: linear-gradient(90deg, #6d4cf6, #a855f7, #ff7ab6, #ffb38a, #6d4cf6); background-size: 300% 100%; animation: progGrad 3s linear infinite; }
.gen-spin { border-color: var(--accent-bg); border-top-color: var(--accent); }
.narrative-stream h5 { color: var(--accent); }
.cursor { background: var(--accent); }
.gen-hero { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 18px; border-radius: 20px; background: var(--grad-soft); }
.gen-hero__orb { width: 96px; height: 96px; flex: none; position: relative; }
.gen-hero__orb img { width: 100%; height: 100%; object-fit: contain; animation: floaty 3.2s ease-in-out infinite; }
.gen-hero__orb::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(168,85,247,.35), transparent); animation: orbPulse 2s ease-in-out infinite; }
@keyframes orbPulse { 0%,100% { transform: scale(.85); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
.gen-tip { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); min-height: 3.3em; }
.gen-tip b { color: var(--accent); }
.gen-tip__k { font-size: 12px; font-weight: 800; color: var(--accent); margin-bottom: 4px; display: block; }
.gen-tip.swap { animation: tipSwap .5s var(--ease) both; }
@keyframes tipSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 챗봇 */
.msg--user .msg__ava, .msg--user .msg__bubble { background: var(--grad); color: #fff; }
.msg--bot .msg__ava { background: var(--accent-bg); color: var(--accent); }
.msg--bot .msg__bubble { background: #fff; box-shadow: var(--shadow); }
.suggest-chip { border-radius: 999px; }
.suggest-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.chat-ctxbar { border-radius: 16px; box-shadow: var(--shadow); }
.chat-wrap { height: calc(100vh - var(--gnb-h) - 30px); }
.report-view { height: calc(100vh - var(--gnb-h) - 40px); }
.report-view__frame { border-radius: 20px; }

/* 모달 · 토스트 · FAB · 알약 */
.modal-scrim { background: rgba(30,20,60,.35); }
.modal { border-radius: 26px; }
.modal__head b svg { color: var(--accent); }
.toast { background: var(--ink); border-radius: 14px; }
.pwa-install-fab { background: var(--grad); box-shadow: var(--shadow-accent); }
.pwa-install-fab:hover { box-shadow: 0 14px 32px rgba(109,76,246,.45); }
.job-pill { background: #fff; color: var(--text-primary); border: 1px solid var(--accent-border); box-shadow: var(--shadow-lg); }
.job-pill:hover { background: var(--bg-soft); }
.job-pill b { color: var(--accent); }
.job-pill__spin { border-color: var(--accent-bg); border-top-color: var(--accent); }
@keyframes jobPillGlow { 0%,100% { box-shadow: 0 16px 42px rgba(60,40,140,.16); } 50% { box-shadow: 0 16px 46px rgba(168,85,247,.35); } }

/* 사이트 푸터 */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 30px; }
.site-footer__product strong, .site-footer__copy a { color: var(--accent); }
.site-footer__links a:hover { color: var(--accent); }

/* ══════════════════════════ 띠·오행 캐릭터 카드 (명식 미리보기) ══════════════════════════ */
.charcard { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; padding: 16px 18px; margin-bottom: 16px;
  border-radius: 20px; background: var(--grad-soft); animation: charPop .6s var(--ease-spring) both; }
.charcard__art { width: 128px; height: 128px; position: relative; }
.charcard__art img { width: 100%; height: 100%; object-fit: contain; animation: floaty 4.5s ease-in-out infinite; }
.charcard__el { position: absolute; right: -6px; bottom: -4px; width: 54px; height: 54px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-md); display: grid; place-items: center; }
.charcard__el img { width: 44px; height: 44px; object-fit: contain; animation: none; }
.charcard__k { font-size: 12.5px; font-weight: 800; color: var(--accent); }
.charcard__t { font-size: 21px; font-weight: 900; letter-spacing: -.03em; line-height: 1.3; margin: 2px 0 6px; }
.charcard__d { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.charcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.charcard__tags span { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--accent); box-shadow: var(--shadow); }
@keyframes charPop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }

/* ══════════════════════════ 랜딩 (대시보드) ══════════════════════════ */
.lp { --lp-gap: 92px; }
.lp section { margin-bottom: var(--lp-gap); }
.lp-hero { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 24px;
  padding: 34px 0 10px; margin-bottom: 56px !important; isolation: isolate; }
.lp-hero__bg { position: absolute; z-index: -1; inset: -60px -40vw -40px; pointer-events: none; }
.lp-hero__bg::before, .lp-hero__bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); }
.lp-hero__bg::before { width: 620px; height: 620px; right: 34vw; top: -120px; background: radial-gradient(closest-side, rgba(168,85,247,.20), transparent); animation: blobA 14s ease-in-out infinite alternate; }
.lp-hero__bg::after { width: 520px; height: 520px; right: 40vw; top: 200px; background: radial-gradient(closest-side, rgba(255,179,138,.24), transparent); animation: blobB 16s ease-in-out infinite alternate; }
.lp-hero__bg i { position: absolute; width: 6px; height: 6px; background: var(--gold); border-radius: 1px; transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(231,165,28,.6); animation: twinkle2 3.6s ease-in-out infinite; }
@keyframes blobA { to { transform: translate(-60px, 60px) scale(1.12); } }
@keyframes blobB { to { transform: translate(80px, -40px) scale(.92); } }
@keyframes twinkle2 { 0%,100% { opacity: .1; transform: rotate(45deg) scale(.5); } 50% { opacity: 1; transform: rotate(45deg) scale(1.2); } }
.lp-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; color: var(--text-secondary); }
.lp-hero__badge b { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; letter-spacing: .02em; }
.lp-hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.12; font-weight: 900; letter-spacing: -.05em; margin: 22px 0 18px; }
.lp-rot { display: inline-grid; vertical-align: top; height: 1.32em; line-height: 1.3; overflow: hidden; padding-bottom: .04em; }
.lp-rot > span { grid-area: 1 / 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .06em; opacity: 0; transform: translateY(100%); transition: none; }
.lp-rot > span.on, .lp-rot > span.off { transition: transform .6s var(--ease-spring), opacity .4s; }
.lp-rot > span.on { opacity: 1; transform: none; }
.lp-rot > span.off { opacity: 0; transform: translateY(-100%); }
.lp-hero__lead { font-size: 18px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 28px; max-width: 520px; }
.lp-hero__lead b { color: var(--text-primary); }
.lp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lp-hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 13.5px; font-weight: 700; color: var(--text-secondary); }
.lp-hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero__trust svg { width: 16px; height: 16px; color: var(--mint); }
.lp-free { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #c2410c; background: #fff1e8;
  border: 1px solid #ffd8bf; padding: 5px 12px; border-radius: 999px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.lp-hero__art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.lp-hero__art > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; animation: floaty 6s ease-in-out infinite; }
.lp-hero__halo { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(168,85,247,.22), rgba(255,122,182,.10) 60%, transparent); animation: orbPulse 4s ease-in-out infinite; }
.lp-hero__ring { position: absolute; inset: 4%; border-radius: 50%; border: 1.5px dashed rgba(109,76,246,.22); animation: spin 60s linear infinite; }
.lp-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-md); font-size: 13px; font-weight: 800; white-space: nowrap; animation: chipFloat 5s ease-in-out infinite; }
.lp-chip img { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft); object-fit: contain; }
.lp-chip small { display: block; font-size: 11px; color: var(--text-tertiary); font-weight: 700; }
.lp-chip--a { left: -4%; top: 16%; }
.lp-chip--b { right: -2%; top: 46%; animation-delay: -1.6s; }
.lp-chip--c { left: 6%; bottom: 8%; animation-delay: -3.2s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 키워드 마퀴 */
.lp-marquee { position: relative; overflow: hidden; margin: 0 -24px 72px !important; padding: 14px 0; border-block: 1px solid var(--border);
  background: linear-gradient(90deg, #faf8ff, #fff6fb, #fffaf3); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.lp-marquee__track span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 14px; font-weight: 800; color: var(--text-secondary); white-space: nowrap; }
.lp-marquee__track span i { font-style: normal; color: var(--accent-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 섹션 머리 */
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.lp-head h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: 900; letter-spacing: -.045em; line-height: 1.25; margin: 14px 0 10px; }
.lp-head p { color: var(--text-secondary); font-size: 16.5px; margin: 0; }

/* 30초 미리보기 */
.lp-try { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; border-radius: 34px; overflow: hidden; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.lp-try__form { padding: 38px 38px 34px; background: var(--grad-soft); display: flex; flex-direction: column; gap: 16px; }
.lp-try__form h3 { font-size: 26px; font-weight: 900; letter-spacing: -.04em; margin: 8px 0 0; line-height: 1.3; }
.lp-try__form p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
.lp-try__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-try__out { padding: 32px 34px; min-height: 380px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.lp-try__idle { text-align: center; color: var(--text-tertiary); }
.lp-try__zoo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 360px; margin: 0 auto 18px; }
.lp-try__zoo img { width: 100%; aspect-ratio: 1; object-fit: contain; animation: zooBob 2.6s ease-in-out infinite; }
.lp-try__zoo img:nth-child(odd) { animation-delay: -1.3s; }
@keyframes zooBob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.lp-try__res { animation: charPop .7s var(--ease-spring) both; }
.lp-try__hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.lp-try__ani { width: 150px; height: 150px; flex: none; position: relative; }
.lp-try__ani::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,179,138,.35), transparent); animation: orbPulse 3s ease-in-out infinite; }
.lp-try__ani img { position: relative; width: 100%; height: 100%; object-fit: contain; animation: hopIn .8s var(--ease-spring) both, floaty 4.5s 0.8s ease-in-out infinite; }
@keyframes hopIn { 0% { transform: translateY(40px) scale(.4); opacity: 0; } 60% { transform: translateY(-14px) scale(1.06); opacity: 1; } 100% { transform: none; } }
.lp-try__k { font-size: 13px; font-weight: 800; color: var(--accent); }
.lp-try__t { font-size: 25px; font-weight: 900; letter-spacing: -.04em; line-height: 1.3; margin: 4px 0 4px; }
.lp-try__s { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.lp-bars { display: grid; gap: 8px; margin: 4px 0 18px; }
.lp-bar { display: grid; grid-template-columns: 58px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; }
.lp-bar__l { display: flex; align-items: center; gap: 6px; }
.lp-bar__l img { width: 26px; height: 26px; object-fit: contain; }
.lp-bar__t { display: block; height: 10px; border-radius: 999px; background: var(--bg-elevated); overflow: hidden; }
.lp-bar__f { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.lp-bar__v { text-align: right; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.lp-try__lock { position: relative; padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); border: 1px dashed var(--accent-border); margin-bottom: 16px; }
.lp-try__lock p { margin: 0; font-size: 13.5px; color: var(--text-secondary); filter: blur(3.5px); user-select: none; }
.lp-try__lock span { position: absolute; inset: 0; display: grid; place-content: center; font-size: 13.5px; font-weight: 800; color: var(--accent); gap: 4px; text-align: center; }

/* 서비스 카드 */
.lp-svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { position: relative; display: flex; flex-direction: column; padding: 22px 22px 24px; border-radius: 28px; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); cursor: pointer; overflow: hidden; isolation: isolate; transform-style: preserve-3d;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; will-change: transform; }
.svc::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 56%; background: var(--svc-bg, var(--grad-soft)); transition: height .4s var(--ease); }
.svc:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-border); }
.svc:hover::before { height: 62%; }
.svc__art { width: 100%; aspect-ratio: 1.25; display: grid; place-items: center; margin-bottom: 10px; }
.svc__art img { width: 78%; height: 100%; object-fit: contain; transition: transform .5s var(--ease-spring); }
.svc:hover .svc__art img { transform: scale(1.08) rotate(-3deg) translateY(-4px); }
.svc__tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); margin-bottom: 8px; }
.svc h3 { font-size: 20px; font-weight: 900; letter-spacing: -.035em; margin: 0 0 6px; }
.svc p { font-size: 14px; color: var(--text-secondary); margin: 0 0 14px; line-height: 1.6; flex: 1; }
.svc__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--accent); }
.svc__go svg { width: 16px; height: 16px; transition: transform .3s var(--ease-spring); }
.svc:hover .svc__go svg { transform: translateX(5px); }

/* MBTI 띠 */
.lp-mbti { display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 28px; padding: 26px 36px; border-radius: 32px; cursor: pointer;
  background: linear-gradient(120deg, #f2ecff 0%, #ffeef7 60%, #fff3e6 100%); border: 1px solid var(--accent-border); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.lp-mbti:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-mbti img { width: 240px; height: 200px; object-fit: contain; animation: floaty 5s ease-in-out infinite; }
.lp-mbti h3 { font-size: 30px; font-weight: 900; letter-spacing: -.04em; margin: 10px 0 8px; }
.lp-mbti h3 em { font-style: normal; color: var(--accent-3); padding: 0 4px; }
.lp-mbti p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; max-width: 560px; }
.lp-mbti__types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lp-mbti__types span { font-size: 12px; font-weight: 900; letter-spacing: .06em; padding: 4px 10px; border-radius: 8px; background: #fff; color: var(--purple); box-shadow: var(--shadow); }
.lp-mbti__go { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-accent); transition: transform .3s var(--ease-spring); }
.lp-mbti:hover .lp-mbti__go { transform: translateX(4px) scale(1.06); }

/* 오행 친구들 */
.lp-el { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.elc { text-align: center; padding: 18px 12px 20px; border-radius: 26px; background: var(--elc-bg); border: 1px solid rgba(0,0,0,.03); transition: transform .35s var(--ease-spring), box-shadow .35s; }
.elc:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: var(--shadow-md); }
.elc img { width: 110px; height: 110px; object-fit: contain; transition: transform .5s var(--ease-spring); }
.elc:hover img { transform: scale(1.12) translateY(-4px); animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 0%,100% { rotate: 0deg; } 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
.elc b { display: block; font-size: 22px; font-weight: 900; color: var(--elc-c); margin-top: 6px; }
.elc b small { font-size: 15px; opacity: .7; margin-left: 3px; }
.elc span { display: block; font-size: 13px; color: var(--text-secondary); font-weight: 600; margin-top: 4px; line-height: 1.5; }

/* 숫자 */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-stat { text-align: center; padding: 24px 12px; border-radius: 24px; background: var(--bg-soft); }
.lp-stat__n { font-size: 44px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.lp-stat__n small { font-size: 18px; margin-left: 2px; }
.lp-stat__l { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-top: 8px; }

/* 이용 방법 */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; position: relative; }
.lp-step { position: relative; padding: 28px 26px; border-radius: 26px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-step__n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; font-weight: 900; color: #fff; background: var(--grad); box-shadow: var(--shadow-accent); margin-bottom: 16px; }
.lp-step h4 { font-size: 19px; font-weight: 900; margin: 0 0 6px; letter-spacing: -.03em; }
.lp-step p { margin: 0; font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; }
.lp-step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -14px; width: 10px; height: 10px; border-top: 2.5px solid var(--accent-border); border-right: 2.5px solid var(--accent-border); transform: rotate(45deg); }

/* 12띠 행렬 */
.lp-zoo { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lp-zoo__track { display: flex; gap: 14px; width: max-content; animation: marquee 44s linear infinite; }
.lp-zoo:hover .lp-zoo__track { animation-play-state: paused; }
.zoo { width: 150px; flex: none; text-align: center; padding: 12px 8px 14px; border-radius: 24px; background: var(--bg-soft); transition: transform .35s var(--ease-spring), background .3s; }
.zoo:hover { transform: translateY(-8px); background: var(--accent-bg); }
.zoo img { width: 116px; height: 116px; object-fit: contain; }
.zoo b { display: block; font-size: 15px; font-weight: 900; }
.zoo span { font-size: 12px; color: var(--text-tertiary); font-weight: 700; }

/* 예시·가격·안심 */
.lp-duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.lp-sample { position: relative; overflow: hidden; border-radius: 30px; padding: 34px 36px; min-height: 280px; cursor: pointer;
  background: #fbf8ff url("/static/assets/img/banner.webp") right center / cover no-repeat; border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; justify-content: center; }
.lp-sample:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-sample h3 { font-size: 28px; font-weight: 900; letter-spacing: -.04em; margin: 12px 0 8px; max-width: 380px; line-height: 1.3; }
.lp-sample p { color: var(--text-secondary); margin: 0 0 20px; max-width: 360px; font-size: 15px; }
.lp-sample .row { gap: 8px; }
.lp-price { border-radius: 30px; padding: 30px 32px; background: linear-gradient(160deg, #fffaf0, #fff 60%); border: 1px solid #f6e3b4; position: relative; overflow: hidden; }
.lp-price img { position: absolute; right: -14px; top: -6px; width: 150px; height: 150px; object-fit: contain; animation: floaty 5s ease-in-out infinite; }
.lp-price__k { font-size: 13px; font-weight: 800; color: #b07800; }
.lp-price__v { font-size: 46px; font-weight: 900; letter-spacing: -.05em; line-height: 1.1; margin: 10px 0 2px; }
.lp-price__v small { font-size: 18px; font-weight: 800; color: var(--text-secondary); margin-left: 4px; }
.lp-price__s { color: var(--text-secondary); font-size: 14px; margin: 0 0 18px; }
.lp-price ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 7px; }
.lp-price li { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.lp-price li svg { width: 17px; height: 17px; color: var(--mint); flex: none; }

.lp-safe { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 24px; background: #effbf6; border: 1px solid #c9f0df; }
.lp-safe__ico { width: 52px; height: 52px; flex: none; border-radius: 16px; background: #fff; color: #0f8f5f; display: grid; place-items: center; box-shadow: var(--shadow); }
.lp-safe b { font-size: 16px; }
.lp-safe p { margin: 2px 0 0; font-size: 14px; color: var(--text-secondary); }

.lp-recent .report-item { box-shadow: none; }
.lp-final { text-align: center; padding: 56px 24px; border-radius: 36px; background: var(--grad); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.lp-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 15% 20%, rgba(255,255,255,.28), transparent 30%), radial-gradient(circle at 85% 80%, rgba(255,214,170,.35), transparent 35%); }
.lp-final h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.045em; margin: 0 0 10px; line-height: 1.25; }
.lp-final p { margin: 0 0 26px; opacity: .92; font-size: 16.5px; }
.lp-final .btn { background: #fff; color: var(--accent); box-shadow: 0 14px 30px rgba(40,10,90,.25); }
.lp-final .btn::after { display: none; }
.lp-final__stars i { position: absolute; width: 8px; height: 8px; background: #fff; transform: rotate(45deg); border-radius: 1px; animation: twinkle2 3s ease-in-out infinite; }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s cubic-bezier(.2,.8,.2,1); }

/* ══════════════════════════ 반응형 ══════════════════════════ */
@media (max-width: 1080px) {
  .gnb__nav .nav__link span { display: none; }
  .gnb__nav .nav__link { padding: 10px 12px; }
  .lp-svc { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --gnb-h: 60px; }
  .gnb__nav, .gnb__cta { display: none; }
  .gnb__icon { display: grid; }
  .gnb__inner { padding: 0 16px; gap: 10px; }
  .gnb .nav-credit { height: 38px; font-size: 12.5px; padding-right: 12px; }
  .gnb .nav-credit svg { width: 28px !important; height: 28px !important; }
  .gnb .brand img { width: 40px; height: 40px; }
  .gnb .brand__name { font-size: 29px; }
  .tabbar { display: flex; }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .job-pill { bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); }
  .pwa-install-fab { bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom)); }
  #toast-root { bottom: calc(var(--tab-h) + 18px); }
  .lp-hero { grid-template-columns: 1fr; text-align: center; padding-top: 14px; }
  .lp-hero__lead { margin-left: auto; margin-right: auto; }
  .lp-hero__cta, .lp-hero__trust { justify-content: center; }
  .lp-hero__art { max-width: 380px; order: -1; margin-bottom: -10px; }
  .lp-try { grid-template-columns: 1fr; }
  .lp-mbti { grid-template-columns: 1fr; text-align: center; padding: 24px; }
  .lp-mbti img { margin: 0 auto; }
  .lp-mbti p { margin: 0 auto; }
  .lp-mbti__types { justify-content: center; }
  .lp-mbti__go { display: none; }
  .lp-el { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .elc { scroll-snap-align: start; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-step:not(:last-child)::after { top: auto; bottom: -14px; right: 50%; transform: rotate(135deg); }
  .lp-duo { grid-template-columns: 1fr; }
  .chat-wrap { height: calc(100dvh - var(--gnb-h) - var(--tab-h) - 24px); }
  .report-view { height: calc(100dvh - var(--gnb-h) - var(--tab-h) - 30px); }
}
@media (max-width: 640px) {
  .lp { --lp-gap: 64px; }
  .view { padding: 18px 16px 26px; }
  .lp-hero h1 { font-size: 36px; margin: 16px 0 14px; }
  .lp-hero__lead { font-size: 16px; margin-bottom: 22px; }
  .lp-hero__cta .btn { flex: 1 1 100%; }
  .lp-chip { font-size: 12px; padding: 6px 10px 6px 6px; }
  .lp-chip img { width: 30px; height: 30px; }
  .lp-chip--a { left: -2%; top: 10%; } .lp-chip--b { right: -2%; } .lp-chip--c { left: 0; bottom: 4%; }
  .lp-marquee { margin: 0 -16px 52px !important; }
  .lp-svc { grid-template-columns: 1fr 1fr; gap: 12px; }
  .svc { padding: 14px 14px 18px; border-radius: 22px; }
  .svc h3 { font-size: 16.5px; }
  .svc p { font-size: 12.5px; }
  .svc__tag { font-size: 10.5px; }
  .lp-try { border-radius: 26px; }
  .lp-try__form, .lp-try__out { padding: 24px 20px; }
  .lp-try__out { min-height: 0; }
  .lp-try__hero { flex-direction: column; text-align: center; }
  .lp-try__zoo { grid-template-columns: repeat(6, 1fr); }
  .lp-mbti h3 { font-size: 24px; }
  .lp-mbti img { width: 180px; height: 150px; }
  .lp-stat__n { font-size: 36px; }
  .lp-sample { padding: 26px 22px; min-height: 240px; background-position: 70% center; }
  .lp-sample h3 { font-size: 23px; }
  .lp-sample p { background: rgba(255,255,255,.7); border-radius: 10px; }
  .lp-price { padding: 26px 22px; }
  .lp-final { padding: 42px 20px; border-radius: 28px; }
  .page-hero { grid-template-columns: 1fr auto; padding: 20px 18px; gap: 10px; border-radius: 24px; margin-bottom: 18px; }
  .page-hero h1 { font-size: 23px; margin: 10px 0 6px; }
  .page-hero p { font-size: 13.5px; }
  .page-hero__art { width: 96px; height: 96px; }
  .charcard { grid-template-columns: 96px 1fr; padding: 14px; gap: 12px; }
  .charcard__art { width: 96px; height: 96px; }
  .charcard__el { width: 42px; height: 42px; } .charcard__el img { width: 34px; height: 34px; }
  .charcard__t { font-size: 18px; }
  .card--pad-lg { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp *, .page-hero__art img, .charcard *, .gen-hero *, .btn--primary::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .lp-rot > span.on { transform: none; }
}

/* ── 로고 v2 (그라데이션 스퀘어클) ── */
.splash__logo img { width: 132px; animation: logoBob 2.4s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(109,76,246,.30)); }
@keyframes logoBob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.gnb .brand img { border-radius: 0; filter: drop-shadow(0 4px 10px rgba(109,76,246,.25)); transition: transform .5s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.boot__logo img { border-radius: 0; }

/* ── 리포트 뷰어 상단 바 ── */
.rv-bar { gap: 10px; padding: 10px 12px; margin-bottom: 14px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); flex-wrap: nowrap; }
.rv-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-title img { width: 46px; height: 46px; object-fit: contain; flex: none; animation: floaty 4.5s ease-in-out infinite; }
.rv-title__ico { width: 42px; height: 42px; border-radius: 13px; background: var(--accent-bg); color: var(--accent); display: grid; place-content: center; flex: none; }
.rv-title small { display: block; font-size: 11.5px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.rv-title b { display: block; font-size: 16px; font-weight: 900; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.rv-actions .btn { gap: 6px; }
@media (max-width: 1080px) { .rv-actions .btn:not(#chat):not(#dl) .lbl { display: none; } .rv-actions .btn:not(#chat):not(#dl) { padding: 7px 10px; } }
@media (max-width: 640px) {
  .rv-bar { flex-wrap: wrap; padding: 8px 10px; border-radius: 16px; }
  .rv-title { flex: 1; } .rv-title img { width: 38px; height: 38px; }
  .rv-title b { font-size: 14.5px; }
  .rv-actions { width: 100%; justify-content: space-between; }
  .rv-actions .btn .lbl { display: none; }
  .rv-actions .btn, .rv-actions .icon-btn { flex: 1; padding: 9px 0; }
  .rv-actions #chat .lbl { display: inline; }
  .rv-actions #chat { flex: 2.4; }
}
/* 그라데이션 글자도 드래그 선택 시 읽히도록 */
::selection { background: #e2d8ff; color: #221d3d; -webkit-text-fill-color: #221d3d; }

/* ── 토스 결제위젯 모달 ── 위젯 iframe 이 흰 바탕이라 본문도 흰색으로 고정 */
.pay-modal { max-width: 560px; max-height: 92vh; }
.pay-modal__body { background: #fff; padding: 4px 0 8px; gap: 0; min-height: 200px; }
.pay-modal__body #pw-status { padding: 60px 0; color: #6b6480; }
.pay-modal__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg); }
@media (max-width: 640px) {
  .modal-scrim:has(.pay-modal) { padding: 0; place-items: end stretch; }
  .pay-modal { max-width: none; max-height: 94vh; border-radius: 22px 22px 0 0; }
}
