@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&display=swap');

:root {
    --primary-color: #00f2ff;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    --hud-bg: rgba(0, 0, 0, 0.6);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
}

#input-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirror camera */
    z-index: 1;
}

#output-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through if needed, though we use gestures */
}

#ui-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    padding: 2rem;
    box-sizing: border-box;
}

.hud-top-left {
    background: var(--hud-bg);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    width: max-content;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.pulse-icon {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 242, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0);
    }
}

.stats p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

#block-count,
#current-mode {
    color: var(--primary-color);
    font-weight: 700;
}

.instructions {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: var(--hud-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.instructions b {
    color: var(--primary-color);
}