@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;750;800&display=swap');
:root{font-family:Manrope,Arial,sans-serif;font-synthesis:none;color-scheme:light;--ink:#252431;--muted:#6c6879;--accent:#7953d2;--border:#dddde5;--surface:#fff;--button:#fff;--input:#fff;--canvas-border:#768a92;--scene:linear-gradient(118deg,#dfedf9 0%,#edf8f7 56%,#e5f5e9 100%);background:#f6f7f9;color:var(--ink)}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}body{margin:0;min-width:280px;background:var(--scene)}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #9875df;outline-offset:4px}a{color:inherit;text-decoration:none}button{transition:background .15s,color .15s,box-shadow .15s}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.header{height:76px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--surface);box-shadow:0 3px 12px #24334213;position:relative;z-index:20}.brand{display:inline-flex;align-items:center;gap:10px;font-size:31px;font-weight:800;letter-spacing:-1.8px;line-height:1}.brand-icon{display:block;width:40px;height:40px;flex-shrink:0}.brand-dot{color:var(--accent);margin-left:-10px}.header-right{display:flex;align-items:center;gap:9px}.header-note{color:var(--muted);font-size:12px;margin-right:20px}.icon-button{height:40px;min-width:40px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:11px;border:1px solid var(--border);border-radius:11px;background:var(--button);color:#625678;font-size:23px}.icon-button:hover{background:#f1ecfb}.icon-button[aria-pressed=true]{color:#754aca;background:#eee5fd;border-color:#d9c6f7}.icon-button svg{display:block;flex-shrink:0}.sound-symbol{font-size:25px;line-height:1}.menu-toggle,.menu-label{display:none}.theme-sun{display:none}
main{max-width:1580px;margin:auto;padding:22px 30px 25px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:30px;align-items:start}.wheel-card{min-width:0;position:relative;padding:0 5px}.stage-top{min-height:44px;display:flex;justify-content:space-between;align-items:center;gap:10px}.edit-wheel{width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid #ffffff70;background:#ffffffb3;color:#7654b7;border-radius:50%;box-shadow:0 2px 5px #334b5810}.edit-wheel:hover{background:white}.stage-actions{display:flex;align-items:center;gap:8px}.stage-theme,.stage-sound{display:none}.wheel-expand{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ffffff70;border-radius:10px;background:#ffffffb3;color:#6c597f;padding:9px 11px;font-size:11px;font-weight:700;min-height:38px}.wheel-expand:hover{background:white}.wheel-expand svg{flex-shrink:0}.wheel-wrap{display:flex;align-items:center;justify-content:center;padding:20px 18px 17px;min-height:0}.wheel-frame{--wheel-inset:3px;position:relative;isolation:isolate;flex-shrink:0;width:min(100%,calc(100dvh - 220px),760px);aspect-ratio:1;border-radius:50%;background:var(--canvas-border);box-shadow:0 5px 9px #233d483d,0 0 0 1px #6f858d38}
.wheel-disc{position:absolute;inset:var(--wheel-inset);border-radius:50%;overflow:hidden}#wheel{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;will-change:transform}
.wheel-frame:after{content:"";position:absolute;inset:var(--wheel-inset);border-radius:50%;background:radial-gradient(circle at 30% 22%,#fff2,transparent 55%,#0000000d);box-shadow:inset 0 0 5px #18324438;pointer-events:none;z-index:1}
.wheel-hit{position:absolute;inset:0;border-radius:50%;border:0;background:transparent;color:#fff;z-index:2;padding:0}.wheel-hit:hover{background:#ffffff05}.wheel-hit:disabled{opacity:1}#spin-label{position:absolute;top:23%;left:0;right:0;font-size:clamp(24px,3vw,41px);font-weight:800;letter-spacing:.2px;text-shadow:0 2px 10px #17434a55;transition:opacity .15s;pointer-events:none}.is-spinning #spin-label{opacity:0}
.wheel-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:20%;height:20%;border-radius:50%;border:1px solid #ffffff80;background:#fff;box-shadow:0 1px 3px #43748c14;z-index:3;padding:0}.wheel-center:disabled{opacity:1}.wheel-center:hover{background:#fbfaff}
.wheel-caption{display:flex;align-items:center;justify-content:center;gap:18px;color:var(--muted);font-size:11px;min-height:24px}.wheel-caption p{margin:0}.wheel-status{display:flex;align-items:center;gap:6px;font-size:10px}.status-dot{width:5px;height:5px;border-radius:50%;background:#74b28b;flex-shrink:0}
.editor-card{margin-top:4px;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:0 3px 12px #1d495512;overflow:hidden;padding:0 19px}.tabs{display:flex;border-bottom:1px solid var(--border);gap:0;margin:0 -19px}.tab{position:relative;flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-height:63px;padding:17px 0;border:0;background:none;color:var(--muted);font-size:15px;font-weight:750}.tab.active{color:var(--ink)}.tab.active:after{content:"";height:3px;background:var(--accent);position:absolute;left:-1px;right:-1px;bottom:-1px}.count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;background:#eceaf0;border-radius:50%;font-size:11px;font-weight:700;color:#6b6477}.tab.active .count{background:#ede5fb;color:#7751be}.panel-heading{margin:20px 0 14px}.panel-heading h2{font-size:15px;margin:0 0 6px;font-weight:750}.panel-heading p{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.textarea-shell{height:330px;border:1px solid var(--border);border-radius:8px;background:var(--input);overflow:hidden}textarea{display:block;width:100%;height:100%;padding:12px 13px;border:0;outline:0;resize:none;background:transparent;color:var(--ink);caret-color:var(--accent);font-size:17px;font-weight:500;line-height:31px;font-family:inherit;white-space:pre;overflow:auto}.textarea-shell:focus-within{border-color:#ac8cdd;box-shadow:0 0 0 3px #9364d412}textarea::placeholder{color:#8d8698}.editor-tools{display:flex;gap:17px;align-items:center;padding:14px 0 1px}.text-button{border:0;background:none;padding:0;color:#756187;font-size:11px;display:flex;gap:5px;align-items:center;min-height:28px}.text-button>span{font-size:17px}.text-button:hover{color:var(--accent)}.clear-button{margin-left:auto}.reset-button{display:block;border:0;background:none;padding:5px 0;margin:14px auto 17px;color:#897797;font-size:11px}.reset-button:hover{color:var(--accent)}.results-list{min-height:330px;max-height:390px;overflow:auto}.empty-results{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:15px;color:#8e7c9f;font-size:12px}.empty-results>span{font-size:40px;color:#bca6cf}.result-item{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--border)}.result-number{display:grid;place-items:center;width:31px;height:31px;flex-shrink:0;border-radius:8px;background:#f0e8fa;color:#8861b5;font-size:11px;font-weight:700}.result-detail{min-width:0}.result-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}.result-time{font-size:10px;color:#8c7d98;margin-top:4px}.result-trophy{margin-left:auto;color:#a582c6}.footer{display:flex;justify-content:space-between;gap:20px;max-width:1580px;margin:auto;padding:17px 35px;color:#87929a;font-size:10px}
.primary-button{display:flex;align-items:center;justify-content:center;min-height:48px;border:0;border-radius:11px;background:#7953d2;color:white;font-weight:750;font-size:14px;padding:0 20px}.primary-button:hover{background:#6c43c6}dialog{position:fixed;margin:auto;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:22px;padding:33px 34px 16px;text-align:center;width:min(440px,calc(100% - 32px));box-shadow:0 25px 100px #20334540}dialog::backdrop{background:#18233369;backdrop-filter:blur(5px)}.close-dialog{position:absolute;top:12px;right:12px;width:31px;height:31px;min-width:31px;padding:0;font-size:24px;border:0}.winner-art{font-size:57px;margin:6px 0 23px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:var(--accent)}dialog h2{font-size:23px;margin:12px 0}#winner-name{font-size:33px;font-weight:800;color:var(--accent);overflow-wrap:anywhere}dialog p{font-size:12px;color:var(--muted);margin:16px 0 24px}dialog .primary-button{width:100%}#confetti{pointer-events:none;position:fixed;inset:0;width:100%;height:100%;z-index:100}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;padding:12px 18px;border-radius:10px;background:#423251;color:white;font-size:12px;z-index:101;max-width:90%;text-align:center;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}
body.wheel-fullscreen{overflow:hidden}.wheel-fullscreen .header,.wheel-fullscreen .editor-card,.wheel-fullscreen .footer{display:none}.wheel-fullscreen main,.wheel-fullscreen .workspace{display:contents}.wheel-fullscreen .wheel-card{position:fixed;inset:0;z-index:50;background:var(--scene);width:100%;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:18px 28px 14px}.wheel-fullscreen .edit-wheel{visibility:hidden}.wheel-fullscreen .stage-top{flex-shrink:0}.wheel-fullscreen .stage-theme,.wheel-fullscreen .stage-sound{display:inline-flex}.wheel-fullscreen .wheel-wrap{flex:1;min-height:0;padding:12px 28px}.wheel-fullscreen .wheel-frame{width:min(85vw,calc(100dvh - 144px),1020px)}.wheel-fullscreen .wheel-caption{flex-shrink:0;min-height:25px}.wheel-fullscreen #spin-label{font-size:clamp(25px,4vw,47px)}
:root[data-theme=dark]{color-scheme:dark;--ink:#f2edf8;--muted:#c1b7cc;--accent:#bea0f7;--border:#43384d;--surface:#211a29;--button:#2b2334;--input:#18121f;--canvas-border:#516977;--scene:linear-gradient(118deg,#152838,#192c2e 58%,#202d25);background:#19232b;color:var(--ink)}[data-theme=dark] .theme-moon{display:none}[data-theme=dark] .theme-sun{display:block}[data-theme=dark] .header{box-shadow:0 3px 12px #0004}[data-theme=dark] .icon-button{color:#d8c9e9}[data-theme=dark] .icon-button:hover{background:#3b2f49}[data-theme=dark] .icon-button[aria-pressed=true]{background:#49345f;color:#ebd6ff;border-color:#725286}[data-theme=dark] .edit-wheel,[data-theme=dark] .wheel-expand{color:#e1d1ef;background:#332b40aa;border-color:#62517166}[data-theme=dark] .edit-wheel:hover,[data-theme=dark] .wheel-expand:hover{background:#43344e}[data-theme=dark] .wheel-center{background:#f9f7fe;border-color:#e9def8}[data-theme=dark] .wheel-frame{box-shadow:0 5px 15px #0007,0 0 0 1px #60727b55}[data-theme=dark] .count{background:#3c3346;color:#d4c7df}[data-theme=dark] .tab.active .count{background:#533a68;color:#e8cbff}[data-theme=dark] .text-button,[data-theme=dark] .reset-button{color:#d3bce5}[data-theme=dark] .result-number{background:#483255;color:#e3c5f8}[data-theme=dark] .result-time{color:#bca6cc}[data-theme=dark] .empty-results{color:#c4b1d4}[data-theme=dark] .footer{color:#acb7b9}[data-theme=dark] .primary-button{background:#8052d3;color:white}[data-theme=dark] .primary-button:hover{background:#9062df}[data-theme=dark] #toast{background:#e7d7f2;color:#30213c}[data-theme=dark] dialog::backdrop{background:#09070e99}
@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 390px}.wheel-frame{width:min(100%,calc(100dvh - 215px),830px)}}
@media(max-width:1000px) and (min-width:701px){main{padding-right:20px;padding-left:20px}.workspace{grid-template-columns:minmax(0,1fr) 300px;gap:20px}.header-note{display:none}.wheel-wrap{padding-right:12px;padding-left:12px}.wheel-caption{flex-direction:column;gap:4px}.editor-card{padding:0 15px}.tabs{margin:0 -15px}}
@media(max-width:700px){
  .header{height:64px;padding:0 17px;gap:12px}.brand{font-size:29px;gap:9px;letter-spacing:-1.4px}.brand-icon{width:37px;height:37px}.brand-dot{margin-left:-9px}.menu-toggle{display:inline-flex;border:0;background:transparent;padding:0;min-width:42px;height:42px}
  .header-right{display:none;position:absolute;right:13px;top:57px;width:210px;padding:9px;background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:0 12px 35px #20243526;align-items:stretch;gap:5px}.menu-open .header-right{display:flex;flex-direction:column}.header-note{display:none}.header-right .icon-button{border:0;justify-content:flex-start;padding:0 12px;height:44px;font-size:21px;border-radius:8px}.menu-label{display:inline;font-size:13px;font-weight:650}.header-right .sound-symbol{width:19px;text-align:center;font-size:25px}
  main{padding:13px 15px 20px}.workspace{display:flex;flex-direction:column;gap:17px}.wheel-card{width:100%;padding:0}.stage-top{min-height:40px}.edit-wheel{width:38px;height:38px;background:#ffffffaa}.stage-actions{gap:6px}.wheel-expand{min-height:34px;padding:7px 9px;font-size:10px}.wheel-expand>span{display:none}.wheel-expand svg{width:18px;height:18px}.wheel-wrap{padding:17px 6px 13px}.wheel-frame{width:calc(100vw - 48px);max-width:100%;--wheel-inset:2px}#spin-label{font-size:clamp(25px,7.5vw,35px);top:22%}.wheel-center{width:20%;height:20%}.wheel-caption{min-height:17px;font-size:10px}.wheel-caption #spin-hint{display:none}.wheel-status{font-size:10px;gap:5px;opacity:.85}
  .editor-card{margin:0;width:100%;border-radius:9px;padding:0 15px;box-shadow:0 3px 8px #24465720}.tab{font-size:16px;min-height:59px;padding:14px 0;gap:7px}.tabs{margin:0 -15px}.tab.active:after{left:0;right:0}.count{height:22px;min-width:22px;font-size:11px}.panel-heading{margin:16px 0 12px}.panel-heading h2{display:none}.panel-heading p{font-size:11px}.textarea-shell{height:252px;border-radius:6px}textarea{font-size:18px;line-height:32px;font-weight:400;padding:9px 12px}.editor-tools{padding:12px 0 0;gap:20px}.text-button{font-size:12px;min-height:32px}.reset-button{font-size:11px;margin:13px auto 16px}.results-list{min-height:260px;max-height:340px}.empty-results{min-height:260px;font-size:12px}.footer{font-size:9px;padding:12px 19px calc(17px + env(safe-area-inset-bottom))}
  dialog{padding:28px 24px 13px}.winner-art{font-size:48px;margin-bottom:19px}dialog h2{font-size:21px}#winner-name{font-size:29px}.close-dialog{width:31px;min-width:31px;height:31px}
  .wheel-fullscreen .wheel-card{padding:calc(10px + env(safe-area-inset-top)) 14px calc(10px + env(safe-area-inset-bottom))}.wheel-fullscreen .wheel-wrap{padding:10px 13px;min-height:0}.wheel-fullscreen .wheel-frame{width:min(86vw,calc(100dvh - 150px))}.wheel-fullscreen .stage-theme,.wheel-fullscreen .stage-sound{width:35px;height:35px;min-width:35px;padding:0;border-radius:9px;font-size:21px}.wheel-fullscreen .stage-actions{gap:5px}.wheel-fullscreen .wheel-expand{min-height:35px;padding:7px 9px}.wheel-fullscreen .wheel-expand>span{display:inline;font-size:10px}.wheel-fullscreen .edit-wheel{width:0}.wheel-fullscreen #spin-label{font-size:29px}.wheel-fullscreen .wheel-caption{min-height:22px}.wheel-fullscreen .wheel-caption #spin-hint{display:block}.wheel-fullscreen .wheel-status{display:none}
}
@media(max-width:350px){.header{height:60px;padding:0 13px}.brand{font-size:26px}.brand-icon{width:33px;height:33px}main{padding:11px 12px 17px}.workspace{gap:14px}.wheel-wrap{padding-top:15px}.wheel-frame{width:calc(100vw - 43px)}.editor-card{padding:0 13px}.tabs{margin:0 -13px}.tab{font-size:15px;min-height:54px}.wheel-fullscreen .wheel-expand>span{display:none}.footer{padding-right:15px;padding-left:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button,#spin-label,#toast{transition:none}}

/* White outer rim and dark inner edge keep the slice-colored pointer visible. */
.pointer{position:absolute;right:-25px;top:50%;transform:translateY(-50%);width:56px;height:56px;z-index:4;pointer-events:none;filter:drop-shadow(0 3px 3px #10223b66)}
.pointer svg{display:block;width:100%;height:100%;overflow:visible}
.pointer-rim{fill:none;stroke:#fff;stroke-width:9;stroke-linejoin:round}
.pointer-face{fill:var(--pointer-color,#64b2db);stroke:#243247;stroke-width:3;stroke-linejoin:round}
@media(max-width:700px){.pointer{width:44px;height:44px;right:-18px}}
