/* 여우딩 — 공통 스타일 (v2: 고급 분홍 테마) */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@500;700;800;900&family=Noto+Serif+KR:wght@200;300;400;600&family=Noto+Sans+KR:wght@300;400;500;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --night: #fff7fa;
  --night-2: #ffedf3;
  --night-3: #ffdce8;
  --ink: #3d2130;
  --ink-dim: #86607a;
  --ink-faint: #b89aab;
  --gold: #e24e85;
  --gold-2: #ff7fae;
  --gold-deep: #b8386a;
  --gold-soft: rgba(226, 78, 133, .12);
  --rose: #d6336c;
  --sage: #4f9d86;
  --line: rgba(226, 78, 133, .16);
  --line-strong: rgba(226, 78, 133, .32);
  --card: rgba(255, 255, 255, .66);
  --card-hover: rgba(255, 255, 255, .92);
  --radius: 22px;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Noto Sans KR', 'Pretendard', system-ui, sans-serif;
  --latin: 'Cormorant Garamond', 'Noto Serif KR', serif;
  --shadow: 0 24px 60px -20px rgba(226, 78, 133, .28);
  --shadow-sm: 0 10px 30px -14px rgba(226, 78, 133, .25);
  --on-accent: #fff;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--night);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: #fff; }

/* 배경: 고정 그라데이션 + 떠다니는 빛 + 떨어지는 꽃잎 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1200px 640px at 50% -12%, #ffd6e4 0%, transparent 62%),
    radial-gradient(900px 560px at 95% 100%, rgba(255, 206, 170, .35) 0%, transparent 60%),
    radial-gradient(700px 460px at 0% 65%, rgba(226, 78, 133, .10) 0%, transparent 60%),
    var(--night);
}
.glow { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; filter: blur(60px); opacity: .55; }
.glow b { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 140, 185, .55), transparent 70%); animation: drift 22s ease-in-out infinite alternate; }
.glow b:nth-child(1) { width: 520px; height: 520px; left: -8%; top: 8%; }
.glow b:nth-child(2) { width: 420px; height: 420px; right: -6%; top: 28%; animation-duration: 28s; background: radial-gradient(circle, rgba(255, 190, 150, .5), transparent 70%); }
.glow b:nth-child(3) { width: 380px; height: 380px; left: 35%; bottom: -10%; animation-duration: 34s; }
@keyframes drift { to { transform: translate(60px, -50px) scale(1.12); } }
.petals { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute; top: -4%; width: 12px; height: 12px;
  border-radius: 60% 0 60% 0; background: linear-gradient(135deg, #ffb6cf, #ff86b0);
  transform: scale(var(--s, 1));
  animation: fall var(--d, 20s) linear infinite;
}
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0) scale(var(--s, 1)); }
  100% { transform: translate3d(var(--x, 0), 108vh, 0) rotate(560deg) scale(var(--s, 1)); }
}
/* 예전 이름 호환 */
.stars { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.serif { font-family: var(--serif); }

/* 진행 바 · 커서 */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 30; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 12px rgba(226, 78, 133, .5); }
.cursor { position: fixed; left: 0; top: 0; z-index: 200; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid rgba(226, 78, 133, .55); pointer-events: none; opacity: 0; transition: width .25s, height .25s, margin .25s, opacity .3s, background .25s; mix-blend-mode: multiply; }
.cursor.on { opacity: 1; }
.cursor.hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(226, 78, 133, .08); }

/* 스크롤 등장 */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; } .rv.d4 { transition-delay: .4s; }
.rv-title { clip-path: inset(0 0 100% 0); transform: translateY(20px); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.rv-title.in { clip-path: inset(-10% 0 -10% 0); transform: none; }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.up { animation: up .9s var(--ease) both; }
.up.d1 { animation-delay: .12s; } .up.d2 { animation-delay: .24s; } .up.d3 { animation-delay: .36s; } .up.d4 { animation-delay: .5s; }
.fx-ready .up { animation: none; opacity: 1; transform: none; }
.shine {
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 38%, #ffb8d1 50%, var(--gold) 62%, var(--gold-deep) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4.5s linear 1.2s infinite;
}
@keyframes shine { 0% { background-position: 120% 0; } 100% { background-position: -130% 0; } }

/* 헤더 */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px) saturate(1.3); background: rgba(255, 247, 250, .72); border-bottom: 1px solid transparent; transition: .35s; }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(226, 78, 133, .4); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 20px; letter-spacing: .04em; font-weight: 300; }
.brand .mark { position: relative; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe3ee, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 0 24px rgba(226, 78, 133, .45); }
.brand .mark::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(226, 78, 133, .35); animation: ring 3.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.nav { display: flex; gap: 24px; align-items: center; font-size: 14px; color: var(--ink-dim); }
.nav a { position: relative; padding: 4px 0; transition: color .25s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .3s var(--ease); }
.nav a:hover { color: var(--ink); } .nav a:hover::after { right: 0; }

/* 버튼 */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .7); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink);
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { background: #fff; border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn.primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); color: var(--on-accent); border-color: transparent; font-weight: 600; box-shadow: 0 10px 26px -10px rgba(226, 78, 133, .7); }
.btn.primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn.primary:hover::after { left: 120%; }
.btn.primary:hover { box-shadow: 0 16px 34px -12px rgba(226, 78, 133, .8); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.sm { padding: 8px 15px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* 카드 (유리 질감 + 빛 반사) */
.card {
  position: relative; background: var(--card); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 20px 50px -34px rgba(226, 78, 133, .45);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 255, 255, .9), rgba(226, 78, 133, .18) 50%, rgba(255, 255, 255, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tilt:hover::after { opacity: 1; }
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-dim); font-size: 14px; }
.eyebrow { font-family: var(--latin); font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5.2vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 19px; font-weight: 400; }
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

/* 폼 */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; color: var(--ink-dim); letter-spacing: .02em; }
.field .hint { font-size: 13.5px; color: var(--ink-dim); }
.field .cal { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-dim); margin-top: 2px; }
.field .cal input { accent-color: var(--gold); }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select {
  width: 100%; padding: 13px 15px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .8); color: var(--ink);
  outline: none; transition: .25s;
}
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); background: #fff; }
textarea { resize: vertical; min-height: 110px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

/* 아바타 (회전하는 빛 테두리) */
.avatar {
  position: relative; width: 156px; height: 156px; border-radius: 50%; overflow: hidden; flex: none;
  background: linear-gradient(145deg, #ffe4ee, #ffc6da);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(226, 78, 133, .3), 0 0 0 12px rgba(226, 78, 133, .07), var(--shadow);
  display: grid; place-items: center; font-family: var(--serif); font-size: 54px; color: var(--gold); font-weight: 300;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 72px; height: 72px; font-size: 26px; border-width: 2px; box-shadow: 0 0 0 1px rgba(226, 78, 133, .25); }
.hero .avatar-wrap { position: relative; width: 176px; height: 176px; margin: 0 auto 28px; display: grid; place-items: center; }
.hero .avatar-wrap::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 60%, rgba(226, 78, 133, .6) 80%, transparent 100%); animation: spin 7s linear infinite; }
.hero .avatar-wrap::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--night); }
.hero .avatar-wrap .avatar { position: relative; z-index: 1; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 목록 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.m-card { display: flex; gap: 18px; align-items: center; }
.m-card:hover { background: var(--card-hover); box-shadow: var(--shadow); }
.m-card .name { font-family: var(--serif); font-size: 21px; }
.m-card .dates { font-size: 13px; color: var(--ink-dim); font-family: var(--latin); letter-spacing: .04em; font-size: 15px; }
.m-card .epi { font-size: 13px; color: var(--ink-faint); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 추모 페이지 히어로 */
.hero { padding: 80px 0 44px; text-align: center; position: relative; }
.hero .name { font-size: clamp(36px, 6.4vw, 62px); font-weight: 200; letter-spacing: .02em; }
.hero .name small { font-size: .45em; color: var(--ink-faint); margin-right: 12px; vertical-align: middle; font-weight: 300; }
.hero .dates { color: var(--ink-dim); margin-top: 10px; letter-spacing: .08em; font-size: 15px; }
.hero .epitaph { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 22px); color: var(--gold-deep); margin: 24px auto 0; font-weight: 300; max-width: 640px; line-height: 1.7; }
.hero .epitaph::before, .hero .epitaph::after { content: ''; display: block; width: 36px; height: 1px; margin: 14px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero .counter { display: inline-flex; gap: 30px; margin-top: 22px; padding: 14px 30px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); font-size: 13px; color: var(--ink-dim); backdrop-filter: blur(10px); }
.hero .counter b { color: var(--ink); font-weight: 500; font-family: var(--latin); font-size: 17px; }

/* 제단 */
.altar { position: relative; padding: 44px 24px 32px; text-align: center; overflow: hidden; }
.altar::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.tributes { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.tribute {
  width: 156px; padding: 22px 14px 18px; border-radius: 22px; cursor: pointer; position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .65); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.tribute::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120px circle at 50% 30%, rgba(255, 170, 200, .35), transparent 70%); opacity: 0; transition: opacity .3s; }
