@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

.lotsa-light-home {
	background: linear-gradient(180deg, #2e0854 0%, #1a0a2e 38%, #050520 100%);
	color: #e8e8ed;
}

.lotsa-light-home .jg-page {
	font-family: "Plus Jakarta Sans", sans-serif;
	background: transparent;
}

.jg-hero-banner {
	position: relative;
	background-image:
		linear-gradient(180deg, rgba(26, 10, 46, 0.55) 0%, rgba(5, 5, 32, 0.72) 100%),
		url("../image/hero-bg-128x222.webp");
	background-size: cover, cover;
	background-position: center, top center;
	background-repeat: no-repeat, no-repeat;
}

.jg-bg-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 215, 0, 0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 215, 0, 0.04) 1px, transparent 1px);
	background-size: 40px 40px;
	opacity: 0.12;
}

.jg-bg-glow {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 56rem;
	pointer-events: none;
	background:
		radial-gradient(circle at 14% 15%, rgba(255, 215, 0, 0.14), transparent 38%),
		radial-gradient(circle at 85% 88%, rgba(230, 0, 0, 0.12), transparent 42%),
		radial-gradient(circle at 50% 40%, rgba(0, 168, 89, 0.08), transparent 45%);
}

.deco-circle {
	display: none;
}

.deco-circle--one {
	top: 320px;
	left: -180px;
	width: 540px;
	height: 540px;
	opacity: 0.42;
}

.deco-circle--two {
	bottom: 220px;
	right: -220px;
	width: 640px;
	height: 640px;
	opacity: 0.35;
}

.jg-hero-kicker,
.jg-kicker {
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.72rem;
	color: #ffd700;
	font-weight: 500;
}

.jg-hero-title,
.jg-section-title,
.jg-card-title {
	font-family: "Space Grotesk", sans-serif;
}

.jg-hero-title {
	position: relative;
	line-height: 0.92;
	font-size: clamp(2rem, 6.2vw, 5.2rem);
	margin-top: 1rem;
	font-weight: 700;
	color: #f8fafc;
	text-shadow: 0 2px 24px rgba(255, 215, 0, 0.15);
}

.jg-hero-ghost {
	display: block;
	font-size: clamp(2.8rem, 11vw, 9rem);
	opacity: 0.1;
	margin-top: 0.5rem;
}

.jg-hero-desc {
	max-width: 48rem;
	margin-top: 1.3rem;
	font-size: 1.05rem;
	line-height: 1.8;
	color: #cbd5e1;
}

.jg-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.82rem 1.6rem;
	font-weight: 600;
	font-size: 0.96rem;
	text-decoration: none;
	transition: all 0.45s ease;
}

.jg-cta--primary {
	background: linear-gradient(105deg, #ffd700 0%, #fff000 45%, #ffd700 100%);
	color: #1a0a2e;
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	font-weight: 700;
}

.jg-cta--primary:hover {
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
	box-shadow: 0 20px 44px rgba(255, 215, 0, 0.35);
	transform: translateY(-1px);
}

.jg-cta--secondary {
	background: rgba(5, 5, 32, 0.75);
	color: #f8fafc;
	border: none;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.jg-cta--secondary:hover {
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
	color: #fff000;
	box-shadow: 0 12px 36px rgba(255, 215, 0, 0.12);
}

.jg-glass-card {
	background: rgba(26, 10, 46, 0.55);
	backdrop-filter: blur(30px) saturate(180%);
	-webkit-backdrop-filter: blur(30px) saturate(180%);
	border: none;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
	border-radius: 1.05rem;
	padding: 1.4rem;
	transition: transform 0.6s ease, box-shadow 0.45s ease;
}

.jg-glass-card:hover {
	transform: none;
	box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
}

.jg-metric-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #ffd700;
}

.jg-metric-value {
	margin-top: 0.6rem;
	font-size: clamp(1.8rem, 4.5vw, 2.5rem);
	font-family: "Space Grotesk", sans-serif;
	color: #f8fafc;
}

.jg-metric-note {
	margin-top: 0.6rem;
	color: #94a3b8;
}

.jg-chip {
	display: inline-block;
	font-size: 0.7rem;
	padding: 0.24rem 0.5rem;
	border-radius: 999px;
	background: rgba(230, 0, 0, 0.2);
	color: #fecaca;
	border: none;
	margin-bottom: 0.65rem;
}

.jg-card-title {
	font-size: 1.35rem;
	margin-bottom: 0.65rem;
	color: #f8fafc;
}

.jg-band {
	position: relative;
}

.jg-band--electric {
	margin-top: 0;
	background: transparent;
}

.jg-band--electric .jg-section-title {
	margin-bottom: 0;
}

.jg-band--electric .jg-split-card {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

/* Homepage — Mga Kategorya ng Laro: PC 3 columns, image top / text below */
.jg-cat-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	overflow: hidden;
}

.jg-cat-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #050520;
}

