/*
 * MG99CLUB — หน้าแรกสไตล์เว็บเกม (gx-)
 * ภาษาออกแบบ: แผงมุมตัด (bevel) ขอบนีออน, ปุ่มหนา 3 มิติ, ไฟเรืองชมพู-ม่วง-ทอง
 * โหลดเฉพาะหน้าแรก ต่อท้าย style.css
 */

:root {
	--gx-pink: #ff2e78;
	--gx-pink-2: #f11962;
	--gx-pink-3: #9a0957;
	--gx-violet: #8b2cf5;
	--gx-violet-2: #59104e;
	--gx-gold: #ffd166;
	--gx-gold-2: #ecbd7b;
	--gx-ink: #07000d;
	--gx-panel: #150426;
	--gx-panel-2: #0c0116;
	--gx-line: rgba(255, 255, 255, .1);
	--gx-text: #cfc6da;
	--gx-dim: #9a90a8;
	--gx-cut: 18px;
	--gx-ease: cubic-bezier(.2, .8, .25, 1);
	--gx-font: var(--mg-font, "Kanit", sans-serif);
}

/* รูปทรงมุมตัดแบบ HUD */
.gx-bevel,
.gx-card,
.gx-panel,
.gx-tile,
.gx-deck,
.gx-btn,
.gx-frame {
	clip-path: polygon(var(--gx-cut) 0, 100% 0, 100% calc(100% - var(--gx-cut)), calc(100% - var(--gx-cut)) 100%, 0 100%, 0 var(--gx-cut));
}

/* ---------- พื้นหลังหน้าแรก ---------- */
body {
	background-color: var(--gx-ink);
	background-image:
		radial-gradient(75% 40% at 50% 0, rgba(255, 46, 120, .22), transparent 62%),
		radial-gradient(50% 30% at 92% 18%, rgba(139, 44, 245, .22), transparent 70%),
		radial-gradient(60% 36% at 4% 62%, rgba(89, 16, 78, .34), transparent 72%),
		radial-gradient(70% 40% at 50% 100%, rgba(255, 46, 120, .12), transparent 70%);
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body header.masthead {
	position: relative;
	background-image:
		linear-gradient(180deg, rgba(7, 0, 13, .72) 0%, rgba(7, 0, 13, .86) 65%, var(--gx-ink) 100%),
		url(../img/bg1.webp);
	background-position: top, top;
	background-repeat: repeat-x, repeat-x;
	background-size: auto, 102% 100%;
}

/* ===================== ปุ่ม ===================== */
.gx-btn {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 36px;
	color: #fff;
	font-family: var(--gx-font);
	font-size: clamp(1rem, 2.2vw, 1.14rem);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .02em;
	text-decoration: none;
	text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
	border: 0;
	cursor: pointer;
	transition: transform .18s var(--gx-ease), filter .2s ease;
}

.gx-btn:hover,
.gx-btn:focus-visible {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.1);
	transform: translateY(-3px);
}

.gx-btn:active {
	transform: translateY(0);
}

.gx-btn .mg-icon {
	transition: transform .2s var(--gx-ease);
}

.gx-btn:hover .mg-icon {
	transform: translateX(4px);
}

.gx-btn--pink {
	background-image: linear-gradient(180deg, #ff7aa7 0%, var(--gx-pink) 42%, #b00b4f 100%);
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, .5),
		inset 0 -5px 0 rgba(0, 0, 0, .3),
		0 16px 30px -14px rgba(255, 46, 120, .95);
}

.gx-btn--gold {
	color: #3a2600;
	background-image: linear-gradient(180deg, #fff3b8 0%, var(--gx-gold) 42%, #a97c16 100%);
	text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, .65),
		inset 0 -5px 0 rgba(0, 0, 0, .22),
		0 16px 30px -14px rgba(255, 209, 102, .9);
}

.gx-btn--gold:hover,
.gx-btn--gold:focus-visible {
	color: #3a2600;
}

.gx-btn--ghost {
	color: var(--gx-gold);
	background: rgba(255, 255, 255, .05);
	box-shadow: inset 0 0 0 2px rgba(255, 209, 102, .45), inset 0 2px 0 rgba(255, 255, 255, .1);
}

.gx-btn--ghost:hover,
.gx-btn--ghost:focus-visible {
	color: #fff;
	background: rgba(255, 46, 120, .18);
	box-shadow: inset 0 0 0 2px rgba(255, 46, 120, .7), 0 16px 30px -16px rgba(255, 46, 120, .9);
}

.gx-btn--lg {
	padding: 18px 48px;
	font-size: clamp(1.05rem, 2.4vw, 1.28rem);
}

/* ===================== ป้ายกำกับ / หัวข้อ ===================== */
.gx-tag {
	/* flex + fit-content เพื่อให้ป้ายอยู่บรรทัดของตัวเองเสมอ ไม่ไหลไปต่อกับหัวข้อ */
	display: flex;
	align-items: center;
	gap: 9px;
	width: fit-content;
	margin: 0 0 14px;
	padding: 6px 16px;
	color: var(--gx-gold);
	font-family: var(--gx-font);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	background: rgba(255, 209, 102, .08);
	border: 1px solid rgba(255, 209, 102, .3);
	border-radius: 999px;
}

.gx-tag i {
	width: 7px;
	height: 7px;
	background: var(--gx-pink);
	border-radius: 50%;
	box-shadow: 0 0 10px var(--gx-pink);
	animation: gx-blink 1.6s ease-in-out infinite;
}

@keyframes gx-blink {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: .25;
	}
}

.gx-head {
	margin-bottom: clamp(24px, 3.5vw, 40px);
	text-align: center;
	font-family: var(--gx-font);
}

.gx-head .gx-tag {
	margin-right: auto;
	margin-left: auto;
}

.gx-head__title {
	position: relative;
	display: inline-block;
	margin: 0;
	padding-bottom: 14px;
	color: #fff;
	font-size: clamp(1.55rem, 4.4vw, 2.5rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.01em;
	text-shadow: 0 0 30px rgba(255, 46, 120, .55), 0 2px 10px rgba(0, 0, 0, .6);
}

.gx-head__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 110px;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--gx-pink), var(--gx-gold), transparent);
	box-shadow: 0 0 16px rgba(255, 46, 120, .9);
	transform: translateX(-50%);
}

.gx-head__sub {
	max-width: 700px;
	margin: 14px auto 0;
	color: var(--gx-dim);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.85;
}

.gx-neon {
	color: #fff;
	text-shadow:
		0 0 8px rgba(255, 46, 120, .9),
		0 0 26px rgba(255, 46, 120, .65),
		0 0 48px rgba(139, 44, 245, .5);
}

/* ===================== แผง / การ์ดมุมตัด ===================== */
.gx-card,
.gx-panel,
.gx-deck,
.gx-tile {
	position: relative;
	background: linear-gradient(150deg, rgba(255, 46, 120, .75), rgba(139, 44, 245, .4) 48%, rgba(255, 209, 102, .6));
	font-family: var(--gx-font);
	transition: transform .28s var(--gx-ease), filter .28s ease;
}

.gx-card::before,
.gx-panel::before,
.gx-deck::before,
.gx-tile::before {
	content: "";
	position: absolute;
	inset: 2px;
	z-index: 0;
	background:
		radial-gradient(120% 70% at 50% 0, rgba(255, 46, 120, .16), transparent 60%),
		linear-gradient(170deg, var(--gx-panel) 0%, var(--gx-panel-2) 100%);
	clip-path: polygon(calc(var(--gx-cut) - 2px) 0, 100% 0, 100% calc(100% - var(--gx-cut) + 2px), calc(100% - var(--gx-cut) + 2px) 100%, 0 100%, 0 calc(var(--gx-cut) - 2px));
}