.tribute:hover { background: #fff; transform: translateY(-5px); box-shadow: var(--shadow); }
.tribute:hover::before { opacity: 1; }
.tribute:active { transform: scale(.97); }
.tribute .icon { position: relative; font-size: 40px; line-height: 1; height: 48px; display: grid; place-items: center; filter: drop-shadow(0 6px 10px rgba(226, 78, 133, .25)); }
.tribute .label { position: relative; font-size: 14px; margin-top: 10px; font-family: var(--serif); }
.tribute .count { position: relative; font-size: 12px; color: var(--ink-dim); }
.tribute.pop .icon { animation: pop .5s ease; }
@keyframes pop { 30% { transform: scale(1.35) rotate(-6deg); } 60% { transform: scale(.95); } }
.flame { display: inline-block; width: 16px; height: 26px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6d8 0%, #ffd27a 35%, #ff8a3d 75%, transparent 100%); box-shadow: 0 0 18px 6px rgba(255, 180, 80, .45); animation: flicker 1.6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes flicker { 0% { transform: scaleY(1) rotate(-2deg); } 50% { transform: scaleY(1.08) rotate(2deg); } 100% { transform: scaleY(.95) rotate(-1deg); } }
.candle-body { display: block; width: 14px; height: 22px; margin: -2px auto 0; background: linear-gradient(#f4ecd8, #d9ccae); border-radius: 3px 3px 2px 2px; }
.petal { position: fixed; pointer-events: none; z-index: 50; font-size: 22px; animation: float 1.6s ease-out forwards; }
@keyframes float { to { transform: translateY(-140px) translateX(var(--dx, 0)) rotate(var(--rot, 40deg)); opacity: 0; } }
.smoke { position: fixed; pointer-events: none; z-index: 50; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); filter: blur(3px); animation: rise 1.8s ease-out forwards; }
@keyframes rise { to { transform: translateY(-160px) translateX(var(--dx, 0)) scale(4); opacity: 0; } }

/* 탭 (알약형) */
.tabs { display: inline-flex; gap: 4px; padding: 5px; margin: 44px 0 32px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); overflow-x: auto; max-width: 100%; }
.tabs button { background: none; border: 0; padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-dim); white-space: nowrap; font-size: 14.5px; transition: .3s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: #fff; background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-deep)); box-shadow: 0 8px 18px -8px rgba(226, 78, 133, .8); }
.tabs button.active .ai-badge { background: rgba(255, 255, 255, .25); color: #fff; }
.panel { display: none; }
.panel.active { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* 약력 */
.bio-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
@media (max-width: 760px) { .bio-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 6px 13px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-size: 13px; border: 1px solid rgba(226, 78, 133, .15); transition: .25s; }
.chip:hover { background: var(--gold); color: #fff; }
.quote { font-family: var(--serif); font-size: 18px; color: var(--ink); border-left: 2px solid var(--gold); padding-left: 16px; margin: 0; font-weight: 300; }

/* 타임라인 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold), rgba(226, 78, 133, .1)); }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before { content: ''; position: absolute; left: -27px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft), 0 0 14px rgba(226, 78, 133, .6); }
.tl-item .date { font-family: var(--latin); font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.tl-item h3 { margin: 4px 0 6px; }
.tl-item p { margin: 0; color: var(--ink-dim); }
.tl-item img { margin-top: 12px; border-radius: 14px; max-height: 340px; object-fit: cover; box-shadow: var(--shadow-sm); }

/* 방명록 */
.gb-list { display: grid; gap: 14px; }
.gb-item { display: flex; gap: 14px; }
.gb-item .who { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #ffe4ee, #ffc6da); color: var(--gold-deep); font-family: var(--serif); }
.gb-item .meta { font-size: 12px; color: var(--ink-faint); }
.gb-item p { margin: 4px 0 0; white-space: pre-wrap; }
.gb-form { margin-bottom: 24px; }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-faint); }
.notice { font-size: 13px; color: var(--ink-dim); background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: rgba(61, 33, 48, .92); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .35s var(--ease); z-index: 100; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 푸터 */
footer { padding: 54px 0 64px; color: var(--ink-dim); font-size: 14px; margin-top: 70px; text-align: center; position: relative; }
footer::before { content: ''; position: absolute; left: 20%; right: 20%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }

/* 홈 히어로 */
.home-hero { padding: 110px 0 64px; text-align: center; position: relative; }
.home-hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 200; line-height: 1.25; }
.home-hero p { max-width: 580px; margin: 22px auto 0; color: var(--ink-dim); font-size: 17px; }
.home-hero .actions { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.features .card { padding: 26px 24px; }
.features .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #fff, var(--night-3)); box-shadow: var(--shadow-sm); font-size: 24px; margin-bottom: 16px; }
.features h3 { font-size: 17px; margin-bottom: 6px; }
.features p { margin: 0; font-size: 14px; color: var(--ink-dim); }

/* 소통(채팅) */
.talk-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .talk-grid { grid-template-columns: 1fr; } }
.chat-box { display: flex; flex-direction: column; min-height: 560px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 4px; display: flex; flex-direction: column; gap: 12px; max-height: 520px; }
.chat-empty { margin: auto; text-align: center; color: var(--ink-dim); }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 18px; line-height: 1.6; font-size: 15px; animation: fade .3s var(--ease); }
.bubble .who { font-size: 12px; color: var(--gold); margin-bottom: 4px; }
.bubble .text { white-space: pre-wrap; }
.bubble .time { font-size: 11px; color: var(--ink-faint); margin-top: 4px; text-align: right; }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-deep)); color: var(--on-accent); border-bottom-right-radius: 5px; box-shadow: 0 8px 18px -10px rgba(226, 78, 133, .7); }
.bubble.user .time { color: rgba(255, 255, 255, .75); }
.bubble.assistant { align-self: flex-start; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.typing .text { display: flex; gap: 4px; padding: 6px 2px; }
.bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-dim); animation: blink 1.2s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; } .bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.chat-form { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }
.crisis { margin: 10px 0; padding: 12px 16px; border-radius: 14px; background: rgba(233, 163, 177, .14); border: 1px solid rgba(233, 163, 177, .4); font-size: 14px; line-height: 1.6; }
.rest { align-self: center; font-size: 13px; color: var(--sage); text-align: center; padding: 8px 14px; border: 1px dashed rgba(159, 196, 178, .5); border-radius: 12px; max-width: 90%; }
.persona summary { cursor: pointer; list-style: none; }
.persona summary::-webkit-details-marker { display: none; }
.persona textarea { min-height: 80px; font-size: 14px; }
.ai-badge { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(79, 157, 134, .12); color: var(--sage); letter-spacing: .08em; margin-left: 8px; vertical-align: middle; font-family: var(--sans); }

@media (max-width: 640px) {
  .hero .counter { gap: 16px; padding: 12px 18px; flex-wrap: wrap; justify-content: center; }
  .tabs { display: flex; }
  .cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-title, .up { opacity: 1; transform: none; clip-path: none; animation: none; transition: none; }
  .petals, .glow, .cursor, .brand .mark::after, .hero .avatar-wrap::before { animation: none; display: none; }
  .shine { animation: none; }
}

/* =========================================================
   v3: 공간 테마 (벚꽃·국화·밤하늘·바다) + 시간대 하늘 + 기일
   html[data-theme] 로 전환. --acc 는 강조색 RGB.
   ========================================================= */
:root { --acc: 226, 78, 133; --sky-a: transparent; --sky-b: transparent; --sun: transparent; }

