*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    color: #f5f5f5;
}

#app {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Fullscreen video + canvas */
.video,
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Mirror for “selfie” experience */
    transform: scaleX(-1);
    object-fit: cover;
}

/* Canvas should ignore pointer events */
.overlay {
    pointer-events: none;
}

/* HUD controls in the corner */
.hud {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}

#start-btn {
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: #00b894;
    color: #000;
}

#start-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

#status {
    opacity: 0.9;
}

#fps {
    opacity: 0.7;
    min-width: 3.5rem;
}