/* ==========================================================================
   Game Paradise — design system
   A minimal, modern browser-games platform. No frameworks, no external assets.
   ========================================================================== */

:root {
	--bg: #080b13;
	--bg-elevated: #0d1220;
	--surface: rgba(255, 255, 255, 0.04);
	--surface-2: rgba(255, 255, 255, 0.07);
	--stroke: rgba(255, 255, 255, 0.08);
	--stroke-strong: rgba(255, 255, 255, 0.16);
	--text: #f4f6ff;
	--text-2: #adb6d3;
	--text-3: #7681a3;
	--brand: #7c5cff;
	--brand-2: #22d3ee;
	--brand-3: #ff5f9e;
	--brand-soft: rgba(124, 92, 255, 0.16);
	--radius-xl: 26px;
	--radius-lg: 20px;
	--radius-md: 14px;
	--shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
	--shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.85);
	--page: 1240px;
	--header-h: 72px;
	--font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.is-locked {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button,
input {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

h1,
h2,
h3,
p {
	margin: 0;
}

::selection {
	background: rgba(124, 92, 255, 0.5);
	color: #fff;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: #080b13;
}

::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.14);
	border: 2px solid #080b13;
	border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.24);
}

:focus-visible {
	outline: 2px solid var(--brand-2);
	outline-offset: 3px;
	border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Ambient background
   -------------------------------------------------------------------------- */

.sky {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	background:
		radial-gradient(1200px 700px at 12% -10%, rgba(124, 92, 255, 0.28), transparent 62%),
		radial-gradient(900px 600px at 92% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
		radial-gradient(1000px 800px at 60% 110%, rgba(255, 95, 158, 0.1), transparent 65%),
		var(--bg);
}

.sky::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
	opacity: 0.7;
}

.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
	animation: drift 24s var(--ease) infinite alternate;
}

.orb--one {
	width: 420px;
	height: 420px;
	left: -120px;
	top: 120px;
	background: rgba(124, 92, 255, 0.45);
}

.orb--two {
	width: 360px;
	height: 360px;
	right: -80px;
	top: 320px;
	background: rgba(34, 211, 238, 0.3);
	animation-delay: -8s;
}

@keyframes drift {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(40px, 60px, 0) scale(1.12);
	}
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.shell {
	width: min(100% - 48px, var(--page));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -80px;
	z-index: 200;
	padding: 10px 18px;
	border-radius: 999px;
	background: #fff;
	color: #0a0d16;
	font-weight: 700;
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: 16px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	backdrop-filter: blur(22px) saturate(140%);
	-webkit-backdrop-filter: blur(22px) saturate(140%);
	background: linear-gradient(180deg, rgba(8, 11, 19, 0.92), rgba(8, 11, 19, 0.62));
	border-bottom: 1px solid var(--stroke);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	flex-shrink: 0;
}

.brand img {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.9);
}

