@font-face {
	font-family: 'New Comic BD';
	src: url('/fonts/NewComicBD.woff2') format('woff2'),
	     url('/fonts/NewComicBD.woff') format('woff'),
	     url('/fonts/NewComicBD.ttf') format('truetype'),
	     url('/fonts/NewComicBD.otf') format('opentype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* FlyMan Empyrean sleek sky + deep twilight-navy palette */
	--sky-top: #07223d;
	--sky-high: #0c3b66;
	--sky-mid: #1668a8;
	--sky-low: #279df0;
	--sky-haze: #79ccff;

	--gold: #ffaa1d;
	--gold-light: #ffd95a;
	--gold-glow: rgba(255, 191, 64, 0.38);
	--cyan: #4cd6ff;
	--cyan-glow: rgba(76, 214, 255, 0.28);

	--text: #f3f9ff;
	--text-muted: rgba(226, 241, 255, 0.78);
	--text-dim: rgba(204, 228, 252, 0.58);

	--glass: rgba(8, 34, 62, 0.56);
	--glass-strong: rgba(7, 29, 54, 0.82);
	--glass-hover: rgba(13, 52, 92, 0.72);
	--border: rgba(140, 210, 255, 0.20);
	--border-strong: rgba(140, 210, 255, 0.42);

	--nav-height: 62px;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow-card: 0 20px 50px rgba(4, 20, 40, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	--shadow-glow: 0 10px 30px rgba(255, 176, 39, 0.35);

	--font-display: 'New Comic BD', 'Comic Sans MS', system-ui, sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	color: var(--text);
	background: var(--sky-top);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4,
.nav-brand-text, .nav-links a, .btn, .hero-badge,
.stat-item strong, .coming-soon-badge, .loading-title, .loading-pct, .nav-handle-label {
	font-family: var(--font-display);
}

body.page-play {
	overflow: hidden;
	height: 100vh;
	height: 100dvh;
	background: #06182c;
}

/* ---------- atmospheric sky background ---------- */

.sky-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 80% 45% at 85% 4%, rgba(255, 241, 196, 0.28) 0%, transparent 62%),
		radial-gradient(ellipse 65% 50% at 15% 95%, rgba(121, 204, 255, 0.30) 0%, transparent 65%),
		linear-gradient(180deg,
			var(--sky-top) 0%,
			var(--sky-high) 26%,
			var(--sky-mid) 62%,
			var(--sky-low) 88%,
			var(--sky-haze) 100%);
	overflow: hidden;
}

/* Subtle upper-sky starfield shimmer */
.sky-bg::before {
	content: "";
	position: absolute;
	inset: 0 0 55% 0;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.55), transparent),
		radial-gradient(1.5px 1.5px at 28% 10%, rgba(255,255,255,.45), transparent),
		radial-gradient(2px 2px at 48% 22%, rgba(255,255,255,.35), transparent),
		radial-gradient(1.5px 1.5px at 66% 14%, rgba(255,255,255,.5), transparent),
		radial-gradient(1.5px 1.5px at 82% 28%, rgba(255,255,255,.4), transparent),
		radial-gradient(2px 2px at 91% 12%, rgba(255,255,255,.45), transparent),
		radial-gradient(1px 1px at 36% 32%, rgba(255,255,255,.35), transparent);
	opacity: 0.7;
	pointer-events: none;
}

/* Soft sun halo */
.sky-bg::after {
	content: "";
	position: absolute;
	top: -14vmin;
	right: -10vmin;
	width: 48vmin;
	height: 48vmin;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 248, 220, 0.85) 0%, rgba(255, 224, 140, 0.28) 38%, transparent 70%);
	filter: blur(8px);
	pointer-events: none;
}

