/**
 * GAME SELECTION MODAL - Estilos del Modal de Selección de Partidas
 * Ajedrez de Silicio
 */

/* ===== BOTÓN CAMBIAR PARTIDA ===== */
.change-game-btn {
    background: transparent;
    border: 1px solid var(--theme-border);
    color: var(--theme-accent-primary);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 12px;
    transition: all var(--transition-theme);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.change-game-btn:hover {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-accent-primary);
    color: var(--theme-accent-primary);
    transform: scale(1.05);
    opacity: 1;
}

.change-game-btn:active {
    transform: scale(0.95);
}

/* ===== MODAL DE SELECCIÓN ===== */
.game-selection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-selection-overlay.active {
    opacity: 1;
}

.game-selection-container {
    background: var(--theme-modal-bg);
    border: 2px solid var(--theme-border);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px var(--theme-shadow),
        0 0 0 1px var(--theme-shadow-glow);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    transition: all var(--transition-theme);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.game-selection-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--theme-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    transition: border-color var(--transition-theme);
}

.game-selection-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-theme);
}

.game-selection-close {
    background: transparent;
    border: none;
    color: var(--theme-text-secondary);
    font-size: 32px;
    cursor: pointer;
    transition: all var(--transition-theme);
    line-height: 1;
    opacity: 0.6;
}

.game-selection-close:hover {
    color: var(--theme-accent-secondary);
    transform: rotate(90deg);
    opacity: 1;
}

.game-selection-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.game-selection-footer {
    padding: 16px 24px;
    border-top: 2px solid var(--theme-border);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color var(--transition-theme);
}

.game-selection-print-all {
    background: var(--theme-bg-tertiary);
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    padding: 12px 24px;
    color: var(--theme-accent-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-theme);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
}

.game-selection-print-all:hover {
    background: var(--theme-button-hover);
    border-color: var(--theme-accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--theme-shadow-glow);
    color: var(--theme-button-text-hover);
}

.game-selection-print-all:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.game-selection-print-all:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.game-selection-subtitle {
    color: var(--theme-text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
    transition: color var(--transition-theme);
}

.game-selection-subtitle span {
    color: var(--theme-accent-primary);
    font-weight: bold;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-item {
    background: var(--theme-bg-tertiary);
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-theme);
}

.game-item:hover {
    background: var(--theme-input-bg);
    border-color: var(--theme-accent-primary);
    transform: translateX(5px);
}

.game-item.selected {
    background: var(--theme-button-hover);
    border-color: var(--theme-accent-primary);
}

.game-item.loading {
    position: relative;
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-accent-primary);
    cursor: wait;
    pointer-events: none;
    opacity: 1 !important;
}

.game-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid var(--theme-border);
    border-top-color: var(--theme-accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.game-item.loading .game-players::after {
    content: ' (Cargando...)';
    color: var(--theme-accent-primary);
    font-size: 12px;
    font-weight: normal;
    margin-left: 8px;
}

.game-item.loading:hover {
    transform: none;
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-accent-primary);
}

.game-players {
    font-size: 16px;
    font-weight: bold;
    color: var(--theme-text-secondary);
    margin-bottom: 8px;
    transition: color var(--transition-theme);
}

.game-players .white {
    color: var(--theme-text-secondary);
}

.game-players .vs {
    color: var(--theme-accent-primary);
    margin: 0 8px;
}

.game-players .black {
    color: var(--theme-text-muted);
}

.game-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--theme-text-muted);
    transition: color var(--transition-theme);
}

