/* star/realistic_warfare/css/style.css */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #050505;
    font-family: 'Oswald', sans-serif;
    color: #d1d1d1;
    user-select: none;
}

#game-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
}

canvas {
    display: block;
    cursor: crosshair;
}

.hidden {
    display: none !important;
}

/* HUD COMPONENTS */
#hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

#compass {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    color: #4cd137;
}

.bottom-display {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.stat-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bar-bg {
    width: 250px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bar-fill {
    width: 100%;
    height: 100%;
    background: #4cd137;
    transition: width 0.3s;
}

.label {
    font-size: 12px;
    font-weight: bold;
    opacity: 0.7;
}

#hp-text {
    font-size: 24px;
    font-weight: 700;
    color: #4cd137;
}

.weapon-status {
    text-align: right;
    border-right: 4px solid #4cd137;
    padding-right: 20px;
}

.fire-mode {
    font-size: 14px;
    opacity: 0.5;
}

.ammo-info {
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Share Tech Mono', monospace;
}

.separator {
    opacity: 0.3;
    margin: 0 10px;
}

#reserve-val {
    font-size: 24px;
    opacity: 0.6;
}

.weapon-name {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* MISSION CARD */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.mission-card {
    text-align: center;
    max-width: 500px;
}

.glitch {
    font-size: 72px;
    font-weight: 900;
    color: #fff;
    position: relative;
    text-shadow: 2px 2px #ff0000, -2px -2px #00ff00;
}

.intel {
    font-family: 'Share Tech Mono', monospace;
    color: #4cd137;
    margin-bottom: 30px;
}

#start-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 15px 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

#start-btn:hover {
    background: #fff;
    color: #000;
}

.mode-selection {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mode-btn.active {
    border-color: #4cd137;
    color: #4cd137;
    background: rgba(76, 209, 55, 0.1);
    box-shadow: 0 0 15px rgba(76, 209, 55, 0.2);
}

.briefing {
    margin-top: 40px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    font-size: 14px;
    color: #888;
    border-left: 2px solid #4cd137;
}

/* FX */
#damage-flash {
    position: fixed;
    inset: 0;
    background: rgba(255, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0;
    z-index: 500;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}