/* #region Стили страницы игр */

.games {
    padding: 60px 0;
}

.games__title {
    font: 400 48px "Arkhip", sans-serif;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: left;
}

.games__filter {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
    padding: 24px 0;
    border-radius: 16px;
}

.games__filter-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: none;
    gap: 16px;
}

.games__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.games__search-input {
    font: 400 16px "Axiforma", sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    flex: 1;
    padding: 0 16px 0 40px;
    height: 56px;
    transition: all 0.3s ease;
    border-radius: 28px;
}

    .games__search-input:focus {
        outline: none;
        color: var(--accent-2);
    }

.games__search-button {
    height: 56px;
    padding: 17px 32px;
    border-radius: 28px;
    background: var(--accent-2);
    color: var(--text-light);
    border: none;
    font: 600 14px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .games__search-button:hover {
        background: var(--accent-1);
    }

/* Индикатор активных фильтров */
.games__active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 8px;
}

.games__active-filters-label {
    font: 600 14px "Axiforma", sans-serif;
    color: var(--text-light);
    white-space: nowrap;
}

.games__active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.games__filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-2);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .games__filter-tag:hover {
        background: var(--accent-1);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .games__filter-tag::after {
        content: '×';
        font-size: 14px;
        font-weight: bold;
        margin-left: 4px;
        opacity: 0.8;
    }

    .games__filter-tag:hover::after {
        opacity: 1;
    }

.games__clear-filters-btn {
    padding: 6px 12px;
    background: var(--accent-1);
    color: white;
    border: none;
    border-radius: 24px;
    font: 600 12px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .games__clear-filters-btn:hover {
        background: var(--accent-2);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

.games__filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.games__dropdown {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.games__dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border-outline-dark);
    border-radius: 20px;
    color: var(--border-outline-dark);
    font: 600 14px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    width: 100%;
    position: relative;
}

    .games__dropdown-toggle:hover {
        border-color: var(--accent-2);
        background: none;
        color: var(--accent-2);
    }

.games__chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.games__dropdown-toggle.active {
    background: var(--bg-light);
    border-color: var(--accent-2);
    color: var(--accent-2);
    box-shadow: 0 2px 8px rgba(63, 105, 210, 0.15);
}

    .games__dropdown-toggle.active .games__chevron {
        transform: rotate(180deg);
    }

/* Индикатор количества активных фильтров */
.games__dropdown-toggle::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.games__dropdown-toggle.has-filters::after {
    opacity: 1;
}

.games__dropdown-menu {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-outline);
    border-radius: 12px;
    padding: 16px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

    .games__dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

.games__dropdown-search {
    margin-bottom: 12px;
}

.games__dropdown-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

    .games__dropdown-search-input:focus {
        border-color: var(--accent-2);
        outline: none;
    }

.games__dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-left: 0;
    list-style: none;
}

.games__dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

    .games__dropdown-item:hover {
        background: var(--bg-light);
        color: var(--accent-1);
        transform: translateX(2px);
    }

    .games__dropdown-item.selected {
        font-weight: 600;
        color: var(--accent-2);
        background: var(--bg-light);
        border-left: 3px solid var(--accent-2);
        padding-left: 9px;
    }

        .games__dropdown-item.selected::before {
            content: '✓';
            position: absolute;
            right: 12px;
            color: var(--accent-2);
            font-weight: bold;
            font-size: 12px;
        }

        .games__dropdown-item.selected:hover {
            background: var(--accent-2);
            color: white;
            border-left-color: var(--accent-1);
        }

            .games__dropdown-item.selected:hover::before {
                color: white;
            }

.games__list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.games__item {
    position: relative;
    width: calc(25% - 15px);
    min-width: 280px;
    max-width: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    border-radius: 10px 70px;
    border: 1px solid var(--border-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .games__item:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(24, 32, 50, 0.3);
    }

.games__image {
    width: 80%;
    height: 80%;
    object-fit: cover;
    position: center;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.7);
    border-radius: 10px 70px;
    margin-top: 16px;
}

.games__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 16px;
    padding-block: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.games__name {
    font: 600 18px "Axiforma", sans-serif;
    color: var(--text-light);
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.games__stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    justify-content: center;
    width: 100%;
}

.games__rating,
.games__likes,
.games__views {
    display: flex;
    align-items: center;
    gap: 4px;
    font: 400 12px "Axiforma", sans-serif;
    color: var(--text-light);
}

.games__actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.games__button,
.games__preview {
    padding: 8px 16px;
    border-radius: 20px;
    font: 600 12px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.games__button {
    background: var(--accent-2);
    color: var(--text-light);
    border: none;
}

    .games__button:hover {
        background: var(--accent-1);
    }

.games__preview {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

    .games__preview:hover {
        border-color: var(--accent-2);
        color: var(--accent-2);
    }

.games__item--locked {
    opacity: 0.6;
}

.games__locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 10px 70px;
}

.games__lock-icon {
    width: 32px;
    height: 32px;
    color: var(--text-light);
}

.games__item--locked .games__button,
.games__item--locked .games__preview {
    opacity: 0.5;
    pointer-events: none;
}

.games__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.pagination__prev,
.pagination__next {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font: 600 14px "Axiforma", sans-serif;
}

    .pagination__prev:hover,
    .pagination__next:hover {
        border-color: var(--accent-2);
        color: var(--accent-2);
    }

    .pagination__prev:disabled,
    .pagination__next:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.pagination__info {
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-light);
}

/* #endregion */

/* #region Модальное окно */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .modal.active {
        opacity: 1;
        visibility: visible;
    }

.modal__content {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

.modal__title {
    font: 600 20px "Axiforma", sans-serif;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.modal__description {
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal__stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.modal__button {
    width: 100%;
    padding: 12px;
    background: var(--accent-2);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font: 600 14px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .modal__button:hover {
        background: var(--accent-1);
    }

/* #endregion */

/* #region Game Hero Section */

.game-hero {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.game-hero__text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.game-hero__content {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

    .game-hero__content:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-color: var(--accent-2);
    }

    .game-hero__content::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .game-hero__content:hover::before {
        left: 100%;
    }

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.game-hero__main-title {
    font: 700 48px "Arkhip", sans-serif;
    color: var(--text-light);
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: backgroundShift 3s ease-in-out infinite;
}

.game-hero__main-description {
    font: 400 18px "Axiforma", sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.game-hero__game-preview {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-hero__game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-hero__content:hover .game-hero__game-image {
    transform: scale(1.1);
}

.game-hero__floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.game-hero__floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

    .game-hero__floating-element:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .game-hero__floating-element:nth-child(2) {
        top: 60%;
        right: 15%;
        animation-delay: 2s;
    }

    .game-hero__floating-element:nth-child(3) {
        bottom: 20%;
        left: 20%;
        animation-delay: 4s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.game-hero__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-hero__title {
    font: 600 24px "Axiforma", sans-serif;
    color: var(--text-light);
    margin-bottom: 8px;
}

.game-hero__description {
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-light);
    opacity: 0.8;
}

.game-hero__secondary {
    text-align: right;
}

.game-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.game-hero__button {
    padding: 12px 24px;
    border-radius: 25px;
    font: 600 14px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    background: var(--accent-2);
    color: var(--text-light);
    border: none;
}

    .game-hero__button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .game-hero__button:hover::before {
        left: 100%;
    }

    .game-hero__button:hover {
        background: var(--accent-1);
        transform: translateY(-2px);
    }

.game-hero__share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .game-hero__share:hover {
        background: var(--accent-2);
        transform: scale(1.1);
    }

.game-hero__play-icon {
    width: 16px;
    height: 16px;
}

.game-hero__favorite-icon {
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

/* #endregion */

/* #region Responsive Design */

@media (max-width: 1200px) {
    .games__list {
        gap: 20px;
        justify-content: flex-start;
    }

    .games__item {
        width: calc(33.333% - 13.33px);
        min-width: 280px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .game-hero {
        padding: 40px 0;
    }

    .game-hero__text {
        padding: 0 20px;
    }

    .game-hero__main-title {
        font-size: 36px;
    }

    .game-hero__content {
        padding: 30px 20px;
    }

    .game-hero__actions {
        flex-direction: column;
        gap: 12px;
    }

    .game-hero__button {
        width: 100%;
        justify-content: center;
    }

    .games__filter-dropdowns {
        flex-direction: column;
    }

    .games__dropdown {
        min-width: auto;
    }

    .games__list {
        gap: 15px;
        justify-content: center;
    }

    .games__item {
        width: calc(50% - 7.5px);
        min-width: 250px;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .game-hero__main-title {
        font-size: 28px;
    }

    .game-hero__content {
        padding: 20px 15px;
    }

    .game-hero__info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .games__list {
        gap: 15px;
        justify-content: center;
    }

    .games__item {
        width: 100%;
        max-width: 280px;
    }
}

/* #endregion */

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 300px;
}

.notification--success {
    background: #28a745;
}

.notification--warning {
    background: #ffc107;
    color: #212529;
}

.notification--error {
    background: #dc3545;
}

.notification--info {
    background: #17a2b8;
}
/* #region Стили страницы игр */

.games {
    padding: 60px 0;
}

.games__title {
    font: 400 48px "Arkhip", sans-serif;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: left;
}

.games__filter {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
    padding: 24px 0;
    border-radius: 16px;
}

.games__filter-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: none;
    gap: 16px;
}

.games__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.games__search-input {
    font: 400 16px "Axiforma", sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    flex: 1;
    padding: 0 16px 0 40px;
    height: 56px;
    transition: all 0.3s ease;
    border-radius: 28px;
}

    .games__search-input:focus {
        outline: none;
        color: var(--accent-2);
    }

.games__search-button {
    height: 56px;
    padding: 17px 32px;
    border-radius: 28px;
    background: var(--accent-2);
    color: var(--text-light);
    border: none;
    font: 600 14px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .games__search-button:hover {
        background: var(--accent-1);
    }


/* Индикатор активных фильтров */
.games__active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 8px;
}

.games__active-filters-label {
    font: 600 14px "Axiforma", sans-serif;
    color: var(--text-light);
    white-space: nowrap;
}

.games__active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.games__filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-2);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .games__filter-tag:hover {
        background: var(--accent-1);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .games__filter-tag::after {
        content: '×';
        font-size: 14px;
        font-weight: bold;
        margin-left: 4px;
        opacity: 0.8;
    }

    .games__filter-tag:hover::after {
        opacity: 1;
    }

.games__clear-filters-btn {
    padding: 6px 12px;
    background: var(--accent-1);
    color: white;
    border: none;
    border-radius: 24px;
    font: 600 12px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .games__clear-filters-btn:hover {
        background: var(--accent-2);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

.games__filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.games__dropdown {
    position: relative;
    flex: 1;
    min-width: 200px;
    /* Временные стили для отладки */
    overflow: visible !important;
    z-index: 1000;
}

.games__dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border-outline-dark);
    border-radius: 20px;
    color: var(--border-outline-dark);
    font: 600 14px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    width: 100%;
    position: relative;
}

    .games__dropdown-toggle:hover {
        border-color: var(--accent-2);
        background: none;
        color: var(--accent-2);
    }

.games__chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.games__dropdown-toggle.active {
    background: var(--bg-light);
    border-color: var(--accent-2);
    color: var(--accent-2);
    box-shadow: 0 2px 8px rgba(63, 105, 210, 0.15);
}

    .games__dropdown-toggle.active .games__chevron {
        transform: rotate(180deg);
    }

/* Индикатор количества активных фильтров */
.games__dropdown-toggle::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.games__dropdown-toggle.has-filters::after {
    opacity: 1;
}

.games__dropdown-menu {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-outline);
    border-radius: 12px;
    padding: 16px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

    .games__dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

.games__dropdown-search {
    margin-bottom: 12px;
}

.games__dropdown-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

    .games__dropdown-search-input:focus {
        border-color: var(--accent-2);
        outline: none;
    }

.games__dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-left: 0;
    list-style: none;
}

.games__dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

    .games__dropdown-item:hover {
        background: var(--bg-light);
        color: var(--accent-1);
        transform: translateX(2px);
    }

    .games__dropdown-item.selected {
        font-weight: 600;
        color: var(--accent-2);
        background: var(--bg-light);
        border-left: 3px solid var(--accent-2);
        padding-left: 9px;
    }

        .games__dropdown-item.selected::before {
            content: '✓';
            position: absolute;
            right: 12px;
            color: var(--accent-2);
            font-weight: bold;
            font-size: 12px;
        }

        .games__dropdown-item.selected:hover {
            background: var(--accent-2);
            color: white;
            border-left-color: var(--accent-1);
        }

            .games__dropdown-item.selected:hover::before {
                color: white;
            }

.games__list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.games__item {
    position: relative;
    width: calc(25% - 15px);
    min-width: 280px;
    max-width: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    border-radius: 10px 70px;
    border: 1px solid var(--border-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .games__item:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(24, 32, 50, 0.3);
    }

.games__image {
    width: 80%;
    height: 80%;
    object-fit: cover;
    position: center;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.7);
    border-radius: 10px 70px;
    margin-top: 16px;
}

.games__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 16px;
    padding-block: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.games__name {
    font: 600 18px "Axiforma", sans-serif;
    color: var(--text-light);
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.games__stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    justify-content: center;
    width: 100%;
}

.games__rating,
.games__likes,
.games__views {
    display: flex;
    align-items: center;
    gap: 4px;
    font: 400 12px "Axiforma", sans-serif;
    color: var(--text-light);
}

.games__actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.games__button,
.games__preview {
    padding: 8px 16px;
    border-radius: 20px;
    font: 600 12px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.games__button {
    background: var(--accent-2);
    color: var(--text-light);
    border: none;
}

    .games__button:hover {
        background: var(--accent-1);
    }

.games__preview {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

    .games__preview:hover {
        border-color: var(--accent-2);
        color: var(--accent-2);
    }

.games__item--locked {
    opacity: 0.6;
}

.games__locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 10px 70px;
}

.games__lock-icon {
    width: 32px;
    height: 32px;
    color: var(--text-light);
}

.games__item--locked .games__button,
.games__item--locked .games__preview {
    opacity: 0.5;
    pointer-events: none;
}

.games__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.pagination__prev,
.pagination__next {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font: 600 14px "Axiforma", sans-serif;
}

    .pagination__prev:hover,
    .pagination__next:hover {
        border-color: var(--accent-2);
        color: var(--accent-2);
    }

    .pagination__prev:disabled,
    .pagination__next:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.pagination__info {
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-light);
}

/* #endregion */

/* #region Модальное окно */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .modal.active {
        opacity: 1;
        visibility: visible;
    }

.modal__content {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

.modal__title {
    font: 600 20px "Axiforma", sans-serif;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.modal__description {
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal__stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.modal__button {
    width: 100%;
    padding: 12px;
    background: var(--accent-2);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font: 600 14px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .modal__button:hover {
        background: var(--accent-1);
    }

/* #endregion */

/* #region Game Hero Section */

.game-hero {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.game-hero__text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.game-hero__content {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

    .game-hero__content:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-color: var(--accent-2);
    }

    .game-hero__content::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .game-hero__content:hover::before {
        left: 100%;
    }

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.game-hero__main-title {
    font: 700 48px "Arkhip", sans-serif;
    color: var(--text-light);
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: backgroundShift 3s ease-in-out infinite;
}

.game-hero__main-description {
    font: 400 18px "Axiforma", sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.game-hero__game-preview {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-hero__game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-hero__content:hover .game-hero__game-image {
    transform: scale(1.1);
}

.game-hero__floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.game-hero__floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

    .game-hero__floating-element:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .game-hero__floating-element:nth-child(2) {
        top: 60%;
        right: 15%;
        animation-delay: 2s;
    }

    .game-hero__floating-element:nth-child(3) {
        bottom: 20%;
        left: 20%;
        animation-delay: 4s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.game-hero__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-hero__title {
    font: 600 24px "Axiforma", sans-serif;
    color: var(--text-light);
    margin-bottom: 8px;
}

.game-hero__description {
    font: 400 14px "Axiforma", sans-serif;
    color: var(--text-light);
    opacity: 0.8;
}

.game-hero__secondary {
    text-align: right;
}

.game-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.game-hero__button {
    padding: 12px 24px;
    border-radius: 25px;
    font: 600 14px "Axiforma", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    background: var(--accent-2);
    color: var(--text-light);
    border: none;
}

    .game-hero__button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .game-hero__button:hover::before {
        left: 100%;
    }

    .game-hero__button:hover {
        background: var(--accent-1);
        transform: translateY(-2px);
    }

.game-hero__favorite {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .game-hero__favorite:hover {
        background: var(--accent-2);
        transform: scale(1.1);
    }

.game-hero__play-icon {
    width: 16px;
    height: 16px;
}

.game-hero__favorite-icon {
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

/* #endregion */

/* #region Responsive Design */

@media (max-width: 1200px) {
    .games__list {
        gap: 20px;
        justify-content: flex-start;
    }

    .games__item {
        width: calc(33.333% - 13.33px);
        min-width: 280px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .game-hero {
        padding: 40px 0;
    }

    .game-hero__text {
        padding: 0 20px;
    }

    .game-hero__main-title {
        font-size: 36px;
    }

    .game-hero__content {
        padding: 30px 20px;
    }

    .game-hero__actions {
        flex-direction: column;
        gap: 12px;
    }

    .game-hero__button {
        width: 100%;
        justify-content: center;
    }

    .games__filter-dropdowns {
        flex-direction: column;
    }

    .games__dropdown {
        min-width: auto;
    }

    .games__list {
        gap: 15px;
        justify-content: center;
    }

    .games__item {
        width: calc(50% - 7.5px);
        min-width: 250px;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .game-hero__main-title {
        font-size: 28px;
    }

    .game-hero__content {
        padding: 20px 15px;
    }

    .game-hero__info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .games__list {
        gap: 15px;
        justify-content: center;
    }

    .games__item {
        width: 100%;
        max-width: 280px;
    }
}

/* #endregion */

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 300px;
}

.notification--success {
    background: #28a745;
}

.notification--warning {
    background: #ffc107;
    color: #212529;
}

.notification--error {
    background: #dc3545;
}

.notification--info {
    background: #17a2b8;
}