.game-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-result {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.game-result.white-win {
    background: var(--theme-bg-tertiary);
    color: var(--theme-text-secondary);
}

.game-result.black-win {
    background: var(--theme-input-bg);
    color: var(--theme-text-muted);
}

.game-result.draw {
    background: var(--theme-bg-tertiary);
    color: var(--theme-accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .game-selection-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .game-selection-header {
        padding: 16px;
    }
    
    .game-selection-title {
        font-size: 16px;
    }
    
    .game-item {
        padding: 12px;
    }
    
    .change-game-btn {
        font-size: 12px;
        padding: 3px 6px;
        margin-left: 8px;
    }
}

/* ===== MÓVILES HORIZONTALES ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .game-selection-container {
        max-width: 320px !important;
        max-height: 80vh !important;
    }
    
    .game-selection-header {
        padding: 12px 16px !important;
    }
    
    .game-selection-title {
        font-size: 16px !important;
    }
    
    .game-selection-close {
        font-size: 24px !important;
    }
    
    .game-selection-content {
        padding: 16px !important;
    }
    
    .game-selection-subtitle {
        font-size: 13px !important;
        margin-bottom: 14px !important;
    }
    
    .games-list {
        gap: 10px !important;
    }
    
    .game-item {
        padding: 12px !important;
    }
    
    .game-players {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    
    .game-info {
        font-size: 11px !important;
        gap: 12px !important;
    }
    
    .game-result {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
    
    .game-selection-footer {
        padding: 12px 16px !important;
    }
    
    .game-selection-print-all {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
    
    .change-game-btn {
        font-size: 11px !important;
        padding: 2px 5px !important;
        margin-left: 6px !important;
    }
}

/* ===== SELECTOR 2026: JERARQUÍA, TEMAS Y RESPONSIVIDAD ===== */
body.game-selection-open {
    overflow: hidden;
}

.game-selection-overlay {
    inset: 0;
    width: auto;
    height: auto;
    padding: clamp(12px, 3vw, 32px);
    background: rgba(3, 5, 8, 0.78);
    backdrop-filter: blur(14px) saturate(0.8);
    -webkit-backdrop-filter: blur(14px) saturate(0.8);
    overscroll-behavior: contain;
}

html[data-theme] .game-selection-overlay,
body[data-theme] .game-selection-overlay {
    position: fixed;
    z-index: 10000;
}

.game-selection-container {
    position: relative;
    isolation: isolate;
    width: min(940px, 100%);
    max-width: 940px;
    max-height: min(860px, calc(100dvh - clamp(24px, 6vw, 64px)));
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: clamp(18px, 2.2vw, 26px);
    background: var(--theme-modal-bg);
    box-shadow:
        0 28px 80px var(--theme-shadow),
        0 0 0 1px var(--theme-shadow-glow),
        inset 0 1px 0 color-mix(in srgb, var(--theme-text-secondary) 10%, transparent);
}

.game-selection-container::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 150px;
    background: linear-gradient(110deg, color-mix(in srgb, var(--theme-accent-primary) 15%, transparent), transparent 58%);
    pointer-events: none;
}

.game-selection-header {
    min-height: 112px;
    padding: 22px clamp(20px, 3vw, 32px) 18px;
    gap: 20px;
    border-bottom: 1px solid var(--theme-border);
    align-items: flex-start;
}

.game-selection-heading {
    min-width: 0;
}

.game-selection-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--theme-accent-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.game-selection-title {
    color: var(--theme-text-secondary);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-transform: none;
}

.game-selection-description {
    margin: 8px 0 0;
    color: color-mix(in srgb, var(--theme-text-secondary) 86%, var(--theme-bg-tertiary));
    font-size: 14px;
    line-height: 1.45;
}

.game-selection-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: var(--theme-button-bg);
    color: var(--theme-button-text);
    font: inherit;
    font-size: 27px;
    line-height: 1;
    opacity: 1;
}

.game-selection-close:hover {
    border-color: var(--theme-accent-primary);
    background: var(--theme-button-hover);
    color: var(--theme-button-text-hover);
    transform: none;
    box-shadow: 0 8px 22px var(--theme-shadow-glow);
}

.game-selection-close:focus-visible,
.game-selection-search input:focus-visible,
.game-selection-print-all:focus-visible,
.game-item:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--theme-accent-primary) 72%, transparent);
    outline-offset: 3px;
}

.game-selection-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px clamp(20px, 3vw, 32px);
    border-bottom: 1px solid var(--theme-border);
    background: color-mix(in srgb, var(--theme-bg-secondary) 76%, transparent);
}

.game-selection-search {
    display: block;
    min-width: 0;
}

.game-selection-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.game-selection-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: var(--theme-input-bg);
    color: var(--theme-text-secondary);
    caret-color: var(--theme-accent-primary);
    font: inherit;
    font-size: 14px;
    transition: border-color var(--transition-theme), box-shadow var(--transition-theme), background var(--transition-theme);
}

.game-selection-search input::placeholder {
    color: color-mix(in srgb, var(--theme-text-secondary) 82%, var(--theme-bg-tertiary));
    opacity: 1;
}

.game-selection-search input:focus {
    border-color: var(--theme-accent-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-accent-primary) 13%, transparent);
}

.game-selection-search input:focus-visible {
    outline: none;
}

.game-selection-count {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 104px;
    min-height: 42px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: var(--theme-bg-tertiary);
    color: color-mix(in srgb, var(--theme-text-secondary) 86%, var(--theme-bg-tertiary));
    font-size: 12px;
    white-space: nowrap;
}

