/* Decorative homepage layer. Every element is click-through. */
.afbf-scene {
	--afbf-header: 0px;
	--afbf-footer: 0px;
	--afbf-primary: #142b22;
	--afbf-accent: #f58220;
	--afbf-text: #ffffff;
	position: fixed;
	inset: 0;
	z-index: 20;
	overflow: hidden;
	pointer-events: none;
	font-family: inherit;
}

.afbf-brand,
.afbf-promo,
.afbf-treat,
.afbf-doodle {
	position: absolute;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .24));
}

.afbf-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px 9px 10px;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 999px;
	background: #fff;
	color: var(--afbf-primary);
	font-size: clamp(14px, 1.4vw, 18px);
	font-weight: 800;
	letter-spacing: -.04em;
	animation: afbf-float 6.8s ease-in-out infinite;
}

.afbf-brand__paw {
	width: 25px;
	height: 25px;
	fill: var(--afbf-accent);
}

.afbf-promo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 12px 18px 11px;
	border: 2px solid var(--afbf-accent);
	border-radius: 13px;
	background: var(--afbf-primary);
	color: var(--afbf-text);
	text-align: center;
	transform: rotate(3deg);
	animation: afbf-float 7.6s ease-in-out infinite reverse;
}

.afbf-position-top-left {
	top: calc(var(--afbf-header) + 18px);
	left: clamp(12px, 2.5vw, 36px);
	right: auto;
	bottom: auto;
}

.afbf-position-top-right {
	top: calc(var(--afbf-header) + 18px);
	right: clamp(12px, 2.5vw, 36px);
	left: auto;
	bottom: auto;
}

.afbf-position-bottom-left {
	top: auto;
	left: clamp(12px, 2.5vw, 36px);
	right: auto;
	bottom: calc(var(--afbf-footer) + 20px);
}

.afbf-position-bottom-right {
	top: auto;
	left: auto;
	right: clamp(12px, 2.5vw, 36px);
	bottom: calc(var(--afbf-footer) + 20px);
}

.afbf-promo__eyebrow {
	color: var(--afbf-text);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.afbf-promo > strong {
	color: var(--afbf-accent);
	font-size: clamp(18px, 2vw, 27px);
	font-weight: 950;
	letter-spacing: .015em;
	line-height: 1;
}

.afbf-promo__discount {
	display: flex;
	align-items: baseline;
	gap: 5px;
	color: var(--afbf-accent);
}

.afbf-promo__discount b {
	font-size: clamp(22px, 2.7vw, 34px);
	font-weight: 950;
	line-height: 1;
}

.afbf-promo__discount small {
	color: var(--afbf-text);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: .08em;
}

.afbf-promo__footer {
	margin-top: 2px;
	font-size: 10px;
	font-weight: 600;
}

.afbf-promo__footer span {
	color: var(--afbf-accent);
}

.afbf-treat {
	right: clamp(14px, 3vw, 42px);
	bottom: calc(var(--afbf-footer) + 20px);
	width: clamp(64px, 8vw, 98px);
	color: var(--afbf-accent);
	transform: rotate(-24deg);
	animation: afbf-bob 5.8s ease-in-out infinite;
}

.afbf-doodle {
	color: var(--afbf-accent);
}

.afbf-doodle svg {
	display: block;
	width: 100%;
	height: auto;
}

.afbf-doodle--fish {
	top: 43%;
	left: clamp(10px, 2vw, 28px);
	width: clamp(54px, 7vw, 82px);
	transform: rotate(-12deg);
	opacity: .88;
}

.afbf-doodle--ball {
	bottom: calc(var(--afbf-footer) + 24px);
	left: clamp(12px, 2.5vw, 36px);
	width: clamp(38px, 5vw, 58px);
	animation: afbf-bob 4.8s ease-in-out infinite;
}

.afbf-doodle--cat {
	top: 42%;
	right: clamp(10px, 2vw, 28px);
	width: clamp(48px, 6vw, 70px);
	transform: rotate(8deg);
	opacity: .86;
}

.afbf-sky {
	position: absolute;
	inset: 0;
}

.afbf-paw-print {
	position: absolute;
	left: 0;
	top: 0;
	width: clamp(30px, 4.5vw, 56px);
	height: auto;
	fill: var(--afbf-accent);
	opacity: .78;
	filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2));
	animation: afbf-cross 8s linear forwards;
}

.afbf-scene.is-off .afbf-brand,
.afbf-scene.is-off .afbf-promo,
.afbf-scene.is-off .afbf-treat,
.afbf-scene.is-off .afbf-paw-print,
.afbf-scene.is-off .afbf-doodle {
	animation-play-state: paused;
}

@keyframes afbf-cross {
	0% { transform: translate3d(-100px, var(--afbf-y), 0) rotate(-25deg) scale(.8); opacity: 0; }
	12% { opacity: .78; }
	55% { transform: translate3d(calc(var(--afbf-end) * .54), calc(var(--afbf-y) + 28px), 0) rotate(18deg) scale(1); }
	100% { transform: translate3d(var(--afbf-end), calc(var(--afbf-y) - 12px), 0) rotate(55deg) scale(.9); opacity: 0; }
}

@keyframes afbf-float {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -7px; }
}

@keyframes afbf-bob {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -6px; }
}

@media (max-width: 767px) {
	.afbf-position-top-left { top: calc(var(--afbf-header) + 10px); left: 10px; }
	.afbf-position-top-right { top: calc(var(--afbf-header) + 10px); right: 10px; }
	.afbf-position-bottom-left { bottom: calc(var(--afbf-footer) + 12px); left: 10px; }
	.afbf-position-bottom-right { bottom: calc(var(--afbf-footer) + 12px); right: 10px; }
	.afbf-brand { padding: 7px 10px 7px 8px; font-size: 13px; }
	.afbf-brand__paw { width: 21px; height: 21px; }
	.afbf-promo { max-width: 58vw; padding: 9px 11px; }
	.afbf-promo__eyebrow { font-size: 7px; }
	.afbf-promo > strong { font-size: 17px; }
	.afbf-promo__discount b { font-size: 22px; }
	.afbf-promo__discount small { font-size: 7px; }
	.afbf-promo__footer { font-size: 8px; }
	.afbf-treat { right: 14px; width: 60px; }
	.afbf-paw-print { width: 30px; }
	.afbf-doodle--fish { top: 46%; width: 48px; }
	.afbf-doodle--cat { top: 46%; width: 46px; }
	.afbf-doodle--ball { width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
	.afbf-paw-print { display: none; }
	.afbf-brand, .afbf-promo, .afbf-treat, .afbf-doodle { animation: none; }
}
