.spw-plugin-root{--bg:#080c14;--panel:#0f1420;--panel2:#111827;--line:#1f2a44;--soft:#172033;--text:#e5edf8;--muted:#a7b4c7;--dim:#64748b;--blue:#2563eb;--blue2:#3b82f6;--green:#22c55e;--danger:#ef4444;--radius:16px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.spw-plugin-root, .spw-plugin-root *{box-sizing:border-box}.spw-plugin-root{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:var(--font)}.spw-plugin-root button,.spw-plugin-root input,.spw-plugin-root select,.spw-plugin-root textarea{font-family:inherit}.spw-app{min-height:100vh;background:radial-gradient(900px 500px at 86% 0,rgba(160,20,20,.14),transparent 65%),radial-gradient(760px 480px at 8% 0,rgba(37,99,235,.13),transparent 60%),var(--pageBg,var(--bg));overflow:hidden}.spw-app.spw-no-gradient{background:var(--pageBg,var(--bg))}.spw-skip{position:absolute;left:-999px;top:8px;background:#fff;color:#000;padding:10px 12px;border-radius:10px;z-index:999}.spw-skip:focus{left:8px}.spw-main{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;min-height:100vh;padding:18px}.spw-stage{display:flex;flex-direction:column;gap:14px;min-width:0}.spw-catbar{display:flex;gap:8px;overflow-x:auto;padding:2px 0 4px}.spw-cat{border:1px solid var(--line);background:#0c1322;color:var(--muted);padding:10px 14px;border-radius:999px;cursor:pointer;white-space:nowrap;font-weight:750;min-height:42px}.spw-cat[aria-selected=true]{background:linear-gradient(135deg,var(--blue),#1d4ed8);color:white;border-color:rgba(255,255,255,.15)}.spw-wheel-card{flex:1;display:flex;align-items:center;justify-content:center;min-height:560px;border:1px solid rgba(255,255,255,.05);border-radius:24px;background:rgba(4,8,16,.38);position:relative;overflow:hidden}.spw-wheel-card.spw-no-shadow canvas{filter:none}.spw-wheel-wrap{position:relative;width:min(92vh,860px,calc(100vw - 470px));aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}.spw-wheel-wrap canvas{width:100%;height:100%;display:block;border-radius:50%;filter:drop-shadow(0 12px 34px rgba(0,0,0,.68)) drop-shadow(0 0 34px rgba(37,99,235,.18));cursor:pointer}.spw-pointer{position:absolute;right:-18px;top:50%;transform:translateY(-50%);width:58px;height:38px;filter:drop-shadow(0 3px 5px rgba(0,0,0,.7));z-index:4}.spw-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;text-shadow:0 2px 8px #000;z-index:3}.spw-center strong{font-size:clamp(22px,3vw,40px)}.spw-center span{display:block;margin-top:4px;color:rgba(255,255,255,.8)}.spw-hidden-title .spw-center{display:none}.spw-panel{background:var(--panel);border:1px solid var(--line);border-radius:20px;display:flex;flex-direction:column;overflow:hidden;min-width:0;max-height:calc(100vh - 36px);box-shadow:0 16px 60px rgba(0,0,0,.35)}.spw-panel-head{padding:12px;border-bottom:1px solid var(--line);display:grid;gap:10px}.spw-toolbar{display:flex;gap:8px;align-items:center}.spw-control{width:100%;background:#0a0f1c;border:1px solid var(--line);border-radius:11px;color:var(--text);padding:11px 12px;font-size:14px;min-height:44px}.spw-btn{border:1px solid rgba(59,130,246,.35);background:linear-gradient(135deg,rgba(37,99,235,.9),rgba(29,78,216,.94));color:white;border-radius:11px;padding:10px 12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px}.spw-btn.secondary{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.11);color:var(--muted)}.spw-btn.danger{background:rgba(239,68,68,.16);border-color:rgba(239,68,68,.32);color:#fecaca}.spw-btn.full{width:100%}.spw-btn.icon{width:46px;flex:0 0 46px}.spw-tabs{display:flex;border-bottom:1px solid var(--line);background:rgba(0,0,0,.14)}.spw-tab{flex:1;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);font-weight:850;padding:14px 6px;cursor:pointer;min-height:48px}.spw-tab[aria-selected=true]{color:#fff;border-color:var(--blue2)}.spw-count{display:inline-flex;background:rgba(59,130,246,.18);color:#93c5fd;border-radius:999px;min-width:22px;height:22px;align-items:center;justify-content:center;font-size:12px;margin-left:6px}.spw-pane{display:none;flex:1;min-height:0;overflow:auto;padding:12px}.spw-pane.active{display:block}.spw-entry{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.065);border-radius:14px;margin-bottom:8px;padding:8px}.spw-flag{font-size:24px;width:32px;text-align:center;flex-shrink:0}.spw-color{width:31px;height:31px;border-radius:50%;border:2px solid rgba(255,255,255,.24);background:var(--c);padding:0;cursor:pointer;flex-shrink:0}.spw-name{flex:1;background:#0a0f1c;border:1px solid var(--line);border-radius:10px;color:var(--text);padding:10px;min-width:0;min-height:42px}.spw-icon{width:40px;height:40px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.045);color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}.spw-icon:hover{color:#fecaca;border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.12)}.spw-result{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:13px;margin-bottom:8px;background:rgba(255,255,255,.035)}.spw-num{width:26px;height:26px;border-radius:999px;background:var(--blue);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}.spw-setting{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:12px;margin-bottom:14px}.spw-setting label{color:var(--muted);font-weight:650}.spw-toggle{display:flex;gap:10px;align-items:center;margin:10px 0;color:var(--text);min-height:32px}.spw-toggle input{width:19px;height:19px}.spw-small{font-size:12px;color:var(--dim);line-height:1.55}.spw-dialog-back{position:fixed;inset:0;background:rgba(0,0,0,.73);backdrop-filter:blur(5px);z-index:30;display:none;align-items:center;justify-content:center;padding:18px}.spw-dialog-back.show{display:flex}.spw-dialog{width:min(860px,96vw);max-height:91vh;overflow:auto;background:linear-gradient(160deg,#141c2e,#0f1420);border:1px solid rgba(59,130,246,.26);border-radius:22px;box-shadow:0 28px 80px rgba(0,0,0,.82);padding:18px}.spw-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.spw-dialog-title{font-size:22px;font-weight:950}.spw-x{width:44px;height:44px;border-radius:11px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#fff;cursor:pointer}.spw-adv-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:14px}.spw-adv-tab{background:transparent;color:var(--muted);border:0;border-bottom:2px solid transparent;padding:13px 18px;font-weight:850;cursor:pointer}.spw-adv-tab[aria-selected=true]{color:#fff;border-color:#fff}.spw-theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.spw-theme{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);border-radius:12px;color:var(--text);padding:10px;text-align:left;cursor:pointer}.spw-theme[aria-pressed=true]{border-color:var(--blue2);box-shadow:0 0 0 2px rgba(59,130,246,.22)}.spw-theme-colors{display:flex;gap:4px;margin-top:8px}.spw-theme-colors span{width:18px;height:18px;border-radius:4px}.spw-sound-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.spw-winner{text-align:center}.spw-win-flag{font-size:76px;line-height:1.1}.spw-win-name{font-size:36px;font-weight:950;margin:10px 0 8px}.spw-win-sub{color:var(--muted);margin-bottom:18px}.spw-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.spw-confetti{position:fixed;inset:0;pointer-events:none;z-index:31;overflow:hidden}.spw-piece{position:absolute;top:-12px;width:8px;height:12px;border-radius:3px;animation:spwFall linear forwards}@keyframes spwFall{to{transform:translateY(110vh) rotate(720deg);opacity:0}}.spw-plugin-root button:focus-visible,.spw-plugin-root input:focus-visible,.spw-plugin-root select:focus-visible,.spw-plugin-root canvas:focus-visible{outline:3px solid rgba(59,130,246,.7);outline-offset:2px}(max-width:1050px){.spw-main{grid-template-columns:1fr}.spw-panel{max-height:none}.spw-wheel-card{min-height:520px}.spw-wheel-wrap{width:min(88vw,700px)}}(max-width:560px){.spw-main{padding:10px}.spw-wheel-card{min-height:360px}.spw-wheel-wrap{width:min(92vw,360px)}.spw-setting{grid-template-columns:1fr}.spw-toolbar{flex-wrap:wrap}.spw-btn{flex:1}.spw-dialog{padding:14px}.spw-adv-tab{padding:12px 8px}.spw-entry{gap:6px}.spw-name{padding:8px}}@media(prefers-reduced-motion:reduce){.spw-plugin-root *,.spw-plugin-root *::before,.spw-plugin-root *::after{animation:none!important;transition:none!important}.spw-wheel-wrap canvas{filter:none}}
/* === v3 professional polish fixes === */
.spw-btn.icon{width:56px;flex:0 0 56px;font-size:22px;border-radius:14px;min-height:56px}
#settingsBtn{font-size:0;position:relative}
#settingsBtn::before{content:'⚙';font-size:24px;line-height:1;display:block;filter:none}
.spw-center{max-width:min(52%,420px);text-shadow:0 2px 4px rgba(0,0,0,.65)}
.spw-center strong{display:block;font-size:clamp(18px,2.6vw,34px);font-weight:850;line-height:1.12;letter-spacing:-.02em;white-space:normal;overflow-wrap:anywhere;text-align:center}
.spw-center span{font-size:clamp(12px,1.25vw,18px);font-weight:500;text-shadow:0 1px 3px rgba(0,0,0,.55)}
.spw-entry{gap:9px;padding:9px 10px;border-radius:16px;min-height:68px;touch-action:manipulation}
.spw-drag{width:24px;height:44px;border:0;background:transparent;color:#70819b;cursor:grab;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:10px}
.spw-drag:hover{background:rgba(255,255,255,.045);color:#cbd5e1}.spw-drag:active{cursor:grabbing}.spw-entry.dragging{opacity:.45}.spw-entry.dragover{outline:2px solid rgba(59,130,246,.65);background:rgba(37,99,235,.12)}
.spw-color{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.10);box-shadow:0 2px 8px rgba(0,0,0,.35);overflow:hidden;background:transparent;padding:0}
.spw-color::-webkit-color-swatch-wrapper{padding:0}.spw-color::-webkit-color-swatch{border:0;border-radius:50%}.spw-color::-moz-color-swatch{border:0;border-radius:50%}
.spw-thumb{width:40px;height:40px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.16);box-shadow:0 2px 8px rgba(0,0,0,.35);flex-shrink:0;background:#0a0f1c;display:block}
.spw-thumb.empty{display:none}.spw-name{font-size:14px;font-weight:650;line-height:1.25;min-height:46px}
.spw-icon{width:44px;height:44px;border-radius:12px;font-size:16px}.spw-icon.spw-img-btn:hover{color:#93c5fd;border-color:rgba(59,130,246,.35);background:rgba(59,130,246,.12)}.spw-icon.spw-dup-btn:hover{color:#fde68a;border-color:rgba(234,179,8,.35);background:rgba(234,179,8,.10)}
.spw-wheel-wrap canvas{border-radius:50%;aspect-ratio:1/1}.spw-wheel-card{overflow:hidden}.spw-result-thumb{width:34px;height:34px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.16)}
.spw-dialog-back.show{align-items:center;justify-content:center}.spw-dialog{width:min(720px,94vw);padding:22px}.spw-dialog-title{text-align:left}.spw-winner{display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 6px 4px}.spw-win-flag{font-size:62px}.spw-win-img{width:88px;height:88px;border-radius:50%;object-fit:cover;border:3px solid rgba(59,130,246,.35);box-shadow:0 0 22px rgba(37,99,235,.25);margin-bottom:12px}.spw-win-name{max-width:100%;font-size:clamp(24px,4vw,42px);line-height:1.12;text-align:center;overflow-wrap:anywhere;margin:8px 0 8px}.spw-winner .spw-toolbar{justify-content:center;flex-wrap:wrap;width:100%;margin-top:14px}.spw-winner .spw-btn{flex:0 1 auto;min-width:132px}.spw-panel{scrollbar-color:rgba(255,255,255,.25) transparent}.spw-pane{scrollbar-color:rgba(255,255,255,.25) transparent}
@media(max-width:560px){.spw-center{max-width:62%}.spw-entry{gap:6px;padding:8px}.spw-drag{width:20px}.spw-thumb{width:34px;height:34px}.spw-icon{width:38px;height:38px}.spw-btn.icon{width:50px;flex-basis:50px;min-height:50px}.spw-win-name{font-size:26px}.spw-winner .spw-btn{width:100%}}

/* v6 icon/capsule polish */
.spw-catbar{gap:12px;padding:4px 0 10px;align-items:center}.spw-cat{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:999px;padding:12px 22px;min-height:52px;background:linear-gradient(180deg,rgba(17,27,46,.9),rgba(8,14,26,.96));border-color:rgba(95,126,174,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 10px 24px rgba(0,0,0,.16)}.spw-cat:hover{color:#eef6ff;border-color:rgba(100,147,220,.45);transform:translateY(-1px)}.spw-cat[aria-selected=true]{background:linear-gradient(135deg,#2f72ff,#2456d8);box-shadow:0 10px 26px rgba(37,99,235,.35),inset 0 1px 0 rgba(255,255,255,.16)}.spw-cat::before{font-size:19px;line-height:1;display:inline-block}.spw-btn{border-radius:16px;gap:9px}.spw-btn::before,.spw-tab::before{font-size:18px;line-height:1;display:inline-block}.spw-btn#settingsBtn{font-size:0;width:58px;flex:0 0 58px;border-radius:18px}.spw-tabs{padding:0 8px;gap:8px}.spw-tab{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:16px 16px 0 0}@media(max-width:560px){.spw-cat{padding:10px 14px;min-height:46px}.spw-tabs{gap:4px;padding:0 4px}.spw-tab{font-size:13px;gap:5px}.spw-btn#settingsBtn{width:52px;flex-basis:52px}}


/* === v8 Center Spin Hub + responsive segment content polish === */
.spw-wheel-wrap{width:min(90vh,820px,calc(100vw - 470px));}
.spw-center{width:clamp(88px,14.5%,138px);height:clamp(88px,14.5%,138px);max-width:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 34% 26%,#ffffff 0%,#eaf2fb 45%,#cbd8e7 100%);border:clamp(3px,.65vw,6px) solid rgba(255,255,255,.82);box-shadow:0 7px 0 rgba(55,43,113,.70),0 13px 26px rgba(0,0,0,.45),inset 0 2px 7px rgba(255,255,255,.98),inset 0 -8px 16px rgba(60,76,99,.18);text-shadow:none;pointer-events:none;z-index:5;}
.spw-center strong{display:block!important;font-size:clamp(18px,2.45vw,30px)!important;font-weight:950!important;line-height:1!important;letter-spacing:-.04em!important;color:#081225!important;text-align:center!important;white-space:nowrap!important;overflow:visible!important;text-shadow:0 1px 0 rgba(255,255,255,.85)!important;}
.spw-center span{display:none!important;}
.spw-hidden-title .spw-center{display:flex;}
.spw-wheel-wrap canvas{filter:drop-shadow(0 13px 34px rgba(0,0,0,.74)) drop-shadow(0 0 34px rgba(37,99,235,.22));}
@media(max-width:1050px){.spw-main{grid-template-columns:1fr}.spw-panel{max-height:none}.spw-wheel-card{min-height:520px}.spw-wheel-wrap{width:min(88vw,700px)}}
@media(max-width:560px){.spw-main{padding:10px}.spw-wheel-card{min-height:360px}.spw-wheel-wrap{width:min(92vw,390px)}.spw-center{width:clamp(72px,20%,96px);height:clamp(72px,20%,96px)}.spw-center strong{font-size:clamp(17px,5.2vw,24px)!important}}



/* === v9 professional SVG icon polish === */
.spw-ui-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;line-height:1;color:currentColor}.spw-ui-icon svg{width:100%;height:100%;display:block;stroke:currentColor;stroke-width:2.25;fill:none;stroke-linecap:round;stroke-linejoin:round}.spw-ui-icon svg .spw-fill{fill:currentColor;stroke:none}.spw-btn .spw-ui-icon{width:17px;height:17px}.spw-btn.full .spw-ui-icon{width:18px;height:18px}.spw-icon .spw-ui-icon{width:19px;height:19px}.spw-tab .spw-ui-icon{width:17px;height:17px}.spw-cat .spw-ui-icon{width:18px;height:18px}.spw-adv-tab .spw-ui-icon{width:17px;height:17px;margin-right:7px}.spw-x{display:inline-flex;align-items:center;justify-content:center}.spw-x .spw-ui-icon{width:19px;height:19px}.spw-btn,.spw-tab,.spw-cat,.spw-adv-tab{letter-spacing:-.01em}.spw-winner .spw-toolbar{gap:10px}.spw-winner .spw-btn{min-width:148px;border-radius:17px;padding:12px 16px}.spw-winner .spw-btn .spw-ui-icon{width:18px;height:18px}.spw-btn#settingsBtn{font-size:0}.spw-btn#settingsBtn .spw-ui-icon{width:22px;height:22px}.spw-btn::before,.spw-tab::before,.spw-cat::before,#settingsBtn::before{content:none!important;display:none!important}.spw-drag{font-size:0}.spw-drag::before{content:'';width:18px;height:26px;display:block;background:radial-gradient(circle,currentColor 1.7px,transparent 2px) 0 0/8px 8px;opacity:.9}.spw-dialog-title{display:flex;align-items:center;gap:10px}.spw-dialog-title::before{content:'';width:20px;height:20px;display:inline-block;border-radius:50%;background:radial-gradient(circle at 50% 50%,#fff 0 22%,transparent 23%),conic-gradient(#2563eb,#8b5cf6,#ec4899,#f59e0b,#22c55e,#2563eb);box-shadow:0 0 0 2px rgba(255,255,255,.08)}.spw-btn.secondary:hover{color:#e5edf8;border-color:rgba(148,163,184,.28);background:rgba(255,255,255,.07)}.spw-btn.danger:hover{background:rgba(239,68,68,.22);border-color:rgba(248,113,113,.42);color:#ffe4e6}@media(max-width:560px){.spw-winner .spw-btn{min-width:0}.spw-ui-icon{width:16px;height:16px}.spw-btn#settingsBtn .spw-ui-icon{width:20px;height:20px}}


/* === v10 real SVG icon polish: no emoji pseudo icons, preserve all functions === */
.spw-cat::before,.spw-btn::before,.spw-tab::before,#settingsBtn::before{content:none!important;display:none!important}
.spw-ui-icon{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.spw-cat-icon{width:34px;height:34px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(59,130,246,.16);color:#93c5fd;border:1px solid rgba(147,197,253,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.spw-cat[aria-selected=true] .spw-cat-icon{background:rgba(255,255,255,.18);color:#fff;border-color:rgba(255,255,255,.22)}
.spw-cat .spw-ui-icon{width:18px;height:18px}
.spw-btn .spw-ui-icon,.spw-tab .spw-ui-icon{width:17px;height:17px}
.spw-btn#settingsBtn{font-size:0}
.spw-btn#settingsBtn .spw-ui-icon{width:22px;height:22px}
.spw-icon{font-size:0}
.spw-icon .spw-ui-icon{width:19px;height:19px}
.spw-btn{white-space:nowrap}
.spw-winner .spw-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:154px}
.spw-dialog-title{display:flex;align-items:center;gap:10px}
.spw-dialog-title::before{content:'';width:20px;height:20px;display:inline-block;border-radius:50%;background:radial-gradient(circle at 50% 50%,#fff 0 22%,transparent 23%),conic-gradient(#2563eb,#8b5cf6,#ec4899,#f59e0b,#22c55e,#2563eb);box-shadow:0 0 0 2px rgba(255,255,255,.08)}
@media(max-width:560px){.spw-cat-icon{width:30px;height:30px}.spw-winner .spw-btn{min-width:0;width:100%}}

/* === v7 responsive layout fix: desktop = wheel left + panel right, tablet/mobile = tabs > wheel > panel === */
.spw-main{align-items:stretch}.spw-stage{order:1}.spw-panel{order:2}.spw-catbar{flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}.spw-catbar::-webkit-scrollbar{display:none}
@media (min-width:1101px){.spw-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,390px);gap:18px;min-height:100vh}.spw-stage{display:flex;flex-direction:column;min-width:0}.spw-wheel-card{flex:1;min-height:calc(100vh - 128px)}.spw-wheel-wrap{width:min(94vh,900px,calc(100vw - 470px))}.spw-panel{max-height:calc(100vh - 36px);position:sticky;top:18px}}
@media (max-width:1100px){.spw-app{overflow-x:hidden;overflow-y:auto}.spw-main{display:flex!important;flex-direction:column!important;gap:14px;min-height:100vh;padding:14px}.spw-stage{order:1;width:100%;display:flex;flex-direction:column;gap:12px}.spw-catbar{order:1;width:100%;padding:4px 0 8px;gap:10px}.spw-cat{min-height:48px;padding:11px 18px}.spw-wheel-card{order:2;width:100%;min-height:auto!important;height:auto;padding:16px;border-radius:22px}.spw-wheel-wrap{width:min(86vw,720px);max-width:100%;margin:0 auto}.spw-panel{order:2;width:100%;max-height:none!important;min-height:0;position:relative!important;top:auto!important;border-radius:20px}.spw-pane{max-height:none}}
@media (max-width:760px){.spw-main{padding:12px;gap:12px}.spw-catbar{gap:8px}.spw-cat{min-height:44px;padding:10px 14px;font-size:14px}.spw-cat::before{font-size:17px}.spw-wheel-card{padding:12px;border-radius:18px}.spw-wheel-wrap{width:min(92vw,560px)}.spw-pointer{width:48px;height:32px;right:-15px}.spw-toolbar{flex-wrap:wrap}.spw-toolbar .spw-btn{flex:1 1 96px}.spw-toolbar .spw-btn.icon{flex:0 0 56px}}
@media (max-width:560px){.spw-main{padding:10px}.spw-stage{gap:10px}.spw-catbar{padding-bottom:6px}.spw-cat{min-height:42px;padding:9px 13px;font-size:13px;gap:7px}.spw-wheel-card{padding:8px}.spw-wheel-wrap{width:min(94vw,430px)}.spw-center{max-width:58%}.spw-center strong{font-size:clamp(18px,7vw,30px)}.spw-center span{font-size:clamp(11px,4vw,16px)}.spw-panel-head{padding:10px}.spw-tabs{overflow-x:auto}.spw-tab{min-width:110px;padding:12px 6px}.spw-pane{padding:10px}}
@media (max-width:380px){.spw-wheel-wrap{width:min(94vw,340px)}.spw-pointer{width:42px;height:28px;right:-13px}}


/* === v9 professional SVG icon polish === */
.spw-ui-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;line-height:1;color:currentColor}.spw-ui-icon svg{width:100%;height:100%;display:block;stroke:currentColor;stroke-width:2.25;fill:none;stroke-linecap:round;stroke-linejoin:round}.spw-ui-icon svg .spw-fill{fill:currentColor;stroke:none}.spw-btn .spw-ui-icon{width:17px;height:17px}.spw-btn.full .spw-ui-icon{width:18px;height:18px}.spw-icon .spw-ui-icon{width:19px;height:19px}.spw-tab .spw-ui-icon{width:17px;height:17px}.spw-cat .spw-ui-icon{width:18px;height:18px}.spw-adv-tab .spw-ui-icon{width:17px;height:17px;margin-right:7px}.spw-x{display:inline-flex;align-items:center;justify-content:center}.spw-x .spw-ui-icon{width:19px;height:19px}.spw-btn,.spw-tab,.spw-cat,.spw-adv-tab{letter-spacing:-.01em}.spw-winner .spw-toolbar{gap:10px}.spw-winner .spw-btn{min-width:148px;border-radius:17px;padding:12px 16px}.spw-winner .spw-btn .spw-ui-icon{width:18px;height:18px}.spw-btn#settingsBtn{font-size:0}.spw-btn#settingsBtn .spw-ui-icon{width:22px;height:22px}.spw-btn::before,.spw-tab::before,.spw-cat::before,#settingsBtn::before{content:none!important;display:none!important}.spw-drag{font-size:0}.spw-drag::before{content:'';width:18px;height:26px;display:block;background:radial-gradient(circle,currentColor 1.7px,transparent 2px) 0 0/8px 8px;opacity:.9}.spw-dialog-title{display:flex;align-items:center;gap:10px}.spw-dialog-title::before{content:'';width:20px;height:20px;display:inline-block;border-radius:50%;background:radial-gradient(circle at 50% 50%,#fff 0 22%,transparent 23%),conic-gradient(#2563eb,#8b5cf6,#ec4899,#f59e0b,#22c55e,#2563eb);box-shadow:0 0 0 2px rgba(255,255,255,.08)}.spw-btn.secondary:hover{color:#e5edf8;border-color:rgba(148,163,184,.28);background:rgba(255,255,255,.07)}.spw-btn.danger:hover{background:rgba(239,68,68,.22);border-color:rgba(248,113,113,.42);color:#ffe4e6}@media(max-width:560px){.spw-winner .spw-btn{min-width:0}.spw-ui-icon{width:16px;height:16px}.spw-btn#settingsBtn .spw-ui-icon{width:20px;height:20px}}

/* Plugin compatibility fixes */
.spw-plugin-root img{max-width:100%;height:auto}
.spw-plugin-root canvas{max-width:100%}

/* === Wheel Of Names plugin v1.1 layout/control fixes === */
.spw-plugin-root{
  --spw-wheel-max:760px;
  --spw-panel-width:460px;
  --spw-content-scale:1;
  width:100%;
  max-width:100%;
  overflow:hidden;
  isolation:isolate;
  contain:layout paint;
}
.spw-plugin-root .spw-app{
  min-height:clamp(620px, 100vh, 980px);
}
@media (min-width:1101px){
  .spw-plugin-root .spw-main{
    grid-template-columns:minmax(0,1fr) minmax(420px,var(--spw-panel-width))!important;
    gap:20px!important;
  }
  .spw-plugin-root .spw-panel{
    width:var(--spw-panel-width)!important;
    max-width:var(--spw-panel-width)!important;
  }
  .spw-plugin-root .spw-wheel-card{
    min-height:calc(100vh - 136px)!important;
  }
  .spw-plugin-root .spw-wheel-wrap{
    width:min(82vh,var(--spw-wheel-max),calc(100vw - var(--spw-panel-width) - 140px))!important;
  }
}
.spw-plugin-root .spw-panel{
  min-width:min(100%,390px)!important;
  font-size:calc(14px * var(--spw-content-scale));
}
.spw-plugin-root .spw-tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px!important;
  padding:0 8px!important;
  align-items:stretch;
  overflow:visible!important;
}
.spw-plugin-root .spw-tab{
  min-width:0!important;
  width:100%;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:12px 8px!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow:visible!important;
  text-align:center!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  font-size:clamp(13px,calc(14px * var(--spw-content-scale)),16px)!important;
}
.spw-plugin-root .spw-tab .spw-count{
  flex:0 0 auto;
  margin-left:2px!important;
}
.spw-plugin-root .spw-tab .spw-ui-icon{
  flex:0 0 auto;
}
.spw-plugin-root .spw-panel-head,
.spw-plugin-root .spw-pane{
  padding:14px!important;
}
.spw-plugin-root .spw-toolbar{
  gap:9px!important;
}
.spw-plugin-root .spw-toolbar .spw-btn{
  flex:1 1 auto;
  min-width:0;
  padding-left:10px!important;
  padding-right:10px!important;
}
.spw-plugin-root .spw-toolbar .spw-btn.icon,
.spw-plugin-root .spw-toolbar #settingsBtn{
  flex:0 0 56px!important;
  width:56px!important;
}
.spw-plugin-root .spw-entry{
  min-height:64px;
  align-items:center!important;
}
.spw-plugin-root .spw-name{
  min-width:0!important;
  width:100%;
  overflow:visible;
  text-overflow:clip;
  font-size:clamp(13px,calc(14px * var(--spw-content-scale)),16px)!important;
}
.spw-plugin-root .spw-setting{
  grid-template-columns:minmax(128px,170px) minmax(0,1fr)!important;
  gap:12px!important;
}
.spw-plugin-root .spw-setting label,
.spw-plugin-root .spw-toggle{
  font-size:clamp(13px,calc(14px * var(--spw-content-scale)),16px)!important;
}
.spw-plugin-root input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(59,130,246,.95),rgba(147,197,253,.95));
  outline:none;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.35);
  padding:0!important;
}
.spw-plugin-root input[type="range"]::-webkit-slider-runnable-track{
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(59,130,246,.95),rgba(147,197,253,.95));
}
.spw-plugin-root input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  margin-top:-5px;
  border-radius:50%;
  border:2px solid #fff;
  background:#1687d9;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
  cursor:pointer;
}
.spw-plugin-root input[type="range"]::-moz-range-track{
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(59,130,246,.95),rgba(147,197,253,.95));
}
.spw-plugin-root input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid #fff;
  background:#1687d9;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
  cursor:pointer;
}
@media (max-width:1100px){
  .spw-plugin-root .spw-app{min-height:0!important;}
  .spw-plugin-root .spw-panel{width:100%!important;max-width:100%!important;}
  .spw-plugin-root .spw-wheel-wrap{width:min(84vw,var(--spw-wheel-max))!important;}
}
@media (max-width:760px){
  .spw-plugin-root .spw-tabs{gap:4px!important;padding:0 4px!important;}
  .spw-plugin-root .spw-tab{font-size:13px!important;padding:11px 5px!important;gap:5px!important;}
  .spw-plugin-root .spw-tab .spw-ui-icon{width:15px!important;height:15px!important;}
  .spw-plugin-root .spw-setting{grid-template-columns:1fr!important;gap:8px!important;}
}
@media (max-width:480px){
  .spw-plugin-root .spw-wheel-wrap{width:min(92vw,430px,var(--spw-wheel-max))!important;}
  .spw-plugin-root .spw-tab{font-size:12.5px!important;}
}

