/* ==========================================================================
   home.css
   Home page composition: hero bento, rails, section grid, sidebar,
   mobile library drawer, responsive rules.
   ========================================================================== */

.home-page {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: var(--s-7);
	max-width: var(--container);
	margin: 0 auto;
	padding: var(--s-4) var(--s-6) var(--s-10);
}

@media (max-width: 1024px) {
	.home-page {
		grid-template-columns: 1fr 280px;
		gap: var(--s-6);
	}
}

@media (max-width: 900px) {
	.home-page {
		grid-template-columns: 1fr;
		padding: var(--s-3) var(--s-4) var(--s-9);
	}
}

.home-main {
	display: flex;
	flex-direction: column;
	gap: var(--s-8);
	min-width: 0;
}

.home-sidebar {
	position: sticky;
	top: calc(var(--nav-h) + var(--s-4));
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	min-width: 0;
}

.home-sidebar__panels {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}

@media (max-width: 900px) {
	.home-sidebar {
		display: none;
	}
}

/* ==========================================================================
   Hero bento
   ========================================================================== */

.home-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: var(--s-3);
	min-height: 480px;
	margin-bottom: var(--s-2);
}

.home-hero--loading {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-2xl);
	overflow: hidden;
}

.home-hero__skeleton {
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		color-mix(in srgb, var(--surface-2) 50%, transparent) 50%,
		transparent 100%
	);
	background-size: 200% 100%;
	animation: home-hero-shimmer 1.6s var(--ease) infinite;
}

@keyframes home-hero-shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

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

.home-hero__featured-wrap,
.home-hero__tile-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.home-hero__featured-wrap {
	grid-row: 1 / 3;
}

.home-hero__featured {
	position: relative;
	flex: 1;
	border-radius: var(--r-xl);
	overflow: hidden;
	background: var(--surface-1);
	border: 1px solid var(--border);
	box-shadow: var(--inner-hi), var(--shadow);
	transition:
		transform var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease);
}

.home-hero__featured:hover {
	transform: translateY(-3px);
	box-shadow: var(--inner-hi), var(--shadow-lg), var(--shadow-glow);
}

.home-hero__tile {
	position: relative;
	flex: 1;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--surface-1);
	border: 1px solid var(--border);
	box-shadow: var(--inner-hi);
	transition:
		transform var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease);
}

/* ponytail: track slot floats over the hero image, top-right, outside the
   card's overflow:hidden so the button stays clickable. */
.home-hero__track-slot {
	position: absolute;
	top: var(--s-3);
	right: var(--s-3);
	z-index: 3;
	pointer-events: none;
}

.home-hero__track-slot > * {
	pointer-events: auto;
}

.home-hero__tile:hover {
	transform: translateY(-2px);
	border-color: var(--border-strong);
	box-shadow: var(--inner-hi), var(--shadow);
}

.home-hero__image,
.home-hero__featured .home-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease);
}

/* ponytail: aurora fallback when a game has no header_image. Defined here
   instead of inline so the home view stays token-only. */
.home-hero__image--fallback {
	background: var(--aurora);
}

.home-hero__featured:hover .home-hero__image,
.home-hero__tile:hover .home-hero__image {
	transform: scale(1.05);
}

.home-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(7, 9, 15, 0) 0%,
		rgba(7, 9, 15, 0.4) 50%,
		rgba(7, 9, 15, 0.95) 100%
	);
	pointer-events: none;
}

.home-hero__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: var(--s-6);
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	pointer-events: none;
}

.home-hero__content > * {
	pointer-events: auto;
}

.home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	color: #fef3c7;
	background: var(--aurora-warm);
	padding: 4px 10px;
	border-radius: var(--r-full);
	align-self: flex-start;
}

/* ponytail: tiles override the eyebrow color via class, not inline style. */
.home-hero__eyebrow--trending {
	background: var(--aurora-blue);
	color: white;
}

.home-hero__title {
	font-family: var(--font-display);
	font-size: var(--text-4xl);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: var(--leading-tight);
	color: white;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
	margin: 0;
	max-width: 90%;
	text-wrap: balance;
}

.home-hero__title a {
	color: inherit;
}