.game-selection-count strong {
    margin-right: 4px;
    color: var(--theme-accent-primary);
    font-size: 15px;
}

.game-selection-content {
    min-height: 0;
    padding: clamp(16px, 2.4vw, 24px) clamp(16px, 3vw, 32px);
    background: color-mix(in srgb, var(--theme-bg-primary) 42%, transparent);
    scrollbar-color: var(--theme-accent-primary) transparent;
    scrollbar-width: thin;
}

.game-selection-content::-webkit-scrollbar {
    width: 8px;
}

.game-selection-content::-webkit-scrollbar-track {
    background: transparent;
}

.game-selection-content::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 99px;
    background: var(--theme-accent-primary);
    background-clip: padding-box;
}

.games-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.game-item-shell {
    min-width: 0;
}

.game-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "top result"
        "players players"
        "info info";
    gap: 10px 14px;
    width: 100%;
    min-height: 142px;
    padding: 15px 16px;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: var(--theme-bg-tertiary);
    color: var(--theme-text-secondary);
    font: inherit;
    text-align: left;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-shadow) 35%, transparent);
    transition:
        border-color var(--transition-theme),
        background var(--transition-theme),
        box-shadow 180ms ease,
        transform 180ms ease;
}

.game-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--theme-accent-primary);
    opacity: 0;
    transition: opacity 180ms ease;
}

.game-item:hover {
    border-color: var(--theme-accent-primary);
    background: var(--theme-input-bg);
    transform: translateY(-2px);
    box-shadow: 0 13px 28px var(--theme-shadow);
}

.game-item:hover::before,
.game-item.selected::before,
.game-item:focus-visible::before {
    opacity: 1;
}

.game-item.selected {
    border-color: var(--theme-accent-primary);
    background: var(--theme-bg-tertiary);
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent-primary) 14%, var(--theme-bg-tertiary)), var(--theme-bg-tertiary) 68%);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--theme-shadow-glow) 54%, transparent);
}

.game-item:disabled:not(.loading) {
    cursor: wait;
    opacity: 0.42;
}

