/* dec popup: form → "Find the Yeti" game → one of two prizes. CSS copied from Affordable RTO 26/dec; every number is
   this ticket's Figma frames' (2-Pop up info 1:5134, 3-Pop up game 1:3123 and its reveal 1:3947, 5-Pop up success gift
   card 1:1875 and free gift 1:7863, and their - Mobile twins), measured by scripts/popup-layout.mjs
   (work/figma/layout-popup.json) and figma-facts. Scoped to #popup-dec; the framework's popup.css / forms.css are untouched. */
#popup-dec {
	--popup-width: 660px;
	--popup-height: 600px;
	--popup-max-width: calc(100vw - 20px);
	--popup-max-height: none;
	--popup-align: flex-start;
	--close-x: 25.6px;
	--close-y: 25.3px;
	--form-width: 583.9px;
	--form-field-padding: 12.5px 10px;
	--form-input-height: 53px;
	--form-input-radius: 6px;
	--form-label-font-size: 16px;
	--form-input-font-size: 16px;
	--form-label-offset-x: 17.8px;
	--form-input-text-indent: 17.8px;
	--submit-dist: 31.5px;
	--submit-width: 235px;
	--submit-height: 45px;
	--submit-radius: 54px;
	--submit-bg: #eb0f10;
	--submit-color: #ffffff;
}
#popup-dec .popup-content {
	position: relative;
	width: var(--popup-width);
	max-width: var(--popup-max-width);
	height: var(--popup-height);
	max-height: var(--popup-max-height);
	background-color: #073767;
}
#popup-dec h2,
#popup-dec p {
	margin: 0;
}
#popup-dec picture img {
	max-width: none;
}

/* the panel background of each step (Form BG 1:5135 / 1:3124 / 1:1876 …): the night sky and its snow (Layer_1), art
   behind the step's content. The mountains (the Form BG's Frames) are their own layer, tied to the panel's bottom
   edge, so they stay there on phones, where the panel is the screen's height. */
#popup-dec .popup-default,
#popup-dec .popup-game,
#popup-dec .popup-thanks {
	position: relative;
	overflow: hidden;
}
#popup-dec .dec-panel-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	background-color: #073767;
	background-position: center top;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-image: url("../images/hero/popup-back.png");
	background-image: image-set(url("../images/hero/popup-back.webp") type("image/webp") 1x, url("../images/hero/popup-back@2x.webp") type("image/webp") 2x, url("../images/hero/popup-back.png") 1x, url("../images/hero/popup-back@2x.png") 2x);
}
/* the mountains (Frame 193 1:5136 and the steps' snow frames): 660x179, the panel's bottom 179px, cut by its sides as
   Form BG clips them */
#popup-dec .dec-mountains {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	aspect-ratio: 660 / 179;
	background-position: center bottom;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-image: url("../images/hero/mountains.png");
	background-image: image-set(url("../images/hero/mountains.webp") type("image/webp") 1x, url("../images/hero/mountains@2x.webp") type("image/webp") 2x, url("../images/hero/mountains.png") 1x, url("../images/hero/mountains@2x.png") 2x);
}
/* Figma layers baked into the panel art above (the sky's Layer_1 and the stacked snow frames): each tagged on its own
   empty box at its layer's place, painted by its parent's picture */
#popup-dec .dec-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
#popup-dec .dec-layer-m {
	display: none;
}
#popup-dec .dec-form-title,
#popup-dec .popup-form form,
#popup-dec .dec-game-title,
#popup-dec .dec-trees,
#popup-dec .dec-thanks {
	position: relative;
	z-index: 1;
}

/* the close: the frame's X (white bars, 3px x 27px, crossed at 45deg) */
#popup-dec .popup-close {
	top: var(--close-y);
	right: var(--close-x);
	width: 35.4px;
	height: 35.4px;
	padding: 0;
	z-index: 5;
	border: 0;
	background: transparent;
}
#popup-dec .popup-close::before,
#popup-dec .popup-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 3px;
	height: 27px;
	margin: -13.5px 0 0 -1.5px;
	border-radius: 2px;
	background-color: #ffffff;
	transform: rotate(45deg);
}
#popup-dec .popup-close::after {
	transform: rotate(-45deg);
}

