/* AYO website: dark charcoal, coral-red → ember accent, bento layout, smooth motion */
:root {
	--bg: #0f0f13;
	--card: rgba(26, 26, 33, 0.72);
	--card-solid: #1a1a21;
	--line: rgba(255, 255, 255, 0.08);
	--line-2: rgba(255, 255, 255, 0.14);
	--text: #f1f1f4;
	--muted: #a6a6b3;
	--red: #ff4d5a;
	--red-deep: #d1323f;
	--ember: #ff8a5c;
	--gold: #f5c542;
	--ok: #3ddc84;
	--grad: linear-gradient(100deg, var(--red), var(--ember));
	--radius: 20px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--display: 'Russo One', Impact, sans-serif;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font: 500 16px/1.6 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
	color: var(--text);
	background: var(--bg);
	overflow-x: hidden;
}

a {
	color: inherit;
}

h1,
h2,
h3 {
	margin: 0 0 0.6rem;
	font-family: var(--display);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.08;
}

.skip {
	position: absolute;
	left: -999px;
	top: 0.5rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--red);
	color: #fff;

	&:focus {
		left: 0.5rem;
	}
}

:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 3px;
}

[hidden] {
	display: none !important;
}

/* ---------- ambient background ---------- */
.ambient {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.orb {
	position: absolute;
	width: 46vmax;
	height: 46vmax;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.22;
	animation: orb 26s ease-in-out infinite alternate;

	&.o1 {
		left: -12vmax;
		top: -14vmax;
		background: var(--red);
	}

	&.o2 {
		right: -16vmax;
		top: 20vh;
		background: var(--ember);
		opacity: 0.14;
		animation-duration: 32s;
		animation-delay: -8s;
	}

	&.o3 {
		left: 30vw;
		bottom: -26vmax;
		background: #7c3aed;
		opacity: 0.1;
		animation-duration: 38s;
		animation-delay: -14s;
	}
}

.grid-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 46px 46px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 46px 46px;
	mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}

.cursor-glow {
	position: fixed;
	left: 0;
	top: 0;
	z-index: -1;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 77, 90, 0.13), transparent 65%);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 0.9rem 1rem;
	transition: padding 0.3s var(--ease);

	&.scrolled {
		padding: 0.5rem 1rem;
	}
}

.nav-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: 74rem;
	margin: 0 auto;
	padding: 0.55rem 0.7rem 0.55rem 1rem;
	background: rgba(20, 20, 26, 0.65);
	border: 1px solid var(--line);
	border-radius: 16px;
	backdrop-filter: blur(16px) saturate(140%);
	transition:
		background 0.3s,
		box-shadow 0.3s;

	.scrolled & {
		background: rgba(20, 20, 26, 0.88);
		box-shadow: 0 14px 40px -20px rgba(0, 0, 0, 0.9);
	}
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	font-family: var(--display);
	letter-spacing: 0.12em;

	img {
		mix-blend-mode: screen;
		filter: drop-shadow(0 0 10px rgba(255, 77, 90, 0.5));
	}

	b {
		margin-left: 0.3rem;
		font-weight: 400;
		background: var(--grad);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}

#nav {
	display: flex;
	gap: 0.2rem;
	flex: 1;

	a {
		position: relative;
		padding: 0.45rem 0.8rem;
		border-radius: 10px;
		text-decoration: none;
		font-weight: 600;
		color: var(--muted);
		transition:
			color 0.2s,
			background 0.2s;

		&:hover {
			color: var(--text);
			background: rgba(255, 255, 255, 0.05);
		}

		&.active {
			color: var(--text);
			background: rgba(255, 77, 90, 0.12);

			&::after {
				content: '';
				position: absolute;
				left: 50%;
				bottom: 2px;
				width: 16px;
				height: 2px;
				border-radius: 2px;
				background: var(--grad);
				transform: translateX(-50%);
			}
		}
	}
}

.session {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.menu-btn {
	display: none;
	width: 2.6rem;
	height: 2.6rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: none;
	cursor: pointer;

	span {
		display: block;
		width: 18px;
		height: 2px;
		margin: 4px auto;
		background: var(--text);
		transition: transform 0.25s var(--ease);
	}

	&[aria-expanded='true'] span:first-child {
		transform: translateY(3px) rotate(45deg);
	}
	&[aria-expanded='true'] span:last-child {
		transform: translateY(-3px) rotate(-45deg);
	}
}

/* ---------- buttons, chips, inputs ---------- */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.9rem;
	padding: 0 1.4rem;
	border: none;
	border-radius: 12px;
	font: 700 0.92rem/1 inherit;
	text-decoration: none;
	color: #fff;
	background: var(--grad);
	box-shadow: 0 10px 30px -12px rgba(255, 77, 90, 0.8);
	cursor: pointer;
	overflow: hidden;
	transition:
		transform 0.2s var(--ease),
		box-shadow 0.25s;

	&::before {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35), transparent 70%);
		transform: translateX(-120%);
		transition: transform 0.7s var(--ease);
	}

	&:hover {
		box-shadow: 0 14px 40px -10px rgba(255, 77, 90, 0.95);

		&::before {
			transform: translateX(120%);
		}
	}

	&:active {
		transform: scale(0.97);
	}

	svg {
		flex: none;
		width: 1.15rem;
		height: 1.15rem;
	}

	&.ghost {
		color: var(--text);
		background: rgba(255, 255, 255, 0.05);
		border: 1px solid var(--line-2);
		box-shadow: none;

		&:hover {
			background: rgba(255, 255, 255, 0.09);
		}
	}

	&.lg {
		height: 3.3rem;
		padding: 0 1.8rem;
		font-size: 1rem;
	}

	&.sm {
		height: 2.2rem;
		padding: 0 0.9rem;
		font-size: 0.8rem;
		border-radius: 10px;
	}

	&:disabled {
		opacity: 0.5;
		cursor: not-allowed;
	}
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.28rem 0.75rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ember);
	border: 1px solid rgba(255, 138, 92, 0.35);
	background: rgba(255, 138, 92, 0.08);

	i {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: var(--ok);
		box-shadow: 0 0 8px var(--ok);
		animation: pulse 1.6s ease-in-out infinite;
	}
}

label {
	display: block;
	margin: 1rem 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--muted);
}

input,
textarea,
select {
	width: 100%;
	padding: 0.75rem 0.9rem;
	font: inherit;
	color: var(--text);
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--line-2);
	border-radius: 12px;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;

	&:focus {
		outline: none;
		border-color: var(--red);
		box-shadow: 0 0 0 4px rgba(255, 77, 90, 0.16);
	}
}

