/* ==========================================================================
   M98 – Trang chủ
   Chỉ được tải ở trang chủ (xem functions.php). Bố cục cho nội dung HTML
   của trang chủ: hero, quick-stats, các section .section, FAQ, final-cta.
   ========================================================================== */

/* ---------- Khung chung ---------- */
.m98-home {
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding: 0 0 56px !important;
}

.m98-home > section {
	display: block;
	width: 100%;
	min-height: 0;
	padding: 0;
}

/* Thứ tự hiển thị */
.m98-home > .hero          { order: 1; }
.m98-home > .quick-stats   { order: 2; }
.m98-home > #games         { order: 3; }
.m98-home > .usp-section   { order: 4; }
.m98-home > #why           { order: 5; }
.m98-home > #promo         { order: 6; }
.m98-home > #start         { order: 7; }
.m98-home > #transactions  { order: 8; }
.m98-home > #mobile        { order: 9; }
.m98-home > #about         { order: 10; }
.m98-home > #support       { order: 11; }
.m98-home > #faq           { order: 12; }
.m98-home > .final-cta     { order: 13; }

/* Dọn rác do trình soạn thảo tự thêm */
.m98-home p:empty,
.hero-promo-banner > br,
.promo-visual > br {
	display: none;
}

.m98-home .container {
	max-width: 1140px;
}

/* Khung kính của các section: hiệu ứng nằm trong style.css (dùng chung toàn site), ở đây chỉ bố cục */
.m98-home > .section > .container,
.m98-home > .final-cta > .container {
	width: calc(100% - 30px);
	padding: 52px 48px;
}

/* ---------- Chữ ---------- */
.m98-home h2 {
	margin: 0 0 .6em;
	font-size: clamp(21px, 2.5vw, 28px);
}

.m98-home h3 {
	margin: 0 0 .5em;
	font-size: 17px;
	color: var(--m98-gold-light);
}

.m98-home p {
	margin: 0 0 1em;
	color: var(--m98-text);
}

.m98-home .lead {
	font-size: 18px;
	color: var(--m98-text);
}

.m98-home .eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	padding: 5px 16px;
	border: 1px solid rgba(232, 182, 74, .45);
	border-radius: 999px;
	background: rgba(232, 182, 74, .08);
	color: var(--m98-gold);
	font-family: var(--m98-font-heading);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .06em;
	line-height: 1.4;
}

.m98-home .eyebrow a {
	color: inherit;
}

.m98-home .section-head {
	max-width: 780px;
	margin: 0 auto 36px;
	text-align: center;
}

.m98-home .section-head p:last-child {
	margin-bottom: 0;
	color: var(--m98-text-muted);
}

.m98-home .small-note {
	font-size: 14px;
	font-style: italic;
	color: var(--m98-text-muted);
}

/* ---------- Danh sách ---------- */
.m98-home ul.check-list,
.m98-home ul.card-list,
.m98-home ul.contact-list {
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}

.m98-home .check-list li,
.m98-home .card-list li,
.m98-home .contact-list li {
	position: relative;
	margin: 0 0 .55em;
	padding-left: 30px;
	line-height: 1.6;
}

.m98-home .check-list li::before {
	content: "✓";
	position: absolute;
	top: .2em;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--m98-gold-gradient);
	color: #1a1307;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.m98-home .card-list li,
.m98-home .contact-list li {
	padding-left: 20px;
	color: var(--m98-text-muted);
	font-size: 15px;
}

.m98-home .card-list li::before,
.m98-home .contact-list li::before {
	content: "◆";
	position: absolute;
	left: 0;
	color: var(--m98-gold);
	font-size: 10px;
	line-height: 2.4;
}

/* ---------- Nút ---------- */
.m98-home .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 0 28px;
	border: 2px solid var(--m98-gold);
	border-radius: 10px;
	font-family: var(--m98-font-heading);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.m98-home .btn:hover {
	transform: translateY(-2px);
}

.m98-home .btn-primary {
	background: var(--m98-gold-gradient);
	background-size: 200% 100%;
	color: #1a1307;
	box-shadow: 0 8px 22px rgba(232, 182, 74, .28);
}

.m98-home .btn-primary:hover {
	background-position: 100% 0;
	color: #000;
	box-shadow: 0 12px 28px rgba(232, 182, 74, .4);
}

.m98-home .btn-secondary {
	background: transparent;
	color: var(--m98-gold);
}

.m98-home .btn-secondary:hover {
	background: var(--m98-gold);
	color: #1a1307;
}

