@import url("../design-system/css/common.css");
/* ============================================================
   예우 메인 — 이 화면에만 있는 배치 (yw-home__…)
   부품(머리 줄 · 하단 탭 · 카드 · 목록 줄 · 진행 단계 · 잉크 띠 · 전체 메뉴 서랍 · 용품 전시칸 …)은
   design-system/css/common.css 에서 온다(이 파일 첫 줄). 여기서 부품의 겉모양을 덮어쓰지 않는다.
   2026-10-26 부품 이전 — 보이는 결과는 이전과 같다(옛 판: new_보관_2026-10-26/시안/부품이전전/)
   ============================================================ */
/* 화면 틀(yw-stage · yw-frame)은 공통 layout.css 로 올렸다(10/26 CSS 구조) */
/* 화면 뿌리 — 이 화면은 줄 간격 기본값(normal)과 줄바꿈 기본값으로 확정됐다 */
.yw-home { line-height: normal; overflow-wrap: normal; }

/* 상단 띠 — 첫 행동 카드가 화면 위로 사라지면 나타난다 */
.yw-home__urgent {
  position: fixed; top: 0; left: 50%; z-index: 9;
  display: flex; align-items: center; justify-content: space-between;
  width: min(var(--screen-max), 100%); height: 52px; padding: 0 14px 0 var(--screen-margin);
  background: linear-gradient(color-mix(in srgb, var(--fill-action) 9%, transparent), color-mix(in srgb, var(--fill-action) 9%, transparent)), var(--bg-page);
  border-bottom: 1px solid color-mix(in srgb, var(--fill-action) 12%, transparent);
  box-shadow: var(--shadow-low);
  transform: translate(-50%, -100%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s .3s;
}
.yw-home__urgent[data-state="shown"] { transform: translate(-50%, 0); visibility: visible; transition: transform .3s var(--ease), visibility 0s 0s; }
.yw-home__urgent-text { min-width: 0; margin-right: 10px; overflow: hidden; font-size: 13.5px; white-space: nowrap; text-overflow: ellipsis; }
.yw-home__urgent-actions { display: flex; align-items: center; gap: 2px; margin-right: -6px; }
.yw-home__urgent-link { display: flex; align-items: center; gap: 2px; height: var(--touch-min); font-size: var(--font-size-meta); font-weight: 600; color: var(--fill-action); white-space: nowrap; }

/* 시작 문장 + 피어나는 국화 (처음 한 번만 1.2초) */
.yw-home__intro { position: relative; padding: 8px var(--screen-margin) 0; }
.yw-home__intro em { font-style: normal; color: var(--fill-action); }
.yw-home__bloom { position: absolute; right: 22px; top: 12px; width: 64px; height: 64px; pointer-events: none; }
.yw-home__bloom-wrap  { fill: var(--accent-on-dark); }
.yw-home__bloom-petal { fill: var(--accent-line); }
.yw-home__bloom-core  { fill: var(--fill-action); }
.yw-home__bloom-wrap, .yw-home__bloom-petal, .yw-home__bloom-core { transform-box: fill-box; transform-origin: 50% 50%; }
.yw-home__bloom[data-state~="run"] .yw-home__bloom-petal { animation: yw-home-petal .8s var(--ease) both; animation-delay: var(--d); }
.yw-home__bloom[data-state~="run"] .yw-home__bloom-wrap  { animation: yw-home-wrap 1s var(--ease) both; }
.yw-home__bloom[data-state~="run"] .yw-home__bloom-core  { animation: yw-home-core .5s var(--ease) both; }
.yw-home__bloom[data-state~="hold"] * { animation-play-state: paused; }
/* 꽃잎마다 피는 차례 — 3번째 path 부터 12장 (앞 2장은 감싸는 잎) */
.yw-home__bloom-petal:nth-child(3) { --d: 0.15s; }
.yw-home__bloom-petal:nth-child(4) { --d: 0.19s; }
.yw-home__bloom-petal:nth-child(5) { --d: 0.23s; }
.yw-home__bloom-petal:nth-child(6) { --d: 0.27s; }
.yw-home__bloom-petal:nth-child(7) { --d: 0.31s; }
.yw-home__bloom-petal:nth-child(8) { --d: 0.35s; }
.yw-home__bloom-petal:nth-child(9) { --d: 0.39s; }
.yw-home__bloom-petal:nth-child(10) { --d: 0.43s; }
.yw-home__bloom-petal:nth-child(11) { --d: 0.47s; }
.yw-home__bloom-petal:nth-child(12) { --d: 0.51s; }
.yw-home__bloom-petal:nth-child(13) { --d: 0.55s; }
.yw-home__bloom-petal:nth-child(14) { --d: 0.59s; }
@keyframes yw-home-petal { from { transform: scale(.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes yw-home-wrap  { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes yw-home-core  { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .yw-home__bloom[data-state~="run"] * { animation: none; } }
/* 숨겨 둔 두 버튼 (10/26 회의 — 지우지 않고 숨김) */
.yw-home__chips { display: flex; gap: 6px; margin-top: 10px; }
.yw-home__chip { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 3px; height: var(--touch-min); padding: 0 10px; border-radius: var(--radius-full); font-size: var(--font-size-meta); letter-spacing: -.03em; white-space: nowrap; }
.yw-home__chip--quiet  { background: var(--surface-raised); border: 1px solid var(--border-card); color: var(--text-secondary); }
.yw-home__chip--strong { background: color-mix(in srgb, var(--fill-action) 8%, transparent); border: 1px solid color-mix(in srgb, var(--fill-action) 22%, transparent); color: var(--fill-action); font-weight: 600; }

/* 나의 정보 · 첫 행동 — 자리 */
.yw-home__me { margin: var(--space-lg) var(--screen-margin) 0; }
.yw-home__first { margin: var(--space-lg) var(--screen-margin) 0; overflow: hidden; }
.yw-home__first-button { margin-top: 14px; }
.yw-home__first .yw-list__title { font-size: var(--font-size-body-sm); }   /* 첫 행동 줄 제목 15 */
.yw-home__first .yw-list__desc  { font-size: var(--font-size-caption); letter-spacing: -.02em; line-height: normal; }

/* 함께 정할 일 */
.yw-home__sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 40px; padding: 0 var(--screen-margin); }
.yw-home__sec-title { font-family: var(--font-serif); font-weight: var(--font-weight-serif); font-size: 18px; }
.yw-home__todo { margin: var(--space-lg) var(--screen-margin) 0; }
.yw-home__todo .yw-list__row { transition: background-color .4s var(--ease); }       /* 「이미 정했어요」 깜빡임 0.4초 */
.yw-home__todo .yw-list__row[data-state="flash"] { background: color-mix(in srgb, var(--fill-action) 8%, transparent); }
.yw-home__todo .yw-list__desc { letter-spacing: -.02em; }
.yw-home__tag { padding: 0 4px; border: 1px solid var(--border-soft); border-radius: var(--radius-xs); font-size: 11px; font-weight: 400; color: var(--text-secondary); }

/* 구역 */
.yw-home__block { margin-top: var(--space-section); padding: 0 var(--screen-margin); scroll-margin-top: 64px; }
.yw-home__kicker { font-size: 12px; }   /* 이 화면 머리말 12 (장례 절차는 13) */

/* 장례·제례용품 */
.yw-home__shop { margin-top: var(--space-section); scroll-margin-top: 60px; }
.yw-home__shop-inner { padding: 0 var(--screen-margin); }
.yw-home__exhibit { margin-top: var(--space-lg); }
/* 전시칸 위 작은 국화 — 확정 화면에서 잉크색(바탕과 같아 안 보임)이었다. 그대로 둔다 · 보이게 하려면 yw-exhibit__mark 로 바꾼다 */
.yw-home__exhibit-mark { position: absolute; left: 50%; top: 18px; width: 18px; height: 18px; margin-left: -9px; opacity: .9; }
.yw-home__label { margin-top: var(--space-md); }
.yw-home__shop-button { margin-top: 14px; }
.yw-home__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); margin-top: 14px; }
.yw-home__tile { display: block; padding: var(--space-sm) var(--space-sm) 10px; background: var(--surface-raised); border: 1px solid var(--border-card); border-radius: var(--radius-md); text-align: center; }
.yw-home__tile-photo { position: relative; display: grid; place-items: center; height: 72px; border-radius: var(--radius-sm); background: var(--bg-page); }
.yw-home__tile-tag { position: absolute; top: 5px; right: 5px; padding: 0 4px; border-radius: 3px; background: color-mix(in srgb, var(--surface-raised) 80%, transparent); font-style: normal; font-size: 10px; color: var(--text-secondary); }
.yw-home__tile-name { display: block; margin-top: 7px; font-size: var(--font-size-meta); font-weight: 500; }
.yw-home__jerye { margin-top: 10px; font-size: var(--font-size-meta); color: var(--text-secondary); text-align: center; }
.yw-home__jerye b { font-weight: 500; color: var(--fill-action); }
.yw-home__compare { margin-top: var(--space-md); }
.yw-home__compare .yw-list__title { font-size: var(--font-size-body-sm); }
.yw-home__compare .yw-list__desc  { letter-spacing: -.02em; }

/* 예우의 약속 */
.yw-home__promise { margin-top: var(--space-lg); text-align: center; }
.yw-home__promise-mark { display: block; width: 24px; height: 24px; margin: 4px auto 6px; color: var(--accent-line); }  /* 위 4 + 카드 20 = 24 */
.yw-home__promise-list { margin-top: var(--space-sm); list-style: none; }
.yw-home__promise-list li { padding: 11px 0; font-family: var(--font-serif); font-weight: var(--font-weight-serif); font-size: var(--font-size-body); }
.yw-home__promise-list li + li { border-top: 1px solid var(--border-hairline); }
.yw-home__promise-tag { display: inline-block; margin-left: 6px; padding: 0 4px; border: 1px solid var(--border-soft); border-radius: var(--radius-xs); font-family: var(--font-sans); font-size: 11px; font-weight: 400; color: var(--text-secondary); vertical-align: 3px; }
.yw-home__promise-note { margin-top: var(--space-sm); font-size: 12px; color: var(--text-secondary); }

/* 이동 준비 (줄인 판) */
.yw-home__route { margin-top: 14px; padding: var(--space-lg) 14px var(--space-xs); background: var(--surface-raised); border: 1px solid var(--border-card); border-radius: var(--radius-md); }
.yw-home__route-stops { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; list-style: none; }
.yw-home__route-stops::before { content: ""; position: absolute; top: 6px; left: 16.6%; right: 16.6%; border-top: 1.5px dashed var(--accent-line); }
.yw-home__route-stops li { position: relative; text-align: center; }
.yw-home__route-stops i { display: block; width: 13px; height: 13px; margin: 0 auto var(--space-sm); border: 1.5px solid var(--accent-line); border-radius: var(--radius-full); background: var(--surface-raised); }
.yw-home__route-stops li:first-child i { background: var(--fill-action); border-color: var(--fill-action); }
.yw-home__route-stops small { display: block; font-size: 11px; color: var(--text-secondary); }
.yw-home__route-stops b { display: block; margin-top: 1px; font-size: var(--font-size-meta); font-weight: 500; }
.yw-home__route-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-xs); border-top: 1px solid var(--border-hairline); }
.yw-home__route-tag { padding: 0 5px; border: 1px solid var(--border-soft); border-radius: var(--radius-xs); font-style: normal; font-size: 11px; color: var(--text-secondary); }

