.ap-academy {
	box-sizing: border-box;
	max-width: 760px;
	margin: 24px auto;
	padding: 24px;
	border: 1px solid #3d382d;
	border-radius: 8px;
	background: #111111;
	color: #f1eadc;
	font-family: Georgia, "Times New Roman", serif;
}

.ap-academy *,
.ap-academy *::before,
.ap-academy *::after {
	box-sizing: inherit;
}

.ap-academy h2,
.ap-academy h3,
.ap-academy p {
	margin-top: 0;
}

.ap-academy h2,
.ap-academy h3 {
	font-family: "Cinzel Decorative", Georgia, serif;
	font-weight: 700;
	letter-spacing: 0;
}

.ap-kicker {
	margin: 0 0 12px;
	color: #d7b46a;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.ap-status,
.ap-notice {
	padding: 12px 14px;
	border-left: 4px solid #d7b46a;
	background: #1d1a14;
	color: #f1eadc;
}

.ap-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 18px;
	border: 1px solid #d7b46a;
	border-radius: 6px;
	background: #d7b46a;
	color: #15120c;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.ap-button:hover,
.ap-button:focus {
	background: #f0d38b;
	border-color: #f0d38b;
	color: #15120c;
}

.ap-button:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.ap-message {
	min-height: 24px;
	margin: 16px 0 0;
	font-weight: 700;
}

.ap-message[data-type="success"] {
	color: #ddc57e;
}

.ap-message[data-type="error"] {
	color: #e3a09a;
}

.ap-scroll-lesson.is-admin-preview .ap-lesson-message {
	padding: 12px 16px;
	border: 1px solid rgba(215, 180, 106, 0.32);
	background: rgba(215, 180, 106, 0.08);
	color: #ddc57e;
}

.ap-scroll-lesson {
	position: relative;
	max-width: 100%;
	margin: 0 auto 40px;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(215, 180, 106, 0.28);
	border-radius: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.035), transparent 26%),
		radial-gradient(circle at 80% 10%, rgba(215, 180, 106, 0.055), transparent 24%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
		linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 14px),
		#070707;
	box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.78);
	color: #f5f0e6;
}

.ap-scroll-section {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 92vh;
	padding: clamp(64px, 8vw, 124px) clamp(18px, 5vw, 64px);
	text-align: center;
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 700ms ease, transform 700ms ease;
}

.ap-scroll-section[hidden] {
	display: none;
}

.ap-scroll-section.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ap-section-inner {
	width: min(100%, 820px);
	margin: 0 auto;
}

.ap-scroll-lesson h2 {
	margin-bottom: 18px;
	color: #fff8e8;
	font-size: clamp(48px, 9vw, 112px);
	line-height: 1;
	text-shadow: 0 0 22px rgba(215, 180, 106, 0.25);
}

.ap-scroll-lesson h3 {
	margin-bottom: 18px;
	color: #fff8e8;
	font-size: clamp(30px, 5vw, 58px);
	line-height: 1.12;
}

.ap-scroll-lesson p {
	max-width: 720px;
	margin-right: auto;
	margin-bottom: 16px;
	margin-left: auto;
	color: #eee5d6;
	font-size: clamp(18px, 2vw, 24px);
	line-height: 1.65;
}

.ap-scroll-lesson .ap-lead {
	color: #fff8e8;
	font-size: clamp(22px, 3vw, 34px);
	line-height: 1.45;
}

.ap-scroll-hint {
	color: #cbbf9f;
	font-size: 15px;
	letter-spacing: 0;
}

.ap-alchemy-symbol {
	margin-bottom: 18px;
	color: #d7b46a;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(76px, 14vw, 158px);
	line-height: 1;
	text-shadow: 0 0 18px rgba(215, 180, 106, 0.42), 0 0 42px rgba(215, 180, 106, 0.18);
	animation: ap-symbol-pulse 3.8s ease-in-out infinite;
}

.ap-answer-grid {
	display: grid;
	gap: 14px;
	width: min(100%, 720px);
	margin: 32px auto 0;
	padding: 2px;
	border-radius: 8px;
	transition: box-shadow 450ms ease, border-color 450ms ease;
}

.ap-answer-grid.is-activated {
	box-shadow: 0 0 34px rgba(215, 180, 106, 0.22);
}

.ap-answer {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	min-height: 62px;
	padding: 12px 16px;
	border: 1px solid rgba(245, 240, 230, 0.34);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.22);
	color: #f5f0e6;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(16px, 1.8vw, 20px);
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.ap-answer:hover,
.ap-answer:focus {
	border-color: rgba(215, 180, 106, 0.85);
	background: rgba(215, 180, 106, 0.08);
	transform: translateY(-1px);
}

.ap-answer:disabled {
	cursor: default;
	opacity: 0.9;
}

.ap-answer__text {
	padding-left: 0;
}

.ap-answer.is-correct {
	border-color: #d7b46a;
	background: rgba(215, 180, 106, 0.12);
	box-shadow: inset 0 0 0 1px rgba(215, 180, 106, 0.2);
}

.ap-answer.is-wrong {
	border-color: rgba(227, 160, 154, 0.95);
	background: rgba(150, 50, 42, 0.16);
	animation: ap-answer-shake 360ms ease;
}

.ap-gate-message {
	color: #d8cfbd;
}

.ap-scroll-section.is-scroll-lock-active::after {
	position: absolute;
	right: clamp(18px, 5vw, 64px);
	bottom: 28px;
	left: clamp(18px, 5vw, 64px);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(215, 180, 106, 0.66), transparent);
	box-shadow: 0 0 18px rgba(215, 180, 106, 0.2);
	content: "";
}

.ap-quote-section blockquote {
	max-width: 850px;
	margin: 0 auto;
	color: #fff8e8;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: clamp(28px, 5vw, 58px);
	font-weight: 700;
	line-height: 1.35;
	text-shadow: 0 0 22px rgba(215, 180, 106, 0.18);
}

.ap-quote-section blockquote span,
.ap-quote-section blockquote small {
	display: block;
}

.ap-quote-section blockquote small {
	margin: 18px 0;
	color: #cfc8ba;
	font-family: Georgia, serif;
	font-size: 0.42em;
	font-style: italic;
	font-weight: 400;
}

.ap-final-section {
	background:
		radial-gradient(circle at 50% 35%, rgba(215, 180, 106, 0.12), transparent 30%),
		transparent;
}

.ap-reward-list {
	width: min(100%, 560px);
	margin: 28px auto 30px;
	padding: 20px 0;
	border-top: 1px solid rgba(215, 180, 106, 0.36);
	border-bottom: 1px solid rgba(215, 180, 106, 0.36);
}

.ap-reward-list p {
	margin-bottom: 8px;
	color: #f7efd7;
	font-size: clamp(18px, 2.4vw, 28px);
	line-height: 1.35;
}

.ap-final-actions {
	display: grid;
	justify-items: center;
	gap: 10px;
}

.ap-final-status {
	margin-top: 4px;
	color: #ddc57e;
	font-weight: 700;
}

.ap-profile-dashboard {
	max-width: 1080px;
	margin: 40px 0;
	padding: clamp(22px, 4vw, 42px);
	overflow: hidden;
	border-color: rgba(215, 180, 106, 0.3);
	background:
		radial-gradient(circle at 12% 12%, rgba(215, 180, 106, 0.14), transparent 28%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
		#080808;
	box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22), inset 0 0 80px rgba(0, 0, 0, 0.62);
}

.ap-profile-dashboard h2 {
	margin-bottom: 8px;
	color: #fff8e8;
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.05;
}

.ap-profile-dashboard h3 {
	margin-bottom: 16px;
	color: #fff8e8;
	font-size: clamp(22px, 3vw, 34px);
}

.ap-profile-dashboard h4 {
	margin: 0 0 4px;
	color: #fff8e8;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: 20px;
	letter-spacing: 0;
}

.ap-profile-dashboard p {
	color: #eee5d6;
}

.ap-profile-hero {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	align-items: center;
	gap: 26px;
	margin-bottom: 28px;
}

.ap-level-orb {
	display: grid;
	align-content: center;
	justify-items: center;
	width: 124px;
	height: 124px;
	border: 1px solid rgba(215, 180, 106, 0.74);
	border-radius: 50%;
	background:
		radial-gradient(circle, rgba(215, 180, 106, 0.18), transparent 62%),
		#111111;
	box-shadow: 0 0 34px rgba(215, 180, 106, 0.22), inset 0 0 26px rgba(0, 0, 0, 0.58);
}

.ap-level-orb span {
	color: #d7b46a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
}

.ap-level-orb small {
	margin-bottom: 3px;
	color: #c8bdac;
	font-family: Georgia, serif;
	font-size: 11px;
	font-style: italic;
	font-weight: 400;
	line-height: 1;
}

.ap-level-orb strong {
	color: #fff8e8;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: 50px;
	line-height: 1;
}

.ap-profile-heading p:last-child {
	margin-bottom: 0;
	color: #d7b46a;
	font-size: 18px;
	font-weight: 700;
}

.ap-duo {
	display: block;
	line-height: 1.25;
}

.ap-duo > span,
.ap-duo > small {
	display: block;
}

.ap-duo > small,
.ap-latin {
	margin-top: 4px;
	color: #c8bdac;
	font-family: Georgia, serif;
	font-size: 0.72em;
	font-style: italic;
	font-weight: 400;
	text-transform: none;
}

.ap-duo--kicker > small {
	font-size: 0.86em;
}

.ap-profile-title {
	margin-bottom: 0;
	color: #d7b46a;
	font-size: 18px;
	font-weight: 700;
}

.ap-profile-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.ap-stat-block {
	min-height: 104px;
	padding: 18px;
	border: 1px solid rgba(245, 240, 230, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
}

.ap-stat-block > span {
	display: block;
	margin-bottom: 10px;
	color: #bfb5a0;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.ap-stat-block strong {
	color: #fff8e8;
	font-size: clamp(20px, 2.2vw, 30px);
	line-height: 1.15;
}

.ap-xp-panel {
	margin-bottom: 28px;
	padding: 20px;
	border: 1px solid rgba(215, 180, 106, 0.22);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.28);
}

.ap-xp-panel__top {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
	color: #f7efd7;
	font-weight: 700;
}

.ap-xp-bar {
	height: 14px;
	overflow: hidden;
	border: 1px solid rgba(215, 180, 106, 0.34);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
}

.ap-xp-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #8b6726, #d7b46a, #fff0b5);
	box-shadow: 0 0 16px rgba(215, 180, 106, 0.38);
}

.ap-xp-panel p {
	margin: 10px 0 0;
	color: #c8bdac;
	font-size: 15px;
}

.ap-profile-grid {
	display: grid;
	grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
	gap: 18px;
}

.ap-profile-section {
	padding-top: 18px;
	border-top: 1px solid rgba(215, 180, 106, 0.22);
}

.ap-badge-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
}

.ap-badge {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid rgba(215, 180, 106, 0.44);
	border-radius: 999px;
	background: rgba(215, 180, 106, 0.1);
	color: #fff8e8;
	font-weight: 700;
}

.ap-badge-card {
	display: grid;
	gap: 8px;
	padding: 16px;
	border: 1px solid rgba(215, 180, 106, 0.44);
	border-radius: 8px;
	background: rgba(215, 180, 106, 0.1);
	color: #fff8e8;
	text-align: center;
}

.ap-badge-card strong {
	font-size: 26px;
	line-height: 1.1;
}

.ap-empty-state {
	margin-bottom: 0;
	color: #c8bdac;
}

.ap-lesson-list {
	display: grid;
	gap: 12px;
}

.ap-lesson-card {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid rgba(245, 240, 230, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
}

.ap-lesson-card__symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(215, 180, 106, 0.42);
	border-radius: 50%;
	color: #d7b46a;
	font-size: 30px;
	line-height: 1;
}

