.arx-quiz-root[hidden],
.arx-quiz-root [hidden] {
	display: none !important;
}

.arx-quiz-root {
	--arx-quiz-gutter: clamp(.5rem, 2vmin, 1.25rem);
	position: fixed;
	inset: 0;
	z-index: 11000;
	display: grid;
	place-items: center;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	overflow: hidden;
	overscroll-behavior: contain;
	padding: var(--arx-quiz-gutter);
	background: rgb(2 8 18 / 82%);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	animation: arx-quiz-fade-in .2s ease both;
}

.arx-quiz-panel {
	position: relative;
	box-sizing: border-box;
	width: min(640px, 100%);
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid #596273;
	border-radius: 16px;
	background: linear-gradient(145deg, #07172c 0%, #0a1d35 58%, #091626 100%);
	box-shadow: 0 26px 80px rgb(0 0 0 / 48%), 0 0 32px rgb(221 183 107 / 10%);
	color: #f6f7fa;
	animation: arx-quiz-scale-in .22s ease-out both;
	--arx-type-body: .82rem;
	--arx-type-h2: clamp(1.05rem, 3.2vw, 1.4rem);
	--arx-type-h3: .93rem;
}

#arx-knowledge-quiz :is(p, h3) {
	line-height: 1.35 !important;
}

.arx-quiz-panel:focus-visible {
	outline: 3px solid #ddb76b;
	outline-offset: 4px;
}

