*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
}

body.gate-page {
	background: #1b1b1b;
	color: #fff;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.5;
}

.gate-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.gate-card {
	width: 100%;
	max-width: 420px;
	background: #252525;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 24px 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.gate-app {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	text-align: left;
}

.gate-app-thumb {
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	border-radius: 12px;
	overflow: hidden;
	background: #111;
}

.gate-app-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gate-app-info h1 {
	margin: 0 0 4px 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}

.gate-size {
	margin: 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
}

.gate-ad-box {
	width: 100%;
	max-width: 300px;
	min-height: 60px;
	margin: 20px auto 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.2);
}

.gate-ad-box:empty {
	display: none;
}

.gate-ad-box iframe,
.gate-ad-box ins,
.gate-ad-box a {
	max-width: 100%;
}

.gate-message {
	margin: 0 0 12px 0;
	text-align: center;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
}

.gate-progress {
	width: 100%;
	height: 8px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 8px;
}

.gate-progress-bar {
	height: 100%;
	width: 0;
	background: #e66a35;
	transition: width 0.35s ease;
}

.gate-countdown {
	margin: 0 0 16px 0;
	text-align: center;
	font-size: 1.35rem;
	font-weight: 700;
	color: #e66a35;
}

.gate-download-btn {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	border-radius: 8px;
	background: #e66a35;
	color: #fff !important;
	text-align: center;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.gate-download-btn:hover {
	opacity: 0.92;
}

.gate-download-btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.gate-back-link {
	display: block;
	margin-top: 16px;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	font-size: 0.9rem;
}

.gate-back-link:hover {
	color: #fff;
}

.gate-ad-placeholder {
	margin: 0 0 16px 0;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
}

.gate-smartlink-btn {
	display: inline-block;
	padding: 12px 18px;
	background: #e66a35;
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 480px) {
	.gate-card {
		padding: 20px 16px;
	}

	.gate-ad-box {
		min-height: 200px;
	}
}
