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

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

/* Ekrany */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

.screen.active {
    display: flex;
}

/* Menu Główne */
#menu {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f1e 100%);
    z-index: 10;
}

.menu-content {
    text-align: center;
    padding: 60px 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(10, 10, 30, 0.8));
    border-radius: 30px;
    border: 3px solid #00ff88;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.5), inset 0 0 30px rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(10px);
    max-width: 700px;
}

.menu-content h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
    letter-spacing: 8px;
    font-weight: 900;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.subtitle {
    font-size: 1.5rem;
    color: #00ccff;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: 3px solid #00ff88;
    color: #000;
    padding: 20px 80px;
    font-size: 1.8rem;
    font-weight: 900;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
    margin: 30px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.3);
    border-color: #00ffff;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.6);
}

.controls-info {
    margin-top: 40px;
    text-align: left;
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    padding: 25px 35px;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.controls-info h3 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.controls-info ul {
    list-style: none;
}

.controls-info li {
    margin: 12px 0;
    font-size: 1.2rem;
    padding: 8px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
    transition: all 0.2s;
}

.controls-info li:hover {
    background: rgba(0, 255, 136, 0.15);
    transform: translateX(5px);
}

.controls-info strong {
    color: #00ff88;
    display: inline-block;
    min-width: 120px;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Ekran Gry */
#game {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#game.active {
    display: block;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: none;
}

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

.hud-element {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 136, 0.5);
    backdrop-filter: blur(5px);
}

/* Pasek Życia */
#healthBar {
    top: 20px;
    left: 20px;
    min-width: 250px;
}

.label {
    font-size: 0.9rem;
    color: #00ff88;
    margin-bottom: 8px;
    font-weight: bold;
}

.bar-container {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.health-bar {
    background: linear-gradient(90deg, #ff0000, #ff6666);
    width: 100%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.value {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

/* Licznik Zabitych */
#killCounter {
    top: 20px;
    right: 20px;
    text-align: center;
    min-width: 150px;
}

.value.big {
    font-size: 3rem;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
}

/* Info o Broni */
#weaponInfo {
    bottom: 20px;
    right: 20px;
    min-width: 200px;
}

.weapon-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 10px;
    text-align: center;
}

.ammo-container {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.ammo-current {
    color: #fff;
}

.ammo-separator {
    color: #666;
    margin: 0 5px;
}

.ammo-max {
    color: #999;
    font-size: 1.5rem;
}

.reload-indicator {
    text-align: center;
    color: #ff9900;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1rem;
    display: none;
    animation: pulse 0.5s infinite;
}

.reload-indicator.active {
    display: block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Celownik */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.crosshair-line {
    position: absolute;
    background: rgba(0, 255, 136, 0.8);
}

.crosshair-line.horizontal {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crosshair-line.vertical {
    width: 2px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crosshair-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px #00ff88;
}

/* Ekran Śmierci */
#deathScreen {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 0, 0, 0.95));
    z-index: 20;
}

.death-content {
    text-align: center;
    padding: 60px 80px;
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    border-radius: 30px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 60px rgba(255, 0, 0, 0.6), inset 0 0 30px rgba(255, 0, 0, 0.1);
}

.death-title {
    font-size: 6rem;
    color: #ff0000;
    text-shadow: 0 0 40px #ff0000, 0 0 80px #ff0000;
    margin-bottom: 40px;
    font-weight: 900;
    letter-spacing: 10px;
    animation: deathPulse 1.5s infinite;
}

@keyframes deathPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.death-stats {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #00ff88;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.death-stats span {
    font-size: 3rem;
    font-weight: 900;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

/* Responsywność */
@media (max-width: 768px) {
    .menu-content h1 {
        font-size: 2.5rem;
    }

    .controls-info {
        font-size: 0.9rem;
    }

    .hud-element {
        padding: 10px;
    }
}