.brand__name {
	font-size: 1.06rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.brand__name span {
	background: linear-gradient(100deg, #a78bfa, #67e8f9);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.main-nav a {
	position: relative;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-2);
	transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.main-nav a:hover {
	color: var(--text);
	background: var(--surface);
}

.main-nav a.is-active {
	color: var(--text);
	background: var(--surface-2);
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.header-tools .btn--ghost {
	display: none;
}

@media (min-width: 721px) and (max-width: 920px) {
	.header-tools .btn--ghost {
		display: inline-flex;
	}
}

.search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 250px;
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--stroke);
	transition: width 0.25s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.search:focus-within {
	width: 300px;
	border-color: rgba(124, 92, 255, 0.55);
	background: rgba(124, 92, 255, 0.09);
}

.search svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	color: var(--text-3);
}

.search input {
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 0.88rem;
	outline: none;
}

.search input::placeholder {
	color: var(--text-3);
}

.search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.search kbd {
	flex-shrink: 0;
	padding: 2px 6px;
	border-radius: 6px;
	border: 1px solid var(--stroke-strong);
	color: var(--text-3);
	font-family: inherit;
	font-size: 0.68rem;
	line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 11px 20px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	white-space: nowrap;
	transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
		background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active {
	transform: translateY(1px) scale(0.99);
}

.btn--primary {
	color: #0a0d16;
	background: linear-gradient(120deg, #c4b5fd 0%, #a5b4fc 40%, #5eead4 100%);
	box-shadow: 0 14px 34px -16px rgba(124, 92, 255, 0.95);
}

.btn--primary:hover {
	box-shadow: 0 18px 40px -14px rgba(124, 92, 255, 1);
	transform: translateY(-1px);
}

.btn--ghost {
	background: var(--surface);
	border-color: var(--stroke);
	color: var(--text);
}

.btn--ghost:hover {
	background: var(--surface-2);
	border-color: var(--stroke-strong);
	transform: translateY(-1px);
}

.btn--lg {
	padding: 14px 26px;
	font-size: 0.96rem;
}

.btn--sm {
	padding: 8px 14px;
	font-size: 0.82rem;
}

.btn svg {
	width: 17px;
	height: 17px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	padding: 78px 0 54px;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: 56px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 14px 7px 10px;
	border-radius: 999px;
	border: 1px solid var(--stroke);
	background: var(--surface);
	color: var(--text-2);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.eyebrow__dot {
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.eyebrow__dot svg {
	width: 11px;
	height: 11px;
	color: #fff;
}

.hero h1 {
	margin-top: 22px;
	font-size: clamp(2.5rem, 4.6vw, 4rem);
	line-height: 1.03;
	letter-spacing: -0.045em;
	font-weight: 800;
}

.hero h1 .grad {
	background: linear-gradient(100deg, #c4b5fd 0%, #818cf8 45%, #5eead4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.grad {
	background: linear-gradient(100deg, #c4b5fd 0%, #818cf8 45%, #5eead4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__lead {
	margin-top: 20px;
	max-width: 48ch;
	color: var(--text-2);
	font-size: 1.02rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.hero__stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hero__stats strong {
	font-size: 1.3rem;
	font-weight: 750;
	letter-spacing: -0.03em;
}

.hero__stats span {
	color: var(--text-3);
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.anchor {
	display: block;
	height: 0;
	scroll-margin-top: 96px;
}

#catalog {
	scroll-margin-top: 84px;
}

/* Hero art — a fan of floating game cards */

.hero__art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	min-width: 0;
	perspective: 1100px;
}

.hero__glow {
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(124, 92, 255, 0.5), rgba(34, 211, 238, 0.12) 55%, transparent 72%);
	filter: blur(24px);
	animation: pulse 9s ease-in-out infinite alternate;
}

@keyframes pulse {
	from {
		transform: scale(0.92);
		opacity: 0.75;
	}
	to {
		transform: scale(1.06);
		opacity: 1;
	}
}

.float-card {
	position: relative;
	width: 184px;
	padding: 13px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(6px);
	transform-style: preserve-3d;
	animation: hover-float 7s var(--ease) infinite alternate;
}

.float-card + .float-card {
	margin-left: -26px;
}

.float-card img {
	width: 100%;
	height: 138px;
	object-fit: contain;
	padding: 10px;
	border-radius: 15px;
	background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.float-card p {
	margin-top: 10px;
	font-size: 0.8rem;
	font-weight: 650;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.float-card--left {
	transform: rotateY(14deg) rotateZ(-9deg) translateY(18px);
	animation-delay: -2s;
}

.float-card--mid {
	z-index: 2;
	transform: translateY(-22px) scale(1.06);
	animation-delay: -4s;
}

.float-card--right {
	transform: rotateY(-14deg) rotateZ(9deg) translateY(18px);
	animation-delay: -1s;
}

@keyframes hover-float {
	from {
		translate: 0 0;
	}
	to {
		translate: 0 -14px;
	}
}

.hero__badge {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(15, 20, 36, 0.86);
	border: 1px solid var(--stroke-strong);
	box-shadow: var(--shadow-card);
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--text-2);
	backdrop-filter: blur(8px);
}

.hero__badge--top {
	top: 3%;
	right: 0;
}

.hero__badge i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

/* --------------------------------------------------------------------------
   Catalogue
   -------------------------------------------------------------------------- */

.catalog {
	padding: 26px 0 96px;
}

.catalog__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 22px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--stroke);
}

.catalog__title {
	font-size: clamp(1.5rem, 2.4vw, 1.9rem);
	font-weight: 750;
	letter-spacing: -0.035em;
}

.catalog__count {
	margin-top: 6px;
	color: var(--text-3);
	font-size: 0.86rem;
}

.catalog__count b {
	color: var(--text-2);
	font-weight: 650;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	border-radius: 999px;
	border: 1px solid var(--stroke);
	background: var(--surface);
	color: var(--text-2);
	font-size: 0.84rem;
	font-weight: 600;
	transition: background 0.2s var(--ease), color 0.2s var(--ease),
		border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.chip span {
	color: var(--text-3);
	font-size: 0.72rem;
	font-weight: 600;
}

.chip:hover {
	background: var(--surface-2);
	border-color: var(--stroke-strong);
	color: var(--text);
	transform: translateY(-1px);
}

.chip.is-active {
	background: #f5f7ff;
	border-color: #f5f7ff;
	color: #0a0d16;
	box-shadow: 0 10px 26px -14px rgba(255, 255, 255, 0.6);
}

.chip.is-active span {
	color: rgba(10, 13, 22, 0.55);
}

/* Game grid */

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

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 12px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--stroke);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
	box-shadow: var(--shadow-card);
	transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
		box-shadow 0.28s var(--ease), background 0.28s var(--ease);
	overflow: hidden;
}

.card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(220px 140px at 50% -10%, rgba(124, 92, 255, 0.22), transparent 70%);
	opacity: 0;
	transition: opacity 0.3s var(--ease);
	pointer-events: none;
}

.card:hover {
	transform: translateY(-6px);
	border-color: rgba(124, 92, 255, 0.45);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
	box-shadow: 0 28px 54px -26px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(124, 92, 255, 0.12);
}

.card:hover::after {
	opacity: 1;
}

.card__thumb {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-md);
	background:
		radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 62%),
		linear-gradient(160deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.08));
	border: 1px solid rgba(255, 255, 255, 0.06);
	overflow: hidden;
}

