.lotto-winners-slider {
	--lotto-primary: #B5832C;
	--lotto-secondary: #E5BB7E;
	--lotto-text: #24201b;
	--lotto-muted: #7b746c;
	--lotto-border: #ebe2d4;
	--lotto-soft: #fcf7ef;
	--lotto-card: #ffffff;
	width: 100%;
	font-family: inherit;
}

/* Slider structure */
.lotto-winners-viewport {
	width: 100%;
	overflow: hidden;
	padding: 4px;
	margin: -4px;
}

.lotto-winners-track {
	display: flex;
	gap: 24px;
	transition: transform 450ms ease;
	will-change: transform;
}

.lotto-winners-slide {
	flex: 0 0 calc((100% - 48px) / 3);
	min-width: 0;
}

/* Winner card */
.lotto-winner-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--lotto-border);
	border-radius: 18px;
	background: var(--lotto-card);
	box-shadow: 0 8px 26px rgba(56, 42, 22, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.lotto-winner-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px rgba(56, 42, 22, 0.14);
}

.lotto-winner-card-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0;
}

/* Win badge and date */
.lotto-winner-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--lotto-border);
	background: #ffffff;
}

.lotto-prize-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 10px;
	border-radius: 6px;
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.09em;
	line-height: 1;
	text-transform: uppercase;
}

.lotto-prize-badge--quick5 {
	background: #42912b;
}

.lotto-prize-badge--big10 {
	background: #9d333f;
}

.lotto-prize-badge--magic15 {
	background: #18466b;
}

.lotto-win-date {
	color: var(--lotto-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	text-align: right;
	white-space: nowrap;
}

/* Image */
.lotto-winner-photo-wrap {
	position: relative;
	width: auto;
	aspect-ratio: 4 / 3;
	margin: 16px 16px 0;
	overflow: hidden;
	border-radius: 12px;
	background: #eee4d5;
}

.lotto-winner-photo-wrap::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 56%,
		rgba(0, 0, 0, 0.17) 100%
	);
	pointer-events: none;
}

.lotto-winner-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lotto-winner-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	background: linear-gradient(135deg, #d7ad68, var(--lotto-primary));
	font-size: 52px;
	font-weight: 800;
}

/* Name and country */
.lotto-winner-identity {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 7px;
	padding: 18px 16px;
}

.lotto-winner-name {
	margin: 0;
	color: var(--lotto-text);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.lotto-winner-country {
	max-width: 100%;
	padding-left: 8px;
	border-left: 1px solid #cfc6b8;
	color: var(--lotto-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	word-break: break-word;
}

/* Winner combination and prize */
.lotto-bottom-row {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: auto;
	padding: 17px 16px 18px;
	border-top: 1px solid var(--lotto-border);
	background: var(--lotto-soft);
}

.lotto-combination-block {
	text-align: center;
}

.lotto-combination-label {
	margin: 0 0 10px;
	color: #8a672f;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.11em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.lotto-balls {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.lotto-ball {
	--ball-colour: #333333;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 50%;
	background:
		radial-gradient(circle at 31% 22%, rgba(255, 255, 255, 0.74) 0 7%, transparent 8%),
		radial-gradient(circle at 67% 78%, rgba(0, 0, 0, 0.16) 0 27%, transparent 28%),
		var(--ball-colour);
	box-shadow:
		inset -2px -3px 5px rgba(0, 0, 0, 0.2),
		0 2px 4px rgba(0, 0, 0, 0.12);
}

.lotto-ball::before {
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	content: "";
	background: #ffffff;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.11);
}

.lotto-ball span {
	position: relative;
	z-index: 1;
	color: #151515;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
}

.lotto-prize-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid rgba(181, 131, 44, 0.22);
}

.lotto-prize-amount {
	margin: 0;
	color: var(--lotto-primary);
	font-size: 23px;
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1;
	text-align: right;
}

.lotto-prize-text {
	display: block;
	color: var(--lotto-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
}

/* Slider navigation */
.lotto-winners-slider-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}

.lotto-slider-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(181, 131, 44, 0.35);
	border-radius: 50%;
	color: var(--lotto-primary);
	background: #ffffff;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lotto-slider-button:hover {
	transform: translateY(-2px);
	color: #ffffff;
	background: var(--lotto-primary);
}

.lotto-slider-button:focus-visible {
	outline: 3px solid rgba(229, 187, 126, 0.65);
	outline-offset: 2px;
}

.lotto-slider-button[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.lotto-slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 16px;
}

.lotto-slider-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #d9d1c6;
	cursor: pointer;
	transition: width 180ms ease, background 180ms ease;
}

.lotto-slider-dot.is-active {
	width: 24px;
	background: var(--lotto-primary);
}

.lotto-slider-dot:focus-visible {
	outline: 3px solid rgba(229, 187, 126, 0.65);
	outline-offset: 2px;
}

.lotto-winners-empty {
	width: 100%;
	padding: 24px;
	border: 1px dashed var(--lotto-border);
	border-radius: 14px;
	color: var(--lotto-muted);
	text-align: center;
}

/* Responsive slides */
@media (max-width: 1024px) {
	.lotto-winners-slide {
		flex-basis: calc((100% - 24px) / 2);
	}
}

@media (max-width: 650px) {
	.lotto-winners-track {
		gap: 16px;
	}

	.lotto-winners-slide {
		flex-basis: 100%;
	}

	.lotto-winner-name {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lotto-winners-track,
	.lotto-winner-card,
	.lotto-slider-button,
	.lotto-slider-dot {
		transition: none;
	}
}