/* Big Wins Listicle: front end */

.bwl-listicle {
	--bwl-accent: #00ff7c;
	--bwl-accent-strong: #007755;
	--bwl-accent-soft: #dfffe9;
	--bwl-ink: #050706;
	--bwl-muted: #5f6864;
	--bwl-divider: #e4ebe7;
	--bwl-border: #e7eee9;
	--bwl-star: #f5a623;
	--bwl-star-empty: #d5ddd9;
	--bwl-radius: 18px;

	color: var(--bwl-ink);
	container-type: inline-size;
	font-family: "Inter", "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-feature-settings: "ss01", "cv02";
	margin: 32px auto;
	max-width: 980px;
	width: 100%;
}

.bwl-listicle *,
.bwl-listicle *::before,
.bwl-listicle *::after {
	box-sizing: border-box;
}

.bwl-listicle--empty {
	border: 1px dashed var(--bwl-divider);
	border-radius: var(--bwl-radius);
	color: var(--bwl-muted);
	padding: 32px;
	text-align: center;
}

/* Theme list styles are overridden so every row renders the same everywhere. */
.bwl-listicle .bwl-listicle__items {
	display: grid;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bwl-listicle .bwl-card {
	--bwl-gap: 22px;

	align-items: center;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 255, 244, 0.86)),
		radial-gradient(ellipse at 0% 0%, rgba(0, 255, 124, 0.1), transparent 52%),
		#f7fff9;
	border: 1px solid var(--bwl-border);
	border-radius: var(--bwl-radius);
	box-shadow: 0 1px 2px rgba(9, 51, 44, 0.05), 0 12px 30px rgba(9, 51, 44, 0.1);
	display: grid;
	gap: 14px calc(var(--bwl-gap) * 2);
	grid-template-columns: auto minmax(120px, 170px) minmax(0, 1fr) auto;
	list-style: none;
	margin: 0;
	padding: 18px var(--bwl-gap);
}

.bwl-listicle .bwl-card::before,
.bwl-listicle .bwl-card::marker {
	content: none;
}

/* Rank: gold, silver and bronze for the top three */

.bwl-rank {
	align-items: center;
	background: var(--bwl-accent-soft);
	border: 1px solid #bfe9cf;
	border-radius: 999px;
	color: #09332c;
	display: flex;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	height: 30px;
	justify-content: center;
	line-height: 1;
	margin-right: calc(var(--bwl-gap) * -1);
	width: 30px;
}

