/* Logo-only additions. The site's existing cards, circles and dimensions stay intact. */
.card-icon.game-logo-circle img {
	width: 88%;
	height: 88%;
	object-fit: contain;
	border-radius: 0;
}
.game-logo-image {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	max-height: var(--game-logo-max-height, 140px);
	object-fit: contain;
	margin: 0 auto 14px;
}
#match-game .match-logo-wrap {
	position: relative;
}
#match-game .game-logo-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #081e27b8;
	backdrop-filter: blur(3px);
	text-align: center;
}
#match-game .game-logo-overlay[hidden] {
	display: none;
}
#match-game .game-logo-card {
	width: min(100%, 390px);
	max-height: 100%;
	overflow: auto;
	background: #fcfaf2;
	border: 1px solid #e9e6d6;
	border-radius: 20px;
	padding: 24px;
	box-sizing: border-box;
	box-shadow: 0 16px 50px #0003;
}
#match-game .game-logo-card p {
	font: 400 18px/1.5 var(--font-body);
	color: #425b60;
	margin: 12px 0 16px;
}
#match-game .game-logo-button {
	letter-spacing: 0;
	text-transform: none;
}
#match-game .button {
	text-transform: none;
}
#match-game .game-logo-overlay.is-compact .game-logo-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 12px;
}
#match-game .game-logo-overlay.is-compact .game-logo-image {
	margin: 0;
	max-height: 70px;
}
#match-game .game-logo-overlay.is-compact p {
	display: none;
}
#match-game .game-logo-overlay.is-compact .game-logo-button {
	min-height: 44px;
	padding: 8px 10px;
}
#word-rally .rally-overlay.logo-ready .game-logo-image {
	margin: 0 auto 14px;
}
#word-rally .rally-overlay.logo-ready.is-compact > div {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 460px;
}
#word-rally .rally-overlay.logo-ready.is-compact .game-logo-image {
	width: 55%;
	margin: 0;
	flex: 1;
	min-width: 0;
}
#word-rally .rally-overlay.logo-ready.is-compact p {
	flex: 1;
	font-size: 16px;
	line-height: 1.3;
	margin: 0;
}
#word-rally .rally-overlay.logo-ready.is-tiny > div {
	display: block;
	padding: 8px;
	width: 100%;
	max-width: 340px;
}
#word-rally .rally-overlay.logo-ready.is-tiny .game-logo-image {
	width: 100%;
	max-height: var(--game-logo-max-height, 100px);
	margin: 0 auto;
}
#word-rally .rally-overlay.logo-ready.is-tiny p {
	display: none;
}
@media (max-width: 460px) {
	#match-game .game-logo-overlay {
		padding: 10px;
	}
	#match-game .game-logo-card {
		padding: 16px;
	}
	#match-game .game-logo-card p {
		font-size: 16px;
	}
}

/* Only the three Games-page logo circles receive colored backgrounds. */
.card-icon.game-logo-circle.logo-match {
	background: #cceee2;
}
.card-icon.game-logo-circle.logo-rally {
	background: #d4e6f4;
}
.card-icon.game-logo-circle.logo-storm {
	background: #ffddc9;
}
