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

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    width: 100%;
    height: 100%;
}

#ui {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    font-weight: bold;
    font-size: 32px;
    z-index: 10;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    display: flex;
    gap: 60px;
}

#score {
    color: #FFD700;
}

#coins {
    color: #FFD700;
}

#startScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    color: white;
    text-align: center;
    gap: 50px;
}

#gameOverScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    color: white;
    text-align: center;
    gap: 40px;
}

.game-title {
    font-size: 80px;
    font-weight: bold;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: bounce 1.5s infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

@keyframes bounce {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.instructions {
    font-size: 18px;
    line-height: 2.5;
    color: #aaa;
}

button {
    padding: 18px 60px;
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

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

.game-over-title {
    font-size: 70px;
    color: #FF6B6B;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.final-stats {
    font-size: 36px;
    color: #FFD700;
    margin: 15px 0;
    font-weight: bold;
}

.hidden {
    display: none !important;
}