.help {
	margin: 0.4rem 0 0;
	font-size: 0.82rem;
	color: var(--muted);
}

.error {
	color: #ff8a92;
}

.muted {
	color: var(--muted);
}

.row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem;
}

.grow {
	flex: 1;
	min-width: 0;
}

/* ---------- layout ---------- */
main {
	flex: 1;
	width: 100%;
	outline: none;
}

.wrap {
	max-width: 74rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.card {
	padding: 1.5rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	backdrop-filter: blur(12px);
}

.page-head {
	padding: 3.5rem 0 2rem;
	text-align: center;

	h1 {
		font-size: clamp(2.2rem, 5vw, 3.4rem);
	}

	p {
		max-width: 36rem;
		margin: 0.5rem auto 0;
		color: var(--muted);
	}
}

.section {
	padding: 6rem 0 0;
}

.section-head {
	max-width: 42rem;
	margin: 0 auto 2.5rem;
	text-align: center;

	h2 {
		margin-top: 0.9rem;
		font-size: clamp(1.9rem, 4vw, 2.9rem);
	}

	p {
		color: var(--muted);
	}
}

.grad-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- hero ---------- */
.hero {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: 3rem;
	min-height: min(82vh, 48rem);
	padding: 3rem 0 2rem;
}

.hero h1 {
	margin: 1.1rem 0;
	font-size: clamp(2.9rem, 6.6vw, 5.4rem);
	line-height: 0.98;

	.word {
		display: inline-block;
	}

	.glow {
		filter: drop-shadow(0 0 22px rgba(255, 77, 90, 0.45));
		animation: glow 3.5s ease-in-out infinite;
	}
}

.hero .lead {
	max-width: 33rem;
	margin: 0 0 1.8rem;
	font-size: 1.12rem;
	color: #cfcfd8;
}

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	margin: 1.6rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.86rem;
	color: var(--muted);

	li::before {
		content: '✓';
		margin-right: 0.35rem;
		color: var(--ok);
	}
}

/* launcher mockup (pure CSS) */
.mock {
	position: relative;
	perspective: 1200px;
}

.mock-window {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	background: #16161c;
	border: 1px solid var(--line-2);
	box-shadow:
		0 50px 100px -40px rgba(0, 0, 0, 0.95),
		0 0 0 1px rgba(255, 77, 90, 0.12),
		0 0 80px -20px rgba(255, 77, 90, 0.4);
	transform: rotateY(-12deg) rotateX(6deg);
	transition: transform 0.6s var(--ease);
}

.mock:hover .mock-window {
	transform: rotateY(-4deg) rotateX(2deg);
}

.mock-bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--line);
	font-family: var(--display);
	font-size: 0.75rem;
	letter-spacing: 0.15em;

	img {
		width: 18px;
		mix-blend-mode: screen;
	}

	b {
		font-weight: 400;
		color: var(--red);
	}
}

.mock-body {
	display: grid;
	grid-template-columns: 2.6rem 1fr 7.5rem;
	min-height: 19rem;
}

.mock-rail {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.6rem 0.4rem;
	border-right: 1px solid var(--line);

	span {
		height: 1.8rem;
		border-radius: 6px;
		background: rgba(255, 255, 255, 0.05);

		&:first-child {
			background: rgba(255, 77, 90, 0.25);
		}
	}
}

.mock-main {
	position: relative;
	padding: 0.8rem;

	.mock-banner {
		position: relative;
		height: 7rem;
		border-radius: 10px;
		background: url('/banner.webp') 55% 40% / cover;

		&::after {
			content: 'PLAY';
			position: absolute;
			left: 0.7rem;
			bottom: 0.6rem;
			padding: 0.35rem 1.2rem;
			border-radius: 7px;
			font: 400 0.75rem var(--display);
			letter-spacing: 0.15em;
			background: var(--grad);
			box-shadow: 0 6px 20px -6px rgba(255, 77, 90, 0.9);
			animation: pulse-btn 2.4s ease-in-out infinite;
		}
	}

	.mock-tiles {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0.45rem;
		margin-top: 0.6rem;

		span {
			height: 3.6rem;
			border-radius: 8px;
			background: rgba(255, 255, 255, 0.05);
			border: 1px solid var(--line);
		}
	}
}

.mock-fps {
	position: absolute;
	right: 0.8rem;
	top: 0.8rem;
	padding: 0.3rem 0.55rem;
	border-radius: 8px;
	font: 400 0.7rem var(--display);
	color: var(--ok);
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(61, 220, 132, 0.4);
}

.mock-side {
	padding: 0.6rem;
	border-left: 1px solid var(--line);

	small {
		display: block;
		margin-bottom: 0.4rem;
		font-size: 0.55rem;
		letter-spacing: 0.15em;
		color: var(--muted);
	}

	div {
		display: flex;
		align-items: center;
		gap: 0.35rem;
		margin-bottom: 0.45rem;
		font-size: 0.62rem;
		color: var(--c, var(--text));

		i {
			width: 1.15rem;
			height: 1.15rem;
			border-radius: 4px;
			background: var(--c, #555);
			opacity: 0.8;
		}
	}
}

.float-badge {
	position: absolute;
	padding: 0.55rem 0.8rem;
	border-radius: 12px;
	font-size: 0.78rem;
	font-weight: 700;
	background: rgba(26, 26, 33, 0.92);
	border: 1px solid var(--line-2);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	animation: bob 5s ease-in-out infinite;

	&.b1 {
		left: -1.5rem;
		bottom: 2.5rem;
	}

	&.b2 {
		right: -1rem;
		top: -1rem;
		animation-delay: -2.5s;
	}

	span {
		color: var(--ok);
	}
}

/* ---------- marquee ---------- */
.marquee {
	margin-top: 3rem;
	overflow: hidden;
	border-block: 1px solid var(--line);
	mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);

	div {
		display: flex;
		gap: 3rem;
		width: max-content;
		padding: 1rem 0;
		animation: marquee 32s linear infinite;
	}

	span {
		font-family: var(--display);
		font-size: 1.1rem;
		letter-spacing: 0.08em;
		white-space: nowrap;
		color: #74747f;

		&::before {
			content: '◆';
			margin-right: 3rem;
			color: var(--red);
		}
	}
}

