@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
    overflow: hidden;
}

#game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

#gameCanvas {
    display: block;
    border: 4px solid #ff6600;
    box-shadow: 0 0 20px #ff6600, 0 0 40px #00e5cc, inset 0 0 20px rgba(255, 102, 0, 0.1);
    image-rendering: pixelated;
}

#ui {
    display: none;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
}

.screen.hidden {
    display: none;
}

.screen h1 {
    color: #00e5cc;
    font-size: 36px;
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 0 20px #00e5cc, 0 0 40px #00e5cc;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

.screen h1 .subtitle {
    color: #ff6600;
    text-shadow: 0 0 20px #ff6600, 0 0 40px #ff6600;
    font-size: 28px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.screen p {
    color: #00e5cc;
    font-size: 14px;
    margin: 10px 0;
    text-shadow: 0 0 10px #00e5cc;
}

.screen .tagline {
    color: #ff9900;
    font-size: 12px;
    margin-top: 20px;
    text-shadow: 0 0 10px #ff9900;
}

.controls {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #00e5cc;
    box-shadow: 0 0 10px #00e5cc;
}

.controls p {
    margin: 5px 0;
}

button {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    padding: 15px 30px;
    margin-top: 30px;
    background: transparent;
    color: #ff9900;
    border: 3px solid #ff9900;
    cursor: pointer;
    text-shadow: 0 0 10px #ff9900;
    box-shadow: 0 0 20px #ff9900;
    transition: all 0.2s;
    pointer-events: auto;
    z-index: 101;
    position: relative;
}

button:hover {
    background: #ff9900;
    color: #000;
    text-shadow: none;
}

#final-score, #win-score {
    font-size: 20px;
    color: #00e5cc;
}
