/* =========================================================
   Compteur Belote — styles spécifiques au jeu
   Le design system commun est dans /theme.css.
   Ici : accent rubis, ornement ♥, structures propres à la
   belote (bonus belote/rebelote, historique en liste).
   ========================================================= */

:root {
	--accent: #b6233a;
	--accent-strong: #8e1827;
	--accent-soft: rgba(182, 35, 58, 0.08);
	--accent-ring: rgba(182, 35, 58, 0.22);
	--suit: "♥";
}

@media (prefers-color-scheme: dark) {
	:root {
		--accent: #e5455c;
		--accent-strong: #c43349;
		--accent-soft: rgba(229, 69, 92, 0.12);
		--accent-ring: rgba(229, 69, 92, 0.26);
	}
}

/* =========================================================
   Section Belote/Rebelote (bonus)
   ========================================================= */
.belote-section {
	padding: 18px 20px;
	border-radius: var(--radius-md);
	background: var(--accent-soft);
	border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.belote-section h3 {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent-strong);
	display: flex;
	align-items: center;
	gap: 8px;
}

.belote-section h3::before {
	content: "♥";
	font-size: 1rem;
	color: var(--accent);
}

@media (prefers-color-scheme: dark) {
	.belote-section h3 {
		color: var(--accent);
	}
}

.bonus-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 14px;
}


/* =========================================================
   Historique des donnes (liste verticale)
   ========================================================= */
.round-history {
	max-height: 360px;
	overflow-y: auto;
	padding: 4px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--border-strong) transparent;
}

.round-history::-webkit-scrollbar {
	width: 8px;
}

.round-history::-webkit-scrollbar-track {
	background: transparent;
}

.round-history::-webkit-scrollbar-thumb {
	background: var(--border-strong);
	border-radius: 999px;
}

.history-round {
	position: relative;
	padding: 14px 16px 14px 20px;
	border-radius: var(--radius-md);
	background: var(--surface);
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: border-color 0.2s var(--ease);
}

.history-round::before {
	content: "";
	position: absolute;
	top: 14px;
	bottom: 14px;
	left: 8px;
	width: 3px;
	border-radius: 999px;
	background: var(--border-strong);
}

.history-round.attacking::before {
	background: var(--gold);
}

.history-round.defending::before {
	background: var(--accent);
}

.history-round-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.history-round-header > :first-child {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.history-scores {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-family: var(--mono);
	font-variant-numeric: tabular-nums;
	font-size: 0.9rem;
	color: var(--text);
}

.history-scores > * {
	font-weight: 600;
}

.empty-round-history {
	padding: 20px;
	color: var(--text-muted);
	text-align: center;
}

.history-matchup {
	margin-bottom: 4px;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.history-result {
	margin-top: 4px;
	font-size: 0.8rem;
	color: #059669;
}
