*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    font-size: calc(100vw / 39);
}
body{
    background: url('../images/body.png') #1A1004;
    padding-bottom: 11rem;
    color: #fff;
    font-family: Unbounded, sans-serif;
    min-width: 280px;
}
.page__title{
    display: block;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 2.6rem;
    letter-spacing: 0.03rem;
    text-shadow: 0 0.2rem 0.07rem rgba(0, 0, 0, 0.65);
    margin-top: 0;
    padding-top: 3.1rem;
    margin-bottom: 1.6rem;
}
img{
    max-width: 100%;
    height: auto;
    display: block;
}
a{
    text-decoration: none;
}
button,
.btn,
a,
.tab__link,
.type__item{
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}
button:focus,
button:active,
button:focus-visible,
.btn:focus,
.btn:active,
.btn:focus-visible,
a:focus,
a:active,
a:focus-visible,
.tab__link:focus,
.tab__link:active,
.tab__link:focus-visible,
.type__item:focus,
.type__item:active,
.type__item:focus-visible{
    outline: none;
    box-shadow: none;
}
button::-moz-focus-inner{
    border: 0;
    padding: 0;
}
header, main, footer{
    width: 100%;
    margin: 0 auto;
}
.container{
    padding-left: 1.6rem;
    padding-right: 1.6rem;
}
.df{
    display: flex;
}
.a-center{
    align-items: center;
}
.j-center{
    justify-content: center;
}
.j-spc-btw{
    justify-content: space-between;
}
.f-column{
    flex-direction: column;
}
.a-start{
    align-items: flex-start;
}
.f-wrap{
    flex-wrap: wrap;
}
.btn{
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    font-family: Unbounded, sans-serif;
    cursor: pointer;
}
.btn__yellow{
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 2.6rem;
    letter-spacing: 0.03rem;
    text-align: center;
    color: #fce708;
    text-shadow: 0 0.2rem 0.07rem rgba(0, 0, 0, 0.65);
    margin-top: auto;
    margin-bottom: 2.2rem;
}
.header__content{
    background: url('../images/header.png') no-repeat center;
    background-size: 100% 100%;
    width: 100%;
    aspect-ratio: 358 / 65;
    padding: 1.4rem 1.5rem 1.5rem;
}
.user__avatar{
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 100%;
    flex-shrink: 0;
}
.user__avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}
.header__user{
    gap: 1.7rem;
    min-width: 0;
}
.user__name{
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2rem;
    letter-spacing: 0.03rem;
    color: #fce708;
    padding-top: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header__points img{
    width: 1.7rem;
}
.header__points{
    gap: 0.5rem;
    padding-right: 2.3rem;
    padding-top: 0.7rem;
    flex-shrink: 0;
}
.header__points span{
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: left;
    font-family: "Unbounded", sans-serif;
    color: #ffffff;
}
.statistics{
    margin-top: 1.2rem;
}
.statistics__content{
    background: url('../images/statistics2.png') no-repeat center;
    background-size: 100% 100%;
    width: 100%;
    aspect-ratio: 358 / 230;
}
.statistic__title{
    padding-top: 3.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    font-family: "Unbounded", sans-serif;
    color: #ffffff;
}
.statistic__row span img{
    width: 1.5rem;
}
.statistic__table{
    margin-top: 2.4rem;
    padding-left: 4.9rem;
    padding-right: 4.9rem;
}
.statistic__row:not(:last-child){
    margin-bottom: 1.2rem;
}
.statistic__row span:first-child{
    font-family: Unbounded, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1rem;
    letter-spacing: 0.08rem;
    text-align: left;
    text-transform: uppercase;
    color: #ffffff;
}
.statistic__row span:last-child{
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1rem;
    letter-spacing: 0.08rem;
    text-align: left;
    text-transform: uppercase;
    font-family: Unbounded, sans-serif;
    color: #ffffff;
    position: relative;
    min-width: 6rem;
}
.statistic__row span:last-child img{
    position: absolute;
    left: -2.3rem;
}
.leaders__title{
    background: url('../images/lead-title.png') no-repeat center;
    background-size: 100% 100%;
    width: 100%;
    aspect-ratio: 358 / 45;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2rem;
    letter-spacing: 0.08rem;
    text-align: center;
    text-transform: uppercase;
}
.leaders{
    margin-top: 2.9rem;
}
.leaders__item{
    width: 100%;
    aspect-ratio: 358 / 58;
    background: url('../images/lead-row.png') no-repeat center;
    background-size: 100% 100%;
    padding-left: 1.8rem;
    padding-top: 1.4rem;
    padding-bottom: 1.1rem;
    padding-right: 5.3rem;
}
.leaders__right img{
    width: 1.7rem;
}
.leaders__right{
    gap: 0.5rem;
    min-width: 11.6rem;
    flex-shrink: 0;
}
.leaders__number{
    width: 2.8rem;
    height: 3.3rem;
    background: url('../images/kubok.svg') no-repeat center;
    background-size: contain;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2rem;
    text-align: center;
    color: #ffffff;
    opacity: 0.86;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.leaders__left{
    gap: 1.3rem;
    min-width: 0;
}
.leaders__img{
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 100%;
    flex-shrink: 0;
}
.leaders__img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}
.leaders__right span{
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.5rem;
}
footer{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    margin-top: 0;
    padding-top: 1rem;
    padding-bottom: 1.1rem;
    background: linear-gradient(180deg, rgba(18, 14, 10, 0) 0%, #120E0A 35%);
}
.footer__content{
    gap: 0.4rem;
}
.btn__img{
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1rem;
    text-align: center;
    color: #ffffff;
    width: 100%;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.btn__img img{
    width: 5.6rem;
    height: 5.6rem;
    margin-bottom: 0.3rem;
    transition: all .3s;
}
.btn__img:nth-child(3) img{
    width: 6.8rem;
    height: 6.8rem;
}
.btn__img:nth-child(3){
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2rem;
    text-align: center;
}
.btn__img:hover img{
    box-shadow: 0 0 0.9rem 0 rgba(252, 232, 8, 1);
    border-radius: 100%;
}
.friends{
    margin-top: 2.7rem;
    margin-bottom: 6.4rem;
}
.friends__title{
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 2.6rem;
    letter-spacing: 0.03rem;
    text-align: center;
    text-shadow: 0 0.2rem 0.07rem rgba(0, 0, 0, 0.65);
}
.friends__action{
    margin-top: 1.1rem;
    gap: 0.4rem;
}
.coin img{
    width: 1.2rem;
}
.coin{
    gap: 0.2rem;
    font-weight: 700;
    font-size: 1rem;
    line-height: 0.8rem;
}
.friends__item{
    padding: 2.7rem 2.7rem 2.7rem 3.2rem;
    background: url('../images/friends.png') no-repeat center;
    background-size: 100% 100%;
    width: 100%;
    min-width: 0;
}
.friends__item p{
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.03rem;
    text-align: left;
    margin-bottom: 0.7rem;
    color: #ffffff;
}
.empty__text{
    margin-top: 3rem;
    text-align: center;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.5rem;
    letter-spacing: 0.03rem;
    color: #959595;
    margin-bottom: 1.6rem;
}
.info__text{
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.8rem;
    letter-spacing: 0.03rem;
    text-align: center;
    margin-bottom: 2.2rem;
}
.btn__invite{
    background: url('../images/invite.png') no-repeat center;
    width: 81.3%;
    aspect-ratio: 317 / 96;
    background-size: 100% 100%;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.7rem;
    letter-spacing: 0.03rem;
    text-align: center;
    color: #fce708;
    text-shadow: 0 0.2rem 0.07rem rgba(0, 0, 0, 0.65);
    gap: 0.5rem;
}
.btn__copy{
    width: 58.5%;
    aspect-ratio: 228 / 55;
    background: url('../images/copy.png') no-repeat center;
    background-size: 100% 100%;
    margin: 0 auto;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2rem;
    letter-spacing: 0.03rem;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    gap: 0.3rem;
    text-shadow: 0 0.2rem 0.07rem rgba(0, 0, 0, 0.65);
}
.invited__title{
    margin-top: 1.1rem;
    margin-bottom: 0.9rem;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.5rem;
    letter-spacing: 0.03rem;
    text-align: center;
    color: #ffffff;
}
.friends__list--item{
    padding: 1.4rem 2.8rem 1.5rem 1.9rem;
    background: url(../images/fr.png) no-repeat center;
    background-size: 100% 100%;
    width: 100%;
    aspect-ratio: 340 / 73;
}
.friends__right img{
    width: 1.7rem;
}
.friends__right{
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.5rem;
    text-align: right;
    color: #ffffff;
    flex-shrink: 0;
}
.friends__left{
    gap: 1.8rem;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.6rem;
    letter-spacing: 0.03rem;
    text-align: left;
    min-width: 0;
}
.friends__left span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.friends__left img{
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 100%;
    flex-shrink: 0;
}
.friends__list{
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-bottom: 1.2rem;
}
.page__title{
    display: block;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 2.6rem;
    letter-spacing: 0.03rem;
    text-shadow: 0 0.2rem 0.07rem rgba(0, 0, 0, 0.65);
    margin-top: 2.7rem;
    margin-bottom: 1.6rem;
}

.friends__list{
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-bottom: 1.2rem;
}

html, body{
    overflow-x: hidden;
}

body{
    padding-bottom: 22rem;
}

.friends{
    margin-top: 2.7rem;
    margin-bottom: 0;
    padding-bottom: 12rem;
}

.friends__btns{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem 1.6rem calc(1.1rem + 8.5rem);
    background: linear-gradient(180deg, rgba(18, 14, 10, 0) 0%, #120E0A 35%);
    box-sizing: border-box;
}

.friends__btns .btn__invite{
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    aspect-ratio: 262 / 80;
    font-size: 1.2rem;
    line-height: 1.5rem;
    letter-spacing: 0.03rem;
    background: url('../images/ff.png') no-repeat center;
    background-size: 100% 100%;
    margin: 0;
}

.friends__btns .btn__copy{
    flex: 0 0 auto;
    width: 24.1%;
    aspect-ratio: 94 / 58;
    margin: 0;
    padding: 0;
}
::-webkit-scrollbar {
    width: 0.3rem;
}
::-webkit-scrollbar-track {
    background: #683619;
    border-radius: 7.7rem;
}
::-webkit-scrollbar-thumb {
    background: #9E5328;
    border-radius: 7.7rem;
}
::-webkit-scrollbar-thumb:hover {
    background: #9E5328;
}
.mb-0{
    margin-bottom: 0;
}

.store{
    margin-bottom: 2rem;
}
.header__coin--item{
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
}
.header__coin--item img{
    width: 2.7rem;
}
.tab {
    overflow: hidden;
}
.tab__content {
    display: none;
}
.tab__link{
    width: 100%;
    height: 4.1rem;
    border: none;
    box-shadow: none;
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    align-items: center;
    font-family: 'Unbounded', sans-serif;
    background: url('../images/tab.png') no-repeat center;
    background-size: 100% 100%;
    border-bottom: 0.1rem solid rgba(217,217,217, .23);
}
.tab__link img{
    width: 1.6rem;
    height: auto;
}
.tab__link.active{
    background: url('../images/tab-active.svg') no-repeat center;
    background-size: 100% 100%;
}
.header__coins,
.store__content{
    width: 100%;
    margin: 0 auto;
    position: relative;
}
.header__coins{
    gap: 2.1rem;
    margin-bottom: 1rem;
}
.tab__content{
    border: 0.1rem solid rgba(252, 150, 8, 1);
    border-top: 0;
    padding: 1.3rem 0.8rem;
    background: rgba(217, 217, 217, 0.13);
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    height: 48.7rem;
    overflow: auto;
}
.types{
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.type__item{
    width: 100%;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.2rem;
    color: #7e7e7e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(4, 4, 4, 0.4);
    border: 0.05rem solid #535353;
    border-radius: 0.7rem;
    height: 2.4rem;
    padding: 0.6rem 1rem;
}
.type__item svg{
    width: 1rem;
    height: auto;
    flex-shrink: 0;
}
.type__item--active{
    border: 0.05rem solid #dd8300;
    color: #ac7202;
}
.store__list{
    gap: 0 0.8rem;
}
.store__item{
    width: calc(50% - 0.4rem);
    background: url('../images/store.svg') no-repeat center;
    background-size: 100% 100%;
    padding: 1.5rem 1.6rem 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: 166 / 149;
}
.store__item > img{
    width: 3.2rem;
    margin-bottom: 0.2rem;
}
.store__item--title{
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1rem;
    letter-spacing: 0.03rem;
    text-align: center;
    margin-bottom: 0.2rem;
    color: #ffffff;
}
.store__item--text{
    font-weight: 300;
    font-size: 0.6rem;
    line-height: 0.8rem;
    letter-spacing: 0.03rem;
    text-align: center;
    color: #d68b05;
    margin-bottom: 0.5rem;
}
.btn__orange img{
    width: 1.4rem;
}
.btn__orange{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.4rem;
    width: 100%;
    background: linear-gradient(90deg, #744C00 0%, #FF9500 100%);
    border-radius: 0.7rem;
    gap: 0.4rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1rem;
    letter-spacing: 0.03rem;
}
.store__item--actions{
    width: 100%;
    gap: 0.4rem;
}
.store__item--actions .btn__orange{
    width: 100%;
    background: linear-gradient(90deg, #B37602 0%, #DA8F00 100%);
}
.modal{
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .05);
    backdrop-filter: blur(0.58rem);
    border-radius: 1rem;
}
.modal.open{
    display: flex;
}
.modal__content{
    width: 62.8%;
    background: url('../images/modal.png') no-repeat center;
    background-size: 100% 100%;
    aspect-ratio: 245 / 228;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    padding: 2.9rem 1.9rem;
}
.btn__close{
    position: absolute;
    top: 3.6rem;
    right: 2.9rem;
}
.btn__close svg{
    width: 1.2rem;
    height: 1.2rem;
}
.modal__content > img{
    width: 6.3rem;
    margin-bottom: 0.4rem;
}
.modal__content .store__item--title{
    font-size: 1.2rem;
    font-weight: 500;
}
.modal__content .store__item--text{
    font-size: 0.8rem;
    line-height: normal;
    margin-bottom: 1.1rem;
}
.tasks{
    margin-top: 2.7rem;
    margin-bottom: 2rem;
}
.tasks__list{
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.task__item{
    gap: 0.3rem;
    width: 100%;
}
.task__info{
    background: url('../images/task.png') no-repeat center;
    background-size: 100% 100%;
    width: calc(100% - 10.1rem);
    aspect-ratio: 257 / 77;
    padding: 2.9rem 2.3rem 2.9rem 2rem;
    min-width: 0;
}
.task__info svg{
    width: 1.4rem;
    height: auto;
    flex-shrink: 0;
}
.task__text{
    margin-left: 0.6rem;
    font-size: 0.8rem;
    line-height: normal;
    font-weight: 500;
    margin-right: 1.7rem;
    min-width: 0;
}
.task__coin{
    white-space: nowrap;
    padding-left: 2.1rem;
    background: url('../images/crystal.svg') no-repeat left center;
    background-size: 1.7rem 2rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}
.task__action{
    width: 9.8rem;
    flex-shrink: 0;
    aspect-ratio: 98 / 77;
    background: url('../images/task-btn.png') no-repeat center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.task__action .btn__go,
.task__action .btn__load,
.task__action .btn__done{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.btn__go{
    font-size: 1.8rem;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.03rem;
    color: #fff;
    text-shadow: 0 0.2rem 0.07rem rgba(0, 0, 0, 0.65);
}

.btn__go.hide{
    display: none;
}

.btn__load{
    display: none !important;
    flex-direction: column;
    color: rgba(255, 166, 0, 0.79);
    font-size: 0.6rem;
    letter-spacing: 0.03rem;
    gap: 0.2rem;
}

.btn__load.show{
    display: flex !important;
}

.btn__load.show svg{
    width: 1.6rem;
    height: 1.6rem;
}

.btn__done{
    display: none !important;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0.2rem 0.07rem rgba(0, 0, 0, 0.65);
}

.btn__done.show{
    display: flex !important;
}

/* Контейнер рейтинга */
.leaders{
    margin-top: 2.9rem;
}
.leaders__title{
    /* оставляем как есть */
}
.leaders__list{
    max-height: none;
    height: auto;
    overflow: visible;
    padding-right: 0;
}

/* «Себя» — без рамки, в стиле списка */
.my-rank{
    /* Убираем прежнюю рамку и фон из inline-стилей JS */
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Залипающая внизу плашка «себя» */
.my-rank--sticky{
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 0.8rem;
    /* лёгкая подложка чтобы текст не сливался при скролле */
    background: linear-gradient(180deg, rgba(26,16,4,0) 0%, rgba(26,16,4,0.95) 25%);
    padding-top: 1rem;
    padding-bottom: 0.6rem;
}
.btn__img.active{
    color: #fce708;
}
.btn__img.active img{
    box-shadow: 0 0 0.9rem 0 rgba(252, 232, 8, 1);
    border-radius: 100%;
}