* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body,
html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    /* Fallback before camera/game starts */
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* Hidden video feed */
.input_video {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* The playable canvas */
.output_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* UI Elements overlay */
#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    pointer-events: none;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#score {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #4ade80;
}

#status {
    font-size: 20px;
    color: #fca5a5;
}

#three_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    /* Above 2D canvas, below UI */
    pointer-events: none;
}

#crosshair {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: width 0.1s, height 0.1s, background-color 0.1s;
}

#crosshair.pinched {
    width: 8px;
    height: 8px;
    background-color: #f87171;
    /* red-400 */
    box-shadow: 0 0 15px rgba(248, 113, 113, 1);
}

#lottie-container {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}