/* Popup Math Brain Teaser Reward Game - styles */

.pmbt-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;
}

.pmbt-modal {
	background: #fff;
	width: 100%;
	max-width: 420px;
	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;
}

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

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

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

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

.pmbt-step-1 form input[type="text"],
.pmbt-step-1 form input[type="email"],
.pmbt-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;
}

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

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

.pmbt-btn-primary {
	background: #7c3aed;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	margin-top: 8px;
}
.pmbt-btn-primary:hover { background: #6d28d9; }
.pmbt-btn-primary:disabled { background: #c4b5fd; cursor: not-allowed; }

/* Quiz */
.pmbt-quiz-top {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #666;
	font-weight: 600;
	margin-bottom: 6px;
}

.pmbt-timer {
	color: #7c3aed;
}

.pmbt-timer-bar-wrap {
	width: 100%;
	height: 6px;
	background: #eee;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 18px;
}

.pmbt-timer-bar {
	height: 100%;
	width: 100%;
	background: #7c3aed;
	transition: width 1s linear, background-color 0.3s ease;
}
.pmbt-timer-bar.pmbt-warn { background: #f59e0b; }
.pmbt-timer-bar.pmbt-danger { background: #dc2626; }

#pmbt-question {
	font-size: 32px;
	margin: 10px 0 18px;
	letter-spacing: 1px;
}

#pmbt-answer {
	width: 100%;
	padding: 14px 12px;
	border: 2px solid #ccc;
	border-radius: 8px;
	font-size: 22px;
	text-align: center;
	box-sizing: border-box;
}
#pmbt-answer:focus {
	outline: none;
	border-color: #7c3aed;
}

.pmbt-feedback {
	font-size: 14px;
	font-weight: 600;
}
.pmbt-feedback.correct { color: #16a34a; }
.pmbt-feedback.wrong { color: #dc2626; }

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

/* Mobile */
@media (max-width: 480px) {
	.pmbt-modal { padding: 20px 16px; }
	#pmbt-question { font-size: 26px; }
}