/* ---------- stats ---------- */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-top: 3rem;

	.stat {
		padding: 1.4rem;
		text-align: center;
		background: var(--card);
		border: 1px solid var(--line);
		border-radius: var(--radius);
	}

	b {
		display: block;
		font: 400 2.4rem var(--display);
	}

	span {
		font-size: 0.86rem;
		color: var(--muted);
	}

	.online b {
		color: var(--ok);
	}
}

/* ---------- bento ---------- */
.bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(13rem, auto);
	gap: 1rem;
}

.tile {
	position: relative;
	padding: 1.6rem;
	overflow: hidden;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition:
		border-color 0.3s,
		transform 0.35s var(--ease);
	--mx: 50%;
	--my: 50%;

	&::before {
		content: '';
		position: absolute;
		inset: 0;
		background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 77, 90, 0.14), transparent 45%);
		opacity: 0;
		transition: opacity 0.3s;
	}

	&:hover {
		border-color: rgba(255, 77, 90, 0.35);

		&::before {
			opacity: 1;
		}
	}

	> * {
		position: relative;
	}

	&.w2 {
		grid-column: span 2;
	}

	&.h2 {
		grid-row: span 2;
	}

	h3 {
		margin: 1rem 0 0.4rem;
		font-size: 1.3rem;
	}

	p {
		margin: 0;
		color: var(--muted);
	}
}

.tile-icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 14px;
	color: #fff;
	background: var(--grad);
	box-shadow: 0 10px 24px -10px rgba(255, 77, 90, 0.9);

	svg {
		width: 1.4rem;
		height: 1.4rem;
	}
}

.mods {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 1.2rem;

	span {
		padding: 0.35rem 0.7rem;
		border-radius: 999px;
		font-size: 0.8rem;
		background: rgba(255, 255, 255, 0.05);
		border: 1px solid var(--line);
	}
}

.boost-meter {
	margin-top: 1.4rem;

	div {
		display: flex;
		justify-content: space-between;
		font-size: 0.8rem;
		color: var(--muted);
	}

	.meter {
		height: 10px;
		margin: 0.4rem 0 0.9rem;
		border-radius: 99px;
		background: rgba(255, 255, 255, 0.06);
		overflow: hidden;

		i {
			display: block;
			height: 100%;
			width: var(--w, 70%);
			border-radius: inherit;
			background: var(--grad);
			transform-origin: left;
		}
	}
}

.cape-stack {
	display: flex;
	justify-content: center;
	gap: 0.9rem;
	margin-top: 1.4rem;

	span {
		width: 3.6rem;
		height: 5.6rem;
		clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 92%, 0 100%);
		animation: bob 4s ease-in-out infinite;

		&:nth-child(2) {
			animation-delay: -1.3s;
		}
		&:nth-child(3) {
			animation-delay: -2.6s;
		}
	}
}

.discord-demo {
	display: flex;
	gap: 0.8rem;
	margin-top: 1.2rem;
	padding: 0.9rem;
	border-radius: 14px;
	background: #111214;
	border: 1px solid var(--line);

	img {
		width: 3.2rem;
		height: 3.2rem;
		border-radius: 10px;
		mix-blend-mode: screen;
	}

	b {
		display: block;
	}

	small {
		display: block;
		color: var(--muted);
		font-size: 0.78rem;
	}

	.time {
		color: var(--ok);
	}
}

/* ---------- live players ---------- */
.players-live {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 0.8rem;
}

.pcard {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.8rem 0.9rem;
	text-decoration: none;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	transition:
		transform 0.25s var(--ease),
		border-color 0.25s;

	&:hover {
		transform: translateY(-3px);
		border-color: color-mix(in srgb, var(--role, #888) 55%, transparent);
	}

	img,
	.letter {
		flex: none;
		width: 2.8rem;
		height: 2.8rem;
		border-radius: 10px;
		image-rendering: pixelated;
	}

	.letter {
		display: grid;
		place-items: center;
		font-family: var(--display);
		color: #fff;
		background: color-mix(in srgb, var(--role, #888) 50%, #1a1a21);
	}

	b {
		display: block;
		color: var(--role, var(--text));
	}

	small {
		color: var(--muted);
	}

	.dot {
		width: 8px;
		height: 8px;
		margin-left: auto;
		border-radius: 50%;
		background: #55555f;

		&.on {
			background: var(--ok);
			box-shadow: 0 0 8px var(--ok);
		}
	}
}

.shimmer {
	background: linear-gradient(90deg, var(--role) 0%, #fff 45%, var(--role) 60%) 0 0 / 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	animation: shimmer 3.2s linear infinite;
}

/* ---------- steps ---------- */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;

	li {
		padding: 1.6rem;
		background: var(--card);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		counter-increment: step;

		&::before {
			content: '0' counter(step);
			display: block;
			font: 400 2.6rem var(--display);
			color: transparent;
			-webkit-text-stroke: 1px var(--red);
		}
	}

	p {
		margin: 0;
		color: var(--muted);
	}
}

/* ---------- FAQ ---------- */
.faq {
	max-width: 48rem;
	margin: 0 auto;

	details {
		margin-bottom: 0.7rem;
		background: var(--card);
		border: 1px solid var(--line);
		border-radius: 16px;
		overflow: hidden;
		transition: border-color 0.2s;

		&[open] {
			border-color: rgba(255, 77, 90, 0.35);
		}
	}

	summary {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 1.1rem 1.3rem;
		font-weight: 700;
		cursor: pointer;
		list-style: none;

		&::-webkit-details-marker {
			display: none;
		}

		&::after {
			content: '+';
			font-size: 1.4rem;
			color: var(--red);
			transition: transform 0.3s var(--ease);
		}
	}

	details[open] summary::after {
		transform: rotate(45deg);
	}

	p {
		margin: 0;
		padding: 0 1.3rem 1.2rem;
		color: var(--muted);
	}
}

/* ---------- CTA ---------- */
.cta {
	margin: 6rem 0 0;
	padding: 4rem 1.5rem;
	text-align: center;
	overflow: hidden;
	border-radius: 28px;
	border: 1px solid var(--line);
	background:
		radial-gradient(700px 260px at 50% 0, rgba(255, 77, 90, 0.28), transparent 70%),
		linear-gradient(180deg, rgba(26, 26, 33, 0.9), rgba(15, 15, 19, 0.9));

	h2 {
		font-size: clamp(2rem, 4.5vw, 3.2rem);
	}

	p {
		margin: 0.5rem 0 1.8rem;
		color: var(--muted);
	}

	.row {
		justify-content: center;
	}
}

/* ---------- app pages ---------- */
.auth {
	max-width: 27rem;
	margin: 0 auto;
}

.tabs {
	display: flex;
	padding: 0.3rem;
	margin-bottom: 0.5rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.3);

	button {
		flex: 1;
		padding: 0.6rem;
		border: none;
		border-radius: 9px;
		background: none;
		color: var(--muted);
		font: 700 0.9rem inherit;
		cursor: pointer;
		transition:
			background 0.2s,
			color 0.2s;

		&.on {
			color: #fff;
			background: rgba(255, 77, 90, 0.18);
		}
	}
}

.profile-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.4rem;

	.avatar {
		width: 6.5rem;
		height: 6.5rem;
		border-radius: 18px;
		image-rendering: pixelated;
		background: rgba(255, 255, 255, 0.05);
		object-fit: cover;
	}

	h1 {
		font-size: 2.2rem;
		color: var(--role, var(--text));

		span {
			margin-left: 0.3rem;
			font-size: 1rem;
			color: var(--muted);
		}
	}
}

.stat-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
	gap: 0.7rem;
	margin: 1.2rem 0 0;

	div {
		padding: 0.8rem;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.04);
	}

	dt {
		font-size: 0.72rem;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--muted);
	}

	dd {
		margin: 0.15rem 0 0;
		font: 400 1.3rem var(--display);
	}
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
	gap: 1rem;
}

