.games-page {
	padding: 0 0 28px;
}

.games-page__title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.games-list {
	display: flex;
	flex-direction: column;
}

.games-card {
	display: flex;
	align-items: flex-start;
	gap: 22px;
	width: 100%;
	padding: 22px 0;
	border-bottom: 1px solid #e3eaf2;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	box-sizing: border-box;
}

.games-card-media {
	flex: 0 0 425px;
	width: 425px;
	max-width: 80%;
	position: relative;
}

.games-card-hit {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 10px;
}

.games-card-media:hover + .games-card-body .games-card-title {
	text-decoration: underline;
}

.games-card:first-child {
	padding-top: 0;
}

.games-card:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.games-card-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.games-card-body {
	flex: 1;
	min-width: 0;
	padding-top: 2px;
}

.games-page .games-card-title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.25;
}

.games-card-title--blossom {
	color: #8e44b3;
}

.games-card-title--wordtrail {
	color: #8b5a2b;
}

.games-card-title--wordweave {
	color: #b8860b;
}

.games-card-title--labyrinth {
	color: #1b3352;
}

.games-card-title--bookstore {
	color: #234e70;
}

.games-card-title--helicopter {
	color: #3d7a28;
}

.games-card-desc {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.55;
	color: #5c7084;
}

.games-card-stats {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	font-size: 12px;
	line-height: 1.4;
	color: #42586d;
}

.games-card-stats li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.games-card-stats li span[aria-hidden="true"] {
	font-size: 14px;
	line-height: 1;
}

.games-card-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	position: relative;
	z-index: 2;
}

.games-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 38px;
	padding: 9px 22px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	box-sizing: border-box;
}

.games-btn--blossom {
	background: #8e44b3;
	color: #ffffff;
	border-color: #8e44b3;
}

.games-btn--blossom:hover,
.games-btn--blossom:focus {
	background: #7a3a9a;
	border-color: #7a3a9a;
	color: #ffffff;
	text-decoration: none;
}

.games-btn--wordtrail {
	background: #8b5a2b;
	color: #ffffff;
	border-color: #6b4423;
}

.games-btn--wordtrail:hover,
.games-btn--wordtrail:focus {
	background: #6b4423;
	border-color: #5c3d1e;
	color: #ffffff;
	text-decoration: none;
}

.games-btn--wordweave {
	background: #c9a227;
	color: #ffffff;
	border-color: #a67c00;
}

.games-btn--wordweave:hover,
.games-btn--wordweave:focus {
	background: #a67c00;
	border-color: #8a6800;
	color: #ffffff;
	text-decoration: none;
}

.games-btn--labyrinth {
	background: #1b3352;
	color: #ffffff;
	border-color: #1b3352;
}

.games-btn--labyrinth:hover,
.games-btn--labyrinth:focus {
	background: #142840;
	border-color: #142840;
	color: #ffffff;
	text-decoration: none;
}

.games-btn--bookstore {
	background: #234e70;
	color: #ffffff;
	border-color: #1a365d;
}

.games-btn--bookstore:hover,
.games-btn--bookstore:focus {
	background: #1a365d;
	border-color: #153450;
	color: #ffffff;
	text-decoration: none;
}

.games-btn--helicopter {
	background: #4a9c2d;
	color: #ffffff;
	border-color: #4a9c2d;
}

.games-btn--helicopter:hover,
.games-btn--helicopter:focus {
	background: #3d7a28;
	border-color: #3d7a28;
	color: #ffffff;
	text-decoration: none;
}

.games-btn--ghost {
	background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
	color: #42586d;
	border-color: #c8d4df;
	font-weight: normal;
}

.games-btn--ghost:hover,
.games-btn--ghost:focus {
	background: linear-gradient(180deg, #f8fafc 0%, #e4ebf2 100%);
	color: #1b3352;
}

body.games-modal-open {
	overflow: hidden;
}

.games-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(16, 35, 55, 0.65);
	z-index: 10000;
}

.games-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(520px, calc(100vw - 32px));
	max-height: var(--yws-modal-max-height, 70dvh);
	overflow: auto;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	z-index: 10001;
}

.games-modal-header {
	background: #1b3352;
	color: #ffffff;
	padding: 14px 18px;
	border-radius: 10px 10px 0 0;
}

.games-modal-header h2 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.3;
	color: #ffffff;
}

.games-modal-body {
	padding: 18px 20px 20px;
}

.games-help-text h3 {
	margin: 16px 0 6px;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
	color: #1b3352;
}

.games-help-text h3:first-child {
	margin-top: 0;
}

.games-help-text ul {
	margin: 0 0 12px;
	padding-left: 18px;
}

.games-help-text li {
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1.6;
	color: #5c7084;
}

.games-help-text p {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.6;
	color: #5c7084;
}

.games-help-text p:last-child {
	margin-bottom: 0;
}

.games-modal-close {
	margin-top: 16px;
}

.games-card-media--fallback {
	min-height: 160px;
}

.games-card-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 160px;
	border-radius: 10px;
	box-sizing: border-box;
}

.games-card-fallback--wordweave {
	background: linear-gradient(135deg, #fbf3d8 0%, #e8c547 55%, #b8860b 100%);
}

.games-card-fallback__title {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #5c4500;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

@media (max-width: 640px) {
	.games-card {
		flex-direction: column;
		gap: 16px;
		width: 100%;
	}

	.games-card-media {
		flex: none;
		max-width: none;
		width: 100%;
	}
}