/* 강조색을 쓰는 공통 요소 (벚꽃이면 원래와 같은 색) */
html[data-theme] .card { box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 20px 50px -34px rgba(var(--acc), .45); }
html[data-theme] .card::before { background: linear-gradient(140deg, rgba(255, 255, 255, .9), rgba(var(--acc), .18) 50%, rgba(255, 255, 255, .5)); }
html[data-theme] .btn.primary { box-shadow: 0 10px 26px -10px rgba(var(--acc), .7); }
html[data-theme] .tabs button.active { box-shadow: 0 8px 18px -8px rgba(var(--acc), .8); }
html[data-theme] .avatar { box-shadow: 0 0 0 1px rgba(var(--acc), .3), 0 0 0 12px rgba(var(--acc), .07), var(--shadow); }
html[data-theme] .hero .avatar-wrap::before { background: conic-gradient(from 0deg, transparent 0 60%, rgba(var(--acc), .6) 80%, transparent 100%); }
html[data-theme] .tl-item::before { box-shadow: 0 0 0 5px var(--gold-soft), 0 0 14px rgba(var(--acc), .6); }
html[data-theme] .progress { box-shadow: 0 0 12px rgba(var(--acc), .5); }
html[data-theme] .chip { border-color: rgba(var(--acc), .15); }
html[data-theme] .tribute .icon { filter: drop-shadow(0 6px 10px rgba(var(--acc), .25)); }
html[data-theme] .bubble.user { box-shadow: 0 8px 18px -10px rgba(var(--acc), .7); }
html[data-theme] .brand .mark { background: radial-gradient(circle at 35% 35%, #fff, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 0 24px rgba(var(--acc), .45); }
html[data-theme] .brand .mark::after { border-color: rgba(var(--acc), .35); }
html[data-theme] ::selection { background: var(--gold); }

/* --- 국화: 아이보리 + 은은한 금빛, 길쭉한 흰 꽃잎 --- */
html[data-theme="chrysanthemum"] {
  --acc: 184, 145, 58;
  --night: #fbf8f1; --night-2: #f5efe2; --night-3: #ece2c9;
  --ink: #3a3226; --ink-dim: #7d705a; --ink-faint: #ad9f86;
  --gold: #b8913a; --gold-2: #d9b860; --gold-deep: #8c6a22; --gold-soft: rgba(184, 145, 58, .12);
  --rose: #b4553d; --line: rgba(184, 145, 58, .18); --line-strong: rgba(184, 145, 58, .34);
  --shadow: 0 24px 60px -20px rgba(140, 106, 34, .25); --shadow-sm: 0 10px 30px -14px rgba(140, 106, 34, .22);
}
html[data-theme="chrysanthemum"] body::before {
  background: radial-gradient(1200px 640px at 50% -12%, #f3e7c6 0%, transparent 62%), radial-gradient(900px 560px at 95% 100%, rgba(233, 211, 154, .35) 0%, transparent 60%), radial-gradient(700px 460px at 0% 65%, rgba(184, 145, 58, .08) 0%, transparent 60%), var(--night);
}
html[data-theme="chrysanthemum"] .glow b { background: radial-gradient(circle, rgba(240, 215, 150, .5), transparent 70%); }
html[data-theme="chrysanthemum"] .glow b:nth-child(2) { background: radial-gradient(circle, rgba(255, 255, 255, .8), transparent 70%); }
html[data-theme="chrysanthemum"] .petals i { width: 5px; height: 16px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: linear-gradient(#fff, #fff 55%, #ecd59a); box-shadow: 0 0 6px rgba(184, 145, 58, .25); }
html[data-theme="chrysanthemum"] .topbar { background: rgba(251, 248, 241, .75); }
html[data-theme="chrysanthemum"] .avatar, html[data-theme="chrysanthemum"] .gb-item .who { background: linear-gradient(145deg, #fffaf0, #eedfb8); }

/* --- 바다: 맑은 하늘색 + 물방울 + 잔잔한 물결 --- */
html[data-theme="sea"] {
  --acc: 47, 134, 181;
  --night: #f3f9fc; --night-2: #e3f1f8; --night-3: #cfe6f2;
  --ink: #1f3444; --ink-dim: #5a7889; --ink-faint: #93abb8;
  --gold: #2f86b5; --gold-2: #6cc0e4; --gold-deep: #1d5f87; --gold-soft: rgba(47, 134, 181, .12);
  --rose: #c2456b; --line: rgba(47, 134, 181, .16); --line-strong: rgba(47, 134, 181, .32);
  --shadow: 0 24px 60px -20px rgba(29, 95, 135, .25); --shadow-sm: 0 10px 30px -14px rgba(29, 95, 135, .22);
}
html[data-theme="sea"] body::before {
  background: radial-gradient(1200px 640px at 50% -12%, #cfeaf7 0%, transparent 62%), radial-gradient(900px 560px at 95% 100%, rgba(150, 215, 225, .35) 0%, transparent 60%), radial-gradient(700px 460px at 0% 65%, rgba(47, 134, 181, .08) 0%, transparent 60%), var(--night);
}
html[data-theme="sea"] .glow b { background: radial-gradient(circle, rgba(120, 200, 235, .45), transparent 70%); }
html[data-theme="sea"] .glow b:nth-child(2) { background: radial-gradient(circle, rgba(170, 230, 220, .45), transparent 70%); }
html[data-theme="sea"] .petals i { top: auto; bottom: -4%; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(150, 210, 240, .35) 60%, rgba(47, 134, 181, .15)); border: 1px solid rgba(255, 255, 255, .7); animation-name: bubble; }
@keyframes bubble {
  0% { transform: translate3d(0, 0, 0) scale(var(--s, 1)); }
  50% { transform: translate3d(calc(var(--x, 0) * .5), -54vh, 0) scale(var(--s, 1)); }
  100% { transform: translate3d(var(--x, 0), -108vh, 0) scale(var(--s, 1)); }
}
html[data-theme="sea"] .topbar { background: rgba(243, 249, 252, .75); }
html[data-theme="sea"] .avatar, html[data-theme="sea"] .gb-item .who { background: linear-gradient(145deg, #eef8fd, #c4e3f3); }
.waves { position: fixed; left: 0; right: 0; bottom: 0; height: 130px; z-index: -1; pointer-events: none; overflow: hidden; }
.waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; animation: wave 26s linear infinite; }
.waves svg:nth-child(2) { height: 75%; opacity: .7; animation-duration: 18s; animation-direction: reverse; }
.waves path { fill: rgba(108, 192, 228, .16); }
.waves svg:nth-child(2) path { fill: rgba(47, 134, 181, .10); }
@keyframes wave { to { transform: translateX(-50%); } }

/* --- 밤하늘: 깊은 남색 + 반짝이는 별 + 달빛 금색 --- */
html[data-theme="night"] {
  --acc: 233, 199, 123;
  --night: #0f1630; --night-2: #18214a; --night-3: #24305f;
  --ink: #eef0fb; --ink-dim: #b6bddc; --ink-faint: #8189ad;
  --gold: #e9c77b; --gold-2: #ffe2a6; --gold-deep: #c99a45; --gold-soft: rgba(233, 199, 123, .14);
  --rose: #ff9db5; --sage: #8fd3bd; --line: rgba(233, 199, 123, .18); --line-strong: rgba(233, 199, 123, .34);
  --card: rgba(28, 37, 78, .58); --card-hover: rgba(38, 49, 98, .78);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, .5);
  --on-accent: #1d1a2e;
  color-scheme: dark;
}
html[data-theme="night"] body::before {
  background: radial-gradient(1200px 700px at 50% -15%, #2a3a7a 0%, transparent 62%), radial-gradient(900px 560px at 95% 100%, rgba(90, 70, 150, .35) 0%, transparent 60%), radial-gradient(700px 460px at 0% 65%, rgba(40, 80, 160, .25) 0%, transparent 60%), linear-gradient(#0c1229, #141c3d);
}
html[data-theme="night"] .glow { opacity: .35; }
html[data-theme="night"] .glow b { background: radial-gradient(circle, rgba(110, 130, 230, .45), transparent 70%); }
html[data-theme="night"] .glow b:nth-child(2) { background: radial-gradient(circle, rgba(233, 199, 123, .25), transparent 70%); }
html[data-theme="night"] .petals i { width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 245, 220, .8); animation: twinkle var(--tw, 4s) ease-in-out infinite alternate; transform: scale(var(--s, 1)); }
html[data-theme="night"] .petals i:nth-child(5n) { width: 4px; height: 4px; background: #ffe9b8; }
@keyframes twinkle { from { opacity: .15; } to { opacity: 1; } }
html[data-theme="night"] .topbar { background: rgba(15, 22, 48, .72); }
html[data-theme="night"] .card { border-color: rgba(255, 255, 255, .08); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 50px -30px rgba(0, 0, 0, .7); }
html[data-theme="night"] .card::before { background: linear-gradient(140deg, rgba(255, 255, 255, .18), rgba(233, 199, 123, .14) 50%, rgba(255, 255, 255, .05)); }
html[data-theme="night"] .tilt::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .08), transparent 55%); }
html[data-theme="night"] .btn { background: rgba(255, 255, 255, .06); }
html[data-theme="night"] .btn:hover { background: rgba(255, 255, 255, .12); }
html[data-theme="night"] .btn.primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); }
html[data-theme="night"] .tabs, html[data-theme="night"] .hero .counter, html[data-theme="night"] .tribute { background: rgba(28, 37, 78, .6); border-color: rgba(255, 255, 255, .1); }
html[data-theme="night"] .tribute:hover { background: rgba(40, 52, 104, .85); }
html[data-theme="night"] .tabs button.active { color: var(--on-accent); }
html[data-theme="night"] input[type=text], html[data-theme="night"] input[type=email], html[data-theme="night"] input[type=password], html[data-theme="night"] input[type=date], html[data-theme="night"] textarea, html[data-theme="night"] select { background: rgba(10, 15, 36, .55); }
html[data-theme="night"] input:focus, html[data-theme="night"] textarea:focus { background: rgba(10, 15, 36, .8); }
html[data-theme="night"] .bubble.assistant { background: rgba(36, 48, 95, .85); }
html[data-theme="night"] .avatar, html[data-theme="night"] .gb-item .who { background: linear-gradient(145deg, #2a3670, #1a2350); border-color: rgba(255, 255, 255, .6); }
html[data-theme="night"] .chip:hover { color: var(--on-accent); }
html[data-theme="night"] .toast { background: rgba(240, 236, 220, .95); color: #1d1a2e; }
html[data-theme="night"] .cursor { mix-blend-mode: normal; border-color: rgba(233, 199, 123, .6); }

/* --- 시간대 하늘 (방문자 현지 시각) --- */
.sky { position: fixed; inset: 0; z-index: -3; pointer-events: none; background: linear-gradient(180deg, var(--sky-a), var(--sky-b) 45%, transparent 75%); transition: background 2s; }
.sky::after { content: ''; position: absolute; width: 360px; height: 360px; right: 6%; top: -120px; border-radius: 50%; background: radial-gradient(circle, var(--sun), transparent 65%); }
html[data-time="dawn"]   { --sky-a: rgba(255, 196, 170, .38); --sky-b: rgba(210, 190, 235, .14); --sun: rgba(255, 220, 190, .55); }
html[data-time="day"]    { --sky-a: rgba(255, 255, 255, .22); --sky-b: transparent;               --sun: rgba(255, 252, 235, .55); }
html[data-time="sunset"] { --sky-a: rgba(255, 150, 110, .30); --sky-b: rgba(200, 110, 160, .12); --sun: rgba(255, 175, 120, .5); }
html[data-time="night"]  { --sky-a: rgba(45, 55, 120, .20);   --sky-b: rgba(45, 55, 120, .06);   --sun: rgba(235, 238, 255, .45); }
html[data-theme="night"][data-time="day"]    { --sky-a: rgba(120, 150, 230, .22); --sun: rgba(200, 215, 255, .25); }
html[data-theme="night"][data-time="night"]  { --sky-a: rgba(0, 0, 0, .18); --sun: rgba(255, 248, 225, .35); }

/* --- 기일 --- */
.anniv-banner { margin: 26px auto 0; max-width: 620px; padding: 18px 24px 16px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 236, 200, .55), rgba(var(--acc), .10)); border: 1px solid rgba(255, 200, 120, .45); box-shadow: 0 0 40px -10px rgba(255, 180, 80, .45); }
html[data-theme="night"] .anniv-banner { background: linear-gradient(135deg, rgba(255, 210, 140, .12), rgba(255, 255, 255, .04)); }
.anniv-banner .candles { display: flex; justify-content: center; gap: 22px; margin-bottom: 10px; }
.anniv-banner .candles > span { display: grid; justify-items: center; }
.anniv-banner .candles > span:nth-child(2) .flame { animation-delay: .5s; }
.anniv-banner .candles > span:nth-child(3) .flame { animation-delay: 1s; }
.anniv-banner h3 { font-size: 19px; }
.anniv-banner p { margin: 6px 0 0; font-size: 14px; color: var(--ink-dim); }
body.memorial-day .glow b:nth-child(2) { background: radial-gradient(circle, rgba(255, 190, 110, .55), transparent 70%); }
body.memorial-day .tribute[data-kind="candle"] { box-shadow: 0 0 0 1px rgba(255, 190, 110, .6), 0 0 34px -6px rgba(255, 180, 80, .6); }

/* --- 작별 인사 모드 --- */
.farewell-note { margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(var(--acc), .08), rgba(255, 255, 255, .4)); border: 1px solid var(--line-strong); font-size: 14px; line-height: 1.65; }
html[data-theme="night"] .farewell-note { background: rgba(255, 255, 255, .05); }
.farewell-note b { font-family: var(--serif); font-weight: 400; font-size: 15.5px; color: var(--gold-deep); }
html[data-theme="night"] .farewell-note b { color: var(--gold-2); }
.farewell-note .starters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.farewell-note .starters button { cursor: pointer; }
.chat-box.farewell { box-shadow: 0 0 0 1px rgba(var(--acc), .35), 0 26px 60px -30px rgba(var(--acc), .6); }
.bubble.fw { border-color: rgba(var(--acc), .45); }
@media (max-width: 640px) {
  .chat-head { flex-wrap: wrap; }
  .chat-head > div:last-child { width: 100%; justify-content: flex-start !important; }
}
.btn.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-deep); }
html[data-theme="night"] .btn.on { color: var(--gold-2); }

/* --- 테마 고르기 (만들기 화면) --- */
.theme-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .theme-pick { grid-template-columns: repeat(2, 1fr); } }
.theme-pick label { cursor: pointer; display: grid; gap: 6px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .55); transition: .25s; text-align: center; font-size: 14px; }
.theme-pick label:hover { border-color: var(--gold); }
.theme-pick input { position: absolute; opacity: 0; pointer-events: none; }
.theme-pick .sw { height: 54px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); position: relative; overflow: hidden; }
.theme-pick .sw::after { content: attr(data-ico); position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; }
.theme-pick small { font-size: 11.5px; color: var(--ink-faint); line-height: 1.4; }
.theme-pick label:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: #fff; }
html[data-theme="night"] .theme-pick label { background: rgba(255, 255, 255, .05); }
html[data-theme="night"] .theme-pick label:has(input:checked) { background: rgba(255, 255, 255, .12); }
.theme-pick input:focus-visible + .sw { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- QR 추모 카드 --- */
.qr-card { margin-top: 24px; }
.qr-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .qr-layout { grid-template-columns: 1fr; } }
.qr-preview { background: repeating-linear-gradient(45deg, rgba(var(--acc), .04) 0 10px, transparent 10px 20px); border-radius: 16px; padding: 18px; display: grid; place-items: center; min-height: 220px; }
.qr-preview canvas { max-width: 100%; height: auto; max-height: 460px; border-radius: 4px; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .35); background: #fff; }
.qr-opts { display: grid; gap: 12px; font-size: 14px; }
.qr-opts .seg { display: flex; flex-direction: column; gap: 6px; }
.qr-opts .seg label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.qr-opts input[type=radio] { accent-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .waves svg, .sky { animation: none; transition: none; }
  html[data-theme="night"] .petals { display: block; }
  html[data-theme="night"] .petals i { animation: none; opacity: .55; }
  .anniv-banner .flame { animation: none; }
}

