.ak-puzzle-box {
	max-width: 760px;
	margin: 0 auto 28px;
	background: #ffffff;
	border-radius: 30px;
	padding: 22px;
	text-align: center;
	box-shadow: 0 18px 42px rgba(50, 35, 90, 0.14);
}

.ak-puzzle-wrap {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	background:
		radial-gradient(circle at top left, rgba(255, 230, 130, .55), transparent 34%),
		radial-gradient(circle at bottom right, rgba(124, 92, 255, .22), transparent 34%),
		linear-gradient(135deg, #fff8ef, #f3eeff);
	border: 5px solid #eadfff;
	border-radius: 28px;
	padding: 18px;
	overflow: hidden;
	min-height: 560px;
}

.ak-puzzle-title {
	margin: 0 0 8px;
	color: #20205f;
	font-size: 34px;
	font-weight: 950;
	line-height: 1.05;
}

.ak-puzzle-subtitle {
	margin: 0 0 14px;
	color: #6b6485;
	font-size: 15px;
	font-weight: 800;
}

#akPuzzleHud {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.ak-puzzle-hud-pill {
	background: rgba(255,255,255,.86);
	border: 2px solid rgba(234,223,255,.9);
	border-radius: 999px;
	padding: 9px 14px;
	color: #20205f;
	font-size: 15px;
	font-weight: 950;
	box-shadow: 0 8px 18px rgba(50,35,90,.08);
}

.ak-puzzle-area {
	position: relative;
	width: 100%;
	max-width: 570px;
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	background: #ffffff;
	border: 5px solid #ffffff;
	border-radius: 24px;
	box-shadow:
		0 18px 34px rgba(50, 35, 90, 0.16),
		inset 0 0 0 3px #eadfff;
	overflow: hidden;
	display: grid;
	touch-action: manipulation;
}

.ak-puzzle-piece {
	background-size: var(--size) var(--size);
	border: 1px solid rgba(255,255,255,.85);
	cursor: pointer;
	position: relative;
	transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

.ak-puzzle-piece:hover {
	filter: brightness(1.04);
	transform: scale(1.015);
	z-index: 3;
}

.ak-puzzle-piece.ak-selected {
	outline: 5px solid #ff5c8a;
	outline-offset: -5px;
	box-shadow: inset 0 0 0 4px rgba(255,255,255,.9);
	z-index: 5;
}

.ak-puzzle-message {
	min-height: 30px;
	font-size: 20px;
	font-weight: 950;
	color: #20c768;
	margin: 15px 0 0;
}

.ak-puzzle-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.ak-puzzle-actions button,
.ak-puzzle-start-btn {
	border: none;
	border-radius: 999px;
	padding: 12px 18px;
	background: linear-gradient(135deg, #7c5cff, #b84dff);
	color: #ffffff;
	font-size: 15px;
	font-weight: 950;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(124,92,255,.28);
	transition: transform .15s ease, box-shadow .15s ease;
}

.ak-puzzle-actions button:hover,
.ak-puzzle-start-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(124,92,255,.35);
}

.ak-puzzle-actions button.ak-active-level {
	background: linear-gradient(135deg, #ff5c8a, #ff9f43);
}

#akPuzzleStartOverlay {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 26px;
	background:
		linear-gradient(rgba(35, 22, 75, .70), rgba(35, 22, 75, .70)),
		var(--ak-puzzle-bg) center / cover no-repeat;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	text-align: center;
}

#akPuzzleStartOverlay.ak-hide {
	display: none;
}

#akPuzzleStartOverlay h1 {
	margin: 0 0 10px;
	color: #ffffff;
	font-size: 38px;
	font-weight: 950;
	line-height: 1.05;
	text-shadow: 0 4px 18px rgba(0,0,0,.28);
}

#akPuzzleStartOverlay p {
	margin: 0 0 24px;
	max-width: 420px;
	color: #ffffff;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.45;
}

.ak-puzzle-start-btn {
	font-size: 18px;
	padding: 15px 34px;
	background: linear-gradient(135deg, #20c768, #7ee65d);
	box-shadow: 0 12px 26px rgba(32,199,104,.35);
}

.ak-puzzle-level-screen {
	position: absolute;
	inset: 0;
	z-index: 15;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(32, 20, 70, .62);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	color: #ffffff;
	font-size: 38px;
	font-weight: 950;
	text-align: center;
}

.ak-puzzle-float {
	position: absolute;
	z-index: 10;
	color: #20c768;
	font-size: 24px;
	font-weight: 950;
	pointer-events: none;
	animation: akPuzzleFloat .8s ease forwards;
}

@keyframes akPuzzleFloat {
	0% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateY(-32px) scale(1.18);
	}
}

@media (max-width: 760px) {
	.ak-puzzle-box {
		padding: 12px;
		border-radius: 24px;
	}

	.ak-puzzle-wrap {
		padding: 12px;
		border-radius: 24px;
		min-height: 500px;
	}

	.ak-puzzle-title {
		font-size: 28px;
	}

	.ak-puzzle-subtitle {
		font-size: 13px;
	}

	.ak-puzzle-area {
		max-width: 100%;
		border-radius: 20px;
	}

	.ak-puzzle-hud-pill {
		font-size: 13px;
		padding: 8px 11px;
	}

	#akPuzzleStartOverlay h1 {
		font-size: 31px;
	}

	#akPuzzleStartOverlay p {
		font-size: 15px;
	}

	.ak-puzzle-level-screen {
		font-size: 30px;
	}
}

/* IMAGEM DO CARD / TELA INICIAL */
.ak-puzzle-wrap {
	background:
		radial-gradient(circle at top left, rgba(255, 230, 130, .55), transparent 34%),
		radial-gradient(circle at bottom right, rgba(124, 92, 255, .22), transparent 34%),
		linear-gradient(135deg, #fff8ef, #f3eeff) !important;
}

#akPuzzleStartOverlay {
	background:
		linear-gradient(rgba(35, 22, 75, .58), rgba(35, 22, 75, .58)),
		url("http://atividadekids.com/wp-content/uploads/2026/06/Quebra-Cabela.jpg") center center / cover no-repeat !important;
}