body {
    margin: 0;
    padding: 0;
    background-color: #1a002b; /* Deep purple */
    overflow: hidden;
    font-family: 'Courier New', monospace;
    color: #fff;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mirrored Video */
.input_video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    opacity: 0.3; 
    filter: contrast(1.2) brightness(0.8);
    z-index: 1;
}

/* Visualization Canvas */
.output_canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* UI Overlay */
.ui-layer {
    position: absolute;
    top: 20px;
    width: 100%;
    z-index: 3;
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

h1 {
    margin: 0;
    font-size: 2rem;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 2px 2px 0px #00ffff;
    letter-spacing: 4px;
}

.status-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
}

.controls {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    z-index: 3;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.start-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 20px 40px;
    font-size: 2rem;
    background: #ff00ff;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 30px #ff00ff;
    font-family: inherit;
    text-transform: uppercase;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.grid-floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 0, 255, 0.2) 100%);
    z-index: 1;
    perspective: 500px;
    transform-style: preserve-3d;
    pointer-events: none;
}