/* 휴대폰 상단 메뉴: 글자가 세로로 깨지지 않게 */
.brand { white-space: nowrap; flex: none; }
.nav a, .nav span { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar .wrap { height: 58px; gap: 10px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand .mark { width: 24px; height: 24px; }
  .nav { gap: 14px; font-size: 13.5px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav span.faint { display: none; }
}
/* 묶음 탭: 이야기 · 사진·영상 · 마음 남기기 · 대화 · 설정 */
.tabs.grouped button { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; padding: 10px 18px; }
.tabs.grouped .tab-ic { font-size: 16px; }
.panel.active + .panel.active { margin-top: 44px; }
.panel-title { font-size: 22px; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
#bio .panel-title { display: none; }
.demo-bar { margin: 20px 0 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 15px; padding: 14px 18px; }
@media (max-width: 760px) {
  .tabs.grouped {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; border-radius: 0; max-width: none;
    display: flex; justify-content: space-around; gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 250, 252, .96); backdrop-filter: blur(12px); border: 0; border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -18px rgba(120, 60, 80, .5); opacity: 1 !important; transform: none !important;
  }
  .tabs.grouped button { flex: 1; flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 12.5px; border-radius: 12px; min-width: 0; }
  .tabs.grouped button span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabs.grouped .tab-ic { font-size: 20px; }
  .tabs.grouped button.active { background: var(--gold-soft); color: var(--gold-deep); box-shadow: none; }
  body.has-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .panel.active:first-of-type { margin-top: 24px; }
}
@media (max-width: 760px) { body.has-tabbar .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }

/* =========================================================
   v5: coopvsc.com(치유소) 벤치마킹
   흰 바탕 · 먹색 글자 · 핫핑크 강조 · 굵은 고딕 제목 · 테두리 카드 · 먹색 띠
   (고인 이름·묘비명·인용은 명조 그대로 — 추모의 온기 유지)
   ========================================================= */
:root {
  --acc: 255, 45, 120;
  --night: #ffffff; --night-2: #fff4f8; --night-3: #fbedf3;
  --ink: #1d1418; --ink-dim: #5f555a; --ink-faint: #9a8f95;
  --gold: #ff2d78; --gold-2: #ff6b9e; --gold-deep: #e0175f; --gold-soft: rgba(255, 45, 120, .09);
  --rose: #e0175f;
  --line: #f0dce5; --line-strong: #e3c1cf;
  --card: #ffffff; --card-hover: #ffffff;
  --radius: 16px;
  --display: 'Gothic A1', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --band: #141414; --band-muted: #9a9097;
  --shadow: 0 24px 60px -30px rgba(255, 45, 120, .45);
  --shadow-sm: 0 12px 30px -20px rgba(20, 20, 20, .3);
}
body::before { background: radial-gradient(900px 520px at 88% -14%, #ffe1ec 0%, transparent 62%), radial-gradient(700px 420px at -6% 40%, rgba(255, 45, 120, .05) 0%, transparent 60%), var(--night); }
.glow { opacity: .28; }
.petals i { background: linear-gradient(135deg, #ffc2d7, #ff6b9e); }
::selection { background: var(--gold); color: #fff; }

/* 제목·라벨: 굵은 고딕 */
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.22; word-break: keep-all; }
h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 12px; letter-spacing: .22em; font-weight: 800; color: var(--gold); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; flex: none; }
.panel-title { font-family: var(--display); font-weight: 800; border-bottom: 2px solid var(--ink); }
.hero .name, .hero .epitaph, .quote, .m-card .name, .farewell-note b { font-family: var(--serif); }
.hero .name { font-weight: 300; }
.tl-item .date, .hero .dates, .m-card .dates { font-family: var(--display); font-weight: 700; letter-spacing: .06em; font-size: 13px; }

/* 헤더 */
.topbar { background: rgba(255, 255, 255, .86); }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: none; }
.brand { font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.brand .mark { width: 26px; height: 26px; background: radial-gradient(circle at 35% 35%, #ffd0e0, var(--gold) 58%, var(--gold-deep)); box-shadow: 0 0 18px rgba(255, 45, 120, .4); }
.nav { font-family: var(--display); font-weight: 700; color: var(--ink-dim); }
.nav a::after { height: 2px; }

/* 진행 바 · 커서(점 + 링) */
.progress { height: 3px; background: var(--gold); box-shadow: none; }
.cursor { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-color: var(--gold); mix-blend-mode: normal; }
.cursor.hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 45, 120, .06); }
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 201; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--gold); pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor-dot.on { opacity: 1; }
@media (max-width: 640px) { .cursor-dot { display: none; } }

/* 버튼: 먹색 테두리 → 채움 / 주 버튼은 핫핑크 */
.btn { border: 1.5px solid var(--ink); background: transparent; font-family: var(--display); font-weight: 800; letter-spacing: .01em; }
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 12px 26px -14px rgba(var(--acc), .9); }
.btn.primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); box-shadow: 0 16px 30px -14px rgba(var(--acc), .9); }
.btn.ghost { border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-deep); }

/* 카드: 흰 바탕 + 얇은 테두리, 올리면 핑크 테두리로 떠오름 */
.card { background: var(--card); border: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
.card::before { display: none; }
.tilt::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--acc), .07), transparent 55%); }
.tilt:hover, .m-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
html[data-theme] .card { box-shadow: none; }
html[data-theme] .tilt:hover { box-shadow: 0 24px 60px -30px rgba(var(--acc), .45); }