.gx-card > *,
.gx-panel > *,
.gx-deck > *,
.gx-tile > * {
	position: relative;
	z-index: 1;
}

.gx-card:hover,
.gx-deck:hover,
.gx-tile:hover {
	filter: drop-shadow(0 18px 30px rgba(255, 46, 120, .45));
	transform: translateY(-6px);
}

/* ===================== HERO ===================== */
.gx-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(28px, 5vw, 64px) 0 clamp(26px, 4vw, 48px);
	font-family: var(--gx-font);
}

.gx-hero__bg {
	position: absolute;
	inset: -12% -6%;
	pointer-events: none;
}

.gx-hero__aurora {
	position: absolute;
	border-radius: 50%;
	filter: blur(72px);
	will-change: transform;
}

.gx-hero__aurora--1 {
	top: -10%;
	left: -6%;
	width: 46vw;
	max-width: 520px;
	aspect-ratio: 1;
	background: rgba(255, 46, 120, .55);
	animation: gx-drift 16s ease-in-out infinite;
}

.gx-hero__aurora--2 {
	top: 4%;
	right: -8%;
	width: 40vw;
	max-width: 460px;
	aspect-ratio: 1;
	background: rgba(139, 44, 245, .45);
	animation: gx-drift 21s ease-in-out infinite reverse;
}

.gx-hero__aurora--3 {
	bottom: -26%;
	left: 34%;
	width: 42vw;
	max-width: 500px;
	aspect-ratio: 1;
	background: rgba(255, 209, 102, .22);
	animation: gx-drift 26s ease-in-out infinite;
}

/* ลำแสงเฉียงแบบเกม */
.gx-hero__beam {
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(112deg, transparent 0 56px, rgba(255, 255, 255, .035) 56px 58px),
		repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, .022) 46px 47px);
	-webkit-mask-image: radial-gradient(75% 70% at 50% 42%, #000 20%, transparent 78%);
	mask-image: radial-gradient(75% 70% at 50% 42%, #000 20%, transparent 78%);
}

@keyframes gx-drift {
	0%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	50% {
		transform: translate3d(30px, -26px, 0) scale(1.1);
	}
}

.gx-hero__inner {
	display: grid;
	position: relative;
	z-index: 2;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(20px, 4vw, 48px);
	align-items: center;
}

.gx-hero__logo {
	width: min(380px, 70vw);
	height: auto;
	filter: drop-shadow(0 14px 34px rgba(255, 46, 120, .6));
}

.gx-hero__title {
	max-width: 560px;
	margin: 16px 0 0;
	color: #fff;
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	font-weight: 300;
	line-height: 1.8;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .85);
}

.gx-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: clamp(18px, 2.6vw, 28px);
}

.gx-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: clamp(20px, 3vw, 30px) 0 0;
	padding: 0;
	list-style: none;
}

.gx-stats li {
	display: flex;
	position: relative;
	flex-direction: column;
	padding-left: 16px;
}

.gx-stats li::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--gx-gold), var(--gx-pink));
	box-shadow: 0 0 12px rgba(255, 46, 120, .8);
}

.gx-stats b {
	color: #fff;
	font-size: clamp(1.25rem, 3vw, 1.7rem);
	font-weight: 600;
	line-height: 1.1;
	text-shadow: 0 0 18px rgba(255, 46, 120, .7);
}

.gx-stats span {
	color: var(--gx-dim);
	font-size: .82rem;
	font-weight: 300;
}

/* กรอบรูปฝั่งขวา */
.gx-hero__art {
	position: relative;
}

