*{box-sizing:border-box;margin:0;padding:0}html,body{background-color:#000;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,monospace;width:100vw;height:100vh;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:none;overscroll-behavior:none}#app{position:relative;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background-color:#000}.video-container{position:relative;display:block;width:100vw;height:100vh;width:100dvw;height:100dvh;overflow:hidden;line-height:0}#webcam{display:block;width:100%;height:100%;object-fit:cover}#webcam.mirrored{transform:scaleX(-1)}#output-canvas{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;pointer-events:none}#output-canvas.mirrored{transform:scaleX(-1)}.pc-telemetry-pill{position:fixed;top:16px;left:16px;display:flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;background-color:#121212e0;font-size:11px;font-weight:600;letter-spacing:.4px;color:#ffffffb8;z-index:260;pointer-events:none;font-variant-numeric:tabular-nums}.pc-telemetry-pill.hidden{display:none}.telemetry-fps{color:#fff}.telemetry-sep{color:#ffffff40}.telemetry-mode{color:#ffffffeb}.top-right-controls{position:fixed;top:16px;right:16px;display:flex;align-items:center;gap:10px;z-index:260}.ctrl-menu-container{position:relative}.ctrl-circle-btn{width:38px;height:38px;border-radius:50%;background-color:#181818db;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px #00000073;transition:background-color .2s ease,transform .18s cubic-bezier(.2,.9,.3,1),opacity .2s ease;outline:none;padding:0}.ctrl-circle-btn:hover{background-color:#343434f2;transform:scale(1.06)}.ctrl-circle-btn:active{transform:scale(.92)}.ctrl-circle-btn .btn-icon{width:18px;height:18px;display:block}.ctrl-circle-btn .icon-line{fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke .2s ease,opacity .2s ease}.ctrl-circle-btn .icon-dot{fill:#fff;transition:opacity .2s ease}.ctrl-circle-btn.off{background-color:#101010a6}.ctrl-circle-btn.off .icon-line,.ctrl-circle-btn.off .icon-dot{opacity:.4}.toggle-slash-btn .slash-line{display:none;stroke:#ffffffd9;stroke-width:2.2;stroke-linecap:round}.toggle-slash-btn.off .slash-line{display:block}.popup-menu{position:absolute;top:48px;right:0;min-width:220px;max-width:280px;background-color:#141414f2;border:none;border-radius:16px;padding:8px;box-shadow:0 12px 36px #000000a6;display:flex;flex-direction:column;gap:4px;z-index:300}.popup-menu.hidden{display:none}.popup-menu-header{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#ffffff73;padding:6px 10px 4px}.camera-list{display:flex;flex-direction:column;gap:4px}.camera-menu-item{width:100%;background-color:transparent;border:none;border-radius:10px;padding:9px 12px;color:#ffffffd9;font-size:12px;font-weight:500;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background-color .15s ease,color .15s ease}.camera-menu-item:hover{background-color:#ffffff1a}.camera-menu-item.active{background-color:#fff;color:#000;font-weight:700}.camera-error-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000000e0;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:center;z-index:500;padding:24px}.camera-error-overlay.hidden{display:none}.camera-error-modal{position:relative;width:100%;max-width:380px;background-color:#141414;border:none;border-radius:24px;padding:28px 24px 24px;box-shadow:0 24px 64px #000000d9;display:flex;flex-direction:column;gap:12px;text-align:center}.modal-close-icon-btn{position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:50%;border:none;background-color:#ffffff14;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .18s ease,transform .15s ease}.modal-close-icon-btn:hover{background-color:#ffffff29}.modal-close-icon-btn:active{transform:scale(.9)}.modal-close-icon-btn .btn-icon{width:16px;height:16px}.modal-close-icon-btn .icon-line{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round}.camera-error-badge{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#ffffff73}.camera-error-title{font-size:18px;font-weight:700;color:#fff}.camera-error-message{font-size:13px;line-height:1.5;color:#ffffffb3}.camera-error-actions{display:flex;justify-content:center;margin-top:8px}.camera-error-btn{width:48px;height:48px;border-radius:50%;border:none;background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .16s ease,opacity .16s ease}.camera-error-btn:hover{transform:scale(1.06)}.camera-error-btn:active{transform:scale(.92)}.camera-error-btn .btn-icon{width:20px;height:20px}.camera-error-btn .icon-line{fill:none;stroke:#000;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.start-modal{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000000e0;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:center;z-index:400;padding:24px}.start-modal.hidden{display:none}.start-card{width:100%;max-width:260px;background-color:#141414;border:none;border-radius:28px;padding:28px 24px;box-shadow:0 24px 64px #000000d9;display:flex;flex-direction:column;align-items:center}.start-play-btn{width:100%;height:54px;border-radius:999px;border:none;background-color:#fff;color:#000;font-size:14px;font-weight:800;letter-spacing:2.2px;cursor:pointer;transition:transform .16s cubic-bezier(.2,.9,.3,1),opacity .16s ease}.start-play-btn:hover:not(:disabled){transform:scale(1.03)}.start-play-btn:active:not(:disabled){transform:scale(.96)}.start-play-btn:disabled{opacity:.6;cursor:default}