/* 탭·칩·입력 */
.tabs { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.tabs button { font-family: var(--display); font-weight: 700; }
.tabs button.active { background: var(--gold); box-shadow: 0 8px 18px -10px rgba(var(--acc), .9); }
.chip { font-family: var(--display); font-weight: 700; }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select { border-color: var(--line-strong); background: #fff; border-radius: 12px; }
.tribute { background: #fff; border-color: var(--line); box-shadow: none; }
.tribute:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.hero .counter { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.hero .counter b { font-family: var(--display); font-weight: 800; }
.features .ico { background: var(--night-2); box-shadow: none; border-radius: 50%; }

/* 밤하늘 테마에서 버튼 글자가 사라지지 않게 */
html[data-theme="night"] .btn { border-color: rgba(255, 255, 255, .55); }
html[data-theme="night"] .btn:hover { background: var(--ink); color: var(--night); }
html[data-theme="night"] .btn.primary { color: var(--on-accent); border-color: transparent; }
html[data-theme="night"] .card, html[data-theme="night"] .tribute, html[data-theme="night"] .tabs, html[data-theme="night"] .hero .counter { background: var(--card); }
html[data-theme="night"] input[type=text], html[data-theme="night"] input[type=email], html[data-theme="night"] input[type=password], html[data-theme="night"] textarea, html[data-theme="night"] select { border-color: var(--line-strong); }
html[data-theme="night"] .topbar { background: rgba(15, 22, 48, .82); }
html[data-theme="chrysanthemum"] .topbar { background: rgba(251, 248, 241, .86); }
html[data-theme="sea"] .topbar { background: rgba(243, 249, 252, .86); }

/* 구역 제목: 아래에서 잘려 올라오는 등장(치유소식) */
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 48px); font-weight: 900; }
.sec-head p { margin: 0; color: var(--ink-dim); max-width: 36em; font-size: 16.5px; }
.sec-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.sec-head.rv { opacity: 1; transform: none; }
.sec-head.rv h2 { clip-path: inset(0 0 100% 0); transform: translateY(24px); transition: clip-path .9s var(--ease) .12s, transform .9s var(--ease) .12s; }
.sec-head.rv.in h2 { clip-path: inset(-10% 0 -12% 0); transform: none; }
.sec-head.rv .eyebrow::before { width: 0; transition: width .7s var(--ease) .35s; }
.sec-head.rv.in .eyebrow::before { width: 22px; }
.sec-head.rv p { opacity: 0; transform: translateY(14px); transition: opacity .7s .45s, transform .7s var(--ease) .45s; }
.sec-head.rv.in p { opacity: 1; transform: none; }

/* 홈 히어로: 단어가 하나씩 솟아오름 + 스크롤 안내 */
.home-hero { padding: 104px 0 56px; }
.home-hero h1 { font-family: var(--display); font-size: clamp(38px, 6.4vw, 76px); font-weight: 900; line-height: 1.14; letter-spacing: -.035em; }
.home-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.home-hero h1 .w b { display: inline-block; font-weight: 900; animation: wup .95s var(--ease) both; animation-delay: calc(var(--i) * .08s + .25s); }
.home-hero h1 .pk { color: var(--gold); }
@keyframes wup { from { transform: translateY(110%); } to { transform: none; } }
.home-hero p { font-size: clamp(15.5px, 1.5vw, 18px); max-width: 34em; }
.home-hero .actions .btn { padding: 14px 26px; font-size: 15px; }
.scroll-cue { margin-top: 46px; font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: .32em; color: var(--ink-faint); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 44px; display: block; background: linear-gradient(var(--gold), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.fx-ready .home-hero h1 .w b { animation: none; transform: none; }

/* 핑크 흐르는 띠 */
.marq { background: var(--gold); color: #fff; overflow: hidden; white-space: nowrap; padding: 15px 0; font-family: var(--display); font-weight: 900; font-size: clamp(17px, 2.2vw, 26px); letter-spacing: -.01em; }
.marq .track { display: inline-block; animation: marq 46s linear infinite; }
.marq span { display: inline-block; padding-right: 48px; }
.marq span::after { content: '●'; font-size: .38em; vertical-align: middle; margin-left: 48px; opacity: .7; }
@keyframes marq { to { transform: translateX(-50%); } }

/* 번호 카드 (01 · 02 …) */
.svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.svc { padding: 34px 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.svc:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.svc .n { font-family: var(--display); font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: .12em; }
.svc .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--night-2); display: grid; place-items: center; font-size: 24px; }
.svc h3 { font-size: 19px; font-weight: 800; }
.svc p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.svc ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink-dim); }
.svc li::before { content: '—'; color: var(--gold); margin-right: 8px; }

/* 먹색 띠: 여우딩의 약속 */
.band { background: var(--band); color: #fff; position: relative; overflow: hidden; padding: 96px 0; margin-top: 40px; }
.band .sec-head p { color: var(--band-muted); }
.band .eyebrow { color: var(--gold-2); }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); position: relative; z-index: 1; }
.val { background: var(--band); padding: 40px 30px 36px; position: relative; overflow: hidden; transition: background .4s; }
.val::before { content: ''; position: absolute; right: -70px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: var(--gold); opacity: 0; transform: scale(.3); transition: opacity .5s, transform .6s var(--ease); }
.val:hover::before { opacity: .16; transform: scale(1); }
.val .k { font-family: var(--display); font-size: 12px; letter-spacing: .22em; color: var(--gold-2); font-weight: 800; position: relative; }
.val h3 { color: #fff; font-size: 21px; font-weight: 800; margin: 14px 0 10px; position: relative; }
.val p { margin: 0; color: #c9c0c5; font-size: 14.5px; position: relative; }
.bigword { position: absolute; right: -2%; bottom: -8%; font-family: var(--display); font-weight: 900; font-size: clamp(80px, 16vw, 230px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); pointer-events: none; user-select: none; white-space: nowrap; }
@media (max-width: 860px) { .vals { grid-template-columns: 1fr; } .band { padding: 72px 0; } }

/* 마지막 권유 */
.cta { text-align: center; padding: 96px 0 40px; }
.cta h2 { font-size: clamp(28px, 4.4vw, 50px); font-weight: 900; }
.cta h2 .pk { color: var(--gold); }
.cta p { color: var(--ink-dim); margin: 16px auto 30px; max-width: 32em; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 푸터: 먹색 띠 + 외곽선 흐르는 글자 */
footer { background: var(--band); color: #b9b0b5; text-align: left; margin-top: 90px; padding: 56px 0 0; overflow: hidden; }
footer::before { display: none; }
footer .f-top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
footer .f-brand { font-family: var(--display); font-weight: 900; font-size: 22px; color: #fff; }
footer .f-brand small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13.5px; color: #9a9097; margin-top: 8px; max-width: 30em; line-height: 1.7; }
footer .f-links { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--display); font-weight: 700; font-size: 14px; }
footer .f-links a { color: #fff; }
footer .f-links a:hover { color: var(--gold-2); }
footer .f-help { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: #9a9097; }
footer .f-help b { color: #fff; }
.fmarq { white-space: nowrap; overflow: hidden; margin-top: 40px; font-family: var(--display); font-weight: 900; font-size: clamp(54px, 10vw, 136px); line-height: 1.1; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .4); user-select: none; }
.fmarq .track { display: inline-block; animation: marq 60s linear infinite; }
.fmarq span { padding-right: 60px; }
body.has-tabbar footer { margin-bottom: 0; }

@media (max-width: 640px) {
  .home-hero { padding: 72px 0 40px; }
  .sec-head { margin-bottom: 30px; }
  .svc { padding: 28px 22px 24px; }
  footer { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero h1 .w b, .marq .track, .fmarq .track, .scroll-cue i { animation: none; transform: none; }
  .sec-head.rv h2, .sec-head.rv p { clip-path: none; opacity: 1; transform: none; transition: none; }
  .cursor-dot { display: none; }
}

/* =========================================================
   v6: 필더필·치유소 수준으로 다듬기 (핑크 유지)
   ========================================================= */
/* 메뉴 글자 굴림 */
.nav .roll { display: inline-block; overflow: hidden; height: 1.6em; line-height: 1.6em; vertical-align: top; }
.nav .roll i { display: block; font-style: normal; transition: transform .38s var(--ease); }
.nav .roll i::after { content: attr(data-t); display: block; color: var(--gold); }
.nav a:hover .roll i { transform: translateY(-50%); }
.nav a::after { display: none; }

/* 추모 공간 머리: 외곽선 큰 글자 + 위쪽 라벨 */
.hero { overflow: hidden; }
.hero-word { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 900; font-size: clamp(72px, 15vw, 210px); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(var(--acc), .16); white-space: nowrap; pointer-events: none; user-select: none; z-index: -1; }
.hero-eyebrow { justify-content: center; margin-bottom: 26px; }
.hero .name { font-size: clamp(40px, 7vw, 76px); letter-spacing: -.01em; }
.hero .epitaph { font-size: clamp(19px, 2.4vw, 24px); }
.hero .epitaph::before, .hero .epitaph::after { width: 44px; background: var(--gold); opacity: .6; }
.hero .counter { border-radius: 14px; gap: 0; padding: 0; overflow: hidden; }
.hero .counter > span { padding: 12px 22px; border-left: 1px solid var(--line); display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; }
.hero .counter > span:first-child { border-left: 0; }
.hero .counter b { font-size: 20px; line-height: 1.1; color: var(--ink); }
.hero-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* 제단·카드 머리 정돈 */
.altar h2, .card h2 { font-weight: 900; }
.altar .eyebrow, .card > .eyebrow { justify-content: center; }
.card > .eyebrow { justify-content: flex-start; }
.altar .eyebrow { justify-content: center; }
.tribute { border-radius: 14px; }
.tribute .label { font-family: var(--display); font-weight: 800; }

/* 추억 타임라인: 큰 날짜 + 굵은 제목 */
.timeline::before { background: linear-gradient(var(--gold), rgba(var(--acc), .08)); }
.tl-item { padding: 4px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tl-item:last-child { border-bottom: 0; }
.tl-item .date { font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .04em; color: var(--gold); }
.tl-item h3 { font-size: 21px; font-weight: 800; margin: 6px 0 8px; }
.tl-item img { border-radius: 10px; }

/* 방명록·편지 */
.gb-item { border-radius: 14px; }
.gb-item .who { background: var(--gold); color: #fff; font-family: var(--display); font-weight: 800; }

/* 대화 예시 (샘플) */
.demo-chat-note { font-size: 13.5px; color: var(--ink-dim); text-align: center; padding: 4px 0 10px; }
.demo-chat-log { display: flex; flex-direction: column; gap: 12px; }
.demo-chat-qs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.demo-chat-qs .chip { cursor: pointer; background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.demo-chat-qs .chip:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-deep); }
.demo-chat-end { text-align: center; }
.demo-chat-end p { margin: 4px 0 10px; color: var(--ink-dim); font-size: 14px; }
html[data-theme="night"] .demo-chat-qs .chip { background: var(--card); color: var(--ink); }

/* 휴대폰 */
@media (max-width: 640px) {
  .hero .counter > span { padding: 10px 14px; }
  .hero .counter b { font-size: 18px; }
  .hero-word { top: 30%; }
}

/* =========================================================
   v7: 여우딩만의 모습 — 같은 핑크·흰 바탕, 다른 결
   명조 제목 · 아치(봉안당 창) 모양 · 밝은 분홍 띠 · 부드러운 바닥글
   (치유소식 검정 띠·외곽선 큰 글자·흐르는 띠·굵은 고딕은 쓰지 않음)
   ========================================================= */
:root { --ink: #2a1a23; --ink-dim: #6b5a63; --ink-faint: #a3929b; --blush: #fff3f7; --blush-2: #ffe6ef; }

/* 글자: 제목은 명조, 라벨은 기울인 영문 */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
.eyebrow { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 19px; letter-spacing: .01em; text-transform: none; color: var(--gold); gap: 8px; }
.eyebrow::before { content: '✿'; width: auto; height: auto; background: none; font-style: normal; font-size: 12px; color: var(--gold); opacity: .85; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.8vw, 44px); }
.sec-head.center { align-items: center; text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.sec-head.rv .eyebrow::before, .sec-head.rv.in .eyebrow::before { width: auto; }
.altar h2, .card h2 { font-family: var(--serif); font-weight: 400; }
.panel-title { font-family: var(--serif); font-weight: 400; border-bottom: 1px solid var(--line-strong); }
.tl-item .date { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 18px; letter-spacing: .02em; }
.tl-item h3 { font-weight: 700; font-size: 19px; }
.tribute .label { font-family: var(--sans); font-weight: 700; }

/* 머리말 */
.brand { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .02em; }
.nav { font-family: var(--sans); font-weight: 500; }
.nav a::after { display: block; content: ''; position: absolute; left: 50%; right: auto; bottom: -4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scale(1); right: auto; }
.cursor-dot { display: none; }
.cursor { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-color: rgba(var(--acc), .45); }
.cursor.hot { width: 46px; height: 46px; margin: -23px 0 0 -23px; }

/* 버튼: 검게 채우지 않고 분홍으로 물듦 */
.btn { border: 1px solid var(--line-strong); font-family: var(--sans); font-weight: 600; }
.btn:hover { background: var(--blush); color: var(--gold-deep); border-color: var(--gold); box-shadow: 0 10px 24px -16px rgba(var(--acc), .7); }
.btn.primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; }
.btn.primary:hover { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; }
.btn.ghost:hover { border-color: var(--gold); }
html[data-theme="night"] .btn:hover { background: rgba(255, 255, 255, .1); color: var(--gold-2); }

/* 카드: 더 둥글고 은은하게 */
.card { border-radius: 22px; }
.tilt:hover, .m-card:hover { border-color: rgba(var(--acc), .5); }
.m-card .name { font-family: var(--serif); }

/* ---------- 첫 화면: 글 + 아치 창 ---------- */
.hx { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: 76px 0 70px; }
.hx h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.25; margin: 18px 0 0; word-break: keep-all; }
.hx h1 em { font-style: normal; color: var(--gold); position: relative; white-space: nowrap; }
.hx h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: rgba(var(--acc), .14); border-radius: 4px; z-index: -1; }
.hx .lead { color: var(--ink-dim); font-size: clamp(15.5px, 1.4vw, 17.5px); max-width: 32em; margin: 22px 0 0; }
.hx .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.hx .actions .btn { padding: 13px 24px; font-size: 15px; }
.hx-trust { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; padding: 0; margin: 26px 0 0; font-size: 13.5px; color: var(--ink-dim); }
.hx-trust li::before { content: '✓'; color: var(--gold); margin-right: 6px; font-weight: 700; }
.hx-arch { position: relative; display: block; aspect-ratio: 4 / 5; max-width: 420px; width: 100%; justify-self: center; border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(var(--acc), .55), 0 0 0 10px #fff, 0 0 0 11px var(--line); isolation: isolate; }
.hx-arch .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #ffd9e6 0%, #ffeef4 42%, #fff9fb 70%, #ffe2ec 100%); }
.hx-arch .halo { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 160, .7), rgba(255, 180, 205, .25) 45%, transparent 70%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .85; } }
.hx-arch .candle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(2.2); display: grid; justify-items: center; }
.hx-arch .fl i { position: absolute; top: -6%; width: 12px; height: 12px; border-radius: 60% 0 60% 0; background: linear-gradient(135deg, #ffc2d7, #ff6b9e); opacity: .75; animation: fall 12s linear infinite; }
.hx-arch .fl i:nth-child(1) { left: 14%; animation-delay: -2s; }
.hx-arch .fl i:nth-child(2) { left: 38%; animation-duration: 15s; animation-delay: -8s; transform: scale(.7); }
.hx-arch .fl i:nth-child(3) { left: 62%; animation-duration: 11s; animation-delay: -5s; }
.hx-arch .fl i:nth-child(4) { left: 82%; animation-duration: 14s; animation-delay: -11s; }
.hx-arch .fl i:nth-child(5) { left: 50%; animation-duration: 17s; animation-delay: -1s; }
.hx-arch .tag { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .9); display: grid; gap: 2px; transition: transform .35s var(--ease), box-shadow .35s; }
.hx-arch .tag small { font-size: 12px; color: var(--gold); font-weight: 700; }
.hx-arch .tag b { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.hx-arch .tag span { font-size: 13px; color: var(--ink-dim); }
.hx-arch:hover .tag { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(var(--acc), .6); }

/* 조용히 바뀌는 한 줄 */
.qline { background: var(--blush); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; text-align: center; }
.qline p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 2.2vw, 24px); color: var(--gold-deep); transition: opacity .6s, transform .6s; }
.qline p::before, .qline p::after { content: '—'; color: var(--line-strong); margin: 0 14px; }
.qline p.out { opacity: 0; transform: translateY(6px); }

/* 할 수 있는 것: 아치 카드 */
.arches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.arch-card { position: relative; padding: 40px 24px 28px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 999px 999px 22px 22px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.arch-card:hover { transform: translateY(-6px); border-color: rgba(var(--acc), .5); box-shadow: 0 26px 50px -30px rgba(var(--acc), .55); }
.arch-ic { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 999px 999px 14px 14px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(180deg, var(--blush-2), var(--blush)); }
.arch-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.arch-card p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.7; word-break: keep-all; }

/* 약속: 밝은 분홍 바탕, 로마 숫자 */
.promise { background: linear-gradient(180deg, #fff, var(--blush) 30%, var(--blush) 70%, #fff); padding: 96px 0; margin-top: 30px; }
.pr-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.pr { padding: 10px 34px 6px; text-align: center; border-left: 1px solid var(--line-strong); }
.pr:first-child { border-left: 0; }
.pr .rn { display: block; font-family: var(--latin); font-style: italic; font-size: 46px; line-height: 1; color: var(--gold); margin-bottom: 16px; }
.pr h3 { font-size: 18px; margin-bottom: 10px; }
.pr p { margin: 0; color: var(--ink-dim); font-size: 14.5px; word-break: keep-all; }

/* 마지막 권유: 아치 모양 분홍 판 */
.cta-arch { margin: 90px auto 0; max-width: 880px; text-align: center; padding: 84px 32px 64px; border-radius: 440px 440px 28px 28px; background: radial-gradient(120% 80% at 50% 0%, #ff7aa8 0%, var(--gold) 55%, var(--gold-deep) 100%); color: #fff; box-shadow: 0 40px 80px -40px rgba(var(--acc), .8); position: relative; overflow: hidden; }
.cta-arch::before { content: ''; position: absolute; left: 50%; top: -30%; width: 60%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%); }
.cta-arch .eyebrow { color: #fff; justify-content: center; position: relative; }
.cta-arch .eyebrow::before { color: #fff; }
.cta-arch h2 { color: #fff; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 46px); margin: 12px 0 0; position: relative; }
.cta-arch p { color: rgba(255, 255, 255, .9); margin: 16px 0 28px; position: relative; }
.cta-arch .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-arch .btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-arch .btn:hover { background: rgba(255, 255, 255, .24); color: #fff; border-color: #fff; }
.cta-arch .btn.primary { background: #fff; color: var(--gold-deep); border-color: #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .35); }
.cta-arch .btn.primary:hover { background: #fff; color: var(--gold); }

/* 바닥글: 밝고 부드럽게 */
footer { background: var(--blush); color: var(--ink-dim); margin-top: 100px; padding: 0 0 44px; border-top: 1px solid var(--line); overflow: hidden; text-align: left; }
footer .f-mark { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: clamp(56px, 11vw, 150px); line-height: 1; color: rgba(var(--acc), .16); text-align: center; margin: 26px 0 12px; letter-spacing: -.01em; user-select: none; }
footer .f-brand { color: var(--ink); font-family: var(--serif); font-weight: 600; }
footer .f-brand small { color: var(--ink-dim); }
footer .f-links { font-family: var(--sans); font-weight: 600; }
footer .f-links a { color: var(--ink); }
footer .f-links a:hover { color: var(--gold-deep); }
footer .f-help { border-top-color: var(--line); color: var(--ink-dim); }
footer .f-help b { color: var(--gold-deep); }
html[data-theme="night"] footer { background: rgba(15, 22, 48, .7); border-top-color: rgba(255, 255, 255, .08); }
html[data-theme="night"] footer .f-brand, html[data-theme="night"] footer .f-links a { color: var(--ink); }
html[data-theme="chrysanthemum"] footer, html[data-theme="sea"] footer { background: var(--night-2); }

/* 추모 공간 머리: 아치 빛 */
.hero::before { content: ''; position: absolute; left: 50%; top: 40px; width: min(440px, 86vw); height: 380px; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: linear-gradient(180deg, rgba(var(--acc), .10), rgba(var(--acc), 0) 80%); z-index: -1; pointer-events: none; }
.hero-eyebrow { justify-content: center; }
.hero .name { font-family: var(--serif); font-weight: 300; }

/* 반응형 */
@media (max-width: 980px) {
  .arches { grid-template-columns: repeat(2, 1fr); }
  .hx { gap: 36px; }
}
@media (max-width: 860px) {
  .hx { grid-template-columns: 1fr; text-align: center; padding: 48px 0 56px; }
  .hx .eyebrow { justify-content: center; }
  .hx .lead { margin-left: auto; margin-right: auto; }
  .hx .actions, .hx-trust { justify-content: center; }
  .hx-arch { max-width: 320px; }
  .pr-cols { grid-template-columns: 1fr; gap: 34px; }
  .pr { border-left: 0; padding: 0 8px; }
  .pr + .pr { border-top: 1px solid var(--line-strong); padding-top: 34px; }
  .promise { padding: 72px 0; }
}
@media (max-width: 560px) {
  .arches { grid-template-columns: 1fr; }
  .arch-card { border-radius: 200px 200px 20px 20px; }
  .cta-arch { border-radius: 220px 220px 22px 22px; padding: 64px 22px 46px; margin-top: 64px; }
  .qline p::before, .qline p::after { margin: 0 8px; }
  .hx-trust { gap: 12px; }
  .hx .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-arch .halo, .hx-arch .fl i { animation: none; }
  .hx-arch .fl { display: none; }
}
.hx h1 { position: relative; z-index: 0; }
.hx { grid-template-columns: 1.25fr .75fr; } .hx h1 { font-size: clamp(34px, 4.6vw, 58px); } @media (max-width: 860px) { .hx { grid-template-columns: 1fr; } }

/* ---------- v7.1: 휴대폰 메뉴 · 파일 고르기 · 만들기 화면 ---------- */
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--ink); }
.menu-btn i { display: block; width: 20px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.topbar.open .menu-btn i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.topbar.open .menu-btn i:nth-child(2) { opacity: 0; }
.topbar.open .menu-btn i:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
@media (max-width: 640px) {
  .menu-btn { display: flex; }
  .topbar .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 14px; overflow: visible; background: var(--night); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(var(--acc), .45); font-size: 16px; }
  .topbar.open .nav { display: flex; animation: fade .3s var(--ease); }
  .topbar .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .topbar .nav a:last-child { border-bottom: 0; }
  .topbar .nav a::after { display: none; }
  .nav span.faint, .nav a.faint { display: block; }
}
/* 파일 고르기: 화면 폭에 맞추고, 버튼을 크게 */
input[type=file] { width: 100%; max-width: 100%; min-width: 0; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 14px; background: #fff; font-size: 14px; color: var(--ink-dim); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font: inherit; font-weight: 700; cursor: pointer; }
html[data-theme="night"] input[type=file] { background: rgba(10, 15, 36, .55); }
.field { min-width: 0; }
#form > div:first-child { flex-wrap: wrap; }
@media (max-width: 480px) {
  #form > div:first-child { flex-direction: column; align-items: stretch !important; text-align: center; }
  #form > div:first-child .avatar { margin: 0 auto; }
  #form > div:first-child .field { text-align: left; }
}

/* ---------- v7.2: 한국어 줄바꿈 · 작은 화면 다듬기 ---------- */
body { word-break: keep-all; overflow-wrap: break-word; }
.nw { white-space: nowrap; }
@media (max-width: 560px) {
  .qline p::before, .qline p::after { display: none; }
  .qline { padding: 24px 0; }
  .hx h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .tl-item .del, .gb-del { min-height: 36px; padding: 6px 12px !important; }
}


/* ---------- v7.3: 여우딩만의 은은한 움직임 (치유소식 솟는 글자·흐르는 띠 대신) ---------- */
@keyframes ywBlur { from { opacity: 0; filter: blur(14px); letter-spacing: .04em; } to { opacity: 1; filter: blur(0); letter-spacing: -.015em; } }
.hx h1 { animation: ywBlur 1.6s var(--ease) both .15s; }
.hx h1 em::after { transform-origin: left; animation: ywUnder 1s var(--ease) both 1.3s; }
@keyframes ywUnder { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hx-arch .halo { left: var(--hx, 50%); top: var(--hy, 52%); transition: left .8s var(--ease), top .8s var(--ease); }
.hx-arch .candle { transition: transform .8s var(--ease); }
.arch-card.rv { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(4px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.arch-card.rv.in { opacity: 1; transform: none; filter: none; }
.arch-card:hover .arch-ic { transform: translateY(-4px); box-shadow: 0 14px 24px -14px rgba(var(--acc), .6); }
.arch-ic { transition: transform .35s var(--ease), box-shadow .35s; }
.pr .rn { transition: transform .5s var(--ease); }
.pr:hover .rn { transform: translateY(-4px) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { .hx h1, .hx h1 em::after { animation: none; } .arch-card.rv { filter: none; } }

/* =========================================================
   v8 (여우딩 2.0): 공간 종류 고르기 · 약속 · 제휴 · 새 기능 소개
   ========================================================= */
.kind-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.kind-pick label { cursor: pointer; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span { display: grid; gap: 3px; height: 100%; padding: 16px 14px; border-radius: 999px 999px 16px 16px; border: 1px solid var(--line); background: #fff; text-align: center; transition: .25s var(--ease); }
.kind-pick b { font-size: 15.5px; }
.kind-pick small { color: var(--ink-dim); font-size: 12.5px; line-height: 1.5; }
.kind-pick input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: var(--blush); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.kind-note { margin: -4px 0 20px; padding: 12px 16px; border-radius: 14px; background: var(--blush); border: 1px dashed var(--line-strong); font-size: 14px; line-height: 1.7; }
@media (max-width: 560px) { .kind-pick { grid-template-columns: 1fr; } .kind-pick span { border-radius: 16px; text-align: left; } }

/* 약속 페이지 */
.pm-hero { text-align: center; padding: 80px 0 30px; max-width: 760px; }
.pm-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.3; margin: 16px 0 18px; }
.pm-hero p { color: var(--ink-dim); font-size: 16.5px; line-height: 1.9; }
.pm-list { max-width: 860px; display: grid; gap: 0; margin-top: 20px; }
.pm { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 34px 0; border-top: 1px solid var(--line); }
.pm:last-child { border-bottom: 1px solid var(--line); }
.pm .no { font-family: var(--latin); font-style: italic; font-size: 52px; line-height: 1; color: var(--gold); }
.pm h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 28px); margin: 4px 0 10px; }
.pm p { margin: 0; color: var(--ink-dim); line-height: 1.9; font-size: 15.5px; }
@media (max-width: 560px) { .pm { grid-template-columns: 1fr; gap: 6px; } .pm .no { font-size: 40px; } }

/* 제휴 페이지 */
.pt-visual { position: relative; height: 380px; }
.pt-plaque { position: absolute; left: 0; top: 40px; width: 300px; display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 14px; background: linear-gradient(135deg, #f8ecd2, #dcb672); box-shadow: 0 30px 50px -28px rgba(110, 70, 15, .7); transform: rotate(-4deg); }
.pt-plaque .qr { flex: none; width: 78px; height: 78px; border-radius: 6px; background: #fff repeating-conic-gradient(#3a2a12 0 25%, #fff 0 50%) 0 0 / 13px 13px; box-shadow: inset 0 0 0 6px #fff; }
.pt-plaque b { display: block; font-family: var(--serif); font-size: 21px; color: #3a2a12; }
.pt-plaque span { display: block; font-size: 13px; color: #5a4320; }
.pt-plaque small { display: block; font-size: 11.5px; color: #6d5326; margin-top: 6px; }
.pt-phone { position: absolute; right: 10px; top: 0; width: 190px; height: 370px; border-radius: 30px; background: #1d1418; padding: 12px; box-shadow: 0 40px 70px -35px rgba(var(--acc), .8); }
.pt-phone .scr { height: 100%; border-radius: 22px; background: linear-gradient(180deg, #ffe1ec, #fff); display: grid; align-content: center; justify-items: center; gap: 10px; }
.pt-phone .scr span { font-size: 40px; }
.pt-phone .scr b { font-family: var(--serif); font-weight: 400; font-size: 15px; }
.pt-phone .scr i { width: 120px; height: 10px; border-radius: 6px; background: var(--line); }
.pt-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.pt-flow > div { padding: 26px 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.pt-flow span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; margin-bottom: 14px; }
.pt-flow h3 { font-size: 17px; margin: 0 0 6px; }
.pt-flow p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.7; }
.pt-form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 980px) { .pt-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .pt-visual { height: 330px; max-width: 420px; margin: 0 auto; width: 100%; } .pt-form-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pt-flow { grid-template-columns: 1fr; } .pt-plaque { width: 250px; padding: 16px; } .pt-plaque .qr { width: 60px; height: 60px; } .pt-phone { width: 150px; height: 300px; } }

/* 첫 화면: 2.0 새 기능 */
.v2-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v2-feat { position: relative; display: grid; gap: 8px; align-content: start; padding: 30px 26px 26px; border-radius: 22px; border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; overflow: hidden; }
.v2-feat:hover { transform: translateY(-6px); border-color: rgba(var(--acc), .5); box-shadow: 0 26px 50px -30px rgba(var(--acc), .55); }
.v2-feat .ic { font-size: 30px; }
.v2-feat h3 { font-size: 18px; margin: 4px 0 0; }
.v2-feat p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.75; }
.v2-feat .go { margin-top: 6px; color: var(--gold-deep); font-weight: 700; font-size: 14px; }
.v2-feat.dark { background: linear-gradient(135deg, #2b1d3a, #4a2a4f 60%, #7a3b62); border: 0; color: #fff; }
.v2-feat.dark p { color: rgba(255, 255, 255, .82); }
.v2-feat.dark .go { color: #ffd59a; }
.new-tag { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--gold); padding: 3px 9px; border-radius: 999px; }
@media (max-width: 860px) { .v2-feats { grid-template-columns: 1fr; } }
.m-card .kind-badge { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); margin-left: 6px; vertical-align: 2px; font-family: var(--sans); }

/* hidden 속성이 버튼 모양(display)에 지지 않게 */
[hidden] { display: none !important; }


/* =========================================================
   v9 · Soft Editorial Pink (2026-11-23)
   한 가지 분홍으로 통일: 블러시 종이 바탕 + 장미빛 포인트 + 큰 명조 헤드라인
   보라·먹색 블록을 모두 장미빛 그라데이션으로 바꾸고, 떠 있는 유리 메뉴·벤토 카드
   ========================================================= */
:root {
  --acc: 240, 69, 127;
  --night: #fffafb; --night-2: #fff2f6; --night-3: #ffe6ee;
  --ink: #24131b; --ink-dim: #6e5862; --ink-faint: #a8939c;
  --gold: #f0457f; --gold-2: #ff8fb4; --gold-deep: #c2185b; --gold-soft: rgba(240, 69, 127, .09);
  --rose: #d81b60; --blush: #fff1f5; --blush-2: #ffe4ed;
  --line: rgba(194, 24, 91, .10); --line-strong: rgba(194, 24, 91, .22);
  --card: #ffffff; --card-hover: #ffffff;
  --radius: 26px;
  --sans: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  --display: var(--sans);
  --grad: linear-gradient(135deg, #ff9ec0 0%, #f0457f 48%, #c2185b 100%);
  --grad-soft: linear-gradient(135deg, #fff5f8 0%, #ffe3ec 55%, #ffd4e2 100%);
  --shadow: 0 30px 60px -34px rgba(194, 24, 91, .38), 0 2px 6px -2px rgba(194, 24, 91, .06);
  --shadow-sm: 0 16px 32px -22px rgba(194, 24, 91, .34);
}
html[data-theme="chrysanthemum"], html[data-theme="sea"], html[data-theme="night"] { --grad: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, var(--gold-deep)); }
body { font-family: var(--sans); color: var(--ink); background: var(--night); letter-spacing: -.005em; }
body::before { background:
  radial-gradient(1100px 620px at 92% -10%, rgba(255, 170, 200, .38), transparent 62%),
  radial-gradient(800px 520px at -8% 26%, rgba(255, 214, 196, .30), transparent 60%),
  radial-gradient(900px 600px at 50% 110%, rgba(232, 214, 255, .26), transparent 60%); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .3 0 0 0 0 .4 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.glow { opacity: .22; }
::selection { background: rgba(240, 69, 127, .2); }

/* 제목 */
h1, h2, h3 { letter-spacing: -.02em; }
.sec-head h2, .section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.22; letter-spacing: -.035em; }
.sec-head p { color: var(--ink-dim); font-size: clamp(15px, 1.3vw, 17px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
  padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(194, 24, 91, .5); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(240, 69, 127, .18); }
.sec-head.center .eyebrow, .eyebrow[style*="center"] { margin-left: auto; margin-right: auto; }

/* 떠 있는 유리 메뉴 */
.topbar { position: sticky; top: 12px; background: transparent; border: 0; backdrop-filter: none; box-shadow: none; z-index: 40; }
.topbar.scrolled { box-shadow: none; border: 0; }
.topbar .wrap { height: 60px; padding: 0 10px 0 20px; border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px -26px rgba(194, 24, 91, .45), inset 0 0 0 1px var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand .mark { width: 24px; height: 24px; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(194, 24, 91, .8); }
.brand .mark::after { border-color: rgba(240, 69, 127, .25); }
.nav { font-family: var(--sans); font-weight: 600; font-size: 14px; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-dim); transition: background .25s, color .25s; }
.nav a:hover { background: var(--blush); color: var(--ink); }
@media (max-width: 760px) { .topbar { top: 8px; } .topbar .wrap { height: 54px; padding: 0 8px 0 16px; } }

/* 버튼 */
.btn { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .85); color: var(--ink);
  padding: 12px 22px; transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s; }
.btn:hover { background: #fff; color: var(--ink); border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--grad); background-size: 140% 140%; background-position: 0 0; color: #fff; border-color: transparent; box-shadow: 0 16px 30px -16px rgba(194, 24, 91, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.primary:hover { background: var(--grad); background-size: 140% 140%; background-position: 100% 100%; color: #fff; border-color: transparent; box-shadow: 0 22px 36px -16px rgba(194, 24, 91, .9); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.sm { padding: 8px 15px; font-size: 13px; }

/* 카드 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card::before { display: none; }
input, select, textarea { font-family: var(--sans); border-radius: 14px; border-color: var(--line-strong); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); outline: none; }

/* 보라·먹색 블록 → 장미빛 */
.v2-feat.dark, .holiday { background: var(--grad); color: #fff; border: 0; }
.holiday .eyebrow, .v2-feat.dark .eyebrow { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .3); }
.holiday .eyebrow::before { background: #fff; box-shadow: none; }
.holiday h2, .holiday p, .holiday .hol-live { color: #fff; }
.holiday .btn.primary { background: #fff; color: var(--gold-deep); }
.holiday .btn { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .6); }
.holiday .hol-moon { background: radial-gradient(circle at 38% 36%, #fff 0 18%, #ffe7b8 46%, #ffc98a 100%); box-shadow: 0 0 60px 10px rgba(255, 230, 190, .55); }

/* 공간 머리 */
.hero .name { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; }
.hero .counter { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tabs { background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tabs button.active { background: var(--grad); }

/* 바닥글 */
footer { background: linear-gradient(180deg, transparent, var(--blush) 30%); border-top: 0; }
footer .f-mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .22; }

/* ============ 첫 화면 (index) ============ */
.h9 { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.h9 h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 88px); line-height: 1.08; letter-spacing: -.055em; margin: 22px 0 0; }
.h9 h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h9 h1 .it { font-family: var(--latin); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.h9 .lead { color: var(--ink-dim); font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.8; max-width: 30em; margin: 26px 0 0; }
.h9 .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.h9 .actions .btn { padding: 15px 26px; font-size: 15.5px; }
.h9-visual { position: relative; justify-self: center; width: min(440px, 100%); }
.h9-visual .hx-arch { max-width: none; box-shadow: 0 60px 90px -50px rgba(194, 24, 91, .6); }
.chip9 { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 24px 40px -26px rgba(194, 24, 91, .6), inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13.5px; white-space: nowrap; animation: float9 7s ease-in-out infinite; }
.chip9 b { font-weight: 700; } .chip9 small { display: block; color: var(--ink-dim); font-size: 12px; }
.chip9 .ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--blush); font-size: 17px; }
.chip9 .live { width: 8px; height: 8px; border-radius: 50%; background: #2ecc8f; box-shadow: 0 0 0 4px rgba(46, 204, 143, .18); }
.chip9.c1 { left: -12%; top: 14%; }
.chip9.c2 { right: -10%; top: 42%; animation-delay: -2.4s; }
.chip9.c3 { left: -8%; top: 50%; animation-delay: -4.6s; }
@keyframes float9 { 50% { transform: translateY(-8px); } }
.trust9 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.trust9 li { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-dim); }

/* 선언문 */
.mani { padding: 120px 0 60px; text-align: center; }
.mani p.big { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.6vw, 76px); line-height: 1.22; letter-spacing: -.05em; margin: 22px 0 0; }
.mani p.big em { font-style: normal; position: relative; white-space: nowrap; }
.mani p.big em::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em; background: linear-gradient(90deg, rgba(255, 158, 192, .55), rgba(240, 69, 127, .35)); border-radius: 6px; z-index: -1; }
.mani p.sub { color: var(--ink-dim); max-width: 34em; margin: 26px auto 0; font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.85; }

/* 여정 */
.jr { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 48px; position: relative; }
.jr::before { content: ''; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-2), var(--gold), var(--gold-2), transparent); opacity: .5; }
.jr > div { position: relative; padding: 0 6px; text-align: center; }
.jr .dot { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.jr .when { display: block; font-family: var(--latin); font-style: italic; color: var(--gold); font-size: 17px; }
.jr h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; margin: 4px 0 8px; }
.jr p { margin: 0; color: var(--ink-dim); font-size: 14px; line-height: 1.7; }

/* 벤토 */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; margin-top: 44px;
  grid-template-areas: "a a b c" "a a d d" "e f g g"; }
.bx { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 28px; border-radius: 28px; background: #fff; border: 1px solid var(--line); overflow: hidden; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s; isolation: isolate; }
a.bx:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(194, 24, 91, .6); }
.bx .ic { font-size: 30px; margin-bottom: auto; padding-bottom: 18px; line-height: 1; }
.bx .tag { position: absolute; top: 24px; right: 24px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--blush); color: var(--gold-deep); }
.bx h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.8vw, 24px); margin: 0; letter-spacing: -.03em; }
.bx p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.7; }
.bx .go { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--gold-deep); }
.bx.a { grid-area: a; background: var(--grad); color: #fff; border: 0; padding: 40px; }
.bx.a h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; }
.bx.a p { color: rgba(255, 255, 255, .9); font-size: 16px; max-width: 26em; }
.bx.a .go { color: #fff; }
.bx.a .tag { background: rgba(255, 255, 255, .22); color: #fff; }
.bx.a .moon { position: absolute; right: 0; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #fff 0 14%, #ffe9c2 40%, rgba(255, 210, 160, .0) 72%); opacity: .9; z-index: -1; }
.bx.a .rite { display: flex; gap: 6px; margin-bottom: auto; padding-top: 40px; }
.bx.a .rite span { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.bx.b { grid-area: b; } .bx.c { grid-area: c; } .bx.e { grid-area: e; } .bx.f { grid-area: f; }
.bx.d { grid-area: d; background: linear-gradient(120deg, #ffd6e4 0%, #ffe9d6 35%, #e9f6ec 60%, #e3edff 80%, #efe3ff 100%); border: 0; }
.bx.d .lan { position: absolute; right: 26px; top: 26px; display: flex; gap: 12px; }
.bx.d .lan i { width: 30px; height: 38px; border-radius: 46% 46% 40% 40%; background: radial-gradient(circle at 50% 42%, #fff 0 14%, var(--c) 60%); box-shadow: 0 0 22px 2px color-mix(in srgb, var(--c), transparent 40%); animation: sway9 5s ease-in-out infinite; transform-origin: 50% -10px; }
.bx.d .lan i:nth-child(2) { animation-delay: -1.5s; margin-top: 12px; } .bx.d .lan i:nth-child(3) { animation-delay: -3s; }
@keyframes sway9 { 50% { transform: rotate(4deg); } }
.bx.g { grid-area: g; background: var(--grad-soft); border: 0; }

/* 약속 띠 */
.promise { background: transparent; }
.pr-cols { gap: 16px; }
.pr-cols .pr { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px 28px; box-shadow: var(--shadow-sm); }
.pr-cols .pr .rn { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-arch { background: var(--grad); box-shadow: 0 60px 90px -50px rgba(194, 24, 91, .75); }

@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "a a" "b c" "d d" "e f" "g g"; }
  .chip9.c1 { left: -4%; } .chip9.c2 { right: -4%; }
}
@media (max-width: 860px) {
  .h9 { grid-template-columns: 1fr; text-align: center; padding: 40px 0 20px; gap: 40px; }
  .h9 .eyebrow { margin: 0 auto; }
  .h9 .lead { margin-left: auto; margin-right: auto; }
  .h9 .actions, .trust9 { justify-content: center; }
  .h9-visual { width: min(320px, 82%); }
  .jr { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .jr::before { left: 33px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
  .jr > div { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: left; padding: 0 0 22px; }
  .jr .dot { grid-row: span 3; margin: 0; }
  .mani { padding: 80px 0 30px; }
}
@media (max-width: 560px) {
  .h9 h1 { font-size: clamp(38px, 11.5vw, 50px); }
  .h9 .actions .btn { flex: 1 1 auto; }
  .chip9 { font-size: 12.5px; padding: 9px 12px; gap: 8px; } .chip9 .ic { width: 28px; height: 28px; font-size: 14px; }
  .chip9.c1 { left: -14%; top: 8%; } .chip9.c2 { right: -16%; top: 34%; } .chip9.c3 { left: -12%; top: 50%; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" "g"; grid-auto-rows: minmax(190px, auto); }
  .bx { padding: 24px; } .bx.a { padding: 30px 24px; min-height: 340px; }
  .mani p.big em { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .chip9, .bx.d .lan i { animation: none; } }


/* =========================================================
   v10 · 필더필식 분홍 (2026-11-25)
   어두운 장밋빛 머리 띠 → 밝은 분홍 본문, 굵은 고딕 제목, 납작한 카드, 가는 선, 흐르는 큰 글자
   ========================================================= */
:root { --dk: #1c0a13; --dk2: #2a0f1d; --pk: #ff4f8b; --pk2: #ff8fb4; --pk3: #ffd0df; --lt: #fff5f8;
  --gold: #ff4f8b; --gold-2: #ff8fb4; --gold-deep: #d6266a; --gold-soft: rgba(255, 79, 139, .1);
  --line: rgba(36, 19, 27, .1); --line-strong: rgba(36, 19, 27, .2);
  --radius: 10px; --shadow: none; --shadow-sm: 0 18px 34px -26px rgba(28, 10, 19, .45);
  --grad: linear-gradient(135deg, #ff8fb4 0%, #ff4f8b 55%, #d6266a 100%); }
body { background: var(--lt); }
body::before, body::after { display: none; }
.glow { display: none; }

/* 제목: 굵은 고딕 */
.sec-head h2, .section h2, .panel-title, .card h2, .pm-hero h1, .rb-hero h1, .hx h1 { font-family: var(--sans); font-weight: 900; letter-spacing: -.045em; }
.sec-head h2, .section h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; }
.sec-head { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.sec-head.center { border-top: 0; padding-top: 0; }
.panel-title { font-size: clamp(24px, 2.6vw, 34px); border-top: 1px solid var(--line-strong); padding-top: 18px; }
h3 { letter-spacing: -.03em; }

/* 작은 영문 라벨: 알약 없이 글자만 */
.eyebrow { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; font-size: 12.5px; letter-spacing: .18em; font-weight: 800; color: var(--pk); }
.eyebrow::before { width: 7px; height: 7px; box-shadow: none; background: currentColor; }

/* 카드·입력: 납작하게 */
.card { border-radius: var(--radius); box-shadow: none; border: 1px solid var(--line); background: #fff; }
.card:hover { box-shadow: var(--shadow-sm); }
input, select, textarea { border-radius: 8px; border-color: var(--line-strong); }
.v2-feat, .bx, .pr-cols .pr, .arch-card, .pt-flow > div, .rb-steps div, .faq details { border-radius: var(--radius) !important; box-shadow: none !important; }

/* 버튼: 납작한 알약 (주요 = 분홍 단색, 보조 = 먹선) */
.btn { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; box-shadow: none; }
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: none; box-shadow: none; }
.btn.primary { background: var(--pk); border-color: var(--pk); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--dk); border-color: var(--dk); color: #fff; box-shadow: none; }
.btn.ghost { border-color: var(--line-strong); }
.btn.primary::after { display: none; }

/* 머리 메뉴: 넓은 한 줄, 어두운 머리 위에서는 흰 글자 */
.topbar .wrap { border-radius: 999px; background: rgba(255, 255, 255, .82); border: 1px solid var(--line); box-shadow: none; }
.brand .mark { background: var(--pk); box-shadow: none; }
body.dk-top:not(.dk-past) .topbar .wrap { background: rgba(28, 10, 19, .45); border-color: rgba(255, 255, 255, .1); }
body.dk-top:not(.dk-past) .brand, body.dk-top:not(.dk-past) .nav a { color: #fff !important; }
body.dk-top:not(.dk-past) .nav a:hover { background: rgba(255, 255, 255, .1); }
body.dk-top:not(.dk-past) .menu-btn i { background: #fff; }
body.dk-top .topbar { margin-bottom: -72px; }
body.dk-top.dk-past .topbar .wrap { background: rgba(255, 255, 255, .88); }
@media (max-width: 760px) { body.dk-top:not(.dk-past) .topbar.open .nav { background: var(--dk2); } }

/* 하위 페이지 어두운 머리 띠 */
.pband { position: relative; background: var(--dk); color: #fff; padding: 150px 0 70px; overflow: hidden; }
.pband::before { content: ''; position: absolute; right: -6%; top: -30%; width: min(520px, 60vw); aspect-ratio: 4 / 5; border-radius: 999px 999px 20px 20px; border: 2px solid rgba(255, 143, 180, .35); box-shadow: 30px 30px 0 -2px var(--dk), 32px 32px 0 0 rgba(255, 143, 180, .22), 60px 60px 0 -2px var(--dk), 62px 62px 0 0 rgba(255, 143, 180, .12); transform: rotate(-10deg); }
.pband::after { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 10%, rgba(255, 79, 139, .28), transparent 70%); pointer-events: none; }
.pband .wrap { position: relative; z-index: 1; }
.pband-l { display: block; font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(44px, 8vw, 110px); line-height: .95; color: transparent; -webkit-text-stroke: 1.5px var(--pk2); }
.pband-t { margin: 18px 0 0; font-family: var(--sans); font-weight: 800; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.03em; color: #fff; }
.pband + main > *:first-child, .pband + main .wrap > *:first-child { margin-top: 0; }

/* 자체 머리가 있는 페이지(약속·제휴·추모제): 같은 어두운 띠로 */
.dkhero { position: relative; color: #fff; background: var(--dk); box-shadow: 0 0 0 100vmax var(--dk); clip-path: inset(-100vmax -100vmax 0 -100vmax); padding-top: 150px !important; padding-bottom: 80px !important; margin-bottom: 40px; }
.dkhero h1, .dkhero h2, .dkhero b { color: #fff; }
.dkhero p, .dkhero .lead { color: rgba(255, 255, 255, .72) !important; }
.dkhero .eyebrow { color: var(--pk2); }
.dkhero .btn { color: #fff; border-color: rgba(255, 255, 255, .45); }
.dkhero .btn:hover { background: #fff; color: var(--dk); border-color: #fff; }
.dkhero .btn.primary { background: var(--pk); border-color: var(--pk); }
.dkhero .hx-trust li { color: rgba(255, 255, 255, .7); }
.dkhero .rb-meta { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.dkhero .rb-stats span { color: rgba(255, 255, 255, .6); }
.dkhero .rb-arch i { opacity: 1; }
.pm-hero.dkhero { max-width: none; }
.pm-hero.dkhero h1 { font-size: clamp(32px, 4.8vw, 62px); line-height: 1.15; }

/* 추모 공간 머리 (기본 분홍 테마일 때): 어두운 띠 */
html[data-theme="blossom"] .hero { background: var(--dk); box-shadow: 0 0 0 100vmax var(--dk); clip-path: inset(0 -100vmax 0 -100vmax); color: #fff; padding: 70px 0 60px; margin-bottom: 36px; }
html[data-theme="blossom"] .hero .name { color: #fff; font-family: var(--serif); font-weight: 400; }
html[data-theme="blossom"] .hero .name small { color: var(--pk2); }
html[data-theme="blossom"] .hero .dates { color: rgba(255, 255, 255, .65); }
html[data-theme="blossom"] .hero .epitaph { color: var(--pk2); }
html[data-theme="blossom"] .hero .counter { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); box-shadow: none; }
html[data-theme="blossom"] .hero .counter b { color: #fff; }
html[data-theme="blossom"] .hero .eyebrow { color: var(--pk2); }
html[data-theme="blossom"] .hero .btn { color: #fff; border-color: rgba(255, 255, 255, .4); }
html[data-theme="blossom"] .hero .btn:hover { background: #fff; color: var(--dk); }
html[data-theme="blossom"] .hero .btn.primary { background: var(--pk); border-color: var(--pk); }
html[data-theme="blossom"] .hero .presence, html[data-theme="blossom"] .hero .faint, html[data-theme="blossom"] .hero .muted { color: rgba(255, 255, 255, .6); }
html[data-theme="blossom"] .hero .avatar-wrap::after { background: var(--dk); }
html[data-theme="blossom"] .hero .hol-soon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
html[data-theme="blossom"] .hero::before { background: radial-gradient(40% 60% at 50% 30%, rgba(255, 79, 139, .3), transparent 70%) !important; }
.tabs { border-radius: 999px; box-shadow: none; background: #fff; }
.tabs button.active { background: var(--dk); }

/* 흐르는 큰 글자 (모든 페이지 바닥글 위) */
.fmq { overflow: hidden; padding: 80px 0 0; }
.fmq-t { display: flex; width: max-content; animation: fmqx 40s linear infinite; }
.fmq span { font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(60px, 10vw, 150px); line-height: 1; padding-right: .35em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--pk); }
.fmq span b { color: var(--pk); -webkit-text-stroke: 0; }
@keyframes fmqx { to { transform: translateX(-50%); } }
footer { background: transparent; margin-top: 0; }
footer .f-mark { display: none; }
footer .f-top { border-top: 1px solid var(--line-strong); padding-top: 34px; margin-top: 30px; }
footer .f-brand { font-family: var(--sans); font-weight: 900; letter-spacing: -.03em; }
@media (prefers-reduced-motion: reduce) { .fmq-t { animation: none; } }
@media (max-width: 680px) { .pband { padding: 120px 0 50px; } .dkhero { padding-top: 120px !important; } html[data-theme="blossom"] .hero { padding-top: 56px; } }

/* v10.1 다듬기 */
main h1, .rb-hero h1, .pm-hero h1, .cta-arch h2, .pm h2 { font-family: var(--sans) !important; font-weight: 900 !important; letter-spacing: -.045em !important; }
.pm h2 { font-weight: 800 !important; }
.pm .no { font-family: var(--sans); font-style: normal; font-weight: 900; font-size: 40px; letter-spacing: -.04em; color: var(--pk); }
.tl-item .date, .timeline .date { font-family: var(--sans) !important; font-style: normal !important; font-weight: 700; }
html[data-theme="blossom"] .hero .presence b, html[data-theme="blossom"] .hero b { color: #fff; }
html[data-theme="blossom"] .hero .name { font-family: var(--serif) !important; font-weight: 400 !important; letter-spacing: -.02em !important; }
/* v10.2 외곽선 글자: 획이 겹치지 않는 고정 글꼴로 (가변 글꼴은 외곽선 안쪽에 겹친 선이 보임) */
:root { --outline-font: 'Archivo Black', 'Arial Black', sans-serif; }
.pband-l, .fmq span, .mq span, .en { font-family: var(--outline-font) !important; font-weight: 400 !important; letter-spacing: -.01em !important; }
@media (max-width: 680px) { .pband::before { display: none; } }

footer .f-biz { margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.7; word-break: keep-all; }
