* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: #000;
	color: #ffe49e;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

body {
	display: flex;
	justify-content: center;
}

a {
	cursor: pointer;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

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

/* 页面背景容器：所有绝对定位元素都以它为参照 */
.page-shell {
	position: relative;
	width: min(100vw, 786px);
	aspect-ratio: 786 / 1560;
	margin: 0 auto;
	overflow: hidden;
	background: #070302 url('../images/bg.jpg') center top / 100% 100% no-repeat;
}

.page-shell:before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 48% 13%, rgba(152, 83, 26, .36) 0, rgba(120, 62, 20, .20) 18%, rgba(0, 0, 0, 0) 36%),
		radial-gradient(circle at 82% 58%, rgba(153, 94, 31, .24) 0, rgba(0, 0, 0, 0) 22%),
		linear-gradient(180deg, rgba(0, 0, 0, .22) 0, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .32) 100%);
	z-index: 0;
	pointer-events: none;
}

.coin-overlay {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: auto;
	z-index: 2;
	pointer-events: none;
}

/* 这里必须是 static，否则 download-btn / games / web-game-btn 会相对 hero 定位 */
.hero {
	position: static;
	padding-top: 13.4%;
	padding-bottom: 18%;
	text-align: center;
}

/* 保证 logo 和 slogan 仍然在背景遮罩上层 */
.brand-logo,
.slogan,
.chat-main {
	position: relative;
	z-index: 4;
}

.brand-logo {
	width: 48%;
	max-width: 377px;
	margin: 0 auto;
}

.slogan {
	width: 91.8%;
	max-width: 721px;
	margin: 6.4% auto 0;
}

/* 下载按钮父容器：只负责左右排列，不做 hover 放大 */
.download-btn {
	position: absolute;
	left: 50%;
	top: 60%;
	transform: translateX(-50%);

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;

	width: 82%;
	max-width: 430px;
	margin: 0;
	z-index: 10;
}

/* Android / iOS 两个按钮单独触发 */
#btngoogle,
#btnios {
	display: block;
	width: 50%;
	transition: transform .18s ease, filter .18s ease;
}

#btngoogle img,
#btnios img {
	display: block;
	width: 100%;
	height: auto;
}

/* 鼠标移动到哪个按钮，只放大哪个按钮 */
#btngoogle:hover,
#btnios:hover {
	transform: scale(1.05);
	filter: brightness(1.08);
}

/* 点击时只缩放当前按钮 */
#btngoogle:active,
#btnios:active {
	transform: scale(0.96);
	filter: brightness(0.95);
}

/* Web 游戏按钮：纯图标模式 */
.web-game-btn {
	position: absolute;
	left: 50%;
	top: 49%;
	transform: translateX(-50%);

	display: block;
	width: 60%;
	max-width: 423px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	z-index: 10;

	transition: transform .18s ease, filter .18s ease;
}

.web-game-btn img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

/* web 按钮 hover 必须保留 translateX(-50%)，否则会右移 */
.web-game-btn:hover {
	transform: translateX(-50%) scale(1.05);
	filter: brightness(1.08);
}

.web-game-btn:active {
	transform: translateX(-50%) scale(0.96);
	filter: brightness(0.95);
}

/* 主客服按钮 */
.chat-main {
	display: block;
	width: 64%;
	max-width: 503px;
	margin: 7.8% auto 0;
	transition: transform .18s ease, filter .18s ease;
}

.chat-main:hover {
	transform: scale(1.025);
	filter: brightness(1.08);
}

/* 游戏列表区域：和按钮一样，相对背景固定位置 */
.games {
	position: absolute;
	left: 50%;
	top: 75%;
	transform: translateX(-50%);

	width: 100%;
	max-width: 620px;
	margin: 0;
	z-index: 10;
}

.league-title {
	margin: 9.8% auto 4.3%;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 400;
	letter-spacing: .02em;
	color: #ffe000;
	text-shadow:
		0 2px 3px rgba(0, 0, 0, .9),
		0 0 10px rgba(255, 180, 0, .25);
}

.game-grid {
	width: 85.7%;
	max-width: 674px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px 16px;
}

.game-card {
	width: 100%;
	border-radius: 8px;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65));
}

/* 左右悬浮图标 */
.side-icon {
	position: absolute;
	z-index: 6;
	width: 11.8%;
	max-width: 93px;
	min-width: 58px;
	transition: transform .18s ease, filter .18s ease;
}

.side-icon.left-top {
	left: 2.5%;
	top: 4.7%;
}

.side-icon.left-bottom {
	left: 2.5%;
	top: 11.9%;
}

.side-icon.right-top {
	right: 2.5%;
	top: 4.7%;
}

.side-icon:hover {
	transform: scale(1.025);
	filter: brightness(1.08);
}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 786px) {
	.web-game-btn {
		width: 60%;
		max-width: none;
	}

	.league-title {
		font-size: 4.58vw;
	}

	.game-grid {
		gap: 2vw 2vw;
	}

	.game-card {
		border-radius: 1vw;
	}
}

@media (max-width: 420px) {
	.league-title {
		text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
	}
}