/* Prize Winners Board — coupon board paint. */

.pw-board {
	--pw-ground: #101418;
	--pw-ink: #f6f1e6;
	--pw-rule: #3a4650;
	--pw-accent: #c6f04a;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	position: relative;
}

.pw-board-title {
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #f6f1e6;
	margin: 0 0 6px;
}

.pw-board-disclosure {
	font-size: 13px;
	line-height: 1.5;
	color: #b0bdc8;
	margin: 0 0 14px;
	max-width: none;
}

.pw-board-disclosure a {
	color: #c6f04a;
	text-decoration: underline;
}

/* One single column of full horizontal bands — never a card grid. */
.pw-board .pw-coupons {
	list-style: none;
	margin: 0;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	background: transparent !important;
}

.pw-board .pw-coupons > li.pw-coupon {
	display: block;
	list-style: none;
	margin: 0;
	padding: 10px 14px;
	background: #171d23 !important;
	border: 1px solid #3a4650;
	border-radius: 12px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
	overflow: visible;
}

.pw-board .pw-coupons > li.pw-coupon.pw-lead {
	background: #1a222a !important;
	border-color: #4e6a2a;
}

.pw-board .pw-coupon * {
	box-sizing: border-box;
}

.pw-board .pw-coupon-main {
	display: grid;
	grid-template-columns: 44px minmax(300px, 1.5fr) minmax(150px, 1fr) 244px minmax(176px, auto) !important;
	grid-template-areas: "rank brand terms figs act";
	align-items: center;
	gap: 8px 16px;
	width: 100%;
}

.pw-board .pw-rank {
	grid-area: rank;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	color: #c6f04a;
}

.pw-board .pw-rank-num {
	font-size: 26px;
	line-height: 1;
	font-weight: 700;
}

.pw-board .pw-rank-cap {
	font-size: 9px;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9dabb8;
}

.pw-board .pw-coupon-brandcell {
	grid-area: brand;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.pw-board .pw-coupon-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 84px;
	min-height: 38px;
	padding: 4px 9px;
	border-radius: 8px;
	background: var(--pw-logo-bg, #1b2229);
}

.pw-board .pw-coupon-logo img {
	display: block;
	width: auto;
	height: auto;
	max-height: var(--pw-logo-h, 34px);
	max-width: 138px;
	min-width: 66px;
	min-height: 22px;
	object-fit: contain;
}

.pw-board .pw-coupon-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 72px;
	height: 44px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #f6f1e6;
}