.cloud {
	position: absolute;
	background:
		radial-gradient(closest-side, rgba(255, 255, 255, 0.92) 94%, transparent 100%) 12% 62% / 46% 62% no-repeat,
		radial-gradient(closest-side, rgba(255, 255, 255, 0.95) 94%, transparent 100%) 42% 30% / 54% 96% no-repeat,
		radial-gradient(closest-side, rgba(255, 255, 255, 0.90) 94%, transparent 100%) 74% 60% / 42% 60% no-repeat,
		radial-gradient(closest-side, rgba(255, 255, 255, 0.88) 94%, transparent 100%) 50% 74% / 92% 44% no-repeat;
	filter: blur(1px);
	will-change: transform;
	animation: drift linear infinite;
}

@keyframes drift {
	from { transform: translateX(-42vw); }
	to   { transform: translateX(126vw); }
}

.c1 { top:  9%; width: 24vw; height: 9vw;  opacity: .22; animation-duration: 145s; animation-delay:  -12s; }
.c2 { top: 24%; width: 34vw; height: 12vw; opacity: .34; animation-duration: 108s; animation-delay: -52s; }
.c3 { top: 52%; width: 20vw; height: 7.5vw; opacity: .20; animation-duration: 165s; animation-delay: -98s; }
.c4 { top: 68%; width: 40vw; height: 14vw; opacity: .40; animation-duration:  86s; animation-delay: -26s; }
.c5 { top: 82%; width: 28vw; height: 10vw; opacity: .28; animation-duration: 122s; animation-delay: -68s; }

body.page-play .sky-bg {
	background:
		radial-gradient(ellipse 75% 60% at 50% 50%, rgba(22, 104, 168, 0.45) 0%, rgba(6, 24, 44, 0.96) 100%);
}
body.page-play .cloud { opacity: .12; }

@media (prefers-reduced-motion: reduce) {
	.cloud { animation: none; transform: translateX(30vw); }
}

/* ---------- sleek glass navigation ---------- */

.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--nav-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 clamp(16px, 4vw, 44px);
	background: rgba(7, 29, 54, 0.72);
	backdrop-filter: blur(20px) saturate(140%);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 8px 32px rgba(3, 14, 28, 0.28);
	transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: var(--text);
	transition: transform 0.16s ease;
}

.nav-brand:hover {
	transform: translateY(-1px);
}

.nav-brand-logo {
	height: 36px;
	width: auto;
	display: block;
	filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.nav-brand-text {
	font-weight: 800;
	font-size: 1.06rem;
	letter-spacing: 0.02em;
	background: linear-gradient(90deg, #ffffff 10%, #a8e4ff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--text-muted);
	font-weight: 600;
	font-size: 0.88rem;
	letter-spacing: 0.015em;
	transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-links a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.09);
}

.nav-links a.active {
	color: #fff;
	background: rgba(76, 214, 255, 0.18);
	box-shadow: inset 0 0 0 1px rgba(76, 214, 255, 0.5);
}

.nav-links a.play-cta {
	background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
	color: #152212;
	font-weight: 800;
	padding: 8px 18px;
	box-shadow: 0 4px 18px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-links a.play-cta:hover,
.nav-links a.play-cta.active {
	background: linear-gradient(135deg, #ffe582 0%, var(--gold-light) 100%);
	color: #152212;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(255, 191, 64, 0.52);
}

.nav-retract-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-left: 4px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-muted);
	cursor: pointer;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}

.nav-retract-btn:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	transform: translateY(-1px);
}

body.page-play .nav-retract-btn {
	display: inline-flex;
}

/* Retractable header mode on /play */
body.page-play.nav-retracted .site-nav {
	transform: translateY(calc(-100% - 4px));
	opacity: 0;
	pointer-events: none;
}

/* Invisible top-edge hover trigger + minimal pull-down tab on /play */
.nav-hover-zone {
	display: none;
}

body.page-play .nav-hover-zone {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 140px;
	height: 14px;
	z-index: 998;
}

.nav-handle {
	display: none;
}

