/* Friendly learning palette and progress treatments. Base layout lives in game.css. */
.lg-app {
	--ink: #272441;
	--muted: #6a6780;
	--accent: #6850cd;
	--line: #e8e4f1;
	max-width: 1120px;
	background: #f8f7fc;
	border-radius: 28px;
	box-shadow: 0 12px 45px #39295c0a;
}
.lg-app h2 {
	letter-spacing: -0.035em;
}
.lg-brand {
	color: #5944b4;
	font-weight: 850;
}
.lg-app .lg-button,
.lg-app .lg-choice {
	border-radius: 14px;
	font-weight: 700;
	box-shadow: 0 3px 0 #473299;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
}
.lg-app .lg-button.secondary {
	color: #564294;
	border-color: #ded7ee;
	box-shadow: 0 2px 0 #e4dff0;
}
.lg-app button:hover {
	transform: translateY(-1px);
	filter: none;
}
.lg-app button:active {
	transform: translateY(2px);
	box-shadow: none;
}
.lg-app button:disabled {
	transform: none;
}
.lg-nav {
	background: #eeebf6;
	border: 0;
	border-radius: 15px;
	padding: 7px;
}
.lg-nav .lg-button {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: #62537e !important;
	font-size: 14px;
	min-height: 44px;
}
.lg-nav .lg-button:hover {
	background: #fff !important;
}
.lg-hero {
	border-radius: 24px;
	background: linear-gradient(120deg, #5943b1, #8269df);
	box-shadow: 0 8px 20px #6551b922;
}
.lg-hero h3 {
	font-size: clamp(29px, 4vw, 41px);
	line-height: 1.2;
	color: #fff;
}
.lg-hero p {
	color: #f0eaff;
}
.lg-hero .lg-button {
	background: #ffdf87;
	color: #3a2b54;
	box-shadow: 0 3px 0 #c6a65c;
	position: relative;
	z-index: 1;
}
.lg-hero .lg-pill {
	background: #ffffff22;
	color: #fff;
	border: 1px solid #ffffff40;
}
.lg-hero-art {
	position: absolute;
	right: 38px;
	top: 40px;
	width: 180px;
	height: 180px;
	border-radius: 48px;
	transform: rotate(9deg);
	background: #ffffff13;
	border: 1px solid #ffffff28;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.lg-hero-art span {
	font-size: 100px;
	line-height: 1;
	color: #ffe49d;
	text-shadow: 0 7px 0 #45328b66;
}
.lg-hero-art small {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.17em;
	margin-top: 14px;
	color: #fff4d9;
}
.lg-level-progress {
	max-width: 410px;
	margin-top: 28px;
	position: relative;
	z-index: 1;
}
.lg-level-progress span {
	font-size: 12px;
	color: #f3efff;
}
.lg-app .lg-level-progress progress {
	display: block;
	accent-color: #ffdf87;
	margin-top: 8px;
	height: 8px;
}
.lg-pill {
	background: #eeebfa;
	color: #605096;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
}
.lg-stat {
	border-radius: 18px;
	padding: 22px;
}
.lg-stat strong {
	color: #463672;
	font-weight: 750;
	font-size: 28px;
}
.lg-stat:nth-child(4n + 1) {
	border-top: 3px solid #b29be8;
}
.lg-stat:nth-child(4n + 2) {
	border-top: 3px solid #efbe78;
}
.lg-stat:nth-child(4n + 3) {
	border-top: 3px solid #86bdb1;
}
.lg-stat:nth-child(4n + 4) {
	border-top: 3px solid #8eb8df;
}
.lg-actions .lg-button {
	flex: 1;
	min-width: 180px;
}
.lg-card,
.lg-history,
.lg-question,
.lg-feedback {
	border-radius: 20px;
	box-shadow: 0 3px 0 #ebe7f3;
}
.lg-filters {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
}
.lg-filters select {
	margin-bottom: 0;
}
.lg-app input,
.lg-app select {
	border: 2px solid #d9d2e8;
	border-radius: 12px;
	min-height: 54px;
}
.lg-app input:focus,
.lg-app select:focus {
	border-color: var(--accent);
}
.lg-app input::placeholder {
	color: #858094;
}
.lg-app .lg-choice {
	color: #514462;
	background: #fcfbff;
	border-color: #e6e0f0;
	min-height: 60px;
	box-shadow: 0 3px 0 #e6e0f0;
	font-weight: 600;
}
.lg-app .lg-choice[aria-pressed='true'] {
	border-color: #8670cc;
	background: #eee8ff;
	color: #4e3792;
	box-shadow: 0 3px 0 #8670cc;
}
.lg-question {
	max-width: 780px;
	margin: 24px auto;
	padding: clamp(24px, 4vw, 38px);
}
.lg-question h3 {
	font-size: clamp(23px, 3vw, 30px);
	font-weight: 600;
	margin: 20px 0 28px;
}
.lg-question h3 strong,
.lg-question h3 b {
	font-weight: 850;
	color: #6045b0;
}
.lg-question u,
.lg-feedback u {
	text-underline-offset: 5px;
	text-decoration-thickness: 2px;
}
.lg-question .lg-button[type='submit'] {
	width: 100%;
	margin-top: 14px;
}
.lg-question-mode {
	font-size: 11px;
	letter-spacing: 0.1em;
	color: #7c67b6;
	font-weight: 800;
}
.lg-feedback.correct {
	background: #eef8f2;
	border-color: #a1cbb3;
}
.lg-feedback.wrong {
	background: #fff7e9;
	border-color: #e8cc97;
}
.lg-feedback > strong {
	display: block;
	padding: 14px 18px;
	background: #ffffffb0;
	border-radius: 12px;
	font-size: 20px;
}
.lg-feedback-badge {
	display: inline-block;
	background: #eeebfa;
	color: #5c4996;
	border-radius: 30px;
	padding: 10px 17px;
	font-size: 14px;
	font-weight: 650;
	margin: 10px 0;
}
.lg-enemy {
	background: #ede7ff;
	border: 1px solid #d5c9f1;
	color: #5b438d;
	border-radius: 14px;
	font-weight: 650;
}
.lg-topic {
	padding: 17px 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 13px;
	margin: 12px 0;
	font-size: 14px;
}
.lg-app progress {
	border: 0;
	border-radius: 10px;
	height: 10px;
}
.lg-app progress::-webkit-progress-bar {
	background: #e8e3f1;
	border-radius: 10px;
}
.lg-app progress::-webkit-progress-value {
	background: #8b74d4;
	border-radius: 10px;
}
.lg-app .lg-level-progress progress::-webkit-progress-bar {
	background: #ffffff25;
}
.lg-app .lg-level-progress progress::-webkit-progress-value {
	background: #ffdf87;
}
.lg-review-note {
	padding: 14px 18px;
	background: #f0ecfc;
	border-radius: 12px;
	color: #5c4b8b;
}
.lg-weak-card details {
	margin: 12px 0;
	background: #f7f5fc;
	border-radius: 12px;
}
.lg-weak-card details p {
	padding: 0 14px 14px;
}
.lg-pill.weak {
	background: #fbe7df;
	color: #874730;
}
.lg-pill.learning {
	background: #fff0c9;
	color: #775813;
}
.lg-pill.strong {
	background: #e0f2ea;
	color: #2d6952;
}
.lg-pill.mastered {
	background: #eee7fb;
	color: #6b429b;
}
@media (min-width: 760px) {
	.lg-stats[data-count='6'] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.lg-stats[data-count='2'] {
		max-width: 500px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-left: auto;
		margin-right: auto;
	}
	.lg-hero h3,
	.lg-hero p {
		max-width: 65%;
	}
}
@media (max-width: 759px) {
	.lg-hero-art {
		display: none;
	}
	.lg-app {
		border-radius: 20px;
	}
	.lg-stat {
		padding: 17px;
	}
	.lg-top .lg-button {
		padding: 9px 12px;
		font-size: 12px;
		min-height: 43px;
	}
	.lg-brand {
		font-size: 10px;
	}
	.lg-nav .lg-button {
		font-size: 13px;
		padding: 10px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.lg-app * {
		transition: none !important;
	}
}

.lg-app .lg-timer {
	padding: 12px 16px;
	border-radius: 12px;
	background: #fff0ce;
	color: #694400;
	font-weight: 800;
	font-size: 1.15rem;
	font-variant-numeric: tabular-nums;
}
.lg-app .lg-guest-form {
	display: grid;
	gap: 18px;
	max-width: 600px;
	margin: 24px auto;
}
.lg-app .lg-guest-form label {
	display: grid;
	gap: 8px;
	font-weight: 700;
}
.lg-app .lg-guest-form input {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	border: 1px solid #c9c1e4;
	border-radius: 12px;
	padding: 12px;
	font: inherit;
}