.bwl-card:nth-child(1) .bwl-rank {
	background: linear-gradient(145deg, #fff3b0, #f6cf4a);
	border-color: #e2b93b;
	color: #4a3500;
}

.bwl-card:nth-child(2) .bwl-rank {
	background: linear-gradient(145deg, #f8fafc, #d5dce4);
	border-color: #c0c9d3;
	color: #334155;
}

.bwl-card:nth-child(3) .bwl-rank {
	background: linear-gradient(145deg, #fbe3c8, #e3a66a);
	border-color: #d39355;
	color: #5a2f06;
}

/* Logo and rating */

.bwl-brand {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.bwl-listicle .bwl-logo {
	border-radius: 0;
	box-shadow: none;
	display: block;
	height: 52px;
	margin: 0;
	max-width: 100%;
	object-fit: contain;
	width: 160px;
}

.bwl-listicle .bwl-logo--text {
	align-items: center;
	display: flex;
	font-size: 20px;
	font-weight: 800;
	justify-content: center;
	letter-spacing: -0.01em;
	line-height: 1.15;
	overflow-wrap: anywhere;
	text-align: center;
}

.bwl-rating {
	align-items: center;
	display: flex;
	gap: 7px;
	line-height: 1;
}

.bwl-rating__value {
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

/* Five rounded stars drawn by a repeating mask; the gradient fills them up to the rating. */
.bwl-rating__stars {
	--bwl-star-size: 17px;
	--bwl-star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.6l2.5 5.2 5.7.8-4.1 4 1 5.7-5.1-2.7-5.1 2.7 1-5.7-4.1-4 5.7-.8z' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E");

	background: linear-gradient(90deg, var(--bwl-star) var(--bwl-rating, 0%), var(--bwl-star-empty) var(--bwl-rating, 0%));
	flex: none;
	height: var(--bwl-star-size);
	-webkit-mask: var(--bwl-star-shape) 0 0 / var(--bwl-star-size) var(--bwl-star-size) repeat-x;
	mask: var(--bwl-star-shape) 0 0 / var(--bwl-star-size) var(--bwl-star-size) repeat-x;
	width: calc(var(--bwl-star-size) * 5);
}

/* Welcome bonus, with a divider on each side */

.bwl-promo {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: center;
	min-width: 0;
	position: relative;
	text-align: center;
}

.bwl-promo::before,
.bwl-promo::after {
	background: var(--bwl-divider);
	bottom: 4px;
	content: "";
	position: absolute;
	top: 4px;
	width: 1px;
}

.bwl-promo::before {
	left: calc(var(--bwl-gap) * -1);
}

.bwl-promo::after {
	right: calc(var(--bwl-gap) * -1);
}

.bwl-promo:last-child::after {
	content: none;
}

.bwl-promo__label {
	color: var(--bwl-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

.bwl-promo__title {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.005em;
	line-height: 1.3;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

/* CTA */

.bwl-listicle .bwl-cta {
	align-items: center;
	background: linear-gradient(180deg, #0aa873 0%, #007755 52%, #005f45 100%);
	border: 1px solid #006246;
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 14px rgba(0, 61, 49, 0.26);
	color: #fff;
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: -0.005em;
	line-height: 1;
	min-height: 46px;
	padding: 12px 28px;
	text-align: center;
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(0, 61, 49, 0.35);
	transition: filter 0.18s ease, transform 0.15s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.bwl-listicle .bwl-cta:hover,
.bwl-listicle .bwl-cta:focus {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(0, 61, 49, 0.34);
	color: #fff;
	filter: brightness(1.08);
	text-decoration: none;
	transform: translateY(-1px);
}

.bwl-listicle .bwl-cta:active {
	filter: brightness(0.97);
	transform: translateY(0);
}

.bwl-listicle .bwl-cta:focus-visible {
	outline: 3px solid rgba(0, 255, 124, 0.42);
	outline-offset: 2px;
}

/* Narrow content columns */

@container (max-width: 760px) {
	.bwl-listicle .bwl-card {
		--bwl-gap: 14px;

		grid-template-columns: auto minmax(100px, 128px) minmax(0, 1fr) auto;
		padding: 16px 14px;
	}

	.bwl-rank {
		font-size: 12px;
		height: 26px;
		margin-right: -18px;
		width: 26px;
	}

	.bwl-listicle .bwl-logo {
		height: 44px;
	}

	.bwl-rating__value {
		font-size: 14px;
	}

	.bwl-rating__stars {
		--bwl-star-size: 14px;
	}

	.bwl-promo__title {
		font-size: 16px;
	}

	.bwl-listicle .bwl-cta {
		font-size: 14px;
		padding: 12px 18px;
	}
}

/* Phone: rank beside the logo, bonus and CTA stacked below. */

@container (max-width: 560px) {
	.bwl-listicle .bwl-card {
		gap: 14px;
		grid-template-columns: 26px minmax(0, 1fr);
		padding: 16px;
	}

	.bwl-rank {
		margin-right: 0;
	}

	.bwl-brand {
		padding-right: 40px;
	}

	.bwl-listicle .bwl-logo {
		height: 52px;
	}

	.bwl-rating__value {
		font-size: 16px;
	}

	.bwl-rating__stars {
		--bwl-star-size: 17px;
	}

	.bwl-promo,
	.bwl-listicle .bwl-cta {
		grid-column: 1 / -1;
	}

	.bwl-promo {
		border-top: 1px solid var(--bwl-divider);
		padding-top: 14px;
	}

	.bwl-promo::before,
	.bwl-promo::after {
		content: none;
	}

	.bwl-promo__title {
		font-size: 18px;
	}

	.bwl-listicle .bwl-cta {
		font-size: 15px;
		min-height: 48px;
		white-space: normal;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bwl-listicle .bwl-cta {
		transition: none;
	}

	.bwl-listicle .bwl-cta:hover,
	.bwl-listicle .bwl-cta:focus {
		transform: none;
	}
}