/* กรอบนีออนเป็นฉากหลัง เล็กกว่าภาพ เพื่อให้ตัวละครทะลุออกมานอกกรอบ */
.gx-frame {
	position: absolute;
	inset: 12% 13% 10% 14%;
	z-index: 1;
	background: linear-gradient(145deg, #ff2e78 0%, rgba(139, 44, 245, .95) 48%, #ffd166 100%);
	filter:
		drop-shadow(0 0 20px rgba(139, 44, 245, .6))
		drop-shadow(0 18px 36px rgba(255, 46, 120, .35));
	pointer-events: none;
}

.gx-frame::before {
	content: "";
	position: absolute;
	inset: 3px;
	background:
		radial-gradient(85% 75% at 50% 100%, rgba(139, 44, 245, .55), transparent 72%),
		radial-gradient(70% 55% at 50% 0, rgba(255, 46, 120, .28), transparent 70%),
		linear-gradient(170deg, #1d0536, #0b0114);
	clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

/* ตัวละคร: ลอยอยู่เหนือกรอบ ไม่ถูกตัดขอบ */
.gx-hero__char {
	display: block;
	position: relative;
	z-index: 2;
	width: 100%;
	height: auto;
	filter:
		drop-shadow(0 22px 30px rgba(0, 0, 0, .55))
		drop-shadow(0 0 46px rgba(255, 46, 120, .38));
	animation: gx-float 6s ease-in-out infinite;
}

@keyframes gx-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

@media (max-width: 991.98px) {
	.gx-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}

	.gx-hero__copy {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.gx-hero__art {
		max-width: 420px;
		margin: 0 auto;
	}

	.gx-hero__cta,
	.gx-stats {
		justify-content: center;
	}

	.gx-stats li {
		align-items: flex-start;
		text-align: left;
	}
}

/* ===================== ข้อความวิ่ง ===================== */
.gx-ticker {
	position: relative;
	z-index: 2;
	overflow: hidden;
	padding: 11px 0;
	background: linear-gradient(90deg, rgba(20, 2, 32, .9), rgba(60, 6, 60, .9) 50%, rgba(20, 2, 32, .9));
	border-top: 1px solid rgba(255, 46, 120, .3);
	border-bottom: 1px solid rgba(255, 46, 120, .3);
	box-shadow: 0 0 30px -10px rgba(255, 46, 120, .7);
	font-family: var(--gx-font);
}

.gx-ticker__track {
	display: flex;
	align-items: center;
	gap: 26px;
	width: max-content;
	animation: gx-marquee 34s linear infinite;
}

.gx-ticker__item {
	color: #ffe6f0;
	font-size: .95rem;
	font-weight: 300;
	white-space: nowrap;
}

.gx-ticker__dot {
	width: 6px;
	height: 6px;
	background: var(--gx-gold);
	border-radius: 50%;
	box-shadow: 0 0 10px var(--gx-gold);
}

@keyframes gx-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* ===================== แถบวิ่ง "ถอนล่าสุด" ===================== */
.gx-wd {
	position: relative;
	z-index: 2;
	padding: clamp(14px, 2.2vw, 22px) 0 0;
	font-family: var(--gx-font);
}

.gx-wd__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 8px 8px;
	background:
		radial-gradient(120% 200% at 0 50%, rgba(255, 46, 120, .22), transparent 60%),
		linear-gradient(90deg, rgba(20, 2, 32, .92), rgba(46, 6, 46, .8) 50%, rgba(20, 2, 32, .92));
	border: 1px solid rgba(255, 46, 120, .26);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 16px 34px -26px #000;
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.gx-wd__label {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	color: #fff;
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .02em;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
	background: linear-gradient(180deg, #ff5c97, var(--gx-pink-2) 50%, #8c0845);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 8px 18px -8px rgba(255, 46, 120, .95);
	clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

/* ไฟสถานะสีเขียวกะพริบ = กำลังอัปเดต */
.gx-wd__label i {
	width: 7px;
	height: 7px;
	background: #7cffb2;
	border-radius: 50%;
	box-shadow: 0 0 9px #7cffb2;
	animation: gx-blink 1.4s ease-in-out infinite;
}

.gx-wd__viewport {
	flex: 1;
	overflow: hidden;
	min-width: 0;

	/* ให้ขอบซ้าย-ขวาค่อย ๆ จางแทนการตัดตรง ๆ */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.gx-wd__track {
	display: flex;
	align-items: center;
	gap: 10px;
	width: max-content;
	animation: gx-wd-run 42s linear infinite;
}

@keyframes gx-wd-run {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

.gx-wd:hover .gx-wd__track {
	animation-play-state: paused;
}

.gx-wd__item {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 10px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
	border: 1px solid rgba(255, 255, 255, .11);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
	white-space: nowrap;
}

.gx-wd__ic {
	flex-shrink: 0;
	filter: drop-shadow(0 0 6px rgba(124, 255, 178, .55));
}

.gx-wd__user {
	color: #fff;
	font-size: .86rem;
	font-weight: 500;
	letter-spacing: .01em;
}

.gx-wd__txt {
	color: var(--gx-dim);
	font-size: .8rem;
	font-weight: 300;
}

.gx-wd__amt {
	color: var(--gx-gold);
	font-size: .95rem;
	font-weight: 600;
	text-shadow: 0 0 12px rgba(255, 209, 102, .55);
}

.gx-wd__ago {
	padding-left: 8px;
	color: #8a8095;
	font-size: .72rem;
	font-weight: 300;
	border-left: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 767.98px) {
	.gx-wd__bar {
		gap: 8px;
		padding: 7px 8px 7px 7px;
	}

	.gx-wd__label {
		padding: 7px 12px;
		font-size: .74rem;
	}

	.gx-wd__item {
		gap: 7px;
		padding: 6px 12px 6px 9px;
	}

	.gx-wd__user {
		font-size: .8rem;
	}

	.gx-wd__txt {
		font-size: .74rem;
	}

	.gx-wd__amt {
		font-size: .88rem;
	}

	.gx-wd__ago {
		display: none;
	}
}

@media (max-width: 479.98px) {
	.gx-wd__label span,
	.gx-wd__label {
		font-size: .72rem;
	}

	.gx-wd__label {
		padding: 7px 10px;
	}
}

/* ===================== ปุ่มลัด ===================== */
.gx-quick {
	position: relative;
	z-index: 2;
	padding: clamp(22px, 3.4vw, 38px) 0 0;
}

.gx-quick__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.gx-tile {
	--gx-cut: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 18px 10px 16px;
	color: #fff;
	text-align: center;
	text-decoration: none;
}

.gx-tile img {
	width: 46px;
	height: auto;
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6));
}

.gx-tile span {
	font-size: .95rem;
	font-weight: 500;
}

.gx-tile:hover,
.gx-tile:focus-visible {
	color: #fff;
	text-decoration: none;
}

.gx-tile--pink {
	background: linear-gradient(150deg, #ff2e78, #9a0957);
}

.gx-tile--pink::before {
	background: linear-gradient(170deg, #3a0524, #140210);
}

.gx-tile--violet {
	background: linear-gradient(150deg, #8b2cf5, #3d0a63);
}

.gx-tile--violet::before {
	background: linear-gradient(170deg, #22063a, #110120);
}

.gx-tile--gold {
	background: linear-gradient(150deg, #ffd166, #8a6319);
}

.gx-tile--gold::before {
	background: linear-gradient(170deg, #2e2206, #140d01);
}

.gx-tile--green {
	background: linear-gradient(150deg, #06c755, #064d25);
}

.gx-tile--green::before {
	background: linear-gradient(170deg, #042b17, #01140a);
}

@media (max-width: 575.98px) {
	.gx-quick__grid {
		gap: 8px;
	}

	.gx-tile {
		padding: 14px 6px 12px;
	}

	.gx-tile img {
		width: 36px;
	}

	.gx-tile span {
		font-size: .8rem;
	}
}

/* ===================== จุดเด่น + รางวัล ===================== */
.gx-feat {
	position: relative;
	z-index: 2;
	padding: clamp(22px, 3.4vw, 40px) 0 0;
}

.gx-feat__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gx-feat__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 26px 16px 22px;
	text-align: center;
}

.gx-card__no {
	position: absolute;
	top: 12px;
	right: 16px;
	z-index: 1;
	color: rgba(255, 255, 255, .13);
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: .05em;
}

.gx-feat__item img {
	width: auto;
	max-width: 92px;
	height: auto;
	filter: drop-shadow(0 10px 18px rgba(255, 46, 120, .5));
	transition: transform .3s var(--gx-ease);
}

.gx-feat__item:hover img {
	transform: translateY(-4px) scale(1.06);
}

.gx-feat__item b {
	color: #fff;
	font-size: 1.08rem;
	font-weight: 500;
	line-height: 1.5;
}

.gx-feat__item span {
	color: var(--gx-dim);
	font-size: .93rem;
	font-weight: 300;
	line-height: 1.65;
}

.gx-awards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.gx-awards img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .3s var(--gx-ease), filter .3s ease;
}

.gx-awards img:hover {
	filter: drop-shadow(0 12px 22px rgba(255, 46, 120, .6));
	transform: translateY(-5px);
}

@media (max-width: 767.98px) {
	.gx-feat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.gx-feat__item {
		padding: 18px 10px 16px;
	}

	.gx-feat__item img {
		max-width: 64px;
	}

	.gx-feat__item b {
		font-size: .95rem;
	}

	.gx-feat__item span {
		font-size: .82rem;
	}

	.gx-card__no {
		top: 8px;
		right: 10px;
		font-size: 1.05rem;
	}
}

/* ===================== แท็บหมวด ===================== */
.gx-tabs {
	position: relative;
	z-index: 2;
	padding-top: clamp(22px, 3.4vw, 40px);
	padding-bottom: clamp(16px, 2.6vw, 28px);
}

.gx-tabs__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 7px;
	list-style: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
	border: 1px solid rgba(255, 46, 120, .22);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 16px 34px -26px #000;
}

.gx-tabs__item {
	display: flex;
	position: relative;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 12px 4px 10px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .25s ease, transform .25s var(--gx-ease), box-shadow .3s ease;
	font-family: var(--gx-font);
}

.gx-tabs__item:hover {
	background: rgba(255, 255, 255, .07);
	transform: translateY(-2px);
}

.gx-tabs__item.active {
	background: linear-gradient(180deg, #ff5c97, var(--gx-pink-2) 45%, #8c0845);
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, .4),
		inset 0 -4px 0 rgba(0, 0, 0, .28),
		0 14px 28px -14px rgba(255, 46, 120, 1);
}

.gx-tabs__item img {
	width: auto;
	height: 48px;
	transition: transform .3s var(--gx-ease), filter .3s ease;
}

.gx-tabs__item:hover img {
	transform: scale(1.08);
}

.gx-tabs__item.active img {
	filter: drop-shadow(0 0 12px rgba(255, 255, 255, .55));
}

.gx-tabs__item span {
	color: rgba(255, 255, 255, .72);
	font-size: .9rem;
	font-weight: 500;
	transition: color .25s ease;
}

.gx-tabs__item.active span {
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

@media (max-width: 575.98px) {
	.gx-tabs__list {
		gap: 3px;
		padding: 5px;
	}

	.gx-tabs__item {
		padding: 9px 2px 8px;
	}

	.gx-tabs__item img {
		height: 36px;
	}

	.gx-tabs__item span {
		font-size: .76rem;
	}
}

.tabcontent {
	animation: gx-in .45s var(--gx-ease);
}

@keyframes gx-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ===================== บทนำ ===================== */
.gx-intro {
	padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 2.4vw, 26px);
	text-align: center;
	font-family: var(--gx-font);
}

.gx-intro__title {
	max-width: 940px;
	margin: 0 auto;
	color: var(--gx-text);
	font-size: clamp(1.15rem, 2.7vw, 1.75rem);
	font-weight: 400;
	line-height: 1.75;
}

/* ===================== การ์ดจุดขาย ===================== */
.gx-decks {
	padding: clamp(26px, 4vw, 48px) 0;
}

.gx-decks__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

/* การ์ดแบนเนอร์: ภาพเป็นพื้นหลังเต็มใบ ข้อความทับฝั่งตรงข้ามตัวละคร */
.gx-deck {
	display: flex;
	align-items: center;
	overflow: hidden;
	min-height: clamp(300px, 30vw, 400px);
}

.gx-deck__cover {
	display: block;
	position: absolute;
	inset: 2px;
	z-index: 0;
	overflow: hidden;
	margin: 0;
	clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

/* แสงเรืองหลังตัวละคร */
.gx-deck__cover::before {
	content: "";
	position: absolute;
	top: 50%;
	width: 52%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(255, 46, 120, .4), rgba(139, 44, 245, .22) 46%, transparent 70%);
	transform: translateY(-50%);
	filter: blur(6px);
}

.gx-deck--text-left .gx-deck__cover::before {
	right: 4%;
	left: auto;
}

.gx-deck--text-right .gx-deck__cover::before {
	right: auto;
	left: 4%;
}

.gx-deck__cover img {
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	width: 64%;
	height: 100%;
	object-fit: contain;
	transition: transform .6s var(--gx-ease);
}

.gx-deck--text-left .gx-deck__cover img {
	right: 0;
	transform-origin: right center;
}

.gx-deck--text-right .gx-deck__cover img {
	left: 0;
	transform-origin: left center;
}

.gx-deck:hover .gx-deck__cover img {
	transform: scale(1.05);
}

/* ม่านไล่สีเฉพาะฝั่งข้อความ ไม่บังตัวละคร */
.gx-deck__cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(7, 0, 13, .94) 0%, rgba(7, 0, 13, .74) 38%, rgba(7, 0, 13, .28) 58%, transparent 76%);
}

.gx-deck--text-right .gx-deck__cover::after {
	background: linear-gradient(270deg, rgba(7, 0, 13, .94) 0%, rgba(7, 0, 13, .74) 38%, rgba(7, 0, 13, .28) 58%, transparent 76%);
}

.gx-deck__no {
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 4px 16px;
	color: #fff;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .08em;
	background: linear-gradient(180deg, #ff5c97, var(--gx-pink-2) 50%, #8c0845);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 18px -8px rgba(255, 46, 120, .95);
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.gx-deck__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 48%;
	padding: clamp(22px, 3vw, 40px) clamp(20px, 3vw, 44px);
}

.gx-deck--text-right .gx-deck__body {
	margin-left: auto;
}

.gx-deck__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(1.12rem, 2.4vw, 1.5rem);
	font-weight: 600;
	line-height: 1.5;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .9), 0 0 26px rgba(255, 46, 120, .5);
}

.gx-deck__body p {
	margin: 0;
	color: #cfc6da;
	font-size: .97rem;
	font-weight: 300;
	line-height: 1.9;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

/* มือถือ: ภาพอยู่ครึ่งบน ข้อความทับลงมาที่ครึ่งล่าง */
@media (max-width: 767.98px) {
	.gx-deck {
		align-items: flex-end;
		min-height: 430px;
	}

	.gx-deck__cover img,
	.gx-deck--text-left .gx-deck__cover img,
	.gx-deck--text-right .gx-deck__cover img {
		right: 0;
		left: 0;
		width: 100%;
		height: 56%;
		object-position: center top;
	}

	.gx-deck__cover::before,
	.gx-deck--text-left .gx-deck__cover::before,
	.gx-deck--text-right .gx-deck__cover::before {
		top: 25%;
		right: auto;
		left: 50%;
		width: 84%;
		transform: translate(-50%, -50%);
	}

	.gx-deck__cover::after,
	.gx-deck--text-right .gx-deck__cover::after {
		background: linear-gradient(180deg, transparent 0%, rgba(7, 0, 13, .12) 34%, rgba(7, 0, 13, .8) 52%, rgba(7, 0, 13, .97) 68%);
	}

	.gx-deck__body,
	.gx-deck--text-right .gx-deck__body {
		width: 100%;
		margin: 0;
		padding: 18px 20px 24px;
	}

	.gx-deck__no {
		margin-bottom: 10px;
	}
}

/* ===================== แนะนำเว็บ + สารบัญ ===================== */
.gx-about {
	padding: clamp(26px, 4vw, 48px) 0;
}

.gx-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.gx-panel {
	padding: clamp(22px, 3vw, 34px);
}

.gx-about__title {
	margin: 0 0 14px;
	color: var(--gx-gold);
	font-size: clamp(1.15rem, 2.5vw, 1.5rem);
	font-weight: 600;
	line-height: 1.55;
}

.gx-about__main p {
	margin: 0 0 1.1em;
	color: var(--gx-text);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.95;
}

.gx-about__main p:last-child {
	margin-bottom: 0;
}

.gx-toc {
	overflow: hidden;

	/* ล้างค่า .accordion เดิม (margin auto ทำให้คอลัมน์หดตามเนื้อหา) */
	max-width: none;
	margin: 0;
	padding: 0;
}

.gx-toc__head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 18px 20px;
	color: var(--gx-gold);
	font-family: var(--gx-font);
	font-size: 1.05rem;
	font-weight: 500;
	text-align: left;
	background: linear-gradient(180deg, rgba(255, 46, 120, .18), transparent);
	border: 0;
	cursor: pointer;
}

.gx-toc__head > span {
	flex: 1;
}

.gx-toc__head:hover {
	color: #fff;
}

.gx-toc__list {
	margin: 0;
	padding: 6px 20px 20px 44px;
	color: var(--gx-text);
	font-size: .96rem;
	font-weight: 300;
	line-height: 1.75;
}

.gx-toc__list li {
	margin-bottom: 10px;
	padding-left: 4px;
}

.gx-toc__list li::marker {
	color: var(--gx-pink);
	font-weight: 600;
}

/* เครื่องหมาย + / − */
.gx-sign {
	position: relative;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;
	transition: background-color .25s ease, transform .3s var(--gx-ease);
}

.gx-sign::before,
.gx-sign::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--gx-gold);
	transition: transform .3s var(--gx-ease), opacity .25s ease;
}

.gx-sign::before {
	width: 12px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.gx-sign::after {
	width: 2px;
	height: 12px;
	transform: translate(-50%, -50%);
}

[aria-expanded="true"] .gx-sign {
	background: rgba(255, 46, 120, .4);
	transform: rotate(180deg);
}

[aria-expanded="true"] .gx-sign::after {
	opacity: 0;
}

@media (max-width: 991.98px) {
	.gx-about__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ===================== บทความแนะนำ ===================== */
.gx-seo {
	padding: clamp(20px, 3vw, 34px) 0;
}

.gx-seo__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.gx-seo__title {
	position: relative;
	margin: 0 0 12px;
	padding-left: 16px;
	color: var(--gx-gold);
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	font-weight: 600;
	line-height: 1.6;
}

.gx-seo__title::before {
	content: "";
	position: absolute;
	top: .3em;
	bottom: .15em;
	left: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--gx-gold), var(--gx-pink));
	box-shadow: 0 0 12px rgba(255, 46, 120, .8);
}

.gx-seo__item p {
	margin: 0;
	color: var(--gx-dim);
	font-size: .98rem;
	font-weight: 300;
	line-height: 1.95;
}

@media (max-width: 767.98px) {
	.gx-seo__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ===================== FAQ ===================== */
.gx-faq {
	padding: clamp(40px, 6vw, 74px) 0;
}

.gx-faq__list {
	display: grid;
	gap: 12px;
	max-width: 900px;
	margin: 0 auto;
}

.gx-faq__item {
	--gx-cut: 14px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(150deg, rgba(255, 46, 120, .5), rgba(139, 44, 245, .3) 50%, rgba(255, 209, 102, .4));
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
	font-family: var(--gx-font);
}

.gx-faq__item::before {
	content: "";
	position: absolute;
	inset: 2px;
	z-index: 0;
	background: linear-gradient(170deg, var(--gx-panel), var(--gx-panel-2));
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.gx-faq__q,
.gx-faq__a {
	position: relative;
	z-index: 1;
}

.gx-faq__q {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 18px 22px;
	color: var(--gx-gold);
	font-size: clamp(1rem, 2.2vw, 1.08rem);
	font-weight: 500;
	line-height: 1.6;
	cursor: pointer;
	transition: color .2s ease;
}

.gx-faq__q > span {
	flex: 1;
}

.gx-faq__q:hover,
.gx-faq__q[aria-expanded="true"] {
	color: #fff;
}

.gx-faq__a {
	padding: 0 22px 20px;
	color: var(--gx-text);
	font-size: .98rem;
	font-weight: 300;
	line-height: 1.95;
}

.gx-faq__a p {
	margin: 0 0 10px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.gx-faq__a ul {
	margin: 0;
	padding-left: 1.2em;
}

.gx-faq__a li {
	margin-bottom: .5em;
}

.gx-faq__a li::marker {
	color: var(--gx-pink);
}

/* ===================== CTA ===================== */
.gx-cta {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 6vw, 80px) 0;
	background:
		linear-gradient(180deg, rgba(7, 0, 13, .72) 0%, rgba(7, 0, 13, .25) 42%, rgba(7, 0, 13, .95) 100%),
		url(../img/review-cover-bg.webp);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.gx-cta::before,
.gx-cta::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gx-pink), var(--gx-gold), transparent);
	opacity: .8;
}

.gx-cta::before {
	top: 0;
}

.gx-cta::after {
	bottom: 0;
}

.gx-cta__inner {
	position: relative;
	text-align: center;
}

.gx-cta__art {
	max-width: min(540px, 86vw);
	height: auto;
	filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .85));
	animation: gx-float 6.5s ease-in-out infinite;
}

.gx-cta .gx-btn {
	margin-top: clamp(16px, 2.6vw, 26px);
}

@media (max-width: 767.98px) {
	.gx-cta {
		background-image:
			linear-gradient(180deg, rgba(7, 0, 13, .7) 0%, rgba(7, 0, 13, .3) 42%, rgba(7, 0, 13, .95) 100%),
			url(../img/reviewmo-cover-bg.webp);
	}
}

/* ===================== รีวิว ===================== */
.gx-rev {
	padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 4vw, 48px);
}

.gx-rev__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gx-rev__item {
	--gx-cut: 14px;
	padding: 20px 22px;
}

.gx-rev__item:first-child {
	grid-column: span 2;
}

.gx-rev__head {
	display: flex;
	align-items: center;
	gap: 13px;
	padding-bottom: 13px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.gx-rev__head > img {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border: 2px solid rgba(255, 209, 102, .55);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(255, 209, 102, .1);
}

.gx-rev__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gx-rev__who b {
	color: #fff;
	font-size: .96rem;
	font-weight: 500;
}

.gx-rev__who small {
	overflow: hidden;
	color: var(--gx-dim);
	font-size: .74rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gx-rev__stars {
	display: inline-flex;
	flex-shrink: 0;
	gap: 2px;
	margin-left: auto;
	color: var(--gx-gold);
	filter: drop-shadow(0 0 7px rgba(255, 209, 102, .8));
}

.gx-rev__item p {
	margin: 13px 0 0;
	color: var(--gx-text);
	font-size: .98rem;
	font-weight: 300;
	line-height: 1.9;
}

.gx-rev__more {
	margin-top: clamp(22px, 3vw, 34px);
	text-align: center;
}

@media (max-width: 991.98px) {
	.gx-rev__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gx-rev__item:first-child {
		grid-column: span 2;
	}
}

@media (max-width: 575.98px) {
	.gx-rev__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gx-rev__item:first-child {
		grid-column: auto;
	}

	.gx-rev__head {
		flex-wrap: wrap;
	}

	.gx-rev__stars {
		margin-left: 0;
	}
}

/* ===================== บทความล่าสุด ===================== */
.gx-posts {
	padding: clamp(40px, 6vw, 76px) 0 clamp(30px, 4vw, 50px);
	font-family: var(--gx-font);
}

.gx-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gx-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.gx-post__cover {
	display: block;
	position: relative;
	overflow: hidden;
	margin: 2px 2px 0;
	aspect-ratio: 16 / 9;
	background: #12030f;
}

.gx-post__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s var(--gx-ease);
}

.gx-post:hover .gx-post__cover img {
	transform: scale(1.06);
}

/* ไล่เงาให้ภาพกลืนกับเนื้อการ์ด */
.gx-post__cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 0, 13, .15) 0%, transparent 42%, rgba(21, 4, 38, .92) 100%);
	pointer-events: none;
}

