/* Site loader — overlay + 50 presets + exit effects */

.site-loader {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ldr-bg, rgba(8, 12, 18, 0.92));
	color: var(--ldr-color, #5eead4);
	pointer-events: all;
	opacity: 1;
	visibility: visible;
	transition: none;
}

.site-loader[hidden],
.site-loader.is-done {
	display: none !important;
}

html.boot-pending .site-loader.site-loader--boot,
html.boot-pending .site-loader:not(.is-done) {
	display: flex !important;
}

.site-loader.is-exiting {
	pointer-events: none;
}

.site-loader .ldr-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.1rem;
	filter: drop-shadow(var(--ldr-shadow, none));
}

.site-loader .ldr-text {
	margin: 0;
	font: 500 0.95rem/1.3 "Outfit", system-ui, sans-serif;
	letter-spacing: 0.04em;
	color: color-mix(in srgb, var(--ldr-color) 85%, #fff);
	text-align: center;
	max-width: 16rem;
}

.ldr-preset,
.ldr-custom {
	width: var(--ldr-size, 64px);
	height: var(--ldr-size, 64px);
	position: relative;
}

.ldr-custom img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.ldr-custom--spin img { animation: ldr-rot 1.1s linear infinite; }
.ldr-custom--pulse img { animation: ldr-scale-pulse 1.2s ease-in-out infinite; }
.ldr-custom--float img { animation: ldr-float 1.6s ease-in-out infinite; }
.ldr-custom--none img { animation: none; }

/* Shared bits */
.ldr-shape,
.ldr-dots,
.ldr-bars,
.ldr-cube,
.ldr-kaleido,
.ldr-cross,
.ldr-ripple,
.ldr-dna,
.ldr-atom,
.ldr-flower,
.ldr-spiral {
	width: 100%;
	height: 100%;
	position: relative;
	box-sizing: border-box;
}

.ldr-dots { display: flex; align-items: center; justify-content: center; gap: 12%; }
.ldr-dots i {
	width: 22%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--ldr-color);
	display: block;
}
.ldr-bars {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 8%;
	height: 100%;
}
.ldr-bars span {
	flex: 1;
	height: 40%;
	border-radius: 999px;
	background: var(--ldr-color);
	display: block;
}

