/* custom.css */

/* Crystal Jade Dynasty logo */
.logo__img {
	height: 4.75rem;
	width: auto;
	max-width: 12rem;
	object-fit: contain;
}
.preload__logo {
	height: auto !important;
	width: min(18rem, 64vw);
	max-width: 18rem;
	max-height: 22vh;
	object-fit: contain;
	display: block;
}

/* Server name instead of s-2.png — one line, no overlap with Онлайн */
.server-name {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: center;
	column-gap: 0.38em;
	max-width: 100%;
	line-height: 1.15;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}
.server-name__main,
.server-name__sub {
	flex: 0 0 auto;
	white-space: nowrap;
	font-family: "Bona Nova", "Alice", "Times New Roman", Times, serif;
	font-weight: 700;
	text-transform: uppercase;
	background: linear-gradient(180deg, #f4e9ff 0%, #c9a6ef 42%, #8e6bc4 78%, #e8d7ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.25)) drop-shadow(0 2px 6px rgba(90, 40, 140, 0.55));
}
.server-name__main {
	font-size: clamp(1.15rem, 1.6vw, 1.55rem);
	letter-spacing: 0.08em;
}
.server-name__sub {
	margin-top: 0;
	font-size: clamp(1.05rem, 1.45vw, 1.4rem);
	letter-spacing: 0.08em;
}
.server__pic {
	height: auto;
	min-height: 0;
	width: 100%;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0;
}
.server__container {
	gap: 0.35rem;
	overflow: visible;
}
.server__bar {
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	width: 100%;
	justify-content: center;
}
.serv__pic {
	height: auto;
	min-height: 0;
	width: 100%;
	overflow: visible;
	margin-bottom: 0;
	justify-content: center;
}
.serv .server-name {
	justify-content: center;
}
.serv__pic .server-name__main {
	font-size: clamp(1.25rem, 1.8vw, 1.7rem);
}
.serv__pic .server-name__sub {
	font-size: clamp(1.15rem, 1.65vw, 1.55rem);
}
.serv__bar {
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}
.server-name_tip .server-name__main {
	font-size: 1.2rem;
}
.server-name_tip .server-name__sub {
	font-size: 1.05rem;
	letter-spacing: 0.06em;
}

/*
 * main.css @680px sets .server__container { flex-basis: 12.5rem; width: auto }
 * — that column was sized for s-2.png and forced the title to wrap into Онлайн.
 */
@media (min-width: 680px) {
	.server__container {
		flex: 1 1 auto;
		flex-basis: auto;
		width: auto;
		min-width: 0;
		max-width: calc(100% - 3.75rem);
		align-items: flex-start;
		justify-content: center;
		padding-right: 0.75rem;
		box-sizing: border-box;
	}
	.server .server-name,
	.server__pic,
	.server__bar,
	.server .onl {
		justify-content: flex-start;
	}
}

/* ---- Large screen layout fixes (overlap / clipping) ---- */
@media (min-width: 1200px) and (min-height: 750px) {
	/* Allow section content to use full viewport height without hard clip */
	.sld__content {
		max-height: none;
		min-height: 100vh;
		height: auto;
		box-sizing: border-box;
	}

	/* Keep wheel-slider, but don't crop overflowing cards */
	.section-slider-active {
		overflow-x: hidden;
		overflow-y: auto;
	}

	/*
	 * Override main.css absolute footer:
	 *   [data-section=footer]{position:absolute;left:0;right:0;bottom:0;z-index:10}
	 * Absolute overlay was covering Discord / social tiles.
	 */
	.section-slider-active [data-section="footer"],
	.page [data-section="footer"],
	[data-section="footer"] {
		position: relative !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		top: auto !important;
		inset: auto !important;
		z-index: 10;
		pointer-events: auto;
		width: 100%;
		box-sizing: border-box;
		background: linear-gradient(180deg, transparent 0%, rgba(19, 9, 30, 0.85) 18%, rgba(19, 9, 30, 0.98) 55%, #13091e 100%);
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
		margin-top: 0;
		overflow: visible;
	}

	.section-slider-active [data-section="footer"] a,
	.section-slider-active [data-section="footer"] .up {
		pointer-events: auto;
	}

	/* Clear gap under social tiles before footer text */
	.section-slider-active [data-section="media"] .sld__content {
		padding-bottom: 5rem;
		min-height: auto;
		justify-content: flex-start;
	}

	.section-slider-active [data-section="news"] .sld__content {
		padding-bottom: 4rem;
	}
	.section-slider-active [data-section="features"] .sld__content {
		padding-top: 1rem;
		padding-bottom: 4.5rem;
		justify-content: flex-start;
		align-items: stretch;
	}

	/* bnrs removed — 3-col grid made «Наверх» sit oddly; use 2 cols */
	.section-slider-active [data-section="footer"] .footer,
	[data-section="footer"] .footer {
		padding-top: 0.75rem;
		padding-bottom: 1rem;
		align-items: center;
		grid-template-columns: 1fr auto;
		justify-content: space-between;
		gap: 1.5rem 2rem;
		max-width: 56rem;
		margin-left: auto;
		margin-right: auto;
		width: 100%;
	}

	.section-slider-active [data-section="footer"] .footer__box,
	[data-section="footer"] .footer__box {
		justify-self: center;
		grid-column: 1;
	}

	.section-slider-active [data-section="footer"] .footer__upbox,
	[data-section="footer"] .footer__upbox {
		justify-self: end;
		grid-column: 2;
		opacity: 1;
		visibility: visible;
		align-self: center;
	}

	.section-slider-active [data-section="footer"] .footer__copyright {
		line-height: 1.45;
		padding-bottom: 0.25rem;
	}

	.section-slider-active [data-section="footer"] .up {
		opacity: 1;
		visibility: visible;
	}
}

/* Media: remove mask fade that eats Discord; keep server card inside */
@media (min-width: 1200px) {
	/* Kill absolute footer even when viewport height < 750px */
	.section-slider-active [data-section="footer"],
	.page [data-section="footer"],
	[data-section="footer"] {
		position: relative !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		top: auto !important;
	}

	[data-section="media"] {
		-webkit-mask: none !important;
		mask: none !important;
		overflow: visible;
	}

	.media {
		padding-top: 3rem;
		padding-bottom: 4.5rem;
		box-sizing: border-box;
		max-width: 100%;
	}

	.media__container {
		align-items: start;
		max-width: 100%;
		box-sizing: border-box;
		grid-template-columns: minmax(16rem, 26.25rem) minmax(0, 1fr);
		margin-bottom: 3.5rem;
	}

	.media__sclbox,
	.media__servbox {
		position: relative;
		z-index: 2;
		max-width: 100%;
		min-width: 0;
	}

	.media__servbox .serv {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.media__decor {
		pointer-events: none;
		z-index: 0;
	}

	.footer__content {
		max-width: 42rem;
		pointer-events: auto;
	}

	.footer__copyright,
	.footer__links {
		position: relative;
		z-index: 2;
	}
}

/* News cards: center larger, sides slightly smaller; arrows + bottoms visible */
@media (min-width: 1200px) {
	[data-section="news"] {
		-webkit-mask: none !important;
		mask: none !important;
		overflow: visible;
	}

	.news {
		padding-top: 2.75rem;
		padding-bottom: 2.5rem;
		box-sizing: border-box;
		overflow: visible;
	}

	.news__slider-wrp {
		/* arrows sit outside (±4.375rem) — keep them inside the padded wrp */
		overflow: visible;
		z-index: 2;
		align-items: center;
		gap: 0;
		padding: 0 4.5rem;
		position: relative;
	}

	.news__slider {
		overflow: visible;
		padding-top: 2.25rem;
		padding-bottom: 1.75rem;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		min-width: 0;
		flex: 1 1 auto;
		width: 100%;
	}

	.news__swiper-wrapper {
		align-items: center !important;
	}

	.news__swiper-slide {
		align-items: center !important;
		height: auto !important;
		align-self: center;
		transition: transform 0.35s ease, opacity 0.35s ease;
		z-index: 1;
	}

	.news__swiper-slide.swiper-slide-active {
		z-index: 3;
	}

	.news__swiper-slide.swiper-slide-prev,
	.news__swiper-slide.swiper-slide-next {
		z-index: 2;
	}

	.news__post.post {
		height: auto;
		max-height: none;
		--post-min-height: 26.5rem;
		--title-padding-bottom: 0.75rem;
		--line-clamp: 4;
		--size-title: 1.85rem;
		--size-desc: 1.05rem;
		display: flex;
		box-sizing: border-box;
		transform-origin: center center;
		transition: transform 0.35s ease, opacity 0.35s ease;
	}

	.news__post .post__title {
		height: auto;
		min-height: 7.5rem;
	}

	.news__post .post__pic {
		height: 11.5rem;
	}

	.news__post .post__desc {
		min-height: 5rem;
		-webkit-line-clamp: 4;
	}

	/* Боковые карточки меньше центральной (override main next-after-active vars) */
	.news__swiper-slide.swiper-slide-prev .post,
	.news__swiper-slide.swiper-slide-next .post,
	.news__swiper-slide.swiper-slide-active + .swiper-slide.swiper-slide-next .post {
		--post-min-height: 26.5rem;
		--title-padding-bottom: 0.5rem;
		--size-title: 1.45rem;
		--size-desc: 0.95rem;
		--line-clamp: 4;
		transform: scale(0.88);
		opacity: 0.88;
	}

	.news__swiper-slide.swiper-slide-active .post {
		--post-min-height: 26.5rem;
		--title-padding-bottom: 0.75rem;
		--size-title: 1.85rem;
		--size-desc: 1.05rem;
		transform: scale(1);
		opacity: 1;
		z-index: 2;
	}

	.news__post .post__body {
		min-height: 0;
		flex: 1 1 auto;
	}

	.news__post .post__content {
		flex: 1 1 auto;
	}

	.news__post .post__bar {
		margin-top: auto;
		flex-shrink: 0;
	}

	.news__sarrow,
	[data-slider-prev="news"],
	[data-slider-next="news"] {
		z-index: 70 !important;
		flex-shrink: 0;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto;
		display: flex !important;
	}

	.news__sarrow.swiper-button-disabled {
		opacity: 0.35 !important;
		pointer-events: none;
		display: flex !important;
	}

	[data-slider-prev="news"] {
		left: 0 !important;
		right: auto !important;
		top: 50% !important;
		transform: translateY(-50%) !important;
	}

	[data-slider-next="news"] {
		right: 0 !important;
		left: auto !important;
		top: 50% !important;
		transform: translateY(-50%) !important;
	}

	.news__decor {
		pointer-events: none;
		z-index: 0;
		opacity: 0.55;
	}
}

/* Features: raise block, show full diamond tips, keep arrows visible */
@media (min-width: 1200px) {
	[data-section="features"] {
		-webkit-mask: none !important;
		mask: none !important;
		overflow: visible;
	}

	.features {
		padding-top: 1.25rem;
		padding-bottom: 2.75rem;
		box-sizing: border-box;
		overflow: visible;
		align-items: flex-start;
		justify-content: flex-start;
		min-height: 100%;
	}

	.features .heading {
		position: relative;
		z-index: 3;
		margin-top: 0.5rem;
		margin-bottom: 0;
		padding-top: 0.25rem;
	}

	.features__box {
		width: 100%;
		padding-top: 0.5rem;
		overflow: visible;
	}

	.features__slider-wrp {
		/* arrows sit outside (±4.375rem) — must not clip them */
		overflow: visible;
		z-index: 2;
		align-items: center;
		gap: 0;
		margin-top: 0.5rem;
		padding: 0 4.5rem;
		/* room below for crystal tips sticking past the track */
		padding-bottom: 1.25rem;
		position: relative;
	}

	.features__slider,
	.features__slider.swiper {
		/*
		 * overflow:hidden (main + Swiper) was clipping diamond bottom tips +
		 * .feature:after (bottom: -2.125rem). Section still clips page X-bleed;
		 * allow vertical overflow so tips stay visible. Do not shrink in flex.
		 */
		overflow: visible !important;
		margin-top: 1.25rem;
		padding-top: 3.25rem;
		padding-bottom: 3.75rem;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		min-width: 0;
		flex: 1 0 auto;
		width: 100%;
	}

	.features__slider .swiper-wrapper,
	.features__swiper-slide {
		overflow: visible;
	}

	.features__decor {
		pointer-events: none;
		z-index: 0;
		opacity: 0.45;
	}

	.features__sarrow,
	[data-slider-prev="features"],
	[data-slider-next="features"] {
		z-index: 70 !important;
		flex-shrink: 0;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto;
		display: flex !important;
	}

	[data-slider-prev="features"] {
		left: 0 !important;
		right: auto !important;
		transform: translateY(-50%) !important;
	}

	[data-slider-next="features"] {
		right: 0 !important;
		left: auto !important;
		transform: translateY(-50%) !important;
	}

	.features__swiper-slide {
		z-index: 1;
	}

	.features__swiper-slide.swiper-slide-active {
		z-index: 3;
	}

	.features__swiper-slide.swiper-slide-prev,
	.features__swiper-slide.swiper-slide-next {
		z-index: 2;
	}
}

.rating {

}
.btns_switcher {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 82px;
    margin-bottom: 45px;
    
}
.rt_btn {
    color: #F6E8FF;
    text-align: center;
    font-family: Bona Nova;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-variant: small-caps;
}
.rt_btn_active {
    color: rgba(237, 228, 243, 1);
    background-color: rgba(126, 89, 163, 1);
    border-color: rgba(126, 89, 163, 1);
    cursor: default;
    pointer-events: none;
}
.rating .button {
    padding: 0.65rem 1.625rem;
}
.rt_table {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 100px;
}
@media (max-width: 500px) {
    .rt_table tbody {
        overflow-x: scroll;
    }
}
.rt_table tr {
    height: 70px;
    max-height: 70px;
    border: none;
    margin-bottom: 10px;
}
.rt_header,th {
    color: #EDE4F3;
    text-align: center;
    font-variant-numeric: lining-nums proportional-nums;
    font-family: Bona Nova;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-variant: small-caps;
    background-color: #4C3663;
}
.rt_header tr,td,th {
    border: none;
}
.rt_table tr td:nth-child(1) {
    width: 92px;
}
.rt_table tr td:nth-child(2) {
    width: 400px;
}
.rt_table tr td:nth-child(3) {
    width: 165px;
}
.rt_table tr td:nth-child(4) {
    width: 180px;
}
.rt_table tr td:nth-child(5) {
    width: 153px;
}
.rt_table tr td:nth-child(6) {
    width: 350px;
}
.rt_table .rt_col {
    color: #EDE4F3;
    font-variant-numeric: lining-nums proportional-nums;
    font-family: Bona Nova;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-variant: small-caps;
    text-align: center;
    transition: .3s ease-in-out;
}
.rt_col:hover {
    transform:scale(105%);
    filter:brightness(120%);
}
.rt_col td,img {
    vertical-align: middle;
    text-align: center;
}
.rt_classimg {
    margin-right: 10px;
    mix-blend-mode: luminosity;
}
.rt_guildimg {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    object-fit: cover;
}
.rt_col td:nth-child(even) {
    background-color: #1E122C;
}
.rt_col td:nth-child(odd) {
    background-color: #261836;
}
.rt_col td:nth-child(3) {
    color: #D3A8F0;
}
.rt_table {
    display: none;
    animation: table .7s ease-in-out;
}
@keyframes table {
    0% {
        opacity: 0;
        transform: translateY(2%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}
.rt_table.active {
    display: flex;
}
.newbies_date {
    text-align: center;
    color: #EDE4F3;
    font-variant-numeric: lining-nums proportional-nums;
    font-family: Bona Nova;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-variant: small-caps;
    opacity: 0.8;
    margin-bottom: 10px;
    display: none;
}
.newbies_date.active {
    display: block;
}
.s-download__container {
    border: none;
    -webkit-mask: linear-gradient(to bottom,
            rgba(0, 0, 0) 0%,
            rgb(0, 0, 0) calc(100% - 16.25rem),
            rgba(0, 0, 0, 0) 100%);
}
.s-download__box {
    background-image: url('../images/s-download/launcher.webp');
    opacity: 0.8;
}
.lk_container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: #13091E;
}
.lk_server {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 50%;
    height: 100%;
    color: #EDE4F3;
    text-align: center;
    font-family: Bona Nova;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-variant: small-caps;
    text-decoration: none;
    overflow: hidden;
}
.lk_wrapper {
    position: absolute;
    pointer-events: none;
    z-index: 50;
}
.lk_wrapper p {
    margin-top: -90px;
}
.lk_bg.old {
    background-image: url('../images/old.webp');
    background-position: 25% center;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}
.lk_bg.new {
    background-image: url('../images/new.webp');
    background-position: 55% center;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}
.lk_bg {
    background-repeat: no-repeat;
    transition: .5s ease-in-out;
    background-size: cover;
}
.lk_bg:hover {
    transform: scale(103%);
    opacity: 0.5;
}
@media (max-width: 500px) {
    .lk_container {
        flex-direction: column;
    }
    .lk_server {
        width: 100%;
        height: 50%;
    }
}

/* Treasures */
.treasures {
    /* padding-bottom: 10%; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.treasures_title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.treasures_title img {
    width: 749px;
    margin-top: -80px;
    z-index: 5;
    user-select: none;
}
.treasures_title::before {
    position: absolute;
    content: '';
    background: url(../images/treasures/clouds.png) no-repeat;
    width: 979px;
    height: 358px;
    margin-top: 25px;
}
.treasures_timer {
    margin-top: -10px;
    pointer-events: none;
}
.treasures_timer .desc {
    display: none;
}
.desc.treasures {
    z-index: 5;
    font-size: 24px;
    margin-top: -45px;
    letter-spacing: 2px;
}
.chest_content {
    position: relative;
    margin-top: -50px;
    display: flex;
    width: 100%;
    margin-bottom: 90px;
}
.chest_content .chest {
    display: flex;
    align-items: center;
}
.chest_content .chest::before {
    position: absolute;
    left: -5px;
    top: -45px;
    content: '';
    background: url(../images/treasures/title_deco.png) no-repeat;
    width: 457px;
    height: 395px;
}
.treasures_deco {
    position: absolute;
    left: -15px;
    top: -180px;
    content: '';
    background: url(../images/treasures/deco.png) no-repeat;
    width: 1169px;
    height: 480px;
    z-index: -1;
}
.chest_content .chest img {
    margin-left: 13px;
    position: relative;
    z-index: 4;
}
.loot_wrapper {
    position: absolute;
    right: 0;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    width: 100%;
    align-self: center;
    margin-top: 90px;
}
.loot_wrapper .btns {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
    padding-right: 20px;
}
.loot_wrapper .btns .btn:nth-child(1) {
    opacity: 0.9;
}
.loot_wrapper .btns .btn:nth-child(2)::after {
    position: absolute;
    content: '';
    width: 216px;
    height: 47px;
    background-color: #DA9DFF;
    opacity: 0.6;
    filter: blur(20px);
    z-index: -5;
    border-radius: 200px;
}
.loot_row {
    position: relative;
    display: flex;
    justify-content: flex-end;
    max-width: 983px;
    background: linear-gradient(270deg, rgba(23, 13, 32, 0.00) 0%, rgba(23, 13, 32, 0.70) 75.52%);
    z-index: 1;
    margin-bottom: 25px;
}
.loot_row::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 1px;
    top: 0;
    opacity: 0.6;
    background: linear-gradient(90deg, #BA83DE 0%, rgba(159, 87, 207, 0.00) 100%);
}
.loot_row::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 1px;
    bottom: 0;
    opacity: 0.6;
    background: linear-gradient(90deg, #BA83DE 0%, rgba(159, 87, 207, 0.00) 100%);
}
.loot_row .items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 18px 20px 18px 90px;
    gap: 15px;
}
.loot_row .items .item img {
    width: 34px;
}
.item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../images/treasures/item_bg.png') no-repeat;
    width: 44px;
    height: 44px;
    transition: .2s;
}
.item:hover{
    filter: brightness(115%);
}
.item.rare::after {
    position: absolute;
    content: '';
    width: 34px;
    height: 34px;
    border-radius: 2px;
    border: 2px solid #DD4C4C;
    opacity: 0.7;
    filter: blur(0.9px);
}
.item.gold::after {
    position: absolute;
    content: '';
    width: 34px;
    height: 34px;
    border-radius: 2px;
    border: 2px solid #F4BF00;
    opacity: 0.7;
    filter: blur(0.9px);
}
.item.green::after {
    position: absolute;
    content: '';
    width: 34px;
    height: 34px;
    border-radius: 2px;
    border: 2px solid #A9FB41;
    opacity: 0.7;
    filter: blur(0.9px);
}
.item.blue::after {
    position: absolute;
    content: '';
    width: 34px;
    height: 34px;
    border-radius: 2px;
    border: 2px solid #41ADFB;
    opacity: 0.7;
    filter: blur(0.9px);
}

/* rewards */

.rewards_content {
    display: flex;
    flex-direction: row;
    gap: 90px;
    margin-bottom: 90px;
}
.guarantee {
}
.guarantee .text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 5px;
}
.guarantee .text::after {
    content: '';
    position: absolute;
    left: -50px;
    top: -70px;
    width: 442px;
    height: 188px;
    background: url('../images/treasures/deco_text.png') no-repeat;
    z-index: -1;
}
.rewards_content .text .title {
    font-size: 26px;
    text-align: left;
    white-space: nowrap;
}
.rewards_content .text .subtitle {
    color: rgba(237, 228, 243, 0.90);
    font-size: 20px;
    font-family: Bona Nova;
    font-weight: 400;
    line-height: normal;
    font-variant: small-caps;
    margin-top: -1px;
}
.guarantee .list {
    max-width: 374px;
    display: flex;
    flex-direction: column;
    gap: 38px;
    margin-top: 15px;
}
.guarantee .list_item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 58px;
    background: linear-gradient(270deg, rgba(23, 13, 32, 0.00) 11.98%, rgba(23, 13, 32, 0.70) 100%);
    padding-left: 59px;
}
.guarantee .list_item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    top: 0;
    opacity: 0.6;
    background: linear-gradient(90deg, #BA83DE 0%, rgba(159, 87, 207, 0.00) 100%);
}
.guarantee .list_item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    opacity: 0.6;
    background: linear-gradient(90deg, #BA83DE 0%, rgba(159, 87, 207, 0.00) 100%);
}
.guarantee .list_item .pcs {
    position: absolute;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: url('../images/treasures/bg_pcs.png') no-repeat;
    z-index: 5;
}
.guarantee .list_item .pcs p {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #E0B0FF;
    text-align: center;
    font-family: AGFriquer,Times New Roman,Times,serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.guarantee .list_item .pcs p::after {
    content: 'шт.';
    color: #E9DDF2;
    font-size: 16px;
    font-weight: 400;
    font-variant: small-caps;
    margin-top: -5px;
    margin-left: 2px;
}
.guarantee .list_item .reward.fx {
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.guarantee .list_item .reward {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-left: 40px;
    text-decoration: none;
    transition: .2s;
}
.reward_wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* gap: 10px; */
}
.reward_wrapper::after {
    content: 'На выбор';
    position: absolute;
    color: rgb(255, 255, 255);
    background: rgba(16, 6, 20, 0.4);
    font-family: AGFriquer,Times New Roman,Times,serif;
    font-size: 10px;
    pointer-events: none;
    width: 100%;
    top: -8px;
    text-align: center;
    font-feature-settings: "lnum";
    font-variant-numeric: lining-nums;
    text-shadow: 0px 0px 2px #302216;
    filter: drop-shadow(0px 0px 5px rgb(163, 132, 189));
}
.guarantee .list_item .reward.fx a {
    transition: .2s;
}
.guarantee .list_item .reward.fx a:hover {
    filter: brightness(115%);
}
.list_item .reward_text a::after {
    content: attr(data-count);
    color: #EDE4F3;
    margin-left: 5px;
}
.reward_wrapper img {
    width: 32px;
    height: 32px;
}
.reward_text {
    display: flex;
    flex-direction: column;
}
.reward_text a {
    font-size: 13px;
}
.guarantee .list_item .reward:hover {
    filter: brightness(115%);
}
.guarantee .list_item .reward.fx:hover {
    filter: brightness(100%);
}
.guarantee .list_item .reward p, a {
    font-family: AGFriquer,Times New Roman,Times,serif;
    font-size: 20px;
    text-align: left;
    letter-spacing: 0.2px;
    opacity: 0.9;
    white-space: nowrap;
    text-decoration: none;
}
.guarantee .list_item .reward p.gold,a.gold {
    color: #F0D463;
}
.guarantee .list_item .reward p.orange,a.orange {
    color: #FA8239;
}
.guarantee .list_item .reward p.purple,a.purple {
    color: #A45CD8;
}
.guarantee .list_item .reward p.green,a.green {
    color: #7CDE65;
}

/* rating */

.rating {
    display: flex;
    flex-direction: column;
}
.main_reward {
    display: flex;
    align-items: center;
    width: 852px;
    height: 238px;
    background-image: url('../images/treasures/tr.png');
    text-decoration: none;
    transition: .2s;
    margin-bottom: 10px;
    align-self: flex-end;
}
.main_reward:hover {
    filter: brightness(110%);
}
.main_reward .text {
    display: flex;
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 28px;
    padding-left: 95px;
}
.main_reward .text .title {
    font-size: 54px;
}
.main_reward .subtitle {
}
.rating_wrapper {
    display: flex;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(130, 113, 141, 0.20);
    font-family: AGFriquer,Times New Roman,Times,serif;
}
.r_header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 0 35px;
    color: #8F7C9C;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
    background: linear-gradient(270deg, rgba(23, 13, 32, 0.00) 0%, rgba(23, 13, 32, 0.70) 52.08%, rgba(23, 13, 32, 0.00) 100%);
}
.r_header::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    opacity: 0.4;
    background: linear-gradient(90deg, rgba(159, 87, 207, 0.00) 0%, #BA83DE 50%, rgba(159, 87, 207, 0.00) 100%);
    top: 0;
}
.r_header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    opacity: 0.4;
    background: linear-gradient(90deg, rgba(159, 87, 207, 0.00) 0%, #BA83DE 50%, rgba(159, 87, 207, 0.00) 100%);
    bottom: 0;
}
.r_header p:nth-child(1) {
    width: 32px;
    margin-right: 90px;
}
.r_header p:nth-child(2) {
    width: 228px;
    margin-right: 110px;
    text-align: center;
}
.r_header p:nth-child(3) {
    width: 100px;
    margin-right: 142px;
    text-align: center;
}
.r_header p:nth-child(4) {
    width: 100px;
    text-align: center;
}
.r_player {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: calc(100% - 70px);
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.2px;
    padding: 0 35px;
    background: linear-gradient(270deg, rgba(23, 13, 32, 0.00) 0%, rgba(23, 13, 32, 0.70) 50%, rgba(23, 13, 32, 0.00) 100%);
    border: 1px solid rgba(206, 172, 228, 0.20);
    transition: .2s ease-in-out;
}
.r_player:hover {
    transform: scale(105%);
}
.r_player:nth-child(odd) {
    background: linear-gradient(270deg, rgba(23, 13, 32, 0.00) 0%, rgba(41, 19, 49, 0.70) 50%, rgba(23, 13, 32, 0.00) 100%);
}
.r_player p:nth-child(1) {
    width: 32px;
    margin-right: 90px;
    color: #EDE4F3;
    opacity: 0.9;
}
.r_player p:nth-child(3) {
    width: 100px;
    margin-right: 142px;
    text-align: center;
    color: #D49FFD;
    opacity: 0.9;
}
.r_player .class {
    color: #F2F2F2;
    width: 228px;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
}
.r_wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 128px;
    justify-content: center;
}
.r_wrapper.ch::after {
    content: 'На выбор';
    position: absolute;
    color: rgb(255, 255, 255);
    background: rgba(16, 6, 20, 0.4);
    font-family: AGFriquer,Times New Roman,Times,serif;
    font-size: 12px;
    pointer-events: none;
    padding: 0 4px;
    top: -8px;
    text-align: center;
    font-feature-settings: "lnum";
    font-variant-numeric: lining-nums;
    text-shadow: 0px 0px 2px #302216;
    filter: drop-shadow(0px 0px 5px rgb(163, 132, 189));
}
.r_wrapper a {
    transition: .2s;
    width: 32px;
}
.reward.co {
    position: relative;
}
.reward.co::after {
    position: absolute;
    color: rgb(255, 255, 255);
    background: rgba(16, 6, 20, 0.4);
    font-family: Bona Nova;
    font-size: 14px;
    width: 100%;
    text-align: center;
    font-feature-settings: "lnum";
    font-variant-numeric: lining-nums;
    text-shadow: 0px 0px 2px #302216;
    filter: drop-shadow(0px 0px 5px rgb(163, 132, 189));
    bottom: 0px;
    content: attr(data-count);
}
.r_wrapper a:hover {
    filter: brightness(115%);
}
.r_player .class p {
    opacity: 0.9;
}
.r_player .reward {
    display: flex;
    justify-content: center;
    /* width: 100px; */
}
.r_player .reward img {
    width: 32px;
    height: 32px;
}
.r_info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}
.r_update {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.5;
    color: rgba(237, 228, 243, 0.90);
    text-align: center;
    font-family: Bona Nova;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-variant: small-caps;
}
.r_update::before {
    content: '';
    background: url('../images/treasures/refresh.png') no-repeat;
    width: 30px;
    height: 30px;
}
.r_info .btn::after {
    position: absolute;
    content: '';
    width: 216px;
    height: 47px;
    background-color: #DA9DFF;
    opacity: 0.6;
    filter: blur(20px);
    z-index: -5;
    border-radius: 200px;
}
.list_item .reward p::after {
    content: attr(data-count);
    color: #EDE4F3;
    margin-left: 5px;
}
@media (min-width:2040px) {
    .loot_wrapper {
        justify-content: center;
    }
    .loot_row {
        max-width: 78%;
    }
}
@media (max-width:1340px) {
    .loot_wrapper {
        align-items: center;
        justify-content: center;
    }
    .loot_row {
        width: 100%;
        
    }
    .loot_wrapper .btns {
        justify-content: center;
        z-index: 5;
    }
    .chest_content .chest {
        position: relative;
        left: -30%;
    }
    .rewards_content {
        width: 100%;
        justify-content: center;
        gap: unset;
    }
    
}
@media (max-width:840px) {
    .rating {
        
    }
    .r_player {
        width: auto;
    }
    .rating_wrapper {
        overflow-x: scroll;
        align-items: flex-start;
    }
    .rewards_content {
        flex-direction: column;
    }
    .guarantee .list {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 38px;
        margin-top: 15px;
    }
    .main_reward .text {
        display: flex;
        text-align: center;
        flex-direction: column;
        align-items: center;
        margin-top: 28px;
        padding-left: 0;
    }
    .main_reward {
        justify-content: center;
        width: 100%;
        background-size: cover;
        height: auto;
        margin: 50px 0;
    }
    .loot_wrapper {
        margin-top: 150px;
    }
    .loot_row {
        z-index: 10;
        justify-content: center;
        align-items: center;
        background: linear-gradient(180deg, rgba(23, 13, 32, 0.00) 0%, rgba(23, 13, 32, 0.70) 75.52%);
    }
    .loot_row .items {
        padding: 18px 20px 18px 20px;
        justify-content: center;
    }
}
@media (max-width:450px) {
    .loot_wrapper {
        margin-top: 470px;
    }
    .loot_row {
        background: rgba(23, 13, 32, 0.70);
    }
    .chest_content {
        margin-bottom: 420px;
    }
    .main_reward .text {
        transform: scale(80%);
    }
}
.treasures_banner {
    position: fixed;
    right: 0;
    bottom: 0;
    background: url('../images/treasures/treasures_banner.png') no-repeat;
    transition: .2s;
    width: 271px;
    height: 219px;
    z-index: 10;
}
.treasures_banner:hover {
    filter: brightness(110%);
}
@media (max-width:450px) {
    .treasures_banner {
        display: none;
    }
}