.wpwheel{--ww-bg:#fff;--ww-card:#fff;--ww-subtle:#f4f6ff;--ww-text:#17233f;--ww-muted:#64748b;--ww-border:#dfe5f1;--ww-accent:#5046c9;--ww-accent-soft:#efedff;--ww-btn:#f0f4fb;--ww-btn-text:#253a68;box-sizing:border-box;color:var(--ww-text);background:var(--ww-bg);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;width:100%;max-width:1250px;margin:0 auto;padding:12px;border-radius:16px;color-scheme:light}
.wpwheel[data-mode=navy]{--ww-bg:#14253c;--ww-card:#203754;--ww-subtle:#1a314d;--ww-text:#f0f6ff;--ww-muted:#bed0e8;--ww-border:#385271;--ww-accent:#4d80ec;--ww-accent-soft:#294572;--ww-btn:#2c476a;--ww-btn-text:#eaf2ff;color-scheme:dark}
.wpwheel[data-mode=purple]{--ww-bg:#1c1e3a;--ww-card:#2b2e51;--ww-subtle:#252847;--ww-text:#f7f4ff;--ww-muted:#d0cbe8;--ww-border:#47456c;--ww-accent:#7867e9;--ww-accent-soft:#3d376f;--ww-btn:#39375e;--ww-btn-text:#efeaff;color-scheme:dark}
.wpwheel *{box-sizing:border-box}.wpwheel button,.wpwheel select,.wpwheel textarea,.wpwheel input{font:inherit}.wpwheel button{cursor:pointer;min-height:44px;border:1px solid var(--ww-border);border-radius:11px;background:var(--ww-btn);padding:9px 12px;color:var(--ww-btn-text);touch-action:manipulation;transition:background .16s,transform .16s}.wpwheel button:hover:not(:disabled){filter:brightness(.95)}.wpwheel button:active:not(:disabled){transform:scale(.985)}.wpwheel button:focus-visible,.wpwheel canvas:focus-visible,.wpwheel input:focus-visible,.wpwheel textarea:focus-visible,.wpwheel select:focus-visible{outline:3px solid #a5b4fc;outline-offset:2px}.wpwheel button:disabled{opacity:.5;cursor:not-allowed}
.wpwheel__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.wpwheel__top h2{margin:0;font-size:clamp(21px,3vw,30px);color:var(--ww-text);line-height:1.25}.wpwheel__hint,.wpwheel__note{color:var(--ww-muted);font-size:13px}.wpwheel__top-actions{display:flex;align-items:center;gap:8px}.wpwheel__display-label{font-size:13px;font-weight:700}.wpwheel__layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px}.wpwheel__stage,.wpwheel__panel{min-width:0;border:1px solid var(--ww-border);border-radius:18px;padding:16px;background:var(--ww-card)}.wpwheel__stage{display:flex;align-items:center;flex-direction:column;gap:12px}.wpwheel__canvas-wrap{position:relative;width:100%;max-width:540px;aspect-ratio:1}.wpwheel__canvas{width:100%;height:100%;display:block;cursor:pointer;touch-action:manipulation}.wpwheel__pointer{pointer-events:none;position:absolute;top:0;left:50%;transform:translateX(-50%);width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:29px solid var(--ww-text);filter:drop-shadow(0 2px 2px #0005)}.wpwheel .wpwheel__primary{background:var(--ww-accent);color:white;border:0;font-weight:800}.wpwheel__spin{width:min(100%,360px);font-size:19px;min-height:54px}.wpwheel__result{font-weight:700;text-align:center;min-height:28px;overflow-wrap:anywhere}.wpwheel__quick,.wpwheel__actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}.wpwheel__quick{justify-content:center}.wpwheel__quick button,.wpwheel__actions button{flex:1 1 auto;font-size:13px;font-weight:650}.wpwheel__quick [data-act=share],.wpwheel__quick [data-act=embed]{background:var(--ww-accent-soft);color:var(--ww-text)}.wpwheel__name-field{display:grid;gap:6px;margin-bottom:15px}.wpwheel__name-field label{font-weight:700;font-size:14px}.wpwheel__name-input{min-width:0;width:100%;min-height:46px;padding:10px 12px;background:var(--ww-bg);color:var(--ww-text);border:1px solid var(--ww-border);border-radius:10px;font-size:16px}.wpwheel__tabs{display:flex;gap:5px;border-bottom:1px solid var(--ww-border);margin-bottom:14px}.wpwheel__tabs button{flex:1;border:0;border-radius:9px 9px 0 0;background:transparent;white-space:nowrap}.wpwheel__tabs button.is-active{color:var(--ww-text);background:var(--ww-accent-soft);font-weight:800}.wpwheel__tab{display:flex;flex-direction:column;gap:12px}.wpwheel__tab[hidden],.wpwheel__weights[hidden]{display:none!important}.wpwheel__tab label{font-weight:650;font-size:14px}.wpwheel__input{width:100%;min-height:215px;border:1px solid var(--ww-border);border-radius:10px;padding:12px;resize:vertical;line-height:1.6;font-size:16px;color:var(--ww-text);background:var(--ww-bg)}.wpwheel__row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.wpwheel__row .wpwheel__check{display:flex;align-items:center;gap:7px;font-weight:450}.wpwheel input[type=checkbox]{width:19px;height:19px;accent-color:var(--ww-accent)}.wpwheel select,.wpwheel input[type=file]{max-width:100%;min-height:44px;border:1px solid var(--ww-border);border-radius:9px;padding:9px 10px;background:var(--ww-bg);color:var(--ww-text)}.wpwheel__presets{border-top:1px solid var(--ww-border);padding-top:12px}.wpwheel__presets strong{display:block;margin-bottom:10px}.wpwheel__history{max-height:320px;overflow:auto}.wpwheel__history ol{padding-left:22px;margin:4px 0}.wpwheel__history li{padding:9px 0;border-bottom:1px solid var(--ww-border);overflow-wrap:anywhere}.wpwheel__history-empty{color:var(--ww-muted)}.wpwheel__embed-credit{padding:12px 0 4px;text-align:center;font-size:13px;color:var(--ww-muted)}.wpwheel__embed-credit a{color:var(--ww-accent);font-weight:750;text-decoration:underline}
.wpwheel__dialog,.wpwheel__winner-dialog{background:var(--ww-card);color:var(--ww-text);border:1px solid var(--ww-border);border-radius:18px;padding:0;width:min(92vw,520px);max-width:520px;max-height:min(88dvh,760px);overflow:auto;box-shadow:0 24px 72px #0004}.wpwheel__dialog::backdrop,.wpwheel__winner-dialog::backdrop{background:rgba(12,20,42,.7)}.wpwheel__dialog-inner,.wpwheel__winner-inner{padding:clamp(16px,4vw,26px);display:grid;gap:15px}.wpwheel__dialog h3,.wpwheel__winner-dialog h3{margin:0;color:var(--ww-text);font-size:22px}.wpwheel__dialog-content{overflow-wrap:anywhere;display:grid;gap:12px}.wpwheel__dialog-content textarea{width:100%;min-height:100px;color:var(--ww-text);background:var(--ww-bg);border:1px solid var(--ww-border);border-radius:10px;padding:12px;font-size:14px}.wpwheel__dialog-content label{font-weight:600;display:flex;gap:8px;align-items:center}.wpwheel__dialog-content button{width:100%;background:var(--ww-accent-soft);color:var(--ww-text)}.wpwheel__dialog-content select{width:100%}.wpwheel__dialog-actions{text-align:right}.wpwheel__dialog-close{min-width:90px}.wpwheel__winner-dialog{text-align:center}.wpwheel__trophy{font-size:38px}.wpwheel__winner-name{font-size:clamp(24px,5vw,39px);font-weight:850;line-height:1.3;overflow-wrap:anywhere;color:var(--ww-accent)}.wpwheel__winner-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wpwheel__winner-actions button{min-height:54px;font-size:15px;font-weight:700}
.wpwheel:fullscreen{max-width:none;min-height:100%;background:var(--ww-bg);overflow:auto;padding:18px}.wpwheel:fullscreen .wpwheel__layout{max-width:1350px;margin:auto}.wpwheel-embed-body{margin:0;padding:0;background:transparent}.wpwheel-embed-body .wpwheel{padding:8px;max-width:none}.wpwheel-embed-body .wpwheel__stage,.wpwheel-embed-body .wpwheel__panel{padding:12px}
@media(max-width:760px){.wpwheel{padding:5px}.wpwheel__layout{grid-template-columns:minmax(0,1fr);gap:12px}.wpwheel__stage,.wpwheel__panel{padding:12px;border-radius:14px}.wpwheel__canvas-wrap{max-width:min(100%,460px)}.wpwheel__quick button{flex:1 1 calc(50% - 8px)}.wpwheel__top h2{font-size:21px}.wpwheel__input{min-height:185px}.wpwheel__tabs button{font-size:14px;padding:9px 5px}.wpwheel__dialog,.wpwheel__winner-dialog{max-width:calc(100vw - 24px)}.wpwheel__winner-actions{grid-template-columns:1fr 1fr}}
@media(max-width:360px){.wpwheel__winner-actions{grid-template-columns:1fr}.wpwheel__top-actions{width:100%;justify-content:space-between}.wpwheel__tab .wpwheel__actions button{flex:1 1 44%}}@media(prefers-reduced-motion:reduce){.wpwheel *{scroll-behavior:auto!important;transition:none!important}}

/* 1.2: three accessible winner actions, touch-first layout */
.wpwheel__winner-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.wpwheel__winner-actions .wpwheel__winner-close{background:var(--ww-subtle);color:var(--ww-text)}
@media(max-width:600px){.wpwheel__winner-actions{grid-template-columns:1fr 1fr}.wpwheel__winner-actions .wpwheel__winner-close{grid-column:1/-1}.wpwheel__winner-actions button{min-height:48px;padding:10px 5px;font-size:14px}}
@media(max-width:350px){.wpwheel__winner-actions{grid-template-columns:1fr}.wpwheel__winner-actions .wpwheel__winner-close{grid-column:auto}}

/* v1.3: Mobile-first quantity allocation table */
.wpwheel__quantity-toggle{border:1px solid var(--ww-border);border-radius:12px;padding:12px;background:var(--ww-subtle)}
.wpwheel__quantity-toggle p{margin:6px 0 0}.wpwheel__quantity[hidden]{display:none!important}
.wpwheel__quantity{display:grid;gap:10px;border:1px solid var(--ww-border);border-radius:12px;padding:12px}
.wpwheel__quantity-table-head,.wpwheel__quantity-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(105px,145px) 44px;gap:7px;align-items:center}
.wpwheel__quantity-table-head{font-size:12px;font-weight:750;color:var(--ww-muted)}
.wpwheel__quantity-table-head span:nth-child(2){grid-column:2/4}
.wpwheel__quantity-row input{width:100%;min-width:0;min-height:44px;font-size:16px;padding:8px;border-radius:9px;background:var(--ww-bg);color:var(--ww-text);border:1px solid var(--ww-border)}
.wpwheel__quantity-row{position:relative;padding-bottom:19px;margin-bottom:2px}
.wpwheel__quantity-row .wpwheel__quantity-remaining{position:absolute;right:51px;bottom:0;font-size:11px;color:var(--ww-muted)}
.wpwheel__quantity-delete{padding:0!important;font-size:20px!important}
.wpwheel__quantity-add{background:var(--ww-accent-soft)!important;color:var(--ww-text)!important}
.wpwheel__quantity-summary{font-weight:750;padding:11px;border-radius:9px;background:var(--ww-accent-soft);line-height:1.5}
.wpwheel__quantity-note{font-size:13px;color:var(--ww-muted);margin:0}
@media(max-width:420px){.wpwheel__quantity{padding:8px}.wpwheel__quantity-table-head,.wpwheel__quantity-row{grid-template-columns:minmax(0,1fr) 95px 40px;gap:5px}.wpwheel__quantity-row input{padding:6px}.wpwheel__quantity-row .wpwheel__quantity-remaining{right:45px}}

/* v2.0: configurable feature gating and restore modal */
.wpwheel .wpwheel__feature-hidden,.wpwheel .wpwheel__top-actions[hidden],.wpwheel .wpwheel__quantity-toggle[hidden],.wpwheel .wpwheel__presets[hidden]{display:none!important}
.wpwheel__hint:empty{display:none}
.wpwheel__restore-dialog{background:var(--ww-card);color:var(--ww-text);border:1px solid var(--ww-border);border-radius:18px;padding:0;width:min(92vw,480px);max-height:86dvh;overflow:auto;box-shadow:0 24px 72px #0005}
.wpwheel__restore-dialog::backdrop{background:rgba(12,20,42,.74)}
.wpwheel__restore-dialog h3{margin:0;font-size:clamp(19px,4vw,24px);color:var(--ww-text)}
.wpwheel__restore-dialog p{margin:0;line-height:1.6}
.wpwheel__restore-info{background:var(--ww-subtle);border-radius:10px;padding:13px;font-weight:650;overflow-wrap:anywhere}
.wpwheel__restore-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wpwheel__restore-actions button{min-height:48px;font-weight:750}
@media(max-width:370px){.wpwheel__restore-actions{grid-template-columns:1fr}}


/* v2.1: Be Vietnam Pro typography, radial labels and larger wheel-first layout */
.wpwheel{font-family:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.wpwheel__layout{grid-template-columns:minmax(0,1.72fr) minmax(320px,.94fr);gap:14px;align-items:start}
.wpwheel__stage{padding:12px;gap:10px}
.wpwheel__panel{padding:12px}
.wpwheel__canvas-wrap{max-width:700px}
.wpwheel__top h2,.wpwheel__tab,.wpwheel__panel,.wpwheel__spin,.wpwheel__result,.wpwheel__dialog,.wpwheel__winner-dialog{font-family:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.wpwheel__tabs{gap:3px}
.wpwheel__tabs button{padding:8px 5px;font-size:13px}
.wpwheel__input{min-height:190px}
@media(max-width:900px){.wpwheel__layout{grid-template-columns:minmax(0,1.35fr) minmax(290px,.9fr);gap:10px}.wpwheel__stage,.wpwheel__panel{padding:10px}}
@media(max-width:760px){.wpwheel__layout{grid-template-columns:minmax(0,1fr);gap:12px}.wpwheel__stage{padding:8px}.wpwheel__panel{padding:12px}.wpwheel__canvas-wrap{max-width:min(100%,620px)}.wpwheel__tabs button{font-size:13px;padding:10px 4px}.wpwheel__input{min-height:180px}}
@media(max-width:380px){.wpwheel__tabs button{font-size:11px;padding:9px 2px}.wpwheel__top h2{font-size:20px}}