/* —— Spinners —— */
.ldr-preset--ring .ldr-shape {
	border: 4px solid color-mix(in srgb, var(--ldr-color) 25%, transparent);
	border-top-color: var(--ldr-color);
	border-radius: 50%;
	animation: ldr-rot 0.85s linear infinite;
}
.ldr-preset--dual .ldr-shape {
	border: 4px solid transparent;
	border-top-color: var(--ldr-color);
	border-bottom-color: var(--ldr-accent);
	border-radius: 50%;
	animation: ldr-rot 0.9s linear infinite;
}
.ldr-preset--arc .ldr-shape {
	border: 4px solid transparent;
	border-top-color: var(--ldr-color);
	border-radius: 50%;
	animation: ldr-rot 0.7s cubic-bezier(.5,.15,.5,.85) infinite;
}
.ldr-preset--dashed .ldr-shape {
	border: 4px dashed var(--ldr-color);
	border-radius: 50%;
	animation: ldr-rot 1.4s linear infinite;
}
.ldr-preset--gear .ldr-shape {
	border: 4px dotted var(--ldr-color);
	border-radius: 30%;
	animation: ldr-rot 1.2s steps(8) infinite;
}
.ldr-preset--orbit .ldr-shape {
	border: 2px solid color-mix(in srgb, var(--ldr-color) 35%, transparent);
	border-radius: 50%;
	animation: ldr-rot 1.2s linear infinite;
}
.ldr-preset--orbit .ldr-shape i {
	position: absolute;
	top: -8%;
	left: 50%;
	width: 22%;
	height: 22%;
	margin-left: -11%;
	border-radius: 50%;
	background: var(--ldr-accent);
}
.ldr-preset--concentric .ldr-shape {
	border: 3px solid var(--ldr-color);
	border-radius: 50%;
	animation: ldr-rot 1.5s linear infinite;
}
.ldr-preset--concentric .ldr-shape i {
	position: absolute;
	inset: 18%;
	border: 3px solid var(--ldr-accent);
	border-radius: 50%;
	border-left-color: transparent;
	animation: ldr-rot 0.9s linear infinite reverse;
}
.ldr-preset--concentric .ldr-shape i:last-child {
	inset: 38%;
	border-color: var(--ldr-color);
	border-right-color: transparent;
	animation-duration: 0.6s;
	animation-direction: normal;
}
.ldr-preset--crescent .ldr-shape {
	border-radius: 50%;
	box-shadow: inset -10px 0 0 0 var(--ldr-color);
	animation: ldr-rot 1s linear infinite;
}
.ldr-preset--pie .ldr-shape {
	border-radius: 50%;
	background: conic-gradient(var(--ldr-color) 0 90deg, transparent 90deg);
	animation: ldr-rot 0.95s linear infinite;
	mask: radial-gradient(farthest-side, transparent 58%, #000 60%);
}
.ldr-preset--infinity .ldr-shape {
	border: 4px solid var(--ldr-color);
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	width: 130%;
	margin-left: -15%;
	animation: ldr-rot-y 1.2s linear infinite;
}

/* —— Dots —— */
.ldr-preset--bounce .ldr-dots i { animation: ldr-bounce 0.9s ease-in-out infinite; }
.ldr-preset--bounce .ldr-dots i:nth-child(2) { animation-delay: .12s; background: var(--ldr-accent); }
.ldr-preset--bounce .ldr-dots i:nth-child(3) { animation-delay: .24s; }
.ldr-preset--pulse .ldr-dots i { animation: ldr-dot-pulse 1s ease-in-out infinite; }
.ldr-preset--pulse .ldr-dots i:nth-child(2) { animation-delay: .15s; }
.ldr-preset--pulse .ldr-dots i:nth-child(3) { animation-delay: .3s; }
.ldr-preset--wave .ldr-dots i { animation: ldr-wave 0.8s ease-in-out infinite; }
.ldr-preset--wave .ldr-dots i:nth-child(2) { animation-delay: .1s; background: var(--ldr-accent); }
.ldr-preset--wave .ldr-dots i:nth-child(3) { animation-delay: .2s; }
.ldr-preset--cascade .ldr-dots { flex-direction: column; }
.ldr-preset--cascade .ldr-dots i { animation: ldr-fade-cascade 1s ease-in-out infinite; width: 28%; }
.ldr-preset--cascade .ldr-dots i:nth-child(2) { animation-delay: .15s; }
.ldr-preset--cascade .ldr-dots i:nth-child(3) { animation-delay: .3s; }
.ldr-dots--grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10%;
	padding: 6%;
}
.ldr-dots--grid i {
	width: 100%;
	animation: ldr-dot-pulse 1.1s ease-in-out infinite;
}
.ldr-dots--grid i:nth-child(2) { animation-delay: .08s; }
.ldr-dots--grid i:nth-child(3) { animation-delay: .16s; }
.ldr-dots--grid i:nth-child(4) { animation-delay: .08s; }
.ldr-dots--grid i:nth-child(5) { animation-delay: .16s; background: var(--ldr-accent); }
.ldr-dots--grid i:nth-child(6) { animation-delay: .24s; }
.ldr-dots--grid i:nth-child(7) { animation-delay: .16s; }
.ldr-dots--grid i:nth-child(8) { animation-delay: .24s; }
.ldr-dots--grid i:nth-child(9) { animation-delay: .32s; }
.ldr-dots--orbit {
	position: relative;
}
.ldr-dots--orbit i {
	position: absolute;
	width: 18%;
	top: 50%;
	left: 50%;
	margin: -9% 0 0 -9%;
	transform-origin: center;
	animation: ldr-orbit-dot 1.4s linear infinite;
}
.ldr-dots--orbit i:nth-child(1) { --a: 0deg; }
.ldr-dots--orbit i:nth-child(2) { --a: 90deg; background: var(--ldr-accent); }
.ldr-dots--orbit i:nth-child(3) { --a: 180deg; }
.ldr-dots--orbit i:nth-child(4) { --a: 270deg; }
.ldr-preset--typing .ldr-dots i { animation: ldr-typing 1.2s ease-in-out infinite; }
.ldr-preset--typing .ldr-dots i:nth-child(2) { animation-delay: .2s; }
.ldr-preset--typing .ldr-dots i:nth-child(3) { animation-delay: .4s; }
.ldr-preset--blink .ldr-dots i { animation: ldr-blink 1s steps(2) infinite; }
.ldr-preset--blink .ldr-dots i:nth-child(2) { animation-delay: .2s; background: var(--ldr-accent); }
.ldr-preset--blink .ldr-dots i:nth-child(3) { animation-delay: .4s; }

