@import "normalize.css";
@import "variables.css";
@import "grid.css";
@import "animations.css";
@import "tippy.css";
@import "nice-select.css";
@import "card.css";
@import "checkbox.css";
@import "modal.css";
@import "spa-router.css";

:root {
    --font-family-base: "Inter", sans-serif;
}

*,
:after,
:before {
    border    : 0;
    box-sizing: border-box;
    margin    : 0;
    padding   : 0;
    position  : relative;
}

::selection {
    color           : var(--text-secondary);
    background-color: color-mix(in srgb, var(--text-secondary) 30%, transparent);
}

select {
    display: none;
}

a,
button,
input,
textarea,
svg * {
    transition-duration: var(--transition-duration);
    text-decoration    : none;
}

a[href] {
    color: var(--text-secondary);
}

a[href]:hover {
    filter: brightness(125%);
}

button {
    padding         : 0;
    border          : none;
    font            : inherit;
    color           : inherit;
    background-color: transparent;
    cursor          : pointer;
}

input {
    outline         : none;
    border          : none;
    background-image: none;
    background-color: transparent;
    box-shadow      : none;
}

html,
body {
    height: 100%;
}

body {
    font-size          : var(--font-size-base);
    font-family        : var(--font-family-base);
    color              : var(--text-default);
    background-color   : var(--background);
    font-optical-sizing: auto;
    font-weight        : 400;
    font-style         : normal;
}

body {
    min-height : 100%;
    height     : 100%;
    line-height: 1.5;
}

.wrapper {}

.container {
    max-width    : calc(var(--container-width) + var(--container-padding-x)* 2);
    margin-inline: auto;
    padding-block: var(--section-padding-y);
}

.dropdown {
    display       : inline-flex;
    position      : relative;
    vertical-align: top;
}

.dropdown.is-active .dropdown-menu,
.dropdown.is-hoverable:hover .dropdown-menu {
    display          : block;
    opacity          : 1;
    pointer-events   : auto;
    -webkit-transform: scale(1) translateY(0);
    -ms-transform    : scale(1) translateY(0);
    transform        : scale(1) translateY(0);
    z-index          : 999;
}

.dropdown.is-right .dropdown-menu {
    left : auto;
    right: 0;
}

.dropdown.is-up .dropdown-menu {
    bottom        : 100%;
    padding-bottom: 10px;
    padding-top   : initial;
    top           : auto;
}

.dropdown.is-fit .dropdown-menu {
    width: fit-content;
}

.dropdown-menu {
    pointer-events          : none;
    display                 : block;
    left                    : 0;
    right                   : 0;
    min-width               : 150px;
    width                   : 100%;
    padding-top             : 10px;
    position                : absolute;
    top                     : 100%;
    z-index                 : 55;
    opacity                 : 0;
    -webkit-transform-origin: 50% 0;
    -ms-transform-origin    : 50% 0;
    transform-origin        : 50% 0;
    -webkit-transform       : scale(0.65) translateY(-21px);
    -ms-transform           : scale(0.65) translateY(-21px);
    transform               : scale(0.65) translateY(-21px);
    -webkit-transition      : all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    transition              : all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
}

.dropdown-content {
    background-color:
        color-mix(in srgb, var(--background-light) 70%, transparent);
    outline        : 1px solid color-mix(in srgb, currentColor 5%, transparent);
    border-radius  : var(--border-radius);
    padding        : calc(var(--section-padding-y) / 2);
    backdrop-filter: blur(5px);
}

.dropdown-item {
    color      : var(--text-default);
    display    : block;
    font-size  : 0.875rem;
    line-height: 1.5;
    padding    : 0.375rem 1rem;
}

a.dropdown-item,
button.dropdown-item {
    color             : var(--text-muted);
    padding-inline-end: 3rem;
    text-align        : inherit;
    white-space       : nowrap;
    width             : 100%;
}

a.dropdown-item:hover,
button.dropdown-item:hover {
    filter: brightness(125%);
}

.dropdown-divider {
    background-color: color-mix(in srgb, var(--text-muted) 10%, transparent);
    border          : none;
    display         : block;
    height          : 1px;
    margin          : 0.5rem 0;
}

header {
    height : 5rem;
    display: flex;
    padding: 0 5rem;
}

@media (max-width: 992px) {
    header {
        max-width    : calc(var(--container-width) + var(--container-padding-x) * 2);
        margin-inline: auto;
        padding      : var(--section-padding-y);
    }
}

.content_inner {
    margin-top: 24px;
}

/* Header Top menu */
.header__top {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    flex-direction : row;
    color          : var(--text-muted);
    background     : var(--background-light);
    padding        : 0.5rem 1rem;
}

.header__top_left,
.header__top_right {
    display: flex;
    gap    : 1rem;
}

