.wzk-wrapper {
	max-width: 100%;
	margin: 20px 0;
	font-family: inherit;
	position: relative;
	z-index: 0;
	padding: 16px;
	border-radius: 10px;
}

.wzk-bg-layer {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 10px;
	pointer-events: none;
}

.wzk-grid-stage {
	position: relative;
	display: inline-block;
	margin-bottom: 20px;
}

.wzk-puzzle-row {
	display: block;
}

.wzk-puzzle-row.wzk-layout-links,
.wzk-puzzle-row.wzk-layout-rechts {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.wzk-puzzle-row.wzk-layout-links .wzk-words,
.wzk-puzzle-row.wzk-layout-rechts .wzk-words {
	flex: 0 1 auto;
	margin-bottom: 0;
}

.wzk-grid {
	display: grid;
	gap: 2px;
	user-select: none;
	background: #ddd;
	border: 2px solid #333;
	width: fit-content;
	touch-action: manipulation;
	position: relative;
}

.wzk-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #fff;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	text-transform: uppercase;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	position: relative;
	z-index: 1;
}

.wzk-line-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
	z-index: 2;
}

.wzk-cell.wzk-cell-start {
	background: #4caf50;
	color: #fff;
}

.wzk-cell.wzk-cell-end {
	background: #e53935;
	color: #fff;
}

.wzk-words {
	margin-bottom: 20px;
}

.wzk-word-list-columns {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.wzk-word-column {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	margin: 0;
}

.wzk-word-column li {
	padding: 4px 10px;
	background: #f0f0f0;
	border-radius: 4px;
	font-weight: 500;
	border-left: 6px solid transparent;
	white-space: nowrap;
}

.wzk-word-column li.wzk-word-done {
	text-decoration: line-through;
	color: #555;
}

.wzk-word-flow {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 8px 0 0;
}

.wzk-word-flow li {
	padding: 4px 10px;
	background: #f0f0f0;
	border-radius: 4px;
	font-weight: 500;
	border-left: 6px solid transparent;
}

.wzk-word-flow li.wzk-word-done {
	text-decoration: line-through;
	color: #555;
}

.wzk-solution-row {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}

.wzk-solution-input {
	flex: 1;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.wzk-solution-check {
	padding: 8px 16px;
	border: none;
	background: #2271b1;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.wzk-solution-check:hover {
	background: #135e96;
}

.wzk-solution-feedback {
	margin-top: 8px;
	font-weight: 600;
}

.wzk-solution-feedback.wzk-correct {
	color: #2e6b2e;
}

.wzk-solution-feedback.wzk-incorrect {
	color: #b32d2e;
}

.wzk-solution-answer {
	margin-top: 16px;
	padding: 10px 14px;
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 4px;
	font-size: 15px;
}

.wzk-answer-key .wzk-cell {
	cursor: default;
}

.wzk-counter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #eef6ff;
	border: 1px solid #cfe3fb;
	border-radius: 20px;
	padding: 6px 16px;
	font-weight: 600;
	color: #1e88e5;
	margin-bottom: 16px;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wzk-counter-icon {
	font-size: 16px;
}

.wzk-counter.wzk-counter-complete {
	background: #edfaef;
	border-color: #b7e4bd;
	color: #1e5b26;
}

.wzk-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.wzk-meta-row .wzk-counter {
	margin-bottom: 0;
}

.wzk-difficulty {
	font-size: 18px;
	letter-spacing: 2px;
	color: #f5a623;
	margin-bottom: 16px;
}