/* —— Bars —— */
.ldr-preset--eq .ldr-bars span { animation: ldr-eq 0.85s ease-in-out infinite; }
.ldr-preset--eq .ldr-bars span:nth-child(2) { animation-delay: .1s; background: var(--ldr-accent); }
.ldr-preset--eq .ldr-bars span:nth-child(3) { animation-delay: .2s; }
.ldr-preset--eq .ldr-bars span:nth-child(4) { animation-delay: .15s; }
.ldr-preset--eq .ldr-bars span:nth-child(5) { animation-delay: .05s; }
.ldr-preset--progress .ldr-shape {
	height: 18%;
	width: 100%;
	top: 41%;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ldr-color) 20%, transparent);
	overflow: hidden;
}
.ldr-preset--progress .ldr-shape::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 40%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ldr-color), var(--ldr-accent));
	animation: ldr-progress 1.2s ease-in-out infinite;
}
.ldr-preset--stairs .ldr-bars span { animation: ldr-stairs 1s ease-in-out infinite; transform-origin: bottom; }
.ldr-preset--stairs .ldr-bars span:nth-child(n) { animation-delay: calc((var(--i, 0)) * .08s); }
.ldr-preset--stairs .ldr-bars span:nth-child(1) { --i: 0; }
.ldr-preset--stairs .ldr-bars span:nth-child(2) { --i: 1; }
.ldr-preset--stairs .ldr-bars span:nth-child(3) { --i: 2; background: var(--ldr-accent); }
.ldr-preset--stairs .ldr-bars span:nth-child(4) { --i: 3; }
.ldr-preset--stairs .ldr-bars span:nth-child(5) { --i: 4; }
.ldr-preset--metro .ldr-bars { align-items: center; }
.ldr-preset--metro .ldr-bars span {
	height: 14%;
	animation: ldr-metro 1.1s ease-in-out infinite;
}
.ldr-preset--metro .ldr-bars span:nth-child(odd) { background: var(--ldr-accent); }
.ldr-preset--metro .ldr-bars span:nth-child(1) { animation-delay: 0s; }
.ldr-preset--metro .ldr-bars span:nth-child(2) { animation-delay: .08s; }
.ldr-preset--metro .ldr-bars span:nth-child(3) { animation-delay: .16s; }
.ldr-preset--metro .ldr-bars span:nth-child(4) { animation-delay: .24s; }
.ldr-preset--metro .ldr-bars span:nth-child(5) { animation-delay: .32s; }
.ldr-preset--stacked .ldr-bars { flex-direction: column; align-items: stretch; gap: 10%; }
.ldr-preset--stacked .ldr-bars span {
	height: 14%;
	width: 100%;
	animation: ldr-fade-cascade 1.1s ease-in-out infinite;
}
.ldr-preset--stacked .ldr-bars span:nth-child(2) { animation-delay: .1s; background: var(--ldr-accent); }
.ldr-preset--stacked .ldr-bars span:nth-child(3) { animation-delay: .2s; }
.ldr-preset--stacked .ldr-bars span:nth-child(4) { animation-delay: .3s; }
.ldr-preset--stacked .ldr-bars span:nth-child(5) { animation-delay: .4s; }
.ldr-preset--radar .ldr-bars {
	position: relative;
	border-radius: 50%;
	border: 2px solid color-mix(in srgb, var(--ldr-color) 30%, transparent);
	overflow: hidden;
}
.ldr-preset--radar .ldr-bars span {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 50%;
	height: 3px;
	top: 50%;
	left: 50%;
	transform-origin: left center;
	background: linear-gradient(90deg, var(--ldr-color), transparent);
	animation: ldr-radar 1.4s linear infinite;
	flex: none;
}
.ldr-preset--radar .ldr-bars span:nth-child(n+2) { display: none; }
.ldr-preset--zipper .ldr-bars span { animation: ldr-zipper 1s ease-in-out infinite; }
.ldr-preset--zipper .ldr-bars span:nth-child(even) { background: var(--ldr-accent); animation-direction: reverse; }
.ldr-preset--spectrum .ldr-bars span {
	animation: ldr-eq 0.7s ease-in-out infinite;
	background: color-mix(in srgb, var(--ldr-color) calc(20% + 15% * var(--i, 0)), var(--ldr-accent));
}
.ldr-preset--spectrum .ldr-bars span:nth-child(1) { --i: 0; }
.ldr-preset--spectrum .ldr-bars span:nth-child(2) { --i: 1; animation-delay: .05s; }
.ldr-preset--spectrum .ldr-bars span:nth-child(3) { --i: 2; animation-delay: .1s; }
.ldr-preset--spectrum .ldr-bars span:nth-child(4) { --i: 3; animation-delay: .15s; }
.ldr-preset--spectrum .ldr-bars span:nth-child(5) { --i: 4; animation-delay: .2s; }