.card__thumb img {
	width: 94px;
	height: 94px;
	object-fit: contain;
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
	transition: transform 0.35s var(--ease);
}

.card:hover .card__thumb img {
	transform: scale(1.09) rotate(-2deg);
}

.card__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(6, 9, 18, 0.55);
	opacity: 0;
	transition: opacity 0.25s var(--ease);
}

.card__play span {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: #0a0d16;
	box-shadow: 0 14px 30px -10px rgba(255, 255, 255, 0.5);
	transform: scale(0.8);
	transition: transform 0.25s var(--ease);
}

.card__play svg {
	width: 18px;
	height: 18px;
	margin-left: 3px;
}

.card:hover .card__play {
	opacity: 1;
}

.card:hover .card__play span {
	transform: scale(1);
}

.card__title {
	margin-top: 13px;
	font-size: 0.95rem;
	font-weight: 680;
	letter-spacing: -0.015em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card__desc {
	margin-top: 3px;
	color: var(--text-3);
	font-size: 0.79rem;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.3em;
}

.card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 13px;
	padding-top: 11px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card__tag {
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-2);
	font-size: 0.66rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.card__go {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--text-3);
	font-size: 0.74rem;
	font-weight: 600;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), color 0.2s var(--ease);
}

.card__go svg {
	width: 13px;
	height: 13px;
}

.card:hover .card__go {
	opacity: 1;
	transform: translateX(0);
	color: #c4b5fd;
}

/* Empty state */

.card[hidden],
.empty[hidden] {
	display: none;
}

.empty {
	display: grid;
	place-items: center;
	gap: 10px;
	padding: 70px 24px;
	border: 1px dashed var(--stroke-strong);
	border-radius: var(--radius-xl);
	text-align: center;
	color: var(--text-2);
}

.empty svg {
	width: 34px;
	height: 34px;
	color: var(--text-3);
}

.empty h3 {
	font-size: 1.1rem;
	color: var(--text);
}

.empty p {
	font-size: 0.88rem;
	color: var(--text-3);
	max-width: 42ch;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--stroke);
	background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 34px 0;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer-brand img {
	width: 34px;
	height: 34px;
	border-radius: 10px;
}

.footer-brand p {
	font-size: 0.82rem;
	color: var(--text-3);
}

.footer-brand strong {
	display: block;
	color: var(--text);
	font-size: 0.9rem;
	letter-spacing: -0.01em;
}

.footer-links {
	display: flex;
	gap: 20px;
	font-size: 0.82rem;
	color: var(--text-3);
}

.footer-links a:hover {
	color: var(--text);
}

.footer-note {
	width: 100%;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.74rem;
	color: rgba(118, 129, 163, 0.75);
}

/* --------------------------------------------------------------------------
   Player overlay
   -------------------------------------------------------------------------- */

