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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c, #1a1a2e, #16213e);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameContainer {
    position: relative;
    width: 1000px;
    height: 800px;
    border: 2px solid #444;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

#gameCanvas {
    display: block;
    background: radial-gradient(circle at 50% 50%, #001122, #000011);
    position: relative;
    z-index: 1;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.hidden {
    display: none !important;
}

.menu-content {
    text-align: center;
    color: white;
    animation: fadeIn 0.5s ease-in;
}

.menu-content h1 {
    font-size: 3em;
    margin-bottom: 30px;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(0, 255, 255, 0.8); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.menu-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #2a5298, #1e3c72);
}

.menu-btn:active {
    transform: translateY(0);
}

.menu-btn i {
    margin-right: 10px;
}

.score-display, .time-display {
    font-size: 1.5em;
    margin: 10px 0;
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.controls-info {
    margin: 20px 0;
    text-align: left;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    min-width: 300px;
}

.key {
    background: #333;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: bold;
    color: #00ffff;
}

.action {
    color: #fff;
}

.scores-list {
    margin: 20px 0;
    text-align: left;
    min-width: 300px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
}

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

.hud-top {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.hud-item {
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hud-item i {
    margin-right: 5px;
    color: #00ffff;
}

.hud-bottom {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
}

.power-up-status {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.power-up-icon {
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    font-size: 1.2em;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 1024px) {
    #gameContainer {
        width: 90vw;
        height: 72vw;
        max-width: 1000px;
        max-height: 800px;
    }
    
    #gameCanvas {
        width: 100%;
        height: 100%;
    }
    
    .menu-content h1 {
        font-size: 2.5em;
    }
    
    .menu-btn {
        min-width: 180px;
        padding: 12px 25px;
        font-size: 1.1em;
    }
}