/* 처음 준비하시는 분께 */
.yw-home__guide { display: flex; align-items: center; gap: 14px; margin-top: var(--space-lg); padding: var(--space-xl) var(--space-lg) var(--space-xl) 18px; border: 1px solid var(--border-hairline); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface-raised) 50%, transparent); }
.yw-home__guide-title { display: block; font-size: var(--font-size-body-sm); font-weight: 500; }
.yw-home__guide-desc { margin-top: 3px; font-size: var(--font-size-meta); line-height: 1.5; color: var(--text-secondary); }
.yw-home__guide-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--color-ink); border-radius: var(--radius-full); background: var(--color-ink); color: var(--color-bg); }

/* 마음 남기기 소개 */
.yw-home__mintro { margin-top: var(--space-lg); padding: var(--space-xl) var(--space-lg) var(--space-md) 18px; background: var(--surface-raised); border: 1px solid var(--border-card); border-radius: var(--radius-md); }
.yw-home__mintro-text { font-size: var(--font-size-meta); line-height: 1.6; color: var(--text-secondary); }
.yw-home__ai-note { margin-top: var(--space-xs); font-size: var(--font-size-caption); color: var(--text-secondary); }  /* AI 생성물 알림 — AI 기본법 표시 (10/27) */
.yw-home__band { margin-top: var(--space-lg); }

/* 바닥글 */
.yw-home__foot { margin: var(--space-section) var(--screen-margin) 0; padding-top: 22px; border-top: 1px solid var(--border-hairline); font-size: 12px; line-height: 1.8; color: var(--text-secondary); text-align: center; }
.yw-home__foot-text { text-align: left; }
.yw-home__foot-close { margin-bottom: 6px; font-family: var(--font-serif); font-weight: var(--font-weight-serif); font-size: 17px; color: var(--text); }
