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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
    color: white;
}

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

#game-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.back-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 150;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.05);
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

#hud > div {
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#score-value {
    color: #FFD700;
}

#lives-value {
    color: #FF6B6B;
}

#level-value {
    color: #4ECDC4;
}

#game-over, #instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#game-over h1, #instructions h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

#game-over p, #instructions p {
    font-size: 24px;
    margin: 10px 0;
}

button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.7);
}

button:active {
    transform: scale(0.95);
}

.btn-home {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-home:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.7);
}

.hidden {
    display: none !important;
}
