/* Popup Memory Match Reward Game - styles */

.pmmg-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.pmmg-modal {
	background: #fff;
	width: 100%;
	max-width: 440px;
	border-radius: 12px;
	padding: 28px 24px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0,0,0,0.25);
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	max-height: 90vh;
	overflow-y: auto;
}

.pmmg-modal h2 {
	margin-top: 0;
	font-size: 22px;
}

.pmmg-close {
	position: absolute;
	top: 10px;
	right: 16px;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	user-select: none;
}
.pmmg-close:hover { color: #222; }

.pmmg-step p { margin: 10px 0; }

.pmmg-step-1 form label {
	display: block;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
	color: #333;
}

.pmmg-step-1 form input[type="text"],
.pmmg-step-1 form input[type="email"],
.pmmg-step-1 form input[type="tel"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.pmmg-honeypot { display: none !important; }

.pmmg-error {
	color: #c0392b;
	font-size: 13px;
	text-align: left;
}

.pmmg-btn-primary {
	background: #0891b2;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	margin-top: 8px;
}
.pmmg-btn-primary:hover { background: #0e7490; }

.pmmg-quiz-top {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #666;
	font-weight: 600;
	margin-bottom: 10px;
}

.pmmg-timer { color: #0891b2; }
.pmmg-timer.pmmg-warn { color: #f59e0b; }
.pmmg-timer.pmmg-danger { color: #dc2626; }

/* Card grid */
.pmmg-board {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 10px auto 0;
	max-width: 340px;
}

.pmmg-card {
	aspect-ratio: 1 / 1;
	background: #0891b2;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	cursor: pointer;
	user-select: none;
	transition: transform 0.15s ease, background 0.15s ease;
}
.pmmg-card.pmmg-flipped {
	background: #f0fdfa;
	color: #0e7490;
	transform: scale(1.03);
}
.pmmg-card.pmmg-matched {
	background: #d1fae5;
	color: #059669;
	cursor: default;
	opacity: 0.85;
}

.pmmg-win-text {
	font-size: 20px;
}

/* Mobile */
@media (max-width: 480px) {
	.pmmg-modal { padding: 20px 16px; }
	.pmmg-board { max-width: 280px; gap: 6px; }
	.pmmg-card { font-size: 20px; }
}
