﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0f;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 1200px;
    max-height: 700px;
    background: linear-gradient(180deg, #1a0a1f 0%, #0d1a2a 50%, #0a0f0a 100%);
    border: 3px solid #2a3a4a;
    box-shadow: 
        0 0 50px rgba(100, 200, 255, 0.1),
        inset 0 0 100px rgba(0, 0, 0, 0.5);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 10;
}

.score-panel, .lives-panel, .perk-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.label {
    font-size: 12px;
    color: #5a7a9a;
    letter-spacing: 3px;
}

.value {
    font-size: 32px;
    color: #00ffaa;
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.8);
    font-weight: bold;
}

.hearts {
    display: flex;
    gap: 8px;
}

.heart {
    width: 25px;
    height: 25px;
    background: #ff3366;
    clip-path: path('M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z');
    filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.8));
    transition: all 0.3s ease;
}

.heart.lost {
    background: #333;
    filter: none;
}

.perk-name {
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.perk-name.normal {
    color: #888;
}

.perk-name.explosive {
    color: #ff6600;
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.8);
    animation: pulse 0.5s ease-in-out infinite alternate;
}

.perk-name.nuclear {
    color: #ffff00;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
    animation: pulse 0.3s ease-in-out infinite alternate;
}

.perk-name.radiation {
    color: #00ff00;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    animation: pulse 0.7s ease-in-out infinite alternate;
}

.perk-name.revive {
    color: #ff66aa;
    text-shadow: 0 0 15px rgba(255, 102, 170, 0.8);
    animation: pulse 0.7s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.game-over, .start-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.game-over.active, .start-screen.active {
    opacity: 1;
    pointer-events: all;
}

.game-over h1, .start-screen h1 {
    font-size: 48px;
    color: #ff3366;
    text-shadow: 0 0 30px rgba(255, 51, 102, 0.8);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.start-screen h1 {
    color: #00ffaa;
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.8);
}

.game-over p, .start-screen p {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 10px;
}

.controls {
    margin: 30px 0;
    text-align: center;
}

.controls p {
    font-size: 16px;
    color: #7a9aba;
    margin: 5px 0;
}

button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 20px;
    font-family: inherit;
    background: linear-gradient(180deg, #00aa77, #007755);
    color: #fff;
    border: none;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
}

button:active {
    transform: scale(0.98);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

button:hover::before {
    left: 100%;
}