/* ===== Menu arcade ===== */
.menu-screen {
    position: relative;
    isolation: isolate;
    min-height: min(640px, calc(100vh - 64px));
    justify-content: center;
    gap: 22px;
}

.menu-screen::before,
.menu-screen::after {
    position: absolute;
    z-index: -1;
    width: 132px;
    height: 132px;
    border: 1px solid rgba(216, 239, 118, 0.22);
    content: "";
    transform: rotate(45deg);
}

.menu-screen::before {
    top: 11%;
    left: 10%;
}

.menu-screen::after {
    right: 8%;
    bottom: 10%;
    width: 78px;
    height: 78px;
    border-color: rgba(242, 139, 114, 0.32);
}

.menu-kicker {
    color: var(--mint);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.menu-art {
    position: relative;
    width: 136px;
    height: 92px;
    transform: rotate(-7deg);
    animation: art-enter 520ms 80ms both;
}

.pixel-snake,
.pixel-food {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
}

.pixel-snake {
    border: 2px solid var(--night);
    border-radius: 6px;
    background: var(--mint);
    box-shadow: inset 0 -4px rgba(21, 34, 29, 0.16);
}

.pixel-head {
    top: 26px;
    left: 72px;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background: var(--lime);
}

.pixel-head::before,
.pixel-head::after {
    position: absolute;
    top: 6px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--night);
    content: "";
}

.pixel-head::before { left: 5px; }
.pixel-head::after { right: 5px; }
.pixel-body-one { top: 28px; left: 50px; }
.pixel-body-two { top: 28px; left: 28px; }
.pixel-body-three { top: 50px; left: 28px; }
.pixel-body-four { top: 50px; left: 6px; }

.pixel-food {
    top: 8px;
    right: 8px;
    width: 13px;
    height: 13px;
    border: 2px solid var(--night);
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px rgba(242, 139, 114, 0.16);
}

.menu-screen h1 {
    display: grid;
    gap: 3px;
    font-size: 3.2rem;
}

.menu-actions {
    width: min(100%, 300px);
    display: grid;
    gap: 11px;
    margin-top: 4px;
}

.language-screen {
    min-height: min(480px, calc(100vh - 64px));
    justify-content: center;
    gap: 24px;
}

.language-screen > h1 {
    font-size: 2.4rem;
}

.language-options {
    width: min(100%, 340px);
    display: grid;
    gap: 12px;
}

.language-option {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 12px 18px;
    background: var(--panel);
    color: var(--paper);
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.language-option:hover,
.language-option[aria-pressed="true"] {
    transform: translateY(-2px);
    border-color: var(--mint);
    background: var(--panel-light);
}

.language-option:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.language-flag {
    width: 32px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ===== Botoes ===== */
.action-button,
.back-button {
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 13px 20px;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.action-button:hover,
.back-button:hover {
    transform: translateY(-2px);
}

.action-button:focus-visible,
.back-button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.primary-button {
    background: var(--lime);
    color: var(--night);
    box-shadow: 0 4px 0 #829343;
}

.primary-button:hover {
    background: #e5f89a;
}

.secondary-button,
.back-button {
    border-color: var(--line);
    background: var(--panel);
    color: var(--paper);
}

.secondary-button:hover,
.back-button:hover {
    border-color: var(--mint);
    background: var(--panel-light);
}

/* ===== Ajustes do menu em telas pequenas ===== */
@media (max-width: 480px) {
    .menu-screen {
        min-height: calc(100vh - 40px);
    }

    .menu-screen::before {
        top: 12%;
        left: 1%;
        width: 88px;
        height: 88px;
    }

    .menu-screen::after {
        right: 1%;
        bottom: 11%;
    }

    .menu-screen h1 {
        font-size: 2.8rem;
    }

    .language-screen {
        min-height: calc(100vh - 40px);
    }

    .language-screen > h1 {
        font-size: 2rem;
    }
}