/* rem 基准：宽高取小，一屏显示（含 iPhone SE 568px） */
html {
	font-size: clamp(28px, min(13.333vw, 6.25vh), 66.67px);
	-webkit-text-size-adjust: 100%;
	background-color: #161616;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	height: 100vh;
	height: 100dvh;
	font-size: 0.26rem;
	color: #fff;
	overflow: hidden;
	background-color: #161616;
}

#container {
	max-width: 10rem;
	height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	background-color: #222222;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

@media screen and (min-width: 451px) and (max-width: 3010px) {
	#container {
		max-width: 8rem;
	}
}

/* ========== 头部 ========== */
.head {
	width: 100%;
	position: relative;
	display: flex;
	text-align: center;
	align-items: center;
	flex-shrink: 0;
}

.head .center {
	width: 40%;
	margin: 0 auto;
	margin-top: 0.3rem;
}

.head .left {
	position: absolute;
	left: 0.4rem;
	top: 0.4rem;
	width: 0.6rem;
}

.head .right {
	position: absolute;
	right: 0.4rem;
	top: 0.4rem;
	width: 0.6rem;
}

/* ========== 主内容区（一屏内不溢出）========== */
.main {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.main-inner {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 0 0 0.08rem;
}

.casinos {
	width: 80%;
	margin: 0 auto;
	display: block;
	text-align: center;
	flex-shrink: 0;
	max-height: 24vh;
	object-fit: contain;
	object-position: center;
	margin-top: 0.4rem;
}

/* banner 与 btns 紧贴 */
.banner-btns {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.banner {
	width: 100%;
	display: block;
	flex: 1;
	min-height: 0;
	object-fit: cover;
	object-position: center;
	max-height: 48vh;
}

/* ========== 按钮区 ========== */
.btns {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 1px 0 0.12rem;
	margin-top: -0.15rem;
}

/* 所有 btn 统一宽高（你原本的布局 + 固定尺寸） */
.btns .btn {
	display: block;
	margin-bottom: 0.12rem;
	width: 8.2rem;
	height: 0.9rem;
	box-sizing: border-box;
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
	background-image: url('../images/BOX.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}


.btns .btn .btnimg {
	width: 2.5rem;
	object-fit: cover;
	margin-left: 1.2rem;
	margin-top: 0.15rem;
}

.btns .btn .downloadImg {
	width: 0.7rem;
	height: 0.7rem;
	object-fit: cover;
	/* margin-left: 35%; */
	margin-top: 0.1rem;
}
.downloadbox{
	width: 7.2rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.btns .btn .xzzq {
	width: 1.5rem;
	height: 0.3rem;
	margin-left: 2%;
	margin-top: 0.11rem;
}

.entertext {
	vertical-align: 0.25rem;
	font-size: 0.35rem;
	font-weight: 600;
	letter-spacing: 0.05rem;
	margin-left: 2px;
	color: #ffd856;
}

.btns .btn .enter {
	width: 2.1rem;
	object-fit: cover;
	position: absolute;
	top: 50%;
	right: 0rem;
	transform: translate(-50%, -50%);
}

.action-tips {
	position: absolute;
	right: 5%;
	top: 0%;
	height: 0.4rem;
	animation: bounce 0.8s infinite;
}

@keyframes bounce {

	0%,
	100% {
		top: -5%;
		animation-timing-function: step-start;
	}

	50% {
		top: -10%;
		animation-timing-function: step-start;
	}
}

.action-tips img {
	width: 1.1rem;
	max-width: 100%;
}

.btns .btn--popup {
	position: relative;
	/* width: 8.3rem; */
}



/* ========== 弹出层 ========== */
.popup {
	display: none;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 100%;
	width: 85%;
	max-height: 52vh;
	overflow-y: auto;
	z-index: 20;
	box-sizing: border-box;
	padding: 0.35rem;
	padding-top: 0.8rem;
	bottom: 31px;
}

/* 边框用伪元素，宽高比固定、不影响内容布局 */
.popup::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: url('../images/border.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.popup.show {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

/* 防止 Telegram 等 WebView 里 flex 子项被拉伸 */
.popup.show>img {
	align-self: center;
	flex: 0 0 auto;
}

/* 弹出层内所有图片：禁止被拉伸撑满，兼容 Telegram 等 WebView */
.popup img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
	flex-shrink: 0;
	min-height: 0;
	vertical-align: middle;
}

.popup .item {
	display: flex;
	align-items: left;
	justify-content: left;
	background-color: #424242;
	width: 90%;
	border-radius: 7px;
	padding: 0.1rem 0.1rem;
	box-sizing: border-box;
	margin-top: 0.1rem;
}

.popup .item:first-child {
	margin-top: 0.3rem;
}


.popup .item .text {
	color: #ffd856;
	font-weight: 600;
	letter-spacing: 0.08rem;
	font-size: 0.3rem;
}

.popup .icon {
	width: 0.6rem;
	height: 0.6rem;
	margin-right: 0.18rem;
	margin-left: 1.23rem;
}


.popup .dowcenter {
	width: 40%;
	margin-top: 0.08rem;
	display: block;
}

/* ========== 页脚 ========== */
.fotter {
	text-align: center;
	width: 100%;
	padding-bottom: 0.5rem;
}

.fotter .text {
	font-size: 0.2rem;
	line-height: 1.35;
}

.fotter .date {
	color: #a2a2a2;
	letter-spacing: 0.04rem;
	margin-top: 0.05rem;
	font-size: 0.18rem;
}

/* ========== 矮屏（iPhone SE 等）========== */
@media (max-height: 600px) {
	.head .center {
		margin-top: 0.15rem;
	}

	.head .left,
	.head .right {
		width: 0.7rem;
		top: 0.25rem;
		left: 0.3rem;
		right: 0.3rem;
	}

	.main-inner {
		padding-bottom: 0.05rem;
	}

	.casinos {
		max-height: 20vh;
	}

	.banner {
		max-height: 40vh;
	}

	.btns {
		padding-bottom: 0.08rem;
	}

	.btns .btn {
		margin-top: 0.08rem;
	}

	.btns .btn .btnimg {
		max-height: 9vh;
	}

	.fotter {
		padding: 0.08rem 0.3rem 0.12rem;
	}

	.fotter .text {
		font-size: 0.18rem;
	}

	.fotter .date {
		font-size: 0.16rem;
	}

	.popup {
		height: 4.2rem;
		max-height: 48vh;
		padding: 0.25rem;
	}
}



/* 超小宽屏 */
@media (max-width: 360px) {
	html {
		font-size: clamp(28px, min(13.333vw, 6.25vh), 42px);
	}

	.casinos {
		width: 60%;
	}

	.popup {
		width: 88%;
		padding: 0.28rem;
	}
}

/* 大屏 */
@media (min-width: 501px) {
	html {
		font-size: 66.67px;
	}
}