* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #0d1117;
    color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#webcam {
    display: none;
    /* We only draw to canvas */
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Below UI layer */
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Above canvas */
    pointer-events: none;
    /* Let canvas capture pointers if needed, but UI intercepts buttons */
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* User Info overlay */
#hud {
    display: flex;
    justify-content: space-between;
    padding: 2rem 4rem;
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.score-container {
    color: #fff;
}

.lives-container {
    color: #2320f8;
}

/* Glassmorphism panels */
.glass-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 25, 35, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.glass-panel h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel p {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 2.5rem;
}

/* Glow button styling */
.glow-btn {
    background: #ff8800;
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 3rem;
    margin: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 187, 0, 0.8);
}

.glow-btn:active {
    transform: scale(0.95);
}

.action-buttons {
    display: flex;
    gap: 40px;
    /* large space between buttons */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.action-buttons .glow-btn {
    margin: 0;
    /* Remove default margin so gap controls spacing */
}

#loading-model {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #aaa;
    animation: pulse 1.5s infinite;
}


@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}