/* =============================
   Preloader
   ============================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 150px;
    height: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =============================
   Custom Scrollbar Styling
   ============================= */

/* Webkit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: rgba(17, 3, 2, 0.8);
	border-radius: 6px;
	border: 1px solid rgba(243, 205, 118, 0.2);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, 
		rgba(243, 205, 118, 0.8) 0%, 
		rgba(243, 205, 118, 0.6) 50%, 
		rgba(243, 205, 118, 0.4) 100%);
	border-radius: 6px;
	border: 1px solid rgba(243, 205, 118, 0.3);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, 
		rgba(243, 205, 118, 1) 0%, 
		rgba(243, 205, 118, 0.8) 50%, 
		rgba(243, 205, 118, 0.6) 100%);
	border-color: rgba(243, 205, 118, 0.6);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
				0 0 8px rgba(243, 205, 118, 0.4);
}

::-webkit-scrollbar-thumb:active {
	background: linear-gradient(180deg, 
		rgba(210, 78, 61, 0.8) 0%, 
		rgba(243, 205, 118, 0.8) 100%);
	border-color: rgba(210, 78, 61, 0.6);
}

::-webkit-scrollbar-corner {
	background: rgba(17, 3, 2, 0.8);
}

/* Firefox */
html {
	scrollbar-width: thin;
	scrollbar-color: rgba(243, 205, 118, 0.6) rgba(17, 3, 2, 0.8);
}

/* Combat tabs custom scrollbar */
.combat__tabs {
	scrollbar-width: thin;
	scrollbar-color: rgba(243, 205, 118, 0.8) rgba(17, 3, 2, 0.6);
}

.combat__tabs::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.combat__tabs::-webkit-scrollbar-track {
	background: rgba(17, 3, 2, 0.6);
	border-radius: 4px;
	border: 1px solid rgba(243, 205, 118, 0.3);
}

.combat__tabs::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, 
		rgba(243, 205, 118, 0.9) 0%, 
		rgba(243, 205, 118, 0.7) 100%);
	border-radius: 4px;
	border: 1px solid rgba(243, 205, 118, 0.4);
}

.combat__tabs::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, 
		rgba(243, 205, 118, 1) 0%, 
		rgba(243, 205, 118, 0.8) 100%);
	box-shadow: 0 0 6px rgba(243, 205, 118, 0.5);
}

/* =============================
   Fonts
   ============================= */
   @font-face {
	font-family: 'TrajanSansPro';
	src: url('/fonts/TrajanSansPro-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'TrajanSansPro';
	src: url('/fonts/TrajanSansPro-ExtraLight.woff2') format('woff2');
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'TrajanSansPro';
	src: url('/fonts/TrajanSansPro-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'TrajanSansPro';
	src: url('/fonts/TrajanSansPro-Semibold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'TrajanSansPro';
	src: url('/fonts/TrajanSansPro-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'TrajanSansPro';
	src: url('/fonts/TrajanSansPro-Black.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('/fonts/Manrope-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('/fonts/Manrope-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('/fonts/Manrope-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('/fonts/Manrope-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* =============================
   CSS Variables
   ============================= */
:root {
	--color-title: #f3cd76;
	--color-bg: #110302;
	--color-text: #f2e8e7;
	--color-muted: #c7b7b5;
	--color-primary: #d24e3d;
	--color-primary-hover: #be4536;
	--color-header-bg: rgba(17, 3, 2, 0.9);
	--container-width: 1200px;
	--menu-working-width: 1264px;
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--radius: 8px;
	--font-heading: 'TrajanSansPro', serif;
	--font-body: 'Manrope', sans-serif;
}

/* =============================
   Reset / Normalize
   ============================= */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	background-color: #110302;
	scroll-behavior: smooth;
}

html, body {
	height: 100%;
}

/* =============================
   Parallax Starfield Background
   ============================= */
.parallax-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	overflow: hidden;
}

.stars {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 200%;
	background-image: 
		radial-gradient(2px 2px at 20px 30px, #fff, transparent),
		radial-gradient(2px 2px at 40px 70px, #fff, transparent),
		radial-gradient(1px 1px at 90px 40px, #fff, transparent),
		radial-gradient(1px 1px at 130px 80px, #fff, transparent),
		radial-gradient(2px 2px at 160px 30px, #fff, transparent);
	background-repeat: repeat;
	background-size: 200px 100px;
	animation: twinkle 3s ease-in-out infinite alternate;
}

.stars-1 {
	background-image: 
		radial-gradient(1px 1px at 20px 30px, #fff, transparent),
		radial-gradient(1px 1px at 40px 70px, #fff, transparent),
		radial-gradient(1px 1px at 90px 40px, #fff, transparent),
		radial-gradient(1px 1px at 130px 80px, #fff, transparent),
		radial-gradient(1px 1px at 160px 30px, #fff, transparent);
	background-size: 200px 100px;
	opacity: 0.8;
}

.stars-2 {
	background-image: 
		radial-gradient(2px 2px at 60px 20px, #fff, transparent),
		radial-gradient(1px 1px at 100px 60px, #fff, transparent),
		radial-gradient(1px 1px at 150px 10px, #fff, transparent),
		radial-gradient(2px 2px at 180px 50px, #fff, transparent),
		radial-gradient(1px 1px at 30px 90px, #fff, transparent);
	background-size: 300px 150px;
	opacity: 0.6;
}

.stars-3 {
	background-image: 
		radial-gradient(1px 1px at 50px 40px, #fff, transparent),
		radial-gradient(2px 2px at 120px 20px, #fff, transparent),
		radial-gradient(1px 1px at 170px 70px, #fff, transparent),
		radial-gradient(1px 1px at 80px 100px, #fff, transparent),
		radial-gradient(2px 2px at 10px 50px, #fff, transparent);
	background-size: 400px 200px;
	opacity: 0.4;
}

@keyframes twinkle {
	0% { opacity: 0.3; }
	100% { opacity: 1; }
}

body {
	margin: 0;
	font-family: var(--font-body);
	line-height: 1.5;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: relative;
	overflow-x: hidden;
}

/* Falling Stars Effect */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	background-image:
		/* Star 1 */
		radial-gradient(1px 1px at 0px 0px, rgba(243, 205, 118, 0.9), transparent 2px),
		/* Star 2 */
		radial-gradient(1px 1px at 0px 0px, rgba(255, 255, 255, 0.8), transparent 2px),
		/* Star 3 */
		radial-gradient(1px 1px at 0px 0px, rgba(243, 205, 118, 0.7), transparent 2px),
		/* Star 4 */
		radial-gradient(1px 1px at 0px 0px, rgba(255, 255, 255, 0.6), transparent 2px),
		/* Star 5 */
		radial-gradient(1px 1px at 0px 0px, rgba(243, 205, 118, 0.8), transparent 2px);
	background-size: 2px 2px;
	background-position:
		15% -10px,
		35% -10px,
		55% -10px,
		75% -10px,
		85% -10px;
	background-repeat: no-repeat;
	animation: fallingStar1 3s linear infinite, fallingStar2 4s linear infinite 1s, fallingStar3 5s linear infinite 2s, fallingStar4 3.5s linear infinite 2.5s, fallingStar5 6s linear infinite 0.5s;
}

@keyframes fallingStar1 {
	0% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0;
	}
	5% {
		background-position: 13% 5vh, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 1;
	}
	35% {
		background-position: 8% 30vh, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0.8;
	}
	70% {
		background-position: 3% 60vh, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0.3;
	}
	85% {
		background-position: 0% 80vh, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0.1;
	}
	100% {
		background-position: -2% 100vh, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0;
	}
}

@keyframes fallingStar2 {
	0% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0;
	}
	8% {
		background-position: 15% -10px, 33% 8vh, 55% -10px, 75% -10px, 85% -10px;
		opacity: 1;
	}
	35% {
		background-position: 15% -10px, 28% 35vh, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0.9;
	}
	65% {
		background-position: 15% -10px, 22% 65vh, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0.4;
	}
	85% {
		background-position: 15% -10px, 18% 85vh, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0.1;
	}
	100% {
		background-position: 15% -10px, 15% 100vh, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0;
	}
}

@keyframes fallingStar3 {
	0% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0;
	}
	6% {
		background-position: 15% -10px, 35% -10px, 57% 6vh, 75% -10px, 85% -10px;
		opacity: 1;
	}
	30% {
		background-position: 15% -10px, 35% -10px, 62% 30vh, 75% -10px, 85% -10px;
		opacity: 0.7;
	}
	60% {
		background-position: 15% -10px, 35% -10px, 68% 60vh, 75% -10px, 85% -10px;
		opacity: 0.3;
	}
	80% {
		background-position: 15% -10px, 35% -10px, 72% 80vh, 75% -10px, 85% -10px;
		opacity: 0.1;
	}
	100% {
		background-position: 15% -10px, 35% -10px, 75% 100vh, 75% -10px, 85% -10px;
		opacity: 0;
	}
}

@keyframes fallingStar4 {
	0% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0;
	}
	10% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 73% 10vh, 85% -10px;
		opacity: 1;
	}
	40% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 68% 40vh, 85% -10px;
		opacity: 0.8;
	}
	70% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 62% 70vh, 85% -10px;
		opacity: 0.3;
	}
	90% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 58% 90vh, 85% -10px;
		opacity: 0.1;
	}
	100% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 55% 100vh, 85% -10px;
		opacity: 0;
	}
}

@keyframes fallingStar5 {
	0% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 85% -10px;
		opacity: 0;
	}
	4% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 87% 4vh;
		opacity: 1;
	}
	25% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 92% 25vh;
		opacity: 0.6;
	}
	50% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 96% 50vh;
		opacity: 0.3;
	}
	75% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 100% 75vh;
		opacity: 0.1;
	}
	100% {
		background-position: 15% -10px, 35% -10px, 55% -10px, 75% -10px, 102% 100vh;
		opacity: 0;
	}
}

/* Additional Falling Stars Layer */
body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
	background-image:
		/* Additional stars with different sizes */
		radial-gradient(1.5px 1.5px at 0px 0px, rgba(255, 255, 255, 0.9), transparent 3px),
		radial-gradient(0.8px 0.8px at 0px 0px, rgba(243, 205, 118, 0.6), transparent 1.5px),
		radial-gradient(1.2px 1.2px at 0px 0px, rgba(255, 255, 255, 0.7), transparent 2.5px);
	background-size: 3px 3px, 1.5px 1.5px, 2.5px 2.5px;
	background-position:
		25% -15px,
		65% -15px,
		45% -15px;
	background-repeat: no-repeat;
	animation: fallingStarExtra1 4s linear infinite 1s, fallingStarExtra2 5s linear infinite 2s, fallingStarExtra3 4.5s linear infinite 0.5s;
}

@keyframes fallingStarExtra1 {
	0% {
		background-position: 25% -15px, 65% -15px, 45% -15px;
		opacity: 0;
	}
	10% {
		background-position: 22% 10vh, 65% -15px, 45% -15px;
		opacity: 1;
	}
	40% {
		background-position: 17% 40vh, 65% -15px, 45% -15px;
		opacity: 0.8;
	}
	70% {
		background-position: 12% 70vh, 65% -15px, 45% -15px;
		opacity: 0.3;
	}
	90% {
		background-position: 8% 90vh, 65% -15px, 45% -15px;
		opacity: 0.1;
	}
	100% {
		background-position: 5% 100vh, 65% -15px, 45% -15px;
		opacity: 0;
	}
}

@keyframes fallingStarExtra2 {
	0% {
		background-position: 25% -15px, 65% -15px, 45% -15px;
		opacity: 0;
	}
	8% {
		background-position: 25% -15px, 67% 8vh, 45% -15px;
		opacity: 0.8;
	}
	35% {
		background-position: 25% -15px, 72% 35vh, 45% -15px;
		opacity: 0.6;
	}
	65% {
		background-position: 25% -15px, 78% 65vh, 45% -15px;
		opacity: 0.2;
	}
	85% {
		background-position: 25% -15px, 82% 85vh, 45% -15px;
		opacity: 0.1;
	}
	100% {
		background-position: 25% -15px, 85% 100vh, 45% -15px;
		opacity: 0;
	}
}

@keyframes fallingStarExtra3 {
	0% {
		background-position: 25% -15px, 65% -15px, 45% -15px;
		opacity: 0;
	}
	12% {
		background-position: 25% -15px, 65% -15px, 43% 12vh;
		opacity: 1;
	}
	40% {
		background-position: 25% -15px, 65% -15px, 38% 40vh;
		opacity: 0.7;
	}
	70% {
		background-position: 25% -15px, 65% -15px, 32% 70vh;
		opacity: 0.3;
	}
	90% {
		background-position: 25% -15px, 65% -15px, 28% 90vh;
		opacity: 0.1;
	}
	100% {
		background-position: 25% -15px, 65% -15px, 25% 100vh;
		opacity: 0;
	}
}

/* Rare Shooting Stars */
.shooting-stars {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.shooting-stars::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		/* Shooting star trail */
		linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, rgba(243, 205, 118, 0.9) 55%, transparent 60%);
	background-size: 200px 2px;
	background-position: -200px 20vh;
	background-repeat: no-repeat;
	animation: shootingStar1 25s linear infinite;
	z-index: 0;
}

.shooting-stars::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		/* Second shooting star trail */
		linear-gradient(-45deg, transparent 40%, rgba(243, 205, 118, 0.7) 50%, rgba(255, 255, 255, 0.8) 55%, transparent 60%);
	background-size: 150px 1.5px;
	background-position: 120% 60vh;
	background-repeat: no-repeat;
	animation: shootingStar2 35s linear infinite 12s;
	z-index: 0;
}

@keyframes shootingStar1 {
	0% {
		background-position: -200px 20vh;
		opacity: 0;
	}
	2% {
		background-position: -150px 25vh;
		opacity: 1;
	}
	8% {
		background-position: 50% 40vh;
		opacity: 1;
	}
	12% {
		background-position: calc(100% + 100px) 50vh;
		opacity: 0;
	}
	100% {
		background-position: calc(100% + 200px) 60vh;
		opacity: 0;
	}
}

@keyframes shootingStar2 {
	0% {
		background-position: 120% 60vh;
		opacity: 0;
	}
	1% {
		background-position: 110% 65vh;
		opacity: 1;
	}
	6% {
		background-position: 40% 80vh;
		opacity: 1;
	}
	9% {
		background-position: -50px 90vh;
		opacity: 0;
	}
	100% {
		background-position: -150px 100vh;
		opacity: 0;
	}
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}


/* =============================
   Layout
   ============================= */
.container { width: min(100% - 2rem, var(--menu-working-width)); margin-inline: auto; }

/* =============================
   Typography
   ============================= */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--space-4);
	line-height: 1.2;
	font-family: var(--font-heading);
}

p {
	margin: 0 0 var(--space-4);
}

/* =============================
   Buttons (base)
   ============================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 10px 16px;
	border: 0;
	border-radius: var(--radius);
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: transform .12s ease, opacity .12s ease;
}

/* .btn:hover { background: var(--color-primary-hover); } */

.btn:active {
	transform: translateY(1px);
}

.btn[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

/* =============================
   Special Button Styles
   ============================= */
.btn--create-account {
	margin-top: 41px;
	width: 290px;
	height: 72px;
	font-family: 'TrajanSansPro', serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	color: #fff3cf;
	text-shadow: 0px 0px 7px black;
	backdrop-filter: blur(9px);
	padding-bottom: 8px;
	padding-right: 50px;
	background: linear-gradient(rgb(126, 102, 40) 36%, rgb(123, 103, 50) 89%), rgb(126, 102, 40);
	margin-right: 20px;
	margin-left: 20px;
	padding-left: 50px;
	box-shadow: 0px 7px 12px rgb(0 0 0 / 38%);
	border-style: none;
	border-top: 1px solid rgb(171, 143, 68);
	border-bottom: 2px solid rgb(171, 143, 68);
	border-radius: 4px;
	transition: all .5s ease-in;
	display: flex;
	justify-content: center;
	align-items: center;
}

.btn--create-account:hover {
	transform: translateY(-14px);
	filter: brightness(140%);
}

.btn--hero {
	font-family: 'TrajanSansPro', serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	color: #fff3cf;
	text-shadow: 0px 0px 7px black;
	backdrop-filter: blur(9px);
	padding-bottom: 8px;
	padding-right: 50px;
	background: linear-gradient(rgb(126, 102, 40) 36%, rgb(123, 103, 50) 89%), rgb(126, 102, 40);
	margin-right: 20px;
	margin-left: 20px;
	padding-left: 50px;
	box-shadow: 0px 7px 12px rgb(0 0 0 / 38%);
	border-style: none;
	border-top: 1px solid rgb(171, 143, 68);
	border-bottom: 2px solid rgb(171, 143, 68);
	border-radius: 4px;
	transition: all .5s ease-in;
	display: flex;
	justify-content: center;
	align-items: center;
}

.btn--hero:hover {
	filter: brightness(140%);
}

/* Make expansion footer button match "Начать играть" */
.expansion__buy {
	font-family: 'TrajanSansPro', serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	color: #fff3cf;
	text-shadow: 0px 0px 7px black;
	backdrop-filter: blur(9px);
	padding-bottom: 8px;
	padding-right: 50px;
	background: linear-gradient(rgb(126, 102, 40) 36%, rgb(123, 103, 50) 89%), rgb(126, 102, 40);
	padding-left: 50px;
	box-shadow: 0px 7px 12px rgb(0 0 0 / 38%);
	border-style: none;
	border-top: 1px solid rgb(171, 143, 68);
	border-bottom: 2px solid rgb(171, 143, 68);
	border-radius: 4px;
	transition: all .5s ease-in;
}
.expansion__buy:hover { 
	filter: brightness(140%); 
	transform: translateY(-2px);
}

/* =============================
   Utilities
   ============================= */
.visually-hidden {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
	width: 1px;
}

.text-center { text-align: center; }

/* =============================
   Page background (explicit)
   ============================= */



.section__content {
	min-height: 680px;
	background: url('img/head-static.jpg') center top / cover no-repeat;
	position: relative;
    padding-bottom: 184px;
	margin-top: -64px;
}

.section__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -10px;
	height: 35%;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(17, 3, 2, 0) 0%,
		rgba(17, 3, 2, 0.6) 55%,
		var(--color-bg) 100%
	);
}

.section__video {
	position: absolute;
	top: 0;
	left: 0;
    left: 18px;
	scale: 1.015;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .6s ease;
	filter: saturate(1.05);
	transform: translateZ(0); /* Force hardware acceleration */
	will-change: opacity; /* Optimize for opacity changes */
}

.section__content.is-video-ready .section__video {
	opacity: 1;
}

/* =============================
   Hero content in header section
   ============================= */
.section__hero {
	position: relative;
	height: 100%;
	display: grid;
	justify-items: center;
	align-items: start;
	text-align: center;
	color: var(--color-text);
}

.section__hero-inner { position: relative; z-index: 2; margin-top: 372px; }
.hero__clouds {
	position: absolute;
	left: 50%;
	bottom: -662px;
	transform: translateX(-50%);
	z-index: 1;
	max-width: none;
	width: 2200px;
	height: auto;
	opacity: 0.9;
	pointer-events: none;
}

/* =============================
   Achievements section
   ============================= */
.achievements-section { position: relative; padding: 0 0 72px 0; }
.achievements-section .container { position: relative; }
.achievements__clouds {
	position: absolute;
	left: 50%;
	bottom: calc(100% - 600px);
	transform: translateX(-50%);
	z-index: 0;
	max-width: none;
	width: 2400px;
	height: auto;
	opacity: .8;
	pointer-events: none;
}
.achievements { position: relative; z-index: 4; }

.hero__title { text-shadow: 0px 0px 10px rgb(0 0 0 / 50%); color: var(--color-title); font-size: 56px; margin-bottom: var(--space-4); font-family: var(--font-heading); }

/* =============================
   Launch Date
   ============================= */
.launch-date {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}

.launch-date__text {
    display: inline-block;
    padding: 12px 32px;
    /* background: linear-gradient(135deg, rgba(243, 205, 118, 0.15) 0%, rgba(243, 205, 118, 0.25) 100%); */
    /* border: 2px solid rgba(243, 205, 118, 0.6); */
    border-radius: 6px;
    color: var(--color-title);
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    /* box-shadow: 0 8px 32px rgba(243, 205, 118, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); */
    /* backdrop-filter: blur(10px); */
    position: relative;
    overflow: hidden;
}

.launch-date__text::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: shimmer 3s infinite;
}

@keyframes shimmer {
	0% { left: -100%; }
	100% { left: 100%; }
}

@keyframes randomShimmer {
	0% { 
		left: -100%; 
		opacity: 0; 
	}
	8% { 
		left: -100%; 
		opacity: 1; 
	}
	15% { 
		left: 100%; 
		opacity: 1; 
	}
	20% { 
		left: 100%; 
		opacity: 0; 
	}
	100% { 
		left: 100%; 
		opacity: 0; 
	}
}

/* =============================
   Countdown Timer
   ============================= */
.countdown-timer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 32px 0;
	font-family: var(--font-heading);
}

.countdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.countdown-number {
	font-size: 48px;
	font-weight: 800;
	color: white;
	text-shadow: 0px 0px 10px rgb(0 0 0 / 50%);
	line-height: 1;
	margin-bottom: 8px;
	min-width: 80px;
}

.countdown-label {
	font-size: 14px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 500;
}

.countdown-separator {
	font-size: 48px;
	font-weight: 800;
	color: var(--color-title);
	text-shadow: 0px 0px 10px rgb(0 0 0 / 50%);
	line-height: 1;
	margin-bottom: 8px;
}

.hero__subtitle {
    font-size: 25px;
    font-weight: 600;
    opacity: .9;
    font-family: var(--font-heading);
    text-shadow: 0px 0px 10px rgb(0 0 0);
    margin: auto;
}

.hero__cta { margin-top: var(--space-5); display: grid; gap: var(--space-2); justify-content: center; }
.hero__note { font-size: 12px; color: var(--color-muted); }

/* Countdown Timer Responsive */
@media (max-width: 768px) {
	.countdown-timer {
		gap: 12px;
		margin: 24px 0;
	}
	.countdown-number {
		font-size: 32px;
		min-width: 60px;
	}
	.countdown-separator {
		font-size: 32px;
	}
	.countdown-label {
		font-size: 12px;
	}
	
	/* Launch Date Responsive */
	.launch-date__text {
		font-size: 18px;
		padding: 10px 24px;
		letter-spacing: 1px;
	}
}

@media (max-width: 480px) {
	.countdown-timer {
		gap: 8px;
		margin: 20px 0;
	}
	.countdown-number {
		font-size: 24px;
		min-width: 50px;
	}
	.countdown-separator {
		font-size: 24px;
	}
	.countdown-label {
		font-size: 10px;
	}
	
	/* Launch Date Responsive */
	.launch-date__text {
		font-size: 16px;
		padding: 8px 20px;
		letter-spacing: 0.5px;
	}
}

.achievements { margin-top: var(--space-6); }
.achievements__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 28px;
	max-width: 1200px;
	margin-inline: auto;
}

.achievement-card {
	position: relative;
	min-height: 112px;
	padding: 18px 24px;
	/* background: rgba(255,255,255,0.06); */
	/* border: 1px solid rgba(243, 205, 118, .35); */
	border-radius: 14px;
	backdrop-filter: blur(2px);
	display: grid;
	align-content: center;
	justify-items: center;
	text-align: center;
	z-index: 4;
}

/* Laurel wreaths on sides */
.achievement-card::before,
.achievement-card::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 36px;
	height: 72px;
	transform: translateY(-50%);
	background: url('img/laurel.png') center / contain no-repeat;
	opacity: .9;
}
.achievement-card::before { left: 10px; transform: translateY(-50%) scaleX(-1); }
.achievement-card::after { right: 10px; }

.achv-title { color: #ffffff; display: block; font-weight: 800; font-size: 20px; letter-spacing: .02em; margin-bottom: 6px; }
.achv-desc { display: block; font-size: 14px; opacity: .9; max-width: 298px; }

@media (max-width: 900px) {
	.achievements__grid { grid-template-columns: 1fr; }
}

/* =============================
   Section 2: Feature split
   ============================= */
.feature { padding: 80px 0; }
.feature.container { width: min(100% - 2rem, 992px); }
.feature__grid {
	display: grid;
	grid-template-columns: .85fr .9fr;
	align-items: center;
	gap: var(--space-6);
}

.feature__title { color: var(--color-title); font-size: 56px; line-height: 1.1; margin: 0 0 var(--space-4); font-weight: 800; position: relative; z-index: 2; font-family: var(--font-heading);}

/* Hero headings for main feature section */
.feature__hero-title {
	color: var(--color-title);
	font-size: clamp(48px, 8vw, 80px);
	line-height: 1.1;
	margin: clamp(80px, 12vw, 146px) auto 0 auto;
	font-weight: 800;
	position: relative;
	z-index: 2;
	font-family: var(--font-heading);
	text-align: center;
	width: 100%;
	max-width: 100%;
	animation: gentleFloat 3s ease-in-out infinite;
	word-wrap: break-word;
	hyphens: auto;
}

.feature__hero-subtitle {
	color: white;
	font-size: clamp(36px, 6vw, 60px);
	line-height: 1.2;
	margin: 0 auto clamp(80px, 12vw, 146px) auto;
	font-weight: 700;
	position: relative;
	z-index: 2;
	font-family: var(--font-heading);
	text-align: center;
	width: 100%;
	max-width: 100%;
	animation: characterFloat 8s ease-in-out infinite;
	word-wrap: break-word;
	hyphens: auto;
}
.feature__subtitle { font-size: 32px; line-height: 1.2; margin: 0 0 var(--space-5); font-weight: 700; position: relative; z-index: 2; font-family: var(--font-heading);}
.feature__lead { font-size: 18px; margin: 0 0 var(--space-4); opacity: .95; position: relative; z-index: 2; font-family: var(--font-body);}
.feature__text { font-size: 16px; margin: 0; opacity: .9; position: relative; z-index: 2; font-family: var(--font-body);}

.feature__art { text-align: right; }
.feature__image { max-width: 560px; width: 100%; height: auto; display: inline-block; transition: opacity .35s ease; }
.feature__image--large { transform: scale(1.64); transform-origin: bottom center; top: 100px; left: 30px; z-index: 1; position: relative;}

/* Progress line under feature image */
.feature__progress { position: relative; height: 2px; margin-top: 8px; animation: gentleFloat 3s ease-in-out infinite;}
.feature__progress::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(243, 205, 118, .25); }
.feature__progress-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #f3cd76; display: block; }

@media (max-width: 1024px) {
	.feature__grid { grid-template-columns: 1fr; text-align: center; }
	.feature__art { order: -1; text-align: center; }
	.feature__image { max-width: 440px; }
	
	.feature__hero-title {
		font-size: clamp(32px, 7vw, 48px);
		margin: clamp(40px, 8vw, 80px) auto 0 auto;
	}
	
	.feature__hero-subtitle {
		font-size: clamp(24px, 5vw, 36px);
		margin: 0 auto clamp(40px, 8vw, 80px) auto;
	}
}

@media (max-width: 768px) {
	.feature { 
		padding: 60px 0; 
	}
	
	.feature__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.feature__content {
		text-align: center;
	}
	
	.feature__title {
		font-size: 36px;
	}
	
	.feature__subtitle {
		font-size: 24px;
	}
	
	.feature__lead {
		font-size: 16px;
	}
	
	.feature__text {
		font-size: 14px;
	}
	
	.feature__art {
		order: -1;
		text-align: center;
	}
	
	.feature__image {
		max-width: 100%;
		height: auto;
		transform: none;
		position: static;
	}
	
	.feature__image--large {
		transform: none;
		position: static;
	}
	
	.feature__progress {
		margin-top: 20px;
	}
}

/* =============================
   Section 3: World cards
   ============================= */
.world { padding: 240px 0 120px 0; }
.world .container { position: relative; }
.world__clouds {
	position: absolute;
	left: 50%;
	top: -595px;
	transform: translateX(-50%);
	z-index: -1;
	max-width: none;
	width: 2200px;
	height: auto;
	opacity: .8;
	pointer-events: none;
}
.world__eyebrow { text-align: center; letter-spacing: .08em; font-size: 24px; opacity: .7; margin: 0 0 8px; font-family: var(--font-heading); }

.world__title {
    color: var(--color-title);
    text-align: center;
    font-size: 62px;
    margin: 0 0 56px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.world__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}

.world-card { text-align: center; position: relative; overflow: visible; }
.world-card__media { 
	position: relative; 
	width: 100%; 
	aspect-ratio: 3/4; 
	margin: 0 auto 16px; 
	overflow: hidden;
	animation: gentleFloat 4s ease-in-out infinite;
}

.world-card__media::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: randomShimmer 12s infinite;
	z-index: 1;
	opacity: 0;
}

