.wgf-app {
	--wgf-cream: #fff8ed;
	--wgf-paper: #fffdf8;
	--wgf-ink: #172a54;
	--wgf-blue: #2850e8;
	--wgf-blue-dark: #1535b5;
	--wgf-coral: #f45151;
	--wgf-teal: #3894aa;
	--wgf-yellow: #f7bd3d;
	--wgf-green: #75ad39;
	background:
		radial-gradient(circle at 7% 8%, rgba(244, 81, 81, .2) 0 7px, transparent 8px),
		radial-gradient(circle at 93% 12%, rgba(247, 189, 61, .32) 0 6px, transparent 7px),
		linear-gradient(145deg, var(--wgf-cream), #fff3e2);
	border: 3px solid var(--wgf-ink);
	border-radius: 34px;
	box-shadow: 10px 12px 0 rgba(40, 80, 232, .18);
	color: var(--wgf-ink);
	font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
	margin: 28px auto;
	max-width: 940px;
	overflow: hidden;
	padding: clamp(20px, 4vw, 42px);
	position: relative;
}

.wgf-app::before,
.wgf-app::after {
	content: "";
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

.wgf-app::before {
	background: var(--wgf-blue);
	border-radius: 0 0 70% 0;
	height: 74px;
	left: 0;
	top: 0;
	width: 128px;
}

.wgf-app::after {
	background: var(--wgf-coral);
	border-radius: 55% 0 0 55%;
	height: 105px;
	right: -52px;
	top: 120px;
	transform: rotate(-8deg);
	width: 115px;
}

.wgf-app > * {
	position: relative;
	z-index: 1;
}

.wgf-header {
	margin-bottom: 30px;
	text-align: center;
}

.wgf-taxonomy {
	color: var(--wgf-blue-dark);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .06em;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.wgf-header h2 {
	color: var(--wgf-blue-dark);
	font-size: clamp(30px, 5vw, 46px);
	font-weight: 900;
	letter-spacing: -.035em;
	line-height: 1.05;
	margin: 9px 0 12px;
	text-transform: uppercase;
}

.wgf-level {
	background: var(--wgf-coral);
	border: 2px solid var(--wgf-ink);
	border-radius: 999px;
	box-shadow: 3px 4px 0 var(--wgf-ink);
	color: #fff;
	display: inline-block;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .06em;
	padding: 7px 15px;
	text-transform: uppercase;
}

.wgf-exercise {
	background: var(--wgf-paper);
	border: 2px solid var(--wgf-ink);
	border-radius: 19px;
	box-shadow: 5px 6px 0 rgba(23, 42, 84, .14);
	margin: 0 0 18px;
	padding: 18px;
}

.wgf-exercise:nth-child(4n+1) { border-left: 9px solid var(--wgf-blue); }
.wgf-exercise:nth-child(4n+2) { border-left: 9px solid var(--wgf-coral); }
.wgf-exercise:nth-child(4n+3) { border-left: 9px solid var(--wgf-yellow); }
.wgf-exercise:nth-child(4n) { border-left: 9px solid var(--wgf-teal); }

.wgf-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wgf-prompt {
	color: var(--wgf-blue-dark);
	flex: 1 1 250px;
	font-size: 21px;
	font-weight: 900;
}

.wgf-row input {
	background: #fff;
	border: 2px solid var(--wgf-ink);
	border-radius: 12px;
	box-shadow: inset 0 -3px 0 rgba(40, 80, 232, .08);
	font: inherit;
	font-size: 17px;
	max-width: 100%;
	padding: 11px 13px;
	width: 180px;
}

.wgf-row input:focus {
	border-color: var(--wgf-blue);
	box-shadow: 0 0 0 4px rgba(40, 80, 232, .18);
	outline: none;
}

.wgf-row button,
.wgf-restart {
	border: 2px solid var(--wgf-ink);
	border-radius: 999px;
	box-shadow: 3px 4px 0 var(--wgf-ink);
	cursor: pointer;
	font: inherit;
	font-weight: 900;
	padding: 10px 16px;
	transition: transform .15s ease, box-shadow .15s ease;
}

.wgf-row button:hover,
.wgf-restart:hover {
	box-shadow: 1px 2px 0 var(--wgf-ink);
	transform: translate(2px, 2px);
}

.wgf-check,
.wgf-restart {
	background: var(--wgf-blue);
	color: #fff;
}

.wgf-check:disabled {
	cursor: default;
	opacity: .55;
}

.wgf-meaning-button {
	background: var(--wgf-yellow);
	color: var(--wgf-ink);
}

.wgf-result {
	font-size: 28px;
	font-weight: 900;
	min-width: 26px;
}

.wgf-result.is-correct { color: #3c8b3a; }
.wgf-result.is-wrong,
.wgf-solution { color: #cf3038; }
.wgf-solution { font-weight: 900; }

.wgf-meaning {
	border-top: 2px dashed var(--wgf-teal);
	display: none;
	margin-top: 14px;
	padding-top: 11px;
}

.wgf-meaning.is-visible { display: block; }

.wgf-footer {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin-top: 30px;
}

.wgf-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.wgf-stats > div {
	background: #fff;
	border: 2px solid var(--wgf-ink);
	border-radius: 17px;
	box-shadow: 4px 5px 0 rgba(23, 42, 84, .18);
	min-width: 100px;
	padding: 11px 20px;
	text-align: center;
}

.wgf-stats > div:nth-child(1) { background: #e9f4d6; }
.wgf-stats > div:nth-child(2) { background: #ffe5df; }
.wgf-stats > div:nth-child(3) { background: #e2ecff; }
.wgf-stats strong,
.wgf-stats span { display: block; }
.wgf-stats strong { color: var(--wgf-ink); font-size: 28px; }
.wgf-stats span { font-size: 13px; font-weight: 800; }

@media (max-width: 600px) {
	.wgf-app {
		border-radius: 22px;
		box-shadow: 5px 7px 0 rgba(40, 80, 232, .18);
	}

	.wgf-row { align-items: stretch; }
	.wgf-prompt { flex-basis: 100%; }
	.wgf-row input { width: 100%; }
	.wgf-row button { flex: 1; }
	.wgf-stats > div { min-width: 78px; padding: 9px 11px; }
}