.home-hero__meta {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
}

.home-hero__tile .home-hero__content {
	padding: var(--s-4);
}
.home-hero__tile .home-hero__title {
	font-size: var(--text-lg);
}

@media (max-width: 768px) {
	/* ponytail: tiles stay visible on mobile, stacked below the featured card */
	.home-hero {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		min-height: 0;
		gap: var(--s-3);
	}
	.home-hero__featured-wrap {
		grid-row: auto;
		min-height: 320px;
	}
	.home-hero__featured-wrap + .home-hero__tile-wrap,
	.home-hero__tile-wrap {
		min-height: 140px;
	}
	.home-hero__title {
		font-size: var(--text-2xl);
	}
	.home-hero__tile .home-hero__title {
		font-size: var(--text-md);
	}
}

/* ==========================================================================
   Section (home)
   ========================================================================== */

.home-section {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}

.home-section__title-eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	color: var(--text-3);
	margin-bottom: 4px;
}

.section,
.home-section {
	margin-bottom: var(--s-7);
}

.section h2,
.section__title {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: 600;
	margin: 0 0 var(--s-4);
	color: var(--text);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.section--primary h2,
.section--primary .section__title {
	font-size: var(--text-2xl);
	font-weight: 700;
}

.section--secondary h2,
.section--secondary .section__title {
	font-size: var(--text-lg);
	color: var(--text);
}

.section--tertiary h2,
.section--tertiary h3,
.section--tertiary .section__title {
	font-size: var(--text-md);
	color: var(--text-2);
	font-weight: 500;
}

.section .section-subtitle {
	font-size: var(--text-sm);
	color: var(--text-3);
	margin-left: var(--s-2);
	font-weight: 400;
}

.section-see-all {
	font-size: var(--text-sm);
}

.section-see-all a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px var(--s-3);
	min-height: 44px;
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--text-2);
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	text-decoration: none;
	transition: all var(--dur) var(--ease);
}

.section-see-all a:hover {
	color: var(--text);
	background: var(--surface-2);
	border-color: var(--border-strong);
	text-decoration: none;
}

.section-see-all a::after {
	content: "→";
	transition: transform var(--dur) var(--ease);
}

.section-see-all a:hover::after {
	transform: translateX(2px);
}

/* ==========================================================================
   Game grid
   ========================================================================== */

.game-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-4);
}

@media (min-width: 1280px) {
	.game-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.game-grid--compact {
	gap: var(--s-3);
}
.game-grid--compact .game-card {
	padding: var(--s-3);
}
.game-grid--compact .game-card-image,
.game-grid--compact .game-card-image-placeholder {
	height: 130px;
}

/* ==========================================================================
   Card skeleton (loading state for game-grid turbo frames)
   Reuses the design-system .skeleton shimmer primitive.
   ========================================================================== */

.game-card--skeleton {
	cursor: default;
	pointer-events: none;
}

.game-card--skeleton:hover {
	transform: none;
	border-color: var(--border);
	box-shadow: var(--inner-hi);
}

.game-card--skeleton:focus-within {
	border-color: var(--border);
	box-shadow: var(--inner-hi);
}

.game-card-skeleton__image {
	width: 100%;
	height: 100%;
	border-radius: var(--r-md);
}

.game-card-skeleton__title {
	height: 14px;
	width: 78%;
	margin-bottom: var(--s-2);
	border-radius: 4px;
}

.game-card-skeleton__meta {
	height: 10px;
	width: 48%;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.game-card--skeleton .skeleton {
		animation: none;
		background: var(--surface-1);
	}
}

@media (max-width: 640px) {
	.game-grid,
	.game-grid--compact {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Section group (collapsible)
   ========================================================================== */

.section-group {
	border: 1px solid var(--border);
	border-radius: var(--r-xl);
	background: var(--surface-1);
	overflow: hidden;
	box-shadow: var(--inner-hi);
}

.section-group__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--s-4) var(--s-5);
	cursor: pointer;
	user-select: none;
	list-style: none;
	transition: background var(--dur) var(--ease);
}

.section-group__header::-webkit-details-marker {
	display: none;
}

.section-group__header:hover {
	background: var(--surface-1);
}

.section-group__header:focus-visible {
	outline: none;
	background: var(--surface-2);
	box-shadow: inset 0 0 0 2px var(--border-accent);
}

.section-group__title {
	font-size: var(--text-md);
	font-weight: 600;
	color: var(--text);
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
}

.section-group__title::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--aurora);
}