.world-card:nth-child(1) .world-card__media {
	animation-delay: 0s;
}

.world-card:nth-child(2) .world-card__media {
	animation-delay: 1s;
}

.world-card:nth-child(3) .world-card__media {
	animation-delay: 2s;
}

.world-card:nth-child(4) .world-card__media {
	animation-delay: 3s;
}

.world-card:nth-child(1) .world-card__media::before {
	animation-delay: 2s;
}

.world-card:nth-child(2) .world-card__media::before {
	animation-delay: 7s;
}

.world-card:nth-child(3) .world-card__media::before {
	animation-delay: 4s;
}

.world-card:nth-child(4) .world-card__media::before {
	animation-delay: 9s;
}
.world-card__media img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	/* Arched clip approximation */
	/* clip-path: path('M0,95 Q176,0 352,95 L352,576 Q176,640 0,576 Z'); */
	border: 1px solid #f3cd76;
    box-shadow: 1px 1px 20px black;
	border-radius: 6px;
}
@keyframes characterFloat {
	0%, 100% { 
		transform: translateX(0px) translateY(0px) rotate(0deg); 
	}
	33% { 
		transform: translateX(-4px) translateY(-5px) rotate(-0.3deg); 
	}
	66% { 
		transform: translateX(4px) translateY(-8px) rotate(0.4deg); 
	}
}

@keyframes iconFloat {
	0%, 100% { 
		transform: translate(-55%, -55%) translateY(0px); 
	}
	50% { 
		transform: translate(-55%, -55%) translateY(-6px); 
	}
}

@keyframes gentleFloat {
	0%, 100% { 
		transform: translateY(0px) rotate(0deg); 
	}
	50% { 
		transform: translateY(-8px) rotate(0.5deg); 
	}
}

@keyframes variedFloat {
	0% { 
		transform: translateY(0px) rotate(0deg); 
	}
	25% { 
		transform: translateY(-4px) rotate(0.3deg); 
	}
	50% { 
		transform: translateY(-8px) rotate(0.5deg); 
	}
	75% { 
		transform: translateY(-2px) rotate(-0.2deg); 
	}
	100% { 
		transform: translateY(0px) rotate(0deg); 
	}
}

@keyframes worldUnderGlow {
	0%, 100% { opacity: .16; transform: translateY(0) scaleX(1); }
	50% { opacity: .28; transform: translateY(-6px) scaleX(1.04); }
}
@keyframes worldEdgeGlow {
	0%, 100% { opacity: .14; transform: translateY(0); }
	50% { opacity: .22; transform: translateY(-3px); }
}
.world-card__title { font-size: 22px; margin: 12px 0 8px; font-weight: 800; font-family: var(--font-heading); }
.world-card__text { 
    font-size: 16px;
    opacity: .9;
    max-width: 320px;
    margin: 10px auto 0 auto;
    font-family: var(--font-body);
 }

@media (max-width: 1200px) {
	.world__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.world__grid { grid-template-columns: 1fr; }
}

/* =============================
   World Alternating Section
   ============================= */
.world-alt {
	padding: 120px 0 240px 0;
}

.world-alt .container {
	position: relative;
	width: 1199px
}

.world-alt__clouds {
	position: absolute;
	left: 50%;
	top: -595px;
	transform: translateX(-50%);
	z-index: -1;
	max-width: none;
	width: 2200px;
	height: auto;
	opacity: .8;
	pointer-events: none;
}

.world-alt__eyebrow {
	text-align: center;
	letter-spacing: .08em;
	font-size: 24px;
	opacity: .7;
	margin: 0 0 8px;
	font-family: var(--font-heading);
}

.world-alt__title {
	color: #ffffff;
	text-align: center;
	font-size: 56px;
	margin: 0 0 48px;
	font-weight: 800;
	font-family: var(--font-heading);
}

.world-alt__block {
	display: flex;
	align-items: center;
	gap: 48px;
	margin-bottom: 64px;
}

.world-alt__block--image-left {
	flex-direction: row-reverse;
}

.world-alt__content {
	flex: 1;
}

.world-alt__media {
	flex: 1.3;
	position: relative;
	width: 100%;
	aspect-ratio: 4/2;
	overflow: hidden;
	border: 1px solid #f3cd76;
	box-shadow: 1px 1px 20px black;
	border-radius: 6px;
	animation: gentleFloat 4s ease-in-out infinite;
}

.world-alt__media::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: randomShimmer 12s infinite;
	z-index: 1;
	opacity: 0;
}

.world-alt__block:nth-of-type(1) .world-alt__media {
	animation-delay: 0s;
}

.world-alt__block:nth-of-type(2) .world-alt__media {
	animation-delay: 1s;
}

.world-alt__block:nth-of-type(3) .world-alt__media {
	animation-delay: 2s;
}

.world-alt__block:nth-of-type(4) .world-alt__media {
	animation-delay: 3s;
}

.world-alt__block:nth-of-type(1) .world-alt__media::before {
	animation-delay: 2s;
}

.world-alt__block:nth-of-type(2) .world-alt__media::before {
	animation-delay: 7s;
}

.world-alt__block:nth-of-type(3) .world-alt__media::before {
	animation-delay: 4s;
}

.world-alt__block:nth-of-type(4) .world-alt__media::before {
	animation-delay: 9s;
}

.world-alt__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.world-alt__block .world-alt__title {
	text-align: left;
	font-size: 32px;
	margin: 0 0 16px;
}

.world-alt__block .world-alt__text {
	font-size: 18px;
	opacity: .9;
	font-family: var(--font-body);
	line-height: 1.6;
}

/* Responsive styles for alternating section */
@media (max-width: 992px) {
	.world-alt__block {
		flex-direction: column !important;
		text-align: center;
	}
	
	.world-alt__block .world-alt__title {
		text-align: center;
	}
	
	/* Swap order of media and content for image-right blocks on mobile */
	.world-alt__block--image-right {
		flex-direction: column-reverse !important;
	}
}

@media (max-width: 768px) {
	.world-alt {
		padding: 120px 0;
	}
	
	.world-alt__title {
		font-size: 40px;
	}
	
	.world-alt__block {
		gap: 32px;
		margin-bottom: 48px;
	}
	
	.world-alt__block .world-alt__title {
		font-size: 28px;
	}
}

@media (max-width: 480px) {
	.world-alt {
		padding: 80px 0;
	}
	
	.world-alt__title {
		font-size: 32px;
	}
	
	.world-alt__block {
		gap: 24px;
		margin-bottom: 32px;
	}
	
	.world-alt__block .world-alt__title {
		font-size: 24px;
	}
	
	.world-alt__block .world-alt__text {
		font-size: 14px;
	}
}

/* =============================
   Expansion Pass section
   ============================= */
.expansion {
	padding: 120px 0 120px;
	position: relative;
	/* Декоративная верхняя линия + мягкая подложка + CSS-текстура и цвет */
	background-image:
		url('img/line.webp'),
		url('img/long-fade-0d0200_w-line.png'),
		repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 2px, rgba(0,0,0,0.02) 2px 4px),
		radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,0.04), rgba(0,0,0,0) 60%),
		linear-gradient(180deg, #160404 0%, #0e0201 100%);
	background-repeat: no-repeat, no-repeat, repeat, no-repeat, no-repeat;
	background-position: top center, center center, center center, top center, center center;
	background-size: auto, cover, auto, cover, cover;
	overflow: hidden;
}
.tasks { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.tasks__element {
	position: absolute;
	width: 48px;
	height: 48px;
	object-fit: contain;
	opacity: 0;
	transform: translateY(0) scale(0.9);
	animation: taskFloat 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
	filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
	will-change: transform, opacity;
}

.tasks img {
	border-radius: 4px;
	/* box-shadow: 1px 1px 9px #ff7600; */
}

@keyframes taskFloat {
	0% { 
		opacity: 0; 
		transform: translateY(20px) scale(0.8); 
	}
	15% { 
		opacity: 1; 
		transform: translateY(0) scale(1); 
	}
	85% { 
		opacity: 1; 
		transform: translateY(-120px) scale(1.05); 
	}
	100% { 
		opacity: 0; 
		transform: translateY(-150px) scale(1.1); 
	}
}

/* =============================
   Video testimonials section
   ============================= */
.video-testimonials { 
	padding: 120px 0 120px;
    min-height: 760px;
    background: #0e0d0d;
    position: relative;
    /* background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%); */
    background-size: 120%;
    background-position: center;
    transition: none;
    overflow: hidden;
}
.video-testimonials::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)"/></svg>') repeat;
	opacity: 0.1;
	pointer-events: none;
}

/* Flying icons for video testimonials */
.video-testimonials__tasks { 
	position: absolute; 
	inset: 0; 
	pointer-events: none; 
	z-index: 1; 
	overflow: hidden; 
}

.video-testimonials__bg {
    position: absolute;
    top: -540px;
    left: 0;
    width: 100%;
    height: 200%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
}

.video-testimonials__tasks-element {
	position: absolute;
	width: 48px;
	height: 48px;
	object-fit: contain;
	opacity: 0;
	transform: translateY(0) scale(0.9);
	animation: videoTestimonialsFloat 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
	filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
	will-change: transform, opacity;
}

.video-testimonials__tasks img {
	border-radius: 4px;
}

.video-testimonials__tasks-element img {
	border-radius: 4px;
	box-shadow: 1px 1px 9px #ff7600;
}

@keyframes videoTestimonialsFloat {
	0% { 
		opacity: 0; 
		transform: translateY(20px) scale(0.8); 
	}
	15% { 
		opacity: 1; 
		transform: translateY(0) scale(1); 
	}
	85% { 
		opacity: 1; 
		transform: translateY(-120px) scale(1.05); 
	}
	100% { 
		opacity: 0; 
		transform: translateY(-150px) scale(1.1); 
	}
}

.expansion::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.06"/></svg>') repeat;
	mix-blend-mode: soft-light;
}
.expansion::after {
	content: "";
	position: absolute; inset: 0; pointer-events: none; z-index: 0;
	background-image:
		radial-gradient(closest-side, rgba(243,205,118,0.18), rgba(243,205,118,0) 70%),
		radial-gradient(closest-side, rgba(243,205,118,0.12), rgba(243,205,118,0) 70%),
		radial-gradient(closest-side, rgba(243,205,118,0.10), rgba(243,205,118,0) 70%);
	background-size: 520px 520px, 380px 380px, 320px 320px;
	background-position: 12% 25%, 80% 60%, 45% 85%;
	background-repeat: no-repeat;
	animation: expansionLights 18s ease-in-out infinite alternate;
}
@keyframes expansionLights {
	0%   { background-position: 12% 25%, 80% 60%, 45% 85%; }
	33%  { background-position: 70% 30%, 18% 70%, 85% 55%; }
	66%  { background-position: 35% 75%, 62% 20%, 15% 45%; }
	100% { background-position: 20% 40%, 78% 50%, 50% 80%; }
}
.expansion__title { color: #ffffff; text-align: center; font-size: 40px; margin: 0 0 32px; font-weight: 800; letter-spacing: .08em; font-family: var(--font-heading); z-index: 3; position: relative;}
.expansion__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.expansion-card {
	background: #110302;
	border: 1px solid rgba(243, 205, 118, .35);
	border-radius: 16px;
	padding: 32px 24px;
	text-align: center;
	z-index: 2;
	box-shadow: 1px 1px 20px black;
}
.expansion-card--muted { opacity: .8; }
.expansion-card__title { font-size: 28px; margin: 0 0 12px; font-weight: 800; font-family: var(--font-heading); }
.expansion-card__text { font-size: 16px; opacity: .95; margin: 0 0 16px; font-family: var(--font-body); }
.expansion-card__link, .expansion-card__soon { display: inline-block; margin-top: 8px; font-weight: 700; }
.expansion-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	height: 52px;
	padding: 0 28px;
	border-radius: 4px;
	text-decoration: none;
	font-family: 'TrajanSansPro', serif;
	font-size: 16px;
	font-weight: 600;
	color: #fff3cf;
	background: linear-gradient(180deg, #8f5a3a 0%, #7d3e34 100%);
	border-top: 1px solid rgba(231, 192, 120, .9);
	border-bottom: 2px solid rgba(231, 192, 120, .9);
	box-shadow: 0px 6px 12px rgb(0 0 0 / 38%);
	transition: all .5s ease-in;
}
.expansion-card__link:hover { 
	filter: brightness(120%); 
	transform: translateY(-2px);
}
.expansion-card__link:active { transform: translateY(1px); }

/* Rewards row (icons inline centered) */
.expansion-rewards {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 8px 0 14px;
	flex-wrap: wrap;
}
.expansion-rewards img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
	border-radius: 4px;
}

.expansion__footer { display: grid; justify-items: center; gap: 16px; margin-top: 32px; }
.expansion__platforms { display: flex; gap: 12px; opacity: .9; font-size: 14px; }

.expansion__platforms img {
	border-radius: 4px;
}

/* Character changes button style */
.characters__description .btn {
	display: inline-block;
	font-family: 'TrajanSansPro', serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #fff3cf;
	text-shadow: 0px 0px 4px black;
	backdrop-filter: blur(4px);
	padding: 8px 16px;
	background: linear-gradient(180deg, #8f5a3a 0%, #7d3e34 100%);
	margin-top: 8px;
	box-shadow: 0px 3px 6px rgb(0 0 0 / 25%);
	border-style: none;
	border-top: 1px solid rgb(140, 120, 50);
	border-bottom: 1px solid rgb(140, 120, 50);
	border-radius: 3px;
	transition: all .3s ease;
	text-decoration: none;
}
.characters__description .btn:hover {
	filter: brightness(120%);
	transform: translateY(-1px);
}

@media (max-width: 1024px) {
	.expansion__grid { grid-template-columns: 1fr; }
}
/* =============================
   Header
   ============================= */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--color-header-bg);
	backdrop-filter: saturate(1.2) blur(6px);
	border-bottom: 1px solid rgba(243, 205, 118, .4);
	transform: translateY(0);
	transition: transform .2s ease;
}

/* =============================
   Journey Window (Interactive)
   ============================= */
.journey-window {
	/*max-width: 800px;*/
	margin: 80px auto 200px auto;
	border: 1px solid rgba(243, 205, 118, .4);
	box-shadow: 1px 1px 20px black;
	border-radius: 12px;
	overflow: hidden;
	animation: gentleFloat 4s ease-in-out infinite;
	position: relative;
	z-index: 5;
}

/* Mosaic Overlay (initially visible) */
.journey-window__mosaic-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.8s ease, visibility 0.8s ease;
	/*height: 400px;*/
}

.journey-window__mosaic-overlay.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.journey-window__mosaic-bg {
	position: absolute;
	inset: 0;
	background-image: url('img/ingame/start.jpg');
	background-size: cover;
	background-position: center;
	filter: blur(8px) brightness(0.7);
	transform: scale(1.1); /* Prevent blur edges */
}

.journey-window__mosaic-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: 
		repeating-conic-gradient(from 0deg at 50% 50%, 
			transparent 0deg, 
			rgba(0, 0, 0, 0.3) 45deg, 
			transparent 90deg, 
			rgba(0, 0, 0, 0.3) 135deg, 
			transparent 180deg, 
			rgba(0, 0, 0, 0.3) 225deg, 
			transparent 270deg, 
			rgba(0, 0, 0, 0.3) 315deg, 
			transparent 360deg);
	background-size: 20px 20px;
	opacity: 0.8;
}

.journey-window__start-button {
	position: relative;
	z-index: 11;
	font-family: 'TrajanSansPro', serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff3cf;
	text-shadow: 0px 0px 7px black;
	backdrop-filter: blur(9px);
	padding: 20px 40px;
	background: linear-gradient(rgb(126, 102, 40) 36%, rgb(123, 103, 50) 89%), rgb(126, 102, 40);
	box-shadow: 0px 7px 12px rgb(0 0 0 / 38%), 0 0 20px rgba(243, 205, 118, 0.5);
	border-style: none;
	border-top: 1px solid rgb(171, 143, 68);
	border-bottom: 2px solid rgb(171, 143, 68);
	border-radius: 8px;
	transition: all .5s ease-in;
	cursor: pointer;
	min-width: 280px;
	text-align: center;
	animation: pulseGlow 2s ease-in-out infinite;
}

.journey-window__start-button:hover {
	filter: brightness(140%);
	transform: translateY(-6px) scale(1.05);
	box-shadow: 0px 12px 20px rgb(0 0 0 / 50%), 0 0 30px rgba(243, 205, 118, 0.8);
}

@keyframes pulseGlow {
	0%, 100% {
		box-shadow: 0px 7px 12px rgb(0 0 0 / 38%), 0 0 20px rgba(243, 205, 118, 0.5);
	}
	50% {
		box-shadow: 0px 7px 12px rgb(0 0 0 / 38%), 0 0 30px rgba(243, 205, 118, 0.8);
	}
}

/* Journey Content (initially hidden) */
.journey-window__content {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease 0.3s, visibility 0.8s ease 0.3s;
}

.journey-window__content.visible {
	opacity: 1;
	visibility: visible;
}

.journey-window__image-container {
	position: relative;
	/*height: 400px;*/
	overflow: hidden;
}

.journey-window__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.8s ease, transform 0.8s ease;
	filter: saturate(1) brightness(1);
}

.journey-window__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15) 50%, rgba(0,0,0,0));
	pointer-events: none;
}

.journey-window__controls {
	position: absolute;
	bottom: 40px;
	left: 0;
	right: 0;
	padding: 60px;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	z-index: 2;
}

.journey-window__button {
	font-family: 'TrajanSansPro', serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff3cf;
	text-shadow: 0px 0px 7px black;
	backdrop-filter: blur(9px);
	padding: 16px 32px;
	background: linear-gradient(rgb(126, 102, 40) 36%, rgb(123, 103, 50) 89%), rgb(126, 102, 40);
	box-shadow: 0px 7px 12px rgb(0 0 0 / 38%);
	border-style: none;
	border-top: 1px solid rgb(171, 143, 68);
	border-bottom: 2px solid rgb(171, 143, 68);
	border-radius: 6px;
	transition: all .5s ease-in;
	cursor: pointer;
	min-width: 250px;
	text-align: center;
	opacity: 1;
	transform: translateY(0);
}

.journey-window__button:hover {
	filter: brightness(140%);
	transform: translateY(-4px);
}

.journey-window__button.fade-out {
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
}

/* Journey Step Indicators */
.journey-window__steps {
	position: absolute;
	bottom: 36px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 3;
	align-items: center;
	justify-content: center;
}

