@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a1a2e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
}

.game-container {
    position: relative;
    border: 4px solid #e94560;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

#gameCanvas {
    display: block;
    background: #0f0f23;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.score-display {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(180deg, #000 0%, transparent 100%);
    color: #fff;
    font-size: 14px;
    text-shadow: 2px 2px 0 #e94560;
}

#message-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffeb3b;
    font-size: 24px;
    text-shadow: 3px 3px 0 #000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#message-popup.show {
    opacity: 1;
    animation: popBounce 0.5s ease-out;
}

@keyframes popBounce {
    0% { transform: translate(-50%, -50%) scale(0.5); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Start screen styling */
.start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.start-overlay h1 {
    font-size: 28px;
    color: #00d4ff;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #e94560;
}

.start-overlay p {
    font-size: 10px;
    margin: 10px 0;
    color: #ccc;
}

.start-overlay .blink {
    animation: blink 1s infinite;
    color: #ffeb3b;
    margin-top: 30px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