/* —— Geometric —— */
.ldr-cube {
	transform-style: preserve-3d;
	animation: ldr-cube 1.6s linear infinite;
}
.ldr-cube i {
	position: absolute;
	inset: 18%;
	background: color-mix(in srgb, var(--ldr-color) 70%, transparent);
	border: 1px solid var(--ldr-accent);
}
.ldr-cube i:nth-child(1) { transform: translateZ(calc(var(--ldr-size) * .22)); }
.ldr-cube i:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--ldr-size) * .22)); }
.ldr-cube i:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--ldr-size) * .22)); }
.ldr-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--ldr-size) * .22)); }
.ldr-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--ldr-size) * .22)); }
.ldr-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--ldr-size) * .22)); }
.ldr-preset--flip .ldr-shape {
	background: var(--ldr-color);
	border-radius: 12%;
	animation: ldr-flip 1.1s ease-in-out infinite;
}
.ldr-preset--triangle .ldr-shape {
	width: 0;
	height: 0;
	border-left: calc(var(--ldr-size) * .45) solid transparent;
	border-right: calc(var(--ldr-size) * .45) solid transparent;
	border-bottom: calc(var(--ldr-size) * .75) solid var(--ldr-color);
	margin: 12% auto 0;
	animation: ldr-rot 1.3s linear infinite;
	background: none;
}
.ldr-preset--hex .ldr-shape {
	clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
	background: linear-gradient(135deg, var(--ldr-color), var(--ldr-accent));
	animation: ldr-rot 1.5s linear infinite;
}
.ldr-preset--diamond .ldr-shape {
	transform: rotate(45deg) scale(.7);
	background: var(--ldr-color);
	border-radius: 12%;
	animation: ldr-diamond 1.2s ease-in-out infinite;
}
.ldr-preset--morph .ldr-shape {
	background: var(--ldr-color);
	animation: ldr-morph 1.6s ease-in-out infinite;
}
.ldr-kaleido {
	animation: ldr-rot 2s linear infinite;
}
.ldr-kaleido i {
	position: absolute;
	width: 28%;
	height: 28%;
	border-radius: 30%;
	background: var(--ldr-color);
	top: 50%;
	left: 50%;
	margin: -14% 0 0 -14%;
	transform: rotate(calc(60deg * var(--i, 0))) translateY(-120%);
}
.ldr-kaleido i:nth-child(1) { --i: 0; }
.ldr-kaleido i:nth-child(2) { --i: 1; background: var(--ldr-accent); }
.ldr-kaleido i:nth-child(3) { --i: 2; }
.ldr-kaleido i:nth-child(4) { --i: 3; background: var(--ldr-accent); }
.ldr-kaleido i:nth-child(5) { --i: 4; }
.ldr-kaleido i:nth-child(6) { --i: 5; background: var(--ldr-accent); }
.ldr-cross i {
	position: absolute;
	background: var(--ldr-color);
	border-radius: 4px;
	animation: ldr-cross 1s ease-in-out infinite;
}
.ldr-cross i:first-child { inset: 42% 10%; }
.ldr-cross i:last-child { inset: 10% 42%; background: var(--ldr-accent); animation-delay: .15s; }

