.kwr-puzzle {
	font-family: inherit;
	max-width: 900px;
	margin: 24px auto;
}

.kwr-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
	gap: 8px;
}
.kwr-stars {
	font-size: 18px;
	letter-spacing: 2px;
	color: #d8dee9;
}
.kwr-star.is-filled {
	color: #ffb703;
}
.kwr-progress {
	font-size: 14px;
	font-weight: bold;
	color: #4dabf7;
}
.kwr-progress--solution {
	color: #d85a30;
}

.kwr-instructions-demo {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}
.kwr-demo-cell {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 2px solid #4dabf7;
	border-radius: 6px;
	font-weight: bold;
	font-size: 17px;
	animation: kwr-demo-pulse 1.6s ease-in-out infinite;
}
@keyframes kwr-demo-pulse {
	0%, 100% { transform: scale(1); border-color: #4dabf7; }
	50% { transform: scale(1.12); border-color: #ffd93d; }
}

.kwr-print-group {
	display: flex;
	gap: 8px;
}

.kwr-cell-answer {
	font-weight: bold;
	font-size: 17px;
	color: #2b8a3e;
}

.kwr-grid-wrap {
	position: relative;
}
.kwr-grid {
	position: relative;
}

.kwr-solution-link {
	margin-top: 14px;
	font-size: 14px;
}
.kwr-solution-link a {
	color: #4dabf7;
	font-weight: bold;
}

.kwr-instructions {
	margin-bottom: 16px;
}
.kwr-instructions-toggle {
	background: #ffd93d;
	border: none;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 2px 0 rgba(0,0,0,0.1);
	transition: transform 0.15s ease;
}
.kwr-instructions-toggle:hover {
	transform: translateY(-1px);
}
.kwr-instructions-panel {
	margin-top: 10px;
	background: #fff8e1;
	border-radius: 14px;
	padding: 14px 18px;
	border: 2px dashed #ffd93d;
}
.kwr-instructions-panel p {
	margin: 6px 0;
	font-size: 15px;
}

.kwr-puzzle-body {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
}

.kwr-grid-wrap {
	overflow-x: auto;
}
.kwr-grid {
	display: grid;
	gap: 3px;
	width: max-content;
}
.kwr-cell {
	width: 34px;
	height: 34px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}
.kwr-cell.is-black {
	background: #2d2d2d;
}
.kwr-cell.is-white {
	background: #ffffff;
	border: 2px solid #d8dee9;
	transition: transform 0.1s ease, border-color 0.15s ease;
}
.kwr-cell.is-white.is-active {
	border-color: #4dabf7;
}
.kwr-cell.is-white.is-highlighted {
	background: #eaf6ff;
}
.kwr-cell-number {
	position: absolute;
	top: 1px;
	left: 3px;
	font-size: 9px;
	color: #6c7a89;
	font-weight: bold;
}
.kwr-cell input {
	width: 100%;
	height: 100%;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 17px;
	font-weight: bold;
	text-transform: uppercase;
	color: #2b2d42;
	outline: none;
	transition: transform 0.12s ease;
}
.kwr-cell input:focus {
	transform: scale(1.08);
}

.kwr-clues {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	flex: 1;
	min-width: 220px;
}
.kwr-clue-group h4 {
	margin: 0 0 8px;
	color: #4dabf7;
}
.kwr-clue-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.kwr-clue-list li {
	padding: 4px 8px;
	border-radius: 8px;
	margin-bottom: 3px;
	cursor: pointer;
	font-size: 14px;
}
.kwr-clue-list li:hover {
	background: #f1f6fb;
}
.kwr-clue-list li.is-active-clue {
	background: #ffe066;
	font-weight: bold;
}

.kwr-status {
	margin-top: 16px;
	font-size: 16px;
	font-weight: bold;
	color: #2b8a3e;
	min-height: 24px;
}

.kwr-toolbar {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.kwr-print-btn {
	background: #eaf6ff;
	border: none;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 2px 0 rgba(0,0,0,0.1);
	transition: transform 0.15s ease;
}
.kwr-print-btn:hover {
	transform: translateY(-1px);
}

/* Printbare versie: lege puzzel met transparante, ongebruikte vakjes. */
@media print {
	body * {
		visibility: hidden;
	}
	.kwr-puzzle, .kwr-puzzle * {
		visibility: visible;
	}
	.kwr-puzzle {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		max-width: none;
		margin: 0;
	}
	.kwr-toolbar,
	.kwr-instructions,
	.kwr-status,
	.kwr-meta-row,
	.kwr-solution-link {
		display: none !important;
	}
	.kwr-grid-wrap {
		background: none !important;
	}
	.kwr-cell.is-black {
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
	}
	.kwr-cell.is-white {
		background: transparent !important;
		border: 1.5px solid #000 !important;
	}
	.kwr-cell.is-white.is-active,
	.kwr-cell.is-white.is-highlighted {
		background: transparent !important;
	}
	.kwr-cell input {
		color: transparent !important;
		caret-color: transparent !important;
	}
	.kwr-cell-number {
		color: #000 !important;
	}
	.kwr-puzzle-body {
		gap: 40px;
	}
	.kwr-clue-list li {
		color: #000 !important;
		background: transparent !important;
	}
}

/* Overzicht-shortcode */
.kwr-overzicht {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}
.kwr-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kwr-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.kwr-card-thumb img {
	width: 100%;
	display: block;
}
.kwr-card-type {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #4dabf7;
	padding: 10px 12px 0;
	font-weight: bold;
}
.kwr-card-title {
	margin: 0;
	padding: 12px;
	font-size: 15px;
}
