/* GameMind Quality Repair — intentionally small compatibility layer. */

/* Empty advertising boxes are useful during setup but should never appear in
   a production review merely because an administrator is signed in. */
.ad-placeholder {
	display: none !important;
}

/* Keep profile feedback inside the modal and above the backdrop on short
   laptop and mobile viewports. */
.player-dialog {
	max-height: calc(100dvh - 24px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.player-dialog-card {
	isolation: isolate;
}

.profile-feedback:not([hidden]) {
	position: relative;
	z-index: 4;
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.gamemind-toast {
	z-index: 2147483000;
}

/* Ten cards stay balanced instead of leaving the last two stranded. */
@media (min-width: 981px) {
	.hot-games-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.player-dialog {
		width: min(96vw, 560px);
		max-height: calc(100dvh - 12px);
	}
}
