/* [octagon_keep_indicator] — bát giác vẽ cạnh tuần tự (GSAP) */
.oo-root {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2.5rem 1rem;
	border-radius: var(--border-radius-lg);
	overflow: hidden;
}

.oo-stage {
	position: relative;
	width: var(--oo-stage-size, 80dvh);
	max-width: 100%;
	aspect-ratio: 380 / 340;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 560px) {
	.oo-stage {
		max-width: 120%;
	}
}

.oo-svg {
	position: absolute;
	inset: 0;
	width: 96%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	transform: translate(-50%, -50%);
	left: 50%;
	top: 50%;
}

.oo-root .ctrl {
	display: flex;
	gap: 8px;
	padding: 1.2rem 0 0;
	flex-wrap: wrap;
	justify-content: center;
}

.oo-root .cbtn {
	font-size: 12px;
	padding: 5px 14px;
	border-radius: var(--border-radius-md);
	border: 0.5px solid var(--color-border-secondary);
	background: transparent;
	color: var(--color-text-primary);
	cursor: pointer;
}

.oo-root .cbtn:hover {
	background: var(--color-background-secondary);
}

.oo-root .step-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	padding-top: 0.8rem;
}

.oo-root .sbtn {
	font-size: 11px;
	padding: 4px 10px;
	border-radius: var(--border-radius-md);
	border: 0.5px solid var(--color-border-tertiary);
	background: transparent;
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.oo-root .sbtn:hover {
	background: var(--color-background-secondary);
}

.oo-root .sbtn.done {
	border-color: #c8a05a;
	color: #c8a05a;
	background: rgba(200, 160, 90, 0.08);
}

.oo-root .sbtn.active {
	border-color: #c8a05a;
	color: #180e08;
	background: #c8a05a;
}

[data-oo-sides-2] {
	transform: scale(0.98);
    transform-origin: center;
}