/* step 2, the form (title 1:5957, Form Fields 1:5954, Submit 1:5955) */
#popup-dec .popup-default {
	align-items: var(--popup-align);
}
/* the title's glyphs at 71.6 (1:5957's render box): this face draws its ink from the top of its 50px line box, so the
   line starts there; the form starts at 146.5 (first field 159) */
#popup-dec .popup-form {
	padding-top: 71.6px;
}
#popup-dec .dec-form-title {
	width: fit-content;
	margin: 0 auto 24.9px;
	font-size: 55px;
	line-height: 50px;
	font-weight: 400;
	letter-spacing: 0;
	text-align: center;
}
#popup-dec form.uni-style {
	color: #2a2a2a;
	font-family: 'Avenir-Roman', sans-serif;
}
#popup-dec form.uni-style input,
#popup-dec form.uni-style select,
#popup-dec form.uni-style textarea {
	border: 1.315px solid #c3c3c5;
	color: #373737;
}
#popup-dec label .f-red {
	color: #fc5147;
}
#popup-dec .form-action {
	display: flex;
	justify-content: center;
	padding-top: 0;
}
#popup-dec .promoLead {
	width: var(--submit-width);
	height: var(--submit-height);
	margin: var(--submit-dist) auto 0;
	padding: 0;
	border-radius: var(--submit-radius);
	background: var(--submit-bg);
	color: var(--submit-color);
	font-size: 20px;
	letter-spacing: 0;
	text-transform: uppercase;
	line-height: 1;
}

/* step 3, the game (3-Pop up game 1:3123): the title, then three trees in a row (221x309 at -1 / 219 / 438, top 250:
   1px overlap). The picked tree's yeti (Frame 2 1:4768, 215x219 at +4,+57 of its tree) jumps out, then the prize shows. */
#popup-dec .popup-game {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* the trees are cut by the panel's sides as Figma's panel (1:3347 / 1:27871, clipsContent) cuts them: tree 2 starts
	   at -1 (-30 on phones), tree 3 runs to the panel's right edge (past it on phones) */
	overflow: hidden;
}
/* 1:3946's box at 75 (the element's top lands 1px under its margin) */
#popup-dec .dec-game-title {
	margin-top: 74px;
	font-size: 64.74px;
	line-height: 68px;
	font-weight: 400;
	text-align: center;
}
#popup-dec .dec-trees {
	display: flex;
	justify-content: center;
	width: 100%;
	/* trees at 250: the title's two 68px lines end at 211 */
	margin-top: 39px;
}
#popup-dec .dec-tree {
	flex: 0 0 221px;
	width: 221px;
	height: 309px;
	padding: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 0.2s ease;
}
/* the row left to right is tree 2, tree 1, tree 3 (tree 1 is the middle tree here and the back tree on phones);
   each overlaps the one before it by 1px */
#popup-dec .dec-tree[data-pick="2"] {
	order: 1;
}
#popup-dec .dec-tree[data-pick="1"] {
	order: 2;
	margin-left: -1px;
}
#popup-dec .dec-tree[data-pick="3"] {
	order: 3;
	margin-left: -1px;
}
#popup-dec .dec-tree:hover:not(:disabled),
#popup-dec .dec-tree:focus-visible {
	transform: translateY(-6px);
}
/* tree.png is the 221x309 tree with a 4px pad (230x317). The img's box is the tree's own 221x309 and the art sits in
   it at its own size (object-fit: none; srcset's w descriptors and sizes give that size), the transparent pad cut off */
#popup-dec .dec-tree-img {
	position: absolute;
	left: 0;
	top: 0;
	width: 221px;
	height: 309px;
	object-fit: none;
	object-position: -4px -4px;
	transition: opacity 0.25s ease;
}
/* yeti-jump.png is the 215x219 yeti (Frame 2 1:4768, at +4.5,+57 of its tree) with a 4.5/4px transparent pad
   (224x227): the img's box is the yeti's own 215x219, the art in it at its own size */
