.black-friday-page {
	height: auto;
	min-height: 100%;
}

.black-friday-page > #header.fixed-top {
	position: sticky;
}

.black-friday-contents {
	margin: 0;
	padding: 0 !important;
}

.black-friday-contents .featured_top,
.black-friday-contents .event_content,
.black-friday-contents .black-friday-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.black-friday-hero {
	position: relative;
	container-type: inline-size;
	max-width: 1200px;
	margin-inline: auto;
}

.black-friday-hero img {
	display: block;
	width: 100%;
	height: auto;
}

/* Layer filenames use width, height, x, y on the 1200 × 2000 canvas. */
.black-friday-hero__title,
.black-friday-hero__benefits,
.black-friday-countdown {
	position: absolute;
}

.black-friday-hero__title {
	top: 4.9%;
	left: 13.583333%;
	width: 79.833333%;
	margin: 0;
}

.black-friday-hero img.black-friday-hero__benefits {
	top: 57.5%;
	left: 10%;
	width: 80%;
}

.black-friday-countdown {
	inset: 80% 0 auto;
	aspect-ratio: 1200 / 400;
}

.black-friday-countdown__digits {
	/* The first number cell starts at (120, 170) on the 1200 × 400 image. */
	position: absolute;
	inset: 42.5% 10% auto;
	height: 30%;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 3.333333cqw;
	color: #fff;
	font: 700 6.66cqw / 1 GmarketSansBold, Arial, sans-serif;
}

.black-friday-countdown__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 0.833333cqw;
}

.black-friday-countdown__pair span {
	display: grid;
	place-items: center;
	/* Center the visible glyphs inside the cells. */
	padding-block-start: 1.25cqw;
}

.black-friday-countdown__description {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.black-friday-coupons,
.black-friday-relay,
.black-friday-draw,
.black-friday-notice {
	position: relative;
	max-width: 1200px;
	margin-inline: auto;
}

.black-friday-coupons img {
	display: block;
	height: auto;
}

.black-friday-coupons__background,
.black-friday-coupons__download img {
	width: 100%;
}

/* Layer positions use the 1200 × 1370 coupon background. */
.black-friday-coupons__ticket,
.black-friday-coupons__tag,
.black-friday-coupons__download {
	position: absolute;
}

.black-friday-coupons__ticket {
	top: 40.510949%;
	width: 25%;
}

.black-friday-coupons__ticket--20 {
	left: 11.666667%;
}

.black-friday-coupons__ticket--15 {
	left: 37.5%;
}

.black-friday-coupons__ticket--10 {
	left: 63.333333%;
}

.black-friday-coupons__tag {
	top: 37.372263%;
	left: 6.166667%;
	width: 11.333333%;
}

.black-friday-coupons__download {
	top: 76.642336%;
	left: 20.833333%;
	width: 58.333333%;
}

.black-friday-coupons__download,
.black-friday-draw__button {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.black-friday-draw__button:is(:hover, :focus-visible) {
	filter: drop-shadow(0 0 10px #ffd34dcc);
}

.black-friday-coupons__download:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.black-friday-coupons__download:active img {
	filter: brightness(0.85);
}

@media (prefers-reduced-motion: reduce) {
	.black-friday-coupons .bounce2 {
		animation: none;
	}
}

.black-friday-relay > img,
.black-friday-draw img,
.black-friday-notice > img {
	display: block;
	width: 100%;
	height: auto;
}

/* Purchase button bounds measured on the 1200 × 3701 relay artwork. */
.black-friday-relay__link {
	position: absolute;
	top: calc(var(--relay-link-y) / 3701 * 100%);
	left: calc(var(--relay-link-x) / 1200 * 100%);
	width: calc(410 / 1200 * 100%);
	height: calc(var(--relay-link-height, 82) / 3701 * 100%);
}

.black-friday-relay__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Layer positions use the 1200 × 1710 random draw background. */
.black-friday-draw img.black-friday-draw__picker,
.black-friday-draw img.black-friday-draw__title,
.black-friday-draw img.black-friday-draw__badge,
.black-friday-draw__button {
	position: absolute;
}

.black-friday-draw img.black-friday-draw__picker {
	top: calc(488 / 1710 * 100%);
	left: calc(238 / 1200 * 100%);
	width: calc(722 / 1200 * 100%);
	animation: black-friday-picker-swing 1.5s linear infinite;
	transform-origin: top center;
}

.black-friday-draw img.black-friday-draw__title {
	top: calc(156 / 1710 * 100%);
	left: calc(254 / 1200 * 100%);
	width: calc(712 / 1200 * 100%);
}

.black-friday-draw img.black-friday-draw__badge {
	top: calc(545 / 1710 * 100%);
	left: calc(784 / 1200 * 100%);
	width: calc(358 / 1200 * 100%);
	pointer-events: none;
}

.black-friday-draw__button {
	top: calc(1377 / 1710 * 100%);
	left: calc(213 / 1200 * 100%);
	width: calc(775 / 1200 * 100%);
}

.black-friday-draw__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.event_modal .black-friday-prize-body {
	background-color: #8e0730;
}

/* Keep the current scroll position while the common modal locks the page. */
.black-friday-prize-open.scroll_none,
.black-friday-prize-open .black-friday-page.scroll_none {
	position: static;
	height: auto;
}

.black-friday-prize-open .black-friday-page.scroll_none {
	overflow: visible;
}

@keyframes black-friday-picker-swing {
	0%,
	100% {
		transform: rotate(0);
	}

	30% {
		transform: rotate(-7deg);
	}

	70% {
		transform: rotate(5deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.black-friday-draw img.black-friday-draw__picker,
	.black-friday-draw .bounce2,
	.black-friday-draw .hithere {
		animation: none;
	}
}
