/**
 * GW Hero Animation — frontend styles.
 *
 * The container paints a gradient built from the same colours the shader uses.
 * When WebGL is unavailable the script removes the canvas and that gradient is
 * what the visitor sees, so the hero degrades instead of going blank.
 */
.hero_animation {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: var(--ha-min-height, 70vh);
	background-color: var(--ha-background, #1a1917);
	background-image:
		radial-gradient(60% 55% at 22% 28%, var(--ha-color-from, #ffc502) 0%, transparent 60%),
		radial-gradient(55% 50% at 78% 68%, var(--ha-color-to, #8a6200) 0%, transparent 62%);
}

.hero_animation__canvas {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.hero_animation__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-color: rgba(0, 0, 0, var(--ha-overlay, 0.35));
}

.hero_animation__content {
	position: relative;
	z-index: 2;
	width: 100%;
}

/*
 * The canvas keeps whatever frame it last drew; freezing it is handled in JS.
 * This only stops any CSS-side motion from running.
 */
@media (prefers-reduced-motion: reduce) {
	.hero_animation,
	.hero_animation * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