#popup-dec .dec-jump {
	position: absolute;
	left: 4.5px;
	top: 57px;
	width: 215px;
	height: 219px;
	object-fit: none;
	object-position: -4.5px -4px;
	opacity: 0;
	transform: translateY(40px) scale(0.6);
	transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
}
#popup-dec .dec-tree.is-picked {
	z-index: 2;
}
#popup-dec .dec-tree.is-picked .dec-tree-img {
	opacity: 0;
}
#popup-dec .dec-tree.is-picked .dec-jump {
	opacity: 1;
	transform: none;
}

/* step 4, the prize: one column (title, the prize's own copy, "Check your email", Keep Shopping). Two prizes, one
   success screen each (data-prize on .popup-thanks, set when the visitor picks a tree):
   card (5-Pop up success gift card 1:1875): "You found him!" glyphs at 41.6, "Your holiday offer is on its way / to
     your inbox!" (Boogaloo 30/29.1) at 101.9, the gift card (1:7835, 333.2x211.6 turned -5.31deg, its outline box
     351.4x241.6 at 154,164.8) with its live "$150 / gift card*", "Check your email" at 419.1, Keep Shopping at 468;
   gift (5-Pop up success free gift 1:7863): "You found him!" at 101.6, "You just won a free / holiday gift!" (Boogaloo
     53.07/51.5) at 181.5, "Check your email" at 319.1, Keep Shopping at 378. */
#popup-dec .popup-thanks {
	justify-content: flex-start;
	padding-top: 0;
}
#popup-dec .tracking_promo_success {
	position: absolute;
}
#popup-dec .popup-thanks .dec-v-gift,
#popup-dec .popup-thanks[data-prize="gift"] .dec-v-card {
	display: none;
}
#popup-dec .popup-thanks[data-prize="gift"] .dec-v-gift {
	display: flex;
}
#popup-dec .dec-thanks {
	padding-top: 41.6px;
}
#popup-dec .popup-thanks[data-prize="gift"] .dec-thanks {
	padding-top: 101.6px;
}
#popup-dec .thanks {
	width: fit-content;
}
#popup-dec .dec-found {
	width: fit-content;
	font-size: 55px;
	line-height: 50px;
	font-weight: 400;
	letter-spacing: 0;
	text-align: center;
}
#popup-dec .dec-sub,
#popup-dec .dec-won {
	font-weight: 400;
	letter-spacing: 0;
	text-align: center;
}
/* 1:3122 Boogaloo 30px on a 29.1px line, white caps; its line box at 83 of the 600 frame (verify measured 98.9 with a
   10.3px gap: 15.9px up), the card below moved down by as much so it stays at its Figma box */
#popup-dec .dec-sub {
	margin-top: -5.6px;
	font-size: 30px;
	line-height: 29.1px;
}
#popup-dec .dec-br-m {
	display: none;
}
/* 1:9738 Boogaloo 53.07px on a 51.5px line, white caps */
#popup-dec .dec-won {
	margin-top: 29.9px;
	font-size: 53.07px;
	line-height: 51.5px;
}
/* the card frame's render box (1:7835 with its 27px shadow, cut by Gif Crad 1:7240): 403x278 at 128,150. The card's
   own (turned) box 351.4x241.6 at 154,164.8 is centred 0.2px right of and 3.4px above this box's centre */
#popup-dec .dec-prize {
	flex: 0 0 auto;
	width: 403px;
	height: 278px;
	margin-top: 5.65px;
	--card-dx: 0.2px;
	--card-dy: -3.4px;
}
/* the frame's drop shadow (0/3.6, radius 27) on the picture, so it falls outside the img's clip below */
#popup-dec .dec-prize-card {
	position: absolute;
	inset: 0;
	display: block;
	filter: drop-shadow(0 3.6px 13.5px rgba(0, 0, 0, 0.33));
	pointer-events: none;
}
/* gift-card.png is Figma's own render of the turned card (1:7836, 432x322 with a 40px pad): the img fills the render
   box and draws the art at its own size (object-fit: none), the card's ink centred on its Figma box (329.7,285.6).
   1:7835 clips its content to the card (333.2x211.6 turned -5.31deg): the group's own 0/29.7 shadow, which the export
   draws below the card, is cut at the card's outline (+1px) like Figma cuts it; --card-cx/cy is its centre in this box */
