:root {
	--design-width: 1920;
	--header: rgba(16, 32, 58, 0.9);
	--gold: #f0c040;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 320px;
	background: #10203a;
	font-family: Arial, "Helvetica Neue", sans-serif;
	overflow-x: hidden;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

img {
	display: block;
	max-width: 100%;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: clamp(50px, 6.25vw, 120px);
	background: var(--header);
	box-shadow: 0 2px 8px rgba(8, 16, 32, 0.28);
}

.header-inner {
	position: relative;
	width: min(100%, 1920px);
	height: 100%;
	margin: 0 auto;
}

.nav-bar-img {
	width: 100%;
	height: 100%;
	object-fit: fill;
	pointer-events: none;
}

.main-nav a {
	position: absolute;
	top: 0;
	height: 100%;
	color: transparent;
	font-size: 0;
	text-decoration: none;
}

.nav-home { left: 16.2%; width: 11.2%; }
.nav-news { left: 27.6%; width: 13.2%; }
.nav-logo { left: 41.2%; width: 18.8%; }
.nav-classes { left: 62.4%; width: 12.4%; }
.nav-features { left: 75.2%; width: 11.6%; }

.header-user {
	position: absolute;
	top: 50%;
	right: 1.6%;
	z-index: 2;
	transform: translateY(-50%);
}

.nav-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.nav-role-info {
	display: none;
	align-items: center;
	max-width: 220px;
}

.nav-role-text {
	text-align: right;
	line-height: 1.3;
}

#navRoleName {
	color: var(--gold);
	font-size: clamp(11px, 0.75vw, 14px);
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#navRoleDetail {
	color: #c8a84b;
	font-size: clamp(10px, 0.65vw, 12px);
}

.login-btn-container {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.logged-in-actions {
	display: none;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.logged-in-actions-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
}

.login-btn {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.login-btn img {
	height: clamp(28px, 3.4vw, 64px);
	width: auto;
	transition: transform 180ms ease, filter 180ms ease;
}

.login-btn:hover img,
.login-btn:focus-visible img {
	transform: translateY(-1px) scale(1.03);
	filter: brightness(1.08);
}

.login-btn.secondary {
	padding: 4px 10px;
	border: 1.5px solid rgba(248, 230, 171, 0.45);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--gold);
	font-size: clamp(10px, 0.65vw, 12px);
	font-weight: 700;
	white-space: nowrap;
}

.login-btn.secondary:hover,
.login-btn.secondary:focus-visible {
	background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
	display: none;
}

.page-stage {
	position: relative;
	width: min(100%, 1920px);
	margin: 0 auto;
	aspect-ratio: 1920 / 4434;
	background: url("../imgaes/void-realm-official-bottom.png") center top / 100% 100% no-repeat;
	box-shadow: 0 0 40px rgba(8, 16, 32, 0.24);
}

.section {
	position: absolute;
	left: 0;
	width: 100%;
}

.hero {
	top: 0;
	height: 29.5%;
}

.download-group {
	position: absolute;
	top: 80.6%;
	left: 50%;
	display: flex;
	width: 48%;
	align-items: center;
	justify-content: center;
	gap: 1.6%;
	transform: translateX(-50%);
}

.image-button {
	display: block;
	animation: button-breathe 2.2s ease-in-out infinite;
}

.ios-button,
.google-button {
	width: 25.4%;
}

.pre-register-button {
	width: 31.6%;
	animation-delay: 220ms;
}

.google-button {
	animation-delay: 120ms;
}

.image-button img {
	width: 100%;
}

@keyframes button-breathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.035); }
}

.reward-actions {
	position: fixed;
	top: 50%;
	right: clamp(8px, 1.8vw, 36px);
	z-index: 90;
	width: clamp(118px, 11.15vw, 214px);
	aspect-ratio: 214 / 453;
	transform: translateY(-50%);
}

.panel-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.panel-btn {
	position: absolute;
	left: 10.3%;
	display: block;
	width: 79.9%;
	transition: transform 160ms ease, filter 160ms ease;
}