.header__stats_item {
    font-size  : 12px;
    display    : flex;
    align-items: center;
    gap        : 5px;
}

.header__stats_count {
    display    : flex;
    align-items: center;
    gap        : 5px;
    color      : var(--text-secondary);
    font-weight: bold;
}

.header__stats_count svg {
    width : 16px;
    height: 16px;
    filter: drop-shadow(0px 0px 5px color-mix(in srgb, currentColor 50%, transparent));
}

/* Header Inner*/
.header__inner {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    width          : 100%;
}

.header_right,
.header_left {
    display    : flex;
    align-items: center;
    gap        : 10px;
}

.header_nav__menu {
    list-style: none;
    display   : flex;
    gap       : 0.5rem;
}

.header_menu__item {
    color        : var(--text-muted) !important;
    padding      : 0.75rem 1.5rem;
    border-radius: 0.75rem;
    display      : flex;
    gap          : 0.5rem;
    align-items  : center;
}

.header_menu__item.active {
    color: var(--text-secondary) !important;
}

.header_menu__item svg {
    width : 20;
    height: 20;
    fill  : currentColor;
}

.header_menu__item.focus {
    color         : #33351c !important;
    background    : hsla(65, 23%, 52%, 1);
    background    : linear-gradient(0deg, hsla(65, 23%, 52%, 1) 0%, hsla(65, 78%, 79%, 1) 100%);
    background    : -moz-linear-gradient(0deg, hsla(65, 23%, 52%, 1) 0%, hsla(65, 78%, 79%, 1) 100%);
    background    : -webkit-linear-gradient(0deg, hsla(65, 23%, 52%, 1) 0%, hsla(65, 78%, 79%, 1) 100%);
    filter        : progid: DXImageTransform.Microsoft.gradient(startColorstr="#9DA269", endColorstr="#ECF39E", GradientType=1);
    outline       : 2px solid #ffffff3d;
    outline-offset: -2px;
}

.profile_balance {
    display         : flex;
    background-color: var(--background-light);
    border-radius   : 0.75rem;
}

.profile_balance .balance_text {
    display    : flex;
    align-items: center;
    padding    : 0.75rem 1.5rem;
    grid-gap   : 12px;

}

.profile_balance .balance_text span {
    font-weight: 400;
    color      : var(--text-muted);
}

.profile_balance .balance_btn {
    display       : flex;
    gap           : 10px;
    align-items   : center;
    background    : hsla(3, 43%, 50%, 1);
    background    : linear-gradient(0deg, hsla(3, 43%, 50%, 1) 0%, hsla(8, 100%, 67%, 1) 100%);
    background    : -moz-linear-gradient(0deg, hsla(3, 43%, 50%, 1) 0%, hsla(8, 100%, 67%, 1) 100%);
    background    : -webkit-linear-gradient(0deg, hsla(3, 43%, 50%, 1) 0%, hsla(8, 100%, 67%, 1) 100%);
    filter        : progid: DXImageTransform.Microsoft.gradient(startColorstr="#B64F49", endColorstr="#FF6E58", GradientType=1);
    color         : var(--text-primary) !important;
    padding       : 0.75rem 1.5rem;
    border-radius : 0.75rem;
    outline       : 2px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
    outline-offset: -2px;
    display       : flex;
    gap           : 10px;
    align-items   : center;
}

.profile_balance .balance_btn svg {
    width : 14;
    height: 14;
    fill  : currentColor;
}

.default_nav__menu {
    display : flex;
    grid-gap: .8rem;
}

.default_menu__item {
    width        : -webkit-fill-available;
    background   : var(--background-light);
    padding      : 1rem 1.5rem 1rem 1.15rem;
    border-radius: 0.75rem;
    display      : flex;
    align-items  : center;
    gap          : 10px;
    color        : var(--text-default) !important;
}

.default_menu__item svg {
    width : 20;
    height: 20;
    fill  : currentColor;
}

.default_menu__item.active {
    background-color: var(--text-secondary);
    color           : var(--background-dark) !important;
}

.default_nav__search {
    display         : flex;
    margin-left     : auto;
    display         : flex;
    background-color: var(--background-light);
    border-radius   : 0.75rem;
    padding         : 0.75rem 1.5rem;

    font-family: var(--font-family-base);
}

.default_nav__search .search_user {
    background: transparent;
    border    : none;
    outline   : none;
    color     : var(--text-default);
}

.logotype {
    display        : flex;
    align-items    : center;
    justify-content: start;
    height         : 80px;
}

.users_online {
    padding: 50px 0 30px;
}

.users_online__header,
.sidebar_menu__header {
    display      : flex;
    align-items  : center;
    gap          : 10px;
    margin-bottom: 1rem;
}

