:root{font-family:'Courier New',Consolas,monospace;color:#101010;background:#00004e;font-synthesis:none;--cyan:#00d9d2;--bright:#5ffff1;--blue:#00009a;--grey:#b5b5b5;--shadow:#505050}*{box-sizing:border-box}body{margin:0;background:repeating-linear-gradient(0deg,#00004e,#00004e 3px,#000045 3px,#000045 4px);min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;filter:grayscale(.8);opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px dashed #ff5;outline-offset:3px}[hidden]{display:none!important}.app-shell{max-width:1280px;margin:auto;padding:22px 28px 0}.topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;gap:20px;background:#000084;border:2px solid #5050df;border-bottom:0;box-shadow:6px 6px #00002c;color:#fff}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:20px;font-weight:700;letter-spacing:1px;white-space:nowrap;color:#ff5;text-shadow:2px 2px #000}.brand-mark{font-size:15px;border:2px solid #0aa;color:#5ffff1;background:#000;padding:8px 6px;text-shadow:2px 0 #0aa}.brand small{display:block;font-size:8px;letter-spacing:1px;color:#9aaceb;margin-top:5px;font-weight:400;text-shadow:none}.header-actions{display:flex;align-items:center;gap:9px}.header-center{font-size:9px;color:#5ffff1;display:flex;align-items:center;gap:7px}.live-dot{height:7px;width:7px;background:#ff5555;display:inline-block}.connected .live-dot{background:#55ff55}.role-tag{font-size:9px;color:#ffff55;padding:7px;border:1px solid #5454b4}.icon-button,.text-button,.subtle-button,.segments button{background:#00aaaa;color:#000;border:2px solid;border-color:#aaffff #005555 #005555 #aaffff;border-radius:0;box-shadow:1px 1px #000;font-size:11px;min-height:32px;padding:6px 10px}.icon-button{font-size:17px;display:inline-flex;gap:7px;align-items:center;justify-content:center;min-width:34px}.icon-button span{font-size:10px}.icon-button:hover,.text-button:hover,.subtle-button:hover,.segments button:hover{background:#55ffff}button:active:enabled{border-color:#005555 #aaffff #aaffff #005555;transform:translate(1px,1px);box-shadow:none}.stage{border:2px solid #6262f4;background:#aaa;box-shadow:6px 6px #00002c}.stage-top{height:30px;background:#00aaaa;border-top:2px solid #55ffff;border-bottom:2px solid #005555;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-weight:700;font-size:10px;gap:16px}.stage-top span:first-child{color:#00003f;letter-spacing:.7px}.stage-top span:last-child{color:#00004a}.wheel-scene{width:100%;line-height:0;background:#aaa;position:relative;overflow:hidden}#wheel{display:block;width:100%;height:auto;aspect-ratio:640/350;image-rendering:pixelated;image-rendering:crisp-edges}.result{display:flex;align-items:center;justify-content:center;gap:18px;background:#000084;color:#fff;padding:10px 20px;min-height:47px;border-top:2px solid #3333bb;border-bottom:2px solid #000055}.result p{font-size:9px;letter-spacing:.3px;color:#aaaaff;margin:0}.result h2{margin:0;font-size:16px;font-weight:700;overflow-wrap:anywhere;max-width:70%}.result.winner h2{color:#ffff55}.result.winner p{color:#ffff55}.spin-controls{padding:18px 23px 13px;display:flex;align-items:center;gap:30px;border:3px solid;border-color:#eeeeee #555555 #555555 #eeeeee;background:#aaa}.spin-main{width:52%;max-width:570px}.spin-button{width:100%;display:flex;align-items:center;justify-content:center;gap:14px;padding:14px 19px;border:3px solid;border-color:#fff #005555 #005555 #fff;box-shadow:3px 3px #555;background:#00e3d7;color:#000050;font-weight:700;font-size:18px;text-shadow:1px 1px #bfffff}.spin-button:hover:enabled{background:#55ffff}.spin-button .key-hint{font-size:10px;margin-left:auto;color:#005555;text-shadow:none}.spin-main p{font-size:9px;color:#333;margin:11px 0 0}.round-info{display:flex;flex-direction:column;gap:9px;font-size:12px}.round-info strong{font-weight:700}.round-info span{font-size:8px;color:#4b4b4b}.sidebar{margin-top:22px;display:grid;grid-template-columns:1.15fr 1fr;gap:18px;align-items:start}.is-host .sidebar{grid-template-columns:1.15fr 1fr 1fr}.panel{background:#aaa;border:3px solid;border-color:#eeeeee #555555 #555555 #eeeeee;box-shadow:4px 4px #00002c;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 11px;gap:8px;border-bottom:1px solid #777}.eyebrow{font-size:8px;letter-spacing:1px;color:#000080;font-weight:700;margin:0 0 7px}.panel h2{font-size:18px;line-height:1.2;margin:0;font-weight:700;letter-spacing:-.3px}.panel h2>span{font-size:12px;margin-left:4px;vertical-align:middle;background:#000080;color:#ff5;padding:2px 5px}.text-button{font-size:10px;white-space:nowrap;min-height:28px;padding:4px 6px}.name-list{list-style:none;max-height:283px;overflow:auto;padding:4px 16px 7px;margin:0;scrollbar-width:thin;scrollbar-color:#0aa #999}.name-list li{padding:8px 0;border-bottom:1px dotted #888;display:flex;gap:10px;align-items:center;font-size:12px}.name-list li:last-child{border:0}.name-list .number{color:#000080;font-weight:700;font-size:12px;min-width:20px}.name-list .name{overflow-wrap:anywhere}.name-list .won .name{color:#666;text-decoration:line-through}.winner-label{font-size:7px;margin-left:auto;color:#000084;white-space:nowrap}.list-footer{padding:11px 14px;font-size:8px;background:#989898;display:flex;gap:8px;border-top:1px solid #777;color:#222}.settings-body{padding:16px}.setting-line{display:flex;justify-content:space-between;gap:8px;align-items:center}.setting-line strong{font-size:12px}.setting-line p{font-size:9px;line-height:1.5;margin:5px 0 0;color:#444}.switch{position:relative;width:36px;height:24px;flex-shrink:0;margin:0;display:block}.switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:1;cursor:pointer}.switch span{display:block;position:absolute;inset:0;background:#777;border:2px solid;border-color:#555 #ddd #ddd #555}.switch span:after{position:absolute;content:'';inset:2px auto 2px 2px;width:12px;background:#aaa;border:1px solid;border-color:#eee #555 #555 #eee}.switch input:checked+span{background:#000080}.switch input:checked+span:after{transform:translateX(15px);background:#55ffff}.switch input:focus-visible+span{outline:2px dashed #ffff55;outline-offset:3px}.duration-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:21px;font-size:10px}.segments{display:flex;gap:3px}.segments button{font-size:9px;padding:5px;min-height:28px;box-shadow:none}.segments .selected{background:#000080;border-color:#000 #ddd #ddd #000;color:#fff}.audio-settings-link{border:0;border-top:1px dotted #777;margin-top:19px;padding:13px 0 0;display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;color:#000080;font-size:10px;text-decoration:underline}.control-column{min-width:0}.share-button{display:block;background:#00aaaa;border:3px solid;border-color:#aaffff #005555 #005555 #aaffff;width:100%;padding:13px 12px;margin-top:16px;text-align:left;color:#000050;font-size:12px;font-weight:700;box-shadow:3px 3px #00002c}.share-button span{font-size:20px;float:left;line-height:32px;margin-right:10px}.share-button small{display:block;font-size:9px;color:#004444;margin-top:5px;font-weight:400}.sound-note{font-size:8px;line-height:1.8;color:#8c9bd1;padding:5px 0 0}.history-list{padding:12px 16px;min-height:128px;max-height:295px;overflow:auto;scrollbar-width:thin}.empty-history{color:#555;font-size:11px;line-height:1.9;margin:0}.history-item{display:flex;gap:9px;align-items:center;border-bottom:1px dotted #777;padding:10px 0;font-size:12px}.history-item:last-child{border:0}.medal{font-size:16px;color:#000080}.history-item strong{font-weight:700;overflow-wrap:anywhere}.history-item small{margin-left:auto;white-space:nowrap;font-size:8px;color:#555}.history>.subtle-button{margin:0 16px 16px;width:calc(100% - 32px);font-size:10px}footer{display:flex;justify-content:space-between;gap:20px;color:#8888bb;font-size:8px;line-height:1.6;padding:24px 0;letter-spacing:.1px}footer span:last-child{text-align:right}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#00aaaa;color:#000040;border:3px solid;border-color:#bfffff #005555 #005555 #bfffff;box-shadow:5px 5px #0008;max-width:min(92vw,600px);font-size:12px;line-height:1.6;padding:15px 20px;z-index:30}.toast.error{background:#aa0000;color:white;border-color:#ff5555 #550000 #550000 #ff5555}#editor{padding:13px 16px 15px}label{font-size:11px;display:block;margin-bottom:8px;color:#222}textarea,input[type=url]{width:100%;background:#000080;color:#fff;border:2px solid;border-color:#555 #ddd #ddd #555;border-radius:0;padding:10px;font-size:12px;line-height:1.8;caret-color:#ff5}textarea{resize:vertical;min-height:165px;max-height:380px}input::placeholder,textarea::placeholder{color:#aaaaff}.editor-info{display:flex;align-items:center;justify-content:space-between;font-size:9px;gap:8px;margin-top:5px}.helper{font-size:10px;color:#444;line-height:1.7}.solid-button{border:3px solid;border-color:#aaffff #005555 #005555 #aaffff;background:#00aaaa;color:#000;font-weight:700;font-size:11px;padding:11px 14px;width:100%;box-shadow:1px 1px #555}.solid-button:hover{background:#55ffff}#cancelEdit{width:100%;margin-top:8px}.subtle-button{background:#bcbcbc;border-color:#fff #555 #555 #fff}.subtle-button:hover{background:#ddd}dialog{width:calc(100% - 32px);max-width:450px;padding:24px;background:#aaa;color:#000;border:4px solid;border-color:#fff #555 #555 #fff;box-shadow:9px 9px #0009;border-radius:0}dialog::backdrop{background:#00005caa}dialog h2{font-size:22px;margin:0 0 10px;color:#000080}dialog p{font-size:12px;line-height:1.8}dialog .helper{font-size:10px;color:#444}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}dialog .solid-button{margin-top:14px}.dialog-buttons{display:flex;gap:10px;margin-top:20px}.dialog-buttons button{width:50%;margin:0}.file-label{padding:13px;border:1px solid #777;margin-top:15px}.file-label input{display:block;font-size:10px;width:100%;margin-top:12px}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:25}.confetti-piece{position:absolute;top:-20px;width:8px;height:8px;animation:fall 3.8s ease-in forwards}.offline .stage{filter:saturate(.5)}.spinning .result h2{color:#55ffff}.spinning .result p{color:#55ffff}body:fullscreen{overflow:auto;background:#00004e}@keyframes fall{to{transform:translate(var(--drift),110vh) rotate(var(--turn))}}
@media(max-width:1050px){.app-shell{padding:16px 18px 0}.header-center{display:none}.topbar{padding:12px 14px}.is-host .sidebar{grid-template-columns:1fr 1fr}.history{grid-column:1/-1}.is-host .history-list{min-height:70px;max-height:160px;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.spin-button{font-size:16px}.spin-button .key-hint{font-size:8px}.round-info span{font-size:7px}}
@media(max-width:650px){.app-shell{padding:10px 9px 0}.topbar{gap:8px;padding:10px}.brand{font-size:16px;gap:8px}.brand small{font-size:6px;letter-spacing:.1px}.brand-mark{display:none}.icon-button span{display:none}.header-actions{gap:5px}.role-tag{font-size:7px;padding:5px}.icon-button{font-size:16px;padding:4px 7px;min-height:29px;min-width:29px}.stage-top{font-size:7px;height:26px;gap:6px;padding:0 7px}.stage-top span:first-child{letter-spacing:0}.result{flex-direction:column;gap:5px;padding:9px 8px;min-height:58px}.result h2{font-size:16px;max-width:100%;text-align:center}.result p{font-size:8px}.spin-controls{display:block;padding:13px}.spin-main{width:100%;max-width:none}.spin-button{font-size:16px;padding:12px}.spin-button .key-hint{font-size:8px}.spin-main p{text-align:center;font-size:8px}.round-info{margin-top:11px;gap:5px;text-align:center;font-size:10px}.round-info span{font-size:7px}.sidebar,.is-host .sidebar{grid-template-columns:1fr;gap:17px;margin-top:18px}.history{grid-column:auto}.panel-heading{padding:13px 14px}.name-list{max-height:244px}.panel h2{font-size:19px}.is-host .history-list{display:block;max-height:230px}.history-list{min-height:100px}.sound-note{font-size:9px}.stage,.panel,.topbar{box-shadow:3px 3px #00002c}.winner-label{font-size:8px}footer{font-size:7px;gap:15px;padding:20px 1px}.dialog-buttons{flex-direction:column}.dialog-buttons button{width:100%}.confetti-piece{width:6px;height:6px}}
@media(prefers-reduced-motion:reduce){.confetti-piece{display:none}}
select{font:inherit;font-size:12px;background:#000080;color:#fff;border:2px solid;border-color:#555 #ddd #ddd #555;padding:9px;width:100%;border-radius:0}.volume-label{display:flex;justify-content:space-between;gap:10px;margin-top:18px}input[type=range]{width:100%;accent-color:#000080}.header-actions{gap:7px}#introButton[aria-pressed=true]{background:#ffff55}@media(max-width:760px){.brand small{max-width:185px}.icon-button span{display:none}}@media(max-width:390px){.role-tag{display:none}.brand{font-size:14px}.brand small{font-size:5px}}

.host-link-button{display:block;width:100%;margin-top:12px;background:#000080;color:#ffff55}#generatedLink{margin-top:12px;width:100%;font:11px monospace;padding:10px;background:#fff;border:2px solid #555}

input[type=password]{width:100%;background:#000080;color:white;font:16px monospace;border:2px solid;border-color:#555 #ddd #ddd #555;padding:10px}#loginError{color:#8b0000;font-size:12px;min-height:20px}#loginButton{white-space:nowrap}@media(max-width:650px){.topbar{flex-wrap:wrap}.header-actions{flex-wrap:wrap}.brand small{max-width:none}}
