/* ============================================================
   SNAKE
============================================================ */

.snake-wrapper {
    position: relative;

    width: 100%;
    max-width: 560px;

    padding: 18px;

    text-align: center;

    border-radius: 10px;

    background:
        radial-gradient(
            circle at 50% 14%,
            rgba(100,255,80,.075),
            transparent 44%
        );
}

.snake-topbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 10px;

    padding: 9px 12px;

    border: 1px solid rgba(107,214,46,.25);
    border-radius: 6px;

    background:
        linear-gradient(
            180deg,
            rgba(10,31,18,.96),
            rgba(5,19,11,.96)
        );

    color: #cfff8e;

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
}

#snake-canvas {
    display: block;

    width: 100%;
    max-width: 500px;

    aspect-ratio: 1 / 1;

    margin: 0 auto;

    border: 1px solid #6bd62e;
    border-radius: 7px;

    background: #07170d;

    box-shadow:
        0 0 0 1px rgba(107,214,46,.10),
        0 0 22px rgba(107,214,46,.12),
        0 14px 28px rgba(0,0,0,.24),
        inset 0 0 28px rgba(107,214,46,.035);

    image-rendering: pixelated;
}

.snake-controls {
    margin-top: 12px;

    color: #afc3cb;

    font-size: 10px;
}

.snake-start-button {
    margin-top: 15px;
}

.snake-status {
    min-height: 20px;

    margin-top: 10px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}

.snake-mobile-controls {
    display: none;

    width: 180px;

    margin: 18px auto 0;
}

.snake-mobile-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.snake-mobile-button {
    width: 52px;
    height: 45px;

    border: 1px solid #57747f;
    border-radius: 4px;

    background: #17343f;
    color: #ffffff;

    font-size: 16px;

    cursor: pointer;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 800px) {

    .snake-mobile-controls {
        display: block;
    }

}

/* ============================================================
   RETRO ARCADE
============================================================ */

.snake-status {
    color: #dfffbd;

    text-shadow:
        0 0 10px rgba(107,214,46,.18);
}

.snake-music-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 36px;

    margin: 0 0 12px auto;
    padding: 7px 12px;

    border: 1px solid #4e7439;
    border-radius: 5px;

    background:
        linear-gradient(
            180deg,
            #173221,
            #0b1d10
        );

    color: #dfffbd;

    font: inherit;
    font-size: 11px;
    font-weight: 700;

    box-shadow:
        0 0 10px rgba(107,214,46,.06);

    cursor: pointer;
}

.snake-music-toggle:hover {
    border-color: #8fea49;

    box-shadow:
        0 0 14px rgba(107,214,46,.14);
}

.snake-music-toggle:focus-visible {
    outline: 2px solid #8fea49;
    outline-offset: 2px;
}

.snake-mobile-button {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04);
}

.snake-mobile-button:hover {
    border-color: #6bd62e;
    background: #1b4427;
}

@media (max-width: 600px) {

    .snake-music-toggle {
        min-height: 44px;
        margin-right: auto;
    }

}
