.sf-make-invitation{margin:1.1rem 0;padding:1rem;border:1px solid #b79756;border-radius:12px;background:linear-gradient(130deg,#13243a,#0c1423)}
.sf-make-launch{width:100%;min-height:48px;padding:.8rem;border:1px solid #e4c27f;border-radius:8px;background:#e4c27f;color:#101827;font:700 1rem/1.3 Arial,sans-serif;cursor:pointer}
.sf-make-note{font-size:.875rem;line-height:1.5;color:#c8d1dd;margin:.65rem 0 0}
.sf-make{box-sizing:border-box;width:min(100% - 1rem,1040px);max-height:96dvh;padding:clamp(1rem,2.5vw,1.7rem);border:1px solid #ac8f55;border-radius:18px;color:#f6f0e7;background:radial-gradient(ellipse at 50% 20%,#233854 0,#0b1421 65%);box-shadow:0 25px 100px #000b;overflow:auto}
.sf-make::backdrop{background:#03070de8;backdrop-filter:blur(8px)}
.sf-make-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.sf-make h2{font:700 clamp(1.4rem,3.5vw,2rem)/1.15 Arial,sans-serif;margin:.35rem 0}
.sf-make-eyebrow{color:#e4c27f;letter-spacing:.16em;font-size:.875rem;margin:0}
.sf-make-personal{font-size:1rem;color:#d2dbea;margin:.65rem 0 1rem;overflow-wrap:anywhere}
.sf-make-stage{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:740px;margin:auto}
.sf-make-panel{position:relative;min-width:0;margin:0;padding:.5rem;border-radius:12px;background:radial-gradient(ellipse at 50% 80%,#8ca8d316,transparent 65%)}
.sf-make-art{position:relative;container-type:size;height:clamp(190px,42dvh,390px);display:flex;align-items:center;justify-content:center}
.sf-make-art .wl-garment.wl-framed{width:min(100cqw,calc(100cqh * var(--garment-aspect)));height:min(100cqh,calc(100cqw / var(--garment-aspect)))}
.sf-make-art>.wl-garment{height:100%;width:auto;max-width:100%}
.sf-make figcaption{text-align:center;font-size:.875rem;letter-spacing:.16em;color:#bfcede;margin-top:.4rem}
.sf-make-status{display:grid;gap:.8rem;margin:1.15rem auto .8rem;max-width:700px;text-align:center}
.sf-make-step{font-size:1rem;line-height:1.5;min-height:3em;color:#f1d6a0}
.sf-make progress{width:100%;height:5px;accent-color:#e4c27f;border-radius:5px}
.sf-make-steps{display:flex;justify-content:space-between;gap:.4rem;max-width:700px;margin:.75rem auto;padding:0;list-style:none;color:#b6c7dc;font-size:.875rem}
.sf-make-disclaimer{max-width:700px;margin:1rem auto;color:#b6c7dc;font-size:.875rem;line-height:1.5;text-align:center}
.sf-make footer{display:flex;justify-content:center;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.sf-make button:not(.sf-make-launch){min-height:44px;padding:.55rem .8rem;background:#162b43;color:#f6f0e7;border:1px solid #637b97;border-radius:8px;font:600 .875rem/1.3 Arial,sans-serif;cursor:pointer}
.sf-make button:focus-visible,.sf-make-launch:focus-visible{outline:3px solid #f5d394;outline-offset:3px}
.sf-make [data-print-kind=number],.sf-make [data-print-kind=name],.sf-make .wl-brand-seal{opacity:0}
.sf-make[data-stage=numbers] [data-print-kind=number]{opacity:1;animation:sf-thread-fill 2.6s steps(48,end) both}
.sf-make[data-stage=name] [data-print-kind=number],.sf-make[data-stage=details] [data-print-kind],.sf-make[data-stage=ready] [data-print-kind]{opacity:1}
.sf-make[data-stage=name] [data-print-kind=name]{opacity:1;animation:sf-thread-fill 2s steps(36,end) both}
.sf-make[data-stage=details] .wl-brand-seal,.sf-make[data-stage=ready] .wl-brand-seal{opacity:1;transition:opacity .5s}
.sf-make[data-stage=numbers] .sf-make-panel::after,.sf-make[data-stage=name] .sf-make-panel[data-side=back]::after{content:"";position:absolute;pointer-events:none;width:5px;height:5px;background:#ffe1a2;border-radius:50%;box-shadow:0 0 10px 2px #e9c575;animation:sf-needle-pass 2.6s linear both;z-index:10}
.sf-make[data-stage=name] .sf-make-panel[data-side=back]::after{animation-name:sf-name-pass;animation-duration:2s}
@keyframes sf-thread-fill{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
@keyframes sf-needle-pass{0%{left:30%;top:42%}15%{left:68%;top:42%}30%{left:30%;top:48%}45%{left:68%;top:54%}60%{left:30%;top:60%}75%{left:68%;top:66%}100%{left:30%;top:72%}}
@keyframes sf-name-pass{0%{left:27%;top:23%}25%{left:74%;top:23%}50%{left:27%;top:26%}75%{left:74%;top:28%}100%{left:27%;top:30%}}
.sf-make[data-reduced=true] [data-print-kind]{animation:none!important;clip-path:none!important}.sf-make[data-reduced=true] .sf-make-panel::after{display:none}
@media(max-width:500px){.sf-make{padding:1rem .7rem}.sf-make-stage{gap:.2rem}.sf-make-art{height:32dvh}.sf-make-eyebrow{font-size:.875rem;letter-spacing:.08em}.sf-make h2{font-size:1.4rem}}
@media(prefers-reduced-motion:reduce){.sf-make [data-print-kind]{animation:none!important;clip-path:none!important}.sf-make-panel::after{display:none!important}}
.sf-make progress{appearance:none;-webkit-appearance:none;border:0;background:#263b53;overflow:hidden}
.sf-make progress::-webkit-progress-bar{background:#263b53;border-radius:5px}
.sf-make progress::-webkit-progress-value{background:linear-gradient(90deg,#b58d47,#f4d99e);border-radius:5px}
.sf-make progress::-moz-progress-bar{background:#e4c27f;border-radius:5px}

/* Appliqué is laid on the fabric; the needle follows the real glyph perimeter. */
.sf-make[data-stage=numbers] [data-print-kind=number],.sf-make[data-stage=name] [data-print-kind=name]{animation:none;clip-path:none;opacity:1}
.sf-make[data-stage=numbers] .sf-make-panel::after,.sf-make[data-stage=name] .sf-make-panel::after{display:none}
.sf-make .sf-edge-seam{pointer-events:none;filter:drop-shadow(0 0 .8px #fff8)}
.sf-make .sf-edge-needle{filter:drop-shadow(0 0 5px #f8d58b)}
.sf-make[data-stage=numbers] [data-print-kind=number]>g>text,.sf-make[data-stage=name] [data-print-kind=name]>g>text{opacity:.72}
/* A single physical needle, small diagonal thread stitches and a live macro. */
.sf-make .sf-edge-seam,.sf-make .sf-edge-needle{filter:none}
.sf-make .sf-real-needle{filter:drop-shadow(.4px .7px .5px #0005)}
.sf-make .sf-make-art{height:clamp(180px,29dvh,290px)}
.sf-make-panel{transition:opacity .35s}
.sf-make[data-stage=numbers] .sf-make-panel:not(.sf-sewing-active),.sf-make[data-stage=name] .sf-make-panel:not(.sf-sewing-active){opacity:.72}
.sf-stitch-closeup{max-width:600px;margin:.8rem auto;border:1px solid #576b7d;border-radius:10px;overflow:hidden;background:#091321}
.sf-stitch-closeup>div{display:flex;justify-content:space-between;gap:.75rem;padding:.5rem .75rem;color:#c6cfda;font-size:.875rem}
.sf-stitch-closeup>div>span:first-child{letter-spacing:.1em;color:#e4c27f}
.sf-stitch-macro{display:block;width:100%;height:140px;background:radial-gradient(ellipse at center,#293c52,#0d1928)}
.sf-make[data-stage=preparing] .sf-stitch-closeup,.sf-make[data-stage=fabric] .sf-stitch-closeup{opacity:.45}
.sf-make .sf-make-status{margin:.75rem auto .5rem}
.sf-make .sf-make-step{min-height:1.5em}
@media(max-width:500px){.sf-make .sf-make-art{height:25dvh}.sf-stitch-macro{height:125px}.sf-stitch-closeup>div{flex-wrap:wrap;gap:.25rem}.sf-make .sf-make-steps{margin:.5rem auto}}
.sf-make-invitation{grid-column:1/-1}
.sf-make-launch:disabled{background:#243348;color:#c5cfdb;border-color:#607189;cursor:default}
.sf-making-open{overflow:hidden}
.sf-making-active .wl-garment{animation:none!important;filter:none!important}
.sf-make{max-height:calc(100dvh - max(1rem,env(safe-area-inset-top)) - env(safe-area-inset-bottom));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.sf-make-header{position:sticky;top:-1px;z-index:20;background:#132339;padding:.35rem 0;border-radius:6px}
.sf-make button,.sf-make-launch{touch-action:manipulation}
@media(max-width:600px){input[name=player],input[name=number],select[name=finish]{font-size:16px!important}.sf-make{padding-bottom:max(1rem,env(safe-area-inset-bottom))}.sf-make-stage{min-width:0}.sf-make footer button{flex:1 1 44%;min-height:44px}.sf-make-launch{font-size:1rem}}
/* Adaptive studio: one renderer follows the selected style and personalization. */
.sf-make-brand{display:flex;align-items:center;gap:.7rem;min-width:0}.sf-make-brand>img{object-fit:contain;flex:none;width:48px;height:57px}
.sf-make-clock{font:500 .875rem/1.3 Arial,sans-serif;color:#bac8d8;font-variant-numeric:tabular-nums}
.sf-stitch-closeup{max-width:740px;border-color:#526478;background:#0a121e;border-radius:14px}
.sf-stitch-macro{height:clamp(230px,46dvh,430px);background:#0d1928}
.sf-make[data-stage=preparing] .sf-stitch-closeup,.sf-make[data-stage=fabric] .sf-stitch-closeup,.sf-make[data-stage=details] .sf-stitch-closeup,.sf-make[data-stage=ready] .sf-stitch-closeup,.sf-make[data-stage=error] .sf-stitch-closeup{display:none}
.sf-make[data-stage=numbers] .sf-make-art,.sf-make[data-stage=name] .sf-make-art{height:clamp(135px,19dvh,190px)}
.sf-make-stage{max-width:650px}.sf-make[data-stage=numbers] .sf-make-panel,.sf-make[data-stage=name] .sf-make-panel{opacity:1}
.sf-make[data-stage=numbers] [data-print-kind=number]>g>text,.sf-make[data-stage=name] [data-print-kind=name]>g>text{opacity:1}
.sf-make footer{position:sticky;bottom:-1px;background:#0c1726f5;padding:.6rem .2rem;z-index:20;border-radius:10px}
@media(max-width:500px){.sf-make-brand>img{width:36px;height:43px}.sf-make h2{font-size:1.2rem}.sf-make-eyebrow{font-size:.875rem;letter-spacing:.03em}.sf-stitch-macro{height:36dvh;min-height:230px}.sf-make footer{gap:.35rem}.sf-make-art{min-width:0}}

/* Keep the complete digit visible while its ink and perimeter build together. */
.sf-stitch-macro{height:clamp(200px,32dvh,340px)}
.sf-make[data-stage=numbers] .sf-make-steps,.sf-make[data-stage=name] .sf-make-steps,
.sf-make[data-stage=numbers] .sf-make-disclaimer,.sf-make[data-stage=name] .sf-make-disclaimer{display:none}
.sf-make[data-stage=numbers] .sf-make-art,.sf-make[data-stage=name] .sf-make-art{height:clamp(110px,17dvh,160px)}
@media(max-width:500px){
 .sf-stitch-macro{height:29dvh;min-height:190px;max-height:270px}
 .sf-make[data-stage=numbers] .sf-make-personal,.sf-make[data-stage=name] .sf-make-personal{margin:.4rem 0;font-size:.875rem}
 .sf-make .sf-make-status{gap:.35rem;margin:.5rem auto}
 .sf-make .sf-make-step{font-size:.875rem}
 .sf-stitch-closeup{margin:.5rem auto}
 .sf-stitch-closeup>div{font-size:.875rem;padding:.4rem .55rem}
}

@media(max-width:500px){
 .sf-make-header{gap:.5rem}
 .sf-make-brand{gap:.45rem}
 .sf-make-brand>img{width:30px;height:37px}
 .sf-make h2{font-size:1.05rem}
 .sf-make-eyebrow{font-size:.875rem;letter-spacing:0}
 .sf-make .sf-make-art{height:20dvh}
 .sf-make[data-stage=numbers] .sf-make-art,.sf-make[data-stage=name] .sf-make-art{height:clamp(105px,16dvh,135px)}
}

/* A camera at the machine bed; keep the sewing area and both proofs in view. */
.sf-stitch-macro{height:auto;aspect-ratio:8/5;max-height:40dvh;min-height:230px;background:#828a87}
.sf-make[data-stage=numbers] .sf-stitch-closeup,.sf-make[data-stage=name] .sf-stitch-closeup{box-shadow:0 14px 36px #0005}
.sf-stitch-closeup>div{align-items:center;min-height:32px;background:#0d1825}
.sf-stitch-closeup [data-closeup-label]{text-align:right}
.sf-make[data-stage=numbers] .sf-make-personal,.sf-make[data-stage=name] .sf-make-personal{margin:.5rem 0;color:#d5dce5}
.sf-make .sf-make-status{gap:.45rem;margin:.55rem auto}
.sf-make .sf-make-step{min-height:0}
.sf-make .sf-make-art .wl-garment{animation:none!important;filter:none!important}
@media(max-width:600px){
 .sf-make{width:calc(100% - .65rem);padding:.6rem .65rem;border-radius:16px}
 .sf-make-header{padding:.35rem .15rem}
 .sf-make-header [data-make-close]{min-width:58px}
 .sf-make h2{font-size:1.05rem}
 .sf-make-personal{font-size:.875rem;line-height:1.35}
 .sf-stitch-macro{aspect-ratio:8/5;height:auto;min-height:0;max-height:34dvh}
 .sf-stitch-closeup>div{font-size:.875rem;gap:.25rem;padding:.4rem .5rem}
 .sf-stitch-closeup>div>span:first-child{letter-spacing:.045em}
 .sf-make[data-stage=numbers] .sf-make-art,.sf-make[data-stage=name] .sf-make-art{height:clamp(105px,16dvh,145px)}
 .sf-make figcaption{font-size:.875rem;letter-spacing:.1em;margin-top:.2rem}
 .sf-make footer{margin-top:.4rem;padding:.4rem 0;gap:.4rem;bottom:-.25rem}
 .sf-make footer button{min-height:44px;font-size:.875rem;padding:.55rem .4rem}
}
