/* ========== РЕЖИМЫ ИГРЫ ========== */
.game-modes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    justify-content: center;
}

.mode-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.mode-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mode-icon {
    font-size: 1.8em;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.mode-card-content {
    flex: 1;
    min-width: 0;
}

.mode-card h3 {
    font-size: 0.95em;
    margin-bottom: 2px;
    color: #333;
}

.mode-card p {
    color: #666;
    font-size: 0.75em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.mode-info {
    display: flex;
    gap: 10px;
    color: #555;
    font-size: 0.7em;
    font-weight: 500;
}

.mode-card .play-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.8em;
}

/* ========== КНОПКИ ========== */
.play-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.play-btn.small {
    padding: 8px 16px;
    font-size: 0.85em;
}

.play-btn.danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.play-btn.secondary {
    background: linear-gradient(135deg, #6c757d, #545b62) !important;
}

.cancel-btn {
    padding: 10px 24px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #c0392b;
}

/* ========== DESKTOP: карточки в ряд ========== */
@media (min-width: 900px) {
    .game-modes {
        flex-direction: row;
        gap: 16px;
        overflow: visible;
        justify-content: center;
        align-items: stretch;
    }
    
    .mode-card {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 20px;
        justify-content: center;
    }
    
    .mode-icon {
        font-size: 2.5em;
        width: auto;
        margin-bottom: 8px;
    }
    
    .mode-card-content {
        width: 100%;
    }
    
    .mode-card h3 {
        font-size: 1.2em;
        margin-bottom: 6px;
    }
    
    .mode-card p {
        font-size: 0.85em;
        margin-bottom: 8px;
    }
    
    .mode-info {
        justify-content: center;
        margin-bottom: 12px;
        font-size: 0.8em;
    }
    
    .mode-card .play-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

/* ========== БОЛЬШИЕ ЭКРАНЫ ========== */
@media (min-width: 1050px) {
    .game-modes {
        gap: 24px;
    }
    
    .mode-card {
        padding: 28px;
    }
    
    .mode-icon {
        font-size: 3.5em;
        margin-bottom: 12px;
    }
    
    .mode-card h3 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    
    .mode-card p {
        font-size: 0.95em;
        margin-bottom: 12px;
    }
    
    .mode-info {
        font-size: 0.9em;
        margin-bottom: 16px;
        gap: 16px;
    }
    
    .mode-card .play-btn {
        padding: 14px 28px;
        font-size: 1.1em;
    }
}
