/* --- Game-over overlay (try again / victory) --- */

.game-over {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10005;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow-y: auto;
}

.game-over.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.game-over__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 860px;
    width: calc(100% - 32px);
    padding: 32px 20px 28px;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    color: #fff;
}

.game-over__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.game-over__tag {
    display: none;
}

.game-over__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.game-over__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
}

.game-over__boards {
    width: 100%;
}

.game-over__btn {
    padding: 12px 48px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.15s ease, color 0.15s ease;
}

.game-over__btn:hover {
    background: #fff;
    color: #000;
}