/* ---------- Thẻ dùng chung ---------- */
.m98-home .usp-card,
.m98-home .game-card,
.m98-home .feature-card,
.m98-home .step-card,
.m98-home .mission-card,
.m98-home .info-panel,
.m98-home .support-card,
.m98-home .responsible-card,
.m98-home .stat-card {
	position: relative;
	padding: 28px 24px;
	background: rgba(255, 255, 255, .035);
	border: 1px solid rgba(232, 182, 74, .2);
	border-radius: 16px;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.m98-home .usp-card:hover,
.m98-home .game-card:hover,
.m98-home .feature-card:hover,
.m98-home .step-card:hover {
	transform: translateY(-4px);
	border-color: rgba(232, 182, 74, .55);
	box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 24px rgba(232, 182, 74, .12);
}

/* ---------- Hero ---------- */
.m98-home > .hero {
	padding: 64px 0 8px;
}

.hero .hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.hero .hero-title {
	margin: 0 0 18px;
	font-size: clamp(26px, 3.8vw, 42px);
	line-height: 1.25;
	text-align: center;
	background: linear-gradient(180deg, #fff3cf 0%, var(--m98-gold-light) 40%, var(--m98-gold) 75%, var(--m98-gold-dark) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .7));
}

.hero .hero-highlight {
	display: inline-block;
	margin: 0 0 18px;
	padding: 8px 22px;
	border: 1px solid rgba(232, 182, 74, .5);
	border-radius: 999px;
	background: rgba(11, 10, 8, .6);
	color: var(--m98-gold-light);
	font-family: var(--m98-font-heading);
	font-size: 17px;
	font-weight: 500;
}

.hero .hero-subtitle {
	max-width: 760px;
	margin: 0 auto;
	color: var(--m98-text);
	font-size: 17px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.hero .hero-promo-banner {
	max-width: 1140px;
	margin: 36px auto 0;
}

.hero .promo-banner-img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid rgba(232, 182, 74, .45);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(232, 182, 74, .15);
}

/* ---------- Số liệu nhanh ---------- */
.quick-stats .stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.quick-stats .stat-card {
	padding: 22px 16px;
	background: linear-gradient(160deg, rgba(30, 24, 15, .88), rgba(12, 10, 8, .9));
	border-color: rgba(232, 182, 74, .35);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
	color: var(--m98-text-muted);
	font-size: 15px;
	text-align: center;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.quick-stats .stat-card strong {
	display: block;
	margin-bottom: 4px;
	background: var(--m98-gold-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--m98-font-heading);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
}

/* ---------- Lợi ích (USP) ---------- */
.usp-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.usp-card {
	text-align: center;
}

.usp-card .icon-badge,
.game-card .game-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 16px;
	border: 1px solid rgba(232, 182, 74, .5);
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255, 217, 120, .25), rgba(232, 182, 74, .06));
	font-size: 26px;
	line-height: 1;
}

.usp-card .icon-badge img.emoji,
.game-card .game-icon img.emoji {
	width: 28px !important;
	height: 28px !important;
}

.usp-card p {
	margin: 0;
	color: var(--m98-text-muted);
	font-size: 15px;
}

/* ---------- Các loại game ---------- */
.game-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}

.game-card {
	display: flex;
	flex-direction: column;
	grid-column: span 2;
}

/* 5 thẻ: hàng 2 căn giữa */
.game-card:nth-child(4) { grid-column: 2 / span 2; }
.game-card:nth-child(5) { grid-column: 4 / span 2; }

.game-card .game-icon {
	border-radius: 14px;
}

.game-card > p {
	color: var(--m98-text-muted);
	font-size: 15px;
}

.game-card > p:last-child {
	margin: auto 0 0;
	padding-top: 8px;
}

.game-card .card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--m98-gold);
	font-family: var(--m98-font-heading);
	font-weight: 500;
}

.game-card .card-link::after {
	content: "→";
	transition: transform .2s ease;
}

.game-card .card-link:hover::after {
	transform: translateX(4px);
}

/* ---------- 3 lý do ---------- */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.feature-card .feature-number {
	display: block;
	margin-bottom: 10px;
	background: var(--m98-gold-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--m98-font-heading);
	font-size: 48px;
	font-weight: 600;
	line-height: 1;
	opacity: .9;
}

.feature-card p {
	margin: 0;
	color: var(--m98-text-muted);
	font-size: 15px;
}

/* ---------- 2 cột chữ + khung ---------- */
.split-grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 40px;
	align-items: center;
}

.split-grid > .mission-card,
.split-grid > .info-panel {
	padding: 32px 28px;
	border-color: rgba(232, 182, 74, .35);
	background: linear-gradient(160deg, rgba(232, 182, 74, .1), rgba(255, 255, 255, .02));
}

.info-panel p:last-child {
	margin-bottom: 0;
}

/* Mobile: chỉ có 1 cột chữ -> căn giữa */
#mobile .split-grid {
	grid-template-columns: 1fr;
	text-align: center;
}

#mobile .split-grid > div {
	max-width: 820px;
	margin: 0 auto;
}

#mobile .check-list {
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 32px;
	text-align: left;
}

/* ---------- 3 bước ---------- */
.steps-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	counter-reset: none;
}