.ap-lesson-card p {
	margin: 0;
	color: #d7b46a;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

.ap-lesson-card p span {
	display: block;
	color: #c8bdac;
	font-weight: 400;
}

.ap-premium-lock {
	max-width: 860px;
	margin: 42px auto;
	text-align: center;
}

.ap-premium-lock h2 {
	margin-bottom: 14px;
	color: #ffffff;
	font-size: clamp(34px, 6vw, 72px);
	line-height: 1.05;
}

.ap-premium-lock p {
	max-width: 660px;
	margin-right: auto;
	margin-left: auto;
	color: #eee5d6;
	font-size: 18px;
	line-height: 1.6;
}

.ap-premium-lock code {
	padding: 2px 6px;
	border: 1px solid rgba(244, 241, 232, 0.22);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.ap-premium-lock__symbol {
	margin-bottom: 18px;
	color: #f4f1e8;
	font-size: clamp(52px, 9vw, 92px);
	line-height: 1;
	text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.ap-premium-lock__notice {
	padding: 12px 14px;
	border: 1px solid rgba(244, 241, 232, 0.22);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.055);
}

.ap-premium-lock__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	width: min(100%, 520px);
	margin: 24px auto;
	padding: 18px;
	border-top: 1px solid rgba(244, 241, 232, 0.22);
	border-bottom: 1px solid rgba(244, 241, 232, 0.22);
}

.ap-premium-lock__meta span {
	color: #bfb5a0;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.ap-premium-lock__meta strong {
	color: #ffffff;
	font-size: 18px;
}

.ap-tria-symbols {
	font-size: clamp(48px, 9vw, 104px);
	letter-spacing: 0;
}

.ap-answer-grid--images {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ap-answer--image {
	grid-template-columns: 1fr;
	align-items: stretch;
	min-height: 0;
}

.ap-answer__media {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.ap-answer__media img {
	display: block;
	width: 100%;
	aspect-ratio: 7 / 4;
	object-fit: cover;
	border: 1px solid rgba(244, 241, 232, 0.2);
	border-radius: 6px;
	background: #050505;
}

.ap-answer__media span {
	color: inherit;
	font-weight: 700;
}

@keyframes ap-symbol-pulse {
	0%,
	100% {
		opacity: 0.86;
		text-shadow: 0 0 14px rgba(215, 180, 106, 0.32), 0 0 34px rgba(215, 180, 106, 0.14);
	}

	50% {
		opacity: 1;
		text-shadow: 0 0 24px rgba(215, 180, 106, 0.5), 0 0 58px rgba(215, 180, 106, 0.24);
	}
}

@keyframes ap-answer-shake {
	0%,
	100% {
		transform: translateX(0);
	}

	33% {
		transform: translateX(-5px);
	}

	66% {
		transform: translateX(5px);
	}
}

@media (max-width: 700px) {
	.ap-academy {
		padding: 18px;
	}

	.ap-scroll-lesson {
		margin-right: -18px;
		margin-left: -18px;
		padding: 0;
		border-right: 0;
		border-left: 0;
	}

	.ap-scroll-section {
		min-height: 88vh;
		padding: 56px 18px;
	}

	.ap-answer {
		grid-template-columns: 1fr;
		min-height: 58px;
		padding: 12px;
	}

	.ap-answer-grid--images {
		grid-template-columns: 1fr;
	}

	.ap-button {
		width: 100%;
		max-width: 340px;
	}

	.ap-profile-dashboard {
		margin: 32px 0;
	}

	.ap-profile-hero,
	.ap-profile-grid {
		grid-template-columns: 1fr;
	}

	.ap-level-orb {
		width: 104px;
		height: 104px;
	}

	.ap-profile-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ap-xp-panel__top {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-scroll-section,
	.ap-answer,
	.ap-answer-grid {
		transition: none;
	}

	.ap-alchemy-symbol,
	.ap-answer.is-wrong {
		animation: none;
	}

	.ap-scroll-section {
		opacity: 1;
		transform: none;
	}
}

/* Kredowa paleta: biala kreska na czarnym lupku, bez zlotych akcentow. */
.ap-academy {
	border-color: rgba(244, 241, 232, 0.22);
	background: #090909;
	color: #f4f1e8;
}

.ap-kicker,
.ap-alchemy-symbol,
.ap-level-orb span,
.ap-profile-heading p:last-child,
.ap-profile-title,
.ap-final-status,
.ap-lesson-card__symbol,
.ap-lesson-card p,
.ap-message[data-type="success"] {
	color: #f4f1e8;
}

.ap-button {
	border-color: rgba(244, 241, 232, 0.72);
	background: rgba(244, 241, 232, 0.08);
	color: #f4f1e8;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ap-button:hover,
.ap-button:focus {
	border-color: #ffffff;
	background: rgba(244, 241, 232, 0.16);
	color: #ffffff;
}

.ap-status,
.ap-notice {
	border-left-color: rgba(244, 241, 232, 0.78);
	background: rgba(244, 241, 232, 0.055);
}

.ap-scroll-lesson,
.ap-profile-dashboard {
	border-color: rgba(244, 241, 232, 0.24);
	background:
		radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.06), transparent 28%),
		radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.035), transparent 24%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
		linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px),
		#070707;
}

.ap-scroll-lesson h2,
.ap-scroll-lesson h3,
.ap-scroll-lesson .ap-lead,
.ap-quote-section blockquote,
.ap-profile-dashboard h2,
.ap-profile-dashboard h3,
.ap-profile-dashboard h4,
.ap-level-orb strong,
.ap-stat-block strong {
	color: #ffffff;
	text-shadow: 0 0 18px rgba(255, 255, 255, 0.13);
}

.ap-alchemy-symbol {
	text-shadow: 0 0 16px rgba(255, 255, 255, 0.26), 0 0 42px rgba(255, 255, 255, 0.1);
}

.ap-answer-grid.is-activated {
	box-shadow: 0 0 34px rgba(255, 255, 255, 0.14);
}

.ap-answer:hover,
.ap-answer:focus {
	border-color: rgba(255, 255, 255, 0.86);
	background: rgba(255, 255, 255, 0.07);
}

.ap-answer.is-correct,
.ap-level-orb,
.ap-xp-panel,
.ap-badge,
.ap-badge-card,
.ap-lesson-card__symbol {
	border-color: rgba(244, 241, 232, 0.48);
}

.ap-answer.is-correct,
.ap-badge,
.ap-badge-card {
	background: rgba(244, 241, 232, 0.08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ap-scroll-section.is-scroll-lock-active::after {
	background: linear-gradient(90deg, transparent, rgba(244, 241, 232, 0.72), transparent);
	box-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.ap-final-section {
	background:
		radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.07), transparent 30%),
		transparent;
}

.ap-reward-list,
.ap-profile-section {
	border-color: rgba(244, 241, 232, 0.22);
}

.ap-reward-list p,
.ap-xp-panel__top,
.ap-badge,
.ap-badge-card {
	color: #f4f1e8;
}

.ap-duo > small,
.ap-latin,
.ap-level-orb small {
	color: #cfc8ba;
}

.ap-level-orb {
	background:
		radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 62%),
		#111111;
	box-shadow: 0 0 34px rgba(255, 255, 255, 0.12), inset 0 0 26px rgba(0, 0, 0, 0.58);
}

.ap-xp-bar {
	border-color: rgba(244, 241, 232, 0.34);
}

.ap-xp-bar span {
	background: linear-gradient(90deg, #686868, #d8d5ca, #ffffff);
	box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

@keyframes ap-symbol-pulse {
	0%,
	100% {
		opacity: 0.86;
		text-shadow: 0 0 14px rgba(255, 255, 255, 0.22), 0 0 34px rgba(255, 255, 255, 0.08);
	}

	50% {
		opacity: 1;
		text-shadow: 0 0 24px rgba(255, 255, 255, 0.34), 0 0 58px rgba(255, 255, 255, 0.16);
	}
}

/* Mapa Atlasu i panel lekcji. */
.ap-academy-map {
	max-width: 1180px;
	padding: clamp(22px, 4vw, 46px);
	overflow: hidden;
	background:
		radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.055), transparent 28%),
		radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.04), transparent 24%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
		#070707;
}

.ap-map-hero {
	max-width: 820px;
	margin: 0 auto 34px;
	text-align: center;
}

.ap-map-hero h2 {
	margin-bottom: 14px;
	color: #ffffff;
	font-size: clamp(38px, 7vw, 82px);
	line-height: 1.04;
}

.ap-map-hero p {
	max-width: 720px;
	margin-right: auto;
	margin-left: auto;
	color: #f4f1e8;
	font-size: 18px;
	line-height: 1.65;
}

.ap-atlas-promos {
	display: grid;
	gap: 14px;
	width: min(100%, 980px);
	margin: 0 auto 22px;
}

.ap-atlas-promo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: clamp(14px, 2.4vw, 28px);
	padding: clamp(16px, 2.4vw, 24px);
	border: 1px solid rgba(215, 180, 106, 0.42);
	border-radius: 8px;
	background:
		radial-gradient(circle at 16% 16%, rgba(215, 180, 106, 0.18), transparent 34%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
		#070707;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 0 42px rgba(0, 0, 0, 0.42);
}

.ap-atlas-promo__copy {
	min-width: 0;
}

.ap-atlas-promo__kicker {
	margin: 0 0 6px;
	color: #d7b46a;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.ap-atlas-promo__code {
	display: block;
	margin-bottom: 8px;
	color: #fff8e8;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: clamp(27px, 4vw, 48px);
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.ap-atlas-promo p {
	margin: 0;
	color: #e8deca;
	font-size: 15px;
	line-height: 1.55;
}

.ap-atlas-promo__meta {
	display: grid;
	justify-items: end;
	gap: 7px;
	color: #f4f1e8;
	white-space: nowrap;
}

.ap-atlas-promo__discount {
	display: inline-grid;
	min-width: 74px;
	min-height: 34px;
	place-items: center;
	padding: 6px 10px;
	border: 1px solid rgba(215, 180, 106, 0.5);
	border-radius: 999px;
	color: #fff8e8;
	font-weight: 800;
}

.ap-atlas-promo__price {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	color: #cfc8ba;
	font-family: Georgia, serif;
	font-size: 16px;
	line-height: 1.1;
}

.ap-atlas-promo__price del {
	color: rgba(244, 241, 232, 0.58);
	text-decoration-color: rgba(215, 180, 106, 0.76);
}

.ap-atlas-promo__price strong {
	color: #fff8e8;
	font-size: 22px;
}

.ap-atlas-promo__meta small {
	color: #bfb5a0;
	font-family: Georgia, serif;
	font-size: 12px;
	font-style: italic;
}

.ap-atlas-promo__action {
	display: grid;
	justify-items: end;
	gap: 8px;
	min-width: 132px;
}

.ap-atlas-promo__message {
	min-height: 18px;
	margin: 0;
	color: #d7b46a;
	font-size: 13px;
	line-height: 1.25;
	text-align: right;
}

.ap-atlas-updates {
	width: min(100%, 840px);
	margin: 0 auto 34px;
	padding: 16px 0 2px;
	border-top: 1px solid rgba(244, 241, 232, 0.14);
	border-bottom: 1px solid rgba(244, 241, 232, 0.08);
}

.ap-atlas-updates__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.ap-atlas-updates h3 {
	margin: 0;
	color: #fff8e8;
	font-size: clamp(18px, 2.2vw, 24px);
	line-height: 1.2;
}

.ap-atlas-updates__header .ap-latin {
	margin: 0;
	font-size: 13px;
}

.ap-atlas-updates__list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ap-atlas-updates__list li {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	gap: 14px;
	padding: 9px 0;
	border-top: 1px solid rgba(244, 241, 232, 0.08);
	color: #d8d0c0;
	font-size: 14px;
	line-height: 1.45;
}

.ap-atlas-updates__list li:first-child {
	border-top: 0;
}

.ap-atlas-updates__version {
	color: #968b78;
	font-family: Georgia, serif;
	font-size: 12px;
	font-style: italic;
}

@media (max-width: 860px) {
	.ap-atlas-promo {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.ap-atlas-promo__copy {
		grid-column: 1 / -1;
	}

	.ap-atlas-promo__meta {
		justify-items: start;
	}
}

.ap-skill-tree {
	position: relative;
	display: grid;
	gap: 18px;
	max-width: 980px;
	margin: 0 auto;
	padding: 8px 0;
}

.ap-skill-tree::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 48px;
	width: 1px;
	background: linear-gradient(rgba(244, 241, 232, 0.08), rgba(244, 241, 232, 0.38), rgba(244, 241, 232, 0.08));
	content: "";
}

.ap-skill-node {
	position: relative;
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 18px;
	width: min(100%, 760px);
	min-height: 170px;
	padding: 16px;
	border: 1px solid rgba(244, 241, 232, 0.24);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.48);
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 700ms ease, transform 700ms ease, border-color 260ms ease, background 260ms ease;
}

