* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#blocker {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#instructions {
    text-align: center;
    color: #fff;
    padding: 40px;
    background: rgba(0, 50, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 10px;
}

#instructions h1 {
    font-size: 48px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

#instructions p {
    font-size: 18px;
    line-height: 1.8;
}

#instructions strong {
    color: #0f0;
    font-size: 24px;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f0;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 0 0 5px #0f0;
    pointer-events: none;
    z-index: 50;
    display: none;
}

#hud {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #0f0;
    font-size: 20px;
    text-shadow: 0 0 5px #0f0;
    z-index: 50;
    display: none;
}

#hud div {
    margin: 5px 0;
    padding: 10px 15px;
    background: rgba(0, 50, 0, 0.7);
    border: 1px solid #0f0;
    border-radius: 5px;
}

.muzzle-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,200,0,1) 0%, rgba(255,100,0,0.5) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 60;
    animation: flash 0.1s ease-out forwards;
}

@keyframes flash {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

canvas {
    display: block;
}

#control-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #0af;
    border-radius: 10px;
    padding: 30px;
    min-width: 350px;
    display: none;
    z-index: 200;
    color: white;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.3);
}

#control-panel h2 {
    margin: 0 0 25px 0;
    text-align: center;
    color: #0af;
    font-size: 24px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

#control-panel .setting {
    margin-bottom: 25px;
}

#control-panel label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

#control-panel label span:last-child {
    color: #0af;
}

#control-panel input[type="range"] {
    width: 100%;
    height: 8px;
    cursor: pointer;
    accent-color: #0af;
}

#control-panel .hint {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin: 20px 0 0 0;
}

#control-panel kbd {
    background: #333;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #555;
}

#settings-btn {
    background: rgba(0, 50, 0, 0.7);
    border: 1px solid #0f0;
    color: #0f0;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 5px;
}

#settings-btn:hover {
    background: rgba(0, 100, 0, 0.8);
}