.steps-grid::before {
	content: "";
	position: absolute;
	top: 58px;
	left: 16%;
	right: 16%;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(232, 182, 74, .6), transparent);
}

.step-card {
	text-align: center;
}

.step-card .step-number {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--m98-gold-gradient);
	box-shadow: 0 0 0 6px rgba(232, 182, 74, .15), 0 8px 20px rgba(0, 0, 0, .5);
	color: #1a1307;
	font-family: var(--m98-font-heading);
	font-size: 26px;
	font-weight: 600;
}

.step-card p {
	margin: 0;
	color: var(--m98-text-muted);
	font-size: 15px;
}

.center-action {
	margin-top: 32px;
	text-align: center;
}

/* ---------- Khuyến mãi ---------- */
.promo-layout {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: center;
}

.promo-visual .section-image {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid rgba(232, 182, 74, .4);
	border-radius: 18px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 30px rgba(232, 182, 74, .12);
}

/* ---------- Hỗ trợ + chơi có trách nhiệm ---------- */
.support-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.support-card,
.responsible-card {
	padding: 32px 28px;
}

.support-card h2,
.responsible-card h2 {
	font-size: clamp(19px, 2vw, 23px);
}

.responsible-card {
	border-color: rgba(232, 182, 74, .14);
	background: rgba(255, 255, 255, .02);
}

.contact-list strong {
	color: var(--m98-gold-light);
}

/* ---------- FAQ ---------- */
.faq-list {
	max-width: 860px;
	margin: 0 auto;
}

.faq-list details {
	margin: 0 0 12px;
	background: rgba(255, 255, 255, .035);
	border: 1px solid rgba(232, 182, 74, .2);
	border-radius: 14px;
	transition: border-color .2s ease, background .2s ease;
}

.faq-list details[open] {
	background: rgba(232, 182, 74, .07);
	border-color: rgba(232, 182, 74, .5);
}

.faq-list summary {
	position: relative;
	padding: 18px 56px 18px 22px;
	color: var(--m98-text);
	font-family: var(--m98-font-heading);
	font-size: 17px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
	display: none;
}

.faq-list summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border: 1px solid var(--m98-gold);
	border-radius: 50%;
	color: var(--m98-gold);
	font-size: 18px;
	line-height: 24px;
	text-align: center;
	transition: transform .2s ease;
}

.faq-list details[open] summary {
	color: var(--m98-gold-light);
}

.faq-list details[open] summary::after {
	content: "−";
	transform: rotate(180deg);
}

.faq-list details p {
	margin: 0;
	padding: 0 22px 18px;
	color: var(--m98-text-muted);
}

/* ---------- Kêu gọi cuối trang ---------- */
.m98-home > .final-cta > .container {
	padding: 64px 48px;
	text-align: center;
	background:
		radial-gradient(ellipse 70% 90% at 50% 0%, rgba(232, 182, 74, .22), transparent 70%),
		linear-gradient(160deg, rgba(30, 24, 15, .9), rgba(12, 10, 8, .92));
	border-color: rgba(232, 182, 74, .55);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 50px rgba(232, 182, 74, .14);
}

.final-cta h2 {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
}

.final-cta p:not(.eyebrow) {
	max-width: 720px;
	margin: 0 auto 28px;
	color: var(--m98-text-muted);
}

.final-cta .final-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1024px) {
	.usp-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.game-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.game-card,
	.game-card:nth-child(4),
	.game-card:nth-child(5) {
		grid-column: auto;
	}

	.game-card:nth-child(5) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 849px) {
	.m98-home {
		gap: 24px;
	}

	.m98-home > .section > .container,
	.m98-home > .final-cta > .container {
		width: calc(100% - 20px);
		padding: 36px 20px;
		border-radius: 18px;
	}

	.quick-stats .stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.feature-grid,
	.steps-grid,
	.split-grid,
	.promo-layout,
	.support-grid {
		grid-template-columns: 1fr;
	}

	.steps-grid::before {
		display: none;
	}

	.split-grid,
	.promo-layout {
		gap: 24px;
	}

	#mobile .check-list {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 549px) {
	.m98-home > .hero {
		padding-top: 36px;
	}

	.hero .hero-highlight {
		font-size: 15px;
		padding: 6px 16px;
	}

	.hero .hero-subtitle,
	.m98-home .lead {
		font-size: 16px;
	}

	.hero .promo-banner-img {
		border-radius: 14px;
	}

	.quick-stats .stat-card strong {
		font-size: 26px;
	}

	.usp-grid,
	.game-grid {
		grid-template-columns: 1fr;
	}

	.game-card:nth-child(5) {
		grid-column: auto;
	}

	.m98-home .usp-card,
	.m98-home .game-card,
	.m98-home .feature-card,
	.m98-home .step-card {
		padding: 22px 18px;
	}

	.final-cta .final-actions .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.m98-home * {
		transition: none !important;
	}
}
