.lw{--lw-navy:#13264d;--lw-white:#fff;position:relative;background:linear-gradient(140deg,#162758 0%,#30286b 45%,#17576f 100%);color:white;border-radius:22px;padding:20px;min-height:640px;overflow:hidden;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.lw:before{content:"";pointer-events:none;position:absolute;inset:0;background:radial-gradient(circle at 20% 15%,#fff3 0 2px,transparent 3px),radial-gradient(circle at 82% 24%,#fff3 0 3px,transparent 4px),radial-gradient(circle at 59% 83%,#ffd77948 0 2px,transparent 3px);background-size:170px 160px}
.lw>*{position:relative}.lw h2{font-size:clamp(22px,3vw,34px);font-weight:900;line-height:1.2;letter-spacing:-.4px;margin:4px 0 3px;color:white}.lw h3{font-size:16px;font-weight:850;line-height:1.4;color:#1d315e;margin:0}.lw p{font-size:13px;line-height:1.5}
.lw-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:13px}.lw-topbar p{margin:0;color:#e3e8fa}.lw-eyebrow{font-size:10px;letter-spacing:1.7px;color:#ffd56b;font-weight:900}.lw-top-actions,.lw-panel-tools,.lw-sound-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lw button,.lw select,.lw input{font:inherit}.lw button{cursor:pointer;transition:transform .2s,background .2s,box-shadow .2s}.lw button:focus-visible,.lw input:focus-visible,.lw select:focus-visible{outline:3px solid #fbd86b;outline-offset:2px}.lw button:not(:disabled):active{transform:scale(.96)}.lw button:disabled{opacity:.5;cursor:not-allowed}
.lw-outline{border:1px solid #ffffff66;background:#ffffff1a;color:white;padding:10px 12px;border-radius:11px;font-size:12px;font-weight:750}.lw-outline:hover{background:#ffffff34}
.lw-notice{padding:9px 12px;border-radius:12px;background:#ffffff1b;border:1px solid #ffffff24;font-size:13px;margin-bottom:13px;color:#fff8d8}.lw-notice[data-type=error]{background:#7e1c3988}.lw-notice[data-type=warning]{background:#9d652255}
.lw-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px;border:1px solid #ffffff34;background:#ffffff13;border-radius:15px;margin-bottom:13px}
.lw-toolbar label{font-weight:800;font-size:13px;display:flex;align-items:center;gap:8px}.lw-toolbar select{background:white;color:#1d315e;max-width:min(290px,62vw);min-width:155px;border:0;border-radius:8px;padding:9px 12px;font-weight:750;font-size:14px}.lw-count{font-size:12px;color:#e5efff;background:#00000028;border-radius:10px;padding:9px 10px}.lw-count strong{font-size:17px;color:#ffdb78}
.lw-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,28%);gap:14px;align-items:stretch}.lw-stage{background:radial-gradient(circle at 50% 45%,#293988,#0e1e4b 65%);border:1px solid #ffffff3b;border-radius:19px;min-width:0;display:flex;flex-direction:column;align-items:center;padding:10px 12px 15px;position:relative;box-shadow:inset 0 1px #ffffff19}.lw-sparkle{color:#ffe38b;letter-spacing:10px;text-shadow:0 0 10px #ffe798;line-height:1.5}
.lw-wheel-wrap{width:min(100%,510px);aspect-ratio:1;position:relative;filter:drop-shadow(0 10px 17px #030a2999)}.lw-wheel-wrap canvas{width:100%;height:100%;display:block}.lw-pointer{position:absolute;z-index:3;top:0;left:50%;transform:translateX(-50%);width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-top:49px solid #fff8ba;filter:drop-shadow(0 2px 3px #262447);pointer-events:none}.lw-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:6px solid white;background:linear-gradient(145deg,#fff2ab,#ebaf49);box-shadow:0 2px 8px #010a307a;border-radius:50%;display:grid;place-items:center;width:16%;aspect-ratio:1;font-size:clamp(18px,3vw,46px);color:#de7032;pointer-events:none}
.lw-spin{margin:7px 0 11px;border:3px solid #ffefb5;background:linear-gradient(#ffd76a,#ff9e35);color:#37264b;box-shadow:0 5px 0 #b9672d,0 7px 22px #ffd56d77;border-radius:40px;padding:13px 26px;font-size:clamp(14px,2vw,21px)!important;font-weight:950;letter-spacing:.3px}.lw-spin:hover:not(:disabled){filter:brightness(1.07);box-shadow:0 5px 0 #b9672d,0 7px 30px #ffd56d99}
.lw-result{width:100%;min-height:57px;background:linear-gradient(95deg,#f8d478,#fffcdf,#f8d478);border:2px solid #fff6b7;color:#38244b;text-align:center;display:grid;place-items:center;padding:12px 8px;border-radius:16px;font-size:clamp(16px,2.7vw,29px);line-height:1.2;font-weight:950;overflow-wrap:anywhere;box-shadow:0 4px 22px #0004}
.lw-panel{background:#f9fbff;color:#243254;border:1px solid #e1e8fc;border-radius:18px;padding:12px;min-width:0;display:flex;flex-direction:column;gap:9px}.lw-panel-title{display:flex;justify-content:space-between;align-items:center;gap:6px}.lw-panel-title span{font-weight:850;color:#176f6c;font-size:12px}.lw-small{padding:7px 10px!important;background:#e6f0ff;color:#26477b;border-radius:9px;border:1px solid #c4d8fb;font-weight:800;font-size:11px!important}.lw-small:hover{background:#cbddff}.lw-danger{background:#fff0ed;border-color:#ffd2cc;color:#aa3e40}.lw-search-label{font-size:12px;color:#4c5d7a;font-weight:750}.lw-search-label input{display:block;width:100%;margin-top:5px;border-radius:9px;border:1px solid #c9d5e7;padding:9px;background:white;color:#223451;font-size:13px}
.lw-roster{overflow:auto;max-height:min(460px,51vh);min-height:140px;border:1px solid #e2e8f4;border-radius:10px;background:white;padding:4px}.lw-student{display:flex;align-items:center;gap:8px;min-height:37px;padding:7px 6px;color:#223454;border-bottom:1px solid #ecf0f7;cursor:pointer;font-weight:650;font-size:12px}.lw-student:hover{background:#edf6ff}.lw-student input{accent-color:#159c7b;flex-shrink:0;width:16px;height:16px}.lw-student span{flex:1;min-width:0;overflow-wrap:anywhere}.lw-student small{font-size:13.5px;color:#21836f;font-weight:850;white-space:nowrap;flex-shrink:0}.lw-was-called{background:#effaf5}.lw-empty{padding:12px;color:#6a7894;text-align:center}.lw-history{padding-left:24px;max-height:125px;overflow:auto;margin:0;color:#3e577e;font-size:12px}.lw-history li{padding:3px}
.lw-settings{margin-top:14px;background:#ffffffef;color:#1a3155;border-radius:16px;padding:13px 15px;border:1px solid white;box-shadow:0 5px 25px #010b2840}.lw-settings summary{font-size:15px;font-weight:900;cursor:pointer;user-select:none}.lw-settings-body{padding-top:12px}.lw-settings-body p{color:#56708b}.lw-sound-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lw-upload{border:1px solid #cddff6;border-radius:13px;padding:11px;background:#f3f8ff;min-width:0}.lw-upload label{display:block;font-size:13px;margin-bottom:9px}.lw-upload input[type=file]{max-width:100%;font-size:12px;color:#234f77}.lw-filename{font-size:11px;color:#56708b;overflow-wrap:anywhere;margin:7px 0}.lw-volume{padding-top:12px;gap:16px}.lw-volume>label{font-size:12px;font-weight:750}.lw-volume>input[type=range]{accent-color:#1f9a89;flex:1;min-width:100px}.lw-mute{display:flex;gap:7px;align-items:center}.lw-help{font-size:11px!important}
.lw:fullscreen{border-radius:0;overflow:auto;padding:22px 4vw}.lw:fullscreen .lw-wheel-wrap{width:min(76vh,690px)}.lw:fullscreen .lw-main{grid-template-columns:minmax(0,1fr) minmax(245px,25%)}.lw:fullscreen .lw-roster{max-height:60vh}
@media(max-width:850px){.lw-main{grid-template-columns:1fr}.lw-panel{min-height:0}.lw-roster{max-height:240px;min-height:80px}.lw-sound-grid{grid-template-columns:1fr}.lw-wheel-wrap{width:min(100%,470px)}.lw{padding:12px}.lw-top-actions{width:100%}.lw:fullscreen .lw-main{grid-template-columns:1fr}.lw:fullscreen .lw-wheel-wrap{width:min(100%,70vh)}}
@media(prefers-reduced-motion:reduce){.lw button{transition:none}}