.users_online::before {
    background-color: #1a1e28;
    content         : '';
    display         : block;
    width           : 100%;
    position        : absolute;
    height          : 2px;
    bottom          : 0;
}

.users_online__header svg,
.sidebar_menu__header svg {
    width          : 20px;
    height         : 20px;
    fill           : var(--text-secondary);
    backdrop-filter: drop-shadow(10px 10px 9px var(--text-secondary));
}

.users_online__list {
    display              : grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap             : 10px;
}

.users_online__list .user {
    border-radius   : 15px;
    overflow        : hidden;
    padding         : 2px;
    background-color: var(--text-secondary);
    box-shadow      : 0px 5px 10px #1417202f;
    opacity         : .75;
    transition      : all .3s ease;
}

.users_online__list .user:hover {
    box-shadow: 0px 0px 25px #0a0b0e;
    opacity   : 1;
}

.users_online__list .user img {
    width        : 100%;
    height       : auto;
    border-radius: 14px;
}

.sidebar_menu {
    padding: 20px 0;
}

.sidebar_menu__list {
    list-style: none;
    display   : grid;
    grid-gap  : 10px;
}

.sidebar_menu__link {
    background-color: #131720;
    background-image: linear-gradient(25deg, #131720 0%, #131720 100%);
    padding         : 10px;
    border-radius   : 20px;
    transition      : all .35s ease;
    color           : var(--text-muted) !important;
}

.sidebar_menu__item {
    display    : flex;
    align-items: center;
    gap        : 20px;
}

.sidebar_menu__link:hover {
    background-color: var(--background-light);
    background-image: linear-gradient(25deg, var(--background-light) 0%, var(--text-muted) 100%);
    color           : var(--text-primary) !important;
}

.sidebar_menu__link .sidebar_menu__title {
    transition: transform .4s;
}

.sidebar_menu__link:hover .sidebar_menu__title {
    transform: translateX(-5px);
}

.sidebar_menu__link:hover .sidebar_menu__icon {
    background: var(--text-primary);
}

.sidebar_menu__link:hover .sidebar_menu__icon svg {
    fill: var(--background-light);
}

.sidebar_menu__icon {
    background   : var(--background-light);
    border-radius: 15px;
    padding      : 10px;
}

.sidebar_menu__icon svg {
    width : 15px;
    height: 15px;
    fill  : var(--text-primary);
}

/* Социальные ссылки в header */
.header_socials {
    background   : var(--background-light);
    outline      : 1px solid color-mix(in srgb, currentColor 5%, transparent);
    height       : 50px;
    display      : flex;
    align-items  : center;
    padding      : 0 15px;
    border-radius: 20px;
    gap          : 20px;
}

.header_socials_item svg {
    width : 25px;
    height: 25px;
    fill  : var(--text-muted);
}

/* Окно выбора языка в header */
.header_language__button {
    display    : flex;
    align-items: center;
    gap        : 10px;
}

.header_language__button .language-flag {
    width: 15px;
}

.language__menu {
    display        : flex;
    flex-wrap      : wrap;
    justify-content: center;
    align-items    : center;
}

.language__menu .language__item {
    color: var(--text-muted);
}

.language__menu .language__item.is-active {
    color: var(--text-secondary);
}

/* Окно профиля игрока в header */
.header_profile__button {
    background   : var(--background-light);
    outline      : 1px solid color-mix(in srgb, currentColor 5%, transparent);
    height       : 50px;
    max-width    : 200px;
    display      : flex;
    align-items  : center;
    padding      : 0 15px 0 5px;
    border-radius: 0.75rem;
    gap          : 20px;
    white-space  : nowrap;
    overflow     : hidden;
}

.header_profile__button .avatar {
    width        : 40px;
    height       : 40px;
    border-radius: 0.65rem;
}

.header_profile__button .nickname {
    white-space  : nowrap;
    overflow     : hidden;
    text-overflow: ellipsis;
}

.user__menu {
    display: grid;
    gap    : calc(var(--section-padding-y) / 2);
    width  : 270px;
}

.user__profile {
    display        : flex;
    justify-content: start;
    gap            : calc(var(--section-padding-y) / 2);
}

.user__profile .username_profile .nickname {
    color      : var(--text-default);
    font-size  : 1.25rem;
    font-weight: 500;
}

.user__profile .username_profile .id {
    color    : var(--text-muted);
    font-size: 14px;
}

.button_user_logout {
    display    : flex;
    align-items: center;
    font-size  : .75rem;
    gap        : .35rem;
}

.user_profile_menu,
.language__menu_content {
    display         : grid;
    align-items     : center;
    background-color: color-mix(in srgb, var(--text-muted) 2%, transparent);
    /* padding      : 10px; */
    border-radius   : var(--border-radius);
}

.user_profile_menu__item,
.language__menu_item {
    padding    : 15px;
    display    : flex;
    gap        : 10px;
    align-items: center;
    color      : var(--text-muted) !important;
}

.language__menu_item.disabled {
    cursor        : not-allowed;
    pointer-events: none;
    opacity       : .25;
}

.language__menu_item .language-flag {
    width : 17px;
    height: auto;
}

.user_profile_menu__item:not(:last-child),
.language__menu_item:not(:last-child) {
    border-bottom: 2px solid color-mix(in srgb, var(--text-muted) 5%, transparent);
}

.user-profile_buttons {
    display      : grid;
    border-radius: var(--border-radius);
    overflow     : hidden;
}

.user-profile_buttons__btn {
    background:
        color-mix(in srgb, var(--card-color) 5%, transparent);
    display    : flex;
    align-items: center;
    gap        : calc(var(--section-padding-y) / 2);
    padding    : .75rem 1.25rem;
}

.user-profile_buttons__btn svg {
    height: 100%;
    width : 30px;
}

.user-profile_buttons__btn span {
    display: grid;
}

.user-profile_buttons__btn span:nth-child(1) {
    font-size: .85rem;
    color    : color-mix(in srgb, var(--card-color) 45%, transparent);
}

.user-profile_buttons__btn span:nth-child(1) {
    font-weight: 500;
}

.user_profile_menu__item svg {
    width : 24px;
    height: 24px;
    color : color-mix(in srgb, var(--text-muted) 25%, transparent);
}

.button_user_logout svg {
    width : 14px;
    height: 14px;
}

.user_avatar_profile img {
    border-radius: var(--border-radius);
    width        : 75px;
    height       : 75px;
}

.user_profile_footer {
    display        : flex;
    align-items    : center;
    justify-content: end;
}

.user_profile_footer .user_logout {
    display    : flex;
    align-items: center;
    gap        : 10px;
    font-size  : 14px;
    color      : var(--text-muted);
}

.user_profile_footer .user_logout svg,
.user_profile_footer .user_settings_menu svg {
    fill  : var(--text-muted);
    width : 18px;
    height: 18px;
}


/* FAQ Section */
.faq {
    width : 75%;
    margin: 0 auto;
}

.faq details {
    background-color: var(--background-light);
    border-radius   : var(--border-radius);
    padding         : 1.75rem 1.5rem;
    margin-bottom   : 1rem;
    transition      : 50ms;
}

.faq details p {
    color: var(--text-muted);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::-moz-list-bullet {
    list-style-type: none;
}

.faq summary::marker {
    display: none;
}

.faq summary {
    display    : inline-block;
    padding    : .3em 1.5em .3em .6em;
    font-size  : 1.1rem;
    cursor     : pointer;
    position   : relative;
    color      : var(--text-primary);
    font-weight: bold;
    cursor     : pointer;
    display    : flex;
}

.faq summary:before {
    content           : "";
    position          : absolute;
    width             : 1em;
    height            : 1em;
    right             : 1rem;
    background-color  : var(--text-muted);
    -webkit-mask-image: url(/storage/public/payment/assets/right.svg);
    mask-image        : url(/storage/public/payment/assets/right.svg);
    transition        : transform .2s ease-in-out;
}

.faq details[open]>summary:before {
    transform: rotateZ(90deg);
}

.faq summary~* {
    padding: 0 1em 0 1em;
}

.faq details[open] summary~* {
    animation: sweep .5s ease-in-out;
}

.faq details:not([open])>*:not(summary),
.faq details:not([open])>*text* {
    transition: all .5s ease-in-out;
    opacity   : 0;
}

@keyframes sweep {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.faq summary:focus {
    outline: 0;
}

.faq details {
    display      : block;
    margin-bottom: .5rem;
}

.notification {
    background   : #fff;
    border-radius: 8px;
    padding      : 16px;
    box-shadow   : 0 4px 12px rgba(0, 0, 0, 0.15);
    margin       : 10px;
    max-width    : 300px;
}

.notification.toast {
    position: fixed;
    bottom  : 20px;
    right   : 20px;
}

.notification.popup {
    position : fixed;
    top      : 50%;
    left     : 50%;
    transform: translate(-50%, -50%);
}

.notification-header {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    font-weight    : bold;
}

.notification-close {
    cursor: pointer;
}

.notification-btn {
    display        : inline-block;
    margin-top     : 10px;
    padding        : 6px 12px;
    background     : #3b82f6;
    color          : white;
    border-radius  : 4px;
    text-decoration: none;
}


footer {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    max-width      : calc(var(--container-width) + var(--container-padding-x) * 2);
    margin-inline  : auto;
    padding        : var(--section-padding-y);
    height         : 5rem;
    color          : var(--text-muted);
}