.journey-step {
	position: relative;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	border: 2px solid rgba(243, 205, 118, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.journey-step__number {
	font-family: 'TrajanSansPro', serif;
	font-size: 14px;
	font-weight: 600;
	color: rgba(243, 205, 118, 0.6);
	transition: color 0.4s ease;
}

.journey-step--active {
	background: linear-gradient(135deg, rgba(243, 205, 118, 0.25) 0%, rgba(243, 205, 118, 0.15) 100%);
	border-color: rgba(243, 205, 118, 0.8);
	box-shadow: 0 0 20px rgba(243, 205, 118, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	transform: scale(1.1);
}

.journey-step--active .journey-step__number {
	color: #f3cd76;
	text-shadow: 0 0 8px rgba(243, 205, 118, 0.6);
}

.journey-step--completed {
	background: linear-gradient(135deg, rgba(243, 205, 118, 0.4) 0%, rgba(243, 205, 118, 0.2) 100%);
	border-color: rgba(243, 205, 118, 0.9);
	box-shadow: 0 0 15px rgba(243, 205, 118, 0.3);
}

.journey-step--completed .journey-step__number {
	color: #f3cd76;
	opacity: 0.8;
}

.journey-step:hover {
	border-color: rgba(243, 205, 118, 0.6);
	transform: scale(1.05);
}

.journey-step--active:hover {
	transform: scale(1.15);
	box-shadow: 0 0 25px rgba(243, 205, 118, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Journey Gift Message */
.journey-window__gift-message {
	position: absolute;
	bottom: 170px;
	left: 0;
	right: 0;
	padding: 40px 60px 60px 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease, transform 0.8s ease;
	z-index: 3;
}

.journey-window__gift-message.visible {
	opacity: 1;
	transform: translateY(0);
}

.journey-window__gift-content {
	text-align: center;
	background: linear-gradient(135deg, rgba(243, 205, 118, 0.15) 0%, rgba(243, 205, 118, 0.05) 100%);
	border: 2px solid rgba(243, 205, 118, 0.3);
	border-radius: 12px;
	padding: 24px 32px;
	animation: variedFloat 4.8s ease-in-out infinite;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(243, 205, 118, 0.2);
	max-width: 400px;
	animation: giftGlow 3s ease-in-out infinite;
}

.journey-window__gift-emoji {
	font-size: 48px;
	display: block;
	margin-bottom: 16px;
	animation: giftBounce 2s ease-in-out infinite;
}

.journey-window__gift-text {
	font-family: 'TrajanSansPro', serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: #ffffff;
	text-shadow: 0 0 8px rgba(243, 205, 118, 0.3);
	margin: 0;
}

@keyframes giftGlow {
	0%, 100% {
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(243, 205, 118, 0.2);
	}
	50% {
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(243, 205, 118, 0.4);
	}
}

@keyframes giftBounce {
	0%, 100% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-4px) scale(1.1);
	}
}

@media (max-width: 768px) {
	.journey-window {
		margin: 40px auto 0 auto;
		max-width: 95%;
	}
	
	.journey-window__image-container {
		height: 300px;
	}
	
	.journey-window__controls {
		padding: 40px 20px;
	}
	
	.journey-window__button {
		font-size: 16px;
		padding: 14px 24px;
		min-width: 200px;
	}
	
	.journey-window__start-button {
		font-size: 18px;
		padding: 18px 32px;
		min-width: 240px;
	}
	
	.journey-window__mosaic-overlay {
		height: 300px;
	}
	
	/* Step indicators responsive */
	.journey-window__steps {
		bottom: 15px;
		gap: 10px;
	}
	
	.journey-step {
		width: 32px;
		height: 32px;
	}
	
	.journey-step__number {
		font-size: 12px;
	}
	
	/* Gift message responsive */
	.journey-window__gift-message {
		padding: 30px 20px 40px 20px;
	}
	
	.journey-window__gift-content {
		padding: 20px 24px;
		max-width: 100%;
	}
	
	.journey-window__gift-emoji {
		font-size: 40px;
		margin-bottom: 12px;
	}
	
	.journey-window__gift-text {
		font-size: 14px;
		line-height: 1.3;
	}
}

/* =============================
   Section: Locations interactive (CSS-only)
   ============================= */
.locations { padding: 200px 0 200px; }
.locations__title { color: var(--color-title); text-align: center; font-size: 62px; margin: 0 0 32px; font-weight: 800; font-family: var(--font-heading); }
.locations__subtitle { color: #ffffff; text-align: center; font-size: 20px; opacity: .85; margin: -12px 0 28px; font-family: var(--font-heading); }
.locations__slider {
	display: flex;
	border: 1px solid rgba(243, 205, 118, .4);
	box-shadow: 1px 1px 20px black;
	border-radius: 12px;
	overflow: hidden;
	animation: gentleFloat 4s ease-in-out infinite;
}
.locations__description { max-width: 880px; margin: 36px auto 36px; text-align: center; font-size: 18px; opacity: .92; font-family: var(--font-body); }
.locations__radio { display: none; }
.locations__item {
	position: relative;
	min-height: 644px;
	padding: 0px;
	background: var(--color-bg);
	background-image: var(--bg);
	background-size: cover;
	background-position: center;
	color: var(--color-text);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	transition: flex-basis .5s ease, filter .3s ease, transform 0.6s ease;
	filter: saturate(.7) brightness(.85);
	/* border-right: 1px solid rgba(255,255,255,0.08); */
	flex: 0 0 120px; /* свернутый элемент фиксированной ширины */
	font-family: var(--font-heading);
}
.locations__slider > #loc-1:checked ~ .locations__item:not([for="loc-1"]):hover,
.locations__slider > #loc-2:checked ~ .locations__item:not([for="loc-2"]):hover,
.locations__slider > #loc-3:checked ~ .locations__item:not([for="loc-3"]):hover,
.locations__slider > #loc-4:checked ~ .locations__item:not([for="loc-4"]):hover {
	cursor: pointer;
	transform: scale(1.08);
}
.locations__item:last-child { border-right: 0; }
.locations__item::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(0,0,0,.35);
	pointer-events: none;
	transition: background .3s ease;
}
.locations__label {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 380px;
	transform: translate(-50%, -50%) rotate(-90deg);
	transform-origin: center center;
	font-weight: 800;
	font-size: 36px;
	text-align: center;
	letter-spacing: .02em;
	pointer-events: none;
	z-index: 2;
}
.locations__content { max-width: 535px; display: none; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; padding-left: 60px; margin-bottom: 82px; }
.locations__item-title { font-size: 36px; margin: 0 0 8px; font-weight: 800; font-family: var(--font-heading); color: #ffffff; text-shadow: 0px 0px 10px rgb(0 0 0);}
.locations__item-text { font-size: 16px; opacity: .95; margin: 0; font-family: var(--font-body); text-shadow: 0px 0px 10px rgb(0 0 0);}

/* default: first expanded */
.locations__slider > #loc-1:checked ~ .locations__item[for="loc-1"],
.locations__slider > #loc-2:checked ~ .locations__item[for="loc-2"],
.locations__slider > #loc-3:checked ~ .locations__item[for="loc-3"],
.locations__slider > #loc-4:checked ~ .locations__item[for="loc-4"] {
	flex: 1 1 auto; /* развернутый занимает всё оставшееся */
	filter: saturate(1) brightness(1);
}
.locations__slider > #loc-1:checked ~ .locations__item[for="loc-1"]::after,
.locations__slider > #loc-2:checked ~ .locations__item[for="loc-2"]::after,
.locations__slider > #loc-3:checked ~ .locations__item[for="loc-3"]::after,
.locations__slider > #loc-4:checked ~ .locations__item[for="loc-4"]::after {
	background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15) 50%, rgba(0,0,0,0));
}
.locations__slider > #loc-1:checked ~ .locations__item:not([for="loc-1"]),
.locations__slider > #loc-2:checked ~ .locations__item:not([for="loc-2"]),
.locations__slider > #loc-3:checked ~ .locations__item:not([for="loc-3"]),
.locations__slider > #loc-4:checked ~ .locations__item:not([for="loc-4"]) {
	flex: 0 0 120px; /* все свернутые по 120px */
}

/* Hide vertical label and show content for expanded */
.locations__slider > #loc-1:checked ~ .locations__item[for="loc-1"] .locations__label,
.locations__slider > #loc-2:checked ~ .locations__item[for="loc-2"] .locations__label,
.locations__slider > #loc-3:checked ~ .locations__item[for="loc-3"] .locations__label,
.locations__slider > #loc-4:checked ~ .locations__item[for="loc-4"] .locations__label { opacity: 0; }
.locations__slider > #loc-1:checked ~ .locations__item[for="loc-1"] .locations__content,
.locations__slider > #loc-2:checked ~ .locations__item[for="loc-2"] .locations__content,
.locations__slider > #loc-3:checked ~ .locations__item[for="loc-3"] .locations__content,
.locations__slider > #loc-4:checked ~ .locations__item[for="loc-4"] .locations__content { display: block; opacity: 1; transform: translateY(-8px); z-index: 3;}

@media (max-width: 1100px) {
	.locations__slider { grid-template-columns: 1fr; }
	.locations__item { min-width: 100% !important; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
	.locations__item:last-child { border-bottom: 0; }
	.locations__label { position: static; transform: none; text-align: center; margin-bottom: 12px; }
}

.hero-section {
    padding: 120px 0;
}

#features {
    padding: 120px 0;
}


/* =============================
   Section: Progression
   ============================= */
.progression {
    padding: 120px 0 240px 0;
    position: relative;
    height: 1256px;
}

.progression__title {
	color: var(--color-title);
	text-align: center;
	font-size: 62px;
	margin: 0 0 0;
	font-weight: 800;
	font-family: var(--font-heading);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.progression__subtitle {
    color: #ffffff;
    text-align: center;
    margin: 0 0 110px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-size: 46px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.progression__cards {
	display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px 24px;
    margin-bottom: 40px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
	animation: gentleFloat 4s ease-in-out infinite;
}

.progression__card {
	width: 350px;
    height: 220px;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.progression__card:nth-child(1) {
	grid-column: 1;
	grid-row: 1;
	transform: translateY(-20px) rotate(-3deg);
}

.progression__card:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
	transform: translateY(20px) rotate(2deg);
}

.progression__card:nth-child(3) {
	grid-column: 3;
	grid-row: 1;
	transform: translateY(0px) rotate(-1deg);
}

.progression__card:nth-child(4) {
	grid-column: 1;
	grid-row: 2;
	transform: translateY(0px) rotate(4deg);
}

.progression__card:nth-child(5) {
	grid-column: 3;
	grid-row: 2;
	transform: translateY(0px) rotate(-2deg);
}

.progression__card:hover {
	transform: translateY(-8px) scale(1.05);
}

.progression__card:nth-child(1):hover {
	transform: translateY(-28px) rotate(-3deg) scale(1.05);
}

.progression__card:nth-child(2):hover {
	transform: translateY(12px) rotate(2deg) scale(1.05);
}

.progression__card:nth-child(3):hover {
	transform: translateY(-8px) rotate(-1deg) scale(1.05);
}

.progression__card:nth-child(4):hover {
	transform: translateY(-8px) rotate(4deg) scale(1.05);
}

.progression__card:nth-child(5):hover {
	transform: translateY(-8px) rotate(-2deg) scale(1.05);
}

.progression__card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.8s;
	transform-style: preserve-3d;
}

.progression__card.flipped .progression__card-inner {
	transform: rotateY(180deg);
}

.progression__card-front,
.progression__card-back {
position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(14 13 13);
    border: 2px solid rgba(243, 205, 118, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.progression__card-front::before,
.progression__card-back::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #f3cd76 0%, #d4af37 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.progression__card:hover .progression__card-front::before,
.progression__card:hover .progression__card-back::before {
	opacity: 1;
}

.progression__card-back {
	transform: rotateY(180deg);
	background: #28180e;
	border-color: rgba(243, 205, 118, 0.6);
}

.progression__card-title {
	font-size: 22px;
    font-weight: 800;
    margin: 0;
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: absolute;
    z-index: 2;
    bottom: 12px;
    background: #110302;
    line-height: 44px;
    padding-bottom: 3px;
    border-radius: 10px;
    width: 95%;
}

.progression__card-text {
	color: var(--color-text);
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	opacity: 0.9;
	font-family: var(--font-body);
	position: relative;
	z-index: 2;
}

.progression__counter {
	text-align: center;
	margin: 120px 0 40px 0;
	color: ffffff;
	font-size: 24px;
	font-weight: 600;
	font-family: var(--font-heading);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
	position: relative;
	z-index: 10;
}

.progression__path {
position: relative;
    top: -752px;
    left: -40px;
    right: 0;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    scale: 1.7;
}

.progression__line {
	width: 100%;
	height: 100%;
	max-width: 1000px;
}

.progression__line path {
	stroke: #f3cd76;
	stroke-width: 3;
	fill: none;
	stroke-dasharray: 10, 5;
	animation: dashMove 3s linear infinite;
}

@keyframes dashMove {
	0% {
		stroke-dashoffset: 15;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

/* Responsive design for progression section */
@media (max-width: 1200px) {
	.progression__cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px 20px;
		max-width: 900px;
	}
	
	.progression__card {
		width: 300px;
		height: 210px;
	}
	
	.progression__card-title {
		font-size: 24px;
	}
	
	.progression__card-text {
		font-size: 14px;
	}
}

@media (max-width: 900px) {
	.progression__cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px 20px;
		max-width: 600px;
	}
	
	.progression__card:nth-child(5) {
		grid-column: 1 / 3;
		justify-self: center;
	}
}

@media (max-width: 600px) {
	.progression__cards {
		grid-template-columns: 1fr;
		gap: 30px;
		max-width: 350px;
	}
	
	.progression__card {
		width: 280px;
		height: 200px;
	}
	
	.progression__card:nth-child(5) {
		grid-column: 1;
	}
	
	.progression__card-title {
		font-size: 20px;
	}
	
	.progression__card-text {
		font-size: 12px;
	}
	
	.progression__counter {
		font-size: 18px;
	}
}

/* =============================
   Header
   ============================= */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--color-header-bg);
	backdrop-filter: blur(8px);
	transition: transform .3s ease;
}

.header__inner {
	height: 80px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--space-5);
	font-family: var(--font-heading);
}

.header__nav { overflow: hidden; }

.menu {
	display: flex;
	align-items: center;
	gap: var(--space-5);
	flex-direction: row;
	flex-wrap: nowrap;
}

.menu__item { display: inline-flex; align-items: center; }

.menu__link {
	color: var(--color-text);
	opacity: .88;
	transition: opacity .15s ease;
}

.menu__link:hover { opacity: 1; }

.header__logo { justify-self: start; color: var(--color-text); }
.logo { font-weight: 700; letter-spacing: .5px; }

.header__actions { justify-self: end; display: flex; }

/* Offset for fixed header */
main { padding-top: 64px; }

/* Hidden state for header on scroll down */
.header--hidden { transform: translateY(-100%); }

/* Mobile menu button */
.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	color: var(--color-text);
	font-size: 24px;
	cursor: pointer;
	padding: 10px;
	margin-right: 10px;
	z-index: 101;
}

/* Mobile menu */
.mobile-menu {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(17, 3, 2, 0.95);
	z-index: 1000;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
}

.mobile-menu--open {
	transform: translateX(0);
}

.mobile-menu__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.mobile-menu__content {
	position: relative;
	width: 80%;
	height: 100%;
	background: var(--color-bg);
	padding: 20px;
	overflow-y: auto;
}

.mobile-menu__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(243, 205, 118, 0.3);
}

.mobile-menu__close {
	background: none;
	border: none;
	color: var(--color-text);
	font-size: 24px;
	cursor: pointer;
}

.mobile-menu__nav {
	margin-bottom: 30px;
}

.mobile-menu__list {
	list-style: none;
}

.mobile-menu__item {
	margin-bottom: 15px;
}

.mobile-menu__link {
	display: block;
	color: var(--color-text);
	text-decoration: none;
	font-size: 18px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(243, 205, 118, 0.1);
}

.mobile-menu__link:hover {
	color: #f3cd76;
}

.mobile-menu__footer {
	position: absolute;
	bottom: 20px;
	left: 20px;
	right: 20px;
}

.mobile-menu__language {
	margin-bottom: 20px;
}

.mobile-menu__btn {
	display: block;
	width: 100%;
	padding: 15px;
	background: linear-gradient(180deg, #a87a5a 0%, #9b5e4e 100%);
	border: 1px solid rgba(243, 205, 118, 0.9);
	border-radius: 4px;
	color: #fff3cf;
	font-family: 'TrajanSansPro', serif;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mobile-menu__btn:hover {
	filter: brightness(120%);
	transform: translateY(-2px);
}

/* =============================
   Combat section
   ============================= */
.combat { padding: 240px 0 120px 0; }
.combat__title { color: var(--color-title); text-align: center; font-size: 56px; margin: 0 0 24px; font-weight: 800; font-family: var(--font-heading); }
.combat__description {
	max-width: 880px;
	margin: 36px auto 36px;
	text-align: center;
	font-size: 18px;
	opacity: .92;
	font-family: var(--font-body);
	color: var(--color-text);
}
.combat__inner { position: relative; }
.combat__clouds {
	position: absolute;
    left: 50%;
	margin-top: -515px;
    transform: translateX(-50%);
    z-index: 0;
    max-width: none;
    width: 2400px;
    height: auto;
    opacity: .8;
    pointer-events: none;
    z-index: 0;
}
.combat__layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 0px;
    align-items: start;
    /* padding: 96px; */
    min-height: 630px;
    background: #0e0d0d;
    border-radius: 10px;
    position: relative;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, rgba(0, 0, 0, 0.02) 2px 4px), radial-gradient(1200px 600px at 50% 0%, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0) 60%), linear-gradient(180deg, #160404 0%, #0e0201 100%);
    background-repeat: no-repeat, no-repeat, repeat, no-repeat, no-repeat;
    background-position: top center, center center, center center, top center, center center;
    background-size: auto, cover, auto, cover, cover;
    /* border: 1px solid rgba(243, 205, 118, .4); */
    box-shadow: 1px 1px 20px black;
}
.combat__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 0 0 10px 10px;
	overflow: hidden;
	z-index: 10;
}
.combat__progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #f3cd76 0%, #d4af37 100%);
	width: 0%;
	transition: width 0.1s linear;
	box-shadow: 0 0 8px rgba(243, 205, 118, 0.6);
}
.combat__radio { display: none; }

.combat__tabs-container {
	display: flex;
    flex-direction: column;
    gap: 0;
    background: #060505;
    border-radius: 10px;
    padding: 0px;
}

.combat__tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* max-height: 400px; */
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 205, 118, 0.6) rgba(0, 0, 0, 0.2);
    /* background: #060505; */
    padding: 12px 12px 12px 12px;
    /* border-radius: 20px; */
    /* border: 1px solid rgb(243 205 118 / 11%); */
}

.combat__tabs::-webkit-scrollbar {
	width: 8px;
}

.combat__tabs::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

.combat__tabs::-webkit-scrollbar-thumb {
	background: rgba(243, 205, 118, 0.6);
	border-radius: 4px;
	transition: background 0.3s ease;
}

.combat__tabs::-webkit-scrollbar-thumb:hover {
	background: rgba(243, 205, 118, 0.8);
}

.combat__tabs-nav {
	display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 25px;
}

.combat__tab-btn {
	width: 40px;
	height: 40px;
	border: 1px solid rgba(243, 205, 118, 0.4);
	border-radius: 8px;
	background: rgba(14, 13, 13, 0.8);
	color: #f3cd76;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
}

.combat__tab-btn:hover {
	border-color: rgba(243, 205, 118, 0.8);
	background: rgba(243, 205, 118, 0.1);
	transform: scale(1.05);
}

.combat__tab-btn:active {
	transform: scale(0.95);
}

.combat__tab-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}
.combat__tab {
	display: block;
	padding: 18px 24px;
	border: 1px solid rgba(243,205,118,.35);
	border-radius: 16px;
	background: #110302;
	cursor: pointer;
	position: relative;
	opacity: 0.7;
}
.combat__tab::before { content: '+'; margin-right: 8px; }

.combat__panels { position: relative; padding: 19px;}
.combat__panel {
    border: 1px solid rgba(243, 205, 118, .6);
    border-radius: 16px;
    min-height: 420px;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    padding: 24px;
    color: var(--color-text);
    box-shadow: inset 0 -120px 120px rgba(0, 0, 0, .6);
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}
.combat__panel-title { font-size: 22px; margin: 0 0 8px; font-weight: 800; font-family: var(--font-heading); text-shadow: 0px 0px 10px rgb(0 0 0);}
.combat__panel-text { max-width: 520px; font-size: 15px; font-family: var(--font-body); text-shadow: 0px 0px 10px rgb(0 0 0);}

/* mapping radios to tabs/panels */
.combat__layout > #cbt-1:checked ~ .combat__tabs-container .combat__tabs .combat__tab[for="cbt-1"],
.combat__layout > #cbt-2:checked ~ .combat__tabs-container .combat__tabs .combat__tab[for="cbt-2"],
.combat__layout > #cbt-3:checked ~ .combat__tabs-container .combat__tabs .combat__tab[for="cbt-3"],
.combat__layout > #cbt-4:checked ~ .combat__tabs-container .combat__tabs .combat__tab[for="cbt-4"],
.combat__layout > #cbt-5:checked ~ .combat__tabs-container .combat__tabs .combat__tab[for="cbt-5"],
.combat__layout > #cbt-6:checked ~ .combat__tabs-container .combat__tabs .combat__tab[for="cbt-6"],
.combat__layout > #cbt-7:checked ~ .combat__tabs-container .combat__tabs .combat__tab[for="cbt-7"],
.combat__layout > #cbt-8:checked ~ .combat__tabs-container .combat__tabs .combat__tab[for="cbt-8"] {
	opacity: 1;
    border-color: rgba(243, 205, 118, .8);
    background: #0e0d0d;
    position: relative;
    background-image: url(img/bg-dark-full.png);
    background-size: 100%;
}

/* =============================
   RPG Elements section
   ============================= */
.rpg { padding: 120px 0 240px 0; }
.rpg__title { color: var(--color-title); text-align: center; font-size: 62px; margin: 0 0 56px; font-weight: 800; font-family: var(--font-heading); }
.rpg__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 24px; justify-items: center; }
.rpg-card { position: relative; width: 288px; height: 512px; border: 1px solid rgba(243,205,118,.35); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04); cursor: pointer; transition: transform 0.3s ease; }
.rpg-card:hover { transform: translateY(-8px); }
.rpg-card__media { position: absolute; inset: 0; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
.rpg-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.rpg-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s ease; }
.rpg-card:hover .rpg-card__video { opacity: 1; }
.rpg-card:hover .rpg-card__media img { opacity: 0; }

/* Video progress bar */
.rpg-card__progress { position: absolute; bottom: 0; left: 0; right: 0; height: 24px; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s ease; z-index: 10; cursor: pointer; }
.rpg-card:hover .rpg-card__progress { opacity: 1; }
.rpg-card__progress-bar { height: 100%; background: linear-gradient(90deg, #f3cd76 0%, #d4af37 100%); width: 0%; transition: width 0.1s linear; box-shadow: 0 0 8px rgba(243,205,118,0.6); pointer-events: none; }

/* Volume control styling */
.rpg-card__volume-control {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 20;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 20px;
	padding: 8px 10px;
	backdrop-filter: blur(4px);
}

.rpg-card:hover .rpg-card__volume-control { opacity: 1; }

.rpg-card__volume-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 19px;
	padding: 2px;
	color: #f3cd76;
	transition: transform 0.2s ease;
	line-height: 1;
}

.rpg-card__volume-btn:hover {
	transform: scale(1.1);
}

.rpg-card__volume-slider {
	width: 60px;
	height: 8px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	outline: none;
	border: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.rpg-card__volume-slider::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #f3cd76;
	cursor: pointer;
	box-shadow: 0 0 4px rgba(243, 205, 118, 0.6);
}

.rpg-card__volume-slider::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #f3cd76;
	cursor: pointer;
	border: none;
	box-shadow: 0 0 4px rgba(243, 205, 118, 0.6);
}

.rpg-card__volume-slider::-moz-range-track {
	background: rgba(255, 255, 255, 0.3);
	height: 4px;
	border-radius: 2px;
	border: none;
}

/* Play/Pause icon animation */
.rpg-card__play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	background: rgba(0,0,0,0.7);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f3cd76;
	font-size: 32px;
	z-index: 15;
	opacity: 0;
	scale: 0.5;
	pointer-events: none;
	visibility: hidden;
}

.rpg-card__play-icon.show {
	visibility: visible;
	opacity: 1;
	scale: 1;
	animation: playIconPulse 0.6s ease-out forwards;
}

.rpg-card__play-icon.hide {
	animation: playIconFade 0.6s ease-out forwards;
}

@keyframes playIconPulse {
	0% {
		opacity: 0;
		scale: 0.5;
		transform: translate(-50%, -50%);
	}
	50% {
		opacity: 1;
		scale: 1.1;
		transform: translate(-50%, -50%);
	}
	100% {
		opacity: 1;
		scale: 1;
		transform: translate(-50%, -50%);
	}
}

@keyframes playIconFade {
	0% {
		visibility: visible;
		opacity: 1;
		scale: 1;
		transform: translate(-50%, -50%);
	}
	100% {
		visibility: hidden;
		opacity: 0;
		scale: 0.5;
		transform: translate(-50%, -50%);
	}
}
.rpg-card__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0)); transition: opacity 0.3s ease; }
.rpg-card:hover .rpg-card__overlay { opacity: 0; pointer-events: none; }
.rpg-card__text { margin: 0 0 6px; font-size: 20px; line-height: 1.2; font-weight: 800; color: var(--color-text); text-shadow: 0 2px 6px rgba(0,0,0,.6); font-family: var(--font-heading); }
.rpg-card__desc { margin: 0; font-size: 14px; opacity: .92; color: var(--color-text); font-family: var(--font-body); }