.game-item-topline {
    grid-area: top;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.game-number {
    color: var(--theme-accent-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.game-current {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 3px 8px;
    border: 1px solid color-mix(in srgb, var(--theme-accent-primary) 48%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-accent-primary) 12%, transparent);
    color: var(--theme-accent-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-players {
    grid-area: players;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.game-player {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.game-player.black {
    text-align: right;
}

.game-player-label {
    color: color-mix(in srgb, var(--theme-text-secondary) 84%, var(--theme-bg-tertiary));
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
}

.game-player-name {
    overflow: hidden;
    color: var(--theme-text-secondary);
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 750;
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-players .vs {
    margin: 0 0 1px;
    color: var(--theme-accent-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-info {
    grid-area: info;
    display: flex;
    align-items: center;
    gap: 7px 12px;
    min-width: 0;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--theme-border);
    color: color-mix(in srgb, var(--theme-text-secondary) 86%, var(--theme-bg-tertiary));
    font-size: 11px;
}

.game-info-item {
    display: inline-flex;
    min-width: 0;
    align-items: baseline;
    gap: 5px;
}

.game-info-item.event {
    flex: 1 1 130px;
}

.game-info-label {
    color: color-mix(in srgb, var(--theme-text-secondary) 84%, var(--theme-bg-tertiary));
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-info-value {
    overflow: hidden;
    color: color-mix(in srgb, var(--theme-text-secondary) 90%, var(--theme-bg-tertiary));
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-info-empty {
    color: color-mix(in srgb, var(--theme-text-secondary) 86%, var(--theme-bg-tertiary));
    font-size: 11px;
}

.game-result {
    grid-area: result;
    align-self: start;
    justify-self: end;
    min-width: 42px;
    padding: 5px 9px;
    border: 1px solid var(--theme-border);
    border-radius: 9px;
    background: var(--theme-input-bg);
    color: var(--theme-text-secondary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.game-result.white-win,
.game-result.black-win,
.game-result.draw {
    background: var(--theme-input-bg);
    color: var(--theme-text-secondary);
}

.game-result.draw {
    color: var(--theme-accent-primary);
}

.game-loading-label {
    position: absolute;
    inset: auto 13px 12px auto;
    display: none;
    padding-left: 20px;
    color: var(--theme-accent-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.game-item.loading {
    border-color: var(--theme-accent-primary);
    cursor: wait;
    opacity: 1;
    transform: none;
}

.game-item.loading::after {
    top: auto;
    right: auto;
    bottom: 14px;
    left: 16px;
    width: 12px;
    height: 12px;
    border-width: 2px;
    transform: none;
    animation: gameSelectionSpin 0.75s linear infinite;
}

.game-item.loading .game-loading-label {
    display: block;
}

.game-item.loading .game-players::after {
    content: none;
}

@keyframes gameSelectionSpin {
    to { transform: rotate(360deg); }
}

.game-selection-empty {
    display: grid;
    min-height: 220px;
    place-content: center;
    gap: 7px;
    padding: 30px;
    border: 1px dashed var(--theme-border);
    border-radius: 16px;
    color: var(--theme-text-muted);
    text-align: center;
}

.game-selection-empty[hidden] {
    display: none;
}

.game-selection-empty strong {
    color: var(--theme-text-secondary);
    font-size: 17px;
}

.game-selection-empty span {
    color: color-mix(in srgb, var(--theme-text-secondary) 86%, var(--theme-bg-tertiary));
    font-size: 13px;
}

.game-selection-footer {
    min-height: 76px;
    padding: 14px clamp(20px, 3vw, 32px);
    border-top: 1px solid var(--theme-border);
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: color-mix(in srgb, var(--theme-bg-secondary) 84%, transparent);
}

.game-selection-footer-copy {
    max-width: 460px;
    margin: 0;
    color: color-mix(in srgb, var(--theme-text-secondary) 86%, var(--theme-bg-tertiary));
    font-size: 12px;
    line-height: 1.4;
}

.game-selection-print-all {
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-button-bg);
    color: var(--theme-button-text);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.025em;
    text-transform: none;
    white-space: nowrap;
}

.game-selection-print-all:hover {
    border-color: var(--theme-accent-primary);
    background: var(--theme-button-hover);
    color: var(--theme-button-text-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px var(--theme-shadow-glow);
}

.game-selection-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 819px) {
    .games-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-item {
        min-height: 132px;
    }
}

@media (max-width: 540px) {
    .game-selection-overlay {
        padding: 8px;
        align-items: flex-end;
    }

    .game-selection-container {
        width: 100%;
        max-height: calc(100dvh - 16px);
        border-radius: 22px 22px 14px 14px;
    }

    .game-selection-header {
        min-height: 94px;
        padding: 17px 16px 14px;
    }

    .game-selection-title {
        font-size: 22px;
    }

    .game-selection-description {
        margin-top: 5px;
        font-size: 12px;
    }

    .game-selection-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 11px 12px;
    }

    .game-selection-search input {
        min-height: 44px;
        padding-inline: 12px;
        font-size: 13px;
    }

    .game-selection-count {
        min-width: 74px;
        min-height: 40px;
        padding-inline: 10px;
    }

    .game-selection-count span {
        display: none;
    }

    .game-selection-content {
        padding: 12px;
    }

    .games-list {
        gap: 10px;
    }

    .game-item {
        min-height: 125px;
        padding: 13px 14px;
        border-radius: 14px;
    }

    .game-player-name {
        font-size: 14px;
    }

    .game-info {
        flex-wrap: wrap;
        gap: 5px 10px;
        padding-top: 8px;
    }

    .game-info-item.event {
        flex-basis: 100%;
    }

    .game-selection-footer {
        min-height: 66px;
        padding: 10px 12px;
    }

    .game-selection-footer-copy {
        display: none;
    }

    .game-selection-print-all {
        width: 100%;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .game-selection-overlay {
        padding: 8px;
        align-items: center;
    }

    .game-selection-container {
        width: min(940px, calc(100vw - 16px)) !important;
        max-width: 940px !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 16px;
    }

    .game-selection-header {
        min-height: 64px;
        padding: 10px 16px !important;
    }

    .game-selection-eyebrow,
    .game-selection-description {
        display: none;
    }

    .game-selection-title {
        font-size: 19px !important;
    }

    .game-selection-toolbar {
        padding: 8px 16px;
    }

    .game-selection-content {
        padding: 10px 16px !important;
    }

    .games-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .game-item {
        min-height: 108px;
        padding: 10px 12px !important;
        gap: 6px 10px;
    }

    .game-player-label,
    .game-info-label {
        display: none;
    }

    .game-info {
        padding-top: 6px;
    }

    .game-selection-footer {
        min-height: 54px;
        padding: 7px 16px !important;
    }

    .game-selection-print-all {
        min-height: 38px;
        padding: 8px 14px !important;
        font-size: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-selection-container,
    .game-item,
    .game-selection-close,
    .game-selection-print-all {
        animation: none;
        transition-duration: 0.01ms;
    }
}
