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

:root {
    --bg-color: #0f1419;
    --card-bg: #1a2332;
    --border-color: #2a3446;
    --primary-color: #4dabf7;
    --secondary-color: #ff6b6b;
    --text-color: #ffffff;
    --text-muted: #c8d0e0;
    --header-height: 120px;
    --container-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Контейнер для контента */
.page-container {
    padding-bottom: 70px; /* Для мобильного меню */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Верхняя панель */
.top-bar {
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.logo span {
    color: var(--secondary-color);
}

/* Верхнее меню */
.top-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.top-menu-item {
    padding: 12px 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    min-width: 120px;
    text-align: center;
}

.top-menu-item.active {
    background: linear-gradient(135deg, #4dabf7 0%, #228be6 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(77, 171, 247, 0.3);
}

.top-menu-item:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
    color: white;
}

/* Основной контент */
.content {
    padding: 30px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Сетка карточек */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Карточки контента */
.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.card-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Игровая статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Кнопка "Играть" */
.play-btn {
    display: inline-block;
    width: auto;
    min-width: 250px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fa5252 100%);
    color: white;
    text-align: center;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 40px auto;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.play-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.5);
}

/* Нижнее меню */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
    flex: 1;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 5px;
}

.nav-item.active {
    color: var(--primary-color);
    background-color: rgba(77, 171, 247, 0.1);
}

.nav-item.play {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fa5252 100%);
    color: white;
    padding: 15px 0;
    border-radius: 15px;
    margin: -20px 10px 0;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* === АДАПТИВНОСТЬ === */

/* Мобильные устройства  */
@media (max-width: 768px) {
    .page-container {
        padding-bottom: 80px;
    }

    .top-menu {
        display: flex;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 5px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .top-menu::-webkit-scrollbar {
        display: none; /* Прячем скроллбар для Chrome/Safari */
    }

    .top-menu-item {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 10px 15px;
        font-size: 14px;
    }

    .top-bar {
        padding: 10px 15px;
    }

    .logo {
        margin-bottom: 10px;
        font-size: 24px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 24px;
    }

    .play-btn {
        width: 100%;
    }
}

/* Мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 22px;
    }

    .stat-value {
        font-size: 28px;
    }
}

/* Большие мониторы */
@media (min-width: 1400px) {
    :root {
        --container-width: 1400px;
    }

    .section-title {
        font-size: 32px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-text {
        font-size: 18px;
    }

    .stat-value {
        font-size: 40px;
    }
}

/* нижние кнопки для пк */
@media (min-width: 992px) {
    .bottom-nav {
        padding: 8px 0;
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }

    .nav-item {
        font-size: 11px;
        padding: 4px 8px;
    }

    .nav-item i {
        font-size: 18px;
    }

    .nav-item.play {
        padding: 12px 0;
        margin: -15px 10px 0;
        border-radius: 12px;
    }
}