.section-group__toggle {
	font-size: var(--text-sm);
	color: var(--text-3);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.section-group__header::after {
	content: "+";
	font-size: var(--text-lg);
	font-weight: 300;
	margin-left: var(--s-2);
	transition: transform var(--dur) var(--ease);
}

.section-group[open] .section-group__header::after {
	content: "−";
}

@media (prefers-reduced-motion: reduce) {
	.section-group__header::after {
		transition: none;
	}
}

.section-group__content {
	padding: 0 var(--s-5) var(--s-5);
	display: flex;
	flex-direction: column;
	gap: var(--s-6);
}

.section-group__content .section,
.section-group__content .home-section {
	margin-bottom: 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar-section {
	padding: var(--s-5);
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	box-shadow: var(--inner-hi);
}

.sidebar-section h3 {
	font-family: var(--font-display);
	margin: 0 0 var(--s-3);
	font-size: var(--text-md);
	font-weight: 600;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: var(--s-2);
}

.sidebar-section h3::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--border-strong), transparent);
}

.sidebar-list {
	margin-bottom: var(--s-4);
}
.sidebar-list:last-child {
	margin-bottom: 0;
}

.sidebar-section--anon p {
	font-size: var(--text-sm);
	margin-bottom: var(--s-3);
}

.sidebar-list h4 {
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-3);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	margin-bottom: var(--s-2);
}

.sidebar-list__link {
	display: block;
	text-align: right;
	font-size: var(--text-sm);
	color: var(--text-3);
	margin-top: var(--s-2);
}

.sidebar-list__link:hover {
	color: var(--text-2);
}

/* ==========================================================================
   Onboarding empty state (signed-in user with zero tracked games)
   ponytail: replaces the three-list "Your Library" sidebar with a single
   CTA panel pointing at the first-track action.
   ========================================================================== */

.onboard-empty {
	text-align: center;
}

.onboard-empty__icon {
	width: 44px;
	height: 44px;
	margin: var(--s-2) auto var(--s-4);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 50%;
	color: var(--text-2);
}

.onboard-empty__lede {
	font-size: var(--text-sm);
	color: var(--text);
	line-height: var(--leading-snug);
	margin: 0 0 var(--s-2);
}

.onboard-empty__hint {
	font-size: var(--text-xs);
	color: var(--text-3);
	line-height: var(--leading-normal);
	margin: 0 0 var(--s-4);
}

.onboard-empty__form {
	display: flex;
	gap: var(--s-2);
	margin-bottom: var(--s-3);
}

.onboard-empty__input {
	flex: 1;
	min-width: 0;
	height: 36px;
	padding: 0 var(--s-3);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	color: var(--text);
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	box-shadow: var(--inner-hi);
	transition:
		border-color var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease),
		background var(--dur) var(--ease);
}

.onboard-empty__input::placeholder {
	color: var(--text-3);
}

.onboard-empty__input:hover {
	border-color: var(--border-strong);
}

.onboard-empty__input:focus {
	outline: none;
	border-color: var(--border-accent);
	background: var(--surface-2);
	box-shadow:
		0 0 0 4px var(--border-accent-soft),
		var(--inner-hi);
}

.onboard-empty__browse {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--text-xs);
	font-weight: 500;
	color: var(--text-2);
	text-decoration: none;
	padding: var(--s-1) 0;
	transition: color var(--dur) var(--ease);
}

.onboard-empty__browse:hover {
	color: var(--text);
	text-decoration: none;
}

.onboard-empty__browse > span:last-child {
	transition: transform var(--dur) var(--ease);
}

.onboard-empty__browse:hover > span:last-child {
	transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
	.onboard-empty__browse > span:last-child,
	.onboard-empty__browse:hover > span:last-child {
		transition: none;
		transform: none;
	}
}