.ap-skill-node::before {
	position: absolute;
	top: 50%;
	left: -38px;
	width: 38px;
	height: 1px;
	background: rgba(244, 241, 232, 0.3);
	content: "";
}

.ap-skill-node.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ap-skill-node.is-completed {
	border-color: rgba(244, 241, 232, 0.64);
	background: rgba(244, 241, 232, 0.075);
}

.ap-skill-node.is-locked {
	opacity: 0.72;
}

.ap-skill-node.is-premium .ap-node-image {
	box-shadow: 0 0 28px rgba(255, 255, 255, 0.09), inset 0 0 28px rgba(255, 255, 255, 0.04);
}

.ap-node-depth-0,
.ap-node-depth-3 {
	margin-left: 0;
}

.ap-node-depth-1,
.ap-node-depth-4 {
	margin-left: min(11vw, 110px);
}

.ap-node-depth-2,
.ap-node-depth-5 {
	margin-left: min(22vw, 220px);
}

.ap-node-image {
	display: grid;
	place-items: center;
	min-height: 132px;
	overflow: hidden;
	border: 1px solid rgba(244, 241, 232, 0.2);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 13px),
		#050505;
}

.ap-node-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap-node-image span {
	color: #ffffff;
	font-size: clamp(42px, 7vw, 76px);
	line-height: 1;
	text-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
}

.ap-node-body h3 {
	margin: 0 0 8px;
	color: #ffffff;
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.1;
}

.ap-node-body p {
	margin-bottom: 12px;
	color: #eee5d6;
	font-size: 16px;
	line-height: 1.55;
}

.ap-node-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.ap-node-meta span {
	padding: 5px 9px;
	border: 1px solid rgba(244, 241, 232, 0.22);
	border-radius: 999px;
	color: #f4f1e8;
	font-size: 13px;
	font-weight: 700;
}

.ap-node-status {
	color: #cfc8ba;
	font-size: 14px;
}

.ap-button--disabled {
	cursor: not-allowed;
	opacity: 0.56;
}

.ap-lesson-toolbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px clamp(14px, 3vw, 28px);
	border-bottom: 1px solid rgba(244, 241, 232, 0.18);
	background: rgba(5, 5, 5, 0.9);
	backdrop-filter: blur(12px);
}

.ap-toolbar-back,
.ap-audio-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 10px;
	border: 1px solid rgba(244, 241, 232, 0.28);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	color: #f4f1e8;
	font-family: Georgia, serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.ap-toolbar-back:hover,
.ap-toolbar-back:focus,
.ap-audio-toggle:hover,
.ap-audio-toggle:focus {
	border-color: rgba(244, 241, 232, 0.62);
	color: #ffffff;
}

.ap-toolbar-title {
	min-width: 0;
	text-align: center;
}

.ap-toolbar-title span,
.ap-toolbar-title small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap-toolbar-title span {
	color: #ffffff;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: 16px;
	font-weight: 700;
}

.ap-toolbar-title small {
	color: #cfc8ba;
	font-family: Georgia, serif;
	font-size: 11px;
	font-style: italic;
}

.ap-toolbar-progress {
	grid-column: 1 / -1;
	height: 4px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(244, 241, 232, 0.1);
}

.ap-toolbar-progress span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #777777, #ffffff);
	box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
	transition: width 120ms linear;
}

[data-ap-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 700ms ease, transform 700ms ease;
}

[data-ap-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 780px) {
	.ap-skill-tree::before,
	.ap-skill-node::before {
		display: none;
	}

	.ap-skill-node,
	.ap-node-depth-0,
	.ap-node-depth-1,
	.ap-node-depth-2,
	.ap-node-depth-3,
	.ap-node-depth-4,
	.ap-node-depth-5 {
		grid-template-columns: 1fr;
		margin-left: 0;
	}

	.ap-node-image {
		min-height: 160px;
	}

	.ap-lesson-toolbar {
		grid-template-columns: 1fr 1fr;
	}

	.ap-toolbar-title {
		grid-column: 1 / -1;
		grid-row: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-skill-node,
	[data-ap-reveal],
	.ap-toolbar-progress span {
		transition: none;
	}
}

/* Motywy rozdziałów: zachowują kredowy łupek, ale dodają dyskretną barwę danego symbolu. */
.ap-scroll-lesson {
	background:
		radial-gradient(circle at 18% 14%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.1), transparent 26%),
		radial-gradient(circle at 84% 30%, rgba(var(--ap-accent-secondary-rgb, 139, 148, 152), 0.07), transparent 28%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
		linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 14px),
		#050505;
}

.ap-scroll-lesson::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.72) 0 1px, transparent 1.7px),
		radial-gradient(circle, rgba(var(--ap-accent-secondary-rgb, 139, 148, 152), 0.5) 0 1px, transparent 1.6px),
		radial-gradient(circle, rgba(var(--ap-accent-tertiary-rgb, 255, 255, 255), 0.38) 0 1px, transparent 1.5px);
	background-position: 12px 8px, 47px 35px, 76px 14px;
	background-size: 92px 118px, 137px 164px, 181px 208px;
	content: "";
	opacity: 0.22;
	animation: ap-particles-drift 28s linear infinite;
}

.ap-scroll-section,
.ap-lesson-toolbar {
	z-index: 1;
}

.ap-final-section {
	background:
		radial-gradient(circle at 48% 38%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.26), transparent 30%),
		radial-gradient(circle at 22% 72%, rgba(var(--ap-accent-secondary-rgb, 139, 148, 152), 0.16), transparent 30%),
		radial-gradient(circle at 80% 68%, rgba(var(--ap-accent-tertiary-rgb, 255, 255, 255), 0.14), transparent 28%),
		linear-gradient(180deg, transparent, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.055));
}

.ap-scroll-lesson .ap-toolbar-progress span {
	background: linear-gradient(90deg, var(--ap-accent-secondary, #777777), var(--ap-accent, #ffffff), var(--ap-accent-tertiary, #ffffff));
	box-shadow: 0 0 14px rgba(var(--ap-accent-rgb, 255, 255, 255), 0.32);
}

.ap-scroll-lesson .ap-alchemy-symbol {
	color: var(--ap-accent, #f4f1e8);
}

.ap-category-tree {
	display: grid;
	gap: 32px;
}

.ap-tree-category {
	position: relative;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.2);
	border-radius: 8px;
	background:
		radial-gradient(circle at 8% 0%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.105), transparent 28%),
		radial-gradient(circle at 90% 20%, rgba(var(--ap-accent-secondary-rgb, 139, 148, 152), 0.07), transparent 24%),
		rgba(255, 255, 255, 0.018);
	box-shadow: inset 0 0 54px rgba(0, 0, 0, 0.38);
}

.ap-category-heading {
	max-width: 760px;
	margin: 0 auto 20px;
	text-align: center;
}

.ap-category-heading h3 {
	margin-bottom: 6px;
	color: #ffffff;
	font-size: clamp(26px, 4vw, 46px);
}

.ap-category-heading p {
	margin: 0 auto 8px;
	color: #e8e3d8;
	line-height: 1.55;
}

.ap-course-branch {
	display: grid;
	gap: 10px;
	margin-top: 14px;
	padding-top: 24px;
	border-top: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.22);
}

.ap-course-branch > .ap-kicker {
	margin-bottom: 0;
	text-align: center;
}

.ap-course-branch .ap-skill-node {
	margin-left: min(12vw, 126px);
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.42);
	background: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.06);
}

.ap-node-body h4 {
	margin: 0 0 6px;
	color: #ffffff;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: clamp(20px, 3vw, 32px);
	line-height: 1.12;
}

.ap-skill-node.is-visible {
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.34);
}

.ap-skill-node.is-visible.is-locked {
	opacity: 0.52;
	filter: grayscale(0.48) saturate(0.58);
}

.ap-skill-node.is-visible.is-completed {
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.74);
	background: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.095);
}

.ap-skill-node .ap-node-image span {
	color: var(--ap-accent, #ffffff);
	text-shadow: 0 0 22px rgba(var(--ap-accent-rgb, 255, 255, 255), 0.32);
}

.ap-skill-node .ap-button {
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.72);
}

@keyframes ap-particles-drift {
	from {
		background-position: 12px 8px, 47px 35px, 76px 14px;
	}

	to {
		background-position: 48px -110px, 12px -129px, 116px -194px;
	}
}

@media (max-width: 780px) {
	.ap-tree-category {
		padding: 16px;
	}

	.ap-course-branch .ap-skill-node {
		margin-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-scroll-lesson::before {
		animation: none;
	}
}

/* Atlas kategorii: zwarta mapa główna oraz osobne podstrony rozdziałów. */
.ap-map-phases {
	display: grid;
	gap: 34px;
}

.ap-map-phase {
	padding-top: 18px;
	border-top: 1px solid rgba(244, 241, 232, 0.16);
}

.ap-adept-trial-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	margin: 28px 0 34px;
	padding: 20px;
	border: 1px solid rgba(231, 184, 74, 0.42);
	border-radius: 8px;
	background:
		radial-gradient(circle at 10% 20%, rgba(231, 184, 74, 0.16), transparent 34%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), inset 0 0 42px rgba(0, 0, 0, 0.34);
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 650ms ease, transform 650ms ease, border-color 220ms ease;
}

.ap-adept-trial-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ap-adept-trial-card.is-locked {
	border-color: rgba(244, 241, 232, 0.2);
	filter: grayscale(0.35);
}

.ap-adept-trial-card__sigil {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border: 1px solid rgba(231, 184, 74, 0.5);
	border-radius: 50%;
	color: #f4d989;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: 54px;
	line-height: 1;
	text-shadow: 0 0 22px rgba(231, 184, 74, 0.5);
}

.ap-adept-trial-card h3 {
	margin: 0 0 8px;
	color: #ffffff;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: clamp(26px, 3.4vw, 42px);
	line-height: 1.08;
}

.ap-adept-trial-card p {
	margin: 0;
	color: #ded8ca;
	line-height: 1.55;
}

.ap-adept-trial-card .ap-kicker {
	margin-bottom: 5px;
	color: #e7b84a;
}

.ap-adept-trial-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.ap-adept-trial-card__meta span {
	padding: 6px 9px;
	border: 1px solid rgba(244, 241, 232, 0.18);
	border-radius: 999px;
	color: #f4f1e8;
	font-size: 12px;
}

.ap-adept-trial-card__action {
	min-width: 148px;
}

.ap-adept-trial-card__action .ap-button {
	width: 100%;
}

.ap-adept-trial {
	position: relative;
	min-height: 100vh;
	padding: clamp(18px, 3vw, 36px);
	background:
		radial-gradient(circle at 50% 10%, rgba(231, 184, 74, 0.09), transparent 28%),
		radial-gradient(circle at 15% 70%, rgba(244, 241, 232, 0.035), transparent 24%),
		#050505;
	color: #f4f1e8;
}

.ap-adept-trial__hero {
	max-width: 980px;
	margin: 26px auto 18px;
	text-align: center;
}

.ap-adept-trial__hero h2 {
	margin: 0 0 12px;
	color: #ffffff;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: clamp(42px, 7vw, 82px);
	line-height: 1.02;
}

.ap-adept-trial__hero p {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 8px 13px;
	border: 1px solid rgba(231, 184, 74, 0.28);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.3);
	color: #eadfca;
	font-size: clamp(15px, 1.6vw, 18px);
	font-weight: 700;
}

.ap-adept-trial__notice {
	max-width: 900px;
	margin: 0 auto 18px;
	padding: 12px 14px;
	border: 1px solid rgba(244, 241, 232, 0.2);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.045);
	color: #f4f1e8;
	text-align: center;
}