#popup-dec .dec-prize-card img {
	--card-cx: 201.7px;
	--card-cy: 135.6px;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: none;
	object-position: -16.8px -24.4px;
	clip-path: polygon(calc(var(--card-cx) - 176.8px) calc(var(--card-cy) - 90.8px), calc(var(--card-cx) + 157px) calc(var(--card-cy) - 121.8px), calc(var(--card-cx) + 176.8px) calc(var(--card-cy) + 90.8px), calc(var(--card-cx) - 157px) calc(var(--card-cy) + 121.8px));
	pointer-events: none;
}
/* 1:7861: Boogaloo #009546, a 1px stroke and Figma's drop shadow, in the card's -5.31deg turn: its text box 240x159
   (unturned; "$150" 110px on a 110.5px line, "gift card*" 43.34px on 48.5px), centred on the card, 6.4px up the
   turned card */
/* Figma's text box (1:7861, 253.7 wide turned: 211.6..465.3) is centred at 338.5, 8.8px right of the card's (329.7):
   --gift-dx/dy carry that offset (phones: 9.4px right, 6.1px down) */
#popup-dec .dec-gift {
	position: absolute;
	left: calc(50% + var(--card-dx) + var(--gift-dx, 8.9px));
	top: calc(50% + var(--card-dy) + var(--gift-dy, 0px));
	z-index: 1;
	width: 240px;
	margin: 0;
	/* the node's own style (Figma's 43.34px on a 48.5px line); "$150" is the run that overrides it */
	font-size: 43.34px;
	line-height: 48.5px;
	color: #009546;
	-webkit-text-stroke: 1px #009546;
	text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.25);
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	transform: translate(-50%, -50%) rotate(-5.31deg) translate(0, -6.4px);
}
#popup-dec .dec-amount,
#popup-dec .dec-card-word {
	display: block;
}
#popup-dec .dec-amount {
	font-size: 110px;
	line-height: 110.5px;
}
#popup-dec .dec-card-word {
	font-size: 43.34px;
	line-height: 48.5px;
}
/* 1:3121 Avenir Medium 28px on a 30.8px line, 0.3px tracking: 27.2px, as the RTO build measured this face set
   wider than Figma draws it in 370 */
/* 12.8px under the card's own box (406.4), so 8.65px over the render box's bottom (428) */
#popup-dec .dec-check {
	margin-top: -8.65px;
	font-size: 27.2px;
	line-height: 30.8px;
	letter-spacing: 0.28px;
	text-align: center;
}
#popup-dec .popup-thanks[data-prize="gift"] .dec-check {
	margin-top: 34.6px;
}
#popup-dec .dec-keep {
	width: 235px;
	height: 45px;
	margin: 18.1px auto 0 !important;
	padding: 0;
	border-radius: 54px;
	background: #eb0f10;
	color: #ffffff;
	font-size: 20px;
	letter-spacing: 0;
	line-height: 1;
}
#popup-dec .popup-thanks[data-prize="gift"] .dec-keep {
	margin-top: 28.1px !important;
}
/* the thumbs-up yeti (Frame 5 1:2694 / 1:8682, 205.7x232.7 at -32.7,378): cut by the panel's left and bottom edges as
   Form BG clips it (visible 173x222) */
#popup-dec .dec-thanks-yeti {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 173px;
	height: 222px;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}
/* thanks-yeti.png is the art with a 4px pad (214x241, its size from srcset's w descriptors and sizes): the tagged img
   fills the clip box and draws the art at its own size from -36.7,-4 (object-fit: none) */
#popup-dec .dec-thanks-yeti img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: none;
	object-position: -36.7px -4px;
	z-index: 0;
	pointer-events: none;
}
#popup-dec .dec-keep:hover,
#popup-dec .promoLead:hover {
	filter: brightness(1.12);
}

