/* Lumo hello expression: eye-roll overlay. Integrated without changing section layout. */
#hello > .hello-face-animation {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	transition: opacity 90ms linear;
}

#hello[data-expression="neutral"] > .hello-face-animation {
	opacity: 1;
}

/* 翻白眼改为直接播放真实参考视频，点击时视频淡入、假眼 overlay 隐藏 */
#hello > .hello-eyeroll-video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 120ms linear;
}

#hello[data-expression="eyeroll"] > .hello-eyeroll-video {
	opacity: 1;
}

#hello .hello-actions {
	position: absolute;
	bottom: 35px;
	left: 8vw;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 4;
}

#hello .hello-actions .motion-replay {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 45px;
	padding: 12px 22px;
	margin: 0;
	border: 1px solid #bfc4ca;
	border-radius: 30px;
	background: #ffffffc7;
	font-size: 13px;
	line-height: 1.3;
	color: var(--ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: background 160ms, border-color 160ms, color 160ms;
}

/* 悬停只在支持 hover 的设备生效，避免触屏点按后样式残留 */
@media (hover: hover) {
	#hello .hello-actions .motion-replay:hover {
		background: #fff;
		border-color: #838b95;
	}
}

#hello .hello-actions .motion-replay:active {
	transform: scale(0.97);
}

#hello .hello-actions .motion-replay:focus-visible {
	outline: 2px solid #272c32;
	outline-offset: 3px;
}

#hello .hello-actions .motion-replay[aria-pressed="true"] {
	background: #272c32;
	border-color: #272c32;
	color: #fff;
}

#hello .hello-actions .motion-replay:disabled {
	cursor: default;
}

#hello .hello-roll svg {
	width: 19px;
	height: 17px;
	flex: none;
}

@media (max-width: 600px) {
	#hello .hello-actions {
		bottom: 20px;
		left: 7vw;
		gap: 9px;
	}

	#hello .hello-actions .motion-replay {
		padding: 12px 17px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#hello > .hello-face-animation,
	#hello > .hello-eyeroll-video,
	#hello .hello-actions .motion-replay {
		transition: none;
	}

	#hello .hello-actions .motion-replay:active {
		transform: none;
	}
}
