/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #1A1212;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll when sidebar is open */
    width: 100%;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Утилиты */
.bg-black-x {
    background-color: #000;
}

.text-white-y {
    color: #fff;
}

.section-container-k {
    max-width: 1400px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Навигационная панель */
.fixed-navbar-m {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: #0e0e0e;
    border-bottom: 1px solid #222;
    z-index: 50;
    overflow: hidden; /* Prevent content overflow */
}

.navbar-container-g {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    max-width: 100%; /* Ensure container doesn't exceed viewport */
}

@media (min-width: 768px) {
    .navbar-container-g {
        padding: 0 1.5rem;
    }
}

/* Гамбургер-меню */
.hambur-menu-w {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    color: #fff;
    font-size: 1.25rem;
    border-radius: 50%;
    background-color: #292929;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 0;
    line-height: 1;
}

.hambur-menu-w i {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .hambur-menu-w {
        order: -1;
        margin-left: 0;
        margin-right: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .hambur-menu-w {
        margin-right: 1rem;
    }
}

.navbar-left-y {
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .navbar-left-y {
        margin-right: 1rem;
        order: 0;
    }
}

.logo-img-v {
    height: 28px;
}

@media (min-width: 768px) {
    .logo-img-v {
        height: 40px;
    }
}

.navbar-center-d {
    display: none;
}

@media (min-width: 768px) {
    .navbar-center-d {
        display: block;
        flex-grow: 1;
        margin-left: 1rem;
    }
}

.nav-pills-j {
    display: flex;
    align-items: center;
    background-color: #222222;
    border-radius: 9999px;
    padding: 0.375rem 0.5rem;
    width: fit-content;
    margin-left: 0;
}

@media (min-width: 992px) {
    .nav-pills-j {
        margin-left: 1rem;
    }
}

.nav-pill-g {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-pill-g:not(.active-f) {
    color: #9ca3af;
}

.nav-pill-g:not(.active-f):hover {
    color: #fff;
}

.navbar-right-v {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.missio-btn-j {
    display: none !important; /* Force hide on mobile */
}

@media (min-width: 768px) {
    .missio-btn-j {
        display: flex !important; /* Show only on desktop */
        align-items: center;
        gap: 0.25rem;
        background-color: #4050e6;
        border-radius: 9999px;
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 500;
    }
}

.missio-icon-j {
    width: 20px;
    height: 20px;
}

.notifi-badge-l {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    color: #4050e6;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

.search-btn-i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #292929;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.search-btn-i:hover {
    color: #fff;
}

/* Language Switcher */
.langua-switch-c {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.5rem;
}

.langua-switch-c .lang-btn-m {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s;
}

.langua-switch-c .lang-btn-m.active-f {
    background-color: #4b5563;
    color: #fff;
}

/* Remove mobile-only restriction for language switcher */
@media (min-width: 768px) {
    .langua-switch-c.mobile-only {
        display: flex !important; /* Override any previous display:none */
    }
}

.auth-button-y {
    display: none;
}

@media (min-width: 768px) {
    .auth-button-y {
        display: flex;
        gap: 0.5rem;
    }
}

.login-btn-v {
    border-radius: 9999px;
    background-color: #292929;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    transition: background-color 0.2s;
}

@media (min-width: 768px) {
    .login-btn-v {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
}

.login-btn-v:hover {
    background-color: #333;
}

.regist-btn-o {
    border-radius: 9999px;
    background: linear-gradient(to bottom, #e6b829, #edc849);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #000;
    transition: filter 0.2s;
}

@media (min-width: 768px) {
    .regist-btn-o {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
}

.regist-btn-o:hover {
    filter: brightness(110%);
}

/* Мобильное боковое меню */
.mobile-sidebar-q {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #0e0e0e;
    z-index: 100;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar-q.open {
    left: 0;
}

.mobile-sidebar-header-r {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #222;
}

.mobile-sidebar-logo-b {
    height: 30px;
}

.close-sidebar-p {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    color: #9ca3af;
    border-radius: 50%;
    background-color: #222;
}

.mobile-sidebar-content-q {
    padding: 1rem;
}

.mobile-sidebar-nav-h {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-sidebar-item-q {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mobile-sidebar-item-q:not(.active-f) {
    color: #9ca3af;
}

.mobile-sidebar-item-q.active-f {
    background-color: #222;
    color: #fff;
}

.mobile-sidebar-item-q:not(.active-f):hover {
    background-color: #1a1a1a;
    color: #fff;
}

.mobile-sidebar-auth-r {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.login-btn-full-g, .regist-btn-full-n {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.login-btn-full-g {
    background-color: #292929;
    color: #fff;
}

.regist-btn-full-n {
    background: linear-gradient(to bottom, #e6b829, #edc849);
    color: #000;
}

.mobile-sidebar-langua-d {
    padding-top: 1rem;
    border-top: 1px solid #222;
    display: block !important; /* Force display */
    visibility: visible !important; /* Ensure visibility */
    opacity: 1 !important; /* Ensure opacity */
    margin-top: 1rem;
}

.mobile-sidebar-langua-d p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: block !important;
}

.langua-switch-full-p {
    display: flex !important;
    gap: 0.5rem;
}

.langua-switch-full-p .lang-btn-m {
    flex: 1;
    display: block;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: all 0.2s;
    color: #9ca3af;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.langua-switch-full-p .lang-btn-m.active-f {
    background-color: #4b5563;
    color: #fff;
}

.sidebar-overla-j {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overla-j.visible {
    visibility: visible;
    opacity: 1;
}

/* Основной контент */
main {
    padding-top: 64px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 60px;
}

/* Hero секция */
.hero-g {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .hero-g {
        height: 340px;
        background-position: 30% 15%;
    }
}

.hero-content-p {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content-p h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero-content-p p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.hero-button-e {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0;
}

@media (max-width: 767px) {
    .hero-button-e {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .regist-btn-large-b,
    .login-btn-large-j {
        width: 100%;
        padding: 1rem;
        font-size: 1.125rem;
    }
}

.regist-btn-large-b {
    border-radius: 9999px;
    background: linear-gradient(to bottom, #e6b829, #edc849);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    transition: filter 0.2s;
    white-space: nowrap;
}

.regist-btn-large-b:hover {
    filter: brightness(110%);
}

.login-btn-large-j {
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.login-btn-large-j:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 374px) {
    .hero-content-p {
        padding: 0;
    }

    .regist-btn-large-b,
    .login-btn-large-j {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Дополнительные медиа-запросы для разных размеров экранов */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-g {
        min-height: 80vh;
    }

    .hero-content-p h1 {
        font-size: 2.25rem;
    }
}

/* Секция способов оплаты */
.paymen-method-p {
    padding: 3rem 0;
    background-color: #240e0e;
    margin-top: -1px;
}

.paymen-method-p h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #e6b829;
}

.paymen-icons-d {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .paymen-icons-d {
        gap: 1rem;
    }
}

.paymen-icon-j {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.paymen-logo-q {
    height: 1.75rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .paymen-logo-q {
        height: 2rem;
    }
}

.paymen-icon-j:hover .paymen-logo-q {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Секция популярных игр */
.popula-games-j {
    padding: 3rem 0;
}

.popula-games-j h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-left: 0;
    margin-bottom: 1rem;
}

.games-filter-w {
    display: flex;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.games-filter-w::-webkit-scrollbar {
    display: none;
}

.catego-tabs-h {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.game-type-tabs {
    display: none;
}

.games-section-k {
    padding: 0;
    margin: 0 0 2rem 0;
}

.games-section-k h3 {
    padding: 0;
    margin: 0 0 1rem 0;
}

.games-grid-y {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    padding: 1rem 0;
}

.game-card-f {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.2s;
    aspect-ratio: 3/4;
    width: 100%;
}

.game-img-f {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.game-img-f img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.game-overla-m {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 0.5rem;
}

.game-card-f:hover .game-overla-m {
    opacity: 1;
}

.play-btn-s {
    background-color: #e6b829;
    color: #000;
    font-weight: 700;
    padding: 0.375rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: background-color 0.2s, transform 0.2s;
    transform: scale(0.9);
}

.game-card-f:hover .play-btn-s {
    transform: scale(1);
}

.play-btn-s:hover {
    background-color: #edc849;
}

.favori-btn-t {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    padding: 0.25rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-tag-f {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

.game-tag-f.hot {
    background-color: #dc2626;
}

.game-tag-f.new {
    background-color: #2563eb;
}

.game-info-u {
    padding: 0.75rem;
    background: #1a1a1a;
}

.game-provid-d {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.game-name-s {
    font-size: 0.875rem;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.load-more-y {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.load-more-btn-i {
    background-color: #e6b829;
    color: #000;
    font-weight: 700;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.load-more-btn-i:hover {
    background-color: #edc849;
}

/* Секция провайдеров игр */
.game-provid-u {
    padding: 3rem 0;
    background-color: transparent;
}

.game-provid-u h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.provid-grid-s {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .provid-grid-s {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .provid-grid-s {
        grid-template-columns: repeat(6, 1fr);
    }
}

.provid-logo-d {
    background-color: #240e0e;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    aspect-ratio: 16/9;
}

.provid-logo-d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
    max-height: 40px;
}

.provid-logo-d:hover {
    transform: translateY(-5px);
}

.provid-logo-d:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Секция геймификации */
.gamifi-t {
    padding: 3rem 0;
    background-color: transparent;
}

.gamifi-t h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gamifi-featur-y {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gamifi-featur-y {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gamifi-featur-y {
        grid-template-columns: repeat(3, 1fr);
    }
}

.featur-card-w {
    background-color: #240e0e;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.featur-card-w:hover {
    transform: translateY(-5px);
}

.featur-icon-h {
    font-size: 2rem;
    color: #FFB800;
    margin-bottom: 1rem;
}

.featur-card-w h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.featur-card-w p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Секция особенностей */
.featur-e {
    padding: 0;
    background-color: transparent;
    margin-top: -1rem;
}

.featur-grid-u {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .featur-grid-u {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .featur-grid-u {
        grid-template-columns: repeat(2, 1fr);
    }
}

.featur-box-r {
    background-color: #240e0e;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1;
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.featur-box-r:hover {
    transform: translateY(-5px);
}

.featur-box-r h3 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.9;
}

.featur-img-container-k {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.featur-box-r img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

@media (max-width: 480px) {
    .featur-box-r h3 {
        font-size: 0.875rem;
    }
    
    .featur-grid-u {
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .featur-box-r {
        padding: 0.75rem 0;
    }
}

/* Секция мобильного приложения */
.mobile-app-l {
    padding: 3rem 0;
    background-color: transparent;
}

.mobile-app-content-t {
    background-color: #240e0e;
    border-radius: 1rem;
    padding: 3rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 280px;
}

.mobile-app-text-y {
    max-width: 600px;
    z-index: 1;
}

.mobile-app-l h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.mobile-app-l p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.mobile-app-img-d {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 120%;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-app-img-d img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.app-store-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.app-store-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.app-store-button:hover {
    color: #fff;
}

.app-rating {
    background: rgba(35, 24, 24, 0.5);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.app-rating img {
    width: 24px;
    height: 24px;
}

.app-rating .stars {
    color: #FFB800;
}

.app-rating .verified {
    background: #2F9B4E;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.discover-button {
    background: linear-gradient(to bottom, #FFD700, #FFB800);
    color: #000;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    transition: filter 0.2s;
    border: none;
    cursor: pointer;
}

.discover-button:hover {
    filter: brightness(1.1);
}

/* Футер */
.footer-p {
    padding: 3rem 0;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container-n {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-top-o {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-nav-n {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.footer-nav-column-v h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    opacity: 0.7;
}

.footer-nav-column-v ul {
    list-style: none;
}

.footer-nav-column-v li {
    margin-bottom: 0.75rem;
}

.footer-nav-column-v a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-nav-column-v a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-o {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-info-j p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.help-section {
    text-align: right;
}

.help-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.help-section p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.help-section .email {
    color: #FFB800;
    text-decoration: none;
    font-weight: 500;
}

/* Мобильная нижняя навигация */
.mobile-bottom-nav-l {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0e0e0e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    z-index: 1000;
    display: none; /* Hidden by default */
}

@media (max-width: 767px) {
    .mobile-bottom-nav-l {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        height: 64px;
    }

    .mobile-nav-item-y {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #9ca3af;
        text-decoration: none;
        font-size: 0.75rem;
        gap: 0.25rem;
        padding: 0.25rem;
        transition: color 0.2s;
    }

    .mobile-nav-item-y i {
        font-size: 1.25rem;
        margin-bottom: 0.125rem;
    }

    .mobile-nav-item-y span {
        font-size: 0.75rem;
        white-space: nowrap;
        text-align: center;
    }

    .mobile-nav-item-y.active-f {
        color: #e6b829;
    }

    /* Add padding to main content to account for bottom nav */
    main {
        padding-bottom: 64px;
    }

    /* Ensure footer has enough padding at bottom */
    .footer-p {
        padding-bottom: calc(64px + 2rem);
    }
}

/* Стили для страницы игр */
.games-page-main-l {
    padding-top: 64px;
}

.games-header {
    text-align: center;
    padding: 2.5rem 1rem;
    background-color: #240e0e;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .games-header {
        padding: 3rem 1rem;
        margin-bottom: 2rem;
    }
}

.games-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

@media (min-width: 768px) {
    .games-header h1 {
        font-size: 2.25rem;
    }
}

.games-header p {
    color: #9ca3af;
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .games-header p {
        font-size: 1rem;
    }
}

.games-filter-c {
    padding: 0 0 2rem 0;
}

.filter-container-r {
    background-color: #1f1f1f;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a2a2a;
}

.search-filter-y {
    margin-bottom: 1.5rem;
}

.search-input-w {
    display: flex;
    align-items: center;
    background-color: #2d2d2d;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #3a3a3a;
}

.search-input-w i {
    color: #9ca3af;
    margin-right: 0.5rem;
}

.search-input-w input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-size: 0.875rem;
}

.search-input-w input::placeholder {
    color: #9ca3af;
}

.catego-filter-u, .provider-filter {
    margin-bottom: 1.5rem;
}

.catego-filter-u h3, .provider-filter h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e6b829;
}

.filter-option-v {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-option-u {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background-color: #2d2d2d;
    color: #9ca3af;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

@media (min-width: 768px) {
    .filter-option-u {
        font-size: 0.875rem;
        padding: 0.375rem 1rem;
    }
}

.filter-option-u.active-f {
    background-color: #e6b829;
    color: #000;
    font-weight: 500;
}

.filter-option-u:not(.active-f):hover {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #4a4a4a;
}

.games-grid-section-y {
    padding-bottom: 3rem;
}

.games-grid-section-y .section-container-k {
    max-width: 1400px;
    margin: 0 auto;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #1f1f1f;
    color: #9ca3af;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination-button.active-f {
    background-color: #e6b829;
    color: #000;
    font-weight: 600;
}

.pagination-button:not(.active-f):hover {
    background-color: #3a3a3a;
    color: #fff;
}

.pagination-dots {
    color: #9ca3af;
    padding: 0 0.25rem;
}

/* Дополнительные стили для игр */
.game-card-container {
    aspect-ratio: 1 / 1.5;
    height: 100%;
}

.fallback-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 90%;
}

/* Дополнительные стили из index.html */
.section-container-k {
    max-width: 1400px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.popula-games-j h2 {
    padding-left: 0;
    margin-bottom: 1rem;
}

.games-filter-w {
    display: flex;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.games-filter-w::-webkit-scrollbar {
    display: none;
}

.catego-tabs-h {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.game-type-tabs {
    display: none;
}

.games-section-k .games-grid-y {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .games-section-k .games-grid-y {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .games-section-k .games-grid-y {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    
    .section-container-k {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .games-section-k .games-grid-y {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

.game-img-f {
    aspect-ratio: 3/4;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    overflow: hidden;
}

.game-info-u {
    height: 60px !important;
    margin-top: 0.75rem;
}

.games-section-k {
    padding: 0;
    margin: 0 0 2rem 0;
}

.games-section-k h3 {
    padding: 0;
    margin: 0 0 1rem 0;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 60px;
}

.paymen-method-p {
    background-color: #0e0e0e;
    padding: 1.5rem 0;
    margin-top: -1px;
}

.paymen-method-p h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e6b829;
}

.paymen-icons-d {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .paymen-icons-d {
        gap: 1rem;
    }
}

.paymen-icon-j {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.paymen-logo-q {
    height: 1.75rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .paymen-logo-q {
        height: 2rem;
    }
}

.paymen-icon-j:hover .paymen-logo-q {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.section-header-a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    text-decoration: none;
}

.section-header-a h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.2s;
}

.section-header-a:hover h2 {
    color: #FFB800;
}

/* Mobile view adjustments for game cards */
@media (max-width: 767px) {
    .games-grid-y {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .game-card-f {
        margin-bottom: 0.5rem;
    }
}

/* Hide Misiones section in mobile */
@media (max-width: 767px) {
    h3:contains("Misiones"),
    div.featur-box-r:has(img[alt="Misiones"]),
    .featur-box-r:has(> .featur-img-container-k > img[alt="Misiones"]) {
        display: none !important;
    }
}

/* Hide Misiones feature box in mobile */
@media (max-width: 767px) {
    .mision-featur-z {
        display: none !important;
    }
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.fixed-navbar-m {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: #0e0e0e;
    border-bottom: 1px solid #222;
    z-index: 50;
    overflow: hidden; /* Prevent content overflow */
}

.navbar-container-g {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    max-width: 100%; /* Ensure container doesn't exceed viewport */
}

@media (max-width: 767px) {
    .navbar-container-g {
        padding: 0 0.5rem;
    }

    .navbar-right-v {
        display: flex;
        align-items: center;
        gap: 0.25rem; /* Reduce gap for mobile */
    }

    /* Adjust logo size */
    .logo-img-v {
        height: 24px;
        width: auto;
    }

    /* Hide language switcher on mobile */
    .langua-switch-c.mobile-only {
        display: none;
    }

    /* Show and style auth buttons */
    .auth-button-y {
        display: flex;
        gap: 0.25rem;
    }

    .login-btn-v,
    .regist-btn-o {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Adjust search button size */
    .search-btn-i {
        width: 32px;
        height: 32px;
    }

    /* Adjust hamburger menu */
    .hambur-menu-w {
        width: 32px;
        height: 32px;
        margin-right: 0.25rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 767px) {
    .section-container-k {
        max-width: 100vw;
        padding: 0 1rem;
        overflow: hidden;
    }

    .featur-grid-u {
        margin: 0;
        padding: 0 1rem;
        width: auto;
    }

    .game-provid-u .provid-grid-s {
        margin: 0;
        padding: 0;
    }

    .mobile-app-content-t {
        overflow: hidden;
    }

    .footer-container-n {
        max-width: 100vw;
        overflow: hidden;
        padding: 0 1rem;
    }

    /* Ensure all grids don't cause horizontal scroll */
    .games-grid-y,
    .provid-grid-s,
    .gamifi-featur-y,
    .featur-grid-u {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Fix category tabs scrolling */
    .games-filter-w {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .catego-tabs-h {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0;
        padding-bottom: 0.5rem;
    }

    .catego-tabs-h::-webkit-scrollbar {
        display: none;
    }
}

/* Mobile auth buttons and footer fixes */
@media (max-width: 767px) {
    /* Show auth buttons on mobile */
    .auth-button-y {
        display: flex;
        gap: 0.5rem;
    }

    /* Adjust auth buttons size */
    .login-btn-v,
    .regist-btn-o {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Footer layout fixes */
    .footer-top-o {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .footer-nav-n {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-nav-column-v {
        margin-bottom: 1rem;
    }

    .footer-bottom-o {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-info-j {
        order: 2;
    }

    .footer-social-c {
        order: 1;
        justify-content: center;
        display: flex;
        gap: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Adjust footer text size */
    .footer-info-j p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* Add some spacing in footer */
    .footer-p {
        padding: 2rem 0 5rem; /* Extra bottom padding for mobile nav */
    }

    .footer-container-n {
        padding: 0 1rem;
    }
}

/* Fix mobile sidebar classes */
.mobile-sidebar-q.active-f {
    left: 0;
}

.sidebar-overla-j.active-f {
    visibility: visible;
    opacity: 1;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .games-grid-y {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    /* Hide the last card in each games section on index page mobile view */
    body:not(.games-page) .games-section-k .games-grid-y .game-card-f:nth-child(5) {
        display: none;
    }

    .game-img-f {
        padding-top: 150%; /* Slightly shorter aspect ratio for mobile */
    }
}

/* Clear image cache fix */
.game-img-f img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
} 