.snake-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background-image: url("../img/logo_camosa_pixel.png");
    background-size: 115px 80px;
    background-repeat: repeat;
    background-position: top left;
}

.snake-shell {
    width: min(100%, 520px);
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(6px);
}

.snake-logo {
    width: min(240px, 70%);
    height: auto;
    object-fit: contain;
}

.snake-score {
    font-weight: 700;
    font-size: 1.1rem;
}

.snake-canvas {
    width: min(88vw, 400px);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid #0f172a;
    background: #ffffff;
    touch-action: none;
}

.snake-help {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    text-align: center;
}

.snake-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.snake-modal__content {
    width: min(90vw, 340px);
    border-radius: 14px;
    background: #ffffff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
}

.snake-modal__content h2 {
    margin: 0 0 10px;
}

.snake-modal__content p {
    margin: 0 0 16px;
}

.snake-modal__content button {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.snake-modal__content button:hover {
    background: #0d5f59;
}