.panel-ios { top: 13.6%; }
.panel-gp { top: 24.6%; }
.panel-apk { top: 35.6%; }
.panel-recharge { top: 46.6%; }

.panel-btn:hover,
.panel-btn:focus-visible,
.panel-social a:hover,
.panel-social a:focus-visible {
	transform: translateX(-4px);
	filter: brightness(1.08);
}

.panel-btn img,
.panel-social img {
	width: 100%;
}

.panel-social {
	position: absolute;
	top: 62.4%;
	left: 13%;
	display: flex;
	width: 74%;
	align-items: center;
	justify-content: space-between;
}

.panel-social a {
	display: block;
	width: 30%;
	transition: transform 160ms ease, filter 160ms ease;
}

.news {
	top: 29.5%;
	height: 16.8%;
}

.news-block {
	position: absolute;
	top: 32%;
	left: 50%;
	display: flex;
	width: 64%;
	align-items: center;
	justify-content: center;
	gap: 2.2%;
	transform: translateX(-50%);
}

.news-art {
	width: 48.4%;
}

.news-art img {
	width: 100%;
}

.news-list {
	position: relative;
	width: 47.8%;
}

.news-list img {
	width: 100%;
}

.news-hotspots {
	position: absolute;
	inset: 0;
}

.news-hotspot {
	position: absolute;
	left: 0;
	width: 100%;
	height: 25%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.news-hotspot:nth-child(1) { top: 19%; }
.news-hotspot:nth-child(2) { top: 46%; }
.news-hotspot:nth-child(3) { top: 74%; }

.news-hotspot:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: -2px;
}

.news-more {
	position: absolute;
	top: 2%;
	right: 0;
	width: 22%;
	height: 18%;
}

.news-more img {
	position: absolute;
	top: 22%;
	left: 0;
	width: 16px;
	height: 16px;
	opacity: 0;
}

.news-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	transition: opacity 180ms ease, visibility 180ms ease;
}

.news-modal.is-open {
	visibility: visible;
	opacity: 1;
}

.news-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
}

.news-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(90vh, 760px);
	overflow: auto;
	padding: 42px 36px 34px;
	border: 1px solid #d4a92e;
	border-radius: 16px;
	background: #29104d;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
	color: #f5eefb;
}

.news-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #e2b52f;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.news-modal-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.news-modal-dialog h2 {
	margin: 0 18px 10px 0;
	color: #f4c538;
	font-size: clamp(20px, 2.2vw, 30px);
	line-height: 1.35;
}

.news-modal-dialog time {
	display: block;
	margin-bottom: 22px;
	color: #e0b739;
	font-size: 14px;
}

.news-modal-dialog #newsModalBody {
	font-size: 16px;
	line-height: 1.9;
	white-space: pre-line;
}

@media (max-width: 720px) {
	.news-modal {
		padding: 12px;
	}

	.news-modal-dialog {
		padding: 38px 22px 24px;
		border-radius: 14px;
	}

	.news-modal-dialog #newsModalBody {
		font-size: 14px;
		line-height: 1.75;
	}
}

.heroes {
	top: 46.3%;
	height: 27.4%;
}

.hero-slider {
	position: relative;
	width: 100%;
	height: 100%;
}

.hero-thumbs {
	position: absolute;
	top: 10%;
	left: 50%;
	z-index: 3;
	display: flex;
	width: 78%;
	align-items: center;
	justify-content: center;
	gap: 0.45%;
	transform: translateX(-50%);
}

.hero-thumbs button {
	width: 13.8%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 180ms ease;
}

.hero-thumbs button:hover,
.hero-thumbs button.active {
	transform: translateY(-4%) scale(1.03);
}

.hero-thumbs img {
	width: 100%;
}

.hero-thumbs .thumb-active,
.hero-thumbs button.active .thumb-normal {
	display: none;
}

.hero-thumbs button.active .thumb-active {
	display: block;
}

.hero-slides {
	position: absolute;
	top: 3%;
	left: 0;
	width: 100%;
	height: 89%;
}

.hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	animation: slide-reveal 360ms ease both;
}

