body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Courier New', Courier, monospace;
    color: #0f0; /* Retro Sci-Fi Green */
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to canvas if needed */
    z-index: 1;
}

#damage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(255,0,0,0.8) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease-out;
    z-index: 5; /* Ensure it's above game but below UI text if possible, or just screen tint */
}

#reticle {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #0f0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 10px #0f0;
    transition: width 0.1s, height 0.1s;
}

#reticle.locked {
    border: 2px solid #d000ff; /* Outer Ring */
    border-radius: 50%;
    box-shadow: 0 0 10px #d000ff;
    width: 60px;
    height: 60px;
    background: transparent;
    overflow: visible;
    animation: lockPulse 0.5s infinite alternate;
}

/* Inner Ring */
#reticle.locked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 2px solid #d000ff;
    border-radius: 50%;
    background: transparent;
}

/* Crosshairs */
#reticle.locked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%; /* Extend outside */
    height: 140%;
    background: 
        linear-gradient(to bottom, #d000ff 40%, transparent 40%, transparent 60%, #d000ff 60%), /* Vertical with gap */
        linear-gradient(to right, #d000ff 40%, transparent 40%, transparent 60%, #d000ff 60%); /* Horizontal with gap */
    background-size: 2px 100%, 100% 2px;
    background-repeat: no-repeat;
    background-position: center;
}

@keyframes lockPulse {
    from { box-shadow: 0 0 5px #d000ff; opacity: 0.8; }
    to { box-shadow: 0 0 15px #d000ff; opacity: 1.0; }
}

#stats {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 5px #0f0;
}

#profile-hud {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffd700;
    font-family: inherit;
    z-index: 20;
    text-shadow: 0 0 5px #000;
    font-size: 18px;
    text-align: right;
    font-weight: bold;
}

#profile-level {
    font-size: 24px;
    margin-bottom: 5px;
}

#profile-xp, #profile-credits {
    font-size: 14px;
    opacity: 0.9;
}

#lives-display {
    position: absolute;
    top: 100px;
    right: 20px;
    color: #ff0000;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 5px #000;
    z-index: 20;
    text-align: right;
    transition: font-size 0.2s;
}

#radar-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    border: 2px solid #0f0;
    background: rgba(0, 20, 0, 0.5);
    border-radius: 0 0 100px 100px; /* Semi-circle ish */
    overflow: hidden;
}

#radar-view {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Simple dot for radar blips */
.radar-blip {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #f00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