/* phones: full screen (rto-form-popups makes .popup-content 100% x 100% at <=567px; only its variables change here),
   with the 390 frames' own numbers: the panel is Form BG's visible 390x692 (popup-back-m), the form and success content
   centred in its height (revision, below), the mountains tied to the panel's real bottom edge */
@media (max-width: 567px) {
	#popup-dec {
		--popup-width: 100%;
		--popup-height: 100dvh;
		--popup-max-height: 100dvh;
		--popup-max-width: 100%;
		--popup-align: flex-start;
		--close-x: 12.6px;
		/* the frame's X is at 11.3 (box to 46.7), 5.3px over the form title's box (52) and 2.4px over the prize's (49.1):
		   4px keeps both 8px clear of it (verify: closeClear at 375x553 … 430x932) */
		--close-y: 4px;
		/* 20px each side of the 390-wide frame (left 20, width 350) */
		--form-width: calc(100% - 40px);
		--form-width-mobile: calc(100% - 40px);
		--form-field-padding: 8px 0px;
		--form-field-padding-mobile: 8px 0px;
		--form-input-height: 53px;
		--form-input-radius: 6px;
		--form-input-radius-mobile: 6px;
		--form-label-font-size: 16px;
		--form-label-font-size-mobile: 16px;
		--form-input-font-size: 16px;
		--form-input-font-size-mobile: 16px;
		--form-label-offset-x: 17.75px;
		--form-input-text-indent: 17.75px;
		--submit-dist: 25px;
	}
	/* popup-back-m.png is the sky at its own design size (390x692): kept at its width, pinned to the top; the panel's
	   own #073767 fills below it on a taller phone */
	#popup-dec .dec-panel-bg {
		background-size: 100% auto;
		background-image: url("../images/hero/popup-back-m.png");
		background-image: image-set(url("../images/hero/popup-back-m.webp") type("image/webp") 1x, url("../images/hero/popup-back-m@2x.webp") type("image/webp") 2x, url("../images/hero/popup-back-m.png") 1x, url("../images/hero/popup-back-m@2x.png") 2x);
	}
	#popup-dec .dec-mountains {
		aspect-ratio: 390 / 124;
		background-image: url("../images/hero/mountains-m.png");
		background-image: image-set(url("../images/hero/mountains-m.webp") type("image/webp") 1x, url("../images/hero/mountains-m@2x.webp") type("image/webp") 2x, url("../images/hero/mountains-m.png") 1x, url("../images/hero/mountains-m@2x.png") 2x);
	}
	/* the game step's own snowbank (1:27872 + 1:27946 + 1:28020, 390x329 under the trees) */
	#popup-dec .dec-mountains-game {
		aspect-ratio: 390 / 329;
		background-image: url("../images/hero/mountains-game-m.png");
		background-image: image-set(url("../images/hero/mountains-game-m.webp") type("image/webp") 1x, url("../images/hero/mountains-game-m@2x.webp") type("image/webp") 2x, url("../images/hero/mountains-game-m.png") 1x, url("../images/hero/mountains-game-m@2x.png") 2x);
	}
	/* revision (dev request, as Affordable RTO 26/dec does it; intentionally off the 692px frame): the form and success
	   steps are flex columns whose one content child (`.popup-form` / `.dec-thanks`) is centred in the panel's height
	   (`justify-content: center`) instead of top-padded to the frame's numbers, which only held on a phone exactly as
	   tall as the frame; `padding-bottom` in `vh` (the panel is 100dvh here) keeps the centred content clear of the
	   mountains. All three steps clip their own overflow. */
	#popup-dec .popup-default,
	#popup-dec .popup-game,
	#popup-dec .popup-thanks {
		overflow: hidden;
	}
	#popup-dec .popup-default,
	#popup-dec .popup-thanks {
		flex-direction: column;
		justify-content: center;
		padding-bottom: 4.7vh;
	}
	/* the form: 43px title on a 50px line (1:29531), Submit 25px under the last field; centred by .popup-default above,
	   so no top padding. Horizontal padding stays 0: --form-width carries the 20px side margins */
	#popup-dec .popup-form {
		margin: 0;
		padding: 0;
	}
	#popup-dec .dec-form-title {
		margin-bottom: 20px;
		font-size: 43px;
		line-height: 50px;
	}
	/* 1:28689's box at 73 */
	#popup-dec .dec-game-title {
		margin-top: 69px;
		font-size: 49.74px;
		line-height: 59.7px;
	}
	/* game, phones (1:28690/91/92 of the 390-wide frame): one tree at the back (83,220), two in front (-30,345) and
	   (199,345), each 221x309, in vw of the full-bleed popup, pinned to the panel's bottom with the snowbank */
	#popup-dec .dec-trees {
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		/* the whole 692px panel: the trees at their frame positions (220 and 345 from its top) */
		height: 177.436vw;
		margin-top: 0;
	}
	#popup-dec .dec-tree {
		position: absolute;
		width: 56.667vw;
		height: 79.231vw;
	}
	#popup-dec .dec-tree[data-pick] {
		margin-left: 0;
	}
	#popup-dec .dec-tree[data-pick="1"] {
		left: 21.282vw;
		top: 56.410vw;
	}
	#popup-dec .dec-tree[data-pick="2"] {
		left: -7.692vw;
		top: 88.462vw;
	}
	#popup-dec .dec-tree[data-pick="3"] {
		left: 51.026vw;
		top: 88.462vw;
	}
	/* tree 1 sits behind trees 2 and 3: its hit box covers only the crown nobody paints over, so a tap on the front
	   trees reaches them; the picture keeps painting at its full size from the button's top-left */
	#popup-dec .dec-tree[data-pick="1"] {
		height: 28vw;
		overflow: visible;
	}
	/* tree.png at 58.974vw (sizes): the tree's own 221x309 box, its pad 1.026vw */
	#popup-dec .dec-tree-img {
		left: 0;
		top: 0;
		width: 56.667vw;
		height: 79.231vw;
		object-position: -1.026vw -1.026vw;
	}
	/* the front trees run past the panel's sides (-30 and 199+221 of 390): Figma clips them at the panel, so their
	   box is what shows, 191 wide (0-191 and 199-390); the art stays where it was */
	#popup-dec .dec-tree[data-pick="2"] .dec-tree-img {
		left: 7.692vw;
		width: 48.974vw;
		object-position: -8.718vw -1.026vw;
	}
	#popup-dec .dec-tree[data-pick="3"] .dec-tree-img {
		width: 48.974vw;
	}
	/* Frame 2 1:27502: 197x201 at +13,+38 of its tree (yeti-jump.png at 52.564vw: its 4.5/4px pad 1.056/0.94vw) */
	#popup-dec .dec-jump {
		left: 3.441vw;
		top: 9.735vw;
		width: 50.452vw;
		height: 51.454vw;
		object-position: -1.056vw -0.94vw;
	}
	/* the prize, phones: card: "You found him!" (42.42px on a 38.6px line) glyphs at 49.1, the copy (Boogaloo 27/30.5)
	   at 92.5, the card's outline box at 24,164.8, "Check your email" (26/28.6) at 414.2, Keep Shopping at 464;
	   gift: "You found him!" at 149.1, "You just won a free / holiday gift!" (Boogaloo 40/45.2) at 211.8, "Check your
	   email" at 314.2, Keep Shopping at 364 */
	/* revision (dev request): `.popup-thanks` above centres this block itself, for both prizes, so neither keeps its
	   own top padding */
	#popup-dec .dec-thanks {
		margin: 0;
		padding: 0;
	}
	#popup-dec .popup-thanks[data-prize="gift"] .dec-thanks {
		padding-top: 0;
	}
	/* the card prize's block is 460px tall (title 38.6 … Keep Shopping 45): centred over the 4.7vh alone it ran down
	   onto the thumbs-up yeti, pinned to the screen's bottom (390x664: "Check your email" into its head, Keep Shopping
	   over its thumb). The centring area's bottom padding grows so Keep Shopping ends where the 692 frame has it, 183px
	   over the panel's bottom (826 = 460 + 2 x 183: the block's top lands on the frame's 49.1 at 692 high), capped so
	   the block's top stays 21px under the screen's top on a shorter phone */
	/* (verify, Nov 26) the same placement as spacers: the block keeps 183px of panel under Keep Shopping as above, and
	   now also 48px over the title, clear of the close X (4..39.4, +8px); where both don't fit (390x664) the panel grows
	   by the difference and #popup-dec scrolls, the yeti staying on the panel's bottom under Keep Shopping as in the
	   692 frame. At 692 and taller the block sits exactly where the clamp put it. */
	#popup-dec .popup-thanks:not([data-prize="gift"]) {
		padding-bottom: 4.7vh;
	}
	#popup-dec .popup-thanks:not([data-prize="gift"])::after {
		min-height: calc(183px - 4.7vh);
	}
	/* the title clear of the close X on every phone: the free height splits evenly above and below the content (the
	   revision's centring), but never less than 48px above it */
	#popup-dec .popup-default::before,
	#popup-dec .popup-thanks::before,
	#popup-dec .popup-default::after,
	#popup-dec .popup-thanks::after {
		content: "";
		flex: 1 1 0;
		width: 100%;
		pointer-events: none;
	}
	#popup-dec .popup-default::before,
	#popup-dec .popup-thanks::before {
		min-height: 48px;
	}
	/* (verify round 2) "You found him!" measured 2px over its box (glyphs past the 38.6px line): at 48px it sat 6.6px
	   under the X (ends 39.4) at 375x553 and 390x664; 50px keeps it 8px clear */
	#popup-dec .popup-thanks::before {
		min-height: 50px;
	}
	/* the card (388px, its render box) scaled with a phone narrower than the 390 frame so it stays inside the panel */
	@media (max-width: 389px) {
		#popup-dec .dec-prize {
			zoom: 0.96;
		}
	}
	@media (max-width: 374px) {
		#popup-dec .dec-prize {
			zoom: 0.92;
		}
	}
	@media (max-width: 359px) {
		#popup-dec .dec-prize {
			zoom: 0.85;
		}
	}
	@media (max-width: 339px) {
		#popup-dec .dec-prize {
			zoom: 0.8;
		}
	}
	#popup-dec .dec-found {
		font-size: 42.42px;
		line-height: 38.6px;
	}
	#popup-dec .dec-sub {
		margin-top: 10.8px;
		font-size: 27px;
		line-height: 30.5px;
	}
	#popup-dec .dec-br-m {
		display: inline;
	}
	#popup-dec .dec-br-d {
		display: none;
	}
	#popup-dec .dec-won {
		margin-top: 24.1px;
		font-size: 40px;
		line-height: 45.2px;
	}
	/* the render box 1:32025, cut by Gif Crad 1:31430: 388x278 at 1,150; the card's box (24,164.8) centred 4.7px right
	   of and 3.4px above its centre */
	#popup-dec .dec-prize {
		width: 388px;
		margin-top: -3.75px;
		margin-left: 0;
		--card-dx: 4.7px;
		--gift-dx: 9.4px;
		--gift-dy: 6.1px;
	}
	#popup-dec .dec-prize-card img {
		--card-cx: 198.7px;
		object-position: -19.8px -24.4px;
	}
	/* 7.9px under the card's own box (406.4), 13.45px over the render box's bottom (428) */
	#popup-dec .dec-check {
		margin-top: -13.45px;
		font-size: 26px;
		line-height: 28.6px;
		letter-spacing: 0.26px;
	}
	#popup-dec .popup-thanks[data-prize="gift"] .dec-check {
		margin-top: 12px;
	}
	#popup-dec .dec-keep {
		margin-top: 21.2px !important;
	}
	#popup-dec .popup-thanks[data-prize="gift"] .dec-keep {
		margin-top: 21.2px !important;
	}
	#popup-dec .dec-layer-m {
		display: block;
	}
	/* the thumbs-up yeti (1:25527 / 1:33499, 184x208 at 246,489), standing on the snow, cut by the panel's right edge;
	   its feet 5px under the 692 panel bottom, tied to the panel's real bottom with the mountains */
	#popup-dec .dec-thanks-yeti {
		left: auto;
		right: 0;
		bottom: -1.282vw;
		width: 36.923vw;
		height: 53.333vw;
	}
	/* thanks-yeti-m.png: 184x208 with a 4px pad (192x216) */
	/* thanks-yeti-m.png at 49.231vw x 55.385vw (sizes), its pad 1.026vw: its bottom 1.026vw under the clip box's */
	#popup-dec .dec-thanks-yeti img {
		object-position: -1.026vw -1.026vw;
	}
	/* the yeti hangs 5px below the phone panel (1:25527 / 1:33499 end at 697 of the 692 panel): open only the panel's
	   bottom edge, by that much */
	#popup-dec .popup-content {
		overflow: visible;
		clip-path: inset(0 0 -5px 0);
	}
	/* a phone shorter than the form (375x553: the form runs to 603) grows the panel with it, so the clip above follows
	   the panel's real bottom and #popup-dec scrolls to Submit; each step keeps at least the screen's height, so the
	   mountains, trees and yeti stay on the screen's bottom edge where the form fits */
	#popup-dec.popup {
		align-items: flex-start;
	}
	#popup-dec .popup-content {
		height: auto;
		min-height: 100dvh;
		max-height: none;
		margin-bottom: auto;
	}
	#popup-dec .popup-default,
	#popup-dec .popup-game,
	#popup-dec .popup-thanks {
		min-height: 100dvh;
	}
}
/* (verify round 2) the card prize needs 50 + 449 + 183 = 682px: on a shorter phone the panel grew past the screen and
   scrolled, so the mountains and the thumbs-up yeti fell under the fold (375x553: 127px under it; 390x664: 16px). In
   steps of the screen's height the card shrinks (its "Check your email" overlap with it shrinking alike) and, under
   620px, the yeti and the room kept for it under Keep Shopping (183px, as the 692 frame) shrink together, so the block
   still ends clear of the yeti and the panel stays the screen's height with the art on its bottom edge */