.rpg__hover-hint { text-align: center; margin-top: 24px; }
.rpg__hover-hint p { font-size: 16px; color: var(--color-muted); margin: 0; font-family: var(--font-body); opacity: 0.8; }

@media (max-width: 1200px) {
	.rpg__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
	.rpg__grid { grid-template-columns: 1fr; }
}
.combat__layout > #cbt-1:checked ~ .combat__panels .combat__panel:nth-child(1),
.combat__layout > #cbt-2:checked ~ .combat__panels .combat__panel:nth-child(2),
.combat__layout > #cbt-3:checked ~ .combat__panels .combat__panel:nth-child(3),
.combat__layout > #cbt-4:checked ~ .combat__panels .combat__panel:nth-child(4),
.combat__layout > #cbt-5:checked ~ .combat__panels .combat__panel:nth-child(5),
.combat__layout > #cbt-6:checked ~ .combat__panels .combat__panel:nth-child(6),
.combat__layout > #cbt-7:checked ~ .combat__panels .combat__panel:nth-child(7),
.combat__layout > #cbt-8:checked ~ .combat__panels .combat__panel:nth-child(8) { 
	opacity: 1; 
	transform: none; 
	position: relative; 
}

@media (max-width: 1024px) {
	.combat__layout { grid-template-columns: 1fr; }
	/*.combat__panels { min-height: 420px; } */
}

/* Combat Wiki Section */
.combat__wiki {
	margin-top: 48px;
	padding: 32px;
	/* background: rgba(14, 13, 13, 0.8);
	border: 1px solid rgba(243, 205, 118, 0.3); */
	border-radius: 16px;
	text-align: center;
	backdrop-filter: blur(4px);
}

.combat__wiki-text {
	color: var(--color-text);
	font-size: 16px;
	font-family: var(--font-body);
	margin: 0 0 24px;
	opacity: 0.9;
	line-height: 1.5;
}

.combat__wiki-btn {
	padding: 12px 32px;
	font-size: 16px;
	font-weight: 600;
	color: #0e0d0d;
	background: linear-gradient(135deg, #f3cd76 0%, #d4af37 100%);
	border: none;
	border-radius: 8px;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
	font-family: var(--font-heading);
	box-shadow: 0 4px 12px rgba(243, 205, 118, 0.3);
}

.combat__wiki-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(243, 205, 118, 0.4);
	background: linear-gradient(135deg, #d4af37 0%, #f3cd76 100%);
}

.combat__wiki-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(243, 205, 118, 0.3);
}

/* =============================
   Wiki Popup
   ============================= */
.wiki-popup {
    position: fixed;
    bottom: 60px;
    right: 40px;
    width: 380px;
    background: linear-gradient(180deg, #160404 0%, #0e0201 100%);
    /* border: 1px solid rgba(243, 205, 118, 0.4); */
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: visible;
}

.wiki-popup--collapsed {
	height: 50px;
}

.wiki-popup--collapsed .wiki-popup__content {
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
}

.wiki-popup--collapsed .wiki-popup__toggle-icon {
	transform: rotate(0deg);
}

.wiki-popup--collapsed .wiki-popup__title--audio {
	margin-left: 0;
}

.wiki-popup__header {
	position: relative;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	background: rgba(243, 205, 118, 0.1);
	border-bottom: 1px solid rgba(243, 205, 118, 0.2);
}

.wiki-popup__toggle {
	width: 32px;
	height: 32px;
	border: none;
	background: rgba(243, 205, 118, 0.2);
	color: #f3cd76;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.wiki-popup__toggle:hover {
	background: rgba(243, 205, 118, 0.3);
	transform: scale(1.05);
}

.wiki-popup__toggle-icon {
	transition: transform 0.3s ease;
	transform: rotate(180deg);
}

.wiki-popup__content {
	padding: 0 20px 20px 20px;
	transition: all 0.3s ease;
	position: relative;
	overflow: visible;
}

.wiki-popup__layout {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	position: relative;
}

.wiki-popup__character {
    flex-shrink: 0;
    order: 1;
    position: absolute;
    left: -189px;
    top: -192px;
    bottom: 0;
    width: 340px;
    z-index: 1;
}

.wiki-popup__character-img {
    /* width: 100%; */
    /* height: calc(100% + 5px); */
    height: 400px;
    border: none;
    background: none;
    /* border-radius: 12px 0 0 12px; */
    box-shadow: none;
    object-fit: cover;
    object-position: center;
}

.wiki-popup__main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	order: 2;
	margin-left: 100px;
	position: relative;
	z-index: 2;
}

.wiki-popup__title {
	color: #f3cd76;
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	font-family: var(--font-heading);
	line-height: 1.3;
}

.wiki-popup__title--audio {
	margin-bottom: 0;
    margin-left: 58px;
}

.wiki-popup__title--wiki {
	margin-top: 8px;
	margin-bottom: 8px;
}

.wiki-popup__button {
	padding: 10px 16px;
	background: linear-gradient(135deg, #f3cd76 0%, #d4af37 100%);
	color: #0e0d0d;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--font-heading);
	align-self: flex-start;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wiki-popup__button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(243, 205, 118, 0.3);
	background: linear-gradient(135deg, #d4af37 0%, #f3cd76 100%);
}

.wiki-popup__player {
	margin: 8px 0;
}

.wiki-popup__controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wiki-popup__progress-wrapper {
	margin-top: 23px;
    position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
}

.wiki-popup__play-btn {
	width: 32px;
	height: 32px;
	border: 1px solid rgba(243, 205, 118, 0.6);
	background: rgba(0, 0, 0, 0.6);
	color: #f3cd76;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wiki-popup__play-btn:hover {
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 0.8);
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(243, 205, 118, 0.3);
}

.wiki-popup__progress-container {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	padding: 0;
}

.wiki-popup__progress-bar {
	width: 100%;
	height: 6px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(243, 205, 118, 0.3);
	border-radius: 3px;
	position: relative;
	cursor: pointer;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.wiki-popup__progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #f3cd76 0%, #d4af37 100%);
	border-radius: 3px;
	width: 0%;
	transition: width 0.1s linear;
	box-shadow: 0 0 6px rgba(243, 205, 118, 0.6);
}

.wiki-popup__time {
	font-size: 11px;
	color: rgba(243, 205, 118, 0.8);
	white-space: nowrap;
	font-family: var(--font-body);
	text-align: center;
	margin-top: 2px;
}

.wiki-popup__volume-container {
	display: flex;
	align-items: center;
	gap: 4px;
}

.wiki-popup__volume-btn {
	width: 28px;
	height: 28px;
	border: 1px solid rgba(243, 205, 118, 0.5);
	background: rgba(0, 0, 0, 0.6);
	color: #f3cd76;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.wiki-popup__volume-btn:hover {
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 0.7);
	box-shadow: 0 3px 8px rgba(243, 205, 118, 0.3);
}

.wiki-popup__volume-slider {
	width: 50px;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(243, 205, 118, 0.3);
	border-radius: 3px;
	outline: none;
	cursor: pointer;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.wiki-popup__volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	background: #f3cd76;
	border: 2px solid #fff;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	transition: all 0.2s ease;
}

.wiki-popup__volume-slider::-webkit-slider-thumb:hover {
	transform: scale(1.1);
	box-shadow: 0 3px 8px rgba(243, 205, 118, 0.5);
}

.wiki-popup__volume-slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	background: #f3cd76;
	border: 2px solid #fff;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	transition: all 0.2s ease;
}

.wiki-popup__volume-slider::-moz-range-thumb:hover {
	transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.wiki-popup {
		width: 280px;
		bottom: 10px;
		right: 10px;
	}
	
	.wiki-popup.wiki-popup--collapsed {
		height: 50px;
	}
	
	.wiki-popup.wiki-popup--collapsed .wiki-popup__content {
		opacity: 0;
		visibility: hidden;
		transform: translateY(10px);
	}
	
	.wiki-popup.wiki-popup--collapsed .wiki-popup__toggle-icon {
		transform: rotate(0deg);
	}
	
	.wiki-popup.wiki-popup--collapsed .wiki-popup__character {
		display: none;
	}
	
	.wiki-popup.wiki-popup--collapsed .wiki-popup__main {
		margin-left: 0;
	}
	
	.wiki-popup.wiki-popup--collapsed .wiki-popup__title--audio {
		margin-left: 0;
	}
	
	.wiki-popup__content {
		padding: 16px;
	}
	
	.wiki-popup__title {
		font-size: 13px;
	}
	
	.wiki-popup__button {
		padding: 8px 12px;
		font-size: 12px;
	}
}

/* =============================
   Buy section
   ============================= */
.buy { padding: 120px 0 120px 0; 
	/* Повторяем фон как в .expansion: линия + подложка + текстура + цвет */
	position: relative;
	background-image:
		url('img/line.webp'),
		url('img/long-fade-0d0200_w-line.png'),
		repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 2px, rgba(0,0,0,0.02) 2px 4px),
		radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,0.04), rgba(0,0,0,0) 60%),
		linear-gradient(180deg, #160404 0%, #0e0201 100%);
	background-repeat: no-repeat, no-repeat, repeat, no-repeat, no-repeat;
	background-position: top center, center center, center center, top center, center center;
	background-size: auto, cover, auto, cover, cover;
}
.buy__title { color: #ffffff; font-size: 62px; margin: 0 0 56px; font-weight: 800; font-family: var(--font-heading); }
.buy__inner { position: relative; }
.buy__layout { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.buy__radio { display: none; }

.buy__eyebrow { letter-spacing: .08em; opacity: .9; margin: 0 0 8px; }
.buy__tabs { display: grid; gap: 10px; margin: 8px 0 20px; }
.buy__tab {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 14px 20px;
	border: 1px solid rgba(243,205,118,.35);
	border-radius: 14px;
	background: #110302;
	cursor: pointer;
	position: relative;
	opacity: .75;
	text-align: left;
}
/* .buy__tab::before { content: '+'; margin-right: 8px; } */

.buy__tab-name {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.buy__tab-price {
	font-size: 14px;
	font-weight: 600;
	color: #f3cd76;
	opacity: 0.9;
	margin-left: 16px;
}

/* Different backgrounds and animations for each tab */
.buy__tab[for="ed-standard"] {
	background: linear-gradient(135deg, rgba(34, 139, 34, 0.15) 0%, rgba(0, 100, 0, 0.1) 100%);
	position: relative;
	overflow: hidden;
}

.buy__tab[for="ed-standard"]::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(34, 139, 34, 0.2) 0%, transparent 50%);
	/*animation: travelerGlow 4s ease-in-out infinite;*/
	z-index: -1;
}

.buy__tab[for="ed-gold"] {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(218, 165, 32, 0.1) 100%);
	position: relative;
	overflow: hidden;
}

.buy__tab[for="ed-gold"]::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	/*background: conic-gradient(from 0deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.3));*/
	animation: knightRotate 6s linear infinite;
	z-index: -1;
}

.buy__tab[for="ed-collectors"] {
	background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(75, 0, 130, 0.1) 100%);
	position: relative;
	overflow: hidden;
}

.buy__tab[for="ed-collectors"]::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, transparent 30%, rgba(138, 43, 226, 0.2) 50%, transparent 70%);
	animation: pioneerSweep 3s ease-in-out infinite;
	z-index: -1;
}

/* Animation keyframes */
@keyframes travelerGlow {
	0%, 100% {
		transform: translate(0%, 0%) scale(1);
		opacity: 0.3;
	}
	50% {
		transform: translate(20%, 20%) scale(1.1);
		opacity: 0.6;
	}
}

@keyframes knightRotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes pioneerSweep {
	0% {
		transform: translateX(-100%) skewX(-45deg);
	}
	50% {
		transform: translateX(0%) skewX(-45deg);
	}
	100% {
		transform: translateX(100%) skewX(-45deg);
	}
}

.buy__shops-title { margin: 8px 0 10px; opacity: .9; }
.buy__shops { display: flex; flex-wrap: wrap; gap: 10px; }
.buy__shop { padding: 10px 16px; border: 1px solid rgba(243,205,118,.35); border-radius: 999px; background: rgba(255,255,255,.04); font-size: 14px; }

.buy__right { position: relative; }
.buy__panel {
	border: 1px solid rgba(243,205,118,.6);
	border-radius: 16px;
	min-height: 420px;
	padding: 24px;
	color: var(--color-text);
	box-shadow: inset 0 -120px 120px rgba(0,0,0,.6);
	position: absolute; inset: 0;
	opacity: 0; transform: translateY(8px);
	transition: opacity .3s ease, transform .3s ease;
	display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px;
	backdrop-filter: blur(2px);
	overflow: hidden;
}

.buy__panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: var(--bg);
	background-size: cover;
	background-position: center;
	filter: blur(40px);
	-webkit-filter: blur(40px);
	z-index: -1;
}
.buy__art { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; display: none; }
.buy__panel-title { font-size: 22px; margin: 0 0 4px; font-weight: 800; font-family: var(--font-heading); }
.buy__panel-text { font-size: 15px; opacity: .95; font-family: var(--font-body); }
.buy__cta { justify-self: start; }
.buy__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    align-items: center;
    border-radius: 8px;
    height: 202px;
    padding-left: 28px;
}

/* Informational text under buy__items */
.buy__items-hint {
	font-size: 13px;
	color: var(--color-muted);
	text-align: center;
	font-family: var(--font-body);
	opacity: 0.8;
	margin-top: 12px;
	font-style: italic;
	transition: opacity .3s ease;
}

.buy__panel--item-mode .buy__items-hint {
	opacity: 0;
}

/* Unified Buy Package Button */
.buy__purchase-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	height: 52px;
	padding: 0 28px;
	border-radius: 4px;
	text-decoration: none;
	font-family: 'TrajanSansPro', serif;
	font-size: 16px;
	font-weight: 600;
	color: #fff3cf;
	background: linear-gradient(180deg, #8f5a3a 0%, #7d3e34 100%);
	border-top: 1px solid rgba(231, 192, 120, .9);
	border-bottom: 2px solid rgba(231, 192, 120, .9);
	box-shadow: 0px 6px 12px rgb(0 0 0 / 38%);
	transition: all .5s ease-in;
	margin: 24px auto 0 auto;
}

.buy__purchase-btn:hover {
	filter: brightness(120%);
	transform: translateY(-2px);
}

.buy__purchase-btn:active {
	transform: translateY(1px);
}
.buy__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.buy__item img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}
.buy__item span {
	font-size: 11px;
	color: var(--color-text);
	text-align: center;
	font-family: var(--font-body);
	opacity: 0.8;
}

.buy__item__zone {
	width: 100%;
    text-align: center;
	padding-top: 20px;
}

/* active tab styles */
.buy__layout > #ed-standard:checked ~ .buy__left .buy__tab[for="ed-standard"],
.buy__layout > #ed-gold:checked ~ .buy__left .buy__tab[for="ed-gold"],
.buy__layout > #ed-collectors:checked ~ .buy__left .buy__tab[for="ed-collectors"] {
	opacity: 1; border-color: rgba(243,205,118,.8);
}

/* Active tab background overrides */
.buy__layout > #ed-standard:checked ~ .buy__left .buy__tab[for="ed-standard"] {
	background: linear-gradient(135deg, rgba(34, 139, 34, 0.25) 0%, rgba(0, 100, 0, 0.2) 100%);
}

.buy__layout > #ed-gold:checked ~ .buy__left .buy__tab[for="ed-gold"] {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(218, 165, 32, 0.2) 100%);
}

.buy__layout > #ed-collectors:checked ~ .buy__left .buy__tab[for="ed-collectors"] {
	background: linear-gradient(135deg, rgba(138, 43, 226, 0.25) 0%, rgba(75, 0, 130, 0.2) 100%);
}

/* map radios to panels */
.buy__layout > #ed-standard:checked ~ .buy__right .buy__panel:nth-child(1),
.buy__layout > #ed-gold:checked ~ .buy__right .buy__panel:nth-child(2),
.buy__layout > #ed-collectors:checked ~ .buy__right .buy__panel:nth-child(3) { 
	opacity: 1; 
	transform: none; 
	position: relative; 
	z-index: 10;
	pointer-events: auto;
}

/* Hide inactive panels from interactions */
.buy__panel {
	pointer-events: none;
	z-index: 1;
}

/* Interactive buy panel states */
.buy__panel.buy__panel--item-mode {
	transition: all .4s ease;
}

.buy__panel.buy__panel--item-mode .buy__panel-title,
.buy__panel.buy__panel--item-mode .buy__panel-text {
	opacity: 0;
	transform: translateY(-20px);
	transition: opacity .3s ease, transform .3s ease;
}

.buy__panel.buy__panel--item-mode .buy__items {
	transform: translateY(-100px);
	transition: transform .4s ease .1s;
}

/* Item description area */
.buy__item-description {
	position: absolute;
	bottom: 24px;
	left: 24px;
	right: 24px;
	padding: 20px;
	background: rgba(17, 3, 2, 0.95);
	border: 1px solid rgba(243, 205, 118, 0.4);
	border-radius: 12px;
	backdrop-filter: blur(10px);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none;
}

.buy__item-description.active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.buy__item-description h4 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--color-title);
	font-family: var(--font-heading);
}

.buy__item-description p {
	margin: 0;
	font-size: 14px;
	color: var(--color-text);
	opacity: 0.9;
	font-family: var(--font-body);
	line-height: 1.4;
}

/* Item hover and active states */
.buy__item {
	cursor: pointer;
	transition: all .2s ease;
	border-radius: 8px;
	padding: 8px;
	position: relative;
}

.buy__item:hover {
	background: rgba(243, 205, 118, 0.1);
	transform: translateY(-2px);
}

.buy__item.active {
	background: rgba(243, 205, 118, 0.2);
	border: 1px solid rgba(243, 205, 118, 0.5);
	box-shadow: 0 4px 12px rgba(243, 205, 118, 0.3);
}

.buy__item.active::after {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, rgba(243, 205, 118, 0.6), rgba(243, 205, 118, 0.3));
	border-radius: 10px;
	z-index: -1;
	animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
	0% { opacity: 0.5; }
	100% { opacity: 1; }
}

@media (max-width: 1024px) {
	.buy__layout { grid-template-columns: 1fr; }
	.buy__right { min-height: 420px; }
}

/* =============================
   Header Language Switcher
   ============================= */

.header__language {
    margin-right: var(--space-4);
    position: relative;
    z-index: 1001;
}

/* lang */
.lang {
    position: relative;
    text-align: center;
}

.lang__box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.lang__arrow {
    content: '';
    display: block;
    background: url(../img/lang/arrow-down.png) no-repeat;
    width: 10px;
    height: 5px;
    transition: .3s all;
    cursor: pointer;
    margin-top: 1px;
}

.lang:hover .lang__arrow {
    transform: rotateX(180deg);
}

.lang__link {
    background-color: #110302;
    cursor: pointer;
    transition: .3s all;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 2px;
    padding: 4px;
    font-family: "Roboto Slab", "Times New Roman", Times, serif;
    font-family: var(--font-body);
    height: 42px;
}

.lang__img {
    width: 30px;
    height: 18px;
    flex-shrink: 0;
    font-size: 10px;
    display: block;
    margin-bottom: 2px;
}

.lang__link_sub:hover .lang__img {
    filter: drop-shadow(0 0 10px #415e6a);
}

.lang__name {
    color: #737b84;
    font-family: "Roboto Slab", "Times New Roman", Times, serif;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 12px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.lang__link_sub {
    width: 100%;
    position: relative;
    margin-top: 6px;
}

.lang__link_sub:hover .lang__name {
    filter: drop-shadow(0 0 5px #415e6a);
}

.lang__list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: .3s all;
    transform: translateY(-40px);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    line-height: 13px;
    overflow: visible;
    background-color: #110302;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    border-radius: 2px;
    /* padding: 8px; */
}

.lang:hover .lang__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
    overflow: visible;
}

.lang__link_select {
    align-items: flex-start;
    text-align: center;
    font-size: 0;
}

.lang_row {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* =============================
   Characters section
   ============================= */
.characters { padding: 240px 0 280px 0; }
.characters__title { 
	text-align: center; 
	font-size: 62px; 
	margin: 0 0 48px; 
	font-weight: 800; 
	position: relative;
	font-family: var(--font-heading);
	color: var(--color-title);
}
/* .characters__title::before {
	content: "";
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 24px;
	height: 24px;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f3cd76"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>') center/contain no-repeat;
} */
.characters__inner { position: relative; }
.characters__layout { display: grid; gap: 32px; }
.characters__radio { display: none; }

.characters__portraits {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 32px;
}
.characters__portrait {
	position: relative;
	width: 120px;
	height: 120px;
	border-radius: 0; /* не обрезаем края, чтобы не резать свечение */
	overflow: visible; /* позволяем свечению выходить за рамки */
	cursor: pointer;
	border: none;
	transition: transform 0.3s ease;
	z-index: 2;
}
.characters__portrait:hover {
	transform: scale(1.05);
}
.characters__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.characters__content { position: relative; }
.characters__panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.characters__info {
	max-width: 500px;
	margin: 0 auto;
}
.characters__location {
	font-size: 14px;
	color: var(--color-muted);
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-family: var(--font-body);
}
.characters__name {
	font-size: 48px;
	font-weight: 800;
	margin: 0 0 16px;
	line-height: 1.1;
	font-family: var(--font-heading);
}
.characters__description {
	font-size: 16px;
	line-height: 1.6;
	opacity: 0.9;
	margin: 0;
	font-family: var(--font-body);
}
.characters__art {
	text-align: center;
	position: relative;
	scale: 1.4;
	z-index: 1;
}

.characters__art:before {
    background: linear-gradient(to top, #c58b35 0, rgba(197, 139, 53, 0) 40%, rgba(197, 139, 53, 0) 100%);
}

.characters__art:before {
    content: "";
    width: 100%;
    aspect-ratio: 1 / 1;
    z-index: 1;
    border-radius: 50%;
    filter: blur(100px);
    top: 42%;
    transform: translate(-55%, -55%);
    position: absolute;
    left: 55%;
    z-index: 1;
}

.characters__art:after {
    content: "";
    width: 60%;
    aspect-ratio: 1 / 0.4;
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 50%;
    transform: translate(-55%, -30%);
    border-radius: 50%;
    background: linear-gradient(to top, #000 0, rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, .1) 100%);
    opacity: .2;
}

/* Per-class shadow plate positioning (tweak left/transform per model) */
.characters__layout > #char-archers:checked ~ .characters__content .characters__panel:nth-child(1) .characters__art:after {
    left: 55%;
    transform: translate(-55%, -30%);
}
.characters__layout > #char-chanters:checked ~ .characters__content .characters__panel:nth-child(2) .characters__art:after {
    left: 55%;
    transform: translate(-55%, -30%);
}
.characters__layout > #char-daggers:checked ~ .characters__content .characters__panel:nth-child(3) .characters__art:after {
    left: 55%;
    transform: translate(-55%, -30%);
}
.characters__layout > #char-healers:checked ~ .characters__content .characters__panel:nth-child(4) .characters__art:after {
    left: 55%;
    transform: translate(-55%, -30%);
}
.characters__layout > #char-knights:checked ~ .characters__content .characters__panel:nth-child(5) .characters__art:after {
    left: 55%;
    transform: translate(-55%, -30%);
}
.characters__layout > #char-mages:checked ~ .characters__content .characters__panel:nth-child(6) .characters__art:after {
    left: 55%;
    transform: translate(-55%, -30%);
}
.characters__layout > #char-summoners:checked ~ .characters__content .characters__panel:nth-child(7) .characters__art:after {
    left: 55%;
    transform: translate(-55%, -30%);
}
.characters__layout > #char-warriors:checked ~ .characters__content .characters__panel:nth-child(8) .characters__art:after {
    left: 55%;
    transform: translate(-55%, -30%);
}

.classlist__item-preview-icon {
    z-index: 2;
    width: 85%;
    filter: blur(3px);
    opacity: .05;
    animation: iconFloat 3.5s ease-in-out infinite;
}
.classlist__item-preview-icon, .classlist__item-preview:before {
    top: 56%;
    transform: translate(-55%, -55%);
    position: absolute;
    left: 55%;
    z-index: 1;
}

