/* Стили для игр */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

.demo-user-info {
    background: #e8f5e8;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.demo-user-info h3 {
    margin: 0 0 10px 0;
    color: #2e7d32;
}

.demo-user-info p {
    margin: 5px 0;
    color: #333;
}

.balance-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.reset-button {
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.reset-button:hover {
    background: #f57c00;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-card {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.game-image {
    width: 400px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.game-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
    border: 2px dashed #ddd;
    width: 400px;
    height: 240px;
}

.game-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.game-id {
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.game-brand {
    color: #666;
    margin-bottom: 15px;
}

.game-platforms {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.platform-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.platform-mobile {
    background: #e3f2fd;
    color: #1976d2;
}

.platform-desktop {
    background: #f3e5f5;
    color: #7b1fa2;
}

.play-button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.play-button:hover {
    background: #45a049;
}

.games-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #666;
}

.games-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #667eea;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

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

.game-frame-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 40px;
}

.pagination-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn:active {
    transform: translateY(0);
}

.pagination-btn-active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: 600;
}

.pagination-btn-active:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.pagination-dots {
    padding: 8px 4px;
    color: #666;
    font-size: 14px;
}
