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

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

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.arcade-cabinet {
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 20px 20px 0 0;
    padding: 30px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.screen-bezel {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow:
        inset 0 4px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 200, 255, 0.3);
}

.game-container {
    position: relative;
    width: 400px;
    height: 600px;
}

#gameCanvas {
    display: block;
    background: linear-gradient(180deg, #87ceeb 0%, #e0f6ff 100%);
    border: 4px solid #000;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 200, 255, 0.5);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    z-index: 10;
}

.screen.hidden {
    display: none;
}

.title {
    font-size: 32px;
    color: #ffff00;
    text-shadow:
        3px 3px 0 #ff0000,
        6px 6px 0 #000,
        0 0 20px #ffff00;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.game-over {
    font-size: 28px;
    color: #ff0000;
    text-shadow:
        3px 3px 0 #000,
        0 0 20px #ff0000;
    margin-bottom: 30px;
}

.screen p {
    font-size: 12px;
    margin: 15px 0;
    color: #00ffff;
    text-shadow: 2px 2px 0 #000;
}

.instructions {
    color: #ffffff;
    margin-top: 30px;
}

.credits {
    color: #ffff00;
    margin-top: 40px;
    font-size: 10px;
}

.blink {
    animation: blink 1s infinite;
    font-size: 14px;
    color: #00ff00;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.score-display, .high-score-display {
    font-size: 16px;
    color: #ffffff;
    margin: 10px 0;
}

.score-display span, .high-score-display span {
    color: #ffff00;
}

.controls-panel {
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 10px;
}

.coin-slot {
    width: 60px;
    height: 8px;
    background: #000;
    border: 2px solid #444;
    border-radius: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.buttons {
    display: flex;
    gap: 15px;
}

.button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #222;
    box-shadow:
        0 4px 0 #000,
        inset 0 -2px 4px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.1s;
}

.button:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #000,
        inset 0 -1px 2px rgba(0, 0, 0, 0.5);
}

.button.red {
    background: radial-gradient(circle at 30% 30%, #ff4444, #cc0000);
}

.button.yellow {
    background: radial-gradient(circle at 30% 30%, #ffff44, #cccc00);
}

.button.blue {
    background: radial-gradient(circle at 30% 30%, #4444ff, #0000cc);
}

@media (max-width: 500px) {
    .arcade-cabinet {
        padding: 15px;
    }

    .screen-bezel {
        padding: 15px;
    }

    .title {
        font-size: 24px;
    }
}