/* Per-class glow colors for active character panel */
.characters__layout > #char-archers:checked ~ .characters__content .characters__panel:nth-child(1) .characters__art:before {
    background: linear-gradient(to top,#4898c0 0,rgba(72,152,192,0) 40%,rgba(72,152,192,0) 100%);
}
.characters__layout > #char-chanters:checked ~ .characters__content .characters__panel:nth-child(2) .characters__art:before {
    background: linear-gradient(to top,#ae4638 0,rgba(174,70,56,0) 40%,rgba(174,70,56,0) 100%);
}
.characters__layout > #char-daggers:checked ~ .characters__content .characters__panel:nth-child(3) .characters__art:before {
    background: linear-gradient(to top,#38ae7d 0,rgba(56,174,125,0) 40%,rgba(56,174,125,0) 100%);
}
.characters__layout > #char-healers:checked ~ .characters__content .characters__panel:nth-child(4) .characters__art:before {
    background: linear-gradient(to top,#5d9934 0,rgba(93,153,52,0) 40%,rgba(93,153,52,0) 100%);
}
.characters__layout > #char-knights:checked ~ .characters__content .characters__panel:nth-child(5) .characters__art:before {
    background: linear-gradient(to top,#a0adb6 0,rgba(160,173,182,0) 40%,rgba(160,173,182,0) 100%);
}
.characters__layout > #char-mages:checked ~ .characters__content .characters__panel:nth-child(6) .characters__art:before {
    background: linear-gradient(to top,#523694 0,rgba(82,54,148,0) 40%,rgba(82,54,148,0) 100%);
}
.characters__layout > #char-summoners:checked ~ .characters__content .characters__panel:nth-child(7) .characters__art:before {
    background: linear-gradient(to top,#ae6338 0,rgba(174,99,56,0) 40%,rgba(174,99,56,0) 100%);
}
.characters__layout > #char-warriors:checked ~ .characters__content .characters__panel:nth-child(8) .characters__art:before {
    background: linear-gradient(to top,#c58b35 0,rgba(197,139,53,0) 40%,rgba(197,139,53,0) 100%);
}

.characters__video {
	width: 100%;
	margin-top: 42px;
	height: auto;
	max-height: 90%;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0,0,0,.45);
	transition: opacity .35s ease;
}
.characters__panel:hover .characters__video { opacity: 1; }
.characters__image {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	/* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
	position: relative;
	z-index: 2;
	animation: characterFloat 4.8s ease-in-out infinite;
}

/* Active portrait styles */
.characters__layout > #char-archers:checked ~ .characters__portraits .characters__portrait[for="char-archers"],
.characters__layout > #char-chanters:checked ~ .characters__portraits .characters__portrait[for="char-chanters"],
.characters__layout > #char-daggers:checked ~ .characters__portraits .characters__portrait[for="char-daggers"],
.characters__layout > #char-healers:checked ~ .characters__portraits .characters__portrait[for="char-healers"],
.characters__layout > #char-knights:checked ~ .characters__portraits .characters__portrait[for="char-knights"],
.characters__layout > #char-mages:checked ~ .characters__portraits .characters__portrait[for="char-mages"],
.characters__layout > #char-summoners:checked ~ .characters__portraits .characters__portrait[for="char-summoners"],
.characters__layout > #char-warriors:checked ~ .characters__portraits .characters__portrait[for="char-warriors"] {
	transform: scale(1.1);
}
/* Подсветка по контуру PNG (альфа-канал) для активного портрета */
/* Индивидуальные настройки свечения по альфа-каналу PNG для активного портрета */
.characters__layout > #char-archers:checked ~ .characters__portraits .characters__portrait[for="char-archers"] img {
	filter: drop-shadow(0 0 6px rgba(72,152,192,.9))
	        drop-shadow(0 0 14px rgba(72,152,192,.55))
	        drop-shadow(0 0 22px rgba(72,152,192,.35));
}
.characters__layout > #char-chanters:checked ~ .characters__portraits .characters__portrait[for="char-chanters"] img {
	filter: drop-shadow(0 0 5px rgba(174,70,56,.85))
	        drop-shadow(0 0 12px rgba(174,70,56,.5))
	        drop-shadow(0 0 18px rgba(174,70,56,.3));
}
.characters__layout > #char-daggers:checked ~ .characters__portraits .characters__portrait[for="char-daggers"] img {
	filter: drop-shadow(0 0 7px rgba(56,174,125,.9))
	        drop-shadow(0 0 16px rgba(56,174,125,.55))
	        drop-shadow(0 0 26px rgba(56,174,125,.35));
}
.characters__layout > #char-healers:checked ~ .characters__portraits .characters__portrait[for="char-healers"] img {
	filter: drop-shadow(0 0 8px rgba(93,153,52,1))
	        drop-shadow(0 0 18px rgba(93,153,52,.6))
	        drop-shadow(0 0 28px rgba(93,153,52,.38));
}
.characters__layout > #char-knights:checked ~ .characters__portraits .characters__portrait[for="char-knights"] img {
	filter: drop-shadow(0 0 6px rgba(160,173,182,.85))
	        drop-shadow(0 0 14px rgba(160,173,182,.5))
	        drop-shadow(0 0 20px rgba(160,173,182,.32));
}
.characters__layout > #char-mages:checked ~ .characters__portraits .characters__portrait[for="char-mages"] img {
	filter: drop-shadow(0 0 9px rgba(82,54,148,.95))
	        drop-shadow(0 0 20px rgba(82,54,148,.6))
	        drop-shadow(0 0 32px rgba(82,54,148,.38));
}
.characters__layout > #char-summoners:checked ~ .characters__portraits .characters__portrait[for="char-summoners"] img {
	filter: drop-shadow(0 0 6px rgba(174,99,56,.88))
	        drop-shadow(0 0 16px rgba(174,99,56,.55))
	        drop-shadow(0 0 26px rgba(174,99,56,.35));
}
.characters__layout > #char-warriors:checked ~ .characters__portraits .characters__portrait[for="char-warriors"] img {
	filter: drop-shadow(0 0 5px rgba(197,139,53,.85))
	        drop-shadow(0 0 12px rgba(197,139,53,.5))
	        drop-shadow(0 0 18px rgba(197,139,53,.3));
}

/* Лёгкая подсветка при hover (по альфа-каналу) */
.characters__portrait:hover img {
	filter: drop-shadow(0 0 6px rgba(243,205,118,.35));
}

/* Show active panel */
.characters__layout > #char-archers:checked ~ .characters__content .characters__panel:nth-child(1),
.characters__layout > #char-chanters:checked ~ .characters__content .characters__panel:nth-child(2),
.characters__layout > #char-daggers:checked ~ .characters__content .characters__panel:nth-child(3),
.characters__layout > #char-healers:checked ~ .characters__content .characters__panel:nth-child(4),
.characters__layout > #char-knights:checked ~ .characters__content .characters__panel:nth-child(5),
.characters__layout > #char-mages:checked ~ .characters__content .characters__panel:nth-child(6),
.characters__layout > #char-summoners:checked ~ .characters__content .characters__panel:nth-child(7),
.characters__layout > #char-warriors:checked ~ .characters__content .characters__panel:nth-child(8) {
	opacity: 1;
	transform: translateY(0);
	position: relative;
	pointer-events: auto;
}

@media (max-width: 1024px) {
	.characters__panel {
		grid-template-columns: 1fr;
		gap: 32px;
		text-align: center;
	}
	.characters__portraits {
		gap: 16px;
	}
	.characters__portrait {
		width: 60px;
		height: 60px;
	}
	.characters__name {
		font-size: 36px;
	}
}

/* =============================
   Testimonials section
   ============================= */
.testimonials { 
	padding: 96px 0 120px;
    background: #0e0d0d;
    position: relative;
    /* background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%); */
    background-image: url(img/bg-dark-full.png);
    background-size: 120%;
    background-position: center;
    transition: none;
    border-top: 1px solid rgba(243, 205, 118, 0.3);
    border-bottom: 1px solid rgba(243, 205, 118, 0.3);
    overflow: hidden;
}

.testimonials__inner { 
	position: relative; 
	z-index: 1; 
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.testimonials__layout { 
	position: relative; 
	text-align: center;
}

.testimonials__content { 
	position: relative; 
	min-height: 300px; 
	display: flex; 
	align-items: center; 
	justify-content: center;
	margin-bottom: 60px;
}

.testimonials__panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateX(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonials__panel--active {
	opacity: 1;
	transform: translateX(0);
	z-index: 1;
}

.testimonials__avatar {
    width: 180px;
    height: 180px;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

.testimonials__avatar:hover {
	transform: scale(1.05);
}

.testimonials__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
    object-position: top center;
}

.testimonials__quote {
	font-size: 28px;
	font-weight: 300;
	font-style: italic;
	line-height: 1.4;
	margin: 0 0 24px;
	color: var(--color-text);
	max-width: 600px;
	text-align: center;
	font-family: var(--font-body);
}

.testimonials__source {
	font-size: 16px;
	color: var(--color-muted);
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-family: var(--font-body);
}

/* Names carousel */
.testimonials__names {
	position: relative;
	height: 60px;
	overflow: hidden;
	margin: 0 auto;
}

.testimonials__names::before,
.testimonials__names::after {
	content: '';
	position: absolute;
	top: 0;
	width: 100px;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

.testimonials__names::before {
	left: 0;
	background: linear-gradient(to right, #0e0d0d, transparent);
}

.testimonials__names::after {
	right: 0;
	background: linear-gradient(to left, #0e0d0d, transparent);
}

.testimonials__names-track {
	display: flex;
	align-items: center;
	height: 100%;
	animation: scrollNames 20s linear infinite;
	will-change: transform;
	transform: translateX(0);
}

.testimonials__name-item {
	flex: 0 0 auto;
	padding: 0 20px;
	font-size: 24px;
	font-weight: 700;
	color: rgba(243, 205, 118, 0.5);
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--font-heading);
}

.testimonials__name-item:hover {
	color: rgba(243, 205, 118, 0.8);
	transform: scale(1.05);
}

.testimonials__name-item--active {
	color: #f3cd76;
	transform: scale(1.1);
	text-shadow: 0 0 10px rgba(243, 205, 118, 0.5);
}

@keyframes scrollNames {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@media (max-width: 1024px) {
	.testimonials__quote {
		font-size: 24px;
		padding: 0 20px;
	}
}

@media (max-width: 768px) {
	.testimonials__quote {
		font-size: 20px;
	}
	/*.testimonials__avatar {
		width: 60px;
		height: 60px;
	} */
	.testimonials__name-item {
		font-size: 18px;
		padding: 0 15px;
	}
}

/* =============================
   Video Testimonials section
   ============================= */
.video-testimonials { 
	padding: 120px 0 120px;
    min-height: 760px;
    background: #0e0d0d;
    position: relative;
    /* background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%); */
    background-size: 120%;
    background-position: center;
    transition: none;
    overflow: hidden;
}
.video-testimonials::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)"/></svg>') repeat;
	opacity: 0.1;
	pointer-events: none;
}
.video-testimonials__bg {
    position: absolute;
    top: -540px;
    left: 0;
    width: 100%;
    height: 200%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}
.video-testimonials__inner { position: relative; z-index: 2; }
/* Added styles for title, subtitle, and text */
.video-testimonials__title {
	color: var(--color-title);
    font-size: 56px;
    margin: 0 0 0;
    font-weight: 800;
    font-family: var(--font-heading);
    text-align: left;
	max-width: 642px;
}
.video-testimonials__subtitle {
	color: #ffffff;
	text-align: left;
	font-size: 48px;
	margin: 0 0 48px;
	font-weight: 800;
	font-family: var(--font-heading);
	max-width: 642px;
}
.video-testimonials__text {
	color: var(--color-text);
    font-size: 18px;
    font-weight: 400;
    font-family: var(--font-body);
    text-align: left;
    line-height: 1.6;
    max-width: 642px;
}
.video-testimonials__layout { 
	position: relative; 
	max-width: 800px; 
	margin: 0 auto; 
	text-align: center;
}
.video-testimonials__radio { display: none; }

.video-testimonials__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 2px solid rgba(243, 205, 118, 0.6);
	border-radius: 50%;
	background: rgba(243, 205, 118, 0.1);
	color: #f3cd76;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
}
.video-testimonials__arrow:hover {
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 1);
	transform: translateY(-50%) scale(1.1);
}
.video-testimonials__arrow--prev { left: -60px; }
.video-testimonials__arrow--next { right: -60px; }

.video-testimonials__content { 
	position: relative; 
	min-height: 200px; 
	display: flex; 
	align-items: center; 
	justify-content: center;
}
.video-testimonials__layout { 
	position: relative; 
	max-width: 800px; 
	margin: 0 auto; 
	text-align: left;
}
.video-testimonials__quote {
	font-size: 28px;
	font-weight: 300;
	font-style: italic;
	line-height: 1.4;
	margin: 0 0 24px;
	color: var(--color-text);
	max-width: 600px;
	text-align: left;
	font-family: var(--font-body);
}
.video-testimonials__source {
	font-size: 16px;
	color: var(--color-muted);
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-family: var(--font-body);
}

.video-testimonials__dots {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 40px;
}
.video-testimonials__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(243, 205, 118, 0.3);
	cursor: pointer;
	transition: all 0.3s ease;
}
.video-testimonials__dot:hover {
	background: rgba(243, 205, 118, 0.6);
	transform: scale(1.2);
}

/* Show active testimonial */
.video-testimonials__layout > #video-test-1:checked ~ .video-testimonials__content .video-testimonials__panel:nth-child(1),
.video-testimonials__layout > #video-test-2:checked ~ .video-testimonials__content .video-testimonials__panel:nth-child(2),
.video-testimonials__layout > #video-test-3:checked ~ .video-testimonials__content .video-testimonials__panel:nth-child(3),
.video-testimonials__layout > #video-test-4:checked ~ .video-testimonials__content .video-testimonials__panel:nth-child(4) {
	opacity: 1;
	transform: translateX(0);
}

/* Active dot */
.video-testimonials__layout > #video-test-1:checked ~ .video-testimonials__dots .video-testimonials__dot[for="video-test-1"],
.video-testimonials__layout > #video-test-2:checked ~ .video-testimonials__dots .video-testimonials__dot[for="video-test-2"],
.video-testimonials__layout > #video-test-3:checked ~ .video-testimonials__dots .video-testimonials__dot[for="video-test-3"],
.video-testimonials__layout > #video-test-4:checked ~ .video-testimonials__dots .video-testimonials__dot[for="video-test-4"] {
	background: #f3cd76;
	transform: scale(1.3);
}

@media (max-width: 1024px) {
	.video-testimonials__arrow {
		width: 40px;
		height: 40px;
	}
	.video-testimonials__arrow--prev { left: -50px; }
	.video-testimonials__arrow--next { right: -50px; }
	.video-testimonials__quote {
		font-size: 24px;
		padding: 0 20px;
	}
}

@media (max-width: 768px) {
	.video-testimonials__arrow--prev { left: 10px; }
	.video-testimonials__arrow--next { right: 10px; }
	.video-testimonials__quote {
		font-size: 20px;
	}
}

/* =============================
   Registration & Roulette section
   ============================= */
.registration {
	padding: 240px 0 120px 0;
	position: relative;
}

.registration::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: 
		url('img/kcdclouddeco-test-compressed.png') center/cover no-repeat;
	opacity: 0.3;
	pointer-events: none;
}

.registration__inner {
	position: relative;
	z-index: 2;
	text-align: center;
}

.registration__title {
	font-size: 62px;
	color: var(--color-title);
	margin: 0 0 60px;
	font-weight: 800;
	font-family: var(--font-heading);
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Two-column layout */
.registration__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
	max-width: 1400px;
	margin: 0 auto;
}

.registration__left {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.registration__right {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 27px 27px 27px 51px;
    left: -100px;
    top: 83px;
    z-index: 1;
    border: 1px solid rgba(243, 205, 118, .6);
    border-radius: 16px;
    background: #0e0d0d;
    position: relative;
    background-image: url(img/bg-dark-full.png);
	max-height: 555px;
	min-height: 555px;
	backdrop-filter: blur(2px);
	box-shadow: inset 0 -120px 120px rgba(0,0,0,.6);
	overflow: hidden;
}

.registration__right::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url(img/bg-dark-full.png);
	background-size: cover;
	background-position: center;
	filter: blur(40px);
	-webkit-filter: blur(40px);
	z-index: -1;
}

/* Roulette Styles */
.roulette-container {
	margin-bottom: 0;
}

.roulette {
	position: relative;
	max-width: 600px;
	margin: 0 auto 40px;
	height: 120px;
	border: 1px solid rgba(243, 205, 118, .4);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	box-sizing: border-box;
}

.roulette__viewport {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
}

.roulette__viewport::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 100%;
	background: rgba(243, 205, 118, 0.8);
	box-shadow: 0 0 10px rgba(243, 205, 118, 0.6);
	z-index: 5;
	pointer-events: none;
	animation: centerGlow 2s ease-in-out infinite alternate;
	transition: all 0.3s ease;
}

@keyframes centerGlow {
	0% { box-shadow: 0 0 5px rgba(243, 205, 118, 0.6); }
	100% { box-shadow: 0 0 15px rgba(243, 205, 118, 0.9); }
}

.roulette__tape {
	display: flex;
	height: 100%;
	transition: transform 5s cubic-bezier(0.2, 0.8, 0.4, 1);
	width: fit-content;
	transform: translateX(0px);
	will-change: transform;
}

.roulette__item {
	min-width: 100px;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-right: 1px solid rgba(243, 205, 118, 0.2);
	background: linear-gradient(135deg, rgba(243, 205, 118, 0.1) 0%, rgba(243, 205, 118, 0.05) 100%);
	transition: background 0.3s ease;
	position: relative;
	box-sizing: border-box;
	will-change: transform;
}

.roulette__item:nth-child(odd) {
	background: linear-gradient(135deg, rgba(243, 205, 118, 0.15) 0%, rgba(243, 205, 118, 0.08) 100%);
}

.roulette__item--winner {
	background: linear-gradient(135deg, rgba(243, 205, 118, 0.6) 0%, rgba(243, 205, 118, 0.3) 100%) !important;
	box-shadow: inset 0 0 30px rgba(243, 205, 118, 0.5), 0 0 30px rgba(243, 205, 118, 0.4);
	animation: winnerGlow 0.8s ease-in-out infinite alternate;
	transform: scale(1.05);
	z-index: 2;
	transition: all 1s ease;
}

.roulette__item-image {
	width: 52px;
	height: 52px;
	object-fit: contain;
	margin-bottom: 8px;
}

.roulette__item-name {
	font-size: 12px;
	color: var(--color-text);
	text-align: center;
	font-family: var(--font-body);
	font-weight: 500;
	line-height: 1.2;
}

.roulette__pointer {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 30px solid #f3cd76;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
	z-index: 10;
	animation: pointerPulse 1.5s ease-in-out infinite;
	box-sizing: border-box;
}