.ap-adept-trial__notice[data-type="completed"],
.ap-adept-trial__notice[data-type="correct"] {
	border-color: rgba(143, 205, 154, 0.42);
	color: #d9f2dd;
}

.ap-adept-trial__notice[data-type="wrong"] {
	border-color: rgba(217, 105, 92, 0.48);
	color: #ffd6d0;
}

.ap-adept-question {
	max-width: 980px;
	margin: 0 auto;
	padding: clamp(20px, 3vw, 34px);
	border: 1px solid rgba(231, 184, 74, 0.48);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
		radial-gradient(circle at 50% 0%, rgba(231, 184, 74, 0.2), transparent 36%),
		rgba(8, 8, 7, 0.92);
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), inset 0 0 54px rgba(0, 0, 0, 0.36);
	text-align: center;
}

.ap-adept-question__symbol {
	margin: 8px 0 12px;
	color: #f4d989;
	font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", Georgia, serif;
	font-size: clamp(54px, 8vw, 92px);
	line-height: 1;
	text-shadow: 0 0 24px rgba(231, 184, 74, 0.42);
}

.ap-adept-question h3 {
	max-width: 820px;
	margin: 0 auto 24px;
	color: #ffffff;
	font-family: Georgia, serif;
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1.22;
}

.ap-adept-question__answers {
	display: grid;
	gap: 12px;
	max-width: 820px;
	margin: 0 auto;
}

.ap-adept-answer {
	width: 100%;
	min-height: 58px;
	padding: 14px 18px;
	border: 1px solid rgba(244, 241, 232, 0.2);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012)),
		rgba(0, 0, 0, 0.28);
	color: #f4f1e8;
	font: inherit;
	font-size: clamp(17px, 1.7vw, 22px);
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.18);
	transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ap-adept-answer:hover,
.ap-adept-answer:focus {
	border-color: rgba(231, 184, 74, 0.82);
	background:
		linear-gradient(180deg, rgba(231, 184, 74, 0.18), rgba(231, 184, 74, 0.055)),
		rgba(0, 0, 0, 0.28);
	color: #ffffff;
	box-shadow: 0 0 24px rgba(231, 184, 74, 0.12), inset 0 0 18px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

.ap-adept-question__hint {
	margin: 16px 0 0;
	color: #bfb7a8;
	font-size: 13px;
	text-align: center;
}

.ap-map-phase__heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.ap-map-phase__heading .ap-kicker,
.ap-map-phase__heading .ap-latin {
	margin: 0;
}

.ap-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
}

.ap-category-card {
	min-width: 0;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 650ms ease, transform 650ms ease, filter 260ms ease;
}

.ap-category-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ap-category-card.is-locked.is-visible {
	opacity: 0.46;
	filter: grayscale(0.62) saturate(0.5);
}

.ap-category-card__surface {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	aspect-ratio: 1 / 1;
	padding: 16px;
	border: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.32);
	border-radius: 8px;
	background:
		radial-gradient(circle at 18% 12%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.14), transparent 32%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 15px),
		rgba(255, 255, 255, 0.024);
	box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.42);
	color: #f4f1e8;
	text-decoration: none;
	transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.ap-category-card.is-available .ap-category-card__surface:hover {
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.82);
	background:
		radial-gradient(circle at 18% 12%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.23), transparent 34%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 15px),
		rgba(255, 255, 255, 0.04);
	box-shadow: 0 0 26px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.14), inset 0 0 36px rgba(0, 0, 0, 0.34);
	color: #ffffff;
	transform: translateY(-3px);
}

.ap-category-card h3 {
	margin: 0 0 2px;
	color: #ffffff;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: clamp(21px, 2.4vw, 31px);
	line-height: 1.12;
}

.ap-category-card h3 a {
	color: inherit;
	text-decoration: none;
}

.ap-category-card h3 a:hover,
.ap-category-card h3 a:focus {
	text-decoration: none;
}

.ap-category-card .ap-latin {
	margin: 0;
	color: #cfc8ba;
	font-size: 14px;
	font-style: italic;
}

.ap-category-symbols {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	gap: 4px 10px;
	margin: auto 0;
	padding: 14px 0;
}

.ap-category-symbols a,
.ap-category-symbols span {
	color: var(--ap-accent, #f4f1e8);
	font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", Georgia, serif;
	font-size: clamp(26px, 3vw, 42px);
	line-height: 1;
	text-decoration: none;
	text-shadow: 0 0 16px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.32);
}

.ap-category-symbols a {
	transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.ap-category-symbols a:hover,
.ap-category-symbols a:focus {
	color: #ffffff;
	text-shadow: 0 0 20px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.62);
	transform: translateY(-2px);
}

.ap-category-symbols span {
	opacity: 0.34;
}

.ap-category-equation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
	padding: 7px 0;
	border-top: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.16);
	border-bottom: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.16);
	color: #cfc8ba;
	font-size: 11px;
	text-transform: uppercase;
}

.ap-category-equation a,
.ap-category-equation strong {
	color: var(--ap-accent, #f4f1e8);
	font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", Georgia, serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}

.ap-category-equation a:hover,
.ap-category-equation a:focus {
	color: #ffffff;
	text-shadow: 0 0 16px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.52);
}

.ap-category-equation strong {
	opacity: 0.34;
}

.ap-category-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.22);
	color: #d7d2c8;
	font-size: 13px;
}

.ap-category-card__footer strong {
	color: #ffffff;
}

.ap-category-card__enter {
	margin-top: 10px;
	color: #f4f1e8;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.ap-category-card__enter:hover,
.ap-category-card__enter:focus {
	color: #ffffff;
	text-decoration: none;
}

.ap-map-back {
	display: inline-flex;
	margin-bottom: 24px;
	color: #f4f1e8;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.ap-map-back:hover,
.ap-map-back:focus {
	color: #ffffff;
	text-decoration: none;
}

.ap-adept-trial .ap-map-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	max-width: 980px;
	margin: 26px auto 0;
	text-align: center;
}

.ap-adept-trial .ap-map-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 11px 18px;
	border: 1px solid rgba(231, 184, 74, 0.52);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(231, 184, 74, 0.18), rgba(231, 184, 74, 0.06)),
		rgba(0, 0, 0, 0.34);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), inset 0 0 18px rgba(231, 184, 74, 0.06);
	color: #f6df9a;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ap-adept-trial .ap-map-back:hover,
.ap-adept-trial .ap-map-back:focus {
	border-color: rgba(244, 218, 148, 0.92);
	color: #ffffff;
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32), 0 0 26px rgba(231, 184, 74, 0.14);
	transform: translateY(-1px);
}

.ap-adept-trial .ap-map-guide-link {
	max-width: 520px;
	color: #bdb4a5;
	font-size: 13px;
	line-height: 1.45;
}

.ap-guide-section--adept-trial {
	border-color: rgba(231, 184, 74, 0.36);
	background:
		radial-gradient(circle at 12% 20%, rgba(231, 184, 74, 0.14), transparent 30%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
	box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.26);
}

.ap-guide-section--adept-trial h3 {
	color: #ffffff;
}

.ap-guide-section--adept-trial .ap-guide-unlocks span {
	border-color: rgba(231, 184, 74, 0.28);
	background: rgba(231, 184, 74, 0.065);
}

.ap-category-page {
	max-width: 1180px;
	background:
		radial-gradient(circle at 16% 10%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.12), transparent 28%),
		radial-gradient(circle at 86% 22%, rgba(var(--ap-accent-secondary-rgb, 139, 148, 152), 0.08), transparent 24%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
		#070707;
}

.ap-category-page__hero {
	margin-bottom: 24px;
}

.ap-category-progress {
	height: 5px;
	margin: 22px auto 8px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(244, 241, 232, 0.12);
}

.ap-category-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ap-accent-secondary, #777777), var(--ap-accent, #ffffff), var(--ap-accent-tertiary, #ffffff));
	box-shadow: 0 0 14px rgba(var(--ap-accent-rgb, 255, 255, 255), 0.3);
}

.ap-category-progress__label {
	color: #d7d2c8;
	font-size: 14px;
}

.ap-symbol-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.ap-symbol-tile {
	min-width: 0;
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 620ms ease, transform 620ms ease, filter 220ms ease;
}

.ap-symbol-tile.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ap-symbol-tile.is-locked.is-visible {
	opacity: 0.44;
	filter: grayscale(0.68) saturate(0.48);
}

.ap-symbol-tile__surface {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	aspect-ratio: 1 / 1;
	padding: 14px;
	border: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.3);
	border-radius: 8px;
	background:
		radial-gradient(circle at 50% 28%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.1), transparent 36%),
		rgba(255, 255, 255, 0.026);
	box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.42);
	text-align: center;
}

.ap-symbol-tile.is-completed .ap-symbol-tile__surface {
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.78);
	background:
		radial-gradient(circle at 50% 28%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.2), transparent 38%),
		rgba(255, 255, 255, 0.04);
}

.ap-symbol-tile__glyph {
	margin: 8px 0 10px;
	color: var(--ap-accent, #f4f1e8);
	font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", Georgia, serif;
	font-size: clamp(52px, 6vw, 82px);
	line-height: 1;
	text-shadow: 0 0 20px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.38);
}

.ap-symbol-tile h4 {
	margin: 0 0 4px;
	color: #ffffff;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: clamp(16px, 1.8vw, 22px);
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.ap-symbol-tile .ap-latin {
	margin: 0 0 8px;
	color: #cfc8ba;
	font-size: 13px;
	font-style: italic;
}

.ap-symbol-tile__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
	margin-top: auto;
}

.ap-symbol-tile__meta span {
	padding: 4px 6px;
	border: 1px solid rgba(244, 241, 232, 0.18);
	border-radius: 999px;
	color: #f4f1e8;
	font-size: 11px;
	font-weight: 700;
}

.ap-symbol-tile .ap-node-status {
	margin: 8px 0;
	color: #cfc8ba;
	font-size: 12px;
	line-height: 1.35;
}

.ap-symbol-tile__price {
	margin: 2px 0 8px;
	color: var(--ap-gold, #e7b84a);
	font-size: 13px;
	line-height: 1.35;
}

.ap-symbol-tile .ap-button {
	width: 100%;
	min-height: 36px;
	padding: 8px 10px;
	font-size: 13px;
}

.ap-category-course-panel {
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.3);
	text-align: center;
}

.ap-category-course-panel > .ap-latin {
	margin-top: -8px;
	color: #cfc8ba;
}

.ap-category-course-panel .ap-symbol-tile {
	max-width: 420px;
	margin: 18px auto 0;
}

.ap-category-course-panel .ap-symbol-tile__surface {
	aspect-ratio: auto;
	min-height: 300px;
}

.ap-category-lock {
	max-width: 760px;
	padding: clamp(24px, 5vw, 52px);
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.24);
	background:
		radial-gradient(circle at 50% 10%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.12), transparent 36%),
		#080808;
	text-align: center;
}

.ap-category-lock h2 {
	margin-bottom: 6px;
	color: #ffffff;
	font-size: clamp(34px, 6vw, 66px);
}

.ap-category-lock__notice {
	margin: 18px 0;
	padding: 12px;
	border: 1px solid rgba(244, 241, 232, 0.2);
	background: rgba(255, 255, 255, 0.035);
	color: #f4f1e8;
}

