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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.5em;
    color: #FFD700;
    text-shadow: 0 0 20px #FFD700;
    margin-bottom: 10px;
}

.score-panel {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.score-panel div {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

.game-area {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#game-canvas {
    border: 3px solid #FFD700;
    border-radius: 15px;
    background: #000011;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 200px;
}

.instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.instructions h3 {
    color: #FFD700;
    margin-bottom: 10px;
    text-align: center;
}

.instructions p {
    margin: 5px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.instructions h4 {
    color: #FFD700;
    margin: 15px 0 10px 0;
    font-size: 1em;
    text-align: center;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.controls button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.controls button:active {
    transform: translateY(0);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #FFD700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.game-over h2 {
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #FFD700;
}

.game-over p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.game-over button {
    margin: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.game-over button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

@media (max-width: 1024px) {
    .game-area {
        flex-direction: column;
        align-items: center;
    }
    
    #game-canvas {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
    
    .game-info {
        width: 100%;
        max-width: 600px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .instructions {
        flex: 1;
        margin-right: 20px;
    }
    
    .controls {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .score-panel {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .game-info {
        flex-direction: column;
    }
    
    .instructions {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .controls {
        flex-direction: row;
        justify-content: center;
    }
    
    .controls button {
        flex: 1;
        margin: 0 5px;
    }
}
