/*
    GAME PICKER (dialog over the page)
*/
#game-select-menu-container {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: var(--space-3);
    background: rgba(0, 0, 0, 0.7);
}

#game-select-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: min(560px, 100%);
    max-height: 100%;
    padding: var(--space-4);
    border: var(--rule);
    background: var(--surface);
    color: var(--ink);
}

#game-select-menu h1 {
    font-size: var(--fs-xl);
}

#game-select-period {
    font-size: var(--fs-lg);
}

#games-list {
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
    border-top: var(--rule);
    border-bottom: var(--rule);
}

.game-listing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    min-height: 48px;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--hair);
    cursor: pointer;
}

.game-listing:last-child {
    border-bottom: 0;
}

.game-listing:hover {
    background: var(--surface-2);
}

.game-listing span {
    min-width: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

#game-select-page-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}