@media (max-width: 560px) {
	.ap-adept-trial-card {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.ap-adept-trial-card__sigil {
		margin: 0 auto;
	}

	.ap-adept-trial-card__meta {
		justify-content: center;
	}

	.ap-adept-trial-card__action {
		width: 100%;
	}

	.ap-map-phase__heading {
		display: block;
	}

	.ap-map-phase__heading .ap-latin {
		margin-top: -6px;
	}

	.ap-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ap-category-card__surface {
		aspect-ratio: auto;
		min-height: 190px;
		padding: 12px;
	}

	.ap-category-card h3 {
		font-size: 18px;
	}

	.ap-category-symbols a,
	.ap-category-symbols span {
		font-size: 27px;
	}

	.ap-symbol-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ap-symbol-tile__surface {
		aspect-ratio: auto;
		min-height: 238px;
		padding: 11px;
	}

	.ap-symbol-tile__glyph {
		font-size: 58px;
	}

	.ap-symbol-tile h4 {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-category-card,
	.ap-symbol-tile,
	.ap-category-card__surface {
		transition: none;
	}
}

/* Stabilizacja siatek: zawartość nie może wypływać z kafli ani nachodzić na kolejny etap. */
.ap-academy-map {
	position: relative;
	width: min(100% - 24px, 1180px);
	margin: 24px auto;
	padding: clamp(18px, 3vw, 36px);
	overflow: hidden;
	isolation: isolate;
}

.ap-map-phases,
.ap-map-hero,
.ap-map-back {
	position: relative;
	z-index: 1;
}

.ap-map-phase,
.ap-category-grid,
.ap-symbol-grid {
	min-width: 0;
}

.ap-map-phase {
	clear: both;
	overflow: visible;
}

.ap-category-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 16px;
}

.ap-category-card {
	height: 100%;
}

.ap-category-card__surface {
	min-height: 332px;
	aspect-ratio: auto;
	padding: 15px;
	overflow: hidden;
}

.ap-category-symbols {
	display: grid;
	grid-template-columns: repeat(auto-fill, 32px);
	align-content: start;
	justify-content: start;
	gap: 7px;
	margin: 16px 0;
	padding: 0;
}

.ap-category-symbols a,
.ap-category-symbols span {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.3);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.035);
	font-size: 20px;
	line-height: 1;
}

.ap-category-symbols a:hover,
.ap-category-symbols a:focus {
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.86);
	background: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.14);
}

.ap-category-equation {
	margin-top: auto;
}

.ap-category-equation a,
.ap-category-equation strong {
	display: block;
	max-width: 68%;
	overflow: hidden;
	font-size: 17px;
	line-height: 1.1;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap-symbol-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 14px;
}

.ap-symbol-tile {
	height: 100%;
}

.ap-symbol-tile__surface {
	min-height: 318px;
	aspect-ratio: auto;
	padding: 14px;
	overflow: hidden;
}

.ap-symbol-tile__glyph {
	display: grid;
	width: 92px;
	height: 92px;
	margin: 10px auto 14px;
	place-items: center;
	border: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.34);
	border-radius: 6px;
	background:
		radial-gradient(circle, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.17), transparent 70%),
		rgba(255, 255, 255, 0.025);
	font-size: 58px;
	line-height: 1;
	text-decoration: none;
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a.ap-symbol-tile__glyph:hover,
a.ap-symbol-tile__glyph:focus {
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.9);
	background:
		radial-gradient(circle, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.29), transparent 72%),
		rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 18px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.24);
	transform: translateY(-2px);
}

.ap-symbol-tile h4 {
	min-height: 2.3em;
	font-size: 17px;
}

.ap-symbol-tile .ap-latin {
	min-height: 1.4em;
}

.ap-symbol-tile__meta {
	margin-top: auto;
}

@media (max-width: 980px) {
	.ap-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ap-symbol-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.ap-academy-map {
		width: min(100% - 16px, 1180px);
		padding: 14px;
	}

	.ap-category-grid {
		grid-template-columns: 1fr;
	}

	.ap-category-card__surface {
		min-height: 286px;
	}

	.ap-symbol-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.ap-symbol-tile__surface {
		min-height: 282px;
		padding: 10px;
	}

	.ap-symbol-tile__glyph {
		width: 74px;
		height: 74px;
		font-size: 48px;
	}

	.ap-symbol-tile h4 {
		font-size: 14px;
	}
}

/* Drobinki są generowane losowo w JS, zamiast układać się w powtarzalne linie tła. */
.ap-scroll-lesson {
	overflow: visible;
	isolation: isolate;
}

.ap-scroll-lesson::before,
.ap-scroll-lesson::after {
	display: none;
	content: none;
}

.ap-particle-field {
	position: absolute;
	z-index: 0;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.ap-particle {
	position: absolute;
	top: var(--ap-particle-y);
	left: var(--ap-particle-x);
	width: var(--ap-particle-size);
	height: var(--ap-particle-size);
	border-radius: 50%;
	background: var(--ap-accent, #f4f1e8);
	box-shadow: 0 0 9px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.8);
	opacity: 0.5;
	animation: ap-particle-float var(--ap-particle-duration) ease-in-out var(--ap-particle-delay) infinite alternate;
}

.ap-particle:nth-child(3n + 2) {
	background: var(--ap-accent-secondary, #8b9498);
	box-shadow: 0 0 8px rgba(var(--ap-accent-secondary-rgb, 139, 148, 152), 0.72);
	opacity: 0.38;
}

.ap-particle:nth-child(3n + 3) {
	background: var(--ap-accent-tertiary, #ffffff);
	box-shadow: 0 0 7px rgba(var(--ap-accent-tertiary-rgb, 255, 255, 255), 0.62);
	opacity: 0.3;
}

@keyframes ap-particle-float {
	from {
		transform: translate3d(0, 0, 0) scale(0.76);
	}

	to {
		transform: translate3d(var(--ap-particle-drift), calc(-1 * var(--ap-particle-rise)), 0) scale(1.16);
	}
}

/* Toolbar lekcji pozostaje widoczny podczas przewijania i ustępuje sticky nagłówkowi Astry. */
.ap-lesson-toolbar {
	top: var(--ap-sticky-offset, 0px);
}

@media (prefers-reduced-motion: reduce) {
	.ap-particle {
		animation: none;
		opacity: 0.18;
	}
}

/* Sticky panel musi leżeć nad sceną również wtedy, gdy kolejne sekcje wchodzą pod niego podczas scrollowania. */
.ap-scroll-section {
	z-index: 1;
}

.ap-lesson-toolbar {
	z-index: 80;
	isolation: isolate;
	pointer-events: auto;
}

.ap-lesson-toolbar > * {
	pointer-events: auto;
}

/* Co piąta drobinka jest małą kredową iskrą, a nie zwykłym punktem. */
.ap-particle:nth-child(5n) {
	width: 8px;
	height: 8px;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	opacity: 0.62;
}

.ap-particle:nth-child(10n) {
	width: 11px;
	height: 11px;
}

.ap-particle:nth-child(5n)::before,
.ap-particle:nth-child(5n)::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 1px;
	background: var(--ap-accent, #f4f1e8);
	box-shadow: 0 0 8px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.82);
	content: "";
	transform-origin: center;
}

.ap-particle:nth-child(5n)::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.ap-particle:nth-child(5n)::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Profil gracza: czytelna karta drogi, szersze równania i dodatkowe statystyki. */
.ap-profile-dashboard {
	position: relative;
	width: min(100%, 1180px);
	margin: 40px auto;
	isolation: isolate;
}

.ap-profile-dashboard > :not(.ap-particle-field),
.ap-guide > :not(.ap-particle-field) {
	position: relative;
	z-index: 1;
}

/* Atlas: skrót do instrukcji, wymagania blokad i bezpieczne karty przyszłych treści. */
.ap-map-actions {
	display: flex;
	justify-content: center;
	margin-top: 22px;
}

.ap-category-page__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.ap-category-page__nav .ap-map-back {
	margin-bottom: 0;
}

.ap-map-guide-link {
	color: #f4f1e8;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ap-map-guide-link:hover,
.ap-map-guide-link:focus {
	color: #ffffff;
}

.ap-unlock-requirements {
	display: grid;
	gap: 5px;
	margin: 8px 0 12px;
	padding: 0;
	color: #ded7ca;
	font-size: 12px;
	line-height: 1.42;
	list-style: none;
	text-align: left;
}

.ap-unlock-requirements li {
	position: relative;
	padding-left: 15px;
}

.ap-unlock-requirements li::before {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--ap-accent, #f4f1e8);
	content: "◇";
}

.ap-symbol-tile.is-coming-soon.is-visible {
	opacity: 0.62;
}

.ap-symbol-tile.is-coming-soon .ap-symbol-tile__surface {
	border-style: dashed;
}

.ap-coming-soon {
	max-width: 760px;
	padding: clamp(28px, 6vw, 64px);
	border-color: rgba(var(--ap-accent-rgb, 244, 241, 232), 0.3);
	background:
		radial-gradient(circle at 50% 6%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.16), transparent 35%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
		#080808;
	text-align: center;
}

.ap-coming-soon h2 {
	margin-bottom: 6px;
	color: #ffffff;
	font-size: clamp(36px, 6vw, 68px);
}

.ap-coming-soon__symbol {
	color: var(--ap-accent, #f4f1e8);
	font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", Georgia, serif;
	font-size: clamp(72px, 13vw, 132px);
	line-height: 1;
	text-shadow: 0 0 26px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.44);
}

.ap-coming-soon__notice {
	margin: 20px 0;
	padding: 12px;
	border: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.25);
	background: rgba(255, 255, 255, 0.035);
	color: #f4f1e8;
}

.ap-coming-soon .ap-unlock-requirements {
	max-width: 560px;
	margin-right: auto;
	margin-left: auto;
	padding: 14px;
	border: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.16);
	background: rgba(0, 0, 0, 0.22);
}

.ap-guide-unlocks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.ap-guide-unlocks span {
	padding: 12px;
	border: 1px solid rgba(244, 241, 232, 0.18);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.22);
	color: #fff2c9;
	font-size: 14px;
	font-weight: 700;
}

@media (max-width: 560px) {
	.ap-category-page__nav {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.ap-guide-unlocks {
		grid-template-columns: 1fr;
	}
}

.ap-profile-heading__name {
	color: #fff2c9;
	text-shadow: 0 0 18px rgba(223, 189, 118, 0.2);
}

.ap-profile-title {
	color: #dfbd76;
}

.ap-profile-stats {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ap-stat-block__date {
	font-size: clamp(16px, 1.7vw, 22px);
}

.ap-xp-panel__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
	align-items: end;
	gap: 12px 24px;
}

.ap-next-rank {
	text-align: right;
}

.ap-next-rank strong {
	color: #fff2c9;
}

.ap-xp-panel .ap-atlas-capacity {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid rgba(244, 241, 232, 0.12);
	color: #afa99d;
	font-size: 13px;
}

.ap-badge-card {
	overflow: hidden;
}

.ap-badge-card__equation {
	display: block;
	overflow-wrap: anywhere;
	color: #fff2c9;
	font-size: clamp(20px, 2.2vw, 28px);
	line-height: 1.35;
}

.ap-lesson-card--course {
	grid-template-columns: 138px minmax(0, 1fr);
}

.ap-lesson-card__symbol--equation {
	width: 132px;
	height: auto;
	min-height: 54px;
	padding: 8px;
	border-radius: 6px;
	font-size: 22px;
	white-space: nowrap;
}

/* Osobna podstrona instrukcji: shortcode [alchemia_academy_guide]. */
.ap-guide {
	position: relative;
	width: min(100% - 24px, 1180px);
	margin: 28px auto;
	padding: clamp(22px, 4vw, 48px);
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(circle at 12% 8%, rgba(223, 189, 118, 0.11), transparent 28%),
		radial-gradient(circle at 88% 24%, rgba(244, 241, 232, 0.06), transparent 24%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
		#070707;
}

.ap-guide__hero {
	max-width: 820px;
	margin: 0 auto 30px;
	text-align: center;
}

.ap-guide__hero h2 {
	margin-bottom: 14px;
	color: #ffffff;
	font-size: clamp(36px, 6vw, 72px);
	line-height: 1.05;
}

.ap-guide__hero p,
.ap-guide-section > p,
.ap-guide-card p {
	color: #e8e1d4;
	font-size: 17px;
	line-height: 1.65;
}

.ap-guide-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin-bottom: 34px;
}

.ap-guide-card,
.ap-guide-section {
	border: 1px solid rgba(244, 241, 232, 0.2);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.36);
}

/*
 * Immersive Atlas pages use their own canvas. The class is added by JS only
 * when an Atlas shortcode is present, so the WooCommerce account and the
 * remaining WordPress pages keep the theme layout.
 */
html.ap-academy-fullscreen-page,
body.ap-academy-fullscreen-page {
	min-height: 100%;
	background: #020202 !important;
}