.player {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: 22px;
}

.player[hidden] {
	display: none;
}

.player__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 5, 11, 0.78);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	animation: fade-in 0.25s var(--ease);
}

.player__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1280px, 100%);
	height: min(92vh, 100%);
	border-radius: var(--radius-xl);
	border: 1px solid var(--stroke-strong);
	background: #0a0e1a;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	animation: pop-in 0.3s var(--ease);
}

.player__panel:focus {
	outline: none;
}

.player__panel:fullscreen {
	width: 100%;
	height: 100%;
	border-radius: 0;
	border: 0;
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes pop-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.player__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px 12px 16px;
	border-bottom: 1px solid var(--stroke);
	background: rgba(255, 255, 255, 0.025);
}

.player__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.player__meta img {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.06);
	padding: 5px;
	flex-shrink: 0;
}

.player__titles {
	min-width: 0;
}

.player__titles h3 {
	font-size: 0.96rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.player__titles p {
	font-size: 0.72rem;
	color: var(--text-3);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.player__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.icon-btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--stroke);
	background: var(--surface);
	color: var(--text-2);
	transition: background 0.2s var(--ease), color 0.2s var(--ease),
		border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.icon-btn:hover {
	background: var(--surface-2);
	color: var(--text);
	border-color: var(--stroke-strong);
}

.icon-btn--close:hover {
	background: rgba(255, 95, 158, 0.18);
	border-color: rgba(255, 95, 158, 0.45);
	color: #ffd0e0;
}

.icon-btn svg {
	width: 17px;
	height: 17px;
}

.player__stage {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #04060c;
}

.player__stage iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.player__loader {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	gap: 14px;
	background: #04060c;
	color: var(--text-3);
	font-size: 0.82rem;
	transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.player__loader.is-hidden {
	opacity: 0;
	visibility: hidden;
}

.spinner {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.12);
	border-top-color: #a5b4fc;
	animation: spin 0.9s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Applied to the root element while a game is open (mobile friendly) */
.player__panel.is-fs {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 0;
	border: 0;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.page-hero {
	padding: 72px 0 20px;
	max-width: 760px;
}

.page-hero .eyebrow {
	margin-bottom: 20px;
}

.page-hero h1 {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	line-height: 1.06;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.page-hero p {
	margin-top: 18px;
	color: var(--text-2);
	font-size: 1rem;
	max-width: 60ch;
}

.page-body {
	padding: 26px 0 90px;
	display: grid;
	gap: 22px;
}

.panel {
	padding: 26px;
	border-radius: var(--radius-xl);
	border: 1px solid var(--stroke);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
	box-shadow: var(--shadow-card);
}

.panel h2 {
	font-size: 1.2rem;
	font-weight: 720;
	letter-spacing: -0.025em;
	margin-bottom: 14px;
}

.panel p {
	color: var(--text-2);
	font-size: 0.92rem;
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	margin-top: 4px;
}

.stat {
	padding: 18px;
	border-radius: var(--radius-md);
	border: 1px solid var(--stroke);
	background: rgba(255, 255, 255, 0.03);
}

.stat strong {
	display: block;
	font-size: 1.75rem;
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.1;
	background: linear-gradient(120deg, #c4b5fd, #5eead4);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.stat span {
	display: block;
	margin-top: 4px;
	color: var(--text-3);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	counter-reset: step;
}

.step {
	position: relative;
	padding: 20px 20px 20px 20px;
	border-radius: var(--radius-md);
	border: 1px solid var(--stroke);
	background: rgba(255, 255, 255, 0.03);
}

.step::before {
	counter-increment: step;
	content: "0" counter(step);
	display: block;
	margin-bottom: 10px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #a5b4fc;
}

.step h3 {
	font-size: 0.96rem;
	font-weight: 680;
	margin-bottom: 5px;
}

.step p {
	font-size: 0.84rem;
	color: var(--text-3);
}

.page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */

.error-page {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 40px 24px;
}

.error-card {
	position: relative;
	width: min(560px, 100%);
	padding: 44px 36px;
	border-radius: var(--radius-xl);
	border: 1px solid var(--stroke);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
	box-shadow: var(--shadow-lg);
	text-align: center;
}

.error-card .error-card__code {
	font-size: clamp(3.4rem, 12vw, 5.4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
	background: linear-gradient(110deg, #c4b5fd, #818cf8 45%, #5eead4);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.error-card h1 {
	margin-top: 14px;
	font-size: 1.35rem;
	font-weight: 720;
	letter-spacing: -0.025em;
}

.error-card p {
	margin-top: 8px;
	color: var(--text-2);
	font-size: 0.9rem;
}

.error-card .countdown {
	color: var(--text-3);
	font-size: 0.8rem;
	margin-top: 14px;
}

.error-card .countdown b {
	color: var(--text);
}

.error-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 26px;
}

/* --------------------------------------------------------------------------
   Simple redirect page (legacy category links)
   -------------------------------------------------------------------------- */

.redirect-page {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 30px;
	text-align: center;
}

.redirect-page p {
	color: var(--text-3);
	font-size: 0.85rem;
	margin-top: 6px;
}

.redirect-page a {
	color: #c4b5fd;
	font-weight: 650;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
	.hero__inner {
		gap: 30px;
	}

	.search {
		width: 200px;
	}

	.search:focus-within {
		width: 240px;
	}
}

@media (max-width: 920px) {
	.main-nav {
		display: none;
	}

	.hero {
		padding-top: 52px;
	}

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

	.hero__art {
		order: -1;
		min-height: 340px;
		margin-bottom: 8px;
		overflow: visible;
	}

	.float-card {
		width: 152px;
	}

	.float-card img {
		height: 112px;
	}

	.hero__badge--top {
		top: 0;
		right: 4%;
	}
}

@media (max-width: 720px) {
	.shell {
		width: calc(100% - 32px);
	}

	.hero {
		padding-top: 26px;
	}

	.brand__name {
		font-size: 1rem;
	}

	.search {
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
	}

	.search:focus-within {
		width: auto;
	}

	.header-inner {
		flex-wrap: wrap;
		gap: 12px;
		padding: 14px 0;
		min-height: 0;
	}

	.header-tools {
		width: 100%;
		order: 3;
		margin-left: 0;
	}

	.header-tools .search {
		flex: 1;
	}

	.header-tools > .btn {
		flex-shrink: 0;
	}

	.header-tools .btn--ghost {
		display: none;
	}

	.btn__label {
		display: none;
	}

	.hero__art {
		min-height: 260px;
	}

	.float-card {
		width: 126px;
		padding: 9px;
		border-radius: 18px;
	}

	.float-card + .float-card {
		margin-left: -30px;
	}

	.float-card img {
		height: 92px;
	}

	.float-card p {
		margin-top: 8px;
		font-size: 0.7rem;
		white-space: normal;
		line-height: 1.25;
	}

	.header-tools .btn--sm {
		padding: 10px 14px;
	}

	.search kbd {
		display: none;
	}

	.hero h1 {
		font-size: clamp(2.1rem, 9vw, 2.8rem);
	}

	.hero__lead {
		font-size: 0.95rem;
	}

	.hero__stats {
		gap: 22px;
	}

	.grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}

	.card {
		padding: 9px;
		border-radius: var(--radius-md);
	}

	.card__thumb img {
		width: 64px;
		height: 64px;
	}

	.card__title {
		margin-top: 10px;
		font-size: 0.86rem;
	}

	.card__desc {
		font-size: 0.72rem;
		min-height: 2.1em;
		-webkit-line-clamp: 2;
	}

	.card__meta {
		margin-top: 9px;
		padding-top: 8px;
	}

	.card__tag {
		font-size: 0.58rem;
		padding: 3px 7px;
	}

	.card__go {
		display: none;
	}

	.card__play span {
		width: 42px;
		height: 42px;
	}

	.catalog__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.chips {
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: none;
	}

	.chips::-webkit-scrollbar {
		display: none;
	}

	.chip {
		flex-shrink: 0;
	}

	.player {
		padding: 0;
	}

	.player__panel {
		width: 100%;
		height: 100%;
		border-radius: 0;
		border: 0;
	}

	.player__bar {
		padding: 10px;
	}

	.player__titles p {
		display: none;
	}

	.icon-btn {
		width: 34px;
		height: 34px;
	}

	.page-hero {
		padding-top: 48px;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 420px) {
	.float-card {
		width: 112px;
		padding: 7px;
		border-radius: 16px;
	}

	.float-card + .float-card {
		margin-left: -26px;
	}

	.float-card img {
		height: 80px;
	}

	.hero__badge {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.orb,
	.hero__glow,
	.float-card {
		animation: none !important;
	}
}