/* === v1.2 performance + alignment update === */
.spw-plugin-root{
  --spw-panel-width:500px;
  --spw-wheel-max:820px;
}
.spw-plugin-root .spw-main{
  overflow:hidden;
}
.spw-plugin-root .spw-catbar{
  position:relative;
  z-index:2;
  gap:10px!important;
  padding:2px 2px 10px!important;
  max-width:100%;
}
.spw-plugin-root .spw-cat{
  min-height:40px!important;
  padding:9px 16px!important;
  font-size:clamp(13px,1.05vw,15px)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
}
.spw-plugin-root .spw-cat-icon,
.spw-plugin-root .spw-cat-icon .spw-ui-icon{
  width:18px!important;
  height:18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.spw-plugin-root .spw-panel-head{
  gap:12px!important;
  background:linear-gradient(180deg,rgba(17,24,39,.97),rgba(13,19,31,.98))!important;
}
.spw-plugin-root .spw-control,
.spw-plugin-root .spw-name,
.spw-plugin-root input[type="text"],
.spw-plugin-root input[type="number"],
.spw-plugin-root select,
.spw-plugin-root textarea{
  background:#080d18!important;
  color:#e7edf8!important;
  border-color:#24314d!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 1px 1px rgba(0,0,0,.18)!important;
}
.spw-plugin-root .spw-control option{
  background:#ffffff!important;
  color:#111827!important;
}
.spw-plugin-root .spw-toolbar{
  display:grid!important;
  grid-template-columns:minmax(95px,1fr) minmax(105px,1fr) minmax(92px,1fr) 54px!important;
  gap:9px!important;
  align-items:stretch!important;
}
.spw-plugin-root .spw-toolbar .spw-btn,
.spw-plugin-root .spw-btn{
  min-height:44px!important;
  height:auto!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
  border-radius:13px!important;
  font-weight:850!important;
}
.spw-plugin-root .spw-toolbar .spw-btn.icon,
.spw-plugin-root .spw-toolbar #settingsBtn{
  width:54px!important;
  min-width:54px!important;
  flex-basis:54px!important;
  padding:0!important;
}
.spw-plugin-root .spw-btn .spw-ui-icon,
.spw-plugin-root .spw-tab .spw-ui-icon,
.spw-plugin-root .spw-icon .spw-ui-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  vertical-align:middle!important;
}
.spw-plugin-root .spw-tabs{
  padding:0 10px!important;
  gap:8px!important;
  min-height:52px!important;
}
.spw-plugin-root .spw-tab{
  min-height:52px!important;
  padding:10px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  font-size:14px!important;
  line-height:1.05!important;
}
.spw-plugin-root .spw-count{
  height:20px!important;
  min-width:20px!important;
  font-size:11px!important;
}
.spw-plugin-root .spw-pane{
  scrollbar-color:#566174 rgba(255,255,255,.05);
}
.spw-plugin-root .spw-entry{
  display:grid!important;
  grid-template-columns:28px 28px 34px 44px minmax(105px,1fr) 46px 46px 46px!important;
  gap:8px!important;
  min-height:70px!important;
  align-items:center!important;
}
.spw-plugin-root .spw-flag,
.spw-plugin-root .spw-color,
.spw-plugin-root .spw-thumb,
.spw-plugin-root .spw-name,
.spw-plugin-root .spw-icon,
.spw-plugin-root .spw-drag{
  align-self:center!important;
  justify-self:center!important;
}
.spw-plugin-root .spw-name{
  justify-self:stretch!important;
  height:44px!important;
  min-height:44px!important;
  padding:9px 12px!important;
  line-height:24px!important;
  font-size:15px!important;
}
.spw-plugin-root .spw-icon{
  width:44px!important;
  height:44px!important;
  border-radius:12px!important;
}
.spw-plugin-root .spw-thumb,
.spw-plugin-root .spw-thumb.empty{
  width:44px!important;
  height:44px!important;
  object-fit:cover!important;
}
.spw-plugin-root .spw-color{
  width:32px!important;
  height:32px!important;
}
.spw-plugin-root .spw-load-more{
  margin:8px 0!important;
  background:rgba(59,130,246,.14)!important;
  border-color:rgba(59,130,246,.34)!important;
  color:#cfe1ff!important;
}
@media (min-width:1101px){
  .spw-plugin-root .spw-main{
    grid-template-columns:minmax(0,1fr) minmax(455px,var(--spw-panel-width))!important;
  }
  .spw-plugin-root .spw-wheel-wrap{
    width:min(84vh,var(--spw-wheel-max),calc(100vw - var(--spw-panel-width) - 120px))!important;
  }
}
@media (max-width:1100px){
  .spw-plugin-root .spw-catbar{order:1!important}
  .spw-plugin-root .spw-wheel-card{order:2!important}
  .spw-plugin-root .spw-panel{order:2!important}
  .spw-plugin-root .spw-toolbar{grid-template-columns:repeat(3,minmax(92px,1fr)) 54px!important}
  .spw-plugin-root .spw-cat{font-size:14px!important;padding:9px 14px!important}
}
@media (max-width:680px){
  .spw-plugin-root .spw-toolbar{grid-template-columns:1fr 1fr 1fr 48px!important;gap:6px!important}
  .spw-plugin-root .spw-toolbar .spw-btn{font-size:13px!important;padding:8px 7px!important;gap:5px!important}
  .spw-plugin-root .spw-toolbar .spw-btn.icon,
  .spw-plugin-root .spw-toolbar #settingsBtn{width:48px!important;min-width:48px!important;flex-basis:48px!important}
  .spw-plugin-root .spw-entry{grid-template-columns:22px 22px 30px 38px minmax(80px,1fr) 40px 40px 40px!important;gap:6px!important;padding:7px!important}
  .spw-plugin-root .spw-name{height:40px!important;min-height:40px!important;font-size:13px!important;padding:7px 9px!important}
  .spw-plugin-root .spw-icon{width:40px!important;height:40px!important}
  .spw-plugin-root .spw-thumb,.spw-plugin-root .spw-thumb.empty{width:38px!important;height:38px!important}
  .spw-plugin-root .spw-tabs{gap:4px!important;padding:0 5px!important}
  .spw-plugin-root .spw-tab{font-size:12.5px!important;min-height:48px!important;gap:4px!important}
}
@media (max-width:460px){
  .spw-plugin-root .spw-entry{grid-template-columns:20px 26px minmax(96px,1fr) 38px 38px 38px!important}
  .spw-plugin-root .spw-flag,.spw-plugin-root .spw-thumb{display:none!important}
  .spw-plugin-root .spw-color{width:26px!important;height:26px!important}
  .spw-plugin-root .spw-toolbar .spw-btn span:not(.spw-ui-icon){display:none!important}
}


