/* Checkers-specific styles: turn indicator overlay. */

/* Turn indicator: an overlay chip in the top-left of the game stage on
   desktop, showing whose turn it is with a mini checker piece. */
.checkers-turn {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	z-index: 5;
	pointer-events: none;
	user-select: none;
}

.checkers-turn-piece {
	width: 22px;
	height: 22px;
	display: block;
}

/* On mobile, center the indicator at the top of the game area. */
@media (max-width: 600px) {
	.checkers-turn {
		left: 50%;
		transform: translateX(-50%);
	}
}

/* Winner overlay: a centered chip announcing the winner with a mini king
   piece and a Replay button. Shown when the game ends. */
.checkers-winner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 22px;
	background: rgba(0, 0, 0, 0.72);
	border: 2px solid rgba(255, 215, 0, 0.6);
	border-radius: 12px;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	z-index: 6;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
	white-space: nowrap;
	user-select: none;
}

.checkers-winner[hidden] {
	display: none;
}

.checkers-winner-piece {
	width: 26px;
	height: 26px;
	display: block;
}

.checkers-winner-label {
	line-height: 1;
}

.checkers-replay {
	background: gold;
	color: #222;
	border-color: goldenrod;
	border-style: outset;
	font-weight: 600;
}

.checkers-replay:hover {
	background: #ffd700;
}

.checkers-replay:active {
	border-style: inset;
}

