/* کره‌ی زمین آلوکسیل — همه‌ی کلاس‌ها با پیشوند agl (ظاهر دقیقاً مطابق طراحی اصلی) */

.agl {
	--agl-brand: #ff5a1f;
	--agl-bg: #f4f4f6;
	--agl-dark: #1a1a1a;
	--agl-vh: 65;
	--agl-min: 400px;
	--agl-max: 680px;
	--agl-radius: 16px;
	--agl-radius-m: 12px;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	direction: ltr;
	text-align: left;
}
.agl *, .agl *::before, .agl *::after { box-sizing: border-box; }
.agl.agl--theme-font { font-family: inherit; }

.agl .agl-canvas {
	position: relative;
	z-index: 1;
	width: 100%;
	height: calc(var(--agl-vh) * 1vh);
	min-height: var(--agl-min);
	max-height: var(--agl-max);
	overflow: hidden;
	border-radius: var(--agl-radius);
	background-color: var(--agl-bg);
	-webkit-user-select: none;
	user-select: none;
}
.agl .agl-canvas canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-user-select: none;
	user-select: none;
}
.agl .agl-canvas.agl-static canvas { pointer-events: none; }

.agl .agl-main-title {
	position: absolute;
	top: 40px;
	left: 50%;
	z-index: 5;
	width: 90%;
	max-width: 600px;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translateX(-50%);
	animation: agl-fade-title 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.agl h2.agl-title-brand {
	display: inline-block;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 6px;
	text-transform: none;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	background: linear-gradient(90deg, var(--agl-dark) 30%, var(--agl-brand) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.agl .agl-title-sub {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	color: #444;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 3px;
	line-height: normal;
	text-transform: uppercase;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 1px 4px rgba(0, 0, 0, 0.05);
}
.agl .agl-title-sub::before,
.agl .agl-title-sub::after {
	content: '';
	width: 15px;
	height: 1px;
	margin: 0 10px;
	background: rgba(0, 0, 0, 0.25);
}

.agl .agl-label {
	position: absolute;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 12px;
	border-radius: 4px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: normal;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -100%);
	transition: opacity 0.2s ease, transform 0.1s ease;
}
.agl .agl-label-box {
	padding: 5px 10px;
	border-left: 3px solid var(--agl-brand);
	border-radius: 4px;
	background: var(--agl-dark);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	text-align: left;
}
.agl .agl-label-sub {
	margin-top: 2px;
	color: #aaa;
	font-size: 9px;
	font-weight: 400;
}
.agl .agl-label-arrow {
	width: 0;
	height: 0;
	margin-top: -1px;
	border-top: 6px solid var(--agl-dark);
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
}

.agl .agl-nogl {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: #666;
	font-size: 14px;
	text-align: center;
	direction: rtl;
}

@keyframes agl-fade-title {
	from { opacity: 0; top: 25px; filter: blur(4px); }
	to   { opacity: 1; top: 40px; filter: blur(0); }
}

@media (max-width: 768px) {
	.agl .agl-canvas {
		height: auto;
		min-height: 320px;
		aspect-ratio: 16 / 10;
		border-radius: var(--agl-radius-m);
	}
	.agl .agl-main-title { top: 20px; }
	.agl h2.agl-title-brand { font-size: 16px; letter-spacing: 3px; }
	.agl .agl-title-sub { font-size: 8px; letter-spacing: 2px; }
	.agl .agl-label-box { padding: 4px 8px; font-size: 10px; }
	.agl .agl-label-sub { font-size: 8px; }
	@keyframes agl-fade-title {
		from { opacity: 0; top: 10px; filter: blur(3px); }
		to   { opacity: 1; top: 20px; filter: blur(0); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.agl .agl-main-title { animation: none; opacity: 1; top: 40px; }
}