/* === v1.3 final polish: readable compact panel, exact half rim, 8 default segments support === */
.spw-plugin-root{
  --spw-panel-text:13.5px;
  --spw-panel-width:470px;
}
.spw-plugin-root .spw-panel{
  font-size:var(--spw-panel-text)!important;
}
.spw-plugin-root .spw-panel-head{
  padding:14px!important;
}
.spw-plugin-root .spw-control{
  min-height:42px!important;
  height:42px!important;
  font-size:14px!important;
  line-height:20px!important;
  padding:9px 12px!important;
  background:#080d18!important;
  color:#e7edf8!important;
  border:1px solid #263653!important;
}
.spw-plugin-root .spw-toolbar{
  grid-template-columns:minmax(90px,1fr) minmax(96px,1fr) minmax(82px,1fr) 48px!important;
  gap:9px!important;
}
.spw-plugin-root .spw-toolbar .spw-btn,
.spw-plugin-root .spw-btn{
  min-height:42px!important;
  height:42px!important;
  padding:8px 11px!important;
  font-size:14px!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  white-space:nowrap!important;
}
.spw-plugin-root .spw-toolbar .spw-btn.icon,
.spw-plugin-root .spw-toolbar #settingsBtn{
  width:48px!important;
  min-width:48px!important;
  flex:0 0 48px!important;
  padding:0!important;
}
.spw-plugin-root .spw-btn#settingsBtn .spw-ui-icon{width:21px!important;height:21px!important;}
.spw-plugin-root .spw-tabs{
  min-height:46px!important;
  padding:0 8px!important;
  gap:6px!important;
}
.spw-plugin-root .spw-tab{
  min-height:46px!important;
  padding:8px 6px!important;
  font-size:13.5px!important;
  line-height:1!important;
  align-items:center!important;
  justify-content:center!important;
}
.spw-plugin-root .spw-tab .spw-ui-icon{width:16px!important;height:16px!important;}
.spw-plugin-root .spw-count{height:19px!important;min-width:19px!important;font-size:10.5px!important;margin-left:4px!important;}
.spw-plugin-root .spw-pane{padding:12px!important;}
.spw-plugin-root .spw-entry{
  grid-template-columns:24px 22px 30px 40px minmax(72px,1fr) 40px 40px 40px!important;
  min-height:60px!important;
  padding:7px 9px!important;
  gap:7px!important;
  border-radius:14px!important;
  align-items:center!important;
}
.spw-plugin-root .spw-drag{width:24px!important;height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.spw-plugin-root .spw-drag::before{width:16px!important;height:24px!important;background-size:7px 7px!important;}
.spw-plugin-root .spw-name{
  height:40px!important;
  min-height:40px!important;
  padding:8px 12px!important;
  font-size:14px!important;
  line-height:22px!important;
  font-weight:700!important;
  border-radius:10px!important;
  background:#070d18!important;
  color:#edf4ff!important;
  border-color:#20304d!important;
}
.spw-plugin-root .spw-icon{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border-radius:11px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.spw-plugin-root .spw-icon .spw-ui-icon{width:18px!important;height:18px!important;}
.spw-plugin-root .spw-thumb,
.spw-plugin-root .spw-thumb.empty{width:40px!important;height:40px!important;border-radius:8px!important;}
.spw-plugin-root .spw-color{width:28px!important;height:28px!important;}
.spw-plugin-root .spw-flag{font-size:18px!important;width:22px!important;}
.spw-plugin-root .spw-load-more,
.spw-plugin-root #addEntry{
  height:40px!important;
  min-height:40px!important;
  font-size:13.5px!important;
  border-radius:12px!important;
  margin-top:8px!important;
}
.spw-plugin-root .spw-catbar{
  padding:0 2px 8px!important;
  gap:8px!important;
  position:relative!important;
  z-index:5!important;
}
.spw-plugin-root .spw-cat{
  min-height:38px!important;
  padding:8px 14px!important;
  font-size:13.5px!important;
  gap:7px!important;
}
.spw-plugin-root .spw-cat-icon{width:24px!important;height:24px!important;}
.spw-plugin-root .spw-cat-icon .spw-ui-icon{width:15px!important;height:15px!important;}
@media (min-width:1101px){
  .spw-plugin-root .spw-main{grid-template-columns:minmax(0,1fr) minmax(430px,var(--spw-panel-width))!important;}
  .spw-plugin-root .spw-wheel-wrap{width:min(84vh,var(--spw-wheel-max),calc(100vw - var(--spw-panel-width) - 108px))!important;}
}
@media (max-width:680px){
  .spw-plugin-root .spw-toolbar{grid-template-columns:1fr 1fr 1fr 44px!important;gap:6px!important;}
  .spw-plugin-root .spw-toolbar .spw-btn{font-size:12.5px!important;padding:7px 6px!important;gap:4px!important;}
  .spw-plugin-root .spw-toolbar .spw-btn.icon,.spw-plugin-root .spw-toolbar #settingsBtn{width:44px!important;min-width:44px!important;}
  .spw-plugin-root .spw-entry{grid-template-columns:20px 20px 26px 34px minmax(68px,1fr) 36px 36px 36px!important;gap:5px!important;padding:7px!important;min-height:54px!important;}
  .spw-plugin-root .spw-name{height:36px!important;min-height:36px!important;font-size:12.5px!important;line-height:18px!important;padding:7px 9px!important;}
  .spw-plugin-root .spw-icon{width:36px!important;height:36px!important;min-width:36px!important;}
  .spw-plugin-root .spw-thumb,.spw-plugin-root .spw-thumb.empty{width:34px!important;height:34px!important;}
  .spw-plugin-root .spw-color{width:25px!important;height:25px!important;}
}
@media (max-width:460px){
  .spw-plugin-root .spw-entry{grid-template-columns:20px 25px minmax(94px,1fr) 36px 36px 36px!important;}
}

/* === v1.4.1 precision fixes: icon-only settings, compact toolbar, full half-white wheel rim; removed slide panel button === */
.spw-plugin-root .spw-toolbar{
  grid-template-columns:minmax(82px,max-content) minmax(94px,max-content) minmax(78px,max-content) 46px!important;
  justify-content:stretch!important;
  gap:8px!important;
}
.spw-plugin-root .spw-toolbar .spw-btn{
  min-width:0!important;
  width:auto!important;
  max-width:100%!important;
  height:40px!important;
  min-height:40px!important;
  padding:7px 12px!important;
  font-size:13.25px!important;
  line-height:1!important;
  gap:6px!important;
  align-items:center!important;
  justify-content:center!important;
}
.spw-plugin-root .spw-toolbar #settingsBtn,
.spw-plugin-root .spw-toolbar .spw-btn.icon{
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  flex:0 0 46px!important;
  padding:0!important;
  font-size:0!important;
  overflow:hidden!important;
}
.spw-plugin-root #settingsBtn .spw-ui-icon{
  width:21px!important;
  height:21px!important;
  margin:0!important;
}
.spw-plugin-root .spw-btn .spw-ui-icon{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
}
.spw-plugin-root .spw-entry{
  grid-template-columns:24px 22px 30px 40px minmax(56px,1fr) 40px 40px 40px!important;
}
.spw-plugin-root .spw-name{
  font-size:13.25px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.spw-plugin-root .spw-cat{
  width:auto!important;
  min-width:auto!important;
  padding:8px 13px!important;
  white-space:nowrap!important;
}
.spw-plugin-root .spw-catbar{
  overflow-x:auto!important;
}
@media (min-width:1101px){
  .spw-plugin-root .spw-main{
    overflow:hidden!important;
  }
}
@media (max-width:680px){
  .spw-plugin-root .spw-toolbar{
    grid-template-columns:1fr 1fr 1fr 42px!important;
  }
  .spw-plugin-root .spw-toolbar .spw-btn{
    height:38px!important;
    min-height:38px!important;
    padding:6px 7px!important;
    font-size:12px!important;
  }
  .spw-plugin-root .spw-toolbar #settingsBtn,
  .spw-plugin-root .spw-toolbar .spw-btn.icon{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
  }
}


/* v1.4.2 winner popup responsive polish */
.spw-dialog-back.spw-winner-mode{padding:12px;align-items:center;justify-content:center;overflow:hidden}
.spw-dialog-back.spw-winner-mode .spw-dialog{width:min(420px,calc(100vw - 24px));max-height:min(520px,82vh);overflow:hidden;padding:14px 16px 16px;border-radius:18px;background:linear-gradient(160deg,#142038,#0f1728);box-shadow:0 18px 54px rgba(0,0,0,.76)}
.spw-dialog-back.spw-winner-mode .spw-dialog-head{margin-bottom:6px}
.spw-dialog-back.spw-winner-mode .spw-dialog-title{font-size:18px;line-height:1.25}
.spw-dialog-back.spw-winner-mode .spw-x{width:38px;height:38px;border-radius:10px;background:#ef3347;border-color:#ef3347;color:#fff;flex:0 0 38px}
.spw-dialog-back.spw-winner-mode .spw-winner{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.spw-dialog-back.spw-winner-mode .spw-win-flag{font-size:48px;line-height:1;margin:2px 0}
.spw-dialog-back.spw-winner-mode .spw-win-img{width:76px;height:76px;object-fit:cover;border-radius:18px;border:1px solid rgba(255,255,255,.16)}
.spw-dialog-back.spw-winner-mode .spw-win-name{font-size:24px;line-height:1.15;font-weight:950;margin:2px 0;max-width:100%;overflow-wrap:anywhere}
.spw-dialog-back.spw-winner-mode .spw-win-sub{font-size:13px;line-height:1.25;margin:0 0 6px;color:var(--muted)}
.spw-dialog-back.spw-winner-mode .spw-win-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:4px}
.spw-dialog-back.spw-winner-mode .spw-win-actions .spw-btn{min-height:38px;height:auto;padding:8px 7px;border-radius:10px;font-size:12px;line-height:1.15;white-space:normal;gap:5px}
.spw-dialog-back.spw-winner-mode .spw-win-actions .spw-ui-icon{width:15px;height:15px;flex:0 0 15px}
@media (max-width:560px){
  .spw-dialog-back.spw-winner-mode{padding:10px}
  .spw-dialog-back.spw-winner-mode .spw-dialog{width:min(330px,calc(100vw - 20px));max-height:78vh;padding:12px;border-radius:17px}
  .spw-dialog-back.spw-winner-mode .spw-dialog-title{font-size:17px}
  .spw-dialog-back.spw-winner-mode .spw-x{width:36px;height:36px;flex-basis:36px}
  .spw-dialog-back.spw-winner-mode .spw-win-flag{font-size:42px}
  .spw-dialog-back.spw-winner-mode .spw-win-img{width:66px;height:66px}
  .spw-dialog-back.spw-winner-mode .spw-win-name{font-size:22px}
  .spw-dialog-back.spw-winner-mode .spw-win-actions{grid-template-columns:1fr;gap:6px}
  .spw-dialog-back.spw-winner-mode .spw-win-actions .spw-btn{width:100%;min-height:36px;font-size:12px;padding:8px 10px}
}
@media (max-height:520px){
  .spw-dialog-back.spw-winner-mode .spw-dialog{max-height:90vh;padding:10px 12px}
  .spw-dialog-back.spw-winner-mode .spw-win-flag{font-size:36px}
  .spw-dialog-back.spw-winner-mode .spw-win-img{width:58px;height:58px}
  .spw-dialog-back.spw-winner-mode .spw-win-name{font-size:20px}
}

/* v1.4.3 winner popup button alignment final fix */
.spw-dialog-back.spw-winner-mode{
  padding:12px!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.spw-dialog-back.spw-winner-mode .spw-dialog{
  width:min(420px,calc(100vw - 24px))!important;
  max-height:82vh!important;
  overflow:auto!important;
  padding:14px 16px 16px!important;
  border-radius:18px!important;
}
.spw-dialog-back.spw-winner-mode .spw-winner{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
}
.spw-dialog-back.spw-winner-mode .spw-win-actions,
.spw-dialog-back.spw-winner-mode .spw-winner .spw-toolbar.spw-win-actions{
  width:100%!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  margin-top:12px!important;
  align-items:stretch!important;
  justify-content:stretch!important;
}
.spw-dialog-back.spw-winner-mode .spw-win-actions .spw-btn,
.spw-dialog-back.spw-winner-mode .spw-winner .spw-toolbar.spw-win-actions .spw-btn{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  flex:1 1 auto!important;
  height:40px!important;
  min-height:40px!important;
  padding:8px 12px!important;
  border-radius:10px!important;
  font-size:12.5px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
}
.spw-dialog-back.spw-winner-mode .spw-win-actions .spw-ui-icon{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
  margin:0!important;
}
@media (min-width:420px){
  .spw-dialog-back.spw-winner-mode .spw-win-actions,
  .spw-dialog-back.spw-winner-mode .spw-winner .spw-toolbar.spw-win-actions{
    grid-template-columns:1fr 1fr!important;
  }
  .spw-dialog-back.spw-winner-mode .spw-win-actions #closeWin{
    grid-column:1 / -1!important;
  }
}
@media (max-width:360px){
  .spw-dialog-back.spw-winner-mode .spw-dialog{width:calc(100vw - 20px)!important;padding:12px!important;}
  .spw-dialog-back.spw-winner-mode .spw-win-actions .spw-btn{height:38px!important;font-size:12px!important;padding:8px 9px!important;}
}
