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

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

#game-container {
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 4px solid #eee;
    border-radius: 4px;
}

canvas {
    display: block;
    background-color: #5c94fc; /* Classic sky blue */
    image-rendering: pixelated; /* Crisp pixels */
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    color: white;
    text-shadow: 2px 2px 0px #000;
    font-size: 16px;
    pointer-events: none;
}

#controls-hint {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.hidden {
    display: none !important;
}

#game-over-screen, #victory-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: white;
    text-align: center;
}

#game-over-screen h1, #victory-screen h1 {
    font-size: 40px;
    color: #e74c3c;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 #000;
}

#victory-screen h1 {
    color: #f1c40f;
}

p {
    font-size: 14px;
    animation: blink 1s infinite;
}

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