/* Shared accessibility safeguards for every public K4K Quiz surface. */
:is(
	.k4kq-account,
	.k4kq-home,
	.k4kq-leaderboard,
	.k4kq-notifications,
	.k4kq-profile,
	.k4kq-quiz,
	.k4kq-search
) :focus-visible {
	outline: 3px solid #0b57d0 !important;
	outline-offset: 3px !important;
}

:is(
	.k4kq-account,
	.k4kq-home,
	.k4kq-leaderboard,
	.k4kq-notifications,
	.k4kq-profile,
	.k4kq-quiz,
	.k4kq-search
) :is(h1, h2, h3, p, a, button, label, legend, summary, td, th) {
	overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
	:is(
		.k4kq-account,
		.k4kq-home,
		.k4kq-leaderboard,
		.k4kq-notifications,
		.k4kq-profile,
		.k4kq-quiz,
		.k4kq-search
	),
	:is(
		.k4kq-account,
		.k4kq-home,
		.k4kq-leaderboard,
		.k4kq-notifications,
		.k4kq-profile,
		.k4kq-quiz,
		.k4kq-search
	) *,
	:is(
		.k4kq-account,
		.k4kq-home,
		.k4kq-leaderboard,
		.k4kq-notifications,
		.k4kq-profile,
		.k4kq-quiz,
		.k4kq-search
	) *::before,
	:is(
		.k4kq-account,
		.k4kq-home,
		.k4kq-leaderboard,
		.k4kq-notifications,
		.k4kq-profile,
		.k4kq-quiz,
		.k4kq-search
	) *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	:is(
		.k4kq-account,
		.k4kq-home,
		.k4kq-leaderboard,
		.k4kq-notifications,
		.k4kq-profile,
		.k4kq-quiz,
		.k4kq-search
	) :is(button, a, input, select, summary) {
		forced-color-adjust: auto;
	}

	.k4kq-profile-badge-track > span {
		background: Highlight;
	}
}
