/* ===================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "ИГРЫ"
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: #0d0d10;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === HERO СЕКЦИЯ === */
.hero {
    padding: 40px 0 60px;
    text-align: center;
}

.hero-container {
    width: 100%;
    max-width: 690px;
    margin: 0 auto;
    padding: 0 10px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.highlight {
    color: #0a84ff;
    font-weight: 600;
}

/* === СЕКЦИИ === */
.games-section,
.apps-section {
    padding: 60px 0;
}

.apps-section {
    background: rgba(255, 255, 255, 0.01);
}

.section-container {
    width: 100%;
    max-width: 690px;
    margin: 0 auto;
    padding: 0 10px;
}

/* === ЗАГОЛОВКИ СЕКЦИЙ === */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
}

/* === РАЗДЕЛИТЕЛЬ === */
.section-divider {
    max-width: 690px;
    margin: 0 auto;
    padding: 0 10px;
}

.divider-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 60px 0;
}

/* === КАРТОЧКИ ИГР === */
.games-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* === ИКОНКА ИГРЫ === */
.game-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* === КОНТЕНТ КАРТОЧКИ === */
.game-content {
    padding: 28px;
}

.game-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.game-title .badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #0a84ff 0%, #0073e6 100%);
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.game-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* === ТЕГИ === */
.game-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.game-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

/* === КАРУСЕЛЬ СКРИНШОТОВ === */
.screenshot-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 0 16px 0;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.screenshot-carousel::-webkit-scrollbar {
    height: 6px;
}

.screenshot-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.screenshot-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.screenshot-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.screenshot-item {
    flex-shrink: 0;
}

.screenshot-item img {
    height: 400px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.screenshot-item img:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.screenshot-placeholder {
    flex: 0 0 180px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.screenshot-placeholder:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

/* === КНОПКИ === */
.game-cta {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.game-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.game-cta.primary {
    background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
    border-color: #0a84ff;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.25);
}

.game-cta.primary:hover {
    background: linear-gradient(135deg, #0073e6 0%, #0059b3 100%);
    border-color: #0073e6;
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.35);
}

/* === CTA СЕКЦИЯ === */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 690px;
    margin: 0 auto;
    padding: 0 10px;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.25);
}

.cta-button:hover {
    background: linear-gradient(135deg, #0073e6 0%, #0059b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.35);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .game-image {
        height: 180px;
        font-size: 48px;
    }
    
    .game-content {
        padding: 24px 20px;
    }
    
    .game-title {
        font-size: 22px;
    }
    
    .screenshot-item img {
        height: 350px;
    }
    
    .screenshot-placeholder {
        height: 350px;
        flex: 0 0 160px;
    }
    
    .cta-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .game-title {
        font-size: 20px;
    }
    
    .screenshot-item img {
        height: 300px;
    }
    
    .screenshot-placeholder {
        height: 300px;
        flex: 0 0 140px;
    }
}