.landing-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-actions .secondary-link {
    cursor: pointer;
}

.active-save-status {
    display: grid;
    gap: 3px;
    padding: 14px 18px;
    border: 1px solid #b8d4c1;
    border-radius: 12px;
    background: #edf6ef;
    color: var(--green);
    font-size: 13px!important;
}

.active-save-status strong {
    font: 700 22px "Playfair Display",serif;
}

.active-save-status small {
    color: var(--muted);
}

.active-save-warning {
    position: sticky;
    top: 82px;
    z-index: 9;
    margin: 12px auto -5px;
    padding: 10px 14px;
    border: 1px solid #e1b3ad;
    border-radius: 9px;
    background: #fff0ee;
    color: #943b35;
    font-size: 12px;
    text-align: center;
}

.landing-screen {
    min-height: 70vh;
    display: grid;
    align-content: start;
    grid-template-columns: minmax(0,1fr);
    text-align: center;
    gap: 18px;
    max-width: 900px;
    margin: auto;
    padding-top: clamp(16px,5vh,48px);
}

.landing-screen h1 {
    font: 700 clamp(64px,12vw,140px)/.9 "Playfair Display",serif;
    margin: 0;
}

.landing-screen h1 span {
    color: var(--gold);
}

.landing-screen p {
    font-size: clamp(15px,2vw,22px);
    line-height: 1.6;
}

.landing-screen .primary {
    justify-self: center;
    min-width: 220px;
}

.active-games {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: 6px;
    text-align: left;
}

.active-games h2 {
    margin: 0 0 2px;
    font: 700 28px "Playfair Display",serif;
    text-align: center;
}

.active-game-card {
    display: grid;
    grid-template-columns: minmax(130px,1fr) minmax(220px,1.4fr) auto;
    gap: 18px;
    align-items: center;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 8px 22px #203c2b0c;
}

.active-game-card.invalid {
    border-color: #d99a94;
    background: #fff0ee;
}

.active-game-identity {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.active-game-identity strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font: 700 22px "Playfair Display",serif;
}

.active-game-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
}

.active-game-details {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 13px;
    color: var(--muted);
    font-size: 10px;
}

.active-game-recovery-status {
    color: #943b35;
    font-weight: 800;
}

.active-game-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-game-actions .primary {
    min-width: 0;
    padding: 11px 14px;
}

.active-game-actions .decline-action {
    margin: 0;
}

.active-game-actions button:disabled {
    color: var(--muted);
    cursor: wait;
}

.landing-screen .new-game {
    justify-self: center;
}

.active-save-transfer {
    display: grid;
    justify-items: center;
    gap: 7px;
}

.active-save-transfer>small {
    max-width: 620px;
    color: var(--muted);
    font-size: 10px;
}

.active-save-import {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.active-save-import.disabled {
    color: var(--muted);
    border-color: var(--line);
    cursor: wait;
}

.active-save-import input[type=file] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.active-save-import input[type=file]:disabled {
    cursor: wait;
}

.active-save-transfer-message {
    margin: 4px 0 0!important;
    padding: 9px 12px;
    border-radius: 8px;
    background: #edf6ef;
    color: var(--green);
    font-size: 11px!important;
}

.active-save-transfer-message.error {
    background: #fff0ee;
    color: #943b35;
}

.delete-save-dialog {
    max-width: 520px;
}

.delete-save-dialog>p {
    color: var(--muted);
    line-height: 1.55;
}

.delete-save-dialog .danger-action {
    margin: 0;
}

.active-save-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.active-save-warning button {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}

.active-storage-error {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(720px,92vw);
    padding: 14px 18px;
    border: 1px solid #e1b3ad;
    border-radius: 12px;
    background: #fff0ee;
    color: #943b35;
    font-size: 12px;
}

.active-storage-error .landing-actions {
    margin: 0;
}

.landing-actions .danger-action {
    width: auto;
    margin: 0;
}

@media(max-width:700px) {
    .active-game-card {
        grid-template-columns: 1fr;
    }

    .active-game-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .active-game-actions .primary {
        grid-column: 1/-1;
        width: 100%;
    }

    .active-game-card>.decline-action {
        justify-self: start;
    }
}

html:has(.landing-screen) {
    scrollbar-gutter: stable both-edges;
}

.landing-screen>p {
    max-width: 760px;
    justify-self: center;
}
