.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 {
	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: 44px 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__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(215, 180, 106, 0.62);
	border-radius: 50%;
	color: #d7b46a;
	font-weight: 700;
}

.ap-answer__text {
	padding-left: 2px;
}

.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-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: 38px minmax(0, 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: 38px 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-answer__label,
.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__label,
.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 Akademii 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-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;
	}
}
