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

body {
    background: radial-gradient(circle, #2d4d22 0%, #000000 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
}

#game-container {
    position: relative;
    background: #c2c5c6;
    border: 12px solid #a3a7a9;
    border-radius: 10px 10px 60px 10px;
    box-shadow: 
        10px 10px 0 #5e6163,
        20px 20px 40px rgba(0, 0, 0, 0.5);
    padding: 20px 20px 40px 20px;
    margin-bottom: 20px;
}

footer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    border: 1px solid #78c850;
    text-align: center;
    color: #ffffff;
    width: 95%;
    max-width: 500px;
    font-size: 11px;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

footer p {
    margin: 4px 0;
}

footer a {
    color: #78c850;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffd93d;
    text-decoration: underline;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pixel-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#title-bar {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#title-bar h1 {
    color: #ffd93d;
    font-size: 32px;
    text-shadow: 3px 3px 0 #000;
    letter-spacing: 2px;
    font-weight: 900;
}

#title-bar .hearts {
    color: #ff4757;
    font-size: 24px;
    text-shadow: 2px 2px 0 #000;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@media (max-width: 700px) {
    #game-container {
        width: 100vw;
        height: 75vw;
        border-width: 4px;
    }
    #title-bar h1 {
        font-size: 16px;
    }
}
