/* Popup Puzzle Reward Game - styles */

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

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

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

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

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

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

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

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

.ppr-error {
	color: #c0392b;
	background: #fdecea;
	border: 1px solid #f5b7b1;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	margin-top: 8px;
}

.ppr-btn-primary {
	background: #2563eb;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	margin-top: 8px;
}
.ppr-btn-primary:hover { background: #1d4ed8; }
.ppr-btn-primary:disabled { background: #93b4f5; cursor: not-allowed; }

.ppr-hint {
	font-size: 13px;
	color: #666;
}

/* Puzzle board */
#ppr-puzzle-board {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 6px;
	width: 240px;
	height: 240px;
	margin: 16px auto;
}

.ppr-tile {
	background: #2563eb;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	cursor: pointer;
	user-select: none;
	transition: transform 0.05s ease;
}
.ppr-tile:active { transform: scale(0.95); }

.ppr-tile-blank {
	background: transparent;
	cursor: default;
	box-shadow: inset 0 0 0 2px #eee;
}

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

/* Mobile */
@media (max-width: 480px) {
	.ppr-modal { padding: 20px 16px; }
	#ppr-puzzle-board { width: 210px; height: 210px; }
}