/* —— Pulse —— */
.ldr-preset--heart .ldr-shape {
	background: var(--ldr-color);
	transform: rotate(45deg) scale(.55);
	border-radius: 12% 12% 0;
	animation: ldr-heart 0.9s ease-in-out infinite;
}
.ldr-preset--heart .ldr-shape::before,
.ldr-preset--heart .ldr-shape::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background: inherit;
	border-radius: 50%;
}
.ldr-preset--heart .ldr-shape::before { top: -50%; left: 0; }
.ldr-preset--heart .ldr-shape::after { top: 0; left: -50%; }
.ldr-ripple i {
	position: absolute;
	inset: 10%;
	border: 2px solid var(--ldr-color);
	border-radius: 50%;
	animation: ldr-ripple 1.6s ease-out infinite;
	opacity: 0;
}
.ldr-ripple i:nth-child(2) { animation-delay: .4s; border-color: var(--ldr-accent); }
.ldr-ripple i:nth-child(3) { animation-delay: .8s; }
.ldr-preset--aura .ldr-shape {
	border-radius: 50%;
	background: radial-gradient(circle, var(--ldr-color), transparent 70%);
	animation: ldr-aura 1.4s ease-in-out infinite;
}
.ldr-preset--neon .ldr-shape {
	border-radius: 50%;
	border: 3px solid var(--ldr-color);
	box-shadow: 0 0 12px var(--ldr-color), inset 0 0 12px var(--ldr-accent);
	animation: ldr-neon 1.1s ease-in-out infinite;
}
.ldr-preset--breathe .ldr-shape {
	border-radius: 50%;
	background: var(--ldr-color);
	animation: ldr-breathe 1.8s ease-in-out infinite;
}
.ldr-preset--flash .ldr-shape {
	border-radius: 20%;
	background: var(--ldr-accent);
	animation: ldr-flash 0.7s steps(2) infinite;
}