/* ==========================================================================
   Mobile library drawer
   ========================================================================== */

.mobile-library-toggle {
	display: none;
}

/* .mobile-library-drawer base rules live inside the @media (max-width: 900px) block —
   the <dialog> element is hidden by the browser until showModal() is called. */

@media (max-width: 900px) {
	html,
	body,
	.home-page,
	.home-main,
	.home-sidebar {
		overflow-x: hidden;
		max-width: 100vw;
	}

	.home-main {
		gap: var(--s-6);
	}
	.home-main .section,
	.home-main .home-section {
		margin-bottom: var(--s-5);
	}
	.home-main .section h2,
	.home-main .section__title {
		font-size: var(--text-md);
	}
	.home-main .section--primary h2,
	.home-main .section--primary .section__title {
		font-size: var(--text-lg);
	}
	.home-main .section--tertiary h3 {
		font-size: var(--text-sm);
	}
	.home-main .section .section-subtitle {
		display: none;
	}
	.home-main .section-group {
		margin-bottom: var(--s-3);
	}
	.home-main .section-group__header {
		padding: var(--s-3) var(--s-4);
	}
	.home-main .section-group__content {
		padding: 0 var(--s-4) var(--s-4);
		gap: var(--s-5);
	}

	.home-main .game-grid,
	.home-main .game-grid--compact {
		grid-template-columns: 1fr !important;
	}

	/* Mobile Library Drawer */
	.mobile-library-toggle {
		display: inline-flex;
		align-items: center;
		gap: var(--s-2);
		position: fixed;
		bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		right: calc(20px + env(safe-area-inset-right, 0px));
		z-index: 100;
		background: var(--aurora-violet);
		color: white;
		border: 1px solid transparent;
		padding: 12px 20px;
		min-height: 44px;
		border-radius: var(--r-full);
		font-size: var(--text-sm);
		font-weight: 600;
		box-shadow: var(--shadow-glow), var(--shadow);
		cursor: pointer;
		transition:
			transform var(--dur) var(--ease),
			box-shadow var(--dur) var(--ease);
	}

	.mobile-library-toggle:hover {
		transform: translateY(-2px);
		box-shadow:
			0 8px 32px color-mix(in srgb, var(--violet) 50%, transparent),
			var(--shadow-lg);
	}

	.mobile-library-toggle:active {
		transform: translateY(0);
	}

	.mobile-library-toggle:focus-visible {
		outline: none;
		box-shadow:
			0 0 0 3px var(--border-accent),
			var(--shadow);
	}

	.mobile-library-drawer {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: auto 0 0 0;
		max-height: 70vh;
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 0;
		background: var(--surface-2);
		-webkit-backdrop-filter: var(--glass-blur);
		backdrop-filter: var(--glass-blur);
		border-top-left-radius: var(--r-2xl);
		border-top-right-radius: var(--r-2xl);
		border: 1px solid var(--border-strong);
		border-bottom: none;
		box-shadow: var(--shadow-lg);
		color: var(--text);
	}

	/* ponytail: native ::backdrop replaces the manual __backdrop div. Focus
	   trap, body scroll lock, aria-modal, and Escape dismissal come for free. */
	.mobile-library-drawer::backdrop {
		background: rgba(0, 0, 0, 0.6);
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
	}

	.mobile-library-drawer__content {
		display: flex;
		flex-direction: column;
		overflow: hidden;
		flex: 1;
		min-height: 0;
	}

	.mobile-library-drawer__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: var(--s-4) var(--s-5);
		border-bottom: 1px solid var(--border);
		flex-shrink: 0;
	}

	.mobile-library-drawer__header h3 {
		margin: 0;
		font-size: var(--text-lg);
		font-weight: 600;
		color: var(--text);
	}

	.mobile-library-drawer__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		color: var(--text-2);
		background: transparent;
		border: 1px solid transparent;
		border-radius: var(--r-md);
		cursor: pointer;
		transition: all var(--dur) var(--ease);
	}

	.mobile-library-drawer__close:hover {
		color: var(--text);
		background: var(--surface-3);
		border-color: var(--border);
	}

	.mobile-library-drawer__close:focus-visible {
		outline: none;
		border-color: var(--border-accent);
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 25%, transparent);
	}

	.mobile-library-drawer__body {
		padding: var(--s-4) var(--s-5);
		overflow-y: auto;
		flex: 1;
	}

	.mobile-library-drawer__body .sidebar-section {
		margin-bottom: var(--s-3);
	}
	.mobile-library-drawer__body .sidebar-list {
		margin-bottom: var(--s-3);
	}
}

