:root {
  --ink: #191919;
  --sub: #6b6b72;
  --mute: #a4a4ab;
  --line: #eeeef1;
  --bg: #fff;
  --gray: #f5f5f7;
  --gray-2: #ebebef;
  --accent: #f2456d;
  --accent-d: #d9345b;
  --accent-soft: #fff0f3;
  --green: #0fa97a;
  --green-soft: #e6f7f1;
  --sans: 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --gut: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { background: #e7e7ec; }
body { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink); -webkit-font-smoothing: antialiased; word-break: keep-all; letter-spacing: -.01em; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }

#app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--bg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
#view { min-height: 100dvh; padding-bottom: 72px; animation: enter .25s ease backwards; }
#view.bare { padding-bottom: 96px; }
@keyframes enter { from { opacity: 0; } }

.pad { padding-left: var(--gut); padding-right: var(--gut); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sub { color: var(--sub); }
.mute { color: var(--mute); }

/* ── 상단 헤더 / 탭 ── */
.hdr { position: sticky; top: 0; z-index: 20; background: #fff; display: flex; align-items: center; gap: 10px; padding: 10px var(--gut); }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.logo small { font-size: 10px; letter-spacing: .14em; color: var(--ink); margin-left: 5px; font-weight: 700; vertical-align: 3px; }
.sbox { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--gray); color: var(--mute); font-size: 14px; min-width: 0; }
.sbox .ico { width: 19px; height: 19px; color: var(--ink); }
.hbtn { width: 36px; height: 36px; display: grid; place-items: center; margin-right: -6px; position: relative; }
.hbtn i { position: absolute; right: 3px; top: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.htabs { position: sticky; top: 60px; z-index: 19; display: flex; gap: 22px; padding: 0 var(--gut); background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.htabs::-webkit-scrollbar { display: none; }
.htabs button { flex: none; padding: 8px 0 11px; font-size: 15px; font-weight: 600; color: var(--mute); border-bottom: 2px solid transparent; }
.htabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.bar { position: sticky; top: 0; z-index: 20; background: #fff; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 52px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.bar .t { text-align: center; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar > * { display: grid; place-items: center; height: 44px; }

/* ── 배너 ── */
.banner { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: none; width: 100%; aspect-ratio: 1 / 1.02; scroll-snap-align: start; overflow: hidden; background: var(--gray); display: block; }
.slide .face, .slide .photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide .photo { object-fit: cover; object-position: 50% 18%; }
.slide .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 10, 14, .72), rgba(20, 10, 14, 0) 55%); z-index: 2; }
.slide .tx { position: absolute; left: var(--gut); right: var(--gut); bottom: 46px; color: #fff; z-index: 3; }
.slide .kick { font-size: 11px; letter-spacing: .16em; font-weight: 700; opacity: .85; }
.slide h2 { margin-top: 6px; font-size: 27px; line-height: 1.28; font-weight: 800; letter-spacing: -.04em; white-space: pre-line; }
.slide .nm { margin-top: 8px; font-size: 13px; opacity: .85; }
.count { position: absolute; right: 14px; bottom: 14px; z-index: 3; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; backdrop-filter: blur(4px); font-variant-numeric: tabular-nums; }

/* ── 퀵 메뉴 ── */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 4px; padding: 20px var(--gut) 6px; }
.quick a, .quick button { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: #333; font-weight: 500; }
.quick .c { width: 52px; height: 52px; border-radius: 50%; background: var(--gray); display: grid; place-items: center; }
.quick .c .ico { width: 24px; height: 24px; }

/* ── 섹션 ── */
.sec { padding-top: 30px; scroll-margin-top: 112px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 var(--gut) 12px; }
.sec-h h2 { font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.sec-h p { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.more { font-size: 12.5px; color: var(--sub); display: flex; align-items: center; gap: 1px; white-space: nowrap; }
.more .ico { width: 14px; height: 14px; }
.sp { height: 8px; background: var(--gray); margin-top: 30px; }

/* ── 룩 카드 ── */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gut); scrollbar-width: none; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.lcard { position: relative; display: block; flex: none; width: 152px; scroll-snap-align: start; }
.lphoto { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--gray); }
.lphoto .face, .lphoto .photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.lphoto .photo { object-fit: cover; object-position: 50% 15%; }
.lcard .bm, .gcard .bm { position: absolute; right: 7px; top: 7px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.bm .ico { width: 16px; height: 16px; }
.lcard .tags, .gcard .tags { margin-top: 8px; font-size: 11.5px; color: var(--accent); font-weight: 600; }
.lcard h3, .gcard h3 { margin-top: 1px; font-size: 14.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.lcard .m, .gcard .m { margin-top: 2px; font-size: 12px; color: var(--sub); }
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 10px; padding: 14px var(--gut) 0; }
.gcard { position: relative; display: block; }
.chips { display: flex; gap: 6px; padding: 12px var(--gut) 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--gray-2); background: #fff; color: var(--sub); font-size: 13.5px; font-weight: 500; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pagehead { padding: 18px var(--gut) 0; }
.pagehead h1 { font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.pagehead p { color: var(--sub); margin-top: 2px; }

/* ── 제품(랭킹 리스트) ── */
.ranks > li { display: grid; grid-template-columns: 22px 78px 1fr 36px; gap: 12px; align-items: center; padding: 12px var(--gut); }
.ranks .no { font-size: 18px; font-weight: 800; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.ranks .no.top { color: var(--accent); }
.tile { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: #fff; overflow: hidden; display: grid; place-items: center; }
.tile .prod { width: 66%; height: 66%; }
.tile .photo, .pimg .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rb { min-width: 0; }
.brand { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.rb b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.4; margin: 1px 0 5px; }
.cx { display: inline-block; height: 20px; line-height: 20px; padding: 0 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; }
.cx.g { background: var(--green-soft); color: var(--green); }
.cx.n { background: var(--gray); color: var(--sub); }
.addbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gray-2); display: grid; place-items: center; color: var(--sub); }
.addbtn .ico { width: 18px; height: 18px; }
.addbtn.on { background: var(--green-soft); border-color: transparent; color: var(--green); }
.hprods { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gut); scrollbar-width: none; }
.hprods::-webkit-scrollbar { display: none; }
.pcol { flex: none; width: 118px; }
.pcol .tile { border-radius: 12px; }
.pcol .brand { margin-top: 8px; }
.pcol b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.38; }

/* ── 화장대 ── */
.vhead { padding: 18px var(--gut) 0; display: flex; align-items: flex-end; justify-content: space-between; }
.vhead h1 { font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.vhead p { color: var(--sub); }
.btn-s { height: 38px; padding: 0 14px; border-radius: 19px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.btn-s .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.searchin { position: relative; margin: 14px var(--gut) 0; }
.searchin .ico { position: absolute; left: 13px; top: 11px; width: 19px; height: 19px; color: var(--ink); }
.searchin input { width: 100%; height: 42px; border: 0; border-radius: 21px; background: var(--gray); padding: 0 16px 0 42px; outline: none; font-size: 14.5px; }
.searchin input::placeholder { color: var(--mute); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 10px; padding: 16px var(--gut) 0; }
.pc .pimg { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--gray); display: grid; place-items: center; overflow: hidden; }
.pc .pimg .prod { width: 62%; height: 62%; }
.badge { position: absolute; left: 8px; top: 8px; z-index: 2; height: 22px; padding: 0 8px 0 6px; border-radius: 11px; background: #fff; color: var(--green); font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pc .info { display: flex; justify-content: space-between; gap: 4px; padding-top: 8px; }
.pc .nm { font-size: 13.5px; font-weight: 500; line-height: 1.38; }
.pc .sh { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); margin-top: 3px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.pc .more-b { width: 28px; height: 28px; margin: -3px -6px 0 0; display: grid; place-items: center; color: var(--mute); flex: none; }
.empty { margin: 22px var(--gut) 0; padding: 40px 20px; text-align: center; border-radius: 14px; background: var(--gray); }
.empty p { color: var(--sub); margin-bottom: 16px; }
.blank { margin: 0 var(--gut); padding: 16px; border-radius: 12px; background: var(--gray); color: var(--sub); font-size: 13.5px; }

/* ── 시트 ── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); animation: fade .2s both; }
.sheet { position: fixed; z-index: 61; left: 50%; bottom: 0; transform: translateX(-50%); width: min(480px, 100%); max-height: 90dvh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 10px var(--gut) calc(18px + env(safe-area-inset-bottom)); animation: rise .26s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translate(-50%, 40px); opacity: 0; } }
.grab { width: 36px; height: 4px; border-radius: 2px; background: var(--gray-2); margin: 0 auto 14px; }
.sheet h2 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.sheet label { display: block; font-size: 12.5px; font-weight: 700; color: var(--sub); margin: 18px 0 8px; }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.types button { border-radius: 12px; background: #fff; border: 1.5px solid var(--gray-2); padding: 6px 2px 8px; font-size: 11px; color: var(--sub); display: grid; justify-items: center; line-height: 1.25; }
.types button .prod { width: 42px; height: 42px; }
.types button.on { border-color: var(--accent); color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.field { width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--gray-2); background: #fff; padding: 0 14px; outline: none; font-size: 15px; }
.field:focus { border-color: var(--ink); }
.shades { display: flex; flex-wrap: wrap; gap: 10px; }
.shades button { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); position: relative; }
.shades button.on::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ink); }
.photo-pick { display: flex; align-items: center; gap: 12px; }
.pp-btn { width: 68px; height: 68px; flex: none; border-radius: 12px; background: var(--gray); display: grid; place-items: center; overflow: hidden; cursor: pointer; color: var(--sub); border: 1.5px dashed var(--gray-2); }
.pp-btn img { width: 100%; height: 100%; object-fit: cover; }
.pp-txt { display: grid; gap: 2px; font-size: 12.5px; color: var(--sub); justify-items: start; }
.pp-txt b { color: var(--ink); font-size: 13.5px; font-weight: 700; }

/* ── 버튼 ── */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.02em; transition: transform .12s, background .2s; }
.btn:active { transform: scale(.985); background: var(--accent-d); }
.btn.dark { background: var(--ink); }
.btn.line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--gray-2); }
.btn.sm { height: 44px; font-size: 14px; }
.link { color: var(--sub); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.link.dark { color: var(--ink); }
.dock { position: fixed; z-index: 25; bottom: 0; left: 50%; transform: translateX(-50%); width: min(480px, 100%); padding: 10px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.dock .sq { flex: none; width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--gray-2); display: grid; place-items: center; }
.dock .sq .ico { width: 22px; height: 22px; }
.dock .btn { flex: 1; }

/* ── 탭바 ── */
#tabbar { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(480px, 100%); display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
#tabbar[hidden] { display: none; }
#tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 0 8px; font-size: 10.5px; font-weight: 500; color: var(--mute); }
#tabbar a .ico { width: 24px; height: 24px; }
#tabbar a.on { color: var(--ink); font-weight: 700; }
#tabbar a.on .ico { fill: currentColor; fill-opacity: .12; stroke-width: 2; }

/* ── 룩 상세 ── */
.hero { position: relative; aspect-ratio: 4 / 5; background: var(--gray); overflow: hidden; }
.hero .face, .hero .photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .photo { object-fit: cover; object-position: 50% 18%; }
.hero-top { position: absolute; z-index: 4; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 8px 8px; }
.hero-top a, .hero-top button { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 1px 6px rgba(0, 0, 0, .14); }
.lhead { padding: 18px var(--gut) 0; }
.lhead .tags { color: var(--accent); font-size: 12.5px; font-weight: 700; }
.lhead h1 { font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; margin-top: 2px; }
.lhead p { color: var(--sub); margin-top: 6px; }
.meta3 { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px var(--gut) 0; border-radius: 12px; background: var(--gray); padding: 14px 0; }
.meta3 > div { text-align: center; }
.meta3 > div + div { border-left: 1px solid var(--gray-2); }
.meta3 .k { font-size: 11.5px; color: var(--sub); }
.meta3 .v { font-size: 16px; font-weight: 800; margin-top: 1px; }
.stabs { position: sticky; top: 0; z-index: 20; display: flex; background: #fff; border-bottom: 1px solid var(--line); margin-top: 22px; }
.stabs button { flex: 1; height: 46px; font-size: 14.5px; font-weight: 600; color: var(--mute); border-bottom: 2px solid transparent; }
.stabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 13px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 700; }
.status svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.status.none { background: var(--gray); color: var(--sub); }
.kit > li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kit .tile { border-radius: 10px; }
.kit .rb b { margin-bottom: 4px; }
.kit .desc { font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.tl > li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tl .n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tl .z { font-size: 11.5px; color: var(--accent); font-weight: 700; display: block; }
.tl .t { font-size: 14.5px; font-weight: 500; }
.tl .s { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.foot-note { font-size: 11.5px; color: var(--mute); padding: 18px var(--gut) 0; line-height: 1.6; }
.tag { display: inline-block; height: 20px; line-height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 700; background: var(--green-soft); color: var(--green); }
.tag.sub { background: #fff4e5; color: #d9780f; }
.tag.opt { background: var(--accent-soft); color: var(--accent); }
.tag.none { background: var(--gray); color: var(--sub); }

/* ── 단계 가이드 ── */
.stages { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gut); border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 52px; z-index: 19; }
.stages button { position: relative; font-size: 14px; color: var(--mute); font-weight: 600; padding: 13px 2px 12px; white-space: nowrap; }
.stages button.done { color: var(--ink); }
.stages button.on { color: var(--accent); font-weight: 800; }
.stages button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.stages i { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-2); }
.vis { position: relative; margin: 14px var(--gut) 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1.38; background: #f6e4e0; }
.vis.done { aspect-ratio: 1.05; }
.vis .face { position: absolute; inset: 0; width: 100%; height: 100%; }
.stephd { display: flex; align-items: baseline; gap: 10px; padding: 20px var(--gut) 12px; }
.stephd .no { font-size: 22px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.stephd h2 { font-size: 20px; font-weight: 800; letter-spacing: -.035em; line-height: 1.3; }
.cards { padding: 0 var(--gut); display: grid; gap: 8px; }
.pcard { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.pcard .pimg { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--gray); display: grid; place-items: center; overflow: hidden; }
.pcard .pimg .prod { width: 70%; height: 70%; }
.pcard .body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; margin: 3px 0 2px; line-height: 1.38; }
.pcard .body .brand { margin-top: 4px; }
.pcard .body p { font-size: 12px; color: var(--sub); line-height: 1.45; }
.chipsC { display: flex; gap: 10px; margin-top: 6px; }
.chipc { text-align: center; font-size: 10.5px; color: var(--sub); }
.chipc i { display: block; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.how { padding: 14px var(--gut) 0; counter-reset: h; }
.how li { counter-increment: h; display: grid; grid-template-columns: 24px 1fr; padding: 5px 0; font-size: 15px; line-height: 1.6; }
.how li::before { content: counter(h); width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.note { margin: 10px var(--gut) 0; padding: 12px 14px; border-radius: 10px; background: var(--gray); font-size: 13.5px; line-height: 1.55; color: #3d3d44; }
.note b { display: block; font-size: 11.5px; color: var(--sub); margin-bottom: 2px; }
.note.mine { background: var(--accent-soft); }
.note.mine b { color: var(--accent); }
.note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.alt-link { display: inline-flex; align-items: center; margin: 14px var(--gut) 0; font-size: 13.5px; color: var(--sub); text-decoration: underline; text-underline-offset: 4px; }
.alt { margin: 10px var(--gut) 0; padding: 14px; border-radius: 10px; border: 1px dashed var(--gray-2); font-size: 13.5px; line-height: 1.6; color: #3d3d44; }
.alt .pcard { margin-top: 10px; }
.timer { margin: 14px var(--gut) 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--gray); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.timer.run { background: var(--accent-soft); color: var(--accent); }
.timer.end { background: var(--accent); color: #fff; }
.timer .ico { width: 16px; height: 16px; }
.round { flex: none; width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--gray-2); background: #fff; display: grid; place-items: center; }
.round[disabled] { opacity: .35; }
.donebox { padding: 22px var(--gut) 0; }
.donebox h1 { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; margin-bottom: 8px; }
.donebox p { color: var(--sub); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px var(--gut) 0; }
.stats > div { padding: 16px; border-radius: 12px; background: var(--gray); }
.stats b { display: block; font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stats span { font-size: 12.5px; color: var(--sub); }

/* ── 가이드 / 나 ── */
.glist > a { display: flex; align-items: center; gap: 14px; padding: 16px var(--gut); border-bottom: 1px solid var(--line); }
.glist .n { width: 40px; height: 40px; border-radius: 50%; background: var(--gray); display: grid; place-items: center; flex: none; }
.glist h3 { font-size: 15px; font-weight: 700; }
.glist p { font-size: 12.5px; color: var(--sub); line-height: 1.45; margin-top: 1px; }
.glist .ico.r { margin-left: auto; color: var(--mute); }
.shape-vis { position: relative; margin: 14px var(--gut) 0; height: 300px; border-radius: 14px; overflow: hidden; background: #f6e4e0; }
.shape-vis .face { position: absolute; inset: 0; width: 100%; height: 100%; }
.shape-vis .cap2 { position: absolute; left: 12px; top: 10px; max-width: 38%; font-size: 12px; color: #5d4a4d; line-height: 1.5; z-index: 2; }
.tipgrid { margin: 6px var(--gut) 0; }
.tipgrid li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tipgrid .k { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.season { margin: 0 var(--gut); padding: 22px 0; border-bottom: 1px solid var(--line); }
.season-head { display: flex; align-items: baseline; justify-content: space-between; }
.season-head h2 { font-size: 18px; font-weight: 800; }
.season-head .en { font-size: 11px; letter-spacing: .12em; color: var(--mute); font-weight: 700; }
.swatches { display: flex; margin: 12px 0; border-radius: 10px; overflow: hidden; }
.swatches i { flex: 1; height: 42px; display: block; }
.dl { display: grid; grid-template-columns: 50px 1fr; gap: 6px 10px; font-size: 13.5px; }
.dl dt { color: var(--mute); font-weight: 700; font-size: 12px; padding-top: 1px; }
.dl dd { color: #3d3d44; }
.season .btn { margin-top: 14px; }
.tools li, .terms li { padding: 15px var(--gut); border-bottom: 1px solid var(--line); }
.tools .nm { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.tools .nm b { font-size: 15px; font-weight: 700; }
.tools .nm span { font-size: 12px; color: var(--accent); font-weight: 700; }
.tools p, .terms p { font-size: 13.5px; color: var(--sub); line-height: 1.6; }
.terms dt { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.fld { padding: 22px var(--gut) 0; }
.fld .lab { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.fld .lab b { font-size: 14.5px; font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { height: 38px; padding: 0 15px; border-radius: 19px; border: 1px solid var(--gray-2); color: var(--sub); font-size: 14px; font-weight: 500; }
.opts button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.scard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--gray); }
.scard .sw { display: flex; border-radius: 8px; overflow: hidden; flex: none; }
.scard .sw i { width: 18px; height: 38px; display: block; }
.scard .grow { flex: 1; min-width: 0; }
.scard b { display: block; font-size: 15px; font-weight: 700; }
.scard small { color: var(--sub); font-size: 12.5px; }
.rows > li > a { display: flex; align-items: center; gap: 12px; padding: 10px var(--gut); }
.rows .th { position: relative; width: 56px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--gray); flex: none; }
.rows .th .face, .rows .th .photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.rows .th .photo { object-fit: cover; object-position: 50% 15%; }
.rows b { display: block; font-size: 14.5px; font-weight: 700; }
.rows span.m { font-size: 12px; color: var(--sub); }
.rows .ico.r { margin-left: auto; color: var(--mute); }
.reset { display: block; text-align: center; color: var(--mute); font-size: 12.5px; text-decoration: underline; padding: 30px 0 10px; }

/* ── 환영 / 퀴즈 ── */
.welcome { position: relative; min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.welcome .ph { position: relative; flex: 1; min-height: 360px; overflow: hidden; background: var(--gray); }
.welcome .ph .face, .welcome .ph .photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.welcome .ph .photo { object-fit: cover; object-position: 50% 15%; }
.welcome .brand-top { position: absolute; z-index: 3; left: var(--gut); top: 18px; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.04em; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.welcome .sheet-w { position: relative; z-index: 3; margin-top: -26px; border-radius: 22px 22px 0 0; background: #fff; padding: 26px var(--gut) calc(22px + env(safe-area-inset-bottom)); }
.welcome h1 { font-size: 27px; font-weight: 800; letter-spacing: -.04em; line-height: 1.32; }
.welcome p { color: var(--sub); margin: 10px 0 22px; }
.welcome .small { display: block; text-align: center; margin-top: 12px; font-size: 12px; color: var(--mute); }
.quiz { padding: 0 var(--gut); }
.quiz .pbar { display: flex; gap: 4px; margin: 14px 0 22px; }
.quiz .pbar i { flex: 1; height: 3px; border-radius: 2px; background: var(--gray-2); }
.quiz .pbar i.on { background: var(--accent); }
.quiz .q { font-size: 23px; line-height: 1.4; font-weight: 800; letter-spacing: -.04em; margin-bottom: 22px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 16px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--gray-2); font-size: 15.5px; transition: border-color .15s, background .15s; }
.choice:active { border-color: var(--accent); background: var(--accent-soft); }
.choice .l { width: 26px; height: 26px; border-radius: 50%; background: var(--gray); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; flex: none; }
.result { padding: 14px var(--gut) 0; }
.result .big { font-size: 38px; font-weight: 800; letter-spacing: -.05em; line-height: 1.2; margin: 4px 0; color: var(--accent); }

/* ── 사진 레이어 ── */
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ── 얼굴 SVG(단계 가이드용 일러스트) ── */
.face { display: block; }
.face .z { opacity: 0; transition: opacity .7s ease; }
.face .z.on { opacity: var(--on, 1); }
.face .z.active { opacity: 1; }
.face .z.active .fill { animation: breathe 1.8s ease-in-out infinite; }
.face .bare { transition: opacity .7s ease; }
.face .guides { opacity: 0; transition: opacity .3s; }
.face .z.active .guides { opacity: 1; }
.face .guide { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 5 4; stroke-linecap: round; animation: march 1.2s linear infinite; filter: drop-shadow(0 0 1.5px rgba(80, 20, 30, .7)); }
@keyframes breathe { 50% { opacity: .6; } }
@keyframes march { to { stroke-dashoffset: -18; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .slides { scroll-behavior: auto; } }

/* 단계 가이드: 완성 모습 참고 사진 */
.vis .ref { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 58px; height: 74px; border-radius: 8px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .28); }
.vis .ref img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.vis .ref span { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .5); line-height: 17px; }
.vis.done .ref { display: none; }
