/* ...existing code... */

.match-history-content {
	max-width: 420px;
	width: 95vw;
}

#match-history-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.7);
	align-items: center;
	justify-content: center;
	z-index: 3100;
}

#match-history-modal[style*="flex"] {
	display: flex !important;
}

#match-history-list {
	max-height: 320px;
	overflow-y: auto;
	padding: 0 8px;
}

.match-history-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	font-size: 1rem;
}

.match-history-item:last-child {
	border-bottom: none;
}

.match-history-item .opponentName {
	color: #4a90e2;
	font-weight: bold;
}

.match-history-item .color {
	color: #888;
}

.match-history-item .result {
	font-weight: bold;
	padding: 2px 8px;
	border-radius: 12px;
	margin-left: 8px;
}

.match-history-item .result.win {
	background: #d4edda;
	color: #155724;
}

.match-history-item .result.loss {
	background: #f8d7da;
	color: #721c24;
}

.match-history-item .review-btn {
	background: #4a90e2;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 4px 12px;
	cursor: pointer;
	font-size: 0.95rem;
	margin-left: 10px;
	transition: background 0.2s;
}

.match-history-item .review-btn:hover {
	background: #3678c5;
}