/* ==========================================================================
   Games rail (horizontal scroll)
   ========================================================================== */

.games-rail {
	position: relative;
	margin: var(--s-4) 0;
}

.games-rail__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--s-3);
	padding: 0 4px;
}

.games-rail__title {
	font-family: var(--font-display);
	margin: 0;
	font-size: var(--text-md);
	font-weight: 600;
	color: var(--text);
}

.games-rail__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--text-sm);
	color: var(--text-2);
	text-decoration: none;
	padding: 6px var(--s-3);
	border-radius: var(--r-md);
	background: var(--surface-1);
	border: 1px solid var(--border);
	transition: all var(--dur) var(--ease);
}

.games-rail__view-all:hover {
	color: var(--text);
	background: var(--surface-2);
	border-color: var(--border-strong);
	text-decoration: none;
}

.games-rail__view-all::after {
	content: "→";
	transition: transform var(--dur) var(--ease);
}

.games-rail__view-all:hover::after {
	transform: translateX(2px);
}

.games-rail__scroll-container {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: var(--border-strong) transparent;
	margin: 0 -4px;
	padding: 4px;
	-webkit-overflow-scrolling: touch;
}

.games-rail__scroll-container::-webkit-scrollbar {
	height: 8px;
}
.games-rail__scroll-container::-webkit-scrollbar-track {
	background: transparent;
}
.games-rail__scroll-container::-webkit-scrollbar-thumb {
	background: var(--border-strong);
	border-radius: var(--r-full);
}
.games-rail__scroll-container::-webkit-scrollbar-thumb:hover {
	background: var(--text-3);
}

.games-rail__track {
	display: flex;
	gap: var(--s-3);
	padding: 4px 0;
}

.games-rail__item {
	flex-shrink: 0;
	width: 200px;
}

@media (max-width: 640px) {
	.games-rail__item {
		width: 160px;
	}
}

.games-rail__nav {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	padding: 0;
	z-index: 2;
}

.games-rail__nav-btn {
	pointer-events: auto;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-2);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	color: var(--text);
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transition: all var(--dur) var(--ease);
	box-shadow: var(--shadow);
}

.games-rail:hover .games-rail__nav-btn {
	opacity: 1;
}

.games-rail__nav-btn:hover {
	background: var(--surface-3);
	border-color: var(--border-accent);
}

.games-rail__nav-btn:focus-visible {
	outline: none;
	opacity: 1;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 30%, transparent);
}

.games-rail__nav-btn--prev {
	transform: translateX(-12px);
}
.games-rail__nav-btn--next {
	transform: translateX(12px);
}

@media (max-width: 768px) {
	.games-rail__nav {
		display: none;
	}
}

/* ==========================================================================
   Category page
   ========================================================================== */

.category-page {
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--s-7) var(--s-4);
}

.category-header {
	margin-bottom: var(--s-7);
	padding-bottom: var(--s-5);
	border-bottom: 1px solid var(--border);
}

.category-header h1 {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 var(--s-2);
	color: var(--text);
}

.category-description {
	color: var(--text-2);
	font-size: var(--text-md);
	margin: 0;
}

.category-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-top: var(--s-3);
}

.sort-form .form-select {
	width: auto;
}

.category-games {
	margin-bottom: var(--s-7);
}

.category-page .empty-state {
	text-align: center;
	padding: var(--s-10) var(--s-5);
}

.category-page .loading-state {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* ==========================================================================
   Similar games
   ========================================================================== */

.games-similar {
	margin-top: var(--s-3);
}
.games-similar__title {
	margin: 0 0 var(--s-3);
	font-size: var(--text-md);
	font-weight: 600;
	color: var(--text);
}