body.ap-academy-fullscreen-page #masthead,
body.ap-academy-fullscreen-page #ast-desktop-header,
body.ap-academy-fullscreen-page #ast-mobile-header,
body.ap-academy-fullscreen-page .ast-header-break-point,
body.ap-academy-fullscreen-page .ast-main-header-wrap,
body.ap-academy-fullscreen-page .main-header-bar-wrap,
body.ap-academy-fullscreen-page .main-header-bar,
body.ap-academy-fullscreen-page .ast-builder-header-wrap,
body.ap-academy-fullscreen-page .ast-mobile-header-wrap,
body.ap-academy-fullscreen-page .elementor-location-header,
body.ap-academy-fullscreen-page header[role="banner"],
body.ap-academy-fullscreen-page .site-header,
body.ap-academy-fullscreen-page .ast-above-header-wrap,
body.ap-academy-fullscreen-page .ast-primary-header-bar,
body.ap-academy-fullscreen-page .ast-below-header-wrap,
body.ap-academy-fullscreen-page .woocommerce-store-notice,
body.ap-academy-fullscreen-page #colophon,
body.ap-academy-fullscreen-page .elementor-location-footer,
body.ap-academy-fullscreen-page .site-footer,
body.ap-academy-fullscreen-page .site-above-footer-wrap,
body.ap-academy-fullscreen-page .site-primary-footer-wrap,
body.ap-academy-fullscreen-page .site-below-footer-wrap {
	display: none !important;
}

body.ap-academy-fullscreen-page #content,
body.ap-academy-fullscreen-page .site-content,
body.ap-academy-fullscreen-page .ast-container,
body.ap-academy-fullscreen-page #primary,
body.ap-academy-fullscreen-page .content-area,
body.ap-academy-fullscreen-page .site-main,
body.ap-academy-fullscreen-page article.page,
body.ap-academy-fullscreen-page .ast-article-single,
body.ap-academy-fullscreen-page .entry-content {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: #020202 !important;
}

body.ap-academy-fullscreen-page .entry-header {
	display: none !important;
}

body.ap-academy-fullscreen-page .ap-academy-map,
body.ap-academy-fullscreen-page .ap-profile-dashboard,
body.ap-academy-fullscreen-page .ap-guide,
body.ap-academy-fullscreen-page .ap-help,
body.ap-academy-fullscreen-page .ap-scroll-lesson {
	width: 100% !important;
	max-width: none !important;
	min-height: 100vh;
	margin: 0 !important;
	border-right: 0;
	border-left: 0;
	border-radius: 0;
}

.ap-guide-card {
	padding: 18px;
}

.ap-guide-card__number {
	display: grid;
	width: 38px;
	height: 38px;
	margin-bottom: 14px;
	place-items: center;
	border: 1px solid rgba(223, 189, 118, 0.56);
	border-radius: 50%;
	color: #fff2c9;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-weight: 700;
}

.ap-guide-card h3,
.ap-guide-section h3 {
	margin-bottom: 10px;
	color: #ffffff;
	font-size: clamp(21px, 2.6vw, 30px);
	line-height: 1.18;
}

.ap-guide-section {
	margin-top: 16px;
	padding: clamp(18px, 3vw, 28px);
}

.ap-guide-equation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	color: #fff2c9;
	font-family: Georgia, serif;
	font-size: 17px;
	font-weight: 700;
}

.ap-guide-equation span {
	padding: 7px 10px;
	border: 1px solid rgba(244, 241, 232, 0.25);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.24);
}

.ap-rank-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.ap-rank-card {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(244, 241, 232, 0.16);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.22);
}

.ap-rank-card__symbol {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid rgba(223, 189, 118, 0.42);
	border-radius: 4px;
	color: #fff2c9;
	font-size: 26px;
}

.ap-rank-card strong,
.ap-rank-card small {
	display: block;
}

.ap-rank-card strong {
	color: #ffffff;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: 15px;
	line-height: 1.2;
}

.ap-rank-card small {
	margin-top: 4px;
	color: #cfc8ba;
	font-family: Georgia, serif;
	font-size: 13px;
	font-style: italic;
}

.ap-rank-card__level {
	color: #dfbd76;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 780px) {
	.ap-profile-stats,
	.ap-guide-grid,
	.ap-rank-list {
		grid-template-columns: 1fr;
	}

	.ap-xp-panel__footer {
		grid-template-columns: 1fr;
	}

	.ap-next-rank {
		text-align: left;
	}
}

@media (max-width: 540px) {
	.ap-profile-hero {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 16px;
	}

	.ap-level-orb {
		width: 88px;
		height: 88px;
	}

	.ap-level-orb strong {
		font-size: 36px;
	}

	.ap-profile-heading__name {
		font-size: 32px;
	}

	.ap-lesson-card--course {
		grid-template-columns: 1fr;
	}

	.ap-lesson-card__symbol--equation {
		width: 100%;
	}
}
.ap-image-section {
	display: grid;
	place-items: center;
	padding: 0 !important;
}

.ap-lesson-image {
	display: block;
	width: min(100%, 900px);
	max-height: 78vh;
	margin: 0 auto;
	object-fit: contain;
}

/* Wspólny pas nawigacyjny Atlasu, rozdziałów, instrukcji i profilu. */
.ap-academy a,
.ap-academy a:hover,
.ap-academy a:focus {
	text-decoration: none !important;
}

.ap-academy-nav {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: clamp(26px, 5vw, 58px);
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(244, 241, 232, 0.18);
}

.ap-academy-nav--profile {
	align-items: flex-start;
	gap: clamp(14px, 2.2vw, 26px);
	margin-bottom: clamp(22px, 4vw, 42px);
}

.ap-academy-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.ap-academy-brand img {
	display: block;
	width: min(220px, 42vw);
	height: auto;
	max-height: 74px;
	object-fit: contain;
	object-position: left center;
}

.ap-academy-nav--profile .ap-academy-brand:not(.ap-academy-brand--atlas) img {
	width: min(172px, 30vw);
	max-height: 58px;
}

.ap-academy-nav__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.ap-academy-nav__button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 8px 11px;
	border: 1px solid rgba(244, 241, 232, 0.28);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.04);
	color: #f4f1e8;
	font-family: Georgia, serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.15;
	transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ap-academy-nav__button--quiet {
	border-color: rgba(244, 241, 232, 0.18);
	background: rgba(255, 255, 255, 0.025);
	color: #cfc8ba;
	font-size: 12px;
}

.ap-academy-nav__button:hover,
.ap-academy-nav__button:focus {
	border-color: rgba(244, 241, 232, 0.66);
	background: rgba(255, 255, 255, 0.09);
	color: #ffffff;
}

.ap-atlas-profile-link {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: min(100%, 560px);
	box-sizing: border-box;
	padding: 12px 14px 12px 12px;
	border: 1px solid rgba(244, 241, 232, 0.18);
	border-radius: 6px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
		rgba(8, 8, 8, 0.72);
	color: #f4f1e8;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
	transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ap-atlas-profile-link:hover,
.ap-atlas-profile-link:focus {
	border-color: rgba(223, 189, 118, 0.54);
	background:
		linear-gradient(135deg, rgba(223, 189, 118, 0.09), rgba(255, 255, 255, 0.025)),
		rgba(8, 8, 8, 0.78);
	color: #ffffff;
	transform: translateY(-1px);
}

.ap-atlas-profile-link__seal,
.ap-atlas-profile-link__seal img {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	object-fit: contain;
}

.ap-atlas-profile-link__seal {
	color: #fff2c9;
	font-size: 28px;
}

.ap-atlas-profile-link__copy,
.ap-atlas-profile-link__copy strong,
.ap-atlas-profile-link__copy small {
	display: block;
	min-width: 0;
}

.ap-atlas-profile-link__copy strong {
	overflow: hidden;
	color: #fff8e8;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: 15px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap-atlas-profile-link__copy small {
	margin-top: 3px;
	overflow: hidden;
	color: #cfc8ba;
	font-size: 13px;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap-atlas-profile-link__cta {
	padding: 7px 10px;
	border: 1px solid rgba(244, 241, 232, 0.18);
	border-radius: 999px;
	color: #dfbd76;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.ap-toolbar-brand {
	display: inline-flex;
	align-items: center;
}

.ap-toolbar-brand img {
	display: block;
	width: 96px;
	height: 30px;
	object-fit: contain;
	object-position: left center;
}

.ap-lesson-toolbar {
	grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.ap-guide-steps {
	display: grid;
	gap: 10px;
	margin: 18px 0 0;
	padding-left: 24px;
	color: #e8e1d4;
	font-size: 17px;
	line-height: 1.55;
}

/* Losowane znaki zastępują dawne punkty światła. */
.ap-particle.ap-particle--symbol {
	display: block;
	width: auto;
	height: auto;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ap-accent, #f4f1e8);
	font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", Georgia, serif;
	font-variant-emoji: text;
	font-size: var(--ap-particle-size);
	line-height: 1;
	text-shadow: 0 0 10px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.62);
	opacity: 0.23;
}

.ap-particle.ap-particle--symbol:nth-child(3n + 2) {
	background: transparent;
	color: var(--ap-accent-secondary, #8b9498);
	text-shadow: 0 0 9px rgba(var(--ap-accent-secondary-rgb, 139, 148, 152), 0.56);
	opacity: 0.18;
}

.ap-particle.ap-particle--symbol:nth-child(3n + 3) {
	background: transparent;
	color: var(--ap-accent-tertiary, #ffffff);
	text-shadow: 0 0 8px rgba(var(--ap-accent-tertiary-rgb, 255, 255, 255), 0.48);
	opacity: 0.15;
}

.ap-particle.ap-particle--symbol:nth-child(5n),
.ap-particle.ap-particle--symbol:nth-child(10n) {
	width: auto;
	height: auto;
	background: transparent;
	box-shadow: none;
}

.ap-particle.ap-particle--symbol::before,
.ap-particle.ap-particle--symbol::after {
	display: none;
	content: none;
}

@keyframes ap-particle-float {
	from {
		transform: translate3d(0, 0, 0) rotate(var(--ap-particle-rotation-start)) scale(0.76);
	}

	to {
		transform: translate3d(var(--ap-particle-drift), calc(-1 * var(--ap-particle-rise)), 0) rotate(var(--ap-particle-rotation-end)) scale(1.08);
	}
}

/* Zdobyte równania delikatnie pulsują jak aktywne pieczęcie. */
.ap-badge-card__equation {
	display: inline-block;
	animation: ap-equation-awaken 4.8s ease-in-out infinite;
	text-shadow: 0 0 16px rgba(223, 189, 118, 0.24);
}

@keyframes ap-equation-awaken {
	0%,
	100% {
		opacity: 0.82;
		transform: scale(0.98);
	}

	50% {
		opacity: 1;
		transform: scale(1.04);
		text-shadow: 0 0 28px rgba(223, 189, 118, 0.46);
	}
}

@media (max-width: 780px) {
	.ap-academy-nav {
		align-items: flex-start;
		flex-direction: column;
	}

	.ap-academy-nav__actions {
		justify-content: flex-start;
	}

	.ap-lesson-toolbar {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.ap-toolbar-brand {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-badge-card__equation {
		animation: none;
	}
}

/* Panel postaci: mały fragment profilu dostępny w nagłówkach Atlasu. */
.ap-player-hud {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	min-width: 0;
	box-sizing: border-box;
	padding: 5px 9px 5px 5px;
	border: 1px solid rgba(244, 241, 232, 0.2);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.035);
	color: #f4f1e8;
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ap-profile-dashboard,
.ap-academy-map,
.ap-guide {
	box-sizing: border-box;
}

.ap-player-hud:hover,
.ap-player-hud:focus {
	border-color: rgba(244, 241, 232, 0.58);
	background: rgba(255, 255, 255, 0.075);
	box-shadow: 0 0 18px rgba(244, 241, 232, 0.1);
}

.ap-player-hud__seal,
.ap-player-hud__fallback {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	object-fit: contain;
}

.ap-player-hud__fallback {
	color: #fff2c9;
	font-size: 26px;
}

.ap-player-hud__copy,
.ap-player-hud__copy strong,
.ap-player-hud__copy small {
	display: block;
	min-width: 0;
}

.ap-player-hud__copy strong {
	overflow: hidden;
	color: #ffffff;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: 13px;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap-player-hud__copy small {
	margin-top: 3px;
	overflow: hidden;
	color: #cfc8ba;
	font-family: Georgia, serif;
	font-size: 11px;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap-player-hud--toolbar {
	max-width: 220px;
}

.ap-lesson-toolbar {
	grid-template-columns: auto auto minmax(0, 1fr) auto auto;
}

/* Duża pieczęć rangi w profilu gracza. */
.ap-profile-hero {
	grid-template-columns: 190px minmax(0, 1fr);
}

.ap-profile-heading {
	min-width: 0;
}

.ap-profile-heading__name,
.ap-profile-title {
	overflow-wrap: anywhere;
}

.ap-profile-rank-seal {
	position: relative;
	display: grid;
	width: 180px;
	height: 214px;
	place-items: center;
}

.ap-profile-rank-seal > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 18px rgba(244, 241, 232, 0.17));
}

.ap-profile-rank-seal__fallback {
	color: #fff2c9;
	font-size: 92px;
}

.ap-profile-rank-seal .ap-level-orb {
	position: absolute;
	right: -4px;
	bottom: 0;
	width: 76px;
	height: 76px;
	background:
		radial-gradient(circle, rgba(215, 180, 106, 0.22), transparent 62%),
		rgba(8, 8, 8, 0.94);
	box-shadow: 0 0 22px rgba(215, 180, 106, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.58);
}

.ap-profile-rank-seal .ap-level-orb span {
	font-size: 9px;
}

.ap-profile-rank-seal .ap-level-orb small {
	font-size: 8px;
}

.ap-profile-rank-seal .ap-level-orb strong {
	font-size: 30px;
}

/* Jeden mechanizm obsługuje PNG równania i tekstowy wariant zapasowy. */
.ap-equation-visual {
	display: block;
	max-width: 100%;
}

.ap-equation-visual--image {
	object-fit: contain;
}

.ap-category-equation__visual.ap-equation-visual--image {
	width: 112px;
	height: 38px;
}

.ap-category-equation__visual.ap-equation-visual--text {
	display: inline;
}

.ap-symbol-tile__glyph--equation {
	width: min(100%, 420px);
	height: 182px;
	margin: 8px auto 22px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.ap-symbol-tile__equation-visual.ap-equation-visual--image {
	width: 100%;
	height: 100%;
}

a.ap-symbol-tile__glyph--equation:hover,
a.ap-symbol-tile__glyph--equation:focus {
	border: 0;
	background: transparent;
	box-shadow: none;
	filter: drop-shadow(0 0 14px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.24));
}

.ap-symbol-tile__equation-visual.ap-equation-visual--text {
	font-size: 30px;
	line-height: 1.15;
}

.ap-premium-lock__equation-visual.ap-equation-visual--image {
	width: min(100%, 620px);
	max-height: 280px;
	margin: 0 auto;
}

.ap-badge-card__image {
	display: block;
	width: min(100%, 540px);
	max-height: 230px;
	margin: 0 auto;
	object-fit: contain;
	animation: ap-equation-awaken 4.8s ease-in-out infinite;
	filter: drop-shadow(0 0 14px rgba(223, 189, 118, 0.2));
}

.ap-lesson-card__equation-visual.ap-equation-visual--image {
	width: 100%;
	height: 66px;
}

.ap-final-equation-image {
	display: block;
	width: min(100%, 680px);
	max-height: 360px;
	margin: 0 auto 14px;
	object-fit: contain;
	filter: drop-shadow(0 0 22px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.24));
}

.ap-tria-diagnostic,
.ap-tria-patterns {
	display: grid;
	gap: 12px;
	width: min(100%, 780px);
	margin: 22px auto;
}

.ap-tria-diagnostic p,
.ap-tria-patterns article,
.ap-course-unlocks {
	box-sizing: border-box;
	padding: clamp(14px, 2.5vw, 20px);
	border: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.22);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.025);
	box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.2);
}

.ap-tria-diagnostic p {
	margin: 0;
}

.ap-tria-diagnostic strong,
.ap-tria-diagnostic span,
.ap-tria-patterns strong,
.ap-tria-patterns span {
	display: block;
}

.ap-tria-diagnostic strong,
.ap-tria-patterns strong {
	color: #fff2c9;
	font-size: clamp(18px, 2.5vw, 24px);
}

.ap-tria-diagnostic span,
.ap-tria-patterns span {
	margin-top: 6px;
	color: #d7cfbf;
	line-height: 1.55;
}

.ap-tria-patterns {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: min(100%, 920px);
}

.ap-course-unlocks {
	width: min(100%, 640px);
	margin: 0 auto 24px;
	text-align: left;
}

.ap-course-unlocks .ap-kicker {
	margin-top: 0;
}

.ap-course-unlocks ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding-left: 20px;
	color: #f4ecd9;
}

