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

body {
    background: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    border: 4px solid #e94560;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

#gameCanvas {
    display: block;
    background: #16213e;
    border-radius: 6px;
}

#ui-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

#health-bar {
    width: 200px;
    height: 25px;
    background: #333;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #555;
    position: relative;
}

#health-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    transition: width 0.3s ease;
}

#health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    font-size: 14px;
}

#score, #enemies-left {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.5);
    padding: 8px 15px;
    border-radius: 20px;
}

#start-screen, #game-over-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;
    border-radius: 6px;
}

#start-screen h1, #game-over-screen h1 {
    color: #e94560;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.8);
    letter-spacing: 5px;
}

#start-screen p, #game-over-screen p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.controls {
    color: #aaa !important;
    font-size: 14px !important;
}

#start-btn, #restart-btn {
    margin-top: 30px;
    padding: 15px 50px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #e94560, #c23a51);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#start-btn:hover, #restart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.8);
}

.hidden {
    display: none !important;
}

#game-over-title.victory {
    color: #4ade80 !important;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.8) !important;
}
