/* HUD Styles */
#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Watermark */
#watermark {
    position: absolute;
    top: 8px;
    left: 10px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: rgba(180, 77, 255, 0.8);
    text-shadow: 0 0 5px rgba(180, 77, 255, 0.3);
}

/* Crosshair */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
}

.ch-line {
    position: absolute;
    background: #00ff00;
}

.ch-top {
    width: 2px;
    height: 8px;
    left: -1px;
    top: -12px;
}

.ch-bottom {
    width: 2px;
    height: 8px;
    left: -1px;
    top: 4px;
}

.ch-left {
    width: 8px;
    height: 2px;
    left: -12px;
    top: -1px;
}

.ch-right {
    width: 8px;
    height: 2px;
    left: 4px;
    top: -1px;
}

.ch-dot {
    width: 2px;
    height: 2px;
    background: #00ff00;
    position: absolute;
    left: -1px;
    top: -1px;
}

/* Kill Feed */
#killfeed {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
}

.killfeed-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    animation: killfeed-slide 0.3s ease-out;
    white-space: nowrap;
}

.killfeed-entry.fading {
    animation: killfeed-fade 0.5s ease-out forwards;
}

@keyframes killfeed-slide {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes killfeed-fade {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(20px); }
}

.kf-killer {
    font-weight: bold;
}

.kf-killer.team-player { color: #5dff5d; }
.kf-killer.team-enemy { color: #ff5d5d; }
.kf-victim.team-player { color: #5dff5d; }
.kf-victim.team-enemy { color: #ff5d5d; }

.kf-weapon {
    color: #aaa;
    font-size: 11px;
    padding: 1px 5px;
    border: 1px solid #555;
    border-radius: 2px;
}

.kf-headshot {
    color: #ff4444;
    font-size: 11px;
}

.kf-wallbang {
    color: #ffaa00;
    font-size: 10px;
}

/* Hit Marker */
#hitmarker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    z-index: 16;
    pointer-events: none;
}

.hm-line {
    position: absolute;
    width: 10px;
    height: 2px;
    background: #fff;
}

#hitmarker.headshot .hm-line {
    background: #ff4444;
}

.hm-1 { transform: translate(4px, 4px) rotate(45deg); top: 0; left: 0; }
.hm-2 { transform: translate(-4px, 4px) rotate(-45deg); top: 0; right: 0; }
.hm-3 { transform: translate(4px, -4px) rotate(-45deg); bottom: 0; left: 0; }
.hm-4 { transform: translate(-4px, -4px) rotate(45deg); bottom: 0; right: 0; }

@keyframes hitmarker-pop {
    0% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

#hitmarker.show {
    animation: hitmarker-pop 0.3s ease-out forwards;
}

/* Bottom HUD */
#bottom-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

#health-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-icon {
    font-size: 28px;
    font-weight: bold;
    color: #4fff4f;
    font-family: 'Consolas', monospace;
}

.armor-icon {
    font-size: 20px;
    color: #5dafff;
}

.hud-value {
    font-size: 28px;
    font-weight: bold;
    font-family: 'Consolas', monospace;
}

.health-bar-bg {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.health-bar-fill {
    width: 100%;
    height: 100%;
    background: #4fff4f;
    border-radius: 2px;
    transition: width 0.3s ease;
}

#round-info {
    text-align: center;
}

#team-scores {
    font-size: 32px;
    font-weight: bold;
    font-family: 'Consolas', monospace;
}

.player-score { color: #5dff5d; }
.bot-score { color: #ff5d5d; }
.score-separator { color: #666; margin: 0 5px; }

#round-timer {
    font-size: 18px;
    color: #ccc;
    font-family: 'Consolas', monospace;
}

#round-number {
    font-size: 12px;
    color: #777;
}

#weapon-section {
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: right;
}

.ammo-separator {
    font-size: 20px;
    color: #666;
}

.ammo-reserve {
    color: #999;
    font-size: 20px;
}

#money-display {
    font-size: 16px;
    color: #5dff5d;
    font-family: 'Consolas', monospace;
    margin-left: 15px;
}

#armor-section {
    position: absolute;
    bottom: 55px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Death Screen */
#death-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.death-text {
    font-size: 24px;
    color: #ff4444;
    margin-bottom: 10px;
}

.respawn-text {
    font-size: 16px;
    color: #aaa;
}

/* Scope overlay */
#scope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    pointer-events: none;
    display: none;
}

.scope-line-h {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
}

.scope-line-v {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: #000;
}

.scope-blur-tl, .scope-blur-tr, .scope-blur-bl, .scope-blur-br {
    position: absolute;
    width: 50%;
    height: 50%;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
}

.scope-blur-tl { top: -15%; left: -15%; }
.scope-blur-tr { top: -15%; right: -15%; }
.scope-blur-bl { bottom: -15%; left: -15%; }
.scope-blur-br { bottom: -15%; right: -15%; }