.ap-course-unlocks li::marker {
	color: #dfbd76;
}

.ap-planet-diagnostic,
.ap-planet-patterns,
.ap-planet-corrections {
	display: grid;
	gap: 12px;
	width: min(100%, 940px);
	margin: 24px auto;
}

.ap-planet-diagnostic {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ap-planet-patterns {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ap-planet-corrections {
	width: min(100%, 760px);
}

.ap-planet-diagnostic p,
.ap-planet-patterns article,
.ap-planet-corrections p {
	box-sizing: border-box;
	margin: 0;
	padding: clamp(14px, 2.4vw, 20px);
	border: 1px solid rgba(var(--ap-accent-rgb, 244, 241, 232), 0.22);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.025);
	box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.2);
	text-align: left;
}

.ap-planet-diagnostic strong,
.ap-planet-patterns strong,
.ap-planet-corrections strong,
.ap-planet-diagnostic span,
.ap-planet-patterns span,
.ap-planet-corrections span {
	display: block;
}

.ap-planet-diagnostic strong {
	color: #fff2c9;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1;
}

.ap-planet-patterns strong,
.ap-planet-corrections strong {
	color: #fff2c9;
	font-size: clamp(18px, 2.5vw, 23px);
}

.ap-planet-diagnostic span,
.ap-planet-patterns span,
.ap-planet-corrections span {
	margin-top: 7px;
	color: #d7cfbf;
	line-height: 1.55;
}

/* Brama obrazkowa: same ilustracje są odpowiedziami, bez podpisów pod spodem. */
.ap-answer-grid--image-only {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(10px, 2vw, 18px);
	width: min(100%, 900px);
}

.ap-answer--image-only {
	display: block;
	min-height: 0;
	padding: clamp(6px, 1vw, 10px);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.025);
}

.ap-answer--image-only img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 5px;
	background: #050505;
	transition: filter 220ms ease, transform 220ms ease;
}

.ap-answer--image-only:hover img,
.ap-answer--image-only:focus img {
	filter: brightness(1.12);
	transform: scale(1.018);
}

.ap-answer--image-only.is-correct img {
	filter: brightness(1.16) drop-shadow(0 0 15px rgba(var(--ap-accent-rgb, 244, 241, 232), 0.35));
}

/* Finał Siarki: nagroda i profil gracza wyglądają jak ekran ukończenia zadania. */
.ap-final-section .ap-section-inner {
	width: min(100%, 920px);
}

.ap-final-victory {
	padding: clamp(18px, 3vw, 28px) 0 8px;
}

.ap-final-victory__latin {
	margin-top: -4px;
	color: #cfc8ba !important;
	font-family: Georgia, serif;
	font-size: clamp(17px, 2vw, 22px) !important;
	font-style: italic;
}

.ap-reward-list--game {
	display: grid;
	gap: 7px;
	width: min(100%, 640px);
	padding: clamp(18px, 3vw, 26px);
	border: 1px solid rgba(244, 241, 232, 0.22);
	border-radius: 8px;
	background:
		radial-gradient(circle at 50% 0%, rgba(var(--ap-accent-rgb, 244, 241, 232), 0.12), transparent 65%),
		rgba(255, 255, 255, 0.025);
	box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.32);
}

.ap-reward-list--game p {
	margin-bottom: 0;
}

.ap-final-player-card {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	width: min(100%, 640px);
	box-sizing: border-box;
	margin: 0 auto 24px;
	padding: 14px 18px;
	border-top: 1px solid rgba(244, 241, 232, 0.2);
	border-bottom: 1px solid rgba(244, 241, 232, 0.2);
	background: rgba(255, 255, 255, 0.018);
	text-align: left;
}

.ap-final-player-card__seal {
	display: grid;
	width: 76px;
	height: 76px;
	place-items: center;
}

.ap-final-player-card__seal img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 12px rgba(244, 241, 232, 0.14));
}

.ap-final-player-card__seal span {
	font-size: 42px;
}

.ap-final-player-card__copy small,
.ap-final-player-card__copy strong,
.ap-final-player-card__copy span {
	display: block;
}

.ap-final-player-card__copy small {
	margin-bottom: 6px;
	color: #cfc8ba;
	font-family: Georgia, serif;
	font-size: 13px;
	font-style: italic;
}

.ap-final-player-card__copy strong {
	color: #ffffff;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: clamp(20px, 3vw, 30px);
	line-height: 1.15;
}

.ap-final-player-card__copy span {
	margin-top: 5px;
	color: #eee5d6;
	font-size: 15px;
}

.ap-final-atlas-link {
	margin-top: 22px;
	text-decoration: none;
}

/* W instrukcji widać wszystkie pieczęcie, które gracz może później zdobyć. */
.ap-rank-card__image {
	display: block;
	width: 48px;
	height: 56px;
	object-fit: contain;
	filter: drop-shadow(0 0 9px rgba(244, 241, 232, 0.12));
}

@media (max-width: 1120px) {
	.ap-academy-nav {
		flex-wrap: wrap;
	}

	.ap-academy-nav__actions {
		flex-basis: 100%;
	}
}

