:root {
	--bg: #eef3f8;
	--bg-2: #e4edf6;
	--card: #ffffff;
	--ink: #1c2733;
	--muted: #5d6b7a;
	--accent: #2b7de9;
	--shadow: 0 18px 40px rgba(28, 39, 51, 0.08);
	--radius: 24px;
}

* {
	box-sizing: border-box;
}

html, body, div, span, h1, h2, h3, p, a, img, ul, li, iframe {
	margin: 0;
	padding: 0;
	border: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	font-family: Nunito, "Segoe UI", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background:
		radial-gradient(900px 420px at 8% -10%, #dcecff 0%, transparent 60%),
		radial-gradient(800px 360px at 100% 0%, #fff3e6 0%, transparent 50%),
		var(--bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

ul {
	list-style: none;
}

.wrap {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(16px);
	background: rgba(255, 255, 255, 0.82);
	border-bottom: 1px solid rgba(215, 226, 236, 0.8);
}

.topbar-in {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 76px;
}

.logo {
	flex: 0 0 auto;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.04em;
	color: var(--ink);
	text-decoration: none;
}

.logo:hover {
	text-decoration: none;
	color: var(--accent);
}

.games-nav {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	flex: 1 1 auto;
	padding: 8px 2px;
	scrollbar-width: none;
}

.games-nav::-webkit-scrollbar {
	display: none;
}

.games-nav a {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 76px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.games-nav img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 8px 18px rgba(28, 39, 51, 0.12);
	border: 2px solid #fff;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.games-nav a:hover img,
.games-nav .current img {
	transform: translateY(-2px);
	box-shadow: 0 12px 22px rgba(43, 125, 233, 0.22);
}

.games-nav .current {
	color: var(--accent);
}

.games-nav .current img {
	border-color: var(--accent);
}

.info-btn {
	flex: 0 0 auto;
	border: 0;
	background: var(--accent);
	color: #fff;
	font: inherit;
	font-weight: 800;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 999px;
	cursor: pointer;
}

.info-btn:hover {
	filter: brightness(1.05);
}

.page {
	padding: 28px 0 48px;
}

.card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.hero img {
	width: 100%;
	display: block;
	background: var(--bg-2);
}

.game-body,
.article-body {
	padding: 32px 36px 40px;
}

.title {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	letter-spacing: -0.04em;
	margin-bottom: 20px;
}

#game_desc p,
.text p,
.article-body p {
	color: var(--muted);
	margin: 0 0 14px;
}

#game_desc h2,
.article-body h2 {
	margin: 28px 0 10px;
	font-size: 20px;
	letter-spacing: -0.03em;
	color: var(--ink);
}

#game_desc ul,
.policy ul,
.policy ol {
	margin: 0 0 16px 22px;
	color: var(--muted);
}

.policy ul {
	list-style: disc;
}

.policy ol {
	list-style: decimal;
}

.policy li {
	margin: 6px 0;
}

.policy .updated {
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 20px;
}

#game_desc li {
	margin: 6px 0;
}

.video {
	position: relative;
	width: 100%;
	max-width: 720px;
	margin: 24px auto 0;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: #111;
}

.video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.site-footer {
	padding: 8px 0 36px;
	color: var(--muted);
	font-size: 14px;
}

.site-footer .wrap {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.modal {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: calc(100% - 32px);
}

.modal::backdrop {
	background: rgba(18, 28, 40, 0.45);
	backdrop-filter: blur(8px);
}

.modal-card {
	width: min(520px, 100%);
	background: #fff;
	border-radius: 24px;
	box-shadow: var(--shadow);
	padding: 28px 28px 24px;
	position: relative;
}

.modal-card h2 {
	font-size: 24px;
	letter-spacing: -0.04em;
	margin-bottom: 14px;
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--bg);
	color: var(--ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.info-email a {
	cursor: pointer;
	font-weight: 700;
}

@media (max-width: 820px) {
	.game-body,
	.article-body {
		padding: 22px 18px 28px;
	}

	.games-nav a span {
		display: none;
	}

	.games-nav a {
		width: 60px;
	}
}

@media (max-width: 560px) {
	.topbar-in {
		flex-wrap: wrap;
		padding: 10px 0 8px;
	}

	.games-nav {
		order: 3;
		width: 100%;
	}

	.info-btn {
		margin-left: auto;
	}
}
