:root{font-family:Tahoma,"Segoe UI",Arial,sans-serif;color:#f5fbff;font-synthesis:none;color-scheme:normal}*{box-sizing:border-box}html,body{margin:0;background:transparent;min-height:100%}body{padding:10px}[hidden]{display:none!important}h1,h2,p,ol{margin:0}.wheel-overlay{width:min(100%,500px);position:relative;line-height:1.4;text-shadow:-1px 0 #081327,1px 0 #081327,0 -1px #081327,0 1px #081327,0 2px 4px #000b}.demo-label{text-align:center;color:#ffdf73;font-size:11px;font-weight:800;padding:5px 8px 9px}.wheel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 12px 4px}.eyebrow{font:800 9px/1.5 "Segoe UI",Arial,sans-serif;direction:ltr;text-align:right;letter-spacing:2px;color:#9cecef}.eyebrow span{color:#ff4385}h1{font-size:29px;line-height:1.2;letter-spacing:-.7px;color:#fff;font-weight:900}.wheel-status{flex:none;max-width:132px;color:#c5d7e8;font-size:11px;font-weight:800;text-align:center;border:1px solid #b5d8ed66;border-radius:20px;padding:5px 9px}.wheel-status[data-state=open]{color:#4afbe0;border-color:#4afbe088}.wheel-status[data-state=closed]{color:#ffd469;border-color:#ffd46988}.wheel-status[data-state=drawn]{color:#ff9bd1;border-color:#ff9bd188}.wheel-status[data-state=error]{color:#ffb6ae;border-color:#ffb6ae88}.wheel-rule{padding:5px 12px;text-align:center;color:#6ffff2;font-size:18px;font-weight:900;line-height:1.5}.wheel-stats{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 17px;padding:2px 7px 4px;color:#d8e8f4;font-size:11px}.wheel-stats strong{color:#ffd95f;font-size:16px;font-weight:900;font-variant-numeric:tabular-nums}.wheel-stats>span:last-child{font-size:10px;color:#c4dcf0}.wheel-stage{width:min(100%,370px);aspect-ratio:1;position:relative;margin:4px auto 6px;isolation:isolate}.wheel-stage canvas{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 4px #08132790);transition:opacity .35s ease}.wheel-pointer{position:absolute;z-index:3;top:-3px;left:calc(50% - 12px);width:24px;height:28px;clip-path:polygon(0 0,100% 0,50% 100%);background:#fff4b9;filter:drop-shadow(0 2px 2px #000);pointer-events:none}.wheel-hub{position:absolute;inset:35% 35%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.15;pointer-events:none}.wheel-hub>span{color:#c6f9ff;font-size:10px;white-space:nowrap}.wheel-hub strong{color:#fff5a4;font:900 29px/1.25 "Segoe UI",Tahoma,sans-serif;font-variant-numeric:tabular-nums;max-width:100%;overflow:hidden;text-overflow:ellipsis}.wheel-hub>span:last-child{font-size:8px;color:#d1e3f4}.spin-caption{position:absolute;z-index:4;inset:auto 0 6%;text-align:center;font-size:15px;font-weight:900;color:#fff2aa}.wheel-legend{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 15px;padding:3px 15px}.wheel-legend li{--segment-color:#25f4ee;display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;line-height:1.45}.legend-dot{width:8px;height:8px;flex:none;border-radius:50%;background:var(--segment-color);box-shadow:0 0 0 1px #09152f88}.legend-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#effcff;font-size:14px;font-weight:800;unicode-bidi:plaintext}.legend-count{flex:none;margin-inline-start:auto;color:var(--segment-color);font-weight:900;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.wheel-legend [data-color="0"]{--segment-color:#25f4ee}.wheel-legend [data-color="1"]{--segment-color:#ff5796}.wheel-legend [data-color="2"]{--segment-color:#ffd457}.wheel-legend [data-color="3"]{--segment-color:#ae88ff}.wheel-legend [data-color="4"]{--segment-color:#a5f565}.wheel-legend [data-color="5"]{--segment-color:#ff9859}.wheel-legend [data-color="6"]{--segment-color:#67b5ff}.wheel-legend [data-color="7"]{--segment-color:#ef88eb}.group-note{padding:4px 14px 1px;font-size:9px;color:#cde7f7;text-align:center;line-height:1.5}.empty-message{padding:5px 18px;text-align:center;font-size:13px;color:#daf7ff;font-weight:700;line-height:1.7}.wheel-message{padding:7px 14px;color:#ffd3a2;font-size:11px;line-height:1.6;text-align:center}.wheel-overlay footer{text-align:center;font-size:9px;line-height:1.6;color:#c6dbed;padding:5px 12px}.winner-result{position:absolute;z-index:5;inset:16% 8% auto;text-align:center;pointer-events:none;animation:winner-in .45s cubic-bezier(.15,.85,.2,1) both}.winner-star{display:block;color:#ffe073;font-size:45px;line-height:1;filter:drop-shadow(0 0 12px #ffd45799)}.winner-caption{color:#95fff4;font-size:16px;font-weight:900;line-height:1.5;margin-top:4px}.winner-result strong{display:block;color:#fff1a8;font-size:35px;font-weight:900;line-height:1.3;overflow-wrap:anywhere;unicode-bidi:plaintext;margin:4px 0;text-shadow:-1px 0 #192035,1px 0 #192035,0 -1px #192035,0 1px #192035,0 3px 9px #000}.winner-result>span:last-of-type{display:block;color:#c8f4ff;font:12px/1.4 "Segoe UI",Tahoma,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.winner-result>p:last-child{color:#ffe7a3;font-size:13px;font-weight:800;margin-top:7px}.wheel-stage[data-state=drawn] canvas{opacity:.25}.wheel-stage[data-state=drawn] .wheel-pointer{opacity:.65}.wheel-stage[data-state=limited] canvas{opacity:.3}.wheel-stage[data-state=spinning] .wheel-hub strong{color:#fff}.wheel-stage[data-state=spinning] .wheel-pointer{background:#fff}.demo-controls{margin-top:15px;padding:15px;width:min(100%,500px);border:1px solid #9fc9dd;border-radius:14px;background:#f0f8fd;color:#193954;font-size:13px;line-height:1.6}.demo-controls h2{font-size:18px;margin-bottom:10px}.demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.demo-grid label{display:grid;gap:4px;font-weight:700}.demo-controls input,.demo-controls select{width:100%;font:inherit;background:#fff;color:#193954;border:1px solid #97bacd;border-radius:8px;padding:7px;min-height:38px}.demo-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.demo-controls button{border:1px solid #187c94;background:#087d8b;color:white;border-radius:8px;padding:8px 11px;font:700 12px/1.4 Tahoma,"Segoe UI",sans-serif;cursor:pointer}.demo-controls #demoSpin{background:#8a315e;border-color:#8a315e}.demo-controls button:disabled{opacity:.45;cursor:default}.demo-controls :is(button,input,select):focus-visible{outline:3px solid #e8b32e;outline-offset:2px}.demo-controls>p{margin-top:9px;font-size:11px}.wheel-overlay[data-connection=stale] .wheel-status{color:#ffc2a5;border-color:#ffc2a588}@keyframes winner-in{from{opacity:0;transform:translateY(12px) scale(.88)}to{opacity:1;transform:none}}@media(max-width:380px){body{padding:8px}.wheel-header{padding-inline:6px;gap:6px}h1{font-size:25px}.wheel-status{font-size:9px;max-width:108px;padding:5px 7px}.wheel-rule{font-size:16px;padding-inline:4px}.wheel-stats{gap:5px 10px;font-size:10px}.wheel-stats strong{font-size:14px}.wheel-stage{margin-top:5px}.wheel-hub strong{font-size:24px}.wheel-hub>span{font-size:9px}.wheel-hub>span:last-child{font-size:7px}.wheel-legend{padding-inline:6px;gap:5px 9px}.legend-name{font-size:12px}.legend-count{font-size:12px}.winner-result{inset:14% 7% auto}.winner-result strong{font-size:29px}.winner-star{font-size:36px}.winner-caption{font-size:14px}.winner-result>p:last-child{font-size:11px}.spin-caption{font-size:12px}.demo-grid{grid-template-columns:1fr}.group-note{font-size:8px}.wheel-overlay footer{font-size:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Saved winners stay visible while every later draw uses the remaining pool. */
.legend-caption{text-align:center;color:#b8cada;font-size:10px;font-weight:800;padding:1px 12px 3px}.winner-history{margin:7px 14px 3px;padding-top:7px;border-top:1px solid #b5d8ed55}.history-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#afcce0;font-size:10px;line-height:1.5}.history-heading strong{color:#ffdb85;white-space:nowrap}.winner-history ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;list-style:none;padding:6px 0 0}.history-person{display:flex;align-items:center;gap:5px;min-width:0}.history-rank{flex:none;color:#ffc970;font-size:11px;font-weight:900}.history-name{color:#fff2b4;font-size:14px;line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;unicode-bidi:plaintext}.demo-manual{margin-top:15px}.wheel-overlay[data-has-history=true] .wheel-stage{width:min(100%,320px)}
@media(max-width:380px){.history-name{font-size:12px}.history-heading{font-size:9px}.winner-history{margin-inline:6px}.wheel-overlay[data-has-history=true] .wheel-stage{width:min(100%,280px)}}