* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	padding: 40px;
	text-align: center;
	max-width: 500px;
	width: 100%;
}

h1 {
	color: #333;
	margin-bottom: 30px;
	font-size: 2.5em;
}

.game-mode {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	justify-content: center;
}

.mode-btn {
	padding: 10px 20px;
	border: 2px solid #667eea;
	background: white;
	color: #667eea;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1em;
	font-weight: 600;
	transition: all 0.3s ease;
}

.mode-btn:hover {
	transform: translateY(-2px);
}

.mode-btn.active {
	background: #667eea;
	color: white;
}

.game-info {
	margin-bottom: 25px;
}

.status {
	font-size: 1.5em;
	color: #333;
	font-weight: 600;
	margin-bottom: 15px;
}

.scores {
	display: flex;
	justify-content: space-around;
	gap: 20px;
	font-size: 1.1em;
	color: #666;
}

.scores span {
	font-weight: 500;
}

.scores span span {
	color: #667eea;
	font-weight: 700;
}

.game-board {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 30px;
	background: #f0f0f0;
	padding: 10px;
	border-radius: 10px;
}

.cell {
	width: 100px;
	height: 100px;
	background: white;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 2.5em;
	font-weight: bold;
	color: #667eea;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	user-select: none;
}

.cell:hover {
	background: #f9f9f9;
	transform: scale(1.05);
}

.cell.x {
	color: #667eea;
}

.cell.o {
	color: #764ba2;
}

.cell.disabled {
	cursor: not-allowed;
}

.button-group {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.btn {
	padding: 12px 30px;
	font-size: 1em;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
}

.reset-btn {
	background: #667eea;
	color: white;
}

.reset-btn:hover {
	background: #5568d3;
	transform: translateY(-2px);
}

.clear-btn {
	background: #e74c3c;
	color: white;
}

.clear-btn:hover {
	background: #c0392b;
	transform: translateY(-2px);
}

.btn:active {
	transform: translateY(0);
}

@media (max-width: 480px) {
	.container {
		padding: 20px;
	}

	h1 {
		font-size: 1.8em;
		margin-bottom: 20px;
	}

	.cell {
		width: 80px;
		height: 80px;
		font-size: 2em;
	}

	.scores {
		flex-direction: column;
		gap: 10px;
		font-size: 0.9em;
	}

	.game-mode {
		flex-direction: column;
	}

	.mode-btn {
		width: 100%;
	}
}
