body {
	font-family: 'Microsoft YaHei', Arial, sans-serif;
	margin: 0;
	padding: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.game-container {
	background: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	padding: 20px;
	margin: 20px;
}

h1 {
	text-align: center;
	color: #333;
	margin-bottom: 20px;
	font-size: 2.5em;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 10px;
	border: 2px solid #e9ecef;
}

.player-info {
	display: flex;
	align-items: center;
	font-size: 1.2em;
	font-weight: bold;
}

.player-stone {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	margin-right: 10px;
	border: 2px solid #333;
	display: inline-block;
}

.black-stone {
	background: #000;
}

.white-stone {
	background: #fff;
}

.current-player {
	color: #007bff;
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0.7;
	}

	100% {
		opacity: 1;
	}
}

.game-status {
	text-align: center;
	font-size: 1.1em;
	color: #666;
	margin: 0 20px;
}

#gameCanvas {
	border: 3px solid #333;
	border-radius: 10px;
	cursor: crosshair;
	display: block;
	margin: 0 auto;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.controls {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
}

.btn {
	padding: 12px 24px;
	font-size: 1em;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn-primary {
	background: linear-gradient(45deg, #007bff, #0056b3);
	color: white;
}

.btn-secondary {
	background: linear-gradient(45deg, #6c757d, #495057);
	color: white;
}

.btn-success {
	background: linear-gradient(45deg, #28a745, #1e7e34);
	color: white;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:active {
	transform: translateY(0);
}

.stats {
	display: flex;
	justify-content: space-around;
	margin-top: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 10px;
	border: 2px solid #e9ecef;
}

.stat-item {
	text-align: center;
}

.stat-label {
	font-size: 0.9em;
	color: #666;
	margin-bottom: 5px;
}

.stat-value {
	font-size: 1.5em;
	font-weight: bold;
	color: #333;
}

.winner-announcement {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 30px;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	text-align: center;
	z-index: 1000;
	display: none;
}

.winner-announcement h2 {
	color: #28a745;
	margin-bottom: 20px;
	font-size: 2em;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999;
	display: none;
}

@media (max-width: 768px) {
	.game-container {
		margin: 10px;
		padding: 15px;
	}

	h1 {
		font-size: 2em;
	}

	.game-info {
		flex-direction: column;
		gap: 10px;
	}

	#gameCanvas {
		max-width: 100%;
		height: auto;
	}
}