body.page-play .nav-handle {
	position: fixed;
	top: 0;
	left: 14px;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 22px;
	padding: 0 14px;
	border: 1px solid rgba(140, 210, 255, 0.22);
	border-top: 0;
	border-radius: 0 0 12px 12px;
	background: rgba(7, 29, 54, 0.58);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: rgba(240, 248, 255, 0.72);
	cursor: pointer;
	opacity: 0.42;
	transition: opacity 0.2s ease, background 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

body.page-play .nav-handle:hover,
body.page-play .nav-handle:focus-visible {
	opacity: 1;
	background: rgba(10, 42, 76, 0.92);
	color: #fff;
	outline: none;
}

body.page-play:not(.nav-retracted) .nav-handle {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-100%);
}

.nav-handle-label {
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: 10px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.07);
	color: var(--text);
}

.nav-toggle svg { display: block; margin: auto; }

@media (max-width: 860px) {
	.nav-toggle { display: grid; place-items: center; }

	.nav-links {
		position: fixed;
		top: var(--nav-height);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 12px 16px 20px;
		background: rgba(7, 29, 54, 0.97);
		backdrop-filter: blur(18px);
		border-bottom: 1px solid var(--border);
		transform: translateY(-115%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.25s ease, opacity 0.25s ease;
	}

	.nav-links.open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.nav-links a {
		padding: 13px 16px;
		border-radius: 12px;
		font-size: 0.98rem;
		justify-content: center;
	}

	.nav-retract-btn {
		display: none !important;
	}
}

/* ---------- layout ---------- */

.page-wrap {
	padding-top: var(--nav-height);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.page-play .page-wrap {
	padding-top: 0;
	min-height: 100dvh;
	height: 100dvh;
}

.container {
	width: min(1140px, 92vw);
	margin: 0 auto;
}

/* ---------- hero ---------- */

.hero {
	padding: clamp(44px, 7vw, 84px) 0 clamp(32px, 5vw, 56px);
	text-align: center;
	position: relative;
}

.hero-logo-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}

.hero-logo {
	width: clamp(210px, 34vw, 340px);
	height: auto;
	filter: drop-shadow(0 14px 30px rgba(4, 18, 36, 0.55));
	animation: heroFloat 4.8s ease-in-out infinite;
}

@keyframes heroFloat {
	0%, 100% { transform: translateY(0px); }
	50%      { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
	.hero-logo { animation: none; }
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold-light);
	background: rgba(8, 34, 62, 0.58);
	border: 1px solid rgba(255, 217, 90, 0.36);
	backdrop-filter: blur(12px);
	margin-bottom: 18px;
}

.hero-badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 10px #4ade80;
}