.list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.item {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.75rem 0.9rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--line);

	.dot {
		width: 9px;
		height: 9px;
		border-radius: 50%;
		background: #55555f;
	}

	&.online .dot {
		background: var(--ok);
		box-shadow: 0 0 8px var(--ok);
	}
}

.role-title {
	margin: 0 0 0.8rem;
	font: 700 0.8rem 'Chakra Petch', sans-serif;
	letter-spacing: 0.14em;
	color: var(--role);
}

.bar {
	position: relative;
	display: block;
	width: 100%;
	height: 2.7rem;
	margin: 0.45rem 0;
	padding: 0;
	overflow: hidden;
	text-align: left;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	font: inherit;
	cursor: pointer;

	.fill {
		position: absolute;
		inset: 0 auto 0 0;
		border-radius: inherit;
		background: linear-gradient(90deg, rgba(209, 50, 63, 0.55), rgba(255, 138, 92, 0.35));
		transition: width 0.8s var(--ease);
	}

	.label {
		position: relative;
		display: flex;
		justify-content: space-between;
		padding: 0 0.9rem;
		line-height: 2.7rem;

		i {
			font-style: normal;
			color: var(--muted);
		}
	}

	&.mine {
		border-color: var(--red);
	}

	&:disabled {
		cursor: default;
	}
}

.vote {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 3.4rem;
	padding: 0.5rem;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: none;
	color: var(--text);
	font: 800 1rem inherit;
	cursor: pointer;
	transition:
		transform 0.15s,
		border-color 0.2s;

	&:hover {
		transform: translateY(-2px);
	}

	&.on {
		color: var(--red);
		border-color: var(--red);
		background: rgba(255, 77, 90, 0.1);
	}
}

.status-chip {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: rgba(255, 255, 255, 0.07);
	color: var(--muted);

	&.planned {
		color: var(--gold);
		background: rgba(245, 197, 66, 0.12);
	}
	&.done {
		color: var(--ok);
		background: rgba(61, 220, 132, 0.12);
	}
	&.declined {
		color: #ff8a92;
		background: rgba(255, 77, 90, 0.12);
	}
}

/* ---------- footer ---------- */
.foot {
	margin-top: 6rem;
	border-top: 1px solid var(--line);
	background: rgba(10, 10, 13, 0.6);
}

.foot-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2rem;
	max-width: 74rem;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 1.5rem;
}

.foot-brand {
	display: flex;
	gap: 0.8rem;
	align-items: center;

	img {
		mix-blend-mode: screen;
	}

	strong {
		font-family: var(--display);
		letter-spacing: 0.1em;
	}

	p {
		margin: 0;
		color: var(--muted);
		font-size: 0.9rem;
	}
}

.foot-cols {
	display: flex;
	gap: 3.5rem;

	h4 {
		margin: 0 0 0.6rem;
		font-size: 0.78rem;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--muted);
	}

	a {
		display: block;
		padding: 0.2rem 0;
		text-decoration: none;
		color: #cfcfd8;

		&:hover {
			color: var(--red);
		}
	}
}

.foot-legal {
	max-width: 74rem;
	margin: 0 auto;
	padding: 1rem 1.25rem 2rem;
	font-size: 0.78rem;
	color: #74747f;
}

#toast {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	padding: 0.85rem 1.1rem;
	border-radius: 14px;
	background: var(--card-solid);
	border: 1px solid var(--line-2);
	border-left: 3px solid var(--red);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 0.25s,
		transform 0.3s var(--ease);
	pointer-events: none;

	&.show {
		opacity: 1;
		transform: none;
	}
}

/* reveal targets start hidden only once Motion is loaded; .in shows them */
.motion-ready [data-reveal] {
	opacity: 0;
	transform: translateY(34px) scale(0.98);
	transition:
		opacity 0.7s var(--ease),
		transform 0.8s var(--ease);
}

.motion-ready [data-reveal].in {
	opacity: 1;
	transform: none;
}

/* ---------- keyframes ---------- */
@keyframes orb {
	to {
		transform: translate(8vmax, 6vmax) scale(1.15);
	}
}

@keyframes pulse {
	50% {
		opacity: 0.4;
	}
}

@keyframes pulse-btn {
	50% {
		box-shadow: 0 6px 30px -2px rgba(255, 77, 90, 1);
	}
}

@keyframes glow {
	50% {
		filter: drop-shadow(0 0 36px rgba(255, 138, 92, 0.7));
	}
}

@keyframes bob {
	50% {
		transform: translateY(-10px);
	}
}

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

@keyframes shimmer {
	to {
		background-position: -250% 0;
	}
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.mock {
		max-width: 34rem;
	}

	.bento {
		grid-template-columns: repeat(2, 1fr);
	}

	.stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.steps {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	#nav {
		position: fixed;
		inset: 4.6rem 1rem auto;
		flex-direction: column;
		padding: 0.6rem;
		background: rgba(20, 20, 26, 0.97);
		border: 1px solid var(--line);
		border-radius: 16px;
		transform: translateY(-10px);
		opacity: 0;
		pointer-events: none;
		transition:
			opacity 0.2s,
			transform 0.25s var(--ease);

		&.open {
			opacity: 1;
			transform: none;
			pointer-events: auto;
		}
	}

	.menu-btn {
		display: block;
		margin-left: auto;
	}

	.bento {
		grid-template-columns: 1fr;
	}

	.tile.w2 {
		grid-column: auto;
	}

	.float-badge {
		display: none;
	}

	.foot-cols {
		gap: 2rem;
	}
}

