
/*
//=====================================================================================
*/

.games_page
{
	height: calc(100dvh - var(--topbar));
	padding-bottom: 28px;
}

.games_head
{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
}

.games_title
{
	margin-top: 12px;
	font: 700 clamp(28px, 2.6vw, 38px)/1.05 var(--font_display);
	letter-spacing: -0.02em;
}

.games_text
{
	margin-top: 6px;
	color: var(--text_dim);
}

.games_filters
{
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
}

.games_filter
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--text_mute);
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s, color 0.2s;
}

.games_filter:hover
{
	color: var(--text);
}

.games_filter[aria-pressed="true"]
{
	color: #fff;
	background: rgba(139, 92, 246, 0.24);
	box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.3);
}

.games_filter_count
{
	min-width: 20px;
	padding: 1px 6px;
	border-radius: 6px;
	color: var(--text_dim);
	font-size: 11px;
	text-align: center;
	background: rgba(255, 255, 255, 0.06);
}

.games_grid
{
	display: grid;
	flex: 1 1 0;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	grid-template-rows: repeat(var(--rows, 1), minmax(0, 1fr));
	gap: var(--gap);
	min-height: 0;
}

/*
//=====================================================================================
*/

.lobby_card
{
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 0;
	overflow: hidden;
	isolation: isolate;
	container-type: size;
	border-radius: var(--radius_l);
	background: #100d22;
	border: 1px solid var(--line);
	box-shadow: var(--shadow_card);
	transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}

.lobby_card[hidden]
{
	display: none;
}

.lobby_card::before
{
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
	transform: translateX(-130%);
	transition: transform 1.1s var(--ease);
	pointer-events: none;
}

.lobby_card:hover
{
	border-color: color-mix(in srgb, var(--tint_a, var(--violet)) 45%, transparent);
	box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.95);
	transform: translateY(-6px);
}

.lobby_card:hover::before
{
	transform: translateX(130%);
}

.lobby_art
{
	position: absolute;
	inset: 0 0 auto;
	height: min(100cqh, 125cqw);
	overflow: hidden;
}

.lobby_art::after
{
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 58%;
	background: linear-gradient(0deg, #100d22 0%, rgba(16, 13, 34, 0.72) 42%, rgba(16, 13, 34, 0) 100%);
	pointer-events: none;
}

.lobby_art .game_art
{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform 0.8s var(--ease);
}

.lobby_card:hover .game_art
{
	transform: scale(1.06);
}

.lobby_new
{
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	color: #3b0a1f;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: linear-gradient(180deg, #fde68a, #f5c451);
}

.lobby_body
{
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 0 clamp(12px, 7cqw, 22px) clamp(12px, 7cqw, 22px);
}

.lobby_kicker
{
	color: color-mix(in srgb, var(--tint_a, var(--violet_soft)) 70%, #fff);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lobby_title
{
	font: 700 clamp(22px, 15cqw, 46px)/0.92 var(--font_game);
	font-stretch: condensed;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	background: var(--title_fill, linear-gradient(180deg, #fff, #ddd6fe));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 2px 0 var(--title_edge, #1e1b4b)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.lobby_text
{
	color: var(--text_dim);
	font-size: 13px;
	line-height: 1.5;
}

.lobby_tags
{
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lobby_tag
{
	padding: 3px 9px;
	border-radius: 999px;
	color: var(--text_dim);
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
	background: rgba(12, 9, 26, 0.6);
	border: 1px solid var(--line);
}

.lobby_win
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 18px;
	color: var(--text_mute);
	font-size: 12px;
}

.lobby_win .money
{
	color: #6ee7b7;
	font-weight: 600;
}

.lobby_win_name
{
	color: var(--text);
	font-weight: 600;
}

.lobby_play
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: stretch;
	height: 40px;
	margin-top: 2px;
	border-radius: 11px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: background 0.25s, border-color 0.25s;
}

.lobby_play .icon
{
	transition: transform 0.25s var(--ease);
}

.lobby_play_name
{
	margin-left: -4px;
}

.lobby_card:hover .lobby_play
{
	background: var(--violet);
	border-color: transparent;
}

.lobby_card:hover .lobby_play .icon
{
	transform: translateX(3px);
}

@container (max-height: 520px)
{
	.lobby_text
	{
		display: none;
	}
}

@container (max-height: 380px)
{
	.lobby_kicker,
	.lobby_win
	{
		display: none;
	}
}

@container (max-height: 290px)
{
	.lobby_tags
	{
		display: none;
	}

	.lobby_play
	{
		height: 34px;
		font-size: 12.5px;
	}
}

@container (max-width: 190px)
{
	.lobby_tag + .lobby_tag
	{
		display: none;
	}
}

@container (max-width: 150px)
{
	.lobby_play_name
	{
		display: none;
	}
}

/*
//=====================================================================================
*/

.games_heading
{
	display: flex;
	align-items: flex-end;
	gap: 16px;
	min-width: 0;
}

.games_featured
{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	height: 40px;
	padding: 0 14px 0 6px;
	border-radius: 12px;
	color: var(--text);
	font-size: 13px;
	white-space: nowrap;
	background: linear-gradient(90deg, rgba(245, 196, 81, 0.1), rgba(245, 196, 81, 0.02)), var(--surface);
	border: 1px solid rgba(245, 196, 81, 0.28);
	transition: border-color 0.2s;
}

.games_featured[hidden]
{
	display: none;
}

.games_featured:hover
{
	border-color: rgba(245, 196, 81, 0.5);
}

.games_featured_text
{
	display: grid;
	grid-template-columns: auto auto;
	align-items: baseline;
	column-gap: 8px;
	line-height: 1.2;
}

.games_featured_kicker
{
	grid-column: 1 / -1;
	color: var(--gold);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.games_featured_name
{
	font-family: var(--font_display);
	font-size: 14px;
}

.games_featured_left
{
	color: var(--text_dim);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.games_featured_fair
{
	padding-left: 10px;
	color: var(--text_mute);
	font-size: 12px;
	border-left: 1px solid var(--line);
}

.lobby_card.is_featured
{
	border-color: rgba(245, 196, 81, 0.45);
}

.lobby_featured
{
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 2px;
	border-radius: 999px;
	color: #fde68a;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	background: rgba(12, 9, 26, 0.78);
	border: 1px solid rgba(245, 196, 81, 0.3);
	pointer-events: none;
}

.lobby_featured_text
{
	padding-right: 7px;
}

@container (max-width: 180px)
{
	.lobby_featured_text
	{
		display: none;
	}
}

/*
//=====================================================================================
*/

@media (max-height: 800px) and (min-width: 1101px)
{
	.games_page .eyebrow
	{
		display: none;
	}

	.games_title
	{
		margin-top: 0;
	}
}

@media (max-width: 1100px)
{
	.games_page
	{
		height: auto;
	}

	.games_grid
	{
		flex: none;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 380px;
		grid-template-rows: none;
	}
}

@media (max-width: 600px)
{
	.games_grid
	{
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: 340px;
	}
}

/*
//=====================================================================================
*/