/* —— Creative —— */
.ldr-dna {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.ldr-dna span {
	height: 8%;
	border-radius: 999px;
	background: var(--ldr-color);
	animation: ldr-dna 1.2s ease-in-out infinite;
}
.ldr-dna span:nth-child(even) { background: var(--ldr-accent); animation-direction: reverse; }
.ldr-dna span:nth-child(1) { animation-delay: 0s; }
.ldr-dna span:nth-child(2) { animation-delay: .05s; }
.ldr-dna span:nth-child(3) { animation-delay: .1s; }
.ldr-dna span:nth-child(4) { animation-delay: .15s; }
.ldr-dna span:nth-child(5) { animation-delay: .2s; }
.ldr-dna span:nth-child(6) { animation-delay: .25s; }
.ldr-dna span:nth-child(7) { animation-delay: .3s; }
.ldr-dna span:nth-child(8) { animation-delay: .35s; }
.ldr-atom {
	animation: ldr-rot 2s linear infinite;
}
.ldr-atom i {
	position: absolute;
	inset: 8%;
	border: 2px solid color-mix(in srgb, var(--ldr-color) 55%, transparent);
	border-radius: 50%;
}
.ldr-atom i:nth-child(2) { transform: rotate(60deg); border-color: color-mix(in srgb, var(--ldr-accent) 55%, transparent); }
.ldr-atom i:nth-child(3) { transform: rotate(-60deg); }
.ldr-atom b {
	position: absolute;
	inset: 38%;
	border-radius: 50%;
	background: var(--ldr-color);
	box-shadow: 0 0 12px var(--ldr-accent);
}
.ldr-preset--sat .ldr-shape {
	border: 2px solid color-mix(in srgb, var(--ldr-color) 40%, transparent);
	border-radius: 50%;
	animation: ldr-rot 1.8s linear infinite;
}
.ldr-preset--sat .ldr-shape i {
	position: absolute;
	top: -6%;
	left: 50%;
	width: 18%;
	height: 18%;
	margin-left: -9%;
	border-radius: 20%;
	background: var(--ldr-accent);
	box-shadow: 0 0 8px var(--ldr-accent);
}
.ldr-preset--yinyang .ldr-shape {
	border-radius: 50%;
	background: linear-gradient(90deg, var(--ldr-color) 50%, var(--ldr-accent) 50%);
	animation: ldr-rot 1.4s linear infinite;
	overflow: hidden;
}
.ldr-preset--yinyang .ldr-shape::before,
.ldr-preset--yinyang .ldr-shape::after {
	content: "";
	position: absolute;
	width: 50%;
	height: 50%;
	left: 25%;
	border-radius: 50%;
}
.ldr-preset--yinyang .ldr-shape::before {
	top: 0;
	background: var(--ldr-color);
	box-shadow: inset 0 0 0 6px var(--ldr-accent);
}
.ldr-preset--yinyang .ldr-shape::after {
	bottom: 0;
	background: var(--ldr-accent);
	box-shadow: inset 0 0 0 6px var(--ldr-color);
}
.ldr-flower {
	animation: ldr-rot 3s linear infinite;
}
.ldr-flower i {
	position: absolute;
	width: 34%;
	height: 34%;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ldr-color) 80%, #fff);
	top: 50%;
	left: 50%;
	margin: -17% 0 0 -17%;
	transform: rotate(calc(60deg * var(--i, 0))) translateY(-90%);
}
.ldr-flower i:nth-child(1) { --i: 0; }
.ldr-flower i:nth-child(2) { --i: 1; }
.ldr-flower i:nth-child(3) { --i: 2; }
.ldr-flower i:nth-child(4) { --i: 3; }
.ldr-flower i:nth-child(5) { --i: 4; }
.ldr-flower i:nth-child(6) { --i: 5; }
.ldr-flower b {
	position: absolute;
	inset: 34%;
	border-radius: 50%;
	background: var(--ldr-accent);
}
.ldr-spiral i {
	position: absolute;
	inset: calc(8% + 8% * var(--i, 0));
	border: 2px solid transparent;
	border-top-color: var(--ldr-color);
	border-radius: 50%;
	animation: ldr-rot 1s linear infinite;
	animation-duration: calc(0.7s + 0.2s * var(--i, 0));
}
.ldr-spiral i:nth-child(1) { --i: 0; }
.ldr-spiral i:nth-child(2) { --i: 1; border-top-color: var(--ldr-accent); animation-direction: reverse; }
.ldr-spiral i:nth-child(3) { --i: 2; }
.ldr-spiral i:nth-child(4) { --i: 3; border-top-color: var(--ldr-accent); animation-direction: reverse; }
.ldr-preset--hourglass .ldr-shape {
	clip-path: polygon(10% 0, 90% 0, 55% 50%, 90% 100%, 10% 100%, 45% 50%);
	background: linear-gradient(var(--ldr-color), var(--ldr-accent));
	animation: ldr-hourglass 1.4s ease-in-out infinite;
}
.ldr-preset--book .ldr-shape {
	border: 3px solid var(--ldr-color);
	border-radius: 4px;
	transform-origin: left center;
	animation: ldr-book 1.3s ease-in-out infinite;
	background: color-mix(in srgb, var(--ldr-accent) 30%, transparent);
}
.ldr-preset--rocket .ldr-shape {
	clip-path: polygon(50% 0, 80% 35%, 70% 100%, 30% 100%, 20% 35%);
	background: linear-gradient(180deg, var(--ldr-accent), var(--ldr-color));
	animation: ldr-rocket 1s ease-in-out infinite;
}
.ldr-preset--compass .ldr-shape {
	border: 3px solid var(--ldr-color);
	border-radius: 50%;
	animation: ldr-rot 2.2s linear infinite;
}
.ldr-preset--compass .ldr-shape::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 12%;
	width: 4px;
	height: 40%;
	margin-left: -2px;
	background: linear-gradient(var(--ldr-accent), var(--ldr-color));
	border-radius: 2px;
	transform-origin: bottom center;
}

