.a3ds-root {
	position: relative;
	width: 100%;
}

.a3ds-stage {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	background-color: #000;
}

.a3ds-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* ---------- Loader ---------- */
.a3ds-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(0, 0, 0, 0.6);
	z-index: 20;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.a3ds-loader.is-hidden {
	opacity: 0;
}

.a3ds-loader-bar {
	width: 200px;
	height: 3px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
	overflow: hidden;
}

.a3ds-loader-bar-fill {
	height: 100%;
	width: 0%;
	background: #ffffff;
	transition: width 0.15s ease-out;
}

.a3ds-loader-text {
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.05em;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	opacity: 0.8;
}

/* ---------- Text scenes ---------- */
.a3ds-scenes {
	position: absolute;
	inset: 0;
	z-index: 10;
	pointer-events: none;
}

.a3ds-scene {
	position: absolute;
	transform: translate(-50%, -50%);
	opacity: 0;
	visibility: hidden;
	will-change: transform, opacity, filter;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	pointer-events: none;
}

.a3ds-scene.a3ds-align-left {
	text-align: left;
}
.a3ds-scene.a3ds-align-center {
	text-align: center;
}
.a3ds-scene.a3ds-align-right {
	text-align: right;
}

.a3ds-scene-inner {
	pointer-events: auto;
}

.a3ds-scene-inner > *:first-child {
	margin-top: 0;
}
.a3ds-scene-inner > *:last-child {
	margin-bottom: 0;
}

/* ---------- Editor helper notices ---------- */
.a3ds-empty-notice {
	position: absolute;
	z-index: 30;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: 320px;
	padding: 14px 18px;
	text-align: center;
	background: rgba(255, 255, 255, 0.92);
	color: #1a1a1a;
	font-size: 13px;
	line-height: 1.5;
	border-radius: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.a3ds-empty-notice--top {
	top: 24px;
	transform: translate(-50%, 0);
}

@media (max-width: 767px) {
	.a3ds-scene {
		width: 86% !important;
		left: 50% !important;
	}
}
