.game-picker-layer {
	z-index: 2147483647 !important;
}

.game-picker-open #po-foot-id {
	display: none !important;
}

.game-picker-layer ._2y_2 {
	max-width: calc(100vw - 32px);
	margin-top: 16px !important;
	padding: 0;
}

.game-picker-layer ._2y_3 {
	box-sizing: border-box;
	width: min(1100px, calc(100vw - 32px)) !important;
	padding: 24px !important;
	border-radius: 8px;
	box-shadow: 0 12px 40px #0005;
}

.game-picker-layer ._2y_6 {
	display: none;
}

.game-picker {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 80px);
	max-height: calc(100dvh - 80px);
	font: 16px/1.4 Arial, Helvetica, sans-serif;
	color: #243126;
}

.game-picker__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.game-picker__home {
	box-sizing: border-box;
	flex: none;
	display: flex;
	align-items: center;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #9dbb9f;
	border-radius: 4px;
	color: #245b2e;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

.game-picker__home:hover,
.game-picker__home:focus-visible {
	background: #e8f2e9;
}

.game-picker__home-icon {
	display: none;
}

.game-picker__search {
	box-sizing: border-box;
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #9dbb9f;
	border-radius: 4px;
	background: #fff;
	color: #243126;
	font: inherit;
}

.game-picker__search:focus {
	outline: 2px solid #348e42;
	outline-offset: 1px;
}

.game-picker__close {
	flex: none;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 4px;
	background: #e8eee8;
	color: #243126;
	font-size: 27px;
	line-height: 1;
	cursor: pointer;
}

.game-picker__close:hover,
.game-picker__close:focus-visible {
	background: #d2e4d2;
}

.game-picker__previews,
.game-picker__results {
	flex: 1 1 auto;
	min-height: 0;
	height: 68vh;
	max-height: 68vh;
}

.game-picker__loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 100%;
}

.game-picker__spinner {
	box-sizing: border-box;
	width: 42px;
	height: 42px;
	border: 4px solid #d9e9db;
	border-top-color: #2e903b;
	border-radius: 50%;
	animation: game-picker-spin 750ms linear infinite;
}

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

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

.game-picker__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-content: start;
	gap: 18px;
	box-sizing: border-box;
	height: 100%;
	padding-right: 4px;
	overflow-y: auto;
}

.game-picker__card {
	position: relative;
	min-width: 0;
	aspect-ratio: 6 / 5;
	background-color: #2e903b;
	background-image: linear-gradient(to top, #369c3d, #2e733d);
	background-position: center;
	background-size: cover;
}

.game-picker__card[hidden] {
	display: none;
}

.game-picker__results[hidden],
.game-picker__previews[hidden] {
	display: none;
}

.game-picker__results {
	overflow-y: auto;
}

.game-picker__result {
	display: block;
	padding: 10px 14px;
	border-bottom: 1px solid #e1e9e2;
	color: #245b2e;
	text-decoration: none;
}

.game-picker__result:hover,
.game-picker__result:focus-visible {
	background: #e8f2e9;
}

.game-picker__card-main {
	position: absolute;
	inset: 0 0 54px;
	padding: 16px 18px;
	color: #fff;
	text-decoration: none;
}

.game-picker__card-title {
	display: block;
	font-size: 20px;
	line-height: 1.2;
	text-shadow: 0 1px 2px #0005;
}

.game-picker__card-main:hover .game-picker__card-title,
.game-picker__card-main:focus-visible .game-picker__card-title {
	text-decoration: underline;
}

.game-picker__card-cta {
	position: absolute;
	right: 18px;
	bottom: 16px;
	left: 18px;
	box-sizing: border-box;
	min-height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border: 2px solid #fff;
	border-radius: 3px;
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.game-picker__card-cta:hover,
.game-picker__card-cta:focus-visible {
	background: #fff;
	color: #2e733d;
}

.game-picker__all {
	display: inline-block;
	margin-top: 18px;
	color: #245b2e;
}

.game-picker__message {
	margin: 0;
}

@media (max-width: 960px) {
	.game-picker__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 740px) {
	.game-picker__list {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (max-width: 560px) {

	.game-picker__heading {
		gap: 8px;
	}

	.game-picker__home {
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
	}

	.game-picker__home-icon {
		display: block;
		width: 20px;
		height: 20px;
	}

	.game-picker__home-label {
		display: none;
	}

	.game-picker-layer ._2y_3 {
		padding: 18px !important;
	}

	.game-picker__card-main {
		padding: 16px;
	}

	.game-picker__card-cta {
		right: 16px;
		bottom: 16px;
		left: 16px;
		font-size: 14px;
	}
}

.game-picker__heading, .game-picker__all { flex-shrink: 0; }
.game-picker__previews { overflow: hidden; }
@media (max-width: 560px) {
	.game-picker { max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); }
}

/* The existing mobile header hides the title; keep the picker reachable. */
@media (max-width: 610px) {
	._4d_0._4f[aria-label="Открыть список игр"] {
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
		margin: auto 4px;
	}
	._4d_0._4f[aria-label="Открыть список игр"] ._4f_0 { margin-right: 0; }
}
._4d_0[role="button"]:focus-visible,
._4d_2[role="button"]:focus-visible { outline: 2px solid #fffde2; outline-offset: -2px; }