/* Keyframes */
@keyframes ldr-rot { to { transform: rotate(360deg); } }
@keyframes ldr-rot-y { to { transform: rotateY(360deg); } }
@keyframes ldr-bounce {
	0%, 80%, 100% { transform: translateY(0); opacity: .5; }
	40% { transform: translateY(-55%); opacity: 1; }
}
@keyframes ldr-dot-pulse {
	0%, 100% { transform: scale(.55); opacity: .4; }
	50% { transform: scale(1); opacity: 1; }
}
@keyframes ldr-wave {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-40%); }
}
@keyframes ldr-fade-cascade {
	0%, 100% { opacity: .25; transform: scaleX(.7); }
	50% { opacity: 1; transform: scaleX(1); }
}
@keyframes ldr-orbit-dot {
	from { transform: rotate(var(--a, 0deg)) translateY(calc(var(--ldr-size) * -.38)) rotate(calc(var(--a, 0deg) * -1)); }
	to { transform: rotate(calc(var(--a, 0deg) + 360deg)) translateY(calc(var(--ldr-size) * -.38)) rotate(calc((var(--a, 0deg) + 360deg) * -1)); }
}
@keyframes ldr-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: .35; }
	30% { transform: translateY(-30%); opacity: 1; }
}
@keyframes ldr-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: .15; }
}
@keyframes ldr-eq {
	0%, 100% { height: 30%; }
	50% { height: 95%; }
}
@keyframes ldr-progress {
	0% { transform: translateX(-120%); }
	100% { transform: translateX(280%); }
}
@keyframes ldr-stairs {
	0%, 100% { transform: scaleY(.35); }
	50% { transform: scaleY(1); }
}
@keyframes ldr-metro {
	0%, 100% { transform: scaleX(.4); opacity: .4; }
	50% { transform: scaleX(1); opacity: 1; }
}
@keyframes ldr-radar { to { transform: rotate(360deg); } }
@keyframes ldr-zipper {
	0%, 100% { height: 25%; }
	50% { height: 90%; }
}
@keyframes ldr-cube {
	to { transform: rotateX(360deg) rotateY(360deg); }
}
@keyframes ldr-flip {
	0% { transform: perspective(120px) rotateX(0); }
	50% { transform: perspective(120px) rotateX(180deg); background: var(--ldr-accent); }
	100% { transform: perspective(120px) rotateX(360deg); }
}
@keyframes ldr-diamond {
	0%, 100% { transform: rotate(45deg) scale(.55); }
	50% { transform: rotate(45deg) scale(.85); background: var(--ldr-accent); }
}
@keyframes ldr-morph {
	0%, 100% { border-radius: 50%; transform: scale(1); }
	33% { border-radius: 12%; transform: scale(.85) rotate(20deg); background: var(--ldr-accent); }
	66% { border-radius: 30% 70%; transform: scale(1.05) rotate(-10deg); }
}
@keyframes ldr-cross {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(.65); opacity: .55; }
}
@keyframes ldr-heart {
	0%, 100% { transform: rotate(45deg) scale(.5); }
	50% { transform: rotate(45deg) scale(.72); }
}
@keyframes ldr-ripple {
	0% { transform: scale(.2); opacity: .8; }
	100% { transform: scale(1.2); opacity: 0; }
}
@keyframes ldr-aura {
	0%, 100% { transform: scale(.7); opacity: .55; }
	50% { transform: scale(1.15); opacity: 1; }
}
@keyframes ldr-neon {
	0%, 100% { box-shadow: 0 0 8px var(--ldr-color); transform: scale(1); }
	50% { box-shadow: 0 0 28px var(--ldr-accent), 0 0 48px var(--ldr-color); transform: scale(1.08); }
}
@keyframes ldr-breathe {
	0%, 100% { transform: scale(.65); opacity: .5; }
	50% { transform: scale(1); opacity: 1; }
}
@keyframes ldr-flash {
	0%, 100% { opacity: 1; }
	50% { opacity: .2; }
}
@keyframes ldr-dna {
	0%, 100% { transform: scaleX(.35); opacity: .45; }
	50% { transform: scaleX(1); opacity: 1; }
}
@keyframes ldr-hourglass {
	0%, 100% { transform: rotate(0deg) scaleY(1); }
	50% { transform: rotate(180deg) scaleY(.9); }
}
@keyframes ldr-book {
	0%, 100% { transform: perspective(200px) rotateY(0); }
	50% { transform: perspective(200px) rotateY(-70deg); }
}
@keyframes ldr-rocket {
	0%, 100% { transform: translateY(8%); }
	50% { transform: translateY(-10%); }
}
@keyframes ldr-scale-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}
@keyframes ldr-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10%); }
}