.hero h1 {
	margin: 0 auto 16px;
	max-width: 820px;
	font-size: clamp(2.1rem, 5.4vw, 3.55rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-shadow: 0 6px 28px rgba(4, 18, 36, 0.55);
}

.hero h1 em {
	font-style: normal;
	background: linear-gradient(90deg, #ffe98a 0%, var(--gold) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-lead {
	margin: 0 auto 32px;
	max-width: 620px;
	font-size: clamp(1rem, 1.8vw, 1.15rem);
	line-height: 1.68;
	color: var(--text-muted);
}

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

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 14px 28px;
	border-radius: 14px;
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-lg {
	padding: 16px 34px;
	font-size: 1.05rem;
}

.btn-primary {
	background: linear-gradient(135deg, #ffe277 0%, var(--gold) 100%);
	color: #162210;
	box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(255, 176, 39, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-secondary {
	background: var(--glass);
	color: var(--text);
	border: 1px solid var(--border-strong);
	backdrop-filter: blur(14px);
}

.btn-secondary:hover {
	background: var(--glass-hover);
	border-color: rgba(168, 224, 255, 0.65);
	transform: translateY(-2px);
}

/* ---------- stats strip ---------- */

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

@media (max-width: 720px) {
	.stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat-item {
	text-align: center;
	padding: 20px 14px;
	border-radius: var(--radius);
	background: var(--glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-card);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-item:hover {
	transform: translateY(-3px);
	border-color: var(--border-strong);
}

.stat-item strong {
	display: block;
	font-size: 1.48rem;
	font-weight: 800;
	color: var(--gold-light);
	margin-bottom: 4px;
	text-shadow: 0 2px 12px rgba(255, 191, 64, 0.25);
}

.stat-item span {
	font-size: 0.84rem;
	color: var(--text-muted);
	font-weight: 500;
}

/* ---------- sections ---------- */

.section {
	padding: clamp(28px, 4.5vw, 52px) 0;
}

.section-header {
	text-align: center;
	margin-bottom: clamp(24px, 3.8vw, 40px);
}

.section-header h2 {
	margin: 0 0 10px;
	font-size: clamp(1.65rem, 3.4vw, 2.3rem);
	font-weight: 800;
	text-shadow: 0 4px 20px rgba(4, 18, 36, 0.4);
}

.section-header p {
	margin: 0 auto;
	max-width: 560px;
	color: var(--text-muted);
	line-height: 1.65;
	font-size: 1rem;
}

/* ---------- feature bento grid ---------- */

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 18px;
}

.feature-card {
	position: relative;
	padding: 26px 22px;
	border-radius: var(--radius);
	background: var(--glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-card);
	transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
	overflow: hidden;
}

.feature-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 20px;
	right: 20px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(168, 224, 255, 0.45), transparent);
}

.feature-card:hover {
	transform: translateY(-5px);
	border-color: var(--border-strong);
	background: var(--glass-hover);
}

.feature-icon {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	margin-bottom: 16px;
	color: var(--gold-light);
	background: linear-gradient(145deg, rgba(76, 214, 255, 0.20), rgba(14, 62, 112, 0.48));
	border: 1px solid rgba(116, 214, 255, 0.34);
	box-shadow: 0 6px 18px rgba(4, 18, 36, 0.28);
}

.feature-card h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.feature-card p {
	margin: 0;
	font-size: 0.91rem;
	line-height: 1.62;
	color: var(--text-muted);
}

/* ---------- CTA banner ---------- */

.cta-banner {
	margin: 12px auto 12px;
	padding: clamp(32px, 5vw, 52px) clamp(20px, 4vw, 48px);
	border-radius: 24px;
	text-align: center;
	background:
		radial-gradient(circle at 50% 0%, rgba(76, 214, 255, 0.22) 0%, transparent 65%),
		var(--glass-strong);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-card);
}

.cta-banner h2 {
	margin: 0 0 10px;
	font-size: clamp(1.65rem, 3.6vw, 2.35rem);
}

.cta-banner p {
	margin: 0 auto 26px;
	max-width: 520px;
	color: var(--text-muted);
	line-height: 1.6;
}

/* ---------- community cards ---------- */

.social-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.social-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 26px 24px;
	border-radius: var(--radius);
	background: var(--glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-card);
	text-decoration: none;
	color: var(--text);
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	background: var(--glass-hover);
}

.social-card.featured {
	border-color: rgba(114, 137, 218, 0.58);
	background: linear-gradient(155deg, rgba(88, 101, 242, 0.24), var(--glass-strong));
}

.social-card.disabled {
	opacity: 0.62;
	cursor: default;
	pointer-events: none;
}

.social-icon {
	width: 50px;
	height: 50px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	margin-bottom: 16px;
	color: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.social-icon.discord   { background: #5865F2; }
.social-icon.tiktok    { background: #101014; border: 1px solid rgba(255, 255, 255, 0.16); }
.social-icon.youtube   { background: #FF0033; }
.social-icon.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.twitch    { background: #9146FF; }

.social-card h3 {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 700;
}

.social-card p {
	margin: 0 0 18px;
	font-size: 0.91rem;
	line-height: 1.58;
	color: var(--text-muted);
	flex: 1;
}

.social-card .link-label {
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--gold-light);
}

/* ---------- coming soon ---------- */

.coming-soon {
	text-align: center;
	padding: clamp(56px, 10vw, 108px) 0;
}

.coming-soon-card {
	max-width: 600px;
	margin: 0 auto;
	padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 48px);
	border-radius: 24px;
	background: var(--glass);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-card);
}

.coming-soon-icon {
	width: 78px;
	height: 78px;
	border-radius: 22px;
	margin: 0 auto 22px;
	display: grid;
	place-items: center;
	color: var(--gold-light);
	background: linear-gradient(145deg, rgba(76, 214, 255, 0.22), rgba(10, 42, 76, 0.65));
	border: 1px solid var(--border-strong);
	box-shadow: 0 12px 28px rgba(4, 18, 36, 0.35);
}

.coming-soon h1 {
	margin: 0 0 12px;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
}

.coming-soon-badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-light);
	background: rgba(255, 208, 81, 0.15);
	border: 1px solid rgba(255, 208, 81, 0.36);
}

.coming-soon p {
	margin: 0 auto 28px;
	max-width: 480px;
	color: var(--text-muted);
	line-height: 1.66;
	font-size: 1rem;
}

/* ---------- play page (edge-to-edge maximized 4:3 stage) ---------- */

.play-layout {
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
}

.play-stage {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
}

#unity-canvas {
	display: block;
	aspect-ratio: 4 / 3;
	width: min(100vw, calc(100dvh * 4 / 3));
	height: min(100dvh, calc(100vw * 3 / 4));
	max-width: 100vw;
	max-height: 100dvh;
	background: #0b2642;
	border-radius: 0;
	box-shadow: 0 0 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(121, 204, 255, 0.14);
	touch-action: none;
	outline: none;
}

body.fs #unity-canvas {
	box-shadow: none;
}