@keyframes pointerPulse {
	0% { transform: translateX(-50%) translateY(0);
		filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
	50% { transform: translateX(-50%) translateY(-3px);
		filter: drop-shadow(0 4px 8px rgba(243, 205, 118, 0.6)); }
	100% { transform: translateX(-50%) translateY(0);
		filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
}

.roulette__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	height: 52px;
	padding: 0 28px;
	border-radius: 4px;
	text-decoration: none;
	font-family: 'TrajanSansPro', serif;
	font-size: 16px;
	font-weight: 600;
	color: #fff3cf;
	background: linear-gradient(180deg, #8f5a3a 0%, #7d3e34 100%);
	border-top: 1px solid rgba(231, 192, 120, .9);
	border-bottom: 2px solid rgba(231, 192, 120, .9);
    border-left: 0;
    border-right: 0;
	box-shadow: 0px 6px 12px rgb(0 0 0 / 38%);
	transition: all .5s ease-in;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.roulette__button:hover {
	filter: brightness(120%);
	transform: translateY(-2px);
}

.roulette__button:active {
	transform: translateY(1px);
}

.roulette__button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
	filter: none !important;
}

/* Gifts Section */
.gifts-section {
    max-width: 600px;
    margin: 40px auto 0;
    /* border: 1px solid rgba(243, 205, 118, .4); */
    border-radius: 16px;
    padding: 30px;
    /* backdrop-filter: blur(10px); */
    /* box-shadow: inset 0 10px 40px rgba(0, 0, 0, 0.4); */
    text-align: center;
    max-width: 430px;
    min-width: 430px;
}

.gifts-section__title {
	font-size: 24px;
	color: #ffffff;
	margin: 0 0 20px;
	font-weight: 700;
	font-family: var(--font-heading);
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.gifts-section__items {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	align-items: center;
	min-height: 80px;
	margin-bottom: 20px;
}

.map-container {
	width: 100%;
	overflow: hidden;
}

.gifts-section__empty {
	color: var(--color-muted);
	font-size: 16px;
	font-family: var(--font-body);
	opacity: 0.8;
	font-style: italic;
}

.gift-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 12px;
	background: linear-gradient(135deg, rgba(243, 205, 118, 0.2) 0%, rgba(243, 205, 118, 0.1) 100%);
	border: 1px solid rgba(243, 205, 118, 0.4);
	border-radius: 12px;
	min-width: 80px;
	transition: all 0.3s ease;
	animation: giftAppear 0.6s ease-out;
}

.gift-item:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 20px rgba(243, 205, 118, 0.3);
}

@keyframes giftAppear {
	0% {
		opacity: 0;
		transform: scale(0.5) translateY(20px);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.gift-item__image {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.gift-item__name {
	font-size: 12px;
	color: var(--color-text);
	text-align: center;
	font-family: var(--font-body);
	font-weight: 500;
	line-height: 1.2;
}

.gifts-section__reset {
	font-family: 'TrajanSansPro', serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    margin: 0 auto;
    color: #fff3cf;
    text-shadow: 0px 0px 7px black;
    backdrop-filter: blur(9px);
    padding-bottom: 6px;
    padding-right: 30px;
    background: linear-gradient(rgb(52 52 52) 36%, rgb(44 44 44) 89%), rgb(58 58 58);
    padding-left: 30px;
    box-shadow: 0px 7px 12px rgb(0 0 0 / 16%);
    border-style: none;
    border-top: 1px solid rgb(68 68 68);
    border-bottom: 2px solid rgb(48 48 48);
    border-radius: 4px;
    transition: all .5s ease-in;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
}

.gifts-section__reset:hover {
	filter: brightness(140%);
	transform: translateY(-2px);
}

/* Registration Form */
.registration-form {
    min-width: 560px;
    margin: 0 auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.8s ease;
    z-index: 2;
}

.registration-form.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.registration-form__title {
	font-size: 32px;
	color: #ffffff;
	margin: 0 0 40px;
	font-weight: 700;
	font-family: var(--font-heading);
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.registration-form__form {
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, rgba(0, 0, 0, 0.02) 2px 4px), radial-gradient(1200px 600px at 50% 0%, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0) 60%), linear-gradient(180deg, #160404 0%, #0e0201 100%);
	border: 1px solid rgba(243, 205, 118, .4);
	border-radius: 16px;
	padding: 40px;
	backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.registration-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 32px;
}

.form-group {
	text-align: left;
}

.form-group__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: #ffffff;
	font-weight: 600;
	font-family: var(--font-body);
}

.form-group__input {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid rgba(243, 205, 118, 0.3);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.3);
	color: var(--color-text);
	font-size: 16px;
	font-family: var(--font-body);
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
}

.form-group__input:focus {
	outline: none;
	border-color: rgba(243, 205, 118, 0.8);
	box-shadow: 0 0 0 3px rgba(243, 205, 118, 0.2), 0 0 20px rgba(243, 205, 118, 0.3);
	background: rgba(0, 0, 0, 0.4);
}

.form-group__input::placeholder {
	color: rgba(242, 232, 231, 0.5);
}

.form-checkboxes {
	margin-bottom: 32px;
	text-align: left;
}

.form-checkbox {
	margin-bottom: 16px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.form-checkbox__input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #f3cd76;
	flexibility: none;
}

.form-checkbox__label {
	font-size: 14px;
	color: var(--color-text);
	line-height: 1.4;
	font-family: var(--font-body);
	cursor: pointer;
}

.form-checkbox__link {
	color: var(--color-title);
	text-decoration: underline;
	transition: color 0.3s ease;
}

.form-checkbox__link:hover {
	color: rgba(243, 205, 118, 0.8);
}

.form-captcha {
	margin-bottom: 32px;
}

.form-captcha__placeholder {
	padding: 20px;
	border: 2px dashed rgba(243, 205, 118, 0.4);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	transition: all 0.3s ease;
}

.form-captcha__placeholder:hover {
	border-color: rgba(243, 205, 118, 0.6);
	background: rgba(0, 0, 0, 0.3);
}

.form-captcha__icon {
	font-size: 24px;
}

.form-captcha__text {
	color: var(--color-muted);
	font-size: 14px;
	font-family: var(--font-body);
}

.registration-form__submit {
	width: 100%;
    margin: 0 auto;
    font-family: 'TrajanSansPro', serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: #fff3cf;
    text-shadow: 0px 0px 7px black;
    backdrop-filter: blur(9px);
    background: linear-gradient(rgb(126, 102, 40) 36%, rgb(123, 103, 50) 89%), rgb(126, 102, 40);
    box-shadow: 0px 7px 12px rgb(0 0 0 / 38%);
    border-style: none;
    border-top: 1px solid rgb(171, 143, 68);
    border-bottom: 2px solid rgb(171, 143, 68);
    border-radius: 4px;
    transition: all .5s ease-in;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 25px;
}

.registration-form__submit:hover {
	filter: brightness(140%);
	transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
	.registration {
		padding: 80px 0;
	}
	
	.registration__title {
		font-size: 36px;
		margin-bottom: 40px;
	}
	
	/* Single column layout on mobile */
	.registration__layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.registration__right {
		order: -1; /* Show roulette first on mobile */
	}
	
	.roulette {
		height: 100px;
		margin: 0 20px 30px;
	}
	
	.roulette__item {
		min-width: 80px;
	}
	
	.roulette__item-image {
		width: 32px;
		height: 32px;
		margin-bottom: 6px;
	}
	
	.roulette__item-name {
		font-size: 11px;
	}
	
	.roulette__button {
		font-size: 14px;
		min-width: 180px;
		height: 44px;
		padding: 0 20px;
	}
	
	.registration-form__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.registration-form__form {
		padding: 30px 20px;
	}
	
	.registration-form__title {
		font-size: 24px;
		margin-bottom: 30px;
	}
	
	/* Gifts section responsive */
	.gifts-section {
		padding: 20px;
		margin: 30px auto 0;
	}
	
	.gifts-section__title {
		font-size: 20px;
		margin-bottom: 16px;
	}
	
	.gifts-section__items {
		gap: 12px;
		min-height: 60px;
		margin-bottom: 16px;
	}
	
	.gift-item {
		padding: 10px;
		min-width: 70px;
	}
	
	.gift-item__image {
		width: 32px;
		height: 32px;
	}
	
	.gift-item__name {
		font-size: 11px;
	}
	
	.gifts-section__reset {
		font-size: 14px;
		padding-right: 24px;
		padding-left: 24px;
		padding-bottom: 6px;
	}
}

/* =============================
   Download Files Section
   ============================= */
.download-files {
    padding: 0px 0 120px 0;
    position: relative;
    background: var(--color-bg);
}

.download-files .container {
    max-width: 1400px;
}

.download-b {
    width: 22px;
    height: 22px;
    margin-left: 8px;
    z-index: 2;
    background-color: #fff3cf;
    mask: url('../img/download.svg') center center / contain no-repeat;
    -webkit-mask: url('../img/download.svg') center center / contain no-repeat;
    filter: drop-shadow(rgba(0, 0, 0, 0.32) 0px 2px 3px);
    display: inline-block;
}

.download-files__wrapper {
    margin: 24px;
    background: linear-gradient(rgba(17, 3, 2, 0.22), rgba(17, 3, 2, 0.48)), url('../img/downbg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 30px 56px;
    min-height: 696px;
    border: 1px solid rgba(243, 205, 118, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.download-files__wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg-dark-full.png');
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    -webkit-filter: blur(40px);
    z-index: -1;
}

.download-files__title {
    text-align: left;
    font-size: 2.5rem;
    color: var(--color-title);
    margin-top: 30px;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    font-family: var(--font-heading);
    font-weight: 800;
}

.download-files__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-files__subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    font-family: var(--font-heading);
    margin: 0;
    white-space: nowrap;
    font-weight: 700;
}

.download-files__tabs {
    display: flex;
    gap: 20px;
}

.download-files__tab {
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(243, 205, 118, 0.3);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(30px);
}

.download-files__tab:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(243, 205, 118, 0.5);
}

.download-files__tab--active {
    background: linear-gradient(135deg, rgba(142, 90, 58, 1) 0%, rgba(125, 62, 52, 1) 100%);
    border: 1px solid rgba(231, 192, 120, 0.9);
}

.download-files__tab--active:hover {
    background: linear-gradient(135deg, rgba(142, 90, 58, 1) 0%, rgba(125, 62, 52, 1) 100%);
}

.download-files__content {
    display: none;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(243, 205, 118, 0.2);
    border-radius: 12px;
    margin-bottom: 40px;
    backdrop-filter: blur(30px);
}

.download-files__content--active {
    display: block;
}

.download-files__description {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
    font-family: var(--font-body);
}

.download-files__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-files__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 50px;
    padding: 0 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'TrajanSansPro', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff3cf;
    background: linear-gradient(180deg, #8f5a3a 0%, #7d3e34 100%);
    border-top: 1px solid rgba(231, 192, 120, .9);
    border-bottom: 2px solid rgba(231, 192, 120, .9);
    box-shadow: 0px 6px 12px rgb(0 0 0 / 38%);
    transition: all .3s ease;
}

.download-files__link:hover {
    filter: brightness(120%);
    transform: translateY(-2px);
}

.download-files__launcher-link {
    align-items: center;
    justify-content: center;
    min-width: 250px;
    height: 50px;
    padding: 0 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'TrajanSansPro', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff3cf;
    background: linear-gradient(180deg, #8f5a3a 0%, #7d3e34 100%);
    border-top: 1px solid rgba(231, 192, 120, .9);
    border-bottom: 2px solid rgba(231, 192, 120, .9);
    box-shadow: 0px 6px 12px rgb(0 0 0 / 38%);
    transition: all .3s ease;
    margin: 0 auto;
    display: flex;
    width: fit-content;
}

.download-files__launcher-link:hover {
    filter: brightness(120%);
    transform: translateY(-2px);
}

.download-files__help {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(243, 205, 118, 0.2);
}

.download-files__help-title {
    color: var(--color-title);
    font-size: 1.5rem;
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-weight: 800;
}

.download-files__help-subtitle {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.download-files__help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 45px;
    padding: 0 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'TrajanSansPro', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff3cf;
    background: linear-gradient(180deg, #8f5a3a 0%, #7d3e34 100%);
    border-top: 1px solid rgba(231, 192, 120, .9);
    border-bottom: 2px solid rgba(231, 192, 120, .9);
    box-shadow: 0px 6px 12px rgb(0 0 0 / 38%);
    transition: all .3s ease;
}

.download-files__help-button:hover {
    filter: brightness(120%);
    transform: translateY(-2px);
}

/* Responsive styles for download files section */
@media (max-width: 768px) {
    .download-files {
        padding: 80px 0;
    }
    
    .download-files__wrapper {
        padding: 20px;
        margin: 15px;
    }
    
    .download-files__title {
        font-size: 2rem;
        text-align: center;
    }
    
    .download-files__header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .download-files__subtitle {
        font-size: 1.3rem;
    }
    
    .download-files__tabs {
        width: 100%;
        justify-content: center;
    }
    
    .download-files__tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .download-files__description {
        font-size: 1rem;
    }
    
    .download-files__links {
        flex-direction: column;
        align-items: center;
    }
    
    .download-files__link,
    .download-files__launcher-link {
        width: 100%;
        max-width: 250px;
    }
    
    .download-files__help-title {
        font-size: 1.3rem;
    }
    
    .download-files__help-subtitle {
        font-size: 1rem;
    }
}



/* Staggered animation delays for download file items */
.download-files__grid:nth-child(1) .download-file:nth-child(1) { animation-delay: 0.1s; }
.download-files__grid:nth-child(1) .download-file:nth-child(2) { animation-delay: 0.2s; }
.download-files__grid:nth-child(1) .download-file:nth-child(3) { animation-delay: 0.3s; }

/* Responsive styles for download files section */
@media (max-width: 768px) {
	.download-files {
		padding: 80px 0;
	}
	
	.download-files__title {
		font-size: 36px;
		margin-bottom: 40px;
	}
	
	.download-files__wrapper {
		padding: 30px 20px;
	}
	
	.download-files__description {
		font-size: 16px;
		margin-bottom: 30px;
	}
	
	.download-files__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.download-file {
		flex-direction: column;
		text-align: center;
	}
	
	.download-file__icon {
		margin-bottom: 15px;
	}
}

/* =============================
   News section
   ============================= */
.news { 
	padding: 120px 0 120px; 
	/* background: var(--color-bg); */
	position: relative;
}
.news::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="smoke"><feTurbulence baseFrequency="0.02" numOctaves="3" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23smoke)"/></svg>') repeat;
	opacity: 0.3;
	pointer-events: none;
}
.news__inner { position: relative; z-index: 3; }
.news__title { 
	font-size: 56px; 
	margin: 0 0 48px; 
	font-weight: 800; 
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--font-heading);
}

/* .news__title::before {
	content: "";
	width: 32px;
	height: 24px;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 24" fill="%23f3cd76"><path d="M2 2h28v20H2z" fill="none" stroke="currentColor" stroke-width="2"/><path d="M8 8h16v8H8z"/><path d="M12 12h8v4h-8z"/></svg>') center/contain no-repeat;
} */

.news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-bottom: 48px;
}
.news-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(243, 205, 118, 0.2);
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: block;
	text-decoration: none;
	color: inherit;
}
.news-card:hover {
	transform: translateY(-4px);
	border-color: rgba(243, 205, 118, 0.4);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.news-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
}
.news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.news-card:hover .news-card__media img {
	transform: scale(1.19);
}
.news-card__content {
	padding: 24px;
}
.news-card__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.3;
	color: #f3cd76;
	font-family: var(--font-heading);
}
.news-card__date {
	font-size: 14px;
	color: var(--color-muted);
	margin: 0 0 16px;
	display: block;
	font-family: var(--font-body);
}
.news-card__link {
	display: inline-block;
	font-family: 'TrajanSansPro', serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	color: #fff3cf;
	text-shadow: 0px 0px 4px black;
	backdrop-filter: blur(4px);
	padding: 6px 12px;
	background: linear-gradient(180deg, #8f5a3a 0%, #7d3e34 100%);
	margin-top: 8px;
	box-shadow: 0px 3px 6px rgb(0 0 0 / 25%);
	border-style: none;
	border-top: 1px solid rgb(140, 120, 50);
	border-bottom: 1px solid rgb(140, 120, 50);
	border-radius: 3px;
	transition: all .3s ease;
	text-decoration: none;
}
.news-card__link:hover {
	filter: brightness(120%);
	transform: translateY(-1px);
}


.news__footer {
	text-align: center;
}

.news__older-btn {
	margin: 0 auto;
	margin-top: 41px;
	width: 290px;
	height: 72px;
	font-family: 'TrajanSansPro', serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	color: #fff3cf;
	text-shadow: 0px 0px 7px black;
	backdrop-filter: blur(9px);
	padding-bottom: 8px;
	padding-right: 50px;
	background: linear-gradient(rgb(126, 102, 40) 36%, rgb(123, 103, 50) 89%), rgb(126, 102, 40);
	padding-left: 50px;
	box-shadow: 0px 7px 12px rgb(0 0 0 / 38%);
	border-style: none;
	border-top: 1px solid rgb(171, 143, 68);
	border-bottom: 2px solid rgb(171, 143, 68);
	border-radius: 4px;
	transition: all .5s ease-in;
	display: flex;
	justify-content: center;
	align-items: center;
}
.news__older-btn:hover {
	transform: translateY(-14px);
	filter: brightness(140%);
}

@media (max-width: 1024px) {
	.news__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	.news__title {
		font-size: 48px;
	}
}

@media (max-width: 768px) {
	.news__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.news__title {
		font-size: 40px;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.news-card__content {
		padding: 20px;
	}
	.news-card__title {
		font-size: 18px;
	}
}

/* =============================
   Media section
   ============================= */
.media { 
	padding: 120px 0 120px; 
	background: var(--color-bg) url('img/media_bg3.jpg') center/cover no-repeat;
	position: relative;
}
.media::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 250% 100% at center top, rgba(0, 0, 0, 0) 0%, #110302b8 80%);
    pointer-events: none;
    z-index: 1;
}
.media::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 320px;
	background: linear-gradient(to bottom, #110302 0%, transparent 100%);
	pointer-events: none;
	z-index: 2;
}
.media__inner { position: relative; z-index: 3; }

/* Featured Video */
.media__featured {
	text-align: center;
	margin-bottom: 80px;
}
.media__featured-title {
	font-size: 62px;
	font-weight: 800;
	margin: 0 0 56px;
	color: #f3cd76;
	font-family: var(--font-heading);
}
.media__video-player {
	max-width: 800px;
	margin: 0 auto;
}
.media__video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(243, 205, 118, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 30px 0px rgb(0 0 0 / 52%);
    filter: brightness(0.8);
}
.media__video-thumbnail:hover {
    border-color: rgba(243, 205, 118, 1);
    box-shadow: 0px 8px 50px 25px rgb(0 0 0 / 23%);
    filter: brightness(1);
}
.media__video-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.media__video-thumbnail:hover img {
	transform: scale(1.05);
}
.media__play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	background: rgba(243, 205, 118, 0.9);
	border: none;
	border-radius: 50%;
	color: var(--color-bg);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
}
.media__play-btn:hover {
	background: rgba(243, 205, 118, 1);
	transform: translate(-50%, -50%) scale(1.1);
}

/* Media Gallery */
.media__gallery {
	/* background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(243, 205, 118, 0.2);
	border-radius: 16px; */
	padding: 32px;
}
.media__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}
.media__title {
	font-size: 40px;
	font-weight: 800;
	color: #f3cd76;
	margin: 0;
	font-family: var(--font-heading);
}
.media__tabs {
	display: flex;
	gap: 8px;
}
.media__tab {
	background: linear-gradient(rgb(126, 102, 40) 36%, rgb(123, 103, 50) 89%), rgb(126, 102, 40);
	border: none;
	border-top: 1px solid rgb(171, 143, 68);
	border-bottom: 2px solid rgb(171, 143, 68);
	color: #fff3cf;
	padding: 12px 24px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
	font-family: 'TrajanSansPro', serif;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-shadow: 0px 0px 4px black;
	box-shadow: 0px 4px 8px rgb(0 0 0 / 30%);
}
.media__tab:hover {
	filter: brightness(120%);
	transform: translateY(-2px);
}
.media__tab--active {
	background: linear-gradient(rgb(150, 120, 50) 36%, rgb(145, 120, 60) 89%), rgb(150, 120, 50);
	filter: brightness(130%);
	box-shadow: 0px 6px 12px rgb(0 0 0 / 40%);
}

.media__content {
	position: relative;
}
.media__panel {
	display: none;
}
.media__panel--active {
	display: block;
}

/* Carousel navigation for screenshots */
.media__carousel {
	position: relative;
	display: flex;
	align-items: center;
}

.media__carousel-wrapper {
	flex: 1;
	overflow: hidden;
	position: relative;
}

.media__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 32px;
}
.media__carousel {
	position: relative;
	display: flex;
	align-items: center;
}

.media__carousel-wrapper {
	flex: 1;
	overflow: hidden;
	position: relative;
}

.media__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 32px;
}
.media__item {
    background: #110302;
	border: 1px solid rgba(243, 205, 118, 0.2);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
}
.media__item:hover {
	transform: translateY(-4px);
	border-color: rgba(243, 205, 118, 0.4);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
/* Enhanced hover for clickable video items */
.media__item[data-video] {
	cursor: pointer;
}
.media__item[data-video]:hover {
	transform: translateY(-6px);
	border-color: rgba(243, 205, 118, 0.6);
	box-shadow: 0 12px 40px rgb(0 0 0 / 43%);
}
/* Enhanced hover for clickable image items */
.media__item[data-image] {
	cursor: pointer;
}
.media__item[data-image]:hover {
	transform: translateY(-6px);
	border-color: rgba(243, 205, 118, 0.6);
	box-shadow: 0 12px 40px rgba(243, 205, 118, 0.15);
}
.media__item-thumbnail {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
}
.media__item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.media__item:hover .media__item-thumbnail img {
	transform: scale(1.05);
}
.media__play-btn--small {
	width: 48px;
	height: 48px;
	background: rgba(243, 205, 118, 0.8);
}
.media__play-btn--small:hover {
	background: rgba(243, 205, 118, 1);
	transform: translate(-50%, -50%) scale(1.1);
}
.media__item-info {
	padding: 16px;
	text-align: center;
}
.media__item-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #f3cd76;
	font-family: var(--font-heading);
}
.media__item-subtitle {
	font-size: 12px;
}

/* Carousel navigation buttons */
.media__carousel-nav {
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(243, 205, 118, 0.6);
	border-radius: 50%;
	color: #f3cd76;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 11;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	margin: 0 10px;
}

.media__carousel-nav:hover {
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 1);
	transform: scale(1.1);
}

.media__carousel-nav:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(243, 205, 118, 0.3);
}

.media__carousel-nav svg {
	width: 20px;
	height: 20px;
}

/* Screenshots grid for carousel */
.media__panel[data-panel="screenshots"] .media__grid {
	display: flex;
	gap: 24px;
	transition: transform 0.5s ease;
	will-change: transform;
}

.media__panel[data-panel="screenshots"] .media__item {
	min-width: calc((100% - 48px) / 3);
	flex: 1 0 calc((100% - 48px) / 3);
}

/* Adjust for single item movement */
@media (min-width: 1025px) {
	.media__panel[data-panel="screenshots"] .media__item {
		min-width: calc((100% - 48px) / 3);
		flex: 1 0 calc((100% - 48px) / 3);
	}
}

@media (max-width: 1024px) and (min-width: 769px) {
	.media__panel[data-panel="screenshots"] .media__item {
		min-width: calc((100% - 20px) / 2);
		flex: 1 0 calc((100% - 20px) / 2);
	}
}

@media (max-width: 768px) {
	.media__panel[data-panel="screenshots"] .media__item {
		min-width: 100%;
		flex: 1 0 100%;
	}
}

/* Remove transition for immediate movement */
.media__panel[data-panel="screenshots"] .media__grid.no-transition {
	transition: none;
}

.media__footer {
	text-align: center;
}

@media (max-width: 1024px) {
	.media__header {
		flex-direction: column;
		gap: 20px;
		align-items: flex-start;
	}
	.media__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	.media__featured-title {
		font-size: 40px;
	}
	.media__title {
		font-size: 32px;
	}
	
	/* Adjust carousel for smaller screens */
	.media__panel[data-panel="screenshots"] .media__item {
		min-width: calc((100% - 20px) / 2);
	}
}

@media (max-width: 768px) {
	.media__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.media__featured-title {
		font-size: 32px;
	}
	.media__title {
		font-size: 28px;
	}
	.media__gallery {
		padding: 24px;
	}
	.media__play-btn {
		width: 60px;
		height: 60px;
	}
	.media__play-btn--small {
		width: 40px;
		height: 40px;
	}
	
	/* Carousel navigation for mobile */
	.media__carousel-nav {
		width: 36px;
		height: 36px;
		margin: 0 5px;
	}
	
	.media__carousel-nav svg {
		width: 16px;
		height: 16px;
	}
	
	/* Adjust carousel for mobile */
	.media__panel[data-panel="screenshots"] .media__item {
		min-width: 100%;
	}
}

/* =============================
   Map Section
   ============================= */
.map-section {
	width: 100%;
	padding: 0;
	margin: 120px 0;
	position: relative;
	z-index: -1;
}

/* Map Tabs */
.map-tabs {
    position: absolute;
    top: 148px;
    left: 335px;
    z-index: 2;
    background: #110302;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(243, 205, 118, .4);
    box-shadow: 1px 1px 20px black;
    max-width: 472px;
}

/* Map Description */
.map-description {
    color: #f2e8e7;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0;
    text-align: center;
    opacity: 0.9;
}

.map-description strong {
    color: #f3cd76;
    font-weight: 600;
}

.location-counter {
	margin-top: 15px;
}

.location-counter__number {
	color: #f3cd76;
	font-size: 19px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 5px;
	font-family: var(--font-heading);
}

.location-counter__bar {
	height: 20px;
	background: rgba(17, 3, 2, 0.8);
	border: 1px solid rgba(243, 205, 118, 0.6);
	border-radius: 3px;
	overflow: hidden;
}

.location-counter__fill {
	height: 100%;
	background: linear-gradient(90deg, rgba(243, 205, 118, 0.8), rgba(243, 205, 118, 1));
	width: 0%;
	transition: width 0.3s ease;
}

.map-tab-input {
	display: none;
}

.map-tabs-container {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	justify-content: center;
}

.map-tab {
	border: 1px solid rgba(243, 205, 118, 0.6);
    cursor: pointer;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 40px;
    padding: 0 28px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'TrajanSansPro', serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff3cf;
    background: linear-gradient(180deg, #8f5a3a 0%, #7d3e34 100%);
    border-top: 1px solid rgba(231, 192, 120, .9);
    border-bottom: 2px solid rgba(231, 192, 120, .9);
    box-shadow: 0px 6px 12px rgb(0 0 0 / 38%);
    transition: all .5s 
ease-in;
    opacity: 0.6; /* Прозрачность для неактивных табов */
}

.map-tab:hover {
    filter: brightness(120%);
    transform: translateY(-2px);
    opacity: 0.8; /* Немного более высокая непрозрачность при наведении */
}

/* Стили для активного таба */
.map-tab--active {
    opacity: 1; /* Полная непрозрачность для активного таба */
    background: linear-gradient(180deg, #a87a5a 0%, #9b5e4e 100%);
    border-color: rgba(243, 205, 118, 0.9);
    filter: brightness(110%);
}

.map-container {
	width: 100%;
	overflow: hidden;
}

.full-width-map {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	aspect-ratio: 1920/1012;
}

.castle-map-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('img/castlemap.jpg');
	background-size: cover;
	background-position: center;
}

.castle-map-overlay {
	position: absolute;
	left: 0;
	width: 100%;
	height: 200px;
	z-index: 2;
	background: linear-gradient(to bottom, rgba(17, 3, 2, 1) 0%, rgba(17, 3, 2, 0) 100%);
}

.castle-map-overlay--top {
	top: 0;
}

.castle-map-overlay--bottom {
	bottom: 0;
	background: linear-gradient(to top, rgba(17, 3, 2, 1) 0%, rgba(17, 3, 2, 0) 100%);
}

.media__footer {
	text-align: center;
}

/* Screenshots grid for carousel */
.media__panel[data-panel="screenshots"] .media__grid {
	display: flex;
	gap: 24px;
	transition: transform 0.5s ease;
	will-change: transform;
}

.media__panel[data-panel="screenshots"] .media__item {
	min-width: calc((100% - 48px) / 3);
	flex: 1 0 calc((100% - 48px) / 3);
}

.media__view-all-btn {
	margin: 0 auto;
	margin-top: 41px;
	width: 290px;
	height: 72px;
	font-family: 'TrajanSansPro', serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	color: #fff3cf;
	text-shadow: 0px 0px 7px black;
	backdrop-filter: blur(9px);
	padding-bottom: 8px;
	padding-right: 50px;
	background: linear-gradient(rgb(126, 102, 40) 36%, rgb(123, 103, 50) 89%), rgb(126, 102, 40);
	padding-left: 50px;
	box-shadow: 0px 7px 12px rgb(0 0 0 / 38%);
	border-style: none;
	border-top: 1px solid rgb(171, 143, 68);
	border-bottom: 2px solid rgb(171, 143, 68);
	border-radius: 4px;
	transition: all .5s ease-in;
	display: flex;
	justify-content: center;
	align-items: center;
}

.media__view-all-btn:hover {
	transform: translateY(-14px);
	filter: brightness(140%);
}

@media (max-width: 1024px) {
	.media__header {
		flex-direction: column;
		gap: 20px;
		align-items: flex-start;
	}
	.media__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	.media__featured-title {
		font-size: 40px;
	}
	.media__title {
		font-size: 32px;
	}
	
	/* Adjust carousel for smaller screens */
	.media__panel[data-panel="screenshots"] .media__item {
		min-width: calc((100% - 20px) / 2);
		flex: 1 0 calc((100% - 20px) / 2);
	}
}

@media (max-width: 768px) {
	.media__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.media__featured-title {
		font-size: 32px;
	}
	.media__title {
		font-size: 28px;
	}
	.media__gallery {
		padding: 24px;
	}
	.media__play-btn {
		width: 60px;
		height: 60px;
	}
	.media__play-btn--small {
		width: 40px;
		height: 40px;
	}
	
	/* Carousel navigation for mobile */
	.media__carousel-nav {
		width: 36px;
		height: 36px;
		margin: 0 5px;
	}
	
	.media__carousel-nav svg {
		width: 16px;
		height: 16px;
	}
	
	/* Adjust carousel for mobile */
	.media__panel[data-panel="screenshots"] .media__item {
		min-width: 100%;
		flex: 1 0 100%;
	}
}


/* =============================
   Video Modal
   ============================= */
.video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.video-modal.show {
	display: flex;
}

.video-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.video-modal.show .video-modal__overlay {
	opacity: 1;
}

.video-modal__content {
	position: relative;
	width: 90%;
	max-width: 1200px;
	max-height: 90%;
	z-index: 10;
	transform: scale(0.7) translateY(50px);
	transition: transform 0.3s ease;
}

.video-modal.show .video-modal__content {
	transform: scale(1) translateY(0);
}

.video-modal__close {
	position: absolute;
	top: -50px;
	right: 0;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(243, 205, 118, 0.6);
	border-radius: 50%;
	color: #f3cd76;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 11;
}

.video-modal__close:hover {
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 1);
	transform: scale(1.1);
}

