body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        #b7c400 0%,   /* logo yellow-green */
        #3b5f2a 60%,  /* olive green */
        #1f3d1f 100%  /* dark green */
    );
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}


canvas {
    background: #8a9450;
    border: 4px solid #2f3b1e;
    border-radius: 6px;
}

#score {
    margin-bottom: 10px;
    font-size: 18px;
}

.snake-logo {
    width: 220px;        /* control size */
    max-width: 80%;
    margin-bottom: 12px;
    image-rendering: pixelated; /* keeps pixel-art sharp */
} 

.logo-wrap {
    background: #b7c400;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

.snake-logo {
    width: 200px;
    opacity: 0.9;
    image-rendering: pixelated;
}


.game-over {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.game-over-box {
    background: #4f7c2f;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
}

.game-over-box h2 {
    margin: 0 0 10px;
}

.game-over-box button {
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
}

.hidden {
    display: none;
}



button {
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
}