@media (max-width: 780px) {
	.ap-player-hud--toolbar {
		display: none;
	}

	.ap-lesson-toolbar {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.ap-academy-nav__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.ap-academy-nav__button {
		justify-content: center;
		min-width: 0;
		text-align: center;
	}

	.ap-academy-nav__button:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 540px) {
	.ap-profile-dashboard,
	.ap-academy-map,
	.ap-guide,
	.ap-help {
		overflow-x: hidden;
	}

	.ap-profile-hero {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 14px;
	}

	.ap-profile-rank-seal {
		width: 112px;
		height: 144px;
	}

	.ap-profile-rank-seal .ap-level-orb {
		width: 58px;
		height: 58px;
	}

	.ap-profile-rank-seal .ap-level-orb span,
	.ap-profile-rank-seal .ap-level-orb small {
		display: none;
	}

	.ap-profile-rank-seal .ap-level-orb strong {
		font-size: 25px;
	}

	.ap-player-hud {
		width: 100%;
	}

	.ap-symbol-tile__glyph--equation {
		height: 154px;
	}

	.ap-final-player-card {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 12px;
		padding: 12px;
	}

	.ap-final-player-card__seal {
		width: 58px;
		height: 58px;
	}

	.ap-profile-dashboard {
		font-size: 16px;
		line-height: 1.5;
	}

	.ap-profile-dashboard h2 {
		font-size: clamp(30px, 10vw, 42px);
		line-height: 1.08;
	}

	.ap-profile-dashboard h3 {
		font-size: clamp(22px, 7vw, 30px);
		line-height: 1.15;
	}

	.ap-xp-panel__top,
	.ap-xp-panel__footer {
		gap: 12px;
	}

	.ap-xp-panel__footer p,
	.ap-next-rank,
	.ap-atlas-capacity {
		line-height: 1.5;
	}

	.ap-xp-panel__footer .ap-latin,
	.ap-next-rank .ap-latin,
	.ap-atlas-capacity .ap-latin {
		display: block;
		margin-top: 6px;
	}

	.ap-next-rank strong {
		display: block;
		margin-top: 4px;
	}

	.ap-xp-panel .ap-atlas-capacity {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-badge-card__image {
		animation: none;
	}
}

/* Atlas Symboli jest drugim, spokojniejszym znakiem w nagłówku Atlasu. */
.ap-academy-brands {
	display: flex;
	align-items: center;
	gap: clamp(8px, 1.4vw, 18px);
	min-width: 0;
	flex: 0 1 auto;
}

.ap-academy-brand--atlas {
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	opacity: 0.58;
	transition: opacity 180ms ease, filter 180ms ease;
}

.ap-academy-brand--atlas:hover,
.ap-academy-brand--atlas:focus {
	opacity: 0.82;
}

.ap-academy-brand--atlas img {
	width: min(130px, 18vw);
	max-height: 74px;
	filter: grayscale(1) brightness(0.8);
}

.ap-atlas-version {
	color: rgba(244, 241, 232, 0.82);
	font-family: "Courier New", monospace;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Astra i dodatki WooCommerce nie powinny przyciemniać tekstu wewnątrz Atlasu. */
.ap-academy,
.ap-academy p,
.ap-academy li,
.ap-academy blockquote,
.ap-academy small,
.ap-academy span,
.ap-academy h2,
.ap-academy h3,
.ap-academy h4,
.ap-academy label {
	color: #eee5d6;
}

.ap-academy h2,
.ap-academy h3,
.ap-academy h4,
.ap-academy strong {
	color: #fff8e8;
}

.ap-academy .ap-latin,
.ap-academy .ap-duo > small,
.ap-academy .ap-scroll-hint,
.ap-academy .ap-node-status {
	color: #cfc8ba;
}

.ap-academy .ap-kicker,
.ap-academy .ap-alchemy-symbol,
.ap-academy .ap-symbol-tile__price {
	color: #ddc57e;
}

.ap-academy .ap-button,
.ap-academy .ap-button span {
	color: #fff8e8;
}

.ap-academy .ap-button {
	border-color: rgba(244, 241, 232, 0.58);
	background: rgba(255, 255, 255, 0.075);
}

.ap-academy .ap-button:hover,
.ap-academy .ap-button:focus,
.ap-academy .ap-button:hover span,
.ap-academy .ap-button:focus span {
	border-color: #f0d38b;
	background: #f0d38b;
	color: #15120c;
}

.ap-academy .ap-button--quiet,
.ap-academy .ap-button--quiet span,
.ap-academy .ap-academy-nav__button,
.ap-academy .ap-academy-nav__button span {
	color: #f4f1e8;
}

.ap-academy .ap-academy-nav__button--quiet,
.ap-academy .ap-academy-nav__button--quiet span {
	color: #cfc8ba;
}

.ap-academy .ap-atlas-profile-link__copy small {
	color: #cfc8ba;
}

.ap-academy .ap-atlas-profile-link__cta {
	color: #dfbd76;
}

.ap-guide-paths {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.ap-guide-paths article {
	display: grid;
	gap: 5px;
	padding: 14px;
	border: 1px solid rgba(244, 241, 232, 0.16);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.2);
}

.ap-guide-paths strong {
	color: #fff2c9;
	font-family: Georgia, serif;
	font-size: 17px;
	font-variant-emoji: text;
}

.ap-guide-paths small {
	color: #cfc8ba;
	font-size: 12px;
	line-height: 1.35;
}

.ap-alchemy-symbol,
.ap-symbol-tile__glyph,
.ap-category-symbols {
	font-variant-emoji: text;
}

.ap-guide-paths span {
	color: #e8e1d4;
	font-size: 15px;
	line-height: 1.5;
}

.ap-guide-section--admin {
	border-color: rgba(223, 189, 118, 0.46);
	background: rgba(223, 189, 118, 0.075);
}

/* Czytelny wariant telefoniczny: mniej kolumn, większe cele dotykowe i spokojniejsze obrazy. */
@media (max-width: 680px) {
	.ap-academy-nav {
		gap: 12px;
		margin-bottom: 24px;
	}

	.ap-academy-brands {
		width: 100%;
		justify-content: space-between;
		gap: 8px;
	}

	.ap-academy-brand:not(.ap-academy-brand--atlas) img {
		width: min(164px, 48vw);
		max-height: 56px;
	}

	.ap-academy-brand--atlas img {
		width: min(112px, 34vw);
		max-height: 58px;
	}

	.ap-atlas-version {
		font-size: 8px;
		letter-spacing: 0.12em;
	}

	.ap-academy-nav__actions {
		grid-template-columns: 1fr;
		gap: 7px;
	}

	.ap-academy-nav__button,
	.ap-academy-nav__button:last-child {
		grid-column: auto;
		min-height: 46px;
		padding: 10px 12px;
		font-size: 15px;
	}

	.ap-atlas-profile-link {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 10px;
		padding: 11px;
	}

	.ap-atlas-profile-link__seal,
	.ap-atlas-profile-link__seal img {
		width: 42px;
		height: 42px;
	}

	.ap-atlas-profile-link__cta {
		grid-column: 1 / -1;
		justify-self: start;
		margin-left: 52px;
	}

	.ap-map-hero {
		padding: 18px 0 26px;
	}

	.ap-map-hero h2 {
		font-size: clamp(44px, 15vw, 70px);
		line-height: 0.98;
		overflow-wrap: anywhere;
	}

	.ap-map-hero p {
		font-size: 17px;
		line-height: 1.55;
	}

	.ap-atlas-promos {
		margin-bottom: 18px;
	}

	.ap-atlas-promo {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 15px;
	}

	.ap-atlas-promo__meta,
	.ap-atlas-promo__action {
		justify-items: start;
		width: 100%;
	}

	.ap-atlas-promo__code {
		font-size: clamp(27px, 9vw, 38px);
	}

	.ap-atlas-promo__price {
		flex-wrap: nowrap;
		gap: 7px;
		font-size: 15px;
	}

	.ap-atlas-promo__price strong {
		font-size: 20px;
	}

	.ap-atlas-promo__button {
		width: 100%;
		justify-content: center;
	}

	.ap-atlas-promo__message {
		width: 100%;
		text-align: left;
	}

	.ap-atlas-updates {
		margin-bottom: 24px;
		padding-top: 14px;
	}

	.ap-atlas-updates__header {
		display: block;
	}

	.ap-atlas-updates__header .ap-latin {
		margin-top: 4px;
	}

	.ap-atlas-updates__list li {
		grid-template-columns: 1fr;
		gap: 3px;
		padding: 10px 0;
	}

	.ap-category-grid,
	.ap-symbol-grid {
		grid-template-columns: 1fr;
	}

	.ap-category-card__surface,
	.ap-symbol-tile__surface {
		aspect-ratio: auto;
		min-height: 0;
		padding: 15px;
	}

	.ap-symbol-tile__glyph {
		width: auto;
		height: auto;
		margin: 12px 0;
		font-size: 62px;
	}

	.ap-symbol-tile__glyph--equation {
		width: min(100%, 340px);
		height: 148px;
		margin-right: auto;
		margin-left: auto;
	}

	.ap-symbol-tile h4 {
		font-size: 19px;
	}

	.ap-symbol-tile .ap-button,
	.ap-button {
		min-height: 48px;
		padding: 12px 14px;
		font-size: 16px;
	}

	.ap-scroll-section {
		min-height: auto;
		padding: 72px 14px;
	}

	.ap-scroll-lesson h2 {
		font-size: clamp(34px, 12vw, 62px);
		line-height: 1.06;
	}

	.ap-scroll-lesson h3 {
		font-size: clamp(22px, 6vw, 32px);
	}

	.ap-scroll-lesson p,
	.ap-scroll-lesson .ap-lead {
		font-size: 18px;
		line-height: 1.55;
	}

	.ap-lesson-image {
		width: 100%;
		max-height: 58svh;
	}

	.ap-answer-grid {
		gap: 10px;
		margin-top: 22px;
	}

	.ap-answer {
		grid-template-columns: 1fr;
		min-height: 56px;
		padding: 11px 10px;
		font-size: 17px;
	}

	.ap-answer-grid--image-only {
		grid-template-columns: 1fr;
		width: min(100%, 390px);
	}

	.ap-answer--image-only {
		padding: 7px;
	}

	.ap-answer--image-only img {
		max-height: 72svh;
	}

	.ap-profile-dashboard,
	.ap-guide {
		width: min(100% - 12px, 1180px);
		margin: 6px auto;
		padding: 16px;
	}

	.ap-profile-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.ap-stat-block {
		min-height: 88px;
		padding: 12px;
	}

	.ap-guide__hero h2 {
		font-size: clamp(31px, 10vw, 52px);
		line-height: 1.08;
	}

	.ap-guide-card h3,
	.ap-guide-section h3 {
		font-size: clamp(19px, 7vw, 25px);
		line-height: 1.16;
	}

	.ap-guide__hero p,
	.ap-guide-section > p,
	.ap-guide-card p,
	.ap-guide-steps {
		font-size: 16px;
		line-height: 1.55;
	}

	.ap-guide-section,
	.ap-guide-card {
		padding: 15px;
	}
}

@media (max-width: 420px) {
	.ap-profile-hero {
		grid-template-columns: 1fr;
	}

	.ap-profile-rank-seal {
		width: 126px;
		height: 154px;
	}

	.ap-profile-heading__name {
		font-size: 36px;
	}

	.ap-profile-stats {
		grid-template-columns: 1fr;
	}

	.ap-final-player-card {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.ap-final-player-card__seal {
		margin: 0 auto;
	}
}

.ap-help {
	width: min(100% - 24px, 1240px);
	box-sizing: border-box;
	margin: 16px auto;
	padding: clamp(18px, 4vw, 42px);
	background:
		radial-gradient(circle at 12% 10%, rgba(215, 180, 106, 0.14), transparent 28%),
		#080808;
}

.ap-help__hero {
	max-width: 850px;
	margin: 34px 0 26px;
}

.ap-help__hero h2 {
	margin: 6px 0 10px;
	color: #fff8e8;
	font-family: "Cinzel Decorative", Georgia, serif;
	font-size: clamp(34px, 5vw, 62px);
}

.ap-help-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ap-help-card {
	padding: clamp(16px, 3vw, 24px);
	border: 1px solid rgba(215, 180, 106, 0.22);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.018);
}

.ap-help-card h3 {
	margin-top: 0;
	color: #fff2c9;
}

.ap-help-card p {
	color: #d7cfbf;
}

.ap-help-card a {
	color: #f3d27a;
}

/* Panel udostępniania pojawia się spokojnie pod przyciskiem ukończenia. */
.ap-celebration[hidden] {
	display: none;
}

.ap-celebration {
	display: grid;
	width: min(100%, 720px);
	box-sizing: border-box;
	justify-items: center;
	margin: 22px auto 0;
	padding: clamp(20px, 4vw, 36px);
	border: 1px solid rgba(215, 180, 106, 0.42);
	border-radius: 8px;
	background:
		radial-gradient(circle at 50% 18%, rgba(215, 180, 106, 0.16), transparent 35%),
		#090d0a;
	box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.36);
	text-align: center;
}

.ap-celebration h3,
.ap-celebration h4 {
	margin: 5px 0;
	color: #fff8e8;
}

.ap-celebration__symbol {
	margin: 12px 0 4px;
	color: #f3d27a;
	font-family: Georgia, serif;
	font-size: clamp(64px, 14vw, 118px);
	line-height: 1.05;
	text-shadow: 0 0 26px rgba(215, 180, 106, 0.24);
}

.ap-celebration__preview {
	width: min(100%, 190px);
	margin: 14px auto;
	border: 1px solid rgba(215, 180, 106, 0.3);
	border-radius: 5px;
}

.ap-celebration__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 9px;
}

.ap-celebration__skip {
	margin-top: 14px;
	border: 0;
	border-bottom: 1px solid rgba(244, 236, 214, 0.48);
	color: #e5dcc7;
	background: transparent;
	font-size: 16px;
	cursor: pointer;
}

.ap-celebration__skip:hover,
.ap-celebration__skip:focus {
	border-color: #f3d27a;
	color: #fff3cb;
}

@media (max-width: 720px) {
	.ap-help-grid {
		grid-template-columns: 1fr;
	}

	.ap-tria-patterns {
		grid-template-columns: 1fr;
	}

	.ap-celebration__actions {
		display: grid;
		width: 100%;
	}
}