.video-modal__wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	border: 2px solid rgba(243, 205, 118, 0.3);
}

.video-modal__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}

@media (max-width: 768px) {
	.video-modal__content {
		width: 95%;
		max-height: 95%;
	}
	
	.video-modal__close {
		top: -40px;
		width: 36px;
		height: 36px;
	}
	
	.video-modal__close svg {
		width: 20px;
		height: 20px;
	}
}

/* =============================
   Image Modal
   ============================= */
.image-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.image-modal.show {
	display: flex;
}

.image-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.image-modal.show .image-modal__overlay {
	opacity: 1;
}

.image-modal__content {
	position: relative;
	width: 90%;
	max-width: 1400px;
	max-height: 90%;
	z-index: 10;
	transform: scale(0.7) translateY(50px);
	transition: transform 0.3s ease;
}

.image-modal.show .image-modal__content {
	transform: scale(1) translateY(0);
}

.image-modal__close {
	position: absolute;
	top: -50px;
	right: 0;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(243, 205, 118, 0.6);
	border-radius: 50%;
	color: #f3cd76;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 11;
}

.image-modal__close:hover {
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 1);
	transform: scale(1.1);
}

.image-modal__wrapper {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	border: 2px solid rgba(243, 205, 118, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

.image-modal__image {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	background: transparent;
}

/* Navigation arrows for image modal */
.image-modal__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(243, 205, 118, 0.6);
	border-radius: 50%;
	color: #f3cd76;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 12;
}

.image-modal__nav:hover {
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 1);
	transform: scale(1.1) translateY(-50%);
}

.image-modal__nav--prev {
	left: 20px;
}

.image-modal__nav--next {
	right: 20px;
}

.image-modal__nav svg {
	width: 24px;
	height: 24px;
}

@media (max-width: 768px) {
	.image-modal__content {
		width: 95%;
		max-height: 95%;
	}
	
	.image-modal__close {
		top: -40px;
		width: 36px;
		height: 36px;
	}
	
	.image-modal__close svg {
		width: 20px;
		height: 20px;
	}
	
	.image-modal__nav {
		width: 40px;
		height: 40px;
	}
	
	.image-modal__nav--prev {
		left: 10px;
	}
	
	.image-modal__nav--next {
		right: 10px;
	}
	
	.image-modal__nav svg {
		width: 20px;
		height: 20px;
	}
}

/* =============================
   Footer
   ============================= */
.footer {
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
	border-top: 1px solid rgba(243, 205, 118, 0.3);
	position: relative;
}
.footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="footer-noise"><feTurbulence baseFrequency="0.01" numOctaves="2" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23footer-noise)"/></svg>') repeat;
	opacity: 0.3;
	pointer-events: none;
}
.footer__inner { position: relative; z-index: 1; }
.footer__content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 64px;
	padding: 64px 0 48px;
}
.footer__brand {
	max-width: 400px;
}
.footer__logo {
	margin-bottom: 16px;
}
.footer__logo .logo {
	font-size: 32px;
	font-weight: 800;
	color: #f3cd76;
	font-family: var(--font-heading);
}
.footer__description {
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-muted);
	margin: 0 0 24px;
	font-family: var(--font-body);
}
.footer__social {
	display: flex;
	gap: 16px;
}
.footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(243, 205, 118, 0.1);
	border: 1px solid rgba(243, 205, 118, 0.3);
	border-radius: 8px;
	color: #f3cd76;
	transition: all 0.3s ease;
}
.footer__social-link:hover {
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 0.6);
	transform: translateY(-2px);
}

.footer__nav {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.footer__nav-section {
	display: flex;
	flex-direction: column;
}
.footer__nav-title {
	font-size: 18px;
	font-weight: 700;
	color: #f3cd76;
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-family: var(--font-heading);
}
.footer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.footer__nav-link {
	color: var(--color-text);
	text-decoration: none;
	font-size: 14px;
	opacity: 0.8;
	transition: all 0.3s ease;
}
.footer__nav-link:hover {
	opacity: 1;
	color: #f3cd76;
	transform: translateX(4px);
}

.footer__bottom {
	border-top: 1px solid rgba(243, 205, 118, 0.2);
	padding: 24px 0;
}
.footer__bottom-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.footer__copyright {
	font-size: 14px;
	color: var(--color-muted);
	margin: 0;
	font-family: var(--font-body);
}
.footer__platforms {
	display: flex;
	gap: 16px;
}
.footer__platform {
	font-size: 12px;
	color: var(--color-muted);
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
	.footer__content {
		grid-template-columns: 1fr;
		gap: 48px;
		text-align: center;
	}
	.footer__brand {
		align-items: center;
		margin: 0 auto;
	}
	.footer__logo {
		text-align: center;
	}
	.footer__nav {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	.footer__bottom-content {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}
}

@media (max-width: 768px) {
	.footer__content {
		padding: 48px 0 32px;
		text-align: center;
	}
	.footer__brand {
		align-items: center;
        margin: 0 auto;
	}
	.footer__logo {
		text-align: center;
	}
	.footer__logo img {
		margin: 0 auto;
	}
	.footer__nav {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.footer__social {
		justify-content: center;
	}
	.footer__platforms {
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px;
	}
}

/* =============================
   Social Navigation Menu
   ============================= */
.social-nav {
	position: fixed;
	right: 32px;
	top: 50%;
	transform: translateY(-50%) translateX(20px);
	z-index: 1000;
	padding: 16px 8px;
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
}

.social-nav--visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

/* Hide navigation when hidden by tooltip */
.social-nav.nav-hidden-by-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
}

.social-nav__container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.social-nav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--color-text);
	font-size: 14px;
	font-weight: 500;
	font-family: var(--font-body);
	transition: all 0.3s ease;
	position: relative;
	white-space: nowrap;
	opacity: 0.7;
	min-width: 140px;
}

.social-nav__item:hover {
	background: rgba(243, 205, 118, 0.1);
	color: #f3cd76;
	opacity: 1;
	transform: translateX(-2px);
}

.social-nav__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.social-nav__label {
	font-size: 13px;
	letter-spacing: 0.02em;
}

/* Hide social navigation on small screens */
@media (max-width: 1024px) {
	.social-nav {
		display: none;
	}
}

/* Style for custom SVG icons */
.social-nav__svg {
	color: #f2e8e7;
	fill: currentColor;
}

.social-nav__svg path {
	fill: inherit;
}

/* Compact mode for medium screens */
@media (max-width: 1200px) {
	.social-nav {
		right: 16px;
		padding: 12px 6px;
	}
	
	.social-nav__item {
		padding: 6px 10px;
		min-width: 120px;
		font-size: 12px;
	}
	
	.social-nav__label {
		font-size: 11px;
	}
}

/* Adjust section-nav position when social-nav is visible */
.section-nav {
	left: 32px;
}


/* =============================
   Section Navigation
   ============================= */
.section-nav {
	position: fixed;
    left: 32px;
    top: 50%;
    transform: translateY(-50%) translateX(-20px);
    z-index: 1001;
    /* background: rgba(14, 13, 13, 0.95); */
    /* border: 1px solid rgba(243, 205, 118, 0.3); */
    border-radius: 12px;
    /* backdrop-filter: blur(10px); */
    padding: 16px 8px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); */
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.section-nav--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Hide navigation when hidden by tooltip */
.section-nav.nav-hidden-by-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* .section-nav:hover {
	border-color: rgba(243, 205, 118, 0.6);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
} */

.section-nav__container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.section-nav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--color-text);
	font-size: 14px;
	font-weight: 500;
	font-family: var(--font-body);
	transition: all 0.3s ease;
	position: relative;
	white-space: nowrap;
	opacity: 0.7;
	min-width: 140px;
}

.section-nav__item:hover {
	background: rgba(243, 205, 118, 0.1);
	color: #f3cd76;
	opacity: 1;
	transform: translateX(2px);
}

.section-nav__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.section-nav__label {
	font-size: 13px;
	letter-spacing: 0.02em;
}

/* Hide section navigation on small screens */
@media (max-width: 1024px) {
	.section-nav {
		display: none;
	}
}

/* Compact mode for medium screens */
@media (max-width: 1200px) {
	.section-nav {
		left: 16px;
		padding: 12px 6px;
	}
	
	.section-nav__item {
		padding: 6px 10px;
		min-width: 120px;
		font-size: 12px;
	}
	
	.section-nav__label {
		font-size: 11px;
	}
}

/* =============================
   Search Input
   ============================= */
.search-input {
	position: fixed;
	right: 32px;
	bottom: 50px;
	z-index: 1000;
	background: rgba(14, 13, 13, 0.95);
	border: 1px solid rgba(243, 205, 118, 0.3);
	border-radius: 8px;
	backdrop-filter: blur(10px);
	padding: 8px 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
}

.search-input--visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.search-input__container {
	display: flex;
	align-items: center;
	gap: 12px;
}

.search-input__input {
	flex-grow: 1;
	min-width: 120px;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(243, 205, 118, 0.1);
	border: 1px solid rgba(243, 205, 118, 0.3);
	color: var(--color-text);
	font-size: 14px;
	font-weight: 500;
	font-family: var(--font-body);
	transition: all 0.3s ease;
}

.search-input__input:focus {
	outline: none;
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 0.6);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.search-input__button {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(243, 205, 118, 0.1);
	border: 1px solid rgba(243, 205, 118, 0.3);
	color: var(--color-text);
	font-size: 14px;
	font-weight: 500;
	font-family: var(--font-body);
	transition: all 0.3s ease;
	cursor: pointer;
}