/* Exit animations on overlay */
.site-loader.ldr-exit-fade.is-exiting { animation: ldr-exit-fade .45s ease forwards; }
.site-loader.ldr-exit-scale.is-exiting { animation: ldr-exit-scale .45s ease forwards; }
.site-loader.ldr-exit-blur.is-exiting { animation: ldr-exit-blur .5s ease forwards; }
.site-loader.ldr-exit-slide-up.is-exiting { animation: ldr-exit-slide-up .5s ease forwards; }
.site-loader.ldr-exit-slide-down.is-exiting { animation: ldr-exit-slide-down .5s ease forwards; }
.site-loader.ldr-exit-wipe.is-exiting { animation: ldr-exit-wipe .55s ease forwards; }
.site-loader.ldr-exit-zoom-blur.is-exiting { animation: ldr-exit-zoom-blur .55s ease forwards; }

@keyframes ldr-exit-fade { to { opacity: 0; } }
@keyframes ldr-exit-scale { to { opacity: 0; transform: scale(1.08); } }
@keyframes ldr-exit-blur { to { opacity: 0; filter: blur(12px); } }
@keyframes ldr-exit-slide-up { to { opacity: 0; transform: translateY(-12%); } }
@keyframes ldr-exit-slide-down { to { opacity: 0; transform: translateY(12%); } }
@keyframes ldr-exit-wipe {
	to { clip-path: inset(0 0 100% 0); opacity: 0; }
}
@keyframes ldr-exit-zoom-blur {
	to { opacity: 0; transform: scale(1.25); filter: blur(16px); }
}

/* Admin preview */
.loader-preview {
	min-height: 160px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.08);
}
.loader-preview .site-loader {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.loader-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: .6rem;
	max-height: 320px;
	overflow: auto;
	padding: .25rem;
}
.loader-picker__item {
	appearance: none;
	border: 1px solid rgba(255,255,255,.12);
	background: rgba(0,0,0,.35);
	border-radius: 10px;
	padding: .45rem .35rem .5rem;
	cursor: pointer;
	color: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
	min-height: 92px;
}
.loader-picker__item.is-selected {
	border-color: var(--accent, #5eead4);
	box-shadow: 0 0 0 1px var(--accent, #5eead4);
}
.loader-picker__item .ldr-preset {
	width: 36px;
	height: 36px;
	--ldr-size: 36px;
	--ldr-color: #5eead4;
	--ldr-accent: #38bdf8;
}
.loader-picker__item span {
	font-size: .68rem;
	text-align: center;
	line-height: 1.2;
	opacity: .85;
}
.loader-pages {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: .4rem .75rem;
	margin-top: .5rem;
}
.loader-pages label {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .9rem;
}
.loader-source-tabs {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin-bottom: .75rem;
}
.loader-source-tabs button.is-active {
	outline: 2px solid var(--accent, #5eead4);
}
@media (prefers-reduced-motion: reduce) {
	.site-loader *,
	.loader-preview * {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