/* Motion is on by default; the footer toggle adds .no-motion to switch it all off */
html.no-motion *,
html.no-motion *::before,
html.no-motion *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

/* =================== v2: assets + Minecraft vibe =================== */
.pixel {
	font-family: 'Silkscreen', 'Russo One', monospace;
	letter-spacing: 0.04em;
}

/* Minecraft-style block buttons: hard bottom edge that presses in */
.btn {
	box-shadow:
		inset 0 -4px 0 rgba(0, 0, 0, 0.32),
		inset 0 2px 0 rgba(255, 255, 255, 0.18),
		0 12px 30px -12px rgba(255, 77, 90, 0.85);

	&:active {
		transform: translateY(2px);
		box-shadow:
			inset 0 -1px 0 rgba(0, 0, 0, 0.32),
			0 6px 18px -10px rgba(255, 77, 90, 0.85);
	}

	&.ghost {
		box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35);
	}
}

/* full-bleed hero art */
.hero-wrap {
	position: relative;
	overflow: hidden;
	margin-top: -5.2rem;
	padding-top: 5.2rem;
	isolation: isolate;
}

.hero-art {
	position: absolute;
	inset: -6% -4% 0;
	z-index: -2;
	background: url('/img/hero-bg.webp') 30% 40% / cover no-repeat;
	will-change: transform;
}

.hero-shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(15, 15, 19, 0.15) 0%, rgba(15, 15, 19, 0.55) 45%, rgba(15, 15, 19, 0.9) 100%),
		linear-gradient(to top, var(--bg) 2%, transparent 40%);
}

.hero.v2 {
	grid-template-columns: 1fr 1.1fr;
	min-height: min(88vh, 50rem);

	> :first-child {
		order: 2;
	}
}

.shot {
	position: relative;
	perspective: 1400px;

	img {
		display: block;
		width: 100%;
		border-radius: 16px;
		border: 1px solid var(--line-2);
		box-shadow:
			0 60px 120px -40px rgba(0, 0, 0, 0.95),
			0 0 90px -20px rgba(255, 77, 90, 0.55);
		transform: rotateY(14deg) rotateX(4deg);
		transition: transform 0.7s var(--ease);
	}

	&:hover img {
		transform: rotateY(4deg) rotateX(1deg) scale(1.02);
	}
}

/* floating Minecraft blocks */
.cubes {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;

	span {
		position: absolute;
		width: var(--s, 22px);
		height: var(--s, 22px);
		background:
			linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 40%),
			linear-gradient(var(--c, #ff4d5a), color-mix(in srgb, var(--c, #ff4d5a) 55%, #000));
		box-shadow:
			inset -4px -4px 0 rgba(0, 0, 0, 0.35),
			0 0 22px color-mix(in srgb, var(--c, #ff4d5a) 70%, transparent);
		animation: cube-float var(--d, 9s) ease-in-out infinite;
		animation-delay: var(--delay, 0s);
		image-rendering: pixelated;
	}
}

/* feature tiles with art */
.tile.art {
	padding: 0;
	display: flex;
	flex-direction: column;

	.tile-img {
		flex: 1;
		min-height: 11rem;
		background: var(--img) center / cover no-repeat;
		transition: transform 0.8s var(--ease);
	}

	&:hover .tile-img {
		transform: scale(1.06);
	}

	.tile-body {
		position: relative;
		padding: 1.3rem 1.5rem 1.5rem;
		background: linear-gradient(to top, rgba(17, 17, 22, 0.98) 60%, rgba(17, 17, 22, 0.75));
	}

	.tile-icon {
		position: absolute;
		top: -1.5rem;
		left: 1.5rem;
	}

	h3 {
		margin-top: 0.9rem;
	}
}

/* community banner */
.community {
	position: relative;
	overflow: hidden;
	padding: 3rem 1.5rem;
	border-radius: 28px;
	border: 1px solid var(--line);
	isolation: isolate;

	&::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -2;
		background: url('/img/community.webp') center 35% / cover;
		transform: scale(var(--zoom, 1.08));
		transition: transform 0.2s linear;
	}

	&::after {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -1;
		background: linear-gradient(to bottom, rgba(15, 15, 19, 0.55), rgba(15, 15, 19, 0.92) 60%);
	}

	.section-head {
		margin-bottom: 2rem;
	}
}

.cta.v2 {
	position: relative;
	isolation: isolate;
	padding: 6rem 1.5rem;

	&::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -2;
		background: url('/img/cta-bg.webp') 70% 40% / cover;
	}

	&::after {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -1;
		background: linear-gradient(90deg, rgba(15, 15, 19, 0.92) 30%, rgba(15, 15, 19, 0.35));
	}

	text-align: left;

	.row {
		justify-content: flex-start;
	}
}

.motion-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.8rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: none;
	color: var(--muted);
	font: 600 0.8rem inherit;
	cursor: pointer;

	i {
		width: 30px;
		height: 16px;
		border-radius: 99px;
		background: #3a3a44;
		position: relative;
		transition: background 0.2s;

		&::after {
			content: '';
			position: absolute;
			top: 2px;
			left: 2px;
			width: 12px;
			height: 12px;
			border-radius: 50%;
			background: #fff;
			transition: transform 0.2s var(--ease);
		}
	}

	&[aria-pressed='true'] i {
		background: var(--red);

		&::after {
			transform: translateX(14px);
		}
	}
}

@keyframes cube-float {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-26px) rotate(18deg);
	}
}

@media (max-width: 960px) {
	.hero.v2 > :first-child {
		order: 0;
	}

	.shot img {
		transform: none;
	}
}

/* =================== v3: cleaner hero, 3D block, smooth scroll =================== */
.hero-wrap {
	margin-top: -5.2rem;
	padding-top: 6.5rem;
}

.hero.v2 {
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	min-height: min(86vh, 46rem);
}

