* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: #1a0a2e;
    font-family: 'Comic Sans MS', 'Chalkboard', cursive, sans-serif;
}

canvas {
    display: block;
}

#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 100;
    color: white;
}

#menu h1 {
    font-size: 72px;
    text-shadow: 4px 4px 0px #ff6b6b, 8px 8px 0px #feca57;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

#menu p {
    font-size: 24px;
    margin: 10px;
}

.controls-info {
    background: rgba(0,0,0,0.3);
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 18px !important;
}

#startBtn, #restartBtn, #winRestartBtn {
    margin-top: 30px;
    padding: 20px 60px;
    font-size: 32px;
    font-family: inherit;
    background: #feca57;
    color: #2d3436;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 0 #f39c12;
    transition: all 0.1s;
}

#startBtn:hover, #restartBtn:hover, #winRestartBtn:hover {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #f39c12;
}

#startBtn:active, #restartBtn:active, #winRestartBtn:active {
    transform: translateY(8px);
    box-shadow: 0 0px 0 #f39c12;
}

#hud {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    display: none;
}

#hud > div {
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#immortal {
    background: rgba(46, 204, 113, 0.7) !important;
    animation: pulse 0.5s infinite alternate;
    font-weight: bold;
}

@keyframes pulse {
    from { box-shadow: 0 0 10px #2ecc71; }
    to { box-shadow: 0 0 25px #2ecc71; }
}

#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #fff;
    text-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff6b6b;
    z-index: 50;
    pointer-events: none;
    display: none;
}

#gameOver, #win {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    color: white;
}

#gameOver {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

#win {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

#gameOver h1, #win h1 {
    font-size: 72px;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

#gameOver p, #win p {
    font-size: 32px;
    margin: 10px;
}

#weaponBar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 50;
    display: none;
}

.weapon-slot {
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.6);
    border: 3px solid #feca57;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
}

.weapon-slot.active {
    border-color: #ff6b6b;
    background: rgba(255,107,107,0.3);
    box-shadow: 0 0 20px rgba(255,107,107,0.5);
}

#minimap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    background: rgba(0,0,0,0.6);
    z-index: 50;
    display: none;
}
