* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
		Ubuntu, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.screen {
	display: none;
	background: white;
	border-radius: 20px;
	padding: 40px;
	max-width: 900px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: fadeIn 0.3s ease;
}

.screen.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 시작 화면 */
#start-screen {
	text-align: center;
}

#start-screen h1 {
	font-size: 3em;
	margin-bottom: 20px;
	color: #667eea;
}

#start-screen p {
	font-size: 1.2em;
	color: #666;
	margin-bottom: 15px;
}

.participant-count {
	font-size: 1em !important;
	color: #999;
}

.btn-primary,
.btn-secondary {
	padding: 15px 40px;
	font-size: 1.2em;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	margin: 10px;
	transition: all 0.3s ease;
	font-weight: 600;
}

.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
	background: white;
	color: #667eea;
	border: 2px solid #667eea;
}

.btn-secondary:hover {
	background: #f8f9ff;
	transform: translateY(-2px);
}

/* 게임 화면 */
.game-header {
	text-align: center;
	margin-bottom: 40px;
}

#round-title {
	font-size: 2em;
	color: #667eea;
	margin-bottom: 15px;
}

.progress-bar {
	width: 100%;
	height: 10px;
	background: #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 10px;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	transition: width 0.3s ease;
}

#match-info {
	color: #666;
	font-size: 1.1em;
}

.food-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.food-card {
	flex: 1;
	text-align: center;
	padding: 30px;
	border-radius: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	background: #f8f9ff;
	border: 3px solid transparent;
}

.food-card:hover {
	transform: scale(1.05);
	border-color: #667eea;
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.food-card img {
	width: 100%;
	max-width: 250px;
	height: 250px;
	object-fit: cover;
	border-radius: 15px;
	margin-bottom: 20px;
}

.food-card h3 {
	font-size: 1.5em;
	color: #333;
}

.vs {
	font-size: 2em;
	font-weight: bold;
	color: #667eea;
	flex-shrink: 0;
}

/* 결과 화면 */
#result-screen {
	text-align: center;
}

#result-screen h2 {
	font-size: 2.5em;
	color: #667eea;
	margin-bottom: 30px;
}

.winner-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 40px;
	border-radius: 20px;
	margin-bottom: 40px;
}

.winner-card img {
	width: 100%;
	max-width: 300px;
	height: 300px;
	object-fit: cover;
	border-radius: 15px;
	margin-bottom: 20px;
	border: 5px solid white;
}

.winner-card h3 {
	font-size: 2em;
	color: white;
}

.restaurant-section {
	background: #f8f9ff;
	padding: 30px;
	border-radius: 15px;
	margin-bottom: 30px;
}

.restaurant-section h3 {
	color: #667eea;
	margin-bottom: 20px;
	font-size: 1.5em;
}

.restaurant-item {
	background: white;
	padding: 15px 20px;
	margin: 10px 0;
	border-radius: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.restaurant-item span {
	font-size: 1.1em;
	color: #333;
}

.btn-map {
	padding: 8px 20px;
	background: #667eea;
	color: white;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	font-size: 0.9em;
	transition: all 0.3s ease;
}

.btn-map:hover {
	background: #764ba2;
}

/* 통계 화면 */
#stats-screen h2 {
	text-align: center;
	font-size: 2.5em;
	color: #667eea;
	margin-bottom: 20px;
}

.total-games {
	text-align: center;
	font-size: 1.3em;
	color: #666;
	margin-bottom: 30px;
}

.stats-section {
	background: #f8f9ff;
	padding: 25px;
	border-radius: 15px;
	margin-bottom: 25px;
}

.stats-section h3 {
	color: #667eea;
	margin-bottom: 20px;
	font-size: 1.5em;
}

.stat-item {
	background: white;
	padding: 15px 20px;
	margin: 10px 0;
	border-radius: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-rank {
	font-size: 1.5em;
	font-weight: bold;
	color: #667eea;
	width: 40px;
}

.stat-name {
	flex: 1;
	font-size: 1.1em;
	color: #333;
}

.stat-count {
	font-size: 1.2em;
	font-weight: bold;
	color: #764ba2;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.screen {
		padding: 20px;
	}

	#start-screen h1 {
		font-size: 2em;
	}

	.food-container {
		flex-direction: column;
	}

	.vs {
		transform: rotate(90deg);
		margin: 10px 0;
	}

	.food-card img {
		max-width: 200px;
		height: 200px;
	}

	.winner-card img {
		max-width: 250px;
		height: 250px;
	}
}
