/* 自定义动画和样式 */
@keyframes pulse {
	50% {
		opacity: .6;
		transform: scale(1.1);
	}
}

.current-turn-indicator {
	animation: pulse 2s infinite;
}

.board-cell {
	width: 100%;
	height: 100%;
	transition: all 0.3s ease-in-out;
	aspect-ratio: 1/1;
}

.board-cell.winning-cell iconify-icon {
	transform: scale(1.1);
	color: #34d399;
	/* 胜利时的颜色 */
}

.board-cell:hover:not(.empty-cell) {
	cursor: not-allowed;
}

/* 棋子图标样式 */
.piece-icon {
	font-size: clamp(3rem, 10vw, 4rem);
	stroke-width: 8;
	stroke-linecap: round;
}

/* 胜利划线路径样式 */
#winning-path {
	stroke: #34d399;
	stroke-width: 5;
	stroke-linecap: round;
	fill: none;
}

#board-container {
	width: 100%;
	max-width: 360px;
	height: auto;
	aspect-ratio: 1/1;
	margin: 0 auto;
}

@media (min-width: 768px) {
	#board-container {
		max-width: 400px;
	}

	.piece-icon {
		font-size: 4.5rem;
	}
}

.control-panel {
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 0.5rem;
	padding: 1rem;
	margin-top: 1rem;
}

.auto-eve-controls {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.progress-container {
	width: 100%;
	background-color: #374151;
	border-radius: 0.5rem;
	overflow: hidden;
	margin-top: 0.5rem;
}

.progress-bar {
	height: 0.5rem;
	background-color: #10b981;
	width: 0%;
	transition: width 0.3s ease;
}

.hidden {
	display: none;
}

/* Mobile responsiveness for neural network visualizations */
@media (max-width: 768px) {

	#ai-visualization-left,
	#ai-visualization-right {
		display: none !important;
		/* Hide on small screens */
	}

	#main-layout {
		flex-direction: column;
	}
}
