/* The pause menu: glass over the blurred game, and the sound switch that says its state. */
/* ---- Pause ---- */
.pause {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: radial-gradient(ellipse at center, rgba(5, 4, 13, 0.2), rgba(5, 4, 13, 0.6));
}
.pause[hidden] {
    display: none;
}
.pause-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 26px 28px 22px;
    border-radius: 16px;
    background: rgba(18, 21, 45, 0.62);
    border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 24px 60px rgba(5, 4, 13, 0.55);
    animation: view-in 0.2s ease-out;
    max-width: 360px;
    width: 100%;
}
.pause-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.pause-line {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
}
.pause-actions {
    display: grid;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}
.pause-sound {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.pause-sound-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d7f384;
    box-shadow: 0 0 8px rgba(215, 243, 132, 0.8);
}
.pause-sound[aria-checked='false'] .pause-sound-icon {
    background: #f5bdb0;
    box-shadow: none;
}
/* A phone on its side has the height for three rows of actions, not five: they sit two abreast, so the card
   keeps to the screen and Quit is never below its edge */
@media (max-height: 480px) {
    .pause {
        padding: 12px;
    }
    .pause-card {
        max-width: 520px;
        gap: 6px;
        padding: 16px 16px 14px;
    }
    .pause-actions {
        grid-template-columns: 1fr 1fr;
        margin-top: 4px;
    }
    /* sideways the game is the middle of the screen only (stage.css): two buttons across have to fit 240 px */
    .pause-actions .btn {
        padding-inline: 8px;
    }
    .pause-actions [data-pause='quit'] {
        grid-column: 1 / -1;
    }
}