.search-input__button:hover {
	background: rgba(243, 205, 118, 0.2);
	border-color: rgba(243, 205, 118, 0.6);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.search-input__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Hide search input on small screens */
@media (max-width: 1024px) {
	.search-input {
		display: none;
	}
}

/* Compact mode for medium screens */
@media (max-width: 1200px) {
	.search-input {
		right: 16px;
		padding: 8px 10px;
	}
	
	.search-input__input {
		min-width: 100px;
		font-size: 12px;
	}
	
	.search-input__button {
		font-size: 12px;
	}
}

/* =============================
   Back To Top Button
   ============================= */
.back-to-top {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 1000;
	background: rgba(14, 13, 13, 0.95);
	border: 1px solid rgba(243, 205, 118, 0.3);
	border-radius: 8px;
	backdrop-filter: blur(10px);
	padding: 8px 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
}

.back-to-top--visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top__container {
	display: flex;
	align-items: center;
	gap: 12px;
}

.back-to-top__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.back-to-top__label {
	font-size: 13px;
	letter-spacing: 0.02em;
}

/* Hide back to top button on small screens */
@media (max-width: 1024px) {
	.back-to-top {
		display: none;
	}
}

/* Compact mode for medium screens */
@media (max-width: 1200px) {
	.back-to-top {
		right: 16px;
		padding: 8px 10px;
	}
	
	.back-to-top__icon {
		width: 16px;
		height: 16px;
	}
	
	.back-to-top__label {
		font-size: 11px;
	}
}

.social-nav__item:hover {
	background: rgba(243, 205, 118, 0.1);
	color: #f3cd76;
	opacity: 1;
	transform: translateX(-2px);
}

.section-nav__item--active {
	/* background: rgba(243, 205, 118, 0.2); */
	color: #f3cd76;
	opacity: 1;
	/* border: 1px solid rgba(243, 205, 118, 0.4); */
}

.section-nav__item--active .section-nav__dot {
	background: #f3cd76;
	box-shadow: 0 0 8px rgba(243, 205, 118, 0.6);
}

.section-nav__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(243, 205, 118, 0.4);
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.section-nav__item:hover .section-nav__dot {
	background: #f3cd76;
	box-shadow: 0 0 6px rgba(243, 205, 118, 0.4);
}

.section-nav__label {
	font-size: 13px;
	letter-spacing: 0.02em;
}

/* Hide navigation on small screens */
@media (max-width: 1024px) {
	.section-nav {
		display: none;
	}
}

/* Compact mode for medium screens */
@media (max-width: 1200px) {
	.section-nav {
		left: 16px;
		padding: 12px 6px;
	}
	
	.section-nav__item {
		padding: 6px 10px;
		min-width: 120px;
		font-size: 12px;
	}
	
	.section-nav__label {
		font-size: 11px;
	}
}

/* Tooltip image and text styles */
.map-marker .tooltip-image {
	width: 100%;
	height: auto;
	border-radius: 4px;
	margin-bottom: 8px;
	object-fit: cover;
	max-height: 150px;
}

.map-marker .tooltip-title {
	color: #f3cd76;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 4px;
	text-align: center;
	font-family: var(--font-heading);
}

.map-marker .tooltip-text {
	color: #ffffff;
    font-size: 14px;
    font-weight: 100;
	line-height: 1.4;
	margin-top: 4px;
}

/* Map Marker Groups */
.map-marker-group {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Interactive Map Markers - Image-based */
.map-marker {
	position: absolute;
	cursor: pointer;
	transform: translate(-50%, -100%);
	z-index: 10;
	transition: all 0.3s ease;
	animation: float 6s ease-in-out infinite;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.map-marker:nth-child(1) { animation-delay: 0s; }
.map-marker:nth-child(2) { animation-delay: 0.5s; }
.map-marker:nth-child(3) { animation-delay: 1s; }
.map-marker:nth-child(4) { animation-delay: 1.5s; }
.map-marker:nth-child(5) { animation-delay: 2s; }

@keyframes float {
	0% { transform: translate(-50%, -100%) translateY(0px); }
	50% { transform: translate(-50%, -100%) translateY(-10px); }
	100% { transform: translate(-50%, -100%) translateY(0px); }
}

.map-marker:hover {
	transform: translate(-50%, -100%) scale(1.2);
	z-index: 11;
	animation: none;
	transition: all 0.3s ease;
}

.marker-icon {
	width: 30px;
	height: auto;
	display: block;
	filter: drop-shadow(0 0 5px rgba(243, 205, 118, 0.8));
}

.map-marker:hover .marker-icon {
	filter: drop-shadow(0 0 10px rgba(243, 205, 118, 1)) brightness(1.2);
	transition: all 0.3s ease;
}

/* Location names - visible above markers, hidden on hover */
.map-marker .location-name {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-10px);
	background: rgba(17, 3, 2, 0.95);
	color: #f3cd76;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	z-index: 12;
	border: 1px solid rgba(243, 205, 118, 0.6);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

/* .map-marker .location-name::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 4px;
	border-style: solid;
	border-color: rgba(17, 3, 2, 0.95) transparent transparent transparent;
} */

.map-marker:hover .location-name {
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(10px);
}

.map-marker .marker-icon:hover ~ .location-name {
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(10px);
}

/* Tooltip - appears on hover in place of location name */
.map-marker .tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	background: rgba(17, 3, 2, 100);
	color: #f3cd76;
	padding: 12px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 13;
	border: 1px solid rgba(243, 205, 118, 0.6);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	margin-bottom: 0 !important; /* Space for marker */
	min-width: 500px;
	text-align: center;
	white-space: normal;
	top: auto;
	margin-top: 0 !important;
	/* Add these properties to support dynamic positioning */
	right: auto;
}

/*.map-marker .tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 6px;
	border-style: solid;
	border-color: rgba(17, 3, 2, 0.95) transparent transparent transparent;
}*/

/* Show tooltip only when hovering over the marker icon */
.map-marker .marker-icon:hover ~ .tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* =============================
   Mobile Adaptations
   ============================= */

/* Header responsive styles */
/* 1024px adaptations (768px styles applied to 1024px) */
@media (max-width: 1024px) {
	.header__inner {
		height: auto;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		gap: var(--space-3);
		padding: 10px 0;
	}
	
	.mobile-menu-btn {
		display: block;
		grid-row: 1;
		grid-column: 1;
	}
	
	.header__logo {
		grid-row: 1;
		grid-column: 2;
		font-size: 20px;
		justify-self: center;
	}
	
	.header__actions {
		grid-row: 2;
		grid-column: 1 / span 2;
		justify-self: center;
		margin-bottom: 10px;
	}
	
	.menu {
		display: none;
		gap: var(--space-4);
	}
	
	.btn--hero {
		font-size: 16px;
		padding: 6px 12px;
	}
	
	.hero__title {
		font-size: 48px;
	}
	
	.hero__subtitle {
		font-size: 16px;
	}
	
	.btn--create-account {
		width: 240px;
		height: 60px;
		font-size: 18px;
	}
	
	/* Map section responsive styles */
	.map-tabs {
		padding: 10px;
		margin-bottom: 20px;
	}
	
	.map-tab {
		min-width: 80px;
		padding: 0 12px;
		font-size: 10px;
		height: 28px;
	}
	
	.map-description {
		font-size: 12px;
	}
	
	.location-counter__number {
		font-size: 15px;
	}
	
	.full-width-map {
		aspect-ratio: 16/9;
	}
	
	.map-marker {
		width: 60px;
		height: 60px;
	}
	
	.marker-icon {
		width: 24px;
	}
	
	.map-marker .location-name {
		font-size: 10px;
		padding: 4px 8px;
	}
	
	.map-marker .tooltip {
		min-width: 280px;
		font-size: 12px;
		padding: 10px;
	}
	
	.map-marker .tooltip-title {
		font-size: 14px;
	}
	
	.map-marker .tooltip-text {
		font-size: 12px;
	}
	
	.map-marker .tooltip-image {
		max-width: 100px;
		height: auto;
	}
	
	/* Combat section responsive styles */
	.combat {
		padding: 120px 0 60px 0;
	}
	
	.combat__title {
		font-size: 40px;
	}
	
	.combat__description {
		font-size: 16px;
	}
	
	.combat__layout {
		padding: 20px;
	}
	
	.combat__tab {
		padding: 12px 16px;
		font-size: 13px;
	}
	
	.combat__panel {
		min-height: 280px;
		padding: 20px;
	}
	
	.combat__panel-title {
		font-size: 20px;
	}
	
	.combat__panel-text {
		font-size: 14px;
	}
	
	/* Registration section responsive styles */
	.registration {
		padding: 120px 0 60px 0;
	}
	
	.registration__title {
		font-size: 36px;
		margin: 0 0 30px;
	}
	
	.registration__layout {
		gap: 20px;
	}
	
	.registration__right {
		padding: 15px;
	}
	
	.roulette {
		max-width: 100%;
		height: 100px;
	}
	
	.roulette__item {
		min-width: 80px;
	}
	
	.roulette__item-image {
		width: 40px;
		height: 40px;
	}
	
	/* General mobile improvements */
	.container {
		width: min(100% - 1rem, var(--menu-working-width));
	}
	
	/* Hide desktop navigation on mobile */
	.header__nav {
		display: none;
	}
	
	/* Adjust header layout for mobile */
	.header__inner {
		grid-template-columns: auto 1fr auto;
		gap: 10px;
	}
	
	.achievements__grid {
		grid-template-columns: 1fr;
	}
	
	.feature__title {
		font-size: 40px;
	}
	
	.feature__subtitle {
		font-size: 24px;
	}
	
	.feature__lead {
		font-size: 16px;
	}
	
	.world {
		padding: 120px 0 60px 0;
	}
	
	.world__title {
		font-size: 40px;
	}
	
	.world-card__title {
		font-size: 20px;
	}
	
	.world-card__text {
		font-size: 14px;
	}
	
	/* General mobile improvements */
	.parallax-container {
		display: none;
	}
	
	.shooting-stars {
		display: none;
	}
	
	/* Hide all cloud decoration images on mobile */
	.achievements__clouds,
	.world-alt__clouds,
	.world__clouds,
	.combat__clouds {
		display: none;
	}
	
	/* Hide body::before (falling stars effect) on mobile */
	body::before {
		display: none;
	}
	
	/* Adjust video positioning on mobile */
	.section__video {
		left: 0;
	}
	
	/* Progression section mobile adaptations */
	.progression__cards {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}
	
	.progression__card {
		width: 90%;
		max-width: 350px;
		height: 200px;
		transform: none !important;
	}
	
	/* Hide progression path on mobile */
	.progression__path {
		display: none;
	}
	
	/* Remove fixed height on mobile */
	.progression {
		height: auto;
		padding: 0 0 120px 0;
	}

	.rpg {
		padding: 0px 0 120px 0;
	}

	.characters {
		padding: 120px 0 120px 0;
	}

	.characters__portraits {
		margin-bottom: 0;
	}

	/* Wiki popup mobile adaptations */
	.wiki-popup__character {
		display: none;
	}
	
	.wiki-popup__main {
		margin-left: 0;
	}
	
	.wiki-popup__title--audio {
		margin-left: 0;
	}
	
	/* Reduce font sizes on mobile for better readability */
	.world__title,
	.progression__title,
	.rpg__title,
	.buy__title,
	.characters__title,
	.registration__title,
	.media__featured-title,
	.locations__title {
		font-size: 36px;
	}
	
	/* Characters section mobile adaptations */
	.characters__name {
		font-size: 32px;
	}
	
	.characters__portraits {
		flex-wrap: wrap;
		gap: 16px;
	}
	
	.characters__portrait {
		width: 80px;
		height: 80px;
	}
	
	.characters__panel {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.characters__art {
		scale: 1.0;
		order: -1;
	}
	
	/* Registration section mobile adaptations */
	.registration__layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.registration__left {
		width: 100%;
	}
	
	.registration__right {
		left: 0;
		top: 0;
		max-height: none;
		min-height: auto;
		padding: 20px;
		width: 100%;
	}
	
	.roulette {
		max-width: 100%;
	}
	
	/* Additional mobile adaptations for registration form elements */
	.registration-form__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.form-group__input {
		font-size: 16px; /* Prevents zoom on iOS */
	}
	
	/* Enhanced mobile adaptations for all registration elements */
	.registration-form {
		min-width: auto;
		margin: 0;
		padding: 0;
	}
	
	.registration-form__form {
		padding: 20px;
	}
	
	.registration-form__title {
		font-size: 28px;
		margin-bottom: 24px;
	}
	
	.form-group__label {
		font-size: 16px;
	}
	
	.form-checkbox__label {
		font-size: 15px;
	}
	
	.form-captcha__placeholder {
		padding: 16px;
	}
	
	.registration-form__submit {
		font-size: 18px;
		padding: 16px 20px;
	}
	
	/* Gifts section mobile adaptations */
	.gifts-section {
		min-width: auto;
		max-width: 100%;
		padding: 20px 15px;
	}
	
	.gifts-section__title {
		font-size: 22px;
		margin-bottom: 16px;
	}
	
	.gifts-section__items {
		gap: 12px;
		min-height: auto;
		margin-bottom: 16px;
	}
	
	.gift-item {
		width: 100%;
		padding: 12px;
	}
	
	.gift-item__image {
		width: 40px;
		height: 40px;
	}
	
	.gift-item__name {
		font-size: 14px;
	}
	
	/* Container fixes */
	.container.header__inner {
		width: 100%;
		padding: 0 1rem;
	}

	/* World-alt container responsive fix */
	.world-alt .container {
		width: 100%;
		padding: 0 1rem;
	}
}

/* Header responsive styles */
@media (max-width: 1024px) {
	.header__inner {
		height: auto;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		gap: var(--space-3);
		padding: 10px 0;
	}
	
	.mobile-menu-btn {
		display: block;
		grid-row: 1;
		grid-column: 1;
	}
	
	.header__logo {
		grid-row: 1;
		grid-column: 2;
		font-size: 20px;
		justify-self: center;
	}
	
	.header__actions {
		grid-row: 2;
		grid-column: 1 / span 2;
		justify-self: center;
		margin-bottom: 10px;
	}
	
	.menu {
		display: none;
		gap: var(--space-4);
	}
	
	.btn--hero {
		font-size: 16px;
		padding: 6px 12px;
	}
	
	.hero__title {
		font-size: 48px;
	}
	
	.hero__subtitle {
		font-size: 16px;
	}
	
	.btn--create-account {
		width: 240px;
		height: 60px;
		font-size: 18px;
	}
	
	/* Map section responsive styles */
	.map-tabs {
		padding: 10px;
		margin-bottom: 20px;
	}
	
	.map-tab {
		min-width: 80px;
		padding: 0 12px;
		font-size: 10px;
		height: 28px;
	}
	
	.map-description {
		font-size: 12px;
	}
	
	.location-counter__number {
		font-size: 15px;
	}
	
	.full-width-map {
		aspect-ratio: 16/9;
	}
	
	.map-marker {
		width: 60px;
		height: 60px;
	}
	
	.marker-icon {
		width: 24px;
	}
	
	.map-marker .location-name {
		font-size: 10px;
		padding: 4px 8px;
	}
	
	.map-marker .tooltip {
		min-width: 280px;
		font-size: 12px;
		padding: 10px;
	}
	
	.map-marker .tooltip-title {
		font-size: 14px;
	}
	
	.map-marker .tooltip-text {
		font-size: 12px;
	}
	
	.map-marker .tooltip-image {
		max-width: 100px;
		height: auto;
	}
	
	/* Combat section responsive styles */
	.combat {
		padding: 120px 0 60px 0;
	}
	
	.combat__title {
		font-size: 40px;
	}
	
	.combat__description {
		font-size: 16px;
	}
	
	.combat__layout {
		padding: 20px;
	}
	
	.combat__tab {
		padding: 12px 16px;
		font-size: 13px;
	}
	
	.combat__panel {
		min-height: 280px;
		padding: 20px;
	}
	
	.combat__panel-title {
		font-size: 20px;
	}
	
	.combat__panel-text {
		font-size: 14px;
	}
	
	/* Registration section responsive styles */
	.registration {
		padding: 120px 0 60px 0;
	}
	
	.registration__title {
		font-size: 36px;
		margin: 0 0 30px;
	}
	
	.registration__layout {
		gap: 20px;
	}
	
	.registration__right {
		padding: 15px;
	}
	
	.roulette {
		max-width: 100%;
		height: 100px;
	}
	
	.roulette__item {
		min-width: 80px;
	}
	
	.roulette__item-image {
		width: 40px;
		height: 40px;
	}
	
	/* General mobile improvements */
	.container {
		width: min(100% - 1rem, var(--menu-working-width));
	}
	
	/* Hide desktop navigation on mobile */
	.header__nav {
		display: none;
	}
	
	/* Adjust header layout for mobile */
	.header__inner {
		grid-template-columns: auto 1fr auto;
		gap: 10px;
	}
	
	.achievements__grid {
		grid-template-columns: 1fr;
	}
	
	.feature__title {
		font-size: 40px;
	}
	
	.feature__subtitle {
		font-size: 24px;
	}
	
	.feature__lead {
		font-size: 16px;
	}
	
	.world {
		padding: 120px 0 60px 0;
	}
	
	.world__title {
		font-size: 40px;
	}
	
	.world-card__title {
		font-size: 20px;
	}
	
	.world-card__text {
		font-size: 14px;
	}
	
	/* General mobile improvements */
	.parallax-container {
		display: none;
	}
	
	.shooting-stars {
		display: none;
	}
	
	/* Hide all cloud decoration images on mobile */
	.achievements__clouds,
	.world-alt__clouds,
	.world__clouds,
	.combat__clouds {
		display: none;
	}
	
	/* Hide body::before (falling stars effect) on mobile */
	body::before {
		display: none;
	}
	
	/* Adjust video positioning on mobile */
	.section__video {
		left: 0;
	}
	
	/* Progression section mobile adaptations */
	.progression__cards {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}
	
	.progression__card {
		width: 90%;
		max-width: 350px;
		height: 200px;
		transform: none !important;
	}
	
	/* Hide progression path on mobile */
	.progression__path {
		display: none;
	}
	
	/* Remove fixed height on mobile */
	.progression {
		height: auto;
		padding: 0 0 120px 0;
	}

	.rpg {
		padding: 0px 0 120px 0;
	}

	.characters {
		padding: 120px 0 120px 0;
	}

	.characters__portraits {
		margin-bottom: 0;
	}

	/* Wiki popup mobile adaptations */
	.wiki-popup__character {
		display: none;
	}
	
	.wiki-popup__main {
		margin-left: 0;
	}
	
	.wiki-popup__title--audio {
		margin-left: 0;
	}
	
	/* Reduce font sizes on mobile for better readability */
	.world__title,
	.progression__title,
	.rpg__title,
	.buy__title,
	.characters__title,
	.registration__title,
	.media__featured-title,
	.locations__title {
		font-size: 36px;
	}
	
	/* Characters section mobile adaptations */
	.characters__name {
		font-size: 32px;
	}
	
	.characters__portraits {
		flex-wrap: wrap;
		gap: 16px;
	}
	
	.characters__portrait {
		width: 80px;
		height: 80px;
	}
	
	.characters__panel {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.characters__art {
		scale: 1.0;
		order: -1;
	}
	
	/* Registration section mobile adaptations */
	.registration__layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.registration__left {
		width: 100%;
	}
	
	.registration__right {
		left: 0;
		top: 0;
		max-height: none;
		min-height: auto;
		padding: 20px;
		width: 100%;
	}
	
	.roulette {
		max-width: 100%;
	}
	
	/* Additional mobile adaptations for registration form elements */
	.registration-form__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.form-group__input {
		font-size: 16px; /* Prevents zoom on iOS */
	}
	
	/* Enhanced mobile adaptations for all registration elements */
	.registration-form {
		min-width: auto;
		margin: 0;
		padding: 0;
	}
	
	.registration-form__form {
		padding: 20px;
	}
	
	.registration-form__title {
		font-size: 28px;
		margin-bottom: 24px;
	}
	
	.form-group__label {
		font-size: 16px;
	}
	
	.form-checkbox__label {
		font-size: 15px;
	}
	
	.form-captcha__placeholder {
		padding: 16px;
	}
	
	.registration-form__submit {
		font-size: 18px;
		padding: 16px 20px;
	}
	
	/* Gifts section mobile adaptations */
	.gifts-section {
		min-width: auto;
		max-width: 100%;
		padding: 20px 15px;
	}
	
	.gifts-section__title {
		font-size: 22px;
		margin-bottom: 16px;
	}
	
	.gifts-section__items {
		gap: 12px;
		min-height: auto;
		margin-bottom: 16px;
	}
	
	.gift-item {
		width: 100%;
		padding: 12px;
	}
	
	.gift-item__image {
		width: 40px;
		height: 40px;
	}
	
	.gift-item__name {
		font-size: 14px;
	}
	
	/* Header responsive fixes */
	@media (max-width: 768px) {
		.container.header__inner {
			width: 100%;
			padding: 0 1rem;
		}

		/* World-alt container responsive fix */
		.world-alt .container {
			width: 100%;
			padding: 0 1rem;
		}
	}
}

@media (max-width: 768px) {
	.header__inner {
		height: auto;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		gap: var(--space-3);
		padding: 10px 0;
	}
	
	.mobile-menu-btn {
		grid-row: 1;
		grid-column: 1;
	}
	
	.header__logo {
		grid-row: 1;
		grid-column: 2;
		font-size: 20px;
		justify-self: center;
	}
	
	.header__actions {
		grid-row: 2;
		grid-column: 1 / span 2;
		justify-self: center;
		margin-bottom: 10px;
	}
	
	.menu {
		display: none;
	}
	
	.btn--hero {
		font-size: 16px;
		padding: 6px 12px;
	}
	
	.hero__title {
		font-size: 48px;
	}
	
	.hero__subtitle {
		font-size: 16px;
	}
	
	.btn--create-account {
		width: 240px;
		height: 60px;
		font-size: 18px;
	}
}

/* Map section responsive styles */
@media (max-width: 1200px) {
	.map-tabs {
		position: relative;
		top: 0;
		left: 0;
		max-width: 100%;
		margin: 0 auto 30px auto;
		padding: 15px;
	}
	
	.map-tab {
		min-width: 120px;
		padding: 0 20px;
		font-size: 12px;
		height: 36px;
	}
	
	.map-description {
		font-size: 13px;
	}
	
	.location-counter__number {
		font-size: 17px;
	}
}

@media (max-width: 992px) {
	.map-tabs {
		padding: 12px;
	}
	
	.map-tab {
		min-width: 100px;
		padding: 0 16px;
		font-size: 11px;
		height: 32px;
	}
}

@media (max-width: 768px) {
	.map-tabs {
		padding: 10px;
		margin-bottom: 20px;
	}
	
	.map-tab {
		min-width: 80px;
		padding: 0 12px;
		font-size: 10px;
		height: 28px;
	}
	
	.map-description {
		font-size: 12px;
	}
	
	.location-counter__number {
		font-size: 15px;
	}
	
	.full-width-map {
		aspect-ratio: 16/9;
	}
	
	.map-marker {
		width: 60px;
		height: 60px;
	}
	
	.marker-icon {
		width: 24px;
	}
	
	.map-marker .location-name {
		font-size: 10px;
		padding: 4px 8px;
	}
	
	.map-marker .tooltip {
		min-width: 280px;
		font-size: 12px;
		padding: 10px;
	}
	
	.map-marker .tooltip-title {
		font-size: 14px;
	}
	
	.map-marker .tooltip-text {
		font-size: 12px;
	}
	
	.map-marker .tooltip-image {
		max-width: 100px;
		height: auto;
	}
}

@media (max-width: 480px) {
	.map-tabs {
		padding: 8px;
		margin-bottom: 15px;
	}
	
	.map-tabs-container {
		gap: 3px;
	}
	
	.map-tab {
		min-width: 70px;
		padding: 0 10px;
		font-size: 9px;
		height: 26px;
	}
	
	.map-description {
		font-size: 11px;
	}
	
	.location-counter__number {
		font-size: 13px;
	}
	
	.map-marker {
		width: 50px;
		height: 50px;
	}
	
	.marker-icon {
		width: 20px;
	}
	
	.map-marker .location-name {
		font-size: 9px;
		padding: 3px 6px;
	}
	
	.map-marker .tooltip {
		min-width: 240px;
		font-size: 11px;
		padding: 8px;
	}
	
	.map-marker .tooltip-title {
		font-size: 13px;
	}
	
	.map-marker .tooltip-text {
		font-size: 11px;
	}
	
	.map-marker .tooltip-image {
		max-width: 80px;
	}
}

/* Navigation menus responsive styles */
@media (max-width: 1024px) {
	.section-nav, .social-nav {
		display: none;
	}
}

/* Combat section responsive styles */
@media (max-width: 1200px) {
	.combat__layout {
		grid-template-columns: 360px 1fr;
	}
	
	.combat__tab {
		padding: 16px 20px;
	}
	
	.combat__panel {
		min-height: 380px;
	}
}

@media (max-width: 992px) {
	.combat__layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.combat__tabs-container {
		order: 2;
	}
	
	.combat__panels {
		order: 1;
	}
	
	.combat__tab {
		padding: 14px 18px;
		font-size: 14px;
	}
	
	.combat__panel {
		min-height: 320px;
	}
}

@media (max-width: 768px) {
	.combat {
		padding: 120px 0 60px 0;
	}
	
	.combat__title {
		font-size: 40px;
	}
	
	.combat__description {
		font-size: 16px;
	}
	
	.combat__layout {
		padding: 20px;
	}
	
	.combat__tab {
		padding: 12px 16px;
		font-size: 13px;
	}
	
	.combat__panel {
		min-height: 280px;
		padding: 20px;
	}
	
	.combat__panel-title {
		font-size: 20px;
	}
	
	.combat__panel-text {
		font-size: 14px;
	}
}

/* Registration section responsive styles */
@media (max-width: 1024px) {
	.achievement-card {
		width: 420px;
		margin: 0 auto;
	}
	.registration__layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.registration__title {
		font-size: 48px;
	}
	
	.registration__right {
		left: 0;
		padding: 20px;
		max-height: none;
		min-height: auto;
	}
}

@media (max-width: 768px) {
	.registration {
		padding: 120px 0 60px 0;
	}
	
	.registration__title {
		font-size: 36px;
		margin: 0 0 30px;
	}
	
	.registration__layout {
		gap: 20px;
	}
	
	.registration__right {
		padding: 15px;
	}
	
	.roulette {
		max-width: 100%;
		height: 100px;
	}
	
	.roulette__item {
		min-width: 80px;
	}
	
	.roulette__item-image {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 480px) {
	.registration__title {
		font-size: 28px;
	}
	
	.roulette {
		height: 80px;
	}
	
	.roulette__item {
		min-width: 60px;
	}
	
	.roulette__item-image {
		width: 30px;
		height: 30px;
	}
}

/* General mobile improvements */
@media (max-width: 768px) {
	.container {
		width: min(100% - 1rem, var(--menu-working-width));
	}
	
	/* Mobile menu button */
	.mobile-menu-btn {
		display: block;
	}
	
	/* Hide desktop navigation on mobile */
	.header__nav {
		display: none;
	}
	
	/* Adjust header layout for mobile */
	.header__inner {
		grid-template-columns: auto 1fr auto;
		gap: 10px;
	}
	
	.hero__title {
		font-size: 40px;
	}
	
	.hero__subtitle {
		font-size: 14px;
	}
	
	.btn--create-account {
		width: 200px;
		height: 50px;
		font-size: 16px;
	}
	
	.achievements__grid {
		grid-template-columns: 1fr;
	}
	
	.feature__title {
		font-size: 40px;
	}
	
	.feature__subtitle {
		font-size: 24px;
	}
	
	.feature__lead {
		font-size: 16px;
	}
	
	.world {
		padding: 120px 0 60px 0;
	}
	
	.world__title {
		font-size: 40px;
	}
	
	.world-card__title {
		font-size: 20px;
	}
	
	.world-card__text {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.hero__title {
		font-size: 32px;
	}
	
	.hero__subtitle {
		font-size: 12px;
	}
	
	.btn--create-account {
		width: 180px;
		height: 45px;
		font-size: 14px;
	}
	
	.feature__title {
		font-size: 32px;
	}
	
	.feature__subtitle {
		font-size: 20px;
	}
	
	.world__title {
		font-size: 32px;
	}
	
	.world-card__title {
		font-size: 18px;
	}
	
	/* Mobile menu adjustments for small screens */
	.mobile-menu__content {
		width: 90%;
	}
	
	.mobile-menu__link {
		font-size: 16px;
	}
}

.map-marker:hover .tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Hide parallax and shooting stars on mobile devices for performance */
@media (max-width: 768px) {
	.parallax-container {
		display: none;
	}
	
	.shooting-stars {
		display: none;
	}
	
	/* Hide all cloud decoration images on mobile */
	.achievements__clouds,
	.world-alt__clouds,
	.world__clouds,
	.combat__clouds {
		display: none;
	}
	
	/* Hide body::before (falling stars effect) on mobile */
	body::before {
		display: none;
	}
	
	/* Adjust video positioning on mobile */
	.section__video {
		left: 0;
	}
	
	/* Progression section mobile adaptations */
	.progression__cards {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}
	
	.progression__card {
		width: 90%;
		max-width: 350px;
		height: 200px;
		transform: none !important;
	}
	
	/* Hide progression path on mobile */
	.progression__path {
		display: none;
	}
	
	/* Remove fixed height on mobile */
	.progression {
		height: auto;
		padding: 0 0 120px 0;
	}

	.rpg {
		padding: 0px 0 120px 0;
	}

	.characters {
		padding: 120px 0 120px 0;
	}

	.characters__portraits {
		margin-bottom: 0;
	}

	/* Wiki popup mobile adaptations */
	.wiki-popup__character {
		display: none;
	}
	
	.wiki-popup__main {
		margin-left: 0;
	}
	
	.wiki-popup__title--audio {
		margin-left: 0;
	}
	
	/* Reduce font sizes on mobile for better readability */
	.world__title,
	.progression__title,
	.rpg__title,
	.buy__title,
	.characters__title,
	.registration__title,
	.media__featured-title,
	.locations__title {
		font-size: 36px;
	}
	
	/* Characters section mobile adaptations */
	.characters__name {
		font-size: 32px;
	}
	
	.characters__portraits {
		flex-wrap: wrap;
		gap: 16px;
	}
	
	.characters__portrait {
		width: 80px;
		height: 80px;
	}
	
	.characters__panel {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.characters__art {
		scale: 1.0;
		order: -1;
	}
	
	/* Registration section mobile adaptations */
	.registration__layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.registration__left {
		width: 100%;
	}
	
	.registration__right {
		left: 0;
		top: 0;
		max-height: none;
		min-height: auto;
		padding: 20px;
		width: 100%;
	}
	
	.roulette {
		max-width: 100%;
	}
	
	/* Additional mobile adaptations for registration form elements */
	.registration-form__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.form-group__input {
		font-size: 16px; /* Prevents zoom on iOS */
	}
	
	/* Enhanced mobile adaptations for all registration elements */
	.registration-form {
		min-width: auto;
		margin: 0;
		padding: 0;
	}
	
	.registration-form__form {
		padding: 20px;
	}
	
	.registration-form__title {
		font-size: 28px;
		margin-bottom: 24px;
	}
	
	.form-group__label {
		font-size: 16px;
	}
	
	.form-checkbox__label {
		font-size: 15px;
	}
	
	.form-captcha__placeholder {
		padding: 16px;
	}
	
	.registration-form__submit {
		font-size: 18px;
		padding: 16px 20px;
	}
	
	/* Gifts section mobile adaptations */
	.gifts-section {
		min-width: auto;
		max-width: 100%;
		padding: 20px 15px;
	}
	
	.gifts-section__title {
		font-size: 22px;
		margin-bottom: 16px;
	}
	
	.gifts-section__items {
		gap: 12px;
		min-height: auto;
		margin-bottom: 16px;
	}
	
	.gift-item {
		min-width: 60px;
		padding: 8px;
	}
	
	.gift-item__image {
		width: 28px;
		height: 28px;
	}
	
	.gift-item__name {
		font-size: 10px;
	}
	
	.gifts-section__reset {
		font-size: 14px;
		padding: 8px 16px;
	}
	
	/* Hide additional falling stars effect on mobile */
	body::after {
		display: none;
	}
	
	/* Hide map section on mobile devices */
	.map-section {
		display: none;
	}
	
	/* Adjust features section padding on mobile */
	#features {
		padding: 0;
	}
}

/* Header responsive fixes */
@media (max-width: 768px) {
	.container.header__inner {
		width: 100%;
		padding: 0 1rem;
	}

	/* World-alt container responsive fix */
	.world-alt .container {
		width: 100%;
		padding: 0 1rem;
	}
}

/* =============================
   Layout
   ============================= */
a {
	color: inherit;
	text-decoration: none;
}

@media (max-width: 2414px) {
	.map-tabs {
		top: 100px;
    	left: 390px;
	}
}

@media (max-width: 2110px) {
	.map-tabs {
		top: 50px;
    	left: 390px;
	}
}

@media (max-width: 1920px) {
	.map-tabs {
		top: 0px;
        left: 260px;
	}
}

@media (max-width: 1700px) {
	.map-tabs {
		top: -60px;
        left: 260px;
	}
}

@media (max-width: 1500px) {
    .map-tabs {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        margin: 0 auto 30px auto;
        padding: 15px;
    }
    
    /* Responsive positioning for city markers */
    #gludio-village {
        top: 43.8% !important;
        left: 16.9% !important;
    }
    
    #oren-castle-town {
        top: 18.8% !important;
        left: 54.9% !important;
    }
    
    #dion-village {
        top: 43.7% !important;
        left: 26.6% !important;
    }
    
    #aden-castle-town {
        top: 22.3% !important;
        left: 75% !important;
    }
    
    #giran-castle-town {
        top: 46.5% !important;
        left: 42.2% !important;
    }
    
    #gludin-village {
        top: 43.7% !important;
        left: 8.2% !important;
    }
    
    #hein {
        top: 63.9% !important;
        left: 40.2% !important;
    }
    
    /* Responsive positioning for location markers */
    #field-of-silence {
        top: 55% !important;
        left: 37.6% !important;
    }
    
    #dragon-valley {
        top: 39% !important;
        left: 48% !important;
    }
    
    #enchanted-valley {
        top: 25.2% !important;
        left: 60.8% !important;
    }
    
    #sea-of-spores {
        top: 15.5% !important;
        left: 49.6% !important;
    }
    
    #giants-cave {
        top: 33% !important;
        left: 85.1% !important;
    }
    
    #execution-grounds {
        top: 45.7% !important;
        left: 33.2% !important;
    }
    
    #the-cemetery {
        top: 24% !important;
        left: 85.6% !important;
    }
    
    #blazing-swamp {
        top: 14% !important;
        left: 79.1% !important;
    }
    
    #antharas-lair {
        top: 41% !important;
        left: 59% !important;
    }
    
    #wasteland-ant-nest {
        top: 52% !important;
        left: 12.4% !important;
    }
    
    #tower-of-insolence {
        top: 14.4% !important;
        left: 67.4% !important;
    }
    
    #abandoned-camp {
        top: 39.5% !important;
        left: 10.5% !important;
    }
    
    #bee-hive {
        top: 52.5% !important;
        left: 18.7% !important;
    }
    
    #alligator-island {
        top: 62.2% !important;
        left: 33.7% !important;
    }
    
    #partisans-hideaway {
        top: 35.2% !important;
        left: 36.4% !important;
    }
    
    #ivory-tower-crater {
        top: 15.5% !important;
        left: 59.3% !important;
    }
    
    #forbidden-gateway {
        top: 25.2% !important;
        left: 90.3% !important;
    }
    
    /* Responsive positioning for fort markers */
    #giran-castle {
        top: 46.9% !important;
        left: 50.9% !important;
    }
    
    #dion-castle {
        top: 46.5% !important;
        left: 25.5% !important;
    }
    
    #oren-castle {
        top: 19.2% !important;
        left: 56.8% !important;
    }
    
    #aden-castle {
        top: 15.4% !important;
        left: 77.8% !important;
    }
    
    #tanor-fortress {
        top: 43.8% !important;
        left: 37.4% !important;
    }
    
    #bayou-fortress {
        top: 29% !important;
        left: 89% !important;
    }
    
    #devastated-castle {
        top: 14.5% !important;
        left: 89.1% !important;
    }
    
    /* Responsive positioning for easter egg markers */
    #dragons-nest {
        top: 12.5% !important;
        left: 75% !important;
    }
    
    #secret-garden {
        top: 65% !important;
        left: 25% !important;
    }
    
    #old-library {
        top: 41% !important;
        left: 10% !important;
    }
    
    #underground-cave {
        top: 29% !important;
        left: 85% !important;
    }
    
    #floating-island {
        top: 57% !important;
        left: 60% !important;
    }
    
    #crystal-lake {
        top: 27.7% !important;
        left: 65.6% !important;
    }
    
    #enchanted-forest {
        top: 49% !important;
        left: 40% !important;
    }
    
    #hidden-tavern {
        top: 37% !important;
        left: 70% !important;
    }
    
    #forgotten-crypt {
        top: 16.5% !important;
        left: 60% !important;
    }
    
    #timeless-ruins {
        top: 61% !important;
        left: 15% !important;
    }
}