.gx-post__cover .mg-cover__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 12%;
	background:
		radial-gradient(70% 90% at 50% 0, rgba(255, 46, 120, .4), transparent 70%),
		linear-gradient(153deg, #1a0320 0%, #600030 100%);
}

.gx-post__cover .mg-cover__fallback img {
	width: auto;
	max-width: 68%;
	height: auto;
	object-fit: contain;
}

.gx-post__cat {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 13px;
	color: #fff;
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .02em;
	background: linear-gradient(180deg, #ff5c97, var(--gx-pink-2) 50%, #8c0845);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 18px -8px rgba(255, 46, 120, .95);
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.gx-post__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px 20px 20px;
}

.gx-post__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--gx-gold);
	font-size: .8rem;
}

.gx-post__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: color .2s ease;
}

.gx-post__link {
	color: inherit;
	text-decoration: none;
}

/* คลิกได้ทั้งการ์ด */
.gx-post__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.gx-post:hover .gx-post__title,
.gx-post__link:focus-visible {
	color: var(--gx-gold);
}

.gx-post:has(.gx-post__link:focus-visible) {
	outline: 2px solid var(--gx-gold);
	outline-offset: 3px;
}

.gx-post__text {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--gx-dim);
	font-size: .93rem;
	font-weight: 300;
	line-height: 1.8;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.gx-post__more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 6px;
	color: var(--gx-pink);
	font-size: .9rem;
	font-weight: 500;
}