.arx-quiz-close {
	position: absolute;
	top: .6rem;
	right: .6rem;
	z-index: 2;
	display: grid;
	width: 2rem;
	height: 2rem;
	place-items: center;
	border: 1px solid rgb(221 183 107 / 65%);
	border-radius: 50%;
	background: #0b203a;
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.arx-quiz-close:hover {
	transform: rotate(4deg);
	border-color: #ddb76b;
	background: #132c4b;
}

.arx-quiz-close:focus-visible,
.arx-quiz-panel button:focus-visible,
.arx-quiz-panel input:focus-visible {
	outline: 3px solid #ddb76b;
	outline-offset: 3px;
}

.arx-quiz-content {
	padding: clamp(.75rem, 2.5vw, 1.25rem);
}

.arx-quiz-header {
	padding: 0 2.2rem .65rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.arx-quiz-title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.05rem, 3.2vw, 1.4rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.arx-quiz-intro {
	max-width: 620px;
	margin: .35rem 0 0;
	color: #c3ccda;
	font-size: .82rem;
	line-height: 1.35;
}

.arx-quiz-progress {
	margin: .65rem 0 .75rem;
}

.arx-quiz-progress-label {
	margin: 0 0 .3rem;
	color: #e7eaf0;
	font-size: .8rem;
	font-weight: 650;
}

.arx-quiz-progress-track {
	height: .28rem;
	overflow: hidden;
	border-radius: 999px;
	background: #23354a;
}

.arx-quiz-progress-value {
	width: 11.11%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #c99643, #f0d18b);
	box-shadow: 0 0 14px rgb(221 183 107 / 35%);
	transition: width .25s ease;
}

.arx-quiz-theme {
	margin: 0 0 .25rem;
	color: #ddb76b;
	font-size: .78rem;
	font-weight: 650;
	letter-spacing: .04em;
}

#arx-knowledge-quiz .arx-quiz-question {
	margin: 0 0 .6rem;
	color: #fff;
	font-size: clamp(.92rem, 2.3vw, 1.1rem) !important;
	font-weight: 650;
	line-height: 1.3;
}

.arx-quiz-options {
	display: grid;
	gap: .4rem;
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.arx-quiz-option {
	display: grid;
	grid-template-columns: .9rem 1.3rem minmax(0, 1fr);
	align-items: center;
	gap: .45rem;
	min-height: 2rem;
	padding: .35rem .6rem;
	border: 1px solid #344155;
	border-radius: 9px;
	background: rgb(255 255 255 / 2.5%);
	color: #e1e6ee;
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.arx-quiz-option:hover {
	border-color: #8893a3;
	background: rgb(255 255 255 / 5%);
}

.arx-quiz-option:has(input:checked) {
	border-color: #ddb76b;
	background: rgb(221 183 107 / 9%);
	box-shadow: inset 0 0 0 1px rgb(221 183 107 / 24%);
	color: #fff;
}

.arx-quiz-option input {
	width: .85rem;
	height: .85rem;
	margin: 0;
	accent-color: #ddb76b;
}

.arx-quiz-option__letter {
	display: grid;
	width: 1.25rem;
	height: 1.25rem;
	place-items: center;
	border: 1px solid #667386;
	border-radius: 50%;
	color: #ddb76b;
	font-size: .72rem;
	font-weight: 750;
	line-height: 1;
}

.arx-quiz-option__text {
	min-width: 0;
	font-size: .84rem;
	line-height: 1.3;
}

.arx-quiz-navigation {
	display: flex;
	justify-content: space-between;
	gap: .45rem;
	margin-top: .65rem;
}

.arx-quiz-button {
	display: inline-flex;
	min-height: 2rem;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .35rem .65rem;
	border: 1px solid #687589;
	border-radius: 10px;
	background: transparent;
	color: #f5f6f8;
	font: inherit;
	font-size: .8rem;
	font-weight: 650;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.arx-quiz-button:hover:not(:disabled) {
	transform: translateY(-1px);
	border-color: #ddb76b;
	background: rgb(221 183 107 / 8%);
}

.arx-quiz-button:disabled {
	opacity: .48;
	cursor: not-allowed;
}

.arx-quiz-button--next {
	border-color: #ddb76b;
	background: #ddb76b;
	color: #101a29;
}

.arx-quiz-button--next:hover:not(:disabled) {
	background: #ecc97d;
	color: #101a29;
}

.arx-quiz-result {
	text-align: center;
}

.arx-quiz-result__title {
	margin: 0 2rem .25rem;
	color: #fff;
	font-size: clamp(1.05rem, 3.2vw, 1.4rem);
	line-height: 1.2;
}

.arx-quiz-result__lead {
	margin: 0 auto .5rem;
	font-size: .82rem;
	line-height: 1.35;
	color: #c3ccda;
}

.arx-quiz-score {
	display: grid;
	width: 5rem;
	height: 5rem;
	place-items: center;
	margin: .6rem auto .5rem;
	border-radius: 50%;
	background: conic-gradient(#ddb76b 0deg var(--arx-quiz-score-angle, 0deg), #29394d var(--arx-quiz-score-angle, 0deg) 360deg);
	box-shadow: 0 0 28px rgb(221 183 107 / 14%);
}

.arx-quiz-score__inner {
	display: grid;
	width: 4.25rem;
	height: 4.25rem;
	place-content: center;
	gap: .05rem;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 50%;
	background: #091a30;
}

.arx-quiz-score__value {
	color: #fff;
	font-size: 1.65rem;
	font-weight: 750;
	line-height: 1;
}

.arx-quiz-score__denominator {
	color: #ddb76b;
	font-size: .8rem;
	font-weight: 650;
}

.arx-quiz-result__message {
	max-width: 600px;
	margin: 0 auto .65rem;
	color: #e0e5ec;
	font-size: .85rem;
	line-height: 1.35;
}

.arx-quiz-cta {
	padding: .65rem;
	border: 1px solid rgb(221 183 107 / 48%);
	border-radius: 14px;
	background: linear-gradient(140deg, rgb(221 183 107 / 9%), rgb(255 255 255 / 2%));
	text-align: left;
}

.arx-quiz-cta h3 {
	margin: 0 0 .35rem;
	color: #f4d895;
	font-size: .93rem;
	line-height: 1.3;
}

.arx-quiz-cta p {
	margin: 0;
	color: #d1d8e1;
	font-size: .82rem;
	line-height: 1.35;
}

.arx-quiz-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-top: .5rem;
}

.arx-quiz-cta__register {
	min-height: 2rem;
	padding: .3rem .65rem;
	border: 1px solid #f0d18b;
	border-radius: 10px;
	background: linear-gradient(135deg, #f4d895, #d6a64f);
	color: #10233c;
	font: inherit;
	font-size: .8rem;
	font-weight: 750;
	line-height: 1.25;
	cursor: pointer;
	transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.arx-quiz-cta__register:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
	box-shadow: 0 8px 20px rgb(221 183 107 / 18%);
}

.arx-quiz-cta__restart {
	min-height: 2rem;
	padding: .3rem .65rem;
	border: 1px solid #657186;
	border-radius: 10px;
	background: transparent;
	color: #f3f5f8;
	font: inherit;
	font-size: .8rem;
	font-weight: 650;
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease;
}

.arx-quiz-cta__restart:hover {
	border-color: #ddb76b;
	background: rgb(221 183 107 / 7%);
}

.arx-quiz-status {
	min-height: 0;
	margin: .5rem 0 0;
	color: #f0d18b;
	font-size: .88rem;
}

.arx-quiz-status:empty {
	display: none;
}

@keyframes arx-quiz-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes arx-quiz-scale-in {
	from { opacity: 0; transform: scale(.975); }
	to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
	.arx-quiz-navigation .arx-quiz-button {
		flex: 1 1 0;
		padding-inline: .4rem;
	}

	.arx-quiz-cta__actions {
		display: grid;
	}
}

@media (max-height: 450px) {
	.arx-quiz-intro {
		display: none;
	}

	.arx-quiz-content {
		padding-block: .6rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.arx-quiz-root,
	.arx-quiz-panel,
	.arx-quiz-progress-value,
	.arx-quiz-button,
	.arx-quiz-close,
	.arx-quiz-cta__register,
	.arx-quiz-cta__restart {
		animation: none !important;
		transition: none !important;
	}
}
