/**
 * Amy Agent — Avatar landing (Submit Your Idea Phase 1).
 * Uses CSS custom properties from .amy-submit-idea.
 */

#amy-avatar-mount {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.75rem;
	padding: 3rem 1rem;
}

.amy-avatar-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.amy-avatar-wrap.is-leaving {
	opacity: 0;
	transform: scale(1.06);
	pointer-events: none;
}

.amy-avatar-stage {
	position: relative;
	width: min(62vw, 260px);
	aspect-ratio: 1 / 1;
}

.amy-avatar-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.amy-avatar-shadow {
	position: absolute;
	left: 50%;
	bottom: -4%;
	width: 58%;
	height: 14%;
	transform: translate(-50%, 0);
	background: radial-gradient(ellipse at center, rgba(255, 210, 122, 0.35) 0%, rgba(255, 210, 122, 0) 72%);
	filter: blur(4px);
	pointer-events: none;
}

.amy-avatar-start-btn {
	appearance: none;
	border-radius: 0.7rem;
	border: 1px solid var(--amy-accent);
	background: linear-gradient(145deg, var(--amy-accent-soft), var(--amy-accent));
	color: #0a0a0a;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.75rem 2rem;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.amy-avatar-start-btn:hover:not(:disabled),
.amy-avatar-start-btn:focus-visible:not(:disabled) {
	background: linear-gradient(145deg, #fff3d6, var(--amy-accent));
	border-color: var(--amy-accent-soft);
	box-shadow: 0 0 18px rgba(var(--amy-brand-rgb), 0.35);
	outline: none;
}

.amy-avatar-start-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
	.amy-avatar-wrap {
		transition: opacity 0.3s ease;
	}
	.amy-avatar-wrap.is-leaving {
		transform: none;
	}
}