/* Sleek loading overlay */
#loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	background:
		radial-gradient(ellipse 65% 50% at 50% 42%, rgba(28, 128, 204, 0.38) 0%, rgba(6, 22, 42, 0.94) 100%);
	transition: opacity 0.45s ease;
	z-index: 10;
	padding: 24px;
}

#loading.done { opacity: 0; pointer-events: none; }

.loading-logo {
	width: clamp(170px, 28vw, 270px);
	height: auto;
	filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
	animation: heroFloat 3.4s ease-in-out infinite;
}

.loading-title {
	margin: 0;
	font-size: clamp(16px, 2.4vw, 22px);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

#bar {
	width: min(380px, 72vw);
	height: 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(140, 210, 255, 0.25);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

#bar > div {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 55%, #fff0a8 100%);
	box-shadow: 0 0 14px rgba(255, 204, 72, 0.65);
	transition: width 0.22s ease;
}

#pct {
	font-variant-numeric: tabular-nums;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold-light);
	letter-spacing: 0.04em;
}

#error {
	max-width: min(520px, 86vw);
	padding: 14px 18px;
	border-radius: 12px;
	background: rgba(135, 16, 24, 0.88);
	border: 1px solid rgba(255, 130, 130, 0.35);
	color: #ffe4e6;
	text-align: center;
	line-height: 1.5;
	font-size: 14px;
}

/* Floating minimal bottom-right fullscreen button */
.play-controls {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 8px;
}

#fullscreen {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(140, 210, 255, 0.26);
	border-radius: 11px;
	cursor: pointer;
	background: rgba(7, 29, 54, 0.66);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #e6f4ff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36);
	opacity: 0.45;
	transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

#fullscreen:hover,
#fullscreen:focus-visible {
	opacity: 1;
	background: rgba(14, 56, 98, 0.92);
	border-color: rgba(140, 210, 255, 0.6);
	transform: translateY(-2px);
	outline: none;
}

/* ---------- footer ---------- */

.site-footer {
	padding: 28px 0 36px;
	text-align: center;
	border-top: 1px solid var(--border);
	margin-top: auto;
}

.site-footer p {
	margin: 0;
	font-size: 0.86rem;
	color: var(--text-dim);
}

.site-footer a {
	color: var(--gold-light);
	text-decoration: none;
	font-weight: 600;
}

.site-footer a:hover { text-decoration: underline; }
