:root{color-scheme:light;--ink:#222220;--muted:#6f6c66;--line:#e7e6e3;--blue:#2859e8;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",sans-serif;color:var(--ink);background:#fff;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:4px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-header{max-width:1192px;margin:auto;padding:26px 36px;display:flex;align-items:center;justify-content:space-between}.wordmark{font-size:24px;font-weight:750;letter-spacing:-1px;display:flex;align-items:center;gap:9px}.brand-dot{width:8px;height:8px;background:#ffbd2f;border-radius:50%}.language select{padding:10px 28px 10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:14px;max-width:150px}
main{max-width:1120px;margin:0 auto;padding:20px 36px 55px}.intro{margin-bottom:28px}.eyebrow{font-size:14px;letter-spacing:.06em;color:var(--muted);margin:0 0 10px}h1{font-size:clamp(28px,3.4vw,42px);letter-spacing:-.04em;line-height:1.4;margin:0 0 12px;font-weight:700}.intro>p:last-child{font-size:16px;line-height:1.8;color:var(--muted);margin:0}
.studio{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}.preview{position:sticky;top:20px;background:#f5f5f3;border:1px solid #eeede9;border-radius:28px;padding:28px 24px 18px;display:flex;flex-direction:column;align-items:center;overflow:hidden}.phone-holder{width:min(100%,300px);border:5px solid #252526;border-radius:42px;overflow:hidden;box-shadow:0 20px 38px -16px #0004,0 0 0 1px #555;background:white;line-height:0}#phone{width:100%;height:auto;display:block}.preview-caption{font-size:12px;color:var(--muted);margin-top:20px;line-height:1.5;text-align:center}
.controls{min-width:0;padding:10px 0 0}.control-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}h2{font-size:20px;font-weight:600;margin:0;letter-spacing:-.02em}.reset{font-size:14px;border:0;border-bottom:1px solid #c8c7c3;padding:10px 0;background:transparent;color:var(--muted);white-space:nowrap}.reset:hover{color:var(--ink)}fieldset{border:0;border-bottom:1px solid var(--line);margin:0;padding:22px 0}legend{float:left;width:100%;margin-bottom:14px;padding:0;font-size:15px;font-weight:600;display:flex;align-items:baseline;justify-content:space-between;gap:10px}legend+*{clear:both}.choice-value{font-weight:400;font-size:13px;color:var(--muted)}.segmented{display:flex;gap:6px;padding:5px;border-radius:12px;background:#f3f3f1}.segmented button{flex:1;min-height:44px;border:1px solid transparent;border-radius:8px;background:transparent;font-size:15px;color:var(--muted)}.segmented button[aria-pressed=true]{color:var(--ink);background:white;box-shadow:0 1px 5px #0001;border-color:#e5e5e2}
.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatch{position:relative;width:44px;height:44px;display:grid;place-items:center;background:transparent;padding:5px;border:2px solid transparent;border-radius:50%}.swatch span{display:grid;place-items:center;width:30px;height:30px;background:var(--swatch);border-radius:50%;border:1px solid #0002;color:var(--check);font-size:18px;line-height:1}.swatch[aria-pressed=true]{border-color:var(--ink)}.swatch:hover{background:#f0f0ee}.face-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.face-choice{border:1px solid var(--line);border-radius:12px;background:#fff;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 3px;color:var(--ink)}.face-choice svg{width:52px;height:24px;overflow:visible}.face-choice span{font-size:12px;line-height:1.3;overflow-wrap:anywhere}.face-choice[aria-pressed=true]{background:#f0f0ed;border:2px solid #393936;padding:7px 2px}.sliders{margin-top:18px;display:grid;gap:12px}.sliders label{display:grid;grid-template-columns:70px 1fr;gap:14px;align-items:center;font-size:14px}input[type=range]{width:100%;min-width:0;height:28px;accent-color:#333;margin:0;cursor:pointer}.toggle-label{display:flex;align-items:center;gap:10px;font-size:15px;position:relative;min-height:44px;cursor:pointer}.toggle-label>span:first-child{flex:1}.toggle-label input{position:absolute;right:0;width:48px;height:32px;opacity:0;margin:0;cursor:pointer}.switch{width:44px;height:26px;border-radius:20px;background:#d9d9d5;position:relative;pointer-events:none;transition:background .15s}.switch:after{content:"";width:20px;height:20px;position:absolute;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}.toggle-label input:checked+.switch{background:#31312f}.toggle-label input:checked+.switch:after{transform:translateX(18px)}.toggle-label input:focus-visible+.switch{outline:3px solid var(--blue);outline-offset:4px}.retro-field{padding:16px 0}.fine-print{font-size:13px;line-height:1.7;color:var(--muted);margin:15px 0 0}footer{max-width:1048px;margin:auto;border-top:1px solid var(--line);padding:24px 0 34px;display:flex;justify-content:space-between;gap:20px;font-size:14px;color:var(--muted)}
@media(min-width:761px) and (max-height:900px){.phone-holder{width:246px}.preview{padding:20px 24px 16px}.preview-caption{margin-top:15px}}
@media(max-width:760px){.site-header{padding:17px 20px}.wordmark{font-size:22px}main{padding:10px 20px 32px}.intro{margin-bottom:18px}.eyebrow{font-size:13px;margin-bottom:6px}h1{font-size:27px;margin-bottom:8px}.intro>p:last-child{font-size:15px;line-height:1.65}.studio{display:block}.preview{top:0;z-index:3;border-radius:18px;padding:12px;background:#f5f5f3f7;backdrop-filter:blur(12px);width:100%;margin-bottom:10px}.phone-holder{width:auto;height:min(39svh,350px);aspect-ratio:420/913;border-width:3px;border-radius:24px}#phone{height:100%;width:100%}.preview-caption{display:none}.controls{padding:8px 2px 0}.control-heading{margin-bottom:0}h2{font-size:18px}fieldset{padding:17px 0}.face-choices{grid-template-columns:repeat(4,minmax(0,1fr))}footer{margin:0 20px;padding-top:22px}.swatches{gap:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* Keep choosing a body and a face in the foreground. */
@font-face{font-family:HeadlightPixel;src:url('fonts/DotGothic16-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:HeadlightPixelKR;src:url('fonts/fusion-pixel-12px-proportional-ko.otf') format('opentype');font-display:swap}
@font-face{font-family:HeadlightPixelTC;src:url('fonts/fusion-pixel-12px-proportional-zh_hant.otf') format('opentype');font-display:swap}
.preview{padding:0;border-radius:28px;background:#f5f5f3;border:0}
.phone-holder{box-sizing:content-box;background:transparent}
.preview-caption{display:none}
.quick-actions{display:flex;align-items:center;gap:20px;margin-bottom:4px}
.shuffle{display:flex;justify-content:center;align-items:center;gap:10px;flex:1;min-height:50px;background:#252523;color:#fff;border:1px solid #252523;border-radius:12px;padding:12px 16px;font-weight:600;font-size:16px}
.shuffle:hover{background:#454542}
.shuffle:active{transform:scale(.985)}
.body-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.body-choice{display:flex;align-items:center;gap:8px;min-height:57px;text-align:left;color:var(--ink);font-size:13px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff}
.body-choice[aria-pressed=true]{border:2px solid #393936;padding:7px;background:#f5f5f3}
.body-sample{position:relative;flex-shrink:0;display:block;width:28px;height:37px;border-radius:6px;background:var(--body-color);border:1px solid #0002;box-shadow:inset 0 0 0 2px #ffffff30}
.body-sample i{position:absolute;inset:15px 4px 9px;border:1px solid var(--body-ink);opacity:.7;border-radius:2px}
.body-sample.midnightCassette{background:repeating-linear-gradient(0deg,#fff0 0 2px,#ffffff16 2px 3px),var(--body-color)}
.body-sample.warmAnalog{border:3px double #b4966f;background:#eee3ca}
.body-sample.cyberSignal{border-color:#a5d24c;background:repeating-linear-gradient(90deg,transparent 0 4px,#a5d24c20 4px 5px),var(--body-color)}
.body-sample.dreamySticker{background:radial-gradient(at top left,#fce9ff,#cdc0ed)}
.face-choices{grid-template-columns:repeat(5,minmax(0,1fr))}
.face-choice{min-height:67px}
.fine-settings{margin-top:14px;font-size:14px;color:var(--muted)}
.fine-settings summary{cursor:pointer;min-height:40px;padding:10px 0}
.fine-settings .sliders{margin-top:8px;color:var(--ink)}
.style-field{padding:15px 0}
.controls{padding-top:0}
@media(max-width:760px){
 .preview{margin:0 -20px 18px;width:calc(100% + 40px);border-radius:0;padding:0}
 .phone-holder{height:min(43svh,390px);border:3px solid #252526;border-radius:24px;box-shadow:0 0 0 1px #888;flex-shrink:0}
 .quick-actions{gap:16px}.shuffle{font-size:15px}
 .body-choices{gap:7px}.body-choice{font-size:12px;gap:7px;min-height:52px}
 .face-choices{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
 .face-choice{min-height:65px}.face-choice svg{width:46px}
}
@media(max-width:370px){.body-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.body-choice{flex-direction:column;text-align:center}.face-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.quick-actions{gap:10px}.shuffle{padding:12px 8px}}

/* A small optional shuffle action; body and face choices remain the main controls. */
.quick-actions { justify-content: space-between; gap: 12px; }
.shuffle { flex: 0 0 auto; min-height: 38px; gap: 7px; padding: 8px 12px; border: 1px solid #dededb; border-radius: 9px; background: #fff; color: #42423e; font-size: 14px; font-weight: 500; }
.shuffle svg { width: 18px; height: 18px; }
.shuffle:hover { background: #f3f3f1; }

/* The app's three sleepy letters gently rise at staggered intervals. */
.sleep-animated .sleep-letter { animation: sleep-rise 3.2s ease-in-out var(--sleep-delay) infinite; }
@keyframes sleep-rise { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(var(--sleep-lift)); opacity: .4; } }
@media(prefers-reduced-motion:reduce) { .sleep-animated .sleep-letter { animation: none; } }