.shot {
	justify-self: center;
	width: min(100%, 34rem);
	animation: shot-float 7s ease-in-out infinite;

	img {
		transform: rotateY(10deg) rotateX(3deg);
		border-radius: 14px;
	}

	&:hover img {
		transform: rotateY(2deg) rotateX(0deg) scale(1.02);
	}

	.float-badge.b1 {
		left: -1rem;
		bottom: -1rem;
	}

	.float-badge.b2 {
		right: -0.8rem;
		top: -1rem;
	}
}

/* textured floating blocks (original pixel art) */
.cubes span {
	background: var(--tex, url('/img/blocks/ayo-stone.png')) center / cover;
	image-rendering: pixelated;
	box-shadow:
		inset -4px -4px 0 rgba(0, 0, 0, 0.35),
		inset 3px 3px 0 rgba(255, 255, 255, 0.12),
		0 10px 24px -8px rgba(0, 0, 0, 0.8),
		0 0 18px rgba(255, 77, 90, 0.35);
}

/* spinning 3D block */
.mc-block {
	--size: 74px;
	position: absolute;
	right: 6%;
	bottom: 14%;
	width: var(--size);
	height: var(--size);
	perspective: 600px;
	z-index: 2;
	pointer-events: none;
}

.mc-cube {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	animation: cube-spin 12s linear infinite;

	i {
		position: absolute;
		inset: 0;
		background: center / cover;
		image-rendering: pixelated;
		box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
	}

	.f {
		transform: translateZ(calc(var(--size) / 2));
		background-image: url('/img/blocks/ember-grass-side.png');
	}
	.b {
		transform: rotateY(180deg) translateZ(calc(var(--size) / 2));
		background-image: url('/img/blocks/ember-grass-side.png');
	}
	.l {
		transform: rotateY(-90deg) translateZ(calc(var(--size) / 2));
		background-image: url('/img/blocks/ember-grass-side.png');
		filter: brightness(0.75);
	}
	.r {
		transform: rotateY(90deg) translateZ(calc(var(--size) / 2));
		background-image: url('/img/blocks/ember-grass-side.png');
		filter: brightness(0.85);
	}
	.t {
		transform: rotateX(90deg) translateZ(calc(var(--size) / 2));
		background-image: url('/img/blocks/ember-grass-top.png');
		filter: brightness(1.1);
	}
	.d {
		transform: rotateX(-90deg) translateZ(calc(var(--size) / 2));
		background-image: url('/img/blocks/soil.png');
		filter: brightness(0.55);
	}
}

.mc-block::after {
	content: '';
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: -38px;
	height: 14px;
	border-radius: 50%;
	background: radial-gradient(rgba(255, 77, 90, 0.45), transparent 70%);
	animation: shadow-breathe 3.5s ease-in-out infinite;
}

/* pixel grass edge between sections */
.grass-divider {
	height: 16px;
	margin: 5rem 0 -1rem;
	background: url('/img/blocks/grass-edge.png') 0 100% / 32px 16px repeat-x;
	image-rendering: pixelated;
	opacity: 0.85;
}

/* scroll progress (pixel bar) */
#scroll-progress {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 60;
	width: 100%;
	height: 4px;
	background: repeating-linear-gradient(90deg, var(--red) 0 8px, var(--ember) 8px 16px);
	transform: scaleX(0);
	transform-origin: left;
	box-shadow: 0 0 10px rgba(255, 77, 90, 0.7);
}

@keyframes shot-float {
	50% {
		transform: translateY(-12px);
	}
}

@keyframes cube-spin {
	from {
		transform: rotateX(-24deg) rotateY(0deg);
	}
	to {
		transform: rotateX(-24deg) rotateY(360deg);
	}
}

@keyframes shadow-breathe {
	50% {
		transform: scaleX(0.75);
		opacity: 0.6;
	}
}

@media (max-width: 960px) {
	.mc-block {
		display: none;
	}
}

/* =================== v4: performance pass =================== */
/* Pre-blurred gradients instead of live 90px blur filters (the main source of lag) */
.orb {
	filter: none;
	animation: none;
	background: radial-gradient(circle, var(--orb-c, rgba(255, 77, 90, 0.5)) 0%, transparent 65%) !important;

	&.o1 {
		--orb-c: rgba(255, 77, 90, 0.55);
	}
	&.o2 {
		--orb-c: rgba(255, 138, 92, 0.4);
	}
	&.o3 {
		--orb-c: rgba(124, 58, 237, 0.3);
	}
}

/* backdrop blur only where it matters (nav); cards use solid glass */
.card,
.tile,
.lp-feature,
.stats .stat,
.pcard,
.faq details,
.steps li {
	backdrop-filter: none;
	background-color: rgba(24, 24, 31, 0.92);
}

.cursor-glow {
	display: none;
}

/* compositor-only animations */
.cubes span,
.mc-cube,
.shot {
	will-change: transform;
	contain: layout paint;
}

/* hero image: natural framing, no extra zoom so it stays sharp */
.hero-art {
	inset: 0;
	background-position: 20% 50%;
	background-size: cover;
	image-rendering: auto;
}

/* launcher shot: flat, clean, soft depth instead of the stretched 3D tilt */
.shot img,
.shot:hover img {
	transform: none;
}

.shot {
	animation: shot-float 8s ease-in-out infinite;

	img {
		box-shadow:
			0 40px 80px -30px rgba(0, 0, 0, 0.9),
			0 0 0 1px rgba(255, 255, 255, 0.06),
			0 0 60px -25px rgba(255, 77, 90, 0.6);
	}
}

.marquee div {
	will-change: transform;
}

