* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050505;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

video {
    display: none;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

#drawingCanvas {
    z-index: 10;
}

#uiCanvas {
    z-index: 20;
    pointer-events: none; /* Let clicks pass through if needed */
}

#instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#instructions h2 {
    margin: 0 0 10px 0;
    background: linear-gradient(90deg, #ff0055, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#instructions p {
    margin: 5px 0;
    font-size: 14px;
    color: #bbb;
}

/* We can hide instructions once the user starts drawing */
.hidden {
    opacity: 0;
    pointer-events: none;
}
