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

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

.container {
    position: relative;
    width: 800px;
    height: 600px;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    background-image: url('https://mgx-backend-cdn.metadl.com/generate/images/615219/2026-01-13/cc2c52e6-9469-4619-a9a8-7d8c4139e868.png');
    background-size: 100px 100px;
}

.hidden {
    display: none !important;
}

.title {
    font-size: 48px;
    color: #FFFFFF;
    text-shadow: 
        4px 4px 0px #FF1493,
        8px 8px 0px #39FF14;
    margin-bottom: 60px;
    text-align: center;
    line-height: 1.5;
    animation: titlePulse 2s infinite;
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.game-over-text {
    font-size: 36px;
    color: #FFFFFF;
    text-shadow: 
        4px 4px 0px #FF1493;
    margin-bottom: 40px;
    text-align: center;
}

.game-button {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #FFFFFF;
    background-color: #FF1493;
    border: 4px solid #FFFFFF;
    padding: 20px 30px;
    cursor: pointer;
    text-transform: lowercase;
    box-shadow: 
        4px 4px 0px #39FF14,
        8px 8px 0px #0000FF;
    transition: all 0.1s;
    line-height: 1.5;
    text-align: center;
}

.game-button:hover {
    background-color: #39FF14;
    color: #000000;
    transform: translate(2px, 2px);
    box-shadow: 
        2px 2px 0px #FF1493,
        4px 4px 0px #0000FF;
}

.game-button:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

#gameCanvas {
    border: 4px solid #FFFFFF;
    box-shadow: 
        0 0 0 4px #FF1493,
        0 0 0 8px #39FF14;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .container {
        transform: scale(0.9);
    }
    
    .title {
        font-size: 36px;
    }
    
    .game-button {
        font-size: 14px;
        padding: 15px 25px;
    }
}