.gx-post__more .mg-icon {
	transition: transform .25s var(--gx-ease);
}

.gx-post:hover .gx-post__more .mg-icon {
	transform: translateX(5px);
}

.gx-posts__more {
	margin-top: clamp(24px, 3vw, 36px);
	text-align: center;
}

@media (max-width: 991.98px) {
	.gx-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* มือถือ: 2 คอลัมน์ ตัดคำโปรยออกเพราะการ์ดแคบ เหลือภาพ-หมวด-วันที่-หัวข้อ */
@media (max-width: 575.98px) {
	.gx-posts {
		padding-top: 30px;
	}

	.gx-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.gx-post {
		--gx-cut: 10px;
	}

	.gx-post__cover {
		margin: 2px 2px 0;
	}

	.gx-post__cat {
		top: 7px;
		left: 7px;
		padding: 3px 9px;
		font-size: .63rem;
		clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
	}

	.gx-post__body {
		gap: 5px;
		padding: 10px 12px 13px;
	}

	.gx-post__date {
		gap: 4px;
		font-size: .68rem;
	}

	.gx-post__title {
		font-size: .88rem;
		line-height: 1.5;
		-webkit-line-clamp: 3;
	}

	.gx-post__text {
		display: none;
	}

	.gx-post__more {
		padding-top: 2px;
		font-size: .76rem;
	}

	.gx-posts__more {
		margin-top: 20px;
	}
}

@media (max-width: 359.98px) {
	.gx-posts__grid {
		gap: 8px;
	}

	.gx-post__body {
		padding: 9px 10px 12px;
	}

	.gx-post__title {
		font-size: .82rem;
	}
}

/* ===================== แท็บอื่น ===================== */
.gx-pane {
	padding: clamp(40px, 6vw, 80px) 0;
}

.gx-qr {
	text-align: center;
}

.gx-qr img {
	padding: 12px;
	background: linear-gradient(180deg, #fff, #e9dcff);
	box-shadow: 0 0 36px -10px rgba(255, 209, 102, .8);
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.gx-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gx-steps__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 28px 20px 24px;
	text-align: center;
}

.gx-steps__no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	background: linear-gradient(180deg, #ff5c97, var(--gx-pink-2) 50%, #8c0845);
	border-radius: 50%;
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 10px 20px -8px rgba(255, 46, 120, .95);
}

.gx-steps__item img {
	width: auto;
	max-width: 104px;
	height: auto;
	filter: drop-shadow(0 10px 18px rgba(255, 46, 120, .45));
}

.gx-steps__item b {
	color: #fff;
	font-size: 1.08rem;
	font-weight: 500;
}

.gx-steps__item span {
	color: var(--gx-dim);
	font-size: .93rem;
	font-weight: 300;
	line-height: 1.7;
}

.gx-widgets {
	padding: clamp(18px, 3vw, 32px) 0;
}

@media (max-width: 767.98px) {
	.gx-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =====================================================================
 * โหมดมือถือ — จัดจังหวะ/ขนาดใหม่ทั้งหน้า
 * ===================================================================== */
@media (max-width: 767.98px) {
	:root {
		--gx-cut: 12px;
	}

	/* เว้นที่ให้แถบเมนูล่างที่ลอยอยู่ */
	body {
		padding-bottom: 84px;
	}

	.container {
		padding-right: 14px;
		padding-left: 14px;
	}

	/* ---------- HERO: ข้อความ-ปุ่มมาก่อน ภาพตามหลัง ---------- */
	.gx-hero {
		padding: 16px 0 22px;
	}

	.gx-hero__inner {
		gap: 16px;
	}

	.gx-hero__logo {
		width: min(255px, 64vw);
	}

	.gx-hero__title {
		margin-top: 10px;
		font-size: .95rem;
		line-height: 1.7;
	}

	.gx-hero__cta {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		width: 100%;
		margin-top: 16px;
	}

	.gx-btn {
		padding: 13px 12px;
		font-size: .98rem;
	}

	.gx-stats {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
		margin-top: 16px;
	}

	.gx-stats li {
		padding-left: 10px;
	}

	.gx-stats b {
		font-size: 1.12rem;
	}

	.gx-stats span {
		font-size: .7rem;
		line-height: 1.35;
	}

	.gx-hero__art {
		max-width: 330px;
	}

	.gx-frame {
		inset: 10% 10% 9% 11%;
	}

	/* ---------- ข้อความวิ่ง ---------- */
	.gx-ticker {
		padding: 8px 0;
	}

	.gx-ticker__item {
		font-size: .82rem;
	}

	/* ---------- ปุ่มลัด ---------- */
	.gx-quick {
		padding-top: 18px;
	}

	.gx-quick__grid {
		gap: 8px;
	}

	.gx-tile {
		--gx-cut: 10px;
		padding: 12px 4px 11px;
		gap: 6px;
	}

	.gx-tile img {
		width: 34px;
	}

	.gx-tile span {
		font-size: .73rem;
	}

	/* ---------- จุดเด่น + รางวัล ---------- */
	.gx-feat {
		padding-top: 16px;
	}

	.gx-feat__grid {
		gap: 10px;
	}

	.gx-feat__item {
		gap: 4px;
		padding: 16px 10px 14px;
	}

	.gx-feat__item img {
		max-width: 58px;
	}

	.gx-feat__item b {
		font-size: .92rem;
		line-height: 1.45;
	}

	.gx-feat__item span {
		font-size: .78rem;
		line-height: 1.55;
	}

	.gx-card__no {
		top: 7px;
		right: 9px;
		font-size: .95rem;
	}

	.gx-awards {
		gap: 6px;
		margin-top: 10px;
	}

	/* ---------- แท็บ ---------- */
	.gx-tabs {
		padding-top: 18px;
		padding-bottom: 14px;
	}

	/* ---------- หัวข้อส่วน ---------- */
	.gx-head {
		margin-bottom: 20px;
	}

	.gx-head__title {
		padding-bottom: 10px;
		font-size: 1.38rem;
	}

	.gx-head__title::after {
		width: 84px;
		height: 3px;
	}

	.gx-head__sub {
		font-size: .9rem;
		line-height: 1.7;
	}

	.gx-tag {
		margin-bottom: 10px;
		padding: 5px 12px;
		font-size: .7rem;
		letter-spacing: .12em;
	}

	/* ---------- บทนำ ---------- */
	.gx-intro {
		padding: 26px 0 8px;
	}

	.gx-intro__title {
		font-size: 1.05rem;
		line-height: 1.75;
	}

	.gx-intro__title br {
		display: none;
	}

	/* ---------- การ์ดแบนเนอร์ ---------- */
	.gx-decks {
		padding: 18px 0;
	}

	.gx-decks__grid {
		gap: 14px;
	}

	.gx-deck {
		min-height: 0;
	}

	/* ครอปให้ตัวละครเต็มแถบบน ไม่เหลือขอบว่าง */
	.gx-deck__cover img,
	.gx-deck--text-left .gx-deck__cover img,
	.gx-deck--text-right .gx-deck__cover img {
		height: 215px;
		object-fit: cover;
	}

	.gx-deck--b1 .gx-deck__cover img {
		object-position: 74% 40%;
	}

	.gx-deck--b2 .gx-deck__cover img {
		object-position: 26% 40%;
	}

	.gx-deck--b3 .gx-deck__cover img {
		object-position: 62% 40%;
	}

	.gx-deck--b4 .gx-deck__cover img {
		object-position: 30% 40%;
	}

	.gx-deck__cover::after,
	.gx-deck--text-right .gx-deck__cover::after {
		background: linear-gradient(180deg, transparent 0%, rgba(7, 0, 13, .1) 48%, rgba(7, 0, 13, .86) 70%, rgba(7, 0, 13, .99) 86%);
	}

	.gx-deck__cover::before,
	.gx-deck--text-left .gx-deck__cover::before,
	.gx-deck--text-right .gx-deck__cover::before {
		top: 108px;
		width: 80%;
	}

	.gx-deck__body,
	.gx-deck--text-right .gx-deck__body {
		padding: 190px 18px 20px;
	}

	.gx-deck__title {
		font-size: 1.08rem;
		line-height: 1.55;
	}

	.gx-deck__body p {
		font-size: .92rem;
		line-height: 1.8;
	}

	.gx-deck__no {
		margin-bottom: 10px;
		font-size: .78rem;
	}

	/* ---------- แผงเนื้อหา ---------- */
	.gx-panel {
		padding: 18px 16px;
	}

	.gx-about {
		padding: 16px 0;
	}

	.gx-about__grid {
		gap: 14px;
	}

	.gx-about__title {
		font-size: 1.05rem;
		line-height: 1.6;
	}

	.gx-about__main p {
		font-size: .92rem;
		line-height: 1.85;
	}

	.gx-toc__head {
		padding: 14px 16px;
		font-size: .98rem;
	}

	.gx-toc__list {
		padding: 4px 16px 16px 36px;
		font-size: .9rem;
	}

	.gx-toc__list li {
		margin-bottom: 8px;
	}

	.gx-seo {
		padding: 14px 0;
	}

	.gx-seo__grid {
		gap: 14px;
	}

	.gx-seo__title {
		margin-bottom: 10px;
		font-size: 1rem;
	}

	.gx-seo__item p {
		font-size: .9rem;
		line-height: 1.85;
	}

	/* ---------- FAQ ---------- */
	.gx-faq {
		padding: 30px 0;
	}

	.gx-faq__list {
		gap: 10px;
	}

	.gx-faq__q {
		gap: 10px;
		padding: 15px 16px;
		font-size: .95rem;
	}

	.gx-faq__a {
		padding: 0 16px 16px;
		font-size: .9rem;
		line-height: 1.85;
	}

	.gx-sign {
		width: 26px;
		height: 26px;
	}

	/* ---------- CTA ---------- */
	.gx-cta {
		padding: 30px 0 34px;
	}

	.gx-cta__art {
		max-width: 84vw;
	}

	.gx-btn--lg {
		padding: 14px 34px;
		font-size: 1rem;
	}

	/* ---------- รีวิว ---------- */
	.gx-rev {
		padding: 30px 0 18px;
	}

	.gx-rev__grid {
		gap: 10px;
	}

	.gx-rev__item {
		padding: 16px;
	}

	.gx-rev__head > img {
		width: 44px;
		height: 44px;
	}

	.gx-rev__who b {
		font-size: .88rem;
	}

	.gx-rev__who small {
		font-size: .68rem;
	}

	.gx-rev__item p {
		margin-top: 11px;
		font-size: .92rem;
		line-height: 1.8;
	}

	/* ---------- แท็บอื่น ---------- */
	.gx-pane {
		padding: 30px 0;
	}

	.gx-steps__item {
		padding: 20px 16px 18px;
	}

	.gx-steps__item img {
		max-width: 86px;
	}

	.gx-steps__item b {
		font-size: 1rem;
	}

	.gx-steps__item span {
		font-size: .86rem;
	}
}

/* =====================================================================
 * เอฟเฟ็กต์เพิ่มเติม
 * ===================================================================== */

/* ---------- เผยเนื้อหาตอนเลื่อนมาถึง (คลาสใส่โดย js/mg-home.js) ---------- */
.gx-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .75s var(--gx-ease), transform .75s var(--gx-ease);
	will-change: opacity, transform;
}

.gx-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ขีดใต้หัวข้อวิ่งออกตอนเผย */
.gx-head__title::after {
	transform-origin: center;
	transition: transform .8s .2s var(--gx-ease), opacity .5s .2s ease;
}

.gx-head.gx-reveal .gx-head__title::after {
	opacity: 0;
	transform: translateX(-50%) scaleX(0);
}

.gx-head.gx-reveal.is-in .gx-head__title::after {
	opacity: 1;
	transform: translateX(-50%) scaleX(1);
}

/* ---------- ดาวกะพริบในส่วนหัว ---------- */
.gx-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.6px 1.6px at 12% 24%, rgba(255, 255, 255, .9), transparent),
		radial-gradient(1.4px 1.4px at 28% 68%, rgba(255, 209, 102, .85), transparent),
		radial-gradient(1.8px 1.8px at 46% 16%, rgba(255, 255, 255, .75), transparent),
		radial-gradient(1.4px 1.4px at 63% 52%, rgba(255, 150, 190, .9), transparent),
		radial-gradient(1.6px 1.6px at 78% 28%, rgba(255, 255, 255, .8), transparent),
		radial-gradient(1.4px 1.4px at 88% 64%, rgba(255, 209, 102, .8), transparent),
		radial-gradient(1.5px 1.5px at 36% 86%, rgba(255, 255, 255, .7), transparent),
		radial-gradient(1.5px 1.5px at 70% 88%, rgba(255, 150, 190, .75), transparent);
	animation: gx-twinkle 3.6s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes gx-twinkle {
	from {
		opacity: .35;
	}

	to {
		opacity: 1;
	}
}

/* ---------- โลโก้ลอยเบา ๆ ---------- */
.gx-hero__logo {
	animation: gx-float 5.5s ease-in-out infinite;
}

/* ---------- ไฟวิ่งรอบกรอบรูปในส่วนหัว ---------- */
.gx-frame::before {
	z-index: 1;
}

.gx-hero__char {
	z-index: 2;
}

.gx-frame::after {
	content: "";
	position: absolute;
	inset: -60%;
	z-index: 0;
	background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, .65) 22deg, transparent 54deg, transparent 360deg);
	animation: gx-orbit 5s linear infinite;
	pointer-events: none;
}

@keyframes gx-orbit {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- แสงกวาดผ่านการ์ดตอน hover ---------- */
.gx-tile::after,
.gx-feat__item::after,
.gx-steps__item::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	z-index: 2;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
	opacity: 0;
	transform: skewX(-18deg);
	pointer-events: none;
}

.gx-tile:hover::after,
.gx-feat__item:hover::after,
.gx-steps__item:hover::after {
	animation: gx-sheen .85s var(--gx-ease) forwards;
}

@keyframes gx-sheen {
	0% {
		left: -60%;
		opacity: 0;
	}

	35% {
		opacity: 1;
	}

	100% {
		left: 120%;
		opacity: 0;
	}
}

/* ---------- แสงหลังตัวละครเต้นตอน hover ---------- */
.gx-deck:hover .gx-deck__cover::before {
	animation: gx-glow 1.8s ease-in-out infinite alternate;
}

@keyframes gx-glow {
	from {
		opacity: .75;
		filter: blur(6px);
	}

	to {
		opacity: 1;
		filter: blur(14px);
	}
}

/* ---------- ปุ่มหลักหายใจ ---------- */
.gx-btn--pink {
	animation: gx-breathe 2.8s ease-in-out infinite;
}

@keyframes gx-breathe {
	0%,
	100% {
		box-shadow:
			inset 0 2px 0 rgba(255, 255, 255, .5),
			inset 0 -5px 0 rgba(0, 0, 0, .3),
			0 16px 30px -14px rgba(255, 46, 120, .95);
	}

	50% {
		box-shadow:
			inset 0 2px 0 rgba(255, 255, 255, .5),
			inset 0 -5px 0 rgba(0, 0, 0, .3),
			0 20px 42px -12px rgba(255, 46, 120, 1),
			0 0 28px -6px rgba(255, 46, 120, .8);
	}
}

/* ---------- ปุ่มสมัครสมาชิก: เน้นให้สะดุดตาที่สุดในหน้า ---------- */
.gx-btn--hot {
	animation: gx-hot 2.4s ease-in-out infinite;
}

/* วงแหวนแสงกระเพื่อมออก + เต้นเบา ๆ */
@keyframes gx-hot {
	0%,
	100% {
		box-shadow:
			inset 0 2px 0 rgba(255, 255, 255, .5),
			inset 0 -5px 0 rgba(0, 0, 0, .3),
			0 16px 30px -14px rgba(255, 46, 120, .95),
			0 0 0 0 rgba(255, 46, 120, .55);
		transform: scale(1);
	}

	50% {
		box-shadow:
			inset 0 2px 0 rgba(255, 255, 255, .6),
			inset 0 -5px 0 rgba(0, 0, 0, .3),
			0 22px 44px -12px rgba(255, 46, 120, 1),
			0 0 0 12px rgba(255, 46, 120, 0);
		transform: scale(1.04);
	}
}

/* แสงกวาดผ่านเองทุก ๆ 3 วินาที ไม่ต้องรอ hover */
.gx-btn--hot::after {
	animation: gx-hot-sheen 3.2s ease-in-out infinite;
}

@keyframes gx-hot-sheen {
	0%,
	58% {
		left: -60%;
		opacity: 0;
	}

	66% {
		opacity: 1;
	}

	100% {
		left: 120%;
		opacity: 0;
	}
}

