
body { margin: 0; overflow: hidden; background-color: #050510; font-family: 'Segoe UI', sans-serif; }

canvas { display: block; }

#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 10, 30, 0.8);
    padding: 20px;
    border-radius: 8px;
    pointer-events: none;
    border-left: 4px solid #FFD700;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

h1 { margin: 0 0 5px 0; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.stats { display: flex; gap: 20px; margin-top: 10px; font-size: 1.1rem; font-weight: bold; }
.stat-box { color: #ccc; font-size: 0.8rem; }
.stat-val { color: #FFD700; font-size: 1.2rem; }

#aim-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: none; 
    box-shadow: 0 0 15px white;
}

#aim-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px red;
}

.controls {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    text-shadow: 0 2px 4px black;
}

#message {
    position: absolute;
    top: 30%;
    width: 100%;
    text-align: center;
    font-size: 10rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 40px #b89e0a, 0 0 10px #FFD700;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-style: italic;
    z-index: 10;
}

#restart-btn {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 40px;
    font-size: 1.5rem;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    display: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: transform 0.1s;
    z-index: 20;
}

#restart-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: #fff;
}

#restart-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

#sound-init {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    z-index: 100;
}