/* 내 얼굴 만들기 · 메이크업 (#/myface) */
.mf { padding-bottom: 40px; }
.mf-stage { position: sticky; top: 52px; z-index: 10; background: #ddd8d6; border-bottom: 1px solid var(--line); }
.mf-view { position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 4 / 5; max-height: 50dvh; overflow: hidden; background: #ddd8d6; }
.mf-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: 0 0; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.mf-load { position: absolute; inset: 0; display: none; place-items: center; font-size: 13px; color: var(--sub); background: rgba(255, 255, 255, .6); }
.mf-view.wait .mf-load { display: grid; }
.mf-bases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mf-bases button { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: inset 0 0 0 1px var(--gray-2); }
.mf-bases img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.mf-bases small { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 700; background: rgba(255, 255, 255, .88); padding: 0 5px; border-radius: 6px; }
.mf-bases button.on { box-shadow: 0 0 0 3px var(--accent); }
.mf-bases button.on::after { content: '✓'; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.mf-tools { position: absolute; right: 10px; bottom: 10px; display: grid; gap: 6px; justify-items: end; }
.mf-tools button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-size: 12px; font-weight: 700; color: var(--sub); }
.mf-tools button.on { color: var(--accent); }
.mf-tools button.hold.on { background: var(--ink); color: #fff; }

.mf-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px var(--gut) 0; }
.mf-mode button { height: 42px; border-radius: 12px; background: var(--gray); font-weight: 700; font-size: 14px; color: var(--sub); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mf-mode button.on { background: var(--ink); color: #fff; }
.mf-mode button i { font-style: normal; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: var(--accent); color: #fff; padding: 0 5px; }

.mf-cats { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gut) 4px; scrollbar-width: none; }
.mf-cats::-webkit-scrollbar { display: none; }
.mf-cats button { flex: none; position: relative; height: 34px; padding: 0 14px; border-radius: 17px; box-shadow: inset 0 0 0 1px var(--gray-2); font-size: 13px; font-weight: 600; color: var(--sub); background: #fff; }
.mf-cats button.on { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 800; }
.mf-cats button.has-mk::after { content: ''; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.mf-panel { padding: 6px var(--gut) 0; display: grid; gap: 14px; }
.mf-row h4 { font-size: 13.5px; margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mf-row h4 small { font-weight: 500; font-size: 11.5px; color: var(--mute); }
.mf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-chips button { position: relative; height: 36px; padding: 0 13px; border-radius: 10px; background: var(--gray); font-size: 13px; font-weight: 600; color: #444; }
.mf-chips button.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.mf-chips button i { position: absolute; top: -7px; right: -4px; font-style: normal; font-size: 9.5px; font-weight: 800; background: var(--green); color: #fff; padding: 0 5px; border-radius: 6px; line-height: 15px; }

.mf-rng { display: grid; gap: 2px; }
.mf-rng span { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; }
.mf-rng b { font-size: 13.5px; }
.mf-rng em { font-style: normal; font-size: 11px; color: var(--mute); }
.mf-rng em:first-of-type::after { content: ' ↔'; }
.mf-rng input { width: 100%; accent-color: var(--accent); height: 28px; }

.mf-sw { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mf-sw button { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.mf-sw button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.mf-sw button.tone { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 2px var(--green-soft); }
.mf-sw button.tone.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.mf-tone { font-size: 11px; font-weight: 800; color: var(--green); }
.mf-sep { width: 1px; height: 22px; background: var(--gray-2); margin: 0 2px; }
.mf-pick { position: relative; width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(#f66, #fc6, #9d6, #6cf, #a7f, #f6c, #f66); display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.mf-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mf-pick span { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--sub); pointer-events: none; }

.mf-tg { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px 0 9px; border-radius: 10px; background: var(--gray); font-size: 13px; font-weight: 600; color: #444; }
.mf-tg i { width: 30px; height: 18px; border-radius: 9px; background: #cfcfd6; position: relative; transition: background .15s; }
.mf-tg i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.mf-tg.on { color: var(--ink); }
.mf-tg.on i { background: var(--accent); }
.mf-tg.on i::after { transform: translateX(12px); }
.mf-onoff { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; border-radius: 12px; background: #fafafb; box-shadow: inset 0 0 0 1px var(--line); }
.mf-onoff span { font-size: 13px; font-weight: 700; color: var(--sub); }

.mf-shade { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 6px; }
.mf-shade button { display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--sub); font-weight: 600; }
.mf-shade i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.mf-shade button.on { color: var(--ink); font-weight: 800; }
.mf-shade button.on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.mf-season { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--gray); }
.mf-season i { width: 40px; height: 40px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.mf-season span { display: grid; }
.mf-season b { font-size: 14px; }
.mf-season small { font-size: 12px; color: var(--sub); }
.mf-hint { font-size: 12.5px; color: var(--sub); background: var(--gray); padding: 10px 12px; border-radius: 10px; line-height: 1.5; }

.mf-looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mf-look { display: grid; gap: 6px; padding: 10px 8px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--gray-2); text-align: left; }
.mf-look:active { background: var(--accent-soft); }
.mf-look .sw { display: flex; }
.mf-look .sw i { width: 20px; height: 20px; border-radius: 50%; margin-right: -5px; box-shadow: 0 0 0 2px #fff; }
.mf-look b { font-size: 12px; line-height: 1.3; }

.mf-cta { padding: 22px var(--gut) 0; display: grid; gap: 8px; }
.mf-cta .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mf-cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mf-cta2 button { height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--gray-2); font-weight: 700; font-size: 13.5px; }
.mf-fine { font-size: 11px; color: var(--mute); text-align: center; line-height: 1.5; }

/* tryon 진입 카드 */
.tr-myface { margin: 12px var(--gut) 0; padding: 13px 14px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; gap: 10px; }
.tr-myface span { display: grid; flex: 1; }
.tr-myface b { font-size: 14px; color: var(--accent-d); }
.tr-myface small { font-size: 12px; color: var(--sub); line-height: 1.4; }
.tr-myface i { font-style: normal; font-size: 22px; color: var(--accent); }
.mf-sw button.none { width: auto; padding: 0 10px; border-radius: 16px; background: var(--gray); font-size: 12px; font-weight: 700; color: var(--sub); }
.mf-shade button { position: relative; }
.mf-shade em { position: absolute; top: -6px; right: 0; font-style: normal; font-size: 9px; font-weight: 800; background: var(--ink); color: #fff; padding: 0 4px; border-radius: 5px; }
.mf-season button { margin-left: auto; height: 32px; padding: 0 10px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--gray-2); font-size: 12px; font-weight: 700; flex: none; }
.mf-hint b { color: var(--ink); }