.pw-board .pw-coupon-namecell {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pw-board .pw-coupon-brand {
	margin: 0;
	font-size: 17px;
	line-height: 1.25;
	font-weight: 700;
	color: #f6f1e6;
}

.pw-board .pw-coupon-offer {
	font-size: 13px;
	line-height: 1.35;
	color: #c2cdd7;
}

.pw-board .pw-coupon-terms {
	grid-area: terms;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	color: #b0bdc8;
}

.pw-board .pw-terms-k {
	color: #9dabb8;
}

.pw-board .pw-terms-v {
	color: #d3dde6;
}

.pw-board .pw-coupon-figures {
	grid-area: figs;
	display: grid;
	grid-template-columns: 9rem auto !important;
	gap: 6px 14px;
	margin: 0;
}

.pw-board .pw-fig-cell {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.pw-board .pw-fig-k {
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9dabb8;
}

.pw-board .pw-fig-v {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 24px;
	line-height: 1.15;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #f6f1e6;
	white-space: nowrap;
}

.pw-board .pw-coupon-action {
	grid-area: act;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 5px;
	min-width: 0;
}

/* The CTA is the most contrasted object on the row: painted fill, a
   two-pixel rim all round and a hard shadow. Weight and colour alone
   never carry it. */
.pw-board a.pw-coupon-cta,
.pw-board a.pw-coupon-cta:link,
.pw-board a.pw-coupon-cta:visited {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 46px !important;
	min-width: 176px !important;
	padding: 11px 16px !important;
	border-radius: 9px !important;
	border: 2px solid #eaf7c9 !important;
	background: #c6f04a !important;
	color: #101418 !important;
	font-size: 17px !important;
	line-height: 1.2 !important;
	font-weight: 800 !important;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 8px 18px -8px rgba(198, 240, 74, 0.65) !important;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.pw-board a.pw-coupon-cta:hover,
.pw-board a.pw-coupon-cta:focus-visible {
	background: #d8ff62 !important;
	border-color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 12px 22px -8px rgba(198, 240, 74, 0.8) !important;
}

.pw-board a.pw-coupon-cta:active {
	background: #a9d531 !important;
	transform: translateY(0);
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

.pw-board .pw-coupon-smallprint {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 11px !important;
	line-height: 1.3 !important;
	color: #a9b6c2 !important;
	text-align: center;
	border: 0 !important;
	background: none !important;
}

.pw-board .pw-coupon-more {
	margin: 6px 0 0;
	border: 0;
	border-top: 1px dashed rgba(58, 70, 80, 0.75);
	padding-top: 5px;
}

.pw-board .pw-coupon-more > summary {
	cursor: pointer;
	font-size: 12px;
	line-height: 1.3;
	color: #b0bdc8;
	white-space: nowrap;
	overflow: hidden;
	list-style: none;
	padding: 2px 0;
}

.pw-board .pw-coupon-more > summary::-webkit-details-marker {
	display: none;
}

.pw-board .pw-coupon-more > summary::before {
	content: "+ ";
	color: #c6f04a;
	font-weight: 700;
}

.pw-board .pw-coupon-more[open] > summary::before {
	content: "\2212 ";
}

.pw-board .pw-coupon-chips {
	list-style: none;
	margin: 6px 0 0;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	background: transparent !important;
}

.pw-board .pw-coupon-chips li {
	margin: 0 !important;
	padding: 3px 9px !important;
	border: 1px solid rgba(90, 108, 122, 0.9) !important;
	border-radius: 999px !important;
	background: #171d23 !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	color: #d3dde6 !important;
	list-style: none !important;
}

.pw-board .pw-coupon-chips li::before {
	content: none !important;
}

.pw-board .pw-keep {
	white-space: nowrap;
}

.pw-board .pw-board-ctaanchor {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* 1181 and up: the five tracks of the base rule; the terms print at 12px so that the licence line holds one line. */
@media (min-width: 1181px) {
	body.pw-public .pw-board .pw-coupon-terms {
		font-size: 12px;
		line-height: 1.35;
	}
}

/* At 1180 and below the rows use the area names of the theme sheet (rank, brand,
   figures, terms, action); the tracks are written here for every width band. */
@media (max-width: 1180px) {
	.pw-board .pw-coupon-figures {
		justify-content: start;
		gap: 2px 14px;
	}

	.pw-board .pw-coupon-action {
		align-self: center;
	}
}

/* 901 to 1180: the brand across two tracks, figures and terms share the second line, the button spans both. */
@media (min-width: 901px) and (max-width: 1180px) {
	.pw-board .pw-coupon-main {
		grid-template-columns: 44px 244px minmax(0, 1fr) 216px !important;
		grid-template-areas: "rank brand brand action" "rank figures terms action" !important;
		align-items: center;
		gap: 8px 14px;
	}
}

/* 621 to 900: brand, figures and terms stack beside the rank, the button stands on the right. */
@media (min-width: 621px) and (max-width: 900px) {
	.pw-board .pw-coupon-main {
		grid-template-columns: 44px minmax(0, 1fr) 176px !important;
		grid-template-areas: "rank brand action" "rank figures action" "rank terms action" !important;
		align-items: center;
		gap: 8px 14px;
	}
}

/* 620 and down: one column; the rank sits in the name as a pill, which the theme sheet draws. */
@media (max-width: 620px) {
	.pw-board .pw-coupon-main {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas: "brand" "figures" "terms" "action" !important;
		gap: 8px 0;
	}
}

@media (max-width: 780px) {
	.pw-board .pw-coupons > li.pw-coupon {
		padding: 9px 11px;
	}

	.pw-board .pw-coupon-brandcell {
		gap: 7px;
	}

	.pw-board .pw-coupon-logo {
		min-width: 76px;
		min-height: 32px;
		padding: 3px 6px;
	}

	.pw-board .pw-coupon-logo img {
		min-width: 62px;
		max-width: 112px;
		min-height: 20px;
	}

	.pw-board .pw-coupon-brand {
		font-size: 15px;
	}

	.pw-board .pw-coupon-offer {
		font-size: 12px;
		line-height: 1.3;
	}

	.pw-board .pw-coupon-figures {
		display: grid;
		gap: 3px 12px;
		border-top: 1px solid rgba(58, 70, 80, 0.55);
		padding-top: 5px;
	}

	.pw-board .pw-fig-k {
		display: block;
		font-size: 9px;
		line-height: 1.1;
	}

	.pw-board .pw-fig-v {
		font-size: 19px;
		line-height: 1.1;
	}

	.pw-board .pw-coupon-action {
		width: 100%;
	}

	.pw-board a.pw-coupon-cta,
	.pw-board a.pw-coupon-cta:link {
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
	}

	.pw-board .pw-coupon-smallprint {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pw-board a.pw-coupon-cta {
		transition: none !important;
	}

	.pw-board a.pw-coupon-cta:hover,
	.pw-board a.pw-coupon-cta:focus-visible,
	.pw-board a.pw-coupon-cta:active {
		transform: none !important;
	}
}
