:root{--hud-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;overflow:hidden;background:#0b0d10;color:#e8e8ea;font-family:var(--hud-font)}#app{position:fixed;inset:0}#game-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}#hud{position:absolute;inset:0;pointer-events:none;user-select:none}#hud .interactive{pointer-events:auto}#hud{font-family:var(--hud-font);color:#eef0f2}.hud-panel{position:absolute;background:#101318b8;border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:10px 12px;backdrop-filter:blur(6px);box-shadow:0 6px 24px #00000059}#hud-score{top:14px;left:14px;display:flex;gap:10px}.player-card{min-width:120px;border-radius:8px;padding:8px 10px;background:#ffffff0a;border:2px solid transparent}.player-card.active{border-color:#ffd24a;background:#ffd24a1f}.player-card .name{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px}.player-card .swatch{width:12px;height:12px;border-radius:50%;border:1px solid rgba(0,0,0,.4)}.player-card .score{font-size:30px;font-weight:700;line-height:1.1}#hud-status{top:14px;left:50%;transform:translate(-50%);text-align:center;min-width:260px}#hud-status .title{font-weight:600;font-size:14px}#hud-status .sub{font-size:11px;opacity:.7}#hud-status .message{margin-top:4px;font-size:14px;color:#ffd24a;min-height:18px}#hud-menu{top:14px;right:14px;display:flex;flex-direction:column;gap:6px;width:170px}#hud-menu label{font-size:11px;opacity:.75;display:flex;justify-content:space-between;align-items:center;gap:6px}#hud-menu select,#hud-menu button,#hud-controls button{font-family:inherit;font-size:12px;color:#eef0f2;background:#ffffff14;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:5px 8px;cursor:pointer}#hud-menu button:hover,#hud-controls button:hover{background:#ffffff29}#hud-controls{bottom:16px;right:14px;width:200px;display:flex;flex-direction:column;gap:8px;align-items:stretch}#hud-controls .row{display:flex;gap:6px;align-items:center}#hud-controls .label{font-size:11px;opacity:.75}#spin-pad{align-self:center;border-radius:50%;cursor:crosshair;background:radial-gradient(circle at 50% 45%,#f3f0e8,#cfc9b8)}.power-bar{width:100%;height:4px;border-radius:2px;background:#00000040;overflow:hidden}.power-fill{height:100%;width:55%;border-radius:2px;background:#2e8b57;transition:width .05s linear}.chalk-bar{width:100%;height:4px;border-radius:2px;background:#00000040;overflow:hidden}.chalk-fill{height:100%;width:100%;border-radius:2px;background:#26d962;transition:width .15s linear,background .15s linear}.cam-row button.active{background:#ffd24a!important;color:#111!important}#hud-hint{bottom:16px;left:14px;font-size:11px;opacity:.6;max-width:320px;background:none;border:none;box-shadow:none}#lobby{top:50%;left:50%;transform:translate(-50%,-50%);width:260px;flex-direction:column;gap:10px;align-items:stretch;text-align:center}#lobby .lobby-title{font-size:16px;font-weight:700}#lobby .lobby-or{font-size:11px;opacity:.55}#lobby .lobby-row{display:flex;gap:6px}#lobby .lobby-row input{flex:1;font-family:inherit;text-transform:uppercase;letter-spacing:2px;text-align:center;background:#ffffff14;border:1px solid rgba(255,255,255,.15);border-radius:6px;color:#eef0f2;padding:6px}#lobby button{font-family:inherit;font-size:13px;color:#eef0f2;background:#ffffff1a;border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:8px;cursor:pointer}#lobby button:hover{background:#ffffff2e}#lobby .lobby-code{font-size:22px;font-weight:700;letter-spacing:4px;color:#ffd24a;min-height:26px}#lobby .lobby-status{font-size:12px;opacity:.8;min-height:16px}#hud-banner{top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;font-size:22px;font-weight:700;padding:20px 30px;display:none}#hud-banner.show{display:block}#lobby{width:340px;max-width:92vw;max-height:86vh;overflow-y:auto}.lobby-screen{flex-direction:column;gap:9px;align-items:stretch;width:100%}#lobby.lobby-docked{left:12px;top:12px;transform:none;width:300px}#lobby input{text-transform:none;letter-spacing:normal;text-align:left;font-family:inherit;background:#ffffff14;border:1px solid rgba(255,255,255,.15);border-radius:6px;color:#eef0f2;padding:6px 8px}#lobby input:focus{outline:none;border-color:#6cf}#lobby select{font-family:inherit;font-size:12px;color:#eef0f2;background:#14181ce6;border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:5px}.lobby-auth{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.lobby-auth input{flex:1 1 110px;min-width:0}.lobby-authbtns{display:flex;gap:6px;width:100%}.lobby-authbtns .lobby-authbtn{flex:1}.lobby-authbtn{padding:5px 10px!important;font-size:12px!important}.lobby-whoami{flex:1;font-weight:600;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-autherr{font-size:11px;color:#ff8d7a;min-height:0}.lobby-autherr:empty{display:none}.lobby-lbl{font-size:11px;opacity:.7;align-self:center;white-space:nowrap}.lobby-row{display:flex;gap:6px;align-items:center}.lobby-row input{flex:1;min-width:0}.lobby-createrow{display:grid;grid-template-columns:1fr auto;gap:6px}.lobby-createrow .lobby-roomname,.lobby-create{grid-column:1 / -1}.lobby-listhdr{display:flex;justify-content:space-between;align-items:center;font-size:11px;text-transform:uppercase;letter-spacing:.04em;opacity:.7;margin-top:2px}.lobby-refresh{padding:3px 8px!important;font-size:11px!important}.lobby-rooms{display:flex;flex-direction:column;gap:4px;max-height:30vh;overflow-y:auto}.lobby-empty{font-size:12px;opacity:.55;padding:8px 0}.lobby-roomrow{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#ffffff0d;border-radius:6px;padding:6px 8px;text-align:left}.lobby-roominfo{display:flex;flex-direction:column;min-width:0}.lobby-roomnm{font-weight:600;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-roommeta{font-size:11px;opacity:.65}.lobby-joinbtn{flex:0 0 auto;padding:5px 12px!important}.lobby-roomtitle{font-size:16px;font-weight:700}.lobby-teams{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}.lobby-team{flex:1 1 0;min-width:90px;background:#ffffff0d;border-radius:6px;padding:6px;text-align:left}.lobby-specs{background:#ffffff08}.lobby-teamhdr{font-size:10px;text-transform:uppercase;letter-spacing:.05em;opacity:.6;margin-bottom:4px}.lobby-member{display:flex;align-items:center;gap:6px;font-size:12px;padding:2px 0}.lobby-member.me .lobby-membernm{color:#6cf;font-weight:600}.lobby-membernm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-readydot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:#fff3;border:1px solid rgba(255,255,255,.3)}.lobby-readydot.on{background:#5ad469;border-color:#5ad469;box-shadow:0 0 6px #5ad469aa}.lobby-ready.on{background:#5ad46940!important;border-color:#5ad469!important}.lobby-hint{font-size:12px;opacity:.8;min-height:16px}#chat-panel{position:fixed;right:12px;bottom:12px;z-index:16;display:none;flex-direction:column;width:260px;max-width:40vw;gap:6px;padding:8px}.chat-title{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;opacity:.7}.chat-log{display:flex;flex-direction:column;gap:3px;height:180px;max-height:32vh;overflow-y:auto;padding-right:4px;font-size:12px;line-height:1.35}.chat-line{word-break:break-word}.chat-line.system{opacity:.6;font-style:italic;text-align:center}.chat-line.mine .chat-who{color:#6cf}.chat-who{font-weight:600;margin-right:5px;color:#fc8}.chat-text{opacity:.95}.chat-form{display:flex;gap:5px}.chat-input{flex:1 1 auto;min-width:0;background:#ffffff14;border:1px solid rgba(255,255,255,.18);border-radius:6px;color:#fff;padding:5px 7px;font-size:12px}.chat-input:focus{outline:none;border-color:#6cf}.chat-send{flex:0 0 auto}#music-panel{bottom:16px;left:50%;transform:translate(-50%);width:300px;min-width:220px;display:flex;flex-direction:column;gap:8px;z-index:5;overflow:hidden}#music-panel .music-resize{position:absolute;right:2px;bottom:2px;width:16px;height:16px;cursor:nwse-resize;touch-action:none;opacity:.5;background:linear-gradient(-45deg,transparent 0 38%,rgba(255,255,255,.55) 38% 48%,transparent 48% 58%,rgba(255,255,255,.55) 58% 68%,transparent 68% 78%,rgba(255,255,255,.55) 78% 88%,transparent 88%)}#music-panel .music-resize:hover{opacity:.95}#music-panel .music-header{display:flex;align-items:center;justify-content:space-between;cursor:move;touch-action:none}#music-panel .music-title{font-size:13px;font-weight:600;opacity:.9}#music-panel .music-collapse{width:24px;height:22px;line-height:1;padding:0}#music-panel .music-body{display:flex;flex-direction:column;gap:8px}#music-panel .music-row{display:flex;gap:6px;align-items:center}#music-panel .music-input{flex:1;min-width:0;font-family:inherit;font-size:12px;color:#eef0f2;background:#ffffff14;border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:6px 8px}#music-panel button{font-family:inherit;font-size:12px;color:#eef0f2;background:#ffffff1a;border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:6px 8px;cursor:pointer;white-space:nowrap}#music-panel button:hover{background:#ffffff2e}#music-panel .music-sync{margin-left:auto}#music-panel .music-embed{border-radius:12px;overflow:hidden}#music-panel .music-embed iframe{display:block;border:0;border-radius:12px}#music-panel .music-status{font-size:11px;opacity:.75;min-height:14px}#music-panel .music-now{font-size:11px;opacity:.85;min-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#music-panel .music-vol-label{font-size:11px;opacity:.75}#music-panel .music-volume{flex:1}#music-panel .music-results{display:flex;flex-direction:column;gap:4px;max-height:24vh;overflow-y:auto}#music-panel .music-results:empty{display:none}#music-panel .music-result{display:flex;align-items:center;gap:6px;padding:3px 4px;border-radius:6px;background:#ffffff0a}#music-panel .music-thumb{width:64px;height:36px;flex:0 0 auto;object-fit:cover;border-radius:4px;cursor:pointer}#music-panel .music-list{display:flex;flex-direction:column;gap:4px;max-height:30vh;overflow-y:auto}#music-panel .music-empty{font-size:11px;opacity:.6;padding:4px 0}#music-panel .music-item{display:flex;align-items:center;gap:4px;padding:3px 4px;border-radius:6px;background:#ffffff0a}#music-panel .music-item.active{background:#ffd24a29}#music-panel .music-item-title{flex:1;min-width:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}#music-panel .music-mini{padding:2px 5px!important;font-size:10px;line-height:1}#voice-panel{bottom:16px;left:calc(50% + 168px);display:flex;align-items:center;gap:8px;z-index:5}#voice-panel button{font-family:inherit;font-size:12px;color:#eef0f2;background:#ffffff1a;border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:6px 8px;cursor:pointer;white-space:nowrap}#voice-panel button:hover{background:#ffffff2e}#voice-panel button:disabled{opacity:.4;cursor:default}#voice-panel .voice-join.on{background:#ff5a5a38;border-color:#ff5a5a80}#voice-panel .voice-mute.muted{background:#ffd24a33;border-color:#ffd24a80}#voice-panel .voice-status{display:flex;align-items:center;gap:5px;font-size:11px;opacity:.85;white-space:nowrap}#voice-panel .voice-dot{width:8px;height:8px;border-radius:50%;background:#ffffff4d;flex:none}#voice-panel .voice-dot.waiting,#voice-panel .voice-dot.connecting{background:#ffd24a}#voice-panel .voice-dot.live{background:#4ad26a}#voice-panel .voice-dot.failed{background:#ff5a5a}#tuning-panel{top:104px;left:14px;width:224px;display:flex;flex-direction:column;gap:8px}#tuning-panel .tuning-header{display:flex;align-items:center;justify-content:space-between}#tuning-panel .tuning-title{font-size:12px;font-weight:600;opacity:.85}#tuning-panel .tuning-collapse{width:24px;height:22px;line-height:1;padding:0}#tuning-panel .tuning-body{display:flex;flex-direction:column;gap:7px;max-height:60vh;overflow-y:auto}#tuning-panel .tuning-row{display:flex;flex-direction:column;gap:2px}#tuning-panel .tuning-label{display:flex;justify-content:space-between;font-size:11px;opacity:.8}#tuning-panel .tuning-value{opacity:.9;font-variant-numeric:tabular-nums}#tuning-panel .tuning-range{width:100%}#tuning-panel button{font-family:inherit;font-size:12px;color:#eef0f2;background:#ffffff1a;border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:5px 8px;cursor:pointer}#tuning-panel button:hover{background:#ffffff2e}#tuning-panel .tuning-reset{margin-top:2px}
