body {
    margin: 0;
    overflow: hidden;
    background: #000;
}

#performance-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    border: none;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    z-index: 2100;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

#performance-toggle img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    pointer-events: none;
}

#performance-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
}

#performance-toggle.active {
    background: rgba(0, 188, 212, 0.9);
}

#performance-toggle.degraded {
    box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.7);
}

#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

#video-overlay {
    position: fixed;
    top: 20px;
    left: 84px;
    width: 320px;
    height: 240px;
    z-index: 100;
}

#videoFeed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    border-radius: 8px;
    overflow: hidden;
}

#videoFeed.mirrored {
    transform: scaleX(-1);
    transform-origin: center;
}


#debug-overlay {
    position: fixed;
    top: 20px;
    left: 412px;
    width: 280px;
    height: 220px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    font-family: monospace;
    border-radius: 8px;
    z-index: 1000;
}

.dg.ac {
    position: fixed;
    top: 20px !important;
    right: 20px !important;
    z-index: 2000 !important;
    border-radius: 8px;
} 

.dg.main{
    border-radius: 8px;
    overflow: hidden;
}
 .dg.main .close-button.close-bottom {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
}

/* Info toggle (bottom-right) */
#info-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    border: none;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    z-index: 2100;
    transition: background 0.2s ease;
}

#info-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
}

#info-toggle img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    pointer-events: none;
}

/* Info bar (bottom) */
#info-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 16px;
    text-align: center;
    z-index: 2050;
}

#info-bar a {
    color: #00bcd4;
    text-decoration: underline;
}