.jg-cat-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jg-cat-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.2rem 1.35rem 1.4rem;
}

.jg-cat-card__body .jg-card-title {
	margin-top: 0.2rem;
	margin-bottom: 0.5rem;
}

.jg-cat-card__body .jg-section-desc {
	margin-top: 0.75rem;
}

.jg-cat-card__cta {
	margin-top: 1rem;
	width: fit-content;
}

.jg-cat-card__media--wide {
	aspect-ratio: 16 / 9;
}

/* Popular games row: was text-only; restore card chrome over section flat style */
.jg-popular-section .jg-glass-card.jg-popular-tile {
	background: rgba(12, 10, 35, 0.72) !important;
	border: 1px solid rgba(148, 163, 184, 0.18) !important;
	border-radius: 1rem;
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.jg-band--dark {
	background: linear-gradient(180deg, #2e0854 0%, #0d0518 100%);
}

.jg-band--dark .jg-glass-card {
	background: rgba(255, 255, 255, 0.08);
	border: 0;
	color: #e2e8f0;
	box-shadow: none;
}

.jg-band--dark .jg-card-title {
	color: #f8fafc;
}

.jg-faq-section .jg-section-title {
	color: #eef2ff;
	margin-bottom: 0.5rem;
}

.jg-faq-section .jg-glass-card {
	background: rgba(5, 5, 32, 0.65);
	border: none;
	border-radius: 1rem;
	padding: 1.3rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.jg-faq-section .jg-section-desc {
	color: rgba(226, 232, 240, 0.92);
	margin-top: 0.7rem;
	line-height: 1.72;
}

/* FAQ 分栏区（Mga Madalas Itanong）：窄屏下防止标题/正文把布局撑出视口 */
.jg-faq-section .mx-auto.max-w-7xl {
	min-width: 0;
	width: 100%;
	max-width: min(100%, 80rem);
}

.jg-faq-section--split .jg-section-title {
	overflow-wrap: break-word;
	word-break: break-word;
}

.jg-faq-side-split,
.jg-faq-side-split__list,
.jg-faq-line,
.jg-faq-side-split__media {
	min-width: 0;
	max-width: 100%;
}

.jg-faq-section--split .jg-faq-line .jg-card-title,
.jg-faq-section--split .jg-faq-line .jg-section-desc {
	overflow-wrap: break-word;
	word-break: break-word;
}

.jg-value-section,
.jg-popular-section,
.jg-safe-section {
	background: transparent;
}

.jg-value-section .jg-section-title,
.jg-popular-section .jg-section-title,
.jg-safe-section .jg-section-title {
	margin-top: 0;
	margin-bottom: 1.1rem;
}

/* Flat blocks: no card panel — text sits on page background */
.jg-value-section .jg-glass-card,
.jg-popular-section .jg-glass-card,
.jg-safe-section .jg-glass-card {
	background: transparent !important;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.jg-value-section .jg-glass-card:hover,
.jg-popular-section .jg-glass-card:hover,
.jg-safe-section .jg-glass-card:hover {
	box-shadow: none !important;
	transform: none;
}

.jg-popular-section .jg-section-desc,
.jg-safe-section .jg-section-desc,
.jg-value-section .jg-section-desc {
	line-height: 1.78;
}

/* Safe / FAQ block: prevent long Tagalog lines from forcing horizontal overflow on narrow screens */
.jg-safe-section > .max-w-7xl {
	min-width: 0;
	width: 100%;
	max-width: min(100%, 80rem);
}

.jg-safe-section .jg-glass-card {
	min-width: 0;
	max-width: 100%;
}

.jg-safe-section .jg-section-title,
.jg-safe-section .jg-section-desc {
	overflow-wrap: break-word;
	word-break: break-word;
}

.jg-extra-faq {
	margin-top: 4rem;
	padding-top: 0;
	min-width: 0;
	max-width: 100%;
}

.jg-extra-faq.lv-faq-accordion,
.jg-extra-faq .mt-6 {
	min-width: 0;
	max-width: 100%;
}

/* theme style.css 里 button 默认 white-space: nowrap，会阻止 FAQ 问句换行并导致移动端撑出视口 */
.jg-faq-item {
	padding-bottom: 0.8rem;
	min-width: 0;
	max-width: 100%;
}

.jg-faq-item + .jg-faq-item {
	margin-top: 1rem;
	padding-top: 1rem;
}

.jg-faq-item:last-child {
	padding-bottom: 0;
}

/* 覆盖 style.css 中 button { white-space: nowrap }，否则长问句整行不折行 */
.jg-faq-trigger,
button.jg-faq-trigger {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 0.75rem;
	align-items: start;
	padding: 0.35rem 0;
	text-align: left;
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	line-height: 1.35;
	color: #f1f5f9;
	background: transparent;
	border: 0;
	cursor: pointer;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.jg-faq-trigger > span:first-child {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.jg-faq-trigger .faq-icon {
	margin-top: 0.12em;
	font-size: 1.45rem;
	line-height: 1;
	color: #ffd700;
	transition: transform 0.35s ease;
	white-space: nowrap;
	justify-self: end;
}

.jg-faq-trigger[aria-expanded="true"] .faq-icon {
	transform: rotate(180deg);
}

.faq-panel--smooth {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.45s ease, opacity 0.35s ease;
}

.faq-panel--smooth.open {
	max-height: 16rem;
	opacity: 1;
}

.jg-faq-answer {
	padding-top: 0.45rem;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

.jg-faq-answer .jg-section-desc {
	margin-top: 0.35rem;
}

.jg-section-title {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	line-height: 1.06;
	color: #f8fafc;
}

.jg-page section .max-w-7xl > .jg-section-title + *,
.jg-page section .max-w-7xl > h2.jg-section-title + * {
	margin-top: 1.75rem;
}

.jg-page section .max-w-7xl > .mt-6 {
	margin-top: 2rem !important;
}

.jg-page section .max-w-7xl > .mt-8 {
	margin-top: 2.5rem !important;
}

.jg-page section .max-w-7xl > .mt-10 {
	margin-top: 2.75rem !important;
}

.jg-page section .max-w-7xl > .mt-12 {
	margin-top: 3.25rem !important;
}

.jg-section-desc {
	margin-top: 1.25rem;
	color: #cbd5e1;
	line-height: 1.8;
}

.jg-section-title + .jg-section-desc {
	margin-top: 1.4rem;
}

.jg-steps {
	padding-left: 1rem;
	display: grid;
	gap: 0.9rem;
	color: #e2e8f0;
}

.jg-value-bullets {
	margin-top: 3.25rem !important;
}

/* Paragraph stacks: flex gap (replaces former space-y-10/12 in markup) */
.jg-section-about .jg-side-split__text,
.jg-value-section .jg-side-split__text {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.jg-section-about .jg-side-split__text,
	.jg-value-section .jg-side-split__text {
		gap: 3rem;
	}
}

.jg-section-about .jg-side-split__text .jg-section-desc,
.jg-value-section .jg-side-split__text .jg-section-desc {
	margin-top: 0;
}

/* 须保留 80rem 上限，勿写 max-width:100%，否则会盖掉 Tailwind 的 max-w-7xl，桌面端会全宽 */
.jg-safe-section .max-w-7xl.grid,
.jg-safe-section .mx-auto.max-w-7xl.grid {
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	min-width: 0;
	max-width: min(100%, 80rem);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	gap: 2.5rem 0 !important;
}

.jg-safe-section .max-w-7xl.grid > .jg-glass-card,
.jg-safe-section .max-w-7xl.grid > article,
.jg-safe-section .mx-auto.max-w-7xl.grid > .jg-glass-card,
.jg-safe-section .mx-auto.max-w-7xl.grid > article {
	min-width: 0;
	max-width: 100%;
}

@media (min-width: 768px) {
	.jg-safe-section .max-w-7xl.grid,
	.jg-safe-section .mx-auto.max-w-7xl.grid {
		gap: 3.25rem 0 !important;
	}
}

.jg-value-section .jg-side-split,
.jg-section-tiwala .jg-side-split {
	margin-top: 2.5rem !important;
}

@media (min-width: 768px) {
	.jg-value-section .jg-side-split,
	.jg-section-tiwala .jg-side-split {
		margin-top: 3rem !important;
	}
}

.jg-glass-card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 0.8rem;
	background: #1a0a2e;
	border: 0;
	object-fit: cover;
}

/* Left–right splits: text left, image right; bottom-align on large screens */
.jg-side-split {
	display: grid;
	gap: 2.5rem 3rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.jg-side-split {
		grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
		gap: 3rem 3.5rem;
		align-items: end;
	}
}

.jg-side-split--stack-left .jg-side-split__text {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.jg-side-split--stack-left .jg-side-split__text {
		gap: 3.25rem;
	}
}

.jg-faq-side-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
	margin-top: 2.5rem;
	width: 100%;
	min-width: 0;
}

@media (min-width: 768px) {
	.jg-faq-side-split {
		margin-top: 3rem;
	}
}

@media (min-width: 1024px) {
	.jg-faq-side-split {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 3rem 3.5rem;
		align-items: end;
	}
}

.jg-faq-side-split__list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.jg-faq-side-split__list {
		gap: 2.75rem;
	}
}

.jg-faq-line .jg-card-title {
	font-size: 1.12rem;
	margin-bottom: 0.4rem;
}

.jg-faq-line .jg-section-desc {
	margin-top: 0.35rem;
}

.jg-faq-side-split__media {
	width: 100%;
}

.jg-side-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(70vh, 520px);
	border-radius: 0.85rem;
	object-fit: cover;
	box-shadow: none;
	background: #0d0518;
}

.jg-faq-section--split .jg-faq-line {
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

.jg-page > section {
	padding-top: 5.5rem;
	padding-bottom: 5.5rem;
}

.jg-page > section.jg-section--spaced,
section.jg-section--spaced {
	padding-top: 6.5rem;
	padding-bottom: 6.5rem;
}

.jg-hero-banner {
	margin-bottom: 0.5rem;
}

.jg-page .jg-hero-banner + section {
	margin-top: 0.5rem;
}

/* Category / popular: larger gutters (overrides utility gap-6) */
.jg-popular-section > .max-w-7xl > .grid,
.jg-band--categories .max-w-7xl > .grid {
	gap: 1.75rem 1.5rem !important;
}

@media (min-width: 640px) {
	.jg-popular-section > .max-w-7xl > .grid,
	.jg-band--categories .max-w-7xl > .grid {
		gap: 2.25rem 1.75rem;
	}
}

@media (min-width: 1024px) {
	.jg-popular-section > .max-w-7xl > .grid,
	.jg-band--categories .max-w-7xl > .grid {
		gap: 2.5rem 2rem;
	}
}

@media (max-width: 768px) {
	.jg-page > section {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.jg-page > section.jg-section--spaced,
	section.jg-section--spaced {
		padding-top: 4.5rem;
		padding-bottom: 4.5rem;
	}

	.jg-extra-faq {
		margin-top: 3rem;
	}

	.jg-hero-banner {
		padding-top: 4.5rem;
		padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
		padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
	}

	.lotsa-light-home .jg-cta {
		min-height: 2.75rem;
		-webkit-tap-highlight-color: rgba(255, 215, 0, 0.12);
	}

	.faq-panel--smooth.open {
		max-height: min(60vh, 28rem);
	}
}

@media (max-width: 480px) {
	.jg-hero-banner .flex.flex-wrap {
		flex-direction: column;
		align-items: stretch;
	}

	.jg-hero-banner .jg-cta {
		width: 100%;
		max-width: 100%;
		text-align: center;
	}

	.jg-cat-card__body .jg-cta--secondary,
	.jg-cat-card__cta {
		width: 100%;
		max-width: 100%;
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 380px) {
	.jg-hero-title {
		font-size: clamp(1.65rem, 7vw, 2.2rem);
	}

	.jg-hero-desc {
		font-size: 0.98rem;
		line-height: 1.7;
	}
}

.jg-split-card {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding: 1.6rem;
}

.jg-split-content {
	display: flex;
	flex-direction: column;
}

.jg-split-content .jg-card-title {
	margin-top: 0.35rem;
	margin-bottom: 0.55rem;
}

.jg-split-content .jg-section-desc {
	margin-top: 0.55rem;
}

.jg-split-content .jg-cta {
	width: fit-content;
}

@media (max-width: 1024px) {
	.deco-circle--one,
	.deco-circle--two {
		display: none;
	}
}

@media (min-width: 1024px) {
	.jg-split-card {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 2.2rem;
		padding: 2rem;
	}

	.jg-split-card--reverse .jg-split-media {
		order: 2;
	}

	.jg-split-card--reverse .jg-split-content {
		order: 1;
	}
}