@media (max-width: 567px) and (max-height: 679px) {
	#popup-dec .popup-thanks:not([data-prize="gift"]) {
		--prize-z: 0.86;
		--yeti-z: 1;
	}
	#popup-dec .popup-thanks:not([data-prize="gift"]) .dec-prize {
		zoom: var(--prize-z);
	}
	#popup-dec .popup-thanks:not([data-prize="gift"]) .dec-check {
		margin-top: calc(-13.45px * var(--prize-z));
	}
	#popup-dec .popup-thanks:not([data-prize="gift"]) .dec-thanks-yeti {
		zoom: var(--yeti-z);
	}
	#popup-dec .popup-thanks:not([data-prize="gift"])::after {
		min-height: calc(183px * var(--yeti-z) - 4.7vh);
	}
}
@media (max-width: 567px) and (max-height: 659px) {
	#popup-dec .popup-thanks:not([data-prize="gift"]) {
		--prize-z: 0.71;
	}
}
@media (max-width: 567px) and (max-height: 619px) {
	#popup-dec .popup-thanks:not([data-prize="gift"]) {
		--prize-z: 0.7;
		--yeti-z: 0.8;
	}
}
@media (max-width: 567px) and (max-height: 579px) {
	#popup-dec .popup-thanks:not([data-prize="gift"]) {
		--prize-z: 0.62;
		--yeti-z: 0.7;
	}
}
/* a phone shorter than the form (375x553: six 69px field rows and Submit 25px under them end at 603): the rows' 8px
   padding and Submit's gap tighten (4px, 18px) so Submit ends at 548 and the form fits the screen; the panel then is
   the screen's height and the mountains sit on its bottom edge, not below the fold */
@media (max-width: 567px) and (max-height: 602px) {
	#popup-dec {
		/* 2px (Nov 26 verify): with the title kept 48px under the screen's top, clear of the close X, the six rows give
		   up 24px more so Submit still ends on the 553px screen */
		--form-field-padding: 2px 0px;
		--form-field-padding-mobile: 2px 0px;
		--submit-dist: 18px;
	}
}
