/* BoldFace editor: Canvas preview, catalog, mobile controls and SEO footer. */
:root{color-scheme:dark;--head:#aa347e;--panel:#26262d;--edge:#484850;--blue:#36a9d2;--text:#f5f5f6;--dock:calc(64px + env(safe-area-inset-bottom,0px))}
*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:system-ui,-apple-system,sans-serif;background:#17171c;color:var(--text)}button,a{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #66d5ff;outline-offset:2px}[hidden]{display:none!important}
.lf-head{height:72px;background:var(--head);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:8px 16px;position:relative;z-index:20}.lf-close{font-size:13px;font-weight:700;white-space:nowrap}.lf-close-short{display:none}.lf-logo img{display:block;width:auto;max-width:180px;height:47px;object-fit:contain}.lf-create{justify-self:end;border-radius:40px;color:#1e7654;background:white;min-width:118px;text-align:center;padding:13px 16px;font-size:13px;font-weight:700;white-space:nowrap}
/* Desktop editor content has one real 1280px boundary; the header remains viewport-wide. */
.lf-layout{width:100%;max-width:1280px;margin-inline:auto;display:grid;grid-template-columns:minmax(0,43fr) minmax(0,57fr);height:calc(100dvh - 72px);min-height:0;overflow:hidden}.lf-workspace{background:#17171c;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;padding:12px 14px 11px;border-right:1px solid #3e3e45}.lf-art-space{flex:0 1 auto;min-height:0;width:100%;aspect-ratio:3/4;max-height:710px;display:flex;align-items:flex-start;justify-content:center;overflow:hidden}.lf-art-space canvas{display:block;max-width:100%;max-height:100%;width:320px;height:auto;background:white;border-radius:12px;box-shadow:0 5px 16px rgba(0,0,0,.1)}.lf-status{text-align:center;color:#f9c8b0;font-size:12px}.lf-status:empty{display:none}
/* Compact controls: preview area gets available space first. */
.lf-position{flex:0 0 auto;background:#25252b;border:1px solid #45454f;border-radius:10px;padding:7px;max-width:520px;width:100%;margin:0 auto}.lf-position-title{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:5px;font-size:12px}.lf-position-title button{background:#41434e;color:white;border:0;border-radius:7px;padding:4px 9px;font-size:11px}.lf-position-keys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.lf-position-group{display:grid;grid-template-rows:24px 24px 24px;gap:2px;background:#33343d;padding:3px;border-radius:8px}.lf-position-group button{border:1px solid #737783;background:#444b5a;color:white;border-radius:6px;font-size:16px;line-height:1}.lf-position-group img{height:21px;max-width:90%;display:block;object-fit:contain;margin:auto}.lf-sex-chooser{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:10px}.lf-sex-btn{border:1px solid #66606c;color:white;background:#30303a;padding:7px 25px;border-radius:35px;font-size:13px;font-weight:700}.lf-sex-btn[aria-pressed=true]{border-color:#afe0f2;background:#36a9d2}
/* Desktop: main menu stays put; submenu is sticky within the scrolled catalog. */
.lf-select{background:var(--panel);min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.lf-primary-nav{display:grid;flex:0 0 auto;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0;padding:16px 18px 12px;background:var(--panel);border-bottom:1px solid #414149;z-index:3}.lf-main-choice{border:1px solid #51525e;border-radius:11px;background:#34343e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:69px;padding:7px 4px;text-align:center;font-size:12px;font-weight:700}.lf-main-choice img{width:26px;height:26px;object-fit:contain;filter:grayscale(1) brightness(0) invert(1)}.lf-main-choice.is-current{background:#36a9d2;border-color:#b6e5ff}.lf-drawer-toggle{display:none}
.lf-catalog-scroll{min-height:0;min-width:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:0 18px 24px;scrollbar-gutter:stable}.lf-category-nav{display:flex;gap:8px;overflow-x:visible;padding:11px 0 12px;position:sticky;top:0;background:var(--panel);z-index:2}.lf-category-btn{flex:1 1 74px;min-width:0;max-width:125px;min-height:58px;background:#35353f;border:1px solid #5d5e6b;border-radius:9px;color:white;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:12px}.lf-category-btn img{max-width:26px;height:25px;object-fit:contain;filter:grayscale(1) brightness(0) invert(1)}.lf-category-btn[aria-pressed=true]{background:#454c5a;border-color:#57c1eb}.lf-catalog-intro{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 2px}.lf-catalog-intro h1{font-size:19px;margin:0;font-weight:700}.lf-catalog-intro button{background:#41414b;border:1px solid #636470;border-radius:8px;color:white;padding:8px 11px;font-size:12px}.lf-catalog{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;background:white;border-radius:11px;padding:12px;min-height:160px;align-content:start}.lf-card{appearance:none;background:#fafbfc;border:2px solid #ebecf1;border-radius:12px;min-width:0;aspect-ratio:1/1;padding:5px;overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative}.lf-card img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.lf-card[data-selected=true]{border-color:#33acd3;background:#eaf8ff}.lf-card:disabled{opacity:.55;cursor:default}.lf-catalog-hint{color:#cacbd4;font-size:12px;line-height:1.5}
/* Message thumbnails: a visible filename-derived label below each preview. */
.lf-card[data-key="messageurl"]{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:3px;padding:4px}
.lf-card[data-key="messageurl"] img{display:block;min-height:0;flex:1 1 auto;max-height:none;height:auto;width:100%;object-fit:contain}
.lf-card-message-label{display:block;flex:0 0 auto;line-height:1.25;font-size:11px;font-weight:400;color:#555b66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;width:100%}
/* The responsive AdSense unit belongs after the WHOLE editor, not inside its catalog. */
.lf-page-ad{width:100%;max-width:1120px;min-height:130px;margin:0 auto;padding:22px max(14px,5vw) 46px;text-align:center;display:flex;flex-direction:column;align-items:center}
.lf-ad-label{display:block;font-size:11px;letter-spacing:.06em;color:#9b9eab;margin:0 0 8px}
.lf-ad-center{width:100%;max-width:970px;margin-inline:auto;text-align:center}
.lf-page-ad .adsbygoogle{display:block;width:100%;max-width:100%;min-width:0;margin-inline:auto}

@media(max-width:960px) and (min-width:781px){.lf-layout{grid-template-columns:minmax(260px,40%) minmax(0,60%)}.lf-workspace{padding:9px}.lf-primary-nav{padding:9px;gap:5px}.lf-catalog-scroll{padding:0 10px 15px}.lf-catalog{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px}.lf-position-keys{gap:3px}}
/* Mobile: only the four primary menu tabs are fixed to the bottom. The face submenu
   is normal catalog content and scrolls away together with thumbnails. */




/* Gender selection prompt is shown only before a gender is selected. */
.lf-gender-prompt{min-height:72px;padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:20px;background:#292730;border-bottom:1px solid #53515a;position:relative;z-index:5}
.lf-prompt-title{font-size:15px;font-weight:700;color:#fff}
.lf-prompt-actions{display:flex;align-items:center;gap:9px}
.lf-prompt-actions button{min-width:115px;border:1px solid transparent;padding:11px 14px;border-radius:24px;color:#fff;font-size:13px;font-weight:700}
.lf-prompt-actions .lf-prompt-men{background:#36a9d2;border-color:#a1dff3}
.lf-prompt-actions .lf-prompt-girl{background:#eb4b99;border-color:#ffc0d9}
body.lf-needs-sex .lf-layout{height:calc(100dvh - 72px - 72px)}
.lf-create.lf-gender-required{opacity:.7}
/* Female selection: apply the same bright pink to all selected editor UI elements. */
.lf-sex-btn[data-sex=girl][aria-pressed=true]{background:#eb4b99;border-color:#ffbdd9}
body[data-gender=girl] .lf-main-choice.is-current{background:#eb4b99;border-color:#ffc0d9}
body[data-gender=girl] .lf-category-btn[aria-pressed=true]{background:#883c65;border-color:#f28fbe}
body[data-gender=girl] .lf-card[data-selected=true]{background:#fff0f7;border-color:#eb4b99}



/* Thumbnail crop rules: face shape unchanged; other parts zoom as needed. */
.lf-card.lf-thumb-eye img,.lf-card.lf-thumb-brow img,.lf-card.lf-thumb-hair img{transform:scale(1.5);transform-origin:center center}
.lf-card.lf-thumb-nose img,.lf-card.lf-thumb-mouth img{transform:scale(2);transform-origin:center center}
.lf-card.lf-thumb-body img{transform:translateY(-8%) scale(2);transform-origin:center center}


/* Searchable editorial content follows the editor, outside its fixed panel. */
.lf-seo{width:100%;max-width:1280px;margin-inline:auto;background:#1c1c23;border-top:1px solid #383840;padding:35px 18px 20px;color:#dadbe1}
.lf-seo-inner{max-width:910px;margin:0 auto}
.lf-seo h2{margin:0 0 17px;color:#fff;font-size:21px;line-height:1.45;font-weight:700;letter-spacing:.005em}
.lf-seo h3{margin:27px 0 10px;color:#f4f4f7;font-size:16px;line-height:1.5;font-weight:700}
.lf-seo p,.lf-seo li{font-size:14px;line-height:1.95;letter-spacing:.01em}
.lf-seo p{margin:0 0 12px}.lf-seo ol{padding-left:1.5em;margin:3px 0 24px}
.lf-seo a{color:#a3dff8;text-decoration:underline;text-underline-offset:3px}
.lf-seo a:hover{color:#fff}
.lf-seo-faq{max-width:850px;border-top:1px solid #45454c;margin:6px 0 27px}
.lf-seo-faq details{border-bottom:1px solid #45454c;padding:12px 0}
.lf-seo-faq summary{font-size:14px;color:#f3f3f5;cursor:pointer;font-weight:600;line-height:1.6}
.lf-seo-faq details p{margin:11px 0 4px;padding-left:1px}
.lf-seo-links{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:27px;padding-top:17px;border-top:1px solid #3d3d46}
.lf-seo-links a{font-size:13px;text-decoration:none;border-bottom:1px solid currentColor;line-height:1.75}

/* Mobile editor is a single viewport-sized application. The only vertical scroller
   is the thumbnail catalog; the SEO text and ads are desktop-only by product design.
   Heights are allocated by the page grid, not content-driven flex bases. */
@media (max-width:780px) {
 html {
   width:100%; height:100%; overflow:hidden;
 }
 body {
   width:100%; height:100vh; height:100dvh; max-height:100dvh;
   min-height:0; overflow:hidden; padding:0 0 var(--dock);
   display:flex; flex-direction:column;
 }
 .lf-seo,.lf-page-ad {display:none !important}
 .lf-head {
   flex:0 0 58px; height:58px; min-height:58px; padding:5px 10px;
 }
 .lf-close-full{display:none}
 .lf-close-short{display:inline}
 .lf-logo img{height:38px;max-width:145px}
 .lf-create{min-width:90px;padding:10px 9px}
 .lf-gender-prompt {
   flex:0 0 auto; min-height:82px; gap:5px; flex-direction:column; padding:8px 10px;
 }
 .lf-prompt-title{font-size:13px;line-height:1.3}
 .lf-prompt-actions button{min-width:115px;padding:8px 12px;font-size:12px}
 .lf-layout, body.lf-needs-sex .lf-layout {
   flex:1 1 0; height:0; min-height:0; min-width:0;
   display:grid; grid-template-columns:minmax(0,1fr);
   grid-template-rows:minmax(0,1fr) minmax(0,1fr);
   overflow:hidden;
 }
 .lf-workspace {
   width:100%; height:100%; min-width:0; min-height:0;
   overflow:hidden; border:0; padding:7px 8px 6px; gap:5px;
 }
 .lf-art-space {
   width:100%; height:0; flex:1 1 0; min-height:0;
   max-height:none; aspect-ratio:auto;
   justify-content:center; align-items:flex-start;
 }
 .lf-position{padding:4px;max-width:480px;margin-top:0}
 .lf-position-title{font-size:11px;margin-bottom:2px}
 .lf-position-title button{padding:3px 8px}
 .lf-position-keys{gap:3px}
 .lf-position-group{grid-template-rows:18px 17px 18px;gap:1px;padding:1px}
 .lf-position-group button{font-size:13px}
 .lf-position-group img{height:15px}
 .lf-sex-btn{padding:6px 23px}
 body:not(.lf-panel-collapsed) .lf-position,
 body:not(.lf-panel-collapsed) .lf-sex-chooser{display:none}
 .lf-select {
   width:100%; height:100%; min-height:0; min-width:0;
   overflow:hidden; border-top:1px solid #42424b;
 }
 .lf-primary-nav {
   position:fixed; bottom:0; left:0; right:0;
   height:var(--dock); min-height:var(--dock);
   padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px));
   margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
   gap:6px; background:#282830; border-top:1px solid #484853; border-bottom:0;
   z-index:100; box-shadow:0 -3px 10px rgba(0,0,0,.2);
 }
 .lf-main-choice {
   min-height:0; height:100%; border-radius:9px; gap:2px;
   padding:3px 2px; font-size:11px; line-height:1.2;
 }
 .lf-main-choice img{height:23px;width:23px}
 .lf-drawer-toggle {
   display:block; flex:0 0 42px; width:100%; min-height:42px;
   border:0; background:#393941; border-bottom:1px solid #555560;
   color:#fff; text-align:center; font-weight:700; font-size:13px;
 }
 .lf-catalog-scroll {
   flex:1 1 0; min-height:0; overflow-y:auto; overflow-x:hidden;
   overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch;
   touch-action:pan-y; padding:0 10px 18px; scrollbar-gutter:auto;
 }
 .lf-category-nav {
   position:static; background:transparent; z-index:auto;
   overflow-x:auto; padding:9px 0 8px; gap:5px;
 }
 .lf-category-btn{min-height:52px;flex-basis:66px;max-width:none;font-size:10px}
 .lf-category-btn img{height:22px;width:24px}
 .lf-catalog{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px;min-height:120px}
 .lf-catalog-intro{padding:8px 2px}
 .lf-catalog-intro h1{font-size:16px}
 .lf-catalog-intro button{padding:6px 8px}
 body.lf-panel-collapsed .lf-layout,
 body.lf-panel-collapsed.lf-needs-sex .lf-layout {
   grid-template-rows:minmax(0,1fr) 42px;
 }
 body.lf-panel-collapsed .lf-catalog-scroll{display:none}
}
@media (max-width:380px) {
 .lf-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}
 .lf-position-keys{gap:2px}
 .lf-position-group{padding:1px}
}
/* Short devices: slightly more space for the avatar when selecting parts.
   With selection hidden, controls float over the bottom of the art area rather
   than reducing the avatar to a few pixels. */
@media (max-width:780px) and (max-height:710px) {
 .lf-layout,body.lf-needs-sex .lf-layout {
   grid-template-rows:minmax(0,58fr) minmax(0,42fr);
 }
 body.lf-panel-collapsed .lf-layout,
 body.lf-panel-collapsed.lf-needs-sex .lf-layout {
   grid-template-rows:minmax(0,1fr) 42px;
 }
 .lf-workspace{gap:3px}
 .lf-drawer-toggle{font-size:12px}
 body.lf-panel-collapsed .lf-workspace{position:relative}
 body.lf-panel-collapsed .lf-art-space{height:0;flex:1 1 0}
 body.lf-panel-collapsed .lf-position:not([hidden]) {
   position:absolute;left:50%;bottom:43px;transform:translateX(-50%);
   width:calc(100% - 16px);z-index:4;
   background:rgba(37,37,43,.92);
 }
 body.lf-panel-collapsed .lf-sex-chooser {
   position:absolute;bottom:6px;left:0;right:0;z-index:5;
 }
}


/* Full-height first-use gender choice; overlay never changes editor panel heights. */
.lf-gender-prompt:not([hidden]){
 position:fixed;left:0;right:0;top:72px;bottom:0;min-height:0;
 z-index:150;display:flex;flex-direction:column;justify-content:center;align-items:center;
 gap:24px;padding:24px max(16px,env(safe-area-inset-left,0px));
 overflow-y:auto;overscroll-behavior:contain;
 background:#24232c;
}
.lf-gender-prompt:not([hidden]) .lf-prompt-title{font-size:clamp(19px,2.4vw,27px);text-align:center;line-height:1.5}
.lf-gender-prompt:not([hidden]) .lf-prompt-actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.lf-gender-prompt:not([hidden]) .lf-prompt-actions button{font-size:16px;padding:16px 24px;min-width:150px;border-radius:12px}
@media(max-width:780px){
 .lf-gender-prompt:not([hidden]){top:58px;bottom:0;gap:18px;padding:18px 12px}
 .lf-gender-prompt:not([hidden]) .lf-prompt-title{font-size:20px}
 .lf-gender-prompt:not([hidden]) .lf-prompt-actions{width:100%;max-width:360px;gap:12px}
 .lf-gender-prompt:not([hidden]) .lf-prompt-actions button{flex:1 1 140px;min-width:0;font-size:15px;padding:17px 12px}
}
