:root {
	--ink: #0f1d2e;
	--ink-2: #3b4a5c;
	--muted: #6b7a8c;
	--bg: #f4f7f5;
	--card: #ffffff;
	--line: #dfe7e2;
	--night: #0b1724;
	--night-2: #12263a;
	--green: #2fbf71;
	--green-d: #22985a;
	--sky: #3aa0ff;
	--sun: #ffc845;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(15, 29, 46, .08);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--display: "Jockey One", var(--font);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); }
a:hover { color: var(--ink); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
html[lang|="ja"] h1, html[lang|="ja"] h2,
html[lang|="ko"] h1, html[lang|="ko"] h2,
html[lang|="zh"] h1, html[lang|="zh"] h2,
html[lang|="ar"] h1, html[lang|="ar"] h2,
html[lang|="vi"] h1, html[lang|="vi"] h2,
html[lang|="ru"] h1, html[lang|="ru"] h2 { font-family: var(--font); font-weight: 800; letter-spacing: 0; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Navigation */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 23, 36, .92);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 26px; line-height: 1; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--green); font-weight: 400; }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav__links a { color: #c9d6e2; text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.langs { position: relative; }
.langs summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	user-select: none;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.langs[open] summary { background: rgba(255, 255, 255, .1); }
.langs ul {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 8px);
	margin: 0;
	padding: 8px;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	gap: 2px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.langs li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.langs li a:hover { background: var(--bg); }
.langs li a[aria-current] { background: #e6f7ee; color: var(--green-d); font-weight: 700; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(47, 191, 113, .35); }
.btn--primary:hover { background: var(--green-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 8px 16px; font-size: 15px; }

/* Hero with the game */
.hero {
	background:
		radial-gradient(900px 400px at 15% -10%, rgba(47, 191, 113, .25), transparent 60%),
		radial-gradient(800px 380px at 95% 0%, rgba(58, 160, 255, .22), transparent 60%),
		linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
	padding: 22px 0 64px;
}
.game {
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
	height: min(76vh, 720px);
	min-height: 480px;
}
.game iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-bar { display: flex; justify-content: flex-end; margin-top: 12px; }
.game__fs {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	font: 600 14px var(--font);
	color: #fff;
	background: rgba(255, 255, 255, .06);
	cursor: pointer;
}
.game__fs:hover { background: rgba(255, 255, 255, .14); }
.game:fullscreen { border-radius: 0; height: 100%; }
.game__fs svg { width: 16px; height: 16px; }

/* Intro card overlapping the hero */
.intro {
	position: relative;
	margin-top: -40px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 36px clamp(20px, 5vw, 56px);
	text-align: center;
}
.badge {
	display: inline-block;
	padding: 6px 14px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: #e6f7ee;
	color: var(--green-d);
	font-size: 14px;
	font-weight: 700;
}
.intro h1 { font-size: clamp(32px, 4.6vw, 52px); }
.lead { max-width: 820px; margin: 0 auto 26px; color: var(--ink-2); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.share { margin: 28px auto 0; text-align: center; }

/* Sections */
.section { padding: 72px 0 0; }
.section__title { text-align: center; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 32px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: linear-gradient(135deg, #e6f7ee, #e3f1ff); margin-bottom: 14px; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.step {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: center;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	counter-increment: step;
}
.step:nth-child(even) .step__media { order: -1; }
.step__body { padding: 8px clamp(4px, 2vw, 22px); }
.step__body h3 { display: flex; align-items: center; gap: 12px; font-size: 24px; }
.step__body h3::before {
	content: counter(step);
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--green);
	color: #fff;
	font-size: 20px;
	font-family: var(--display);
}
.step__body p { margin: 0; color: var(--ink-2); }
.step__media img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; }
.outro { text-align: center; color: var(--ink-2); margin: 26px 0 0; font-size: 18px; }

.faq { max-width: 860px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	font-weight: 700;
	font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); font-size: 20px; font-weight: 600; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: #e6f7ee; color: var(--green-d); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); }

.about {
	background: var(--night);
	color: #d7e1ea;
	border-radius: 24px;
	padding: clamp(28px, 5vw, 56px);
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 36px;
	align-items: center;
}
.about h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); }
.about p { margin: 0 0 14px; }
.about img { border-radius: 16px; }
.about .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.about .btn--ghost:hover { border-color: #fff; }

/* Inner pages */
.page-head { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; padding: 56px 0 90px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 0; }
.page-head p { color: #b5c4d3; margin: 10px 0 0; }
.page-body { margin-top: -54px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 48px); }
.prose { max-width: 900px; margin-inline: auto; }
.prose h2, .prose h3, .prose h5 { font-family: var(--font); font-weight: 800; font-size: 20px; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.about-page { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.about-page p { color: var(--ink-2); }
.about-page img { border-radius: 16px; }

.notfound { text-align: center; padding: 40px 0; }
.notfound .code { font-family: var(--display); font-size: clamp(90px, 16vw, 160px); line-height: 1; color: var(--green); }

/* Footer */
.footer { margin-top: 80px; background: var(--night); color: #9fb0c1; padding: 48px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 12px; }
.footer p { margin: 0; max-width: 460px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 18px; padding: 0; list-style: none; }
.footer__links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--green); }
.footer__langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.footer__langs a { color: #9fb0c1; text-decoration: none; }
.footer__langs a:hover, .footer__langs a[aria-current] { color: #fff; }
.footer__copy { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding-top: 20px; font-size: 14px; }

/* Contact form wrapper */
.fb-wrap { max-width: 760px; margin: 0 auto; }

@media (max-width: 900px) {
	.nav__links { display: none; }
	.langs { margin-inline-start: auto; }
	.features { grid-template-columns: 1fr; }
	.step, .about, .about-page, .footer__grid { grid-template-columns: 1fr; }
	.step:nth-child(even) .step__media { order: 0; }
	.game { height: 72vh; min-height: 440px; border-radius: 14px; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.wrap { width: calc(100% - 20px); }
	.nav__in { gap: 10px; }
	.brand { font-size: 22px; }
	.brand img { width: 28px; height: 28px; }
	.nav .btn--sm { display: none; }
	.langs summary span { display: none; }
	.langs ul { grid-template-columns: 1fr 1fr; width: min(92vw, 340px); }
	.hero { padding: 10px 0 52px; }
	.game { height: 70vh; min-height: 400px; }
	.intro { padding: 28px 18px; }
	.lead { font-size: 16px; }
	.section { padding-top: 56px; }
	.step { padding: 14px; gap: 14px; }
}

@media print {
	.nav, .footer, .hero, .share { display: none; }
}