/* ตอนชี้/โฟกัส หยุดเต้นเพื่อให้ปุ่มยกตัวตามปกติ */
.gx-btn--hot:hover,
.gx-btn--hot:focus-visible {
	animation: none;
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, .6),
		inset 0 -5px 0 rgba(0, 0, 0, .3),
		0 26px 48px -12px rgba(255, 46, 120, 1),
		0 0 0 4px rgba(255, 46, 120, .25);
}

/* ---------- ขีดใต้แท็บที่เลือกเรืองเต้น ---------- */
.gx-tabs__item.active::after {
	animation: gx-line-glow 2.2s ease-in-out infinite alternate;
}

@keyframes gx-line-glow {
	from {
		box-shadow: 0 0 8px rgba(255, 46, 120, .7);
	}

	to {
		box-shadow: 0 0 18px rgba(255, 209, 102, 1);
	}
}

/* ---------- หยุดข้อความวิ่งเมื่อชี้ ---------- */
.gx-ticker:hover .gx-ticker__track {
	animation-play-state: paused;
}

/* ===================== ลดการเคลื่อนไหว ===================== */
@media (prefers-reduced-motion: reduce) {
	.gx-hero__aurora,
	.gx-hero__char,
	.gx-frame::after,
	.gx-cta__art,
	.gx-ticker__track,
	.gx-wd__track,
	.gx-wd__label i,
	.gx-tag i,
	.tabcontent,
	.gx-hero__bg::after,
	.gx-hero__logo,
	.gx-btn--pink,
	.gx-btn--hot,
	.gx-btn--hot::after,
	.gx-tabs__item.active::after,
	.gx-tile:hover::after,
	.gx-feat__item:hover::after,
	.gx-steps__item:hover::after,
	.gx-deck:hover .gx-deck__cover::before {
		animation: none;
	}

	/* เนื้อหาต้องแสดงทันที ไม่ต้องรอเผย */
	.gx-reveal,
	.gx-head.gx-reveal .gx-head__title::after {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.gx-head.gx-reveal .gx-head__title::after {
		transform: translateX(-50%);
	}

	.gx-btn,
	.gx-card,
	.gx-panel,
	.gx-deck,
	.gx-tile,
	.gx-tabs__item,
	.gx-awards img,
	.gx-feat__item img,
	.gx-deck__cover img {
		transition: none;
	}

	.gx-btn:hover,
	.gx-card:hover,
	.gx-deck:hover,
	.gx-tile:hover,
	.gx-tabs__item:hover,
	.gx-awards img:hover,
	.gx-feat__item:hover img,
	.gx-deck:hover .gx-deck__cover img {
		transform: none;
	}
}

/* =====================================================================
 * บังคับเปิดเอฟเฟ็กต์ แม้เครื่องผู้ใช้ตั้งค่า "ลดการเคลื่อนไหว" ไว้
 * ทำงานเมื่อ body มีคลาส gx-force-motion เท่านั้น
 * (เปิดด้วย add_filter( 'mg99club_force_motion', '__return_true' ); ใน functions.php)
 * บล็อกนี้ต้องอยู่ท้ายไฟล์ เพื่อให้ทับกฎ prefers-reduced-motion ด้านบน
 * ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	body.gx-force-motion .gx-hero__aurora--1 {
		animation: gx-drift 16s ease-in-out infinite;
	}

	body.gx-force-motion .gx-hero__aurora--2 {
		animation: gx-drift 21s ease-in-out infinite reverse;
	}

	body.gx-force-motion .gx-hero__aurora--3 {
		animation: gx-drift 26s ease-in-out infinite;
	}

	body.gx-force-motion .gx-hero__bg::after {
		animation: gx-twinkle 3.6s ease-in-out infinite alternate;
	}

	body.gx-force-motion .gx-hero__logo {
		animation: gx-float 5.5s ease-in-out infinite;
	}

	body.gx-force-motion .gx-hero__char {
		animation: gx-float 6s ease-in-out infinite;
	}

	body.gx-force-motion .gx-frame::after {
		animation: gx-orbit 5s linear infinite;
	}

	body.gx-force-motion .gx-ticker__track {
		animation: gx-marquee 34s linear infinite;
	}

	body.gx-force-motion .gx-wd__track {
		animation: gx-wd-run 42s linear infinite;
	}

	body.gx-force-motion .gx-wd__label i,
	body.gx-force-motion .gx-tag i {
		animation: gx-blink 1.4s ease-in-out infinite;
	}

	body.gx-force-motion .gx-btn--pink {
		animation: gx-breathe 2.8s ease-in-out infinite;
	}

	body.gx-force-motion .gx-btn--hot {
		animation: gx-hot 2.4s ease-in-out infinite;
	}

	body.gx-force-motion .gx-btn--hot::after {
		animation: gx-hot-sheen 3.2s ease-in-out infinite;
	}

	body.gx-force-motion .gx-tabs__item.active::after {
		animation: gx-line-glow 2.2s ease-in-out infinite alternate;
	}

	body.gx-force-motion .gx-cta__art {
		animation: gx-float 6.5s ease-in-out infinite;
	}

	body.gx-force-motion .tabcontent {
		animation: gx-in .45s var(--gx-ease);
	}

	/* เนื้อหาค่อย ๆ ปรากฏตอนเลื่อนถึง */
	body.gx-force-motion .gx-reveal {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity .75s var(--gx-ease), transform .75s var(--gx-ease);
	}

	body.gx-force-motion .gx-reveal.is-in {
		opacity: 1;
		transform: none;
	}

	body.gx-force-motion .gx-head.gx-reveal .gx-head__title::after {
		opacity: 0;
		transform: translateX(-50%) scaleX(0);
		transition: transform .8s .2s var(--gx-ease), opacity .5s .2s ease;
	}

	body.gx-force-motion .gx-head.gx-reveal.is-in .gx-head__title::after {
		opacity: 1;
		transform: translateX(-50%) scaleX(1);
	}

	/* คืนทรานซิชันของการ์ด/ปุ่ม */
	body.gx-force-motion .gx-btn,
	body.gx-force-motion .gx-card,
	body.gx-force-motion .gx-panel,
	body.gx-force-motion .gx-deck,
	body.gx-force-motion .gx-tile,
	body.gx-force-motion .gx-tabs__item,
	body.gx-force-motion .gx-awards img,
	body.gx-force-motion .gx-feat__item img,
	body.gx-force-motion .gx-deck__cover img,
	body.gx-force-motion .gx-post__cover img {
		transition: transform .3s var(--gx-ease), filter .28s ease, box-shadow .3s ease, border-color .3s ease;
	}

	body.gx-force-motion .gx-tile:hover::after,
	body.gx-force-motion .gx-feat__item:hover::after,
	body.gx-force-motion .gx-steps__item:hover::after {
		animation: gx-sheen .85s var(--gx-ease) forwards;
	}
}