.hero-slide[hidden] {
	display: none;
}
、
@keyframes slide-reveal {
	from { opacity: 0; transform: translateX(1.4%); }
	to { opacity: 1; transform: translateX(0); }
}

.slider-arrow,
.feature-arrow {
	position: absolute;
	z-index: 4;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 180ms ease, filter 180ms ease;
}

.slider-arrow:hover,
.slider-arrow:focus-visible,
.feature-arrow:hover,
.feature-arrow:focus-visible {
	filter: brightness(1.18);
	transform: translateY(-50%) scale(1.1);
}

.slider-arrow {
	top: 54%;
	width: 5.8%;
	transform: translateY(-50%);
}

.hero-prev { left: 1.4%; }
.hero-next { right: 1.4%; }

.features {
	top: 73.7%;
	height: 17.6%;
}

.feature-slider {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.feature-track {
	position: absolute;
	top: 18%;
	left: 0;
	width: 100%;
	height: 68%;
}

.feature-slide {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56.7%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 620ms ease;
	will-change: transform, opacity;
}

.feature-slide[hidden] {
	display: none;
}

.feature-slide.feature-active {
	z-index: 2;
	opacity: 1;
}

.feature-slide.feature-exiting {
	z-index: 1;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.985);
}

.feature-slide.feature-enter-from-right,
.feature-slide.feature-enter-from-left {
	opacity: 0;
	transform: translate(-50%, -50%) scale(1.025);
}

.feature-slide.feature-exit-to-left,
.feature-slide.feature-exit-to-right {
	transform: translate(-50%, -50%) scale(0.985);
}

.feature-arrow {
	top: 48%;
	width: 7.3%;
	transform: translateY(-50%);
}

.feature-prev { left: 4.8%; }
.feature-next { right: 4.8%; }

.feature-dots {
	position: absolute;
	bottom: 8.6%;
	left: 50%;
	display: flex;
	gap: clamp(8px, 1.2vw, 22px);
	transform: translateX(-50%);
}

.feature-dots button {
	width: clamp(14px, 2.2vw, 42px);
	padding: 0;
	border: 0;
	background: url("../imgaes/gallery-dot.png") center / contain no-repeat;
	aspect-ratio: 1;
	cursor: pointer;
}

.feature-dots button.active {
	background-image: url("../imgaes/gallery-dot-active.png");
}

.footer {
	top: 91.3%;
	height: 8.7%;
	color: #fff;
	text-align: center;
}

.footer::before {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 34%;
	background: #20395c;
	content: "";
}

.footer-links {
	position: absolute;
	top: auto;
	bottom: 14%;
	left: 50%;
	display: flex;
	width: auto;
	height: auto;
	align-items: center;
	gap: clamp(10px, 1vw, 20px);
	transform: translateX(-50%);
	z-index: 1;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.72);
	font-size: clamp(13px, 0.65vw, 13px);
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.footer-divider {
	color: rgba(255, 255, 255, 0.65);
	/*font-size: clamp(13px, 0.65vw, 13px);*/
}

@media (max-width: 720px) {
	.site-header {
		height: 6.25vw;
		min-height: 20px;
	}

	.nav-bar-img {
		object-fit: fill;
	}

	.header-user {
		display: none;
	}

	.menu-toggle {
		display: none;
	}

	.main-nav {
		display: block;
	}

	.main-nav a {
		position: absolute;
		top: 0;
		height: 100%;
		padding: 0;
		color: transparent;
		font-size: 0;
		text-shadow: none;
	}

	.nav-logo {
		display: block;
	}

	.reward-actions {
		width: 96px;
		right: 4px;
	}

	.download-group {
		width: 78%;
		gap: 1%;
	}

	.news-block {
		width: 90%;
		gap: 1.4%;
	}

	.hero-thumbs {
		width: 94%;
	}

	.slider-arrow {
		width: 9%;
	}

	.feature-arrow {
		width: 11%;
	}

	.feature-slide {
		width: 78%;
	}

	/*.footer-links {*/
	/*	width: 70%;*/
	/*}*/
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.image-button { animation: none; }
	.hero-slide,
	.feature-slide { animation: none; }
	* { transition-duration: 0.01ms !important; }
}