/* =================== v5: real Minecraft vibe =================== */
/* launcher shot: framed like a monitor, smaller and set back so it reads as a preview */
.shot {
	width: min(100%, 30rem);
	padding: 10px 10px 26px;
	border-radius: 16px;
	background: linear-gradient(180deg, #24242c, #16161c);
	border: 1px solid var(--line-2);
	box-shadow:
		0 50px 90px -40px rgba(0, 0, 0, 0.95),
		0 0 70px -30px rgba(255, 77, 90, 0.55);
	transform: perspective(1200px) rotateY(-6deg) translateZ(-40px) scale(0.92);

	img,
	&:hover img {
		width: 100%;
		height: auto;
		border-radius: 8px;
		box-shadow: none;
		transform: none;
	}

	&::after {
		content: '';
		position: absolute;
		left: 50%;
		bottom: -26px;
		width: 34%;
		height: 26px;
		transform: translateX(-50%);
		background: linear-gradient(#202028, #121216);
		clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
	}
}

/* pixel ground along the bottom of the hero */
.ground {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 96px;
	z-index: 1;
	background:
		url('/img/blocks/ember-grass-side.png') 0 0 / 48px 48px repeat-x,
		url('/img/blocks/soil.png') 0 48px / 48px 48px repeat-x;
	image-rendering: pixelated;
	box-shadow: 0 -30px 50px -20px rgba(0, 0, 0, 0.6);
	filter: brightness(0.75);
}

.hero-wrap .wrap {
	position: relative;
	z-index: 2;
	padding-bottom: 96px;
}

/* original pixel mobs walking on the ground */
.mob {
	position: absolute;
	bottom: 96px;
	z-index: 3;
	image-rendering: pixelated;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: 200% 100%;
	filter: drop-shadow(0 0 10px rgba(255, 77, 90, 0.45));
}

.mob.slime {
	width: 60px;
	height: 60px;
	background-image: url('/img/mobs/slime-sheet.png');
	animation:
		sprite 0.6s steps(1) infinite,
		slime-hop 0.6s ease-in-out infinite,
		walk-right 26s linear infinite;
}

.mob.bot {
	width: 50px;
	height: 80px;
	background-image: url('/img/mobs/bot-sheet.png');
	animation:
		sprite 0.5s steps(1) infinite,
		walk-left 34s linear infinite;
}

@keyframes sprite {
	0% {
		background-position: 0 0;
	}
	50% {
		background-position: 100% 0;
	}
}

@keyframes slime-hop {
	50% {
		translate: 0 -14px;
	}
}

@keyframes walk-right {
	from {
		left: -80px;
	}
	to {
		left: calc(100% + 80px);
	}
}

@keyframes walk-left {
	from {
		left: calc(100% + 80px);
		transform: scaleX(-1);
	}
	to {
		left: -80px;
		transform: scaleX(-1);
	}
}

/* drifting pixel clouds */
.pixel-cloud {
	position: absolute;
	z-index: 0;
	width: 128px;
	height: 40px;
	background: url('/img/mobs/cloud.png') center / contain no-repeat;
	image-rendering: pixelated;
	opacity: 0.18;
	animation: cloud-drift var(--t, 60s) linear infinite;
	animation-delay: var(--dl, 0s);
}

@keyframes cloud-drift {
	from {
		transform: translateX(-20vw);
	}
	to {
		transform: translateX(120vw);
	}
}

/* block-break particles on click */
.px-bit {
	position: fixed;
	z-index: 100;
	width: 8px;
	height: 8px;
	pointer-events: none;
	image-rendering: pixelated;
	box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.35);
}

/* Minecraft-style hotbar */
.hotbar-wrap {
	margin-top: 4rem;
	text-align: center;
}

.hotbar {
	display: inline-grid;
	grid-template-columns: repeat(9, 64px);
	gap: 4px;
	padding: 6px;
	background: #1b1b20;
	border: 3px solid #0a0a0d;
	box-shadow:
		inset 3px 3px 0 #34343c,
		inset -3px -3px 0 #101014,
		0 20px 40px -20px rgba(0, 0, 0, 0.9);
	image-rendering: pixelated;
}

.slot {
	position: relative;
	width: 64px;
	height: 64px;
	padding: 8px;
	border: none;
	background: #2a2a31;
	box-shadow:
		inset 3px 3px 0 #141418,
		inset -3px -3px 0 #3e3e47;
	cursor: pointer;

	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		image-rendering: pixelated;
		transition: transform 0.2s var(--ease);
	}

	&:hover img {
		transform: scale(1.12) rotate(-6deg);
	}

	&.on {
		outline: 4px solid #fff;
		outline-offset: -2px;
		box-shadow:
			inset 3px 3px 0 #141418,
			inset -3px -3px 0 #3e3e47,
			0 0 18px rgba(255, 255, 255, 0.35);
	}

	b {
		position: absolute;
		right: 4px;
		bottom: 2px;
		font: 400 0.8rem 'Silkscreen', monospace;
		color: #fff;
		text-shadow: 2px 2px 0 #3a3a3a;
	}
}

.hotbar-info {
	min-height: 4.5rem;
	margin: 1.2rem auto 0;
	max-width: 34rem;

	h3 {
		margin: 0 0 0.3rem;
		font-family: 'Silkscreen', monospace;
		font-size: 1.15rem;
		color: #fff;
		text-shadow: 2px 2px 0 #3a1a1d;
	}

	p {
		margin: 0;
		color: var(--muted);
	}
}

@media (max-width: 760px) {
	.hotbar {
		grid-template-columns: repeat(9, 34px);
	}

	.slot {
		width: 34px;
		height: 34px;
		padding: 4px;

		b {
			display: none;
		}
	}

	.shot {
		transform: none;
	}

	.mob.bot {
		display: none;
	}
}

/* =================== v6: smooth (GPU-only) mobs + big-screen hero =================== */
/* Walk with transform instead of animating `left` (left forces layout every frame = lag) */
.mob {
	left: 0;
	will-change: transform;
}

.mob.slime {
	animation:
		sprite 0.6s steps(1) infinite,
		slime-hop 0.6s ease-in-out infinite,
		walk-right-gpu 26s linear infinite;
}

.mob.bot {
	animation:
		sprite 0.5s steps(1) infinite,
		walk-left-gpu 34s linear infinite;
}

@keyframes walk-right-gpu {
	from {
		transform: translateX(-90px);
	}
	to {
		transform: translateX(calc(100vw + 90px));
	}
}

@keyframes walk-left-gpu {
	from {
		transform: translateX(calc(100vw + 90px)) scaleX(-1);
	}
	to {
		transform: translateX(-90px) scaleX(-1);
	}
}

.hero-wrap {
	overflow: hidden;
	contain: paint;
}

/* Big screens: wider content, centred hero, larger launcher preview */
@media (min-width: 1500px) {
	.wrap {
		max-width: 88rem;
	}

	.nav-inner {
		max-width: 88rem;
	}

	.hero.v2 {
		grid-template-columns: 1fr 1fr;
		justify-items: center;
		gap: 5rem;
		min-height: min(80vh, 52rem);
	}

	.shot {
		width: min(100%, 40rem);
	}

	.hero h1 {
		font-size: clamp(4rem, 5vw, 6.2rem);
	}

	.hero .lead {
		max-width: 38rem;
		font-size: 1.2rem;
	}
}

