/* YakDark Configuratore: usa le variabili del tema se ci sono */
.yd-cfg{--ott:var(--ottone,#B9965B);--txt:var(--osso,#EFE7D8);--dim:var(--osso2,rgba(239,231,216,.66));position:relative;margin:8px 0 22px;padding:30px 28px;border-radius:18px;background:radial-gradient(120% 90% at 20% 0%,#4A3220,#3B2819 45%,#2A1C11);color:var(--txt)}
.yd-cfg::before{content:"";position:absolute;inset:10px;border:1.5px dashed rgba(185,150,91,.55);border-radius:12px;pointer-events:none}
.yd-step{position:relative;border:0;margin:0;padding:16px 0;border-bottom:1px solid rgba(239,231,216,.12);min-width:0}
.yd-step:last-of-type{border-bottom:0}
.yd-step legend{display:flex;align-items:baseline;gap:10px;width:100%;padding:0;margin-bottom:12px;font:400 21px/1.2 Montserrat,system-ui,sans-serif}
.yd-step legend small{margin-left:auto;font:400 13px/1.3 Montserrat,system-ui,sans-serif;color:var(--dim)}
.yd-n{color:var(--ott)}
.yd-drop{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;border-radius:10px;background:rgba(0,0,0,.25);border:1px solid rgba(185,150,91,.5);cursor:pointer}
.yd-drop b{display:block;font-weight:600}.yd-drop small{color:var(--dim)}
.yd-drop__btn{border-bottom:1px solid var(--ott);padding-bottom:3px;font-weight:500}
.yd-drop:focus-within{outline:2px solid var(--ott);outline-offset:3px}
.yd-file{position:absolute;width:1px;height:1px;opacity:0}
.yd-status{min-height:1.2em;margin:8px 0 0;font-size:14px;color:var(--dim)}
.yd-arts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.yd-art-btn{width:56px;height:56px;padding:5px;border-radius:8px;background:#EFE7D8;border:0;cursor:pointer}
.yd-art-btn img{width:100%;height:100%;object-fit:contain}
.yd-art-btn[aria-checked=true]{box-shadow:0 0 0 2px #3B2819,0 0 0 4px var(--ott)}
.yd-swatches{display:flex;flex-wrap:wrap;gap:10px}
.yd-sw{width:32px;height:32px;border-radius:50%;border:1px solid rgba(255,255,255,.35);cursor:pointer;padding:0}
.yd-sw[aria-checked=true]{box-shadow:0 0 0 3px #3B2819,0 0 0 5px var(--ott)}
.yd-sizes{display:flex;flex-wrap:wrap;gap:6px}
.yd-size{min-width:48px;height:44px;padding:0 10px;border-radius:6px;background:rgba(0,0,0,.25);border:1px solid rgba(239,231,216,.2);color:var(--txt);cursor:pointer;font-weight:500}
.yd-size[aria-checked=true]{background:var(--txt);color:#000;border-color:var(--txt)}
.yd-name{width:100%;height:48px;border-radius:8px;border:1px solid rgba(239,231,216,.2);background:rgba(0,0,0,.25);color:var(--txt);padding:0 14px;font:500 18px Montserrat,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.yd-error{margin:10px 0 0;color:#F0B9A6;font-weight:500}
.yd-cfg button:focus-visible,.yd-name:focus-visible{outline:2px solid var(--ott);outline-offset:3px}
/* anteprima: lente in ottone */
.yd-preview{width:100%}
.yd-lens{position:relative;padding:12px;border-radius:110px;background:linear-gradient(160deg,#C9A86C,#8E6E3F);box-shadow:0 40px 90px rgba(0,0,0,.7)}
.yd-lens__in{position:relative;border-radius:98px;overflow:hidden;background:#EDEBE6}
.yd-lens__in::after{content:"";position:absolute;inset:0;background:linear-gradient(125deg,rgba(255,255,255,.25),rgba(255,255,255,0) 30%);pointer-events:none}
.yd-tee{display:block;width:100%;height:auto;aspect-ratio:5/6;object-fit:cover}
.yd-art{position:absolute;left:50%;top:36%;width:32%;transform:translate(-50%,-50%)}
.yd-name-out{position:absolute;left:50%;top:56%;transform:translateX(-50%);font:500 32px/1 Montserrat,system-ui,sans-serif;letter-spacing:.12em;white-space:nowrap}
.yd-loupe{position:absolute;right:-18px;bottom:36px;width:170px;height:170px;border-radius:50%;padding:7px;background:linear-gradient(160deg,#C9A86C,#8E6E3F);box-shadow:0 20px 50px rgba(0,0,0,.6)}
.yd-loupe div{width:100%;height:100%;border-radius:50%;background:#111 50% 42%/170% no-repeat}
.yd-preview__note{margin:16px 0 0;font-size:13px;color:var(--dim,rgba(239,231,216,.66))}
@media (max-width:700px){.yd-cfg{padding:22px 18px}.yd-lens{border-radius:64px;padding:9px}.yd-lens__in{border-radius:56px}.yd-loupe{width:104px;height:104px;right:-4px;top:16px;bottom:auto}.yd-step legend small{margin-left:0;width:100%}.yd-step legend{flex-wrap:wrap}}
@media (prefers-reduced-motion:reduce){.yd-cfg *{transition:none!important}}

/* stile glass + carbonio (19/11) */
.yd-cfg{border-radius:28px;background:rgba(255,255,255,.055);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 20px 50px -20px rgba(0,0,0,.8)}
.yd-cfg::before{display:none}
.yd-step{border-bottom-color:rgba(255,255,255,.10)}
.yd-step legend{font-weight:700;font-size:19px}
.yd-n{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ott);color:#1A140A;font-size:13px;font-weight:700}
.yd-drop{border-radius:16px;background:rgba(255,255,255,.05);border:1px dashed rgba(255,255,255,.28)}
.yd-drop__btn{border:0;padding:8px 14px;border-radius:999px;background:var(--ott);color:#1A140A;font-weight:700}
.yd-art-btn{border-radius:14px;background:rgba(255,255,255,.9)}
.yd-art-btn[aria-checked=true],.yd-sw[aria-checked=true]{box-shadow:0 0 0 2px #111,0 0 0 4px var(--ott)}
.yd-size{border-radius:999px;background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.18)}
.yd-size[aria-checked=true]{background:var(--ott);border-color:var(--ott);color:#1A140A}
.yd-name{border-radius:14px;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18)}
.yd-lens{padding:10px;border-radius:32px;background:rgba(255,255,255,.07);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.16)}
.yd-lens__in{border-radius:24px}
.yd-loupe{padding:5px;background:rgba(255,255,255,.12);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.25)}
@media (max-width:700px){.yd-lens{border-radius:24px;padding:8px}.yd-lens__in{border-radius:18px}}

/* posizione e dimensione della grafica (25/11) */
.yd-art{max-width:none;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
.yd-art.is-drag{cursor:grabbing;filter:drop-shadow(0 0 0 2px rgba(185,150,91,.9))}
.yd-pos{margin-top:16px;padding:14px 16px;border-radius:16px;background:#fff;border:1px solid rgba(0,0,0,.1);color:#141414}
.yd-pos__hint{margin:0 0 8px;font-size:13px;color:rgba(20,20,20,.62)}
.yd-range{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:12px;margin:2px 0;font-size:14px;font-weight:500}
.yd-range input{width:100%;height:32px;margin:0;accent-color:#141414;cursor:pointer}
.yd-pos__btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.yd-cfg .yd-pos-btn{min-height:40px;padding:0 18px;border-radius:999px;border:1px solid rgba(0,0,0,.18);background:#fff;color:#141414;font:600 14px/1 Montserrat,system-ui,sans-serif;cursor:pointer;transition:background .15s,color .15s}
.yd-cfg .yd-pos-btn:hover{background:#141414;color:#fff;border-color:#141414}
.yd-range input:focus-visible,.yd-cfg .yd-pos-btn:focus-visible{outline:2px solid #141414;outline-offset:3px}
@media (max-width:700px){.yd-range{grid-template-columns:86px 1fr}}
