:root {
    --bg-main: #0a0b1e;
    --bg-header: #0f112b;
    --accent-blue: #0088cc;
    --accent-cyan: #00d2ff;
    --gold: #ffcc00;
    --text-white: #ffffff;
    --text-muted: #a0a5b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-blue: 0 0 20px rgba(0, 136, 204, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.5;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.app-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Logo Fix */
.logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 60px; /* Фиксированная высота для четкости */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4));
    object-fit: contain;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-tg-main {
    background: #4a82f6;
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(74, 130, 246, 0.3);
}

.btn-tg-main:hover {
    background: #3b71e3;
    transform: translateY(-1px);
}

.btn-tg-main i {
    background: white;
    color: #4a82f6;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Hero Banner Image */
.hero-banner {
    padding: 10px;
}

.banner-image-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.banner-image-container:hover {
    transform: scale(1.01);
}

.main-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.banner-action-under {
    padding: 20px;
    display: flex;
    justify-content: center;
    background: #0a0b1e;
}

.btn-official-main {
    background: #4a82f6;
    color: white;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(74, 130, 246, 0.4);
    transition: 0.3s;
}

.btn-official-main:hover {
    background: #3b71e3;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 130, 246, 0.6);
}

/* Live Wins Removed */

/* Game Lobby */
.game-lobby {
    padding: 40px 20px;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lobby-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
}

.game-intro-text {
    margin-bottom: 30px;
    padding: 0 5px;
}

.game-intro-text h3 {
    font-size: 20px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.game-intro-text p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.view-all {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* Game Grid & Cards Fix */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.game-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.game-thumb {
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадратные превью для ровности */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: 0.3s;
}

.game-card:hover .play-btn {
    opacity: 1;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
}

.badge.new { background: #ff0055; }
.badge.hot { background: #ff9900; }

.game-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SEO Section */
.seo-section {
    padding: 20px;
}

.seo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.seo-card h2, .seo-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--accent-cyan);
}

.seo-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 15px;
}

.review-item {
    margin-bottom: 20px;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.review-meta strong {
    color: var(--accent-cyan);
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-item p {
    font-size: 14px;
    color: var(--text-white);
    line-height: 1.5;
    font-style: italic;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.feature-item i {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* FAQ Section Styles */
.faq-section {
    padding: 40px 20px;
}

.faq-section h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-q {
    padding: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-q i {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-q i {
    transform: rotate(45deg);
    color: #ff4444; /* Цвет крестика при открытии */
}

.faq-a {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease-out;
    opacity: 0;
}

.faq-item.active .faq-a {
    max-height: 500px;
    padding: 0 20px 20px 20px;
    opacity: 1;
}

/* Live Stats */
.live-stats {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 18px;
    }
}

/* Footer SEO Cloud */
.footer-seo-cloud {
    padding: 30px 20px;
    font-size: 12px;
    color: #333; /* Почти невидимый для юзера, но видимый для робота */
    text-align: justify;
    line-height: 1.2;
}
.app-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

.footer-logo {
    font-weight: 900;
    margin-bottom: 10px;
}

.app-footer p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
}

/* Mobile TabBar Styles */
.mobile-tabbar {
    display: none; /* Скрыто по умолчанию для десктопов */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(15, 17, 43, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-around;
    align-items: center;
    z-index: 1001;
    padding: 0 10px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    flex: 1;
}

.tab-item i {
    font-size: 20px;
}

.tab-item.active {
    color: var(--accent-cyan);
}

.tg-tab {
    position: relative;
    top: -15px;
}

.tg-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc, #00d2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
    border: 4px solid var(--bg-main);
}

.tg-circle i {
    font-size: 24px;
    color: white;
}

/* Mobile Responsive Improvements */
@media (min-width: 769px) {
    .mobile-tabbar {
        display: none !important;
    }
    .btn-scroll-top {
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-tabbar {
        display: flex !important; /* Показываем только на мобилах */
    }
    
    .app-main {
        padding-bottom: 80px; /* Отступ только на мобилах */
    }

    .btn-scroll-top {
        right: 15px;
        bottom: 85px; /* Поднимаем выше таббара только на мобилах */
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-thumb {
        height: 180px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .app-header {
        padding: 10px;
    }

    .logo span {
        font-size: 14px;
    }

    .btn-tg, .btn-reg {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Scroll to Top Button */
.btn-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px; /* Стандартная позиция для десктопа */
    width: 45px;
    height: 45px;
    background: #4a82f6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-scroll-top:hover {
    background: #3b71e3;
    transform: translateY(-5px);
}