/* =================== v7: fixes for floating badges + 120fps =================== */
/* `contain: paint` clipped the floating badges; keep the frame unclipped */
.shot {
	contain: none;
	overflow: visible;
	/* float with `translate` so it never fights the frame's perspective `transform` */
	animation: shot-bob 8s ease-in-out infinite;
}

@keyframes shot-bob {
	0%,
	100% {
		translate: 0 0;
	}
	50% {
		translate: 0 -12px;
	}
}

.float-badge {
	z-index: 4;
	white-space: nowrap;
	animation: badge-bob 5s ease-in-out infinite;
	will-change: translate;

	&.b1 {
		left: -2.2rem;
		bottom: 3rem;
	}

	&.b2 {
		right: -1.6rem;
		top: -1.4rem;
		animation-delay: -2.5s;
	}
}

@keyframes badge-bob {
	0%,
	100% {
		translate: 0 0;
	}
	50% {
		translate: 0 -10px;
	}
}

/* compositor-only everywhere: promote animated layers, avoid repaint-heavy effects */
.marquee div,
.mc-cube,
.cubes span,
.pixel-cloud,
.mob,
.hero-art {
	backface-visibility: hidden;
	transform-style: preserve-3d;
}

.mc-cube {
	transform-style: preserve-3d;
}

/* shimmer animates background-position (repaint); only run it where it is visible on hover */
.players-live .shimmer {
	animation-play-state: paused;
}

.pcard:hover .shimmer {
	animation-play-state: running;
}

/* the nav is the only element that keeps a live blur */
.nav-inner {
	backdrop-filter: blur(12px);
}

/* Profile picture editor */
.avatar-edit {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 0.4rem;

	.avatar-btn {
		position: absolute;
		inset: 0 0 auto;
		height: 6.5rem;
		display: grid;
		place-items: center;
		border-radius: 18px;
		background: rgba(0, 0, 0, 0.55);
		color: #fff;
		font-size: 0.8rem;
		font-weight: 700;
		opacity: 0;
		cursor: pointer;
		transition: opacity 0.15s;
	}

	&:hover .avatar-btn,
	.avatar-btn:focus-visible {
		opacity: 1;
	}

	.avatar-rm {
		border: 0;
		background: none;
		color: var(--muted, #9a9aa5);
		font-size: 0.75rem;
		cursor: pointer;

		&:hover {
			color: #ff4d5a;
		}
	}
}

/* Edit profile: always show the picture can change, flash the edit area */
.avatar-edit .avatar-btn {
	inset: auto 0 auto;
	top: calc(6.5rem - 1.6rem);
	height: 1.6rem;
	border-radius: 0 0 18px 18px;
	font-size: 0.7rem;
	opacity: 0.9;
}

.avatar-edit:hover .avatar-btn {
	inset: 0 0 auto;
	top: 0;
	height: 6.5rem;
	border-radius: 18px;
}

.grid.editing > .card {
	box-shadow: 0 0 0 2px rgba(255, 77, 90, 0.6);
	transition: box-shadow 0.3s;
}

/* Download page patch notes */
.patch {
	margin-top: 1.4rem;
	text-align: left;

	h3 {
		margin: 0 0 0.6rem;
		font-size: 1rem;
	}

	ul {
		display: grid;
		gap: 0.45rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	li {
		display: flex;
		gap: 0.5rem;
		font-size: 0.9rem;
		line-height: 1.4;
	}

	b {
		flex: none;
		padding: 0.05rem 0.45rem;
		border-radius: 4px;
		font-size: 0.68rem;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.new b {
		background: rgba(74, 222, 128, 0.15);
		color: #4ade80;
	}

	.imp b {
		background: rgba(59, 156, 255, 0.15);
		color: #7cb8ff;
	}

	.fix b {
		background: rgba(255, 77, 90, 0.15);
		color: #ff8a93;
	}
}

/* =================== v5: no-flicker, hotbar, mobile =================== */
/* already on screen when wired: shown at once, no hide-then-fade */
.motion-ready [data-reveal].now {
	transition: none;
}

.ambient {
	transform: translateZ(0);
	contain: strict;
}

.slot {
	transition:
		transform 0.15s var(--ease),
		background 0.15s;

	&:hover {
		background: #34343d;
	}

	&.on {
		transform: translateY(-3px);
		z-index: 1;
	}

	&.on img {
		transform: scale(1.08);
	}

	&:focus-visible {
		outline: 3px solid var(--red);
	}
}

.hotbar {
	touch-action: pan-y;
}

.hotbar-info.swap {
	animation: hb-swap 0.32s var(--ease);
}

@keyframes hb-swap {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

.hotbar-hint {
	margin: 0.6rem 0 0;
	font: 400 0.7rem 'Silkscreen', monospace;
	color: var(--muted);
	opacity: 0.7;
}

@media (max-width: 760px) {
	html,
	body {
		overflow-x: hidden;
	}

	.wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.hotbar-wrap {
		margin-top: 2.5rem;
	}

	.hotbar {
		grid-template-columns: repeat(9, minmax(0, 1fr));
		width: 100%;
		max-width: 26rem;
		gap: 3px;
		padding: 4px;
	}

	.slot {
		width: auto;
		height: auto;
		aspect-ratio: 1;
	}

	.hotbar-info {
		padding: 0 0.5rem;
	}

	h1 {
		overflow-wrap: anywhere;
	}
}

@media (max-width: 420px) {
	.stats {
		grid-template-columns: 1fr 1fr;
		gap: 0.6rem;
	}

	.bento {
		grid-template-columns: 1fr;
	}

	.tile.w2 {
		grid-column: auto;
	}

	.foot-inner {
		flex-direction: column;
		gap: 1.5rem;
	}
}

@media (hover: none) {
	.slot:hover img {
		transform: none;
	}

	[data-tilt] {
		transform: none !important;
	}
}

/* phone nav: logo, account and menu always fit */
@media (max-width: 760px) {
	.nav-inner {
		gap: 0.5rem;
		padding-left: 12px;
		padding-right: 12px;
	}

	.brand span {
		font-size: 0.95rem;
	}

	.session {
		display: flex;
		gap: 0.35rem;
		margin-left: auto;
		min-width: 0;

		a,
		button {
			white-space: nowrap;
			padding: 0.45rem 0.7rem;
			font-size: 0.8rem;
		}
	}

	.menu-btn {
		margin-left: 0;
		flex: none;
	}
}

@media (max-width: 380px) {
	.brand span b {
		display: none;
	}
}
