* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

header {
    padding: 20px;
    text-align: center;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ff3300, 0 0 20px #ff3300;
    letter-spacing: 2px;
}

.difficulty-badge {
    background: #ff3300;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.game-container {
    position: relative;
    width: 800px;
    height: 500px;
    margin: 20px auto;
    border: 3px solid #ff3300;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 51, 0, 0.5);
    background: #000;
}

#gameCanvas {
    background: #000;
    display: block;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff3300, #cc2200);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 51, 0, 0.4);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 51, 0, 0.6);
}

.stats {
    display: flex;
    justify-content: space-between;
    width: 800px;
    margin-bottom: 20px;
    background: rgba(255, 51, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.stat-box {
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    min-width: 120px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff3300;
}

.instructions {
    max-width: 800px;
    background: rgba(255, 51, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.instructions h2 {
    margin-bottom: 10px;
    color: #ff3300;
}

.instructions ul {
    list-style-type: none;
    padding: 0;
}

.instructions li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.instructions li:before {
    content: "➔";
    position: absolute;
    left: 0;
    color: #ff3300;
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: none;
}

.game-over h2 {
    font-size: 3rem;
    color: #ff3300;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ff3300;
}

.final-score {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffcc00;
}

.hard-mode-features {
    display: flex;
    justify-content: space-around;
    width: 800px;
    margin: 20px 0;
}

.feature {
    background: rgba(255, 51, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 180px;
}

.feature h3 {
    color: #ff3300;
    margin-bottom: 10px;
}

footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 850px) {
    .game-container, .stats, .hard-mode-features {
        width: 95%;
    }
    
    #gameCanvas {
        width: 100%;
    }
    
    .hard-mode-features {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .feature {
        width: 45%;
    }
}