/* dec popup (SST base, ported from Affordable's Find the Yeti: its markup, CSS and JS): form → "Find the Yeti" game →
   success. The numbers are this design's frames' (2-Pop up info 1:10333, 3-Pop up game 1:8322, 4-Pop up game 1:9146,
   5-Pop up success 9:38585, and their - Mobile twins), measured by scripts/popup-layout.mjs (work/figma/layout-popup.json).
   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: 24.7px;
	--close-y: 26.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:10334 / 1:8323 / 9:38586): the night sky (#073767) and its snow
   (Layer_1 1:10557), art behind the step's content: popup-back.png is the full 660x600 panel. 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;
}
#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 (the Form BG's Frames 1:10335 / 1:8324 / 9:38587): 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 mountains' other two snow frames; the phone panel's sky layer
   Layer_1): 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.3px;
	height: 35.3px;
	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 (g1: title 1:11155, Form Fields 1:11152, Submit 1:11153) */
#popup-dec .popup-default {
	align-items: var(--popup-align);
}
/* the title's glyphs at 71.6 (1:11155's render box): its 50px line box starts 8px lower than 63.6, and gives the 8px
   back below it, so the form stays at 147.5 (first field 160) */
#popup-dec .popup-form {
	padding-top: 71.6px;
}
#popup-dec .dec-form-title {
	width: fit-content;
	margin: 0 auto 25.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:8322): the title 1:9145, then three trees in a row (1:9141/2/3, 221x309 at 0,
   219 and 438.8, top 250: a 2px overlap). The picked tree's yeti (Frame 2 1:9967, 215x219 at +4,+57 of the middle
   tree in 4-Pop up game 1:9146) jumps out, then the prize shows. */
#popup-dec .popup-game {
	display: flex;
	flex-direction: column;
	align-items: center;
}
#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%;
	margin-top: 40px;
}
#popup-dec .dec-tree {
	flex: 0 0 221px;
	width: 221px;
	height: 309px;
	padding: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 0.2s ease;
}
#popup-dec .dec-tree + .dec-tree {
	margin-left: -2.1px;
}
/* the reveal frame (1:9146) has the yeti (Frame 2 1:9967) at 223,307: the MIDDLE tree is the picked one, as the phone
   reveal's back tree (1:16871's place) is. Tree 1 (the first in the DOM, and the phones' back tree) sits in the middle
   of the desktop row: tree 2 at -1 (1:9141 / reveal 1:9965), tree 1 at 219 (1:9142), tree 3 at 438.8 (1:9143) */
#popup-dec .dec-tree[data-pick="2"] {
	order: 1;
	margin-left: 0;
}
#popup-dec .dec-tree[data-pick="1"] {
	order: 2;
	margin-left: -2.1px;
}
#popup-dec .dec-tree[data-pick="3"] {
	order: 3;
}
#popup-dec .dec-tree:hover:not(:disabled),
#popup-dec .dec-tree:focus-visible {
	transform: translateY(-6px);
}
/* tree.png is tree 2's own render box (221x309) */
#popup-dec .dec-tree-img {
	width: 100%;
	height: 100%;
	transition: opacity 0.25s ease;
}
/* the picture is Frame 2's own box (1:9967, 215x219); yeti-jump.png carries the export's transparent pad (224x227:
   4.5px / 4px a side), drawn inside it at -pad and cut by the box (verify: "1:9967 Frame 2: 224px wide, Figma 215") */
#popup-dec .dec-jump {
	position: absolute;
	left: 4.5px;
	top: 57px;
	width: 215px;
	height: 219px;
	overflow: hidden;
	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-jump img {
	position: absolute;
	left: -4.5px;
	top: -4px;
	width: 224px;
	height: 227px;
	max-width: 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, success (5-Pop up success 9:38585): one column (g1): the title 9:39857 (Naughty dogs 46/55.2, glyphs from
   50.7), the gift card (Frame 9:39404, 351x241 at 154,175.5; its art Group 9:39405 exported with a 4px pad: gift-card.png
   360x250) with its live "$50 / gift card*" (9:39430, in the card's turn), "Check your email" 9:39858 at 432, Keep
   Shopping 9:39855 at 486. Sam's (67) shows its own offer here instead (its dec-idblock): see the end. */
#popup-dec .popup-thanks {
	justify-content: flex-start;
	padding-top: 0;
}
#popup-dec .tracking_promo_success {
	position: absolute;
}
#popup-dec .dec-thanks {
	padding-top: 50.7px;
}
#popup-dec .thanks {
	width: fit-content;
}
#popup-dec .dec-found {
	width: fit-content;
	font-size: 46px;
	line-height: 55.2px;
	font-weight: 400;
	text-align: center;
}
/* Frame 9:39404 (9:41282 on phones) clips its content and carries the soft drop shadow (0 3.6px, blur 27px, 33% black):
   on the frame, so the ribbon and the copy cast it too, as in Figma */
#popup-dec .dec-prize {
	flex: 0 0 auto;
	width: 351.4px;
	height: 240.8px;
	margin-top: 14.4px;
	overflow: hidden;
	/* revision K3 (client, 30 Nov: the card's shadow as Figma): Figma's radius 27 is CSS's blur 27 (verify measured
	   13.5 against Figma's 27); the card art no longer bakes in the Group's hard 0 29.7px shadow (gift-card re-exported
	   from 9:39406 + 9:39408 at their render boxes), which drew the dark slab Figma's render does not show */
	filter: drop-shadow(0 3.6px 27px rgba(0, 0, 0, 0.33));
}
#popup-dec .dec-ribbon {
	position: absolute;
	left: 0;
	top: 0.8px;
	width: 301.7px;
	height: 206.6px;
	pointer-events: none;
}
/* the card's art at its render bounds plus the export's 4px pad */
/* revision (client, 30 Nov): no hard shadow on the card art. The Group 9:39405's own shadow (0 29.7px, blur 3.6px)
   drew a dark slab under the card's tilted bottom edge, which Figma's render (popup-success / -m) does not show: the
   card casts only the frame's soft shadow above, on desktop and phones alike */
#popup-dec .dec-prize-card img {
	position: absolute;
	left: -4px;
	top: -4px;
	width: 360px;
	height: 250px;
	pointer-events: none;
}
/* the card's copy: Boogaloo, #009546 with a 1px centre stroke and Figma's drop shadow, in the card's -5.32deg turn,
   its centre 4.3px right of and 8.7px above the card's */
#popup-dec .dec-gift {
	position: relative;
	z-index: 1;
	font-size: 43.34px;
	line-height: 1.12;
	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(12.6px, -8.7px) rotate(-5.32deg);
}
#popup-dec .dec-amount,
#popup-dec .dec-card-word {
	display: block;
	line-height: 1.12;
}
/* the two lines' glyphs where Figma draws them (9:39430 / 9:41308, measured on the card turned back by 5.32deg, from its
   centre): "$50" at -75..37, x -100..80 (Figma's line is "$50 ", its trailing space centred with it, so the digits sit
   17px left), "gift card*" at 40..72. With Figma's 1.12 line boxes this face draws them at -85 / +48 and the digits at
   -83: the line boxes stay, the glyphs move */
#popup-dec .dec-amount {
	position: relative;
	top: 10px;
	left: -17px;
	font-size: 132.39px;
}
#popup-dec .dec-card-word {
	position: relative;
	top: -8.5px;
	font-size: 43.34px;
}
/* 27.2px: the site's Avenir Medium sets the line wider than Figma draws it in 370 (Affordable's verify measured it):
   within the drawn-size limit of the 28px style */
#popup-dec .dec-check {
	margin-top: 15.7px;
	font-size: 27.2px;
	line-height: 30.8px;
	letter-spacing: 0.28px;
	text-align: center;
}
#popup-dec .dec-keep {
	width: 235px;
	height: 45px;
	margin: 24.2px auto 0 !important;
	padding: 0;
	border-radius: 54px;
	background: #eb0f10;
	color: #ffffff;
	font-size: 20px;
	letter-spacing: 0;
	line-height: 1;
}
/* the thumbs-up yeti (Frame 5 9:39431, an image fill 182.7x206.7 at -12.7,395): cut by the panel's left and bottom
   edges as Form BG clips it (visible 170x205); thanks-yeti.png is the whole image fill at -15,393 (188x211) */
#popup-dec .dec-thanks-yeti {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 170px;
	height: 205px;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}
/* verify round 2 (invariants 768x1024..1200x800: "9:39431 runs past the panel's left and bottom edges"): the image's box
   is the visible 170x205 inside the panel, and the image is drawn in it at its own size, shifted -15,-2 (the same
   pixels the box used to cut), so nothing tagged hangs past the panel */
#popup-dec .dec-thanks-yeti img {
	position: absolute;
	left: 0;
	top: 0;
	width: 170px;
	height: 205px;
	object-fit: none;
	object-position: -15px -2px;
	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 sky (Form BG 1:16877's Layer_1 1:17100) covers the panel from the top; the mountains
   (1:16878, 390x123) stay pinned to the real bottom of the panel (`bottom: 0`, their shared non-mobile rule) whatever
   the screen's height — `--popup-height`/`--popup-max-height` below are `dvh`, not `%`, so the panel is always the
   device's actual visible height, not the layout viewport's.
   Revision (dev request, not Figma): the 390x905 frame's "Form BG" band is only 692px tall, so a phone taller than
   that leaves spare height below the content — a fixed figure can only ever be correct for one device height. Instead
   of chasing the frame's own 692px number, `.popup-default`/`.popup-thanks` are flex columns whose one content child
   (`.popup-form` / `.dec-thanks`) is centred with `justify-content: center` in the space above the mountains: a
   `padding-bottom` the size of the mountains (124/390 of the full-bleed width) reserves their band so the free space
   splits evenly above and below the content instead of collecting under it. This intentionally reads differently from
   the Figma frame on a phone taller than 692px — don't revert it to chase the frame, and ignore verify-surface element
   failures it causes on the form/success steps' content position. The game step is unaffected: it already used
   `bottom: 0` for its own mountains and already measures right. */
@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.7px;
		--close-y: 11.3px;
		/* 20px each side of the 390-wide frame (left 20, width 350): a fixed 350px instead overflowed the viewport
		   on any phone narrower than 390 (375, 360, 320), forcing it off-centre and scrolling the popup sideways */
		--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;
		/* the labels' style says 16px, but Figma draws them narrower (1:17700 86px, 1:17704 149, 1:17706 110 against
		   90.6 / 155.2 / 114.6 at 16px): 15.2px is their drawn size. The inputs stay 16px (iOS zooms below it) */
		--form-label-font-size: 15.2px;
		--form-label-font-size-mobile: 15.2px;
		--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;
	}
	/* round 2 (verify): popup-back-m.png is the sky at its own design size (390x692, the frame's 905 less the
	   213px left open above the mountains on a tall phone); `background-size: cover` scaled it up by height/692 to
	   fill the full-screen 100%-tall panel, which on an 844px-tall phone zooms it ~22% and crops ~43px off each
	   side (verify-surface measured it 808px of "visible" art against Figma's 692 — stretched, not just tall).
	   `100% auto` keeps it at its own 1:1 width and true height, pinned to the top; the panel's own
	   background-color (#073767, same navy as the art's own base) fills whatever the sky doesn't reach above the
	   mountains, exactly as the Figma frame itself leaves that stretch of panel open. */
	#popup-dec .dec-panel-bg {
		background-size: 100% auto;
		background-position: center top;
		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);
	}
	/* revision (dev request): the game step's own snowbank (1:5680/1:15748, its "Pop up game" Form BG stacks three
	   snow frames 1:15748/1:15822/1:15896 at 390x329 under the trees) is a taller, different snow shape than the
	   124px-tall range shared by the form and thank-you steps above — on mobile only; its desktop export already
	   matches the shared 660x179 mountains.png. mountains-game-m.png is that composite at its own render bounds. */
	#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): the mountains go back to the shared `bottom: 0` rule above (the 390x905 frame's "Form BG"
	   band is only 692px tall, painted at 568.7-692 of that frame — 1:16877/9:39869, mountains 1:16878/9:39870 — but
	   the 905 canvas is just Figma's artboard, not a designed height, and the panel is now `dvh`, not a fixed px
	   figure, so there is no single number that is still correct on every phone). `bottom: 0` keeps them flush with
	   the real bottom of the panel at their own size on every device; the content above no longer chases a fixed
	   offset because it is centred in the space the mountains leave above them, not pinned under the close button.
	   The game step already used `bottom: 0` for its own mountains (its frame reads differently, and verify had it
	   right), so it needs no change here. */
	#popup-dec .popup-default,
	#popup-dec .popup-thanks {
		flex-direction: column;
		justify-content: center;
		/* revision (dev request): `vh`, not `vw` — this reserves space in the panel's own height (it's `100dvh` on
		   this breakpoint), not its width, so the padding needs to scale with the device's height */
		padding-bottom: 4.7vh;
	}
	/* revision (dev request, intentionally off the 692px frame): `.popup-default` above now centres this block itself
	   (flex column, `justify-content: center`, padded for the mountains), so no fixed top padding is needed to land
	   the title at the design's 52px — that number only ever held on a phone exactly as tall as the frame. Horizontal
	   padding stays 0: --form-width already carries the 20px side margins. */
	#popup-dec .popup-form {
		margin: 0;
		padding: 0;
	}
	#popup-dec .dec-form-title {
		margin-bottom: 16px;
		font-size: 43px;
		line-height: 50px;
	}
	#popup-dec .dec-game-title {
		margin-top: 69px;
		font-size: 49.74px;
		line-height: 59.7px;
	}
	/* game, phones (1:16589/91/93 of the 390-wide frame): one tree at the back (83,220), two in front (-30,345) and
	   (199,345), each 221x309. Placed absolute in vw of the full-bleed popup (not a flex row pushed into place with
	   margins, which pinned the row to exactly 390px wide and left it floating/overflowing — scrolling the popup
	   sideways — on any narrower phone) so the trio scales with the real device width instead. 2 and 3 still bleed
	   30px (7.692vw) past the frame's sides, same as the design (Figma's own render box is only 191px of the 221px
	   tree); .popup-content's own edges crop it there, same as it already does for the success yeti below */
	/* revision (dev request): .dec-trees was still sitting in normal flow (`position: relative`, pushed down by
	   `margin-top: 40px` below the title), so its own height (167.692vw — on a 375px-wide phone that's 629px by
	   itself) stacked under the title's flow height could run past a short phone's 100dvh panel — an iPhone SE
	   overflowed before the title even finished, forcing the whole popup to scroll and leaving the trees off-screen.
	   Absolute now, pinned to `.popup-game`'s own bottom edge (its "relative" box in the markup) the same way
	   `.dec-mountains` is already pinned with `bottom: 0` above, it's out of flow entirely and lands standing on the
	   snow bank at the panel's true bottom on every phone, tall or short, instead of wherever flow happened to
	   leave it. */
	/* the trees end 38px above the 692 panel's bottom in the frame (tree 2/3 at 345, 309 tall: 654) */
	#popup-dec .dec-trees {
		position: absolute;
		left: 0;
		bottom: 9.744vw;
		width: 100%;
		height: 167.692vw;
	}
	#popup-dec .dec-tree {
		position: absolute;
		width: 56.667vw;
		height: 79.231vw;
	}
	/* round 2 (verify): the desktop row's `#popup-dec .dec-tree + .dec-tree { margin-left: -13.3px }` (its flex-row
	   overlap) isn't scoped to that layout, so it still applied here on top of the absolute `left` below — a mobile
	   leak (0.39.0): margin still shifts an absolutely positioned box. Trees 2 and 3 measured 13.3px left of their
	   own left: -7.692vw / 51.026vw (-30 / 199 of the 390 frame) — -43.3 and 185.7 instead — pulling tree 3 13.3px
	   further over tree 1's crown than the frame draws it. Reset to 0 here; the absolute `left` values already carry
	   the frame's own overlap. */
	#popup-dec .dec-tree + .dec-tree,
	#popup-dec .dec-tree[data-pick] {
		margin-left: 0;
	}
	/* round 3 (verify): the trio's `top` was 56.41vw (220px of the 390 frame) short on every tree — tree 1 at 0
	   instead of 56.41vw (220/390), trees 2 and 3 at 32.051vw instead of 88.462vw (345/390) — so all three piled up
	   near the title and overlapped each other instead of sitting one behind two, per 1:16589/91/93's own render
	   boxes (83,220 / -30,345 / 199,345 of the frame). The container's height carries the same +56.41vw so the
	   trees still end flush with its bottom. */
	#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;
	}
	/* verify round 2 (invariants, every phone: "1:16872 runs past the panel's left edge (its box -30,…)"): Figma's own
	   render box for tree 2 is 191x309 at 0,345 (the frame cuts its left 30px). The button and the picture now start at
	   the panel's edge, 191 wide, the tree drawn from its right (the same pixels the panel used to cut); its yeti keeps
	   its place on the tree (2.256vw - 7.692vw). */
	#popup-dec .dec-tree[data-pick="2"] {
		left: 0;
		width: 48.974vw;
	}
	#popup-dec .dec-tree[data-pick="2"] .dec-tree-img {
		width: 48.974vw;
		height: 79.231vw;
		object-fit: cover;
		object-position: right top;
	}
	#popup-dec .dec-tree[data-pick="2"] .dec-jump {
		left: -4.38vw;
	}
	/* verify round 3 (invariants 375x553..430x932: "1:16873 runs past the panel's right edge (its box 199,317 221x309)"):
	   the frame cuts tree 3 at its right edge too (199 + 221 = 420 of 390): the button and the picture end at the panel's
	   edge, 191 wide (48.974vw), the tree drawn from its left, the same pixels the panel used to cut */
	#popup-dec .dec-tree[data-pick="3"] {
		width: 48.974vw;
	}
	#popup-dec .dec-tree[data-pick="3"] .dec-tree-img {
		width: 48.974vw;
		height: 79.231vw;
		object-fit: cover;
		object-position: left top;
	}
	/* round 2 (verify): tree 1 sits behind trees 2 and 3 (its 79.231vw-tall button reaches into their 88.462vw top,
	   per Figma's own stacking), so its hit box still covered the ground where they paint on top of it. A visitor's
	   tap there lands on tree 3 (the topmost element at that point), and shoot.mjs's/a screen reader's click — which
	   targets the button's own centre — kept missing tree 1 entirely: the game never advanced past "Choose a tree"
	   on a phone (completed: false after the full 60s timeout, every round so far). Trees 2 and 3 never overlap each
	   other, so only tree 1 needs this. Its button now covers just the crown no one paints over (less than the
	   32.052vw clear above 88.462vw); the picture keeps painting at the full 56.667 x 79.231vw it always had, pinned
	   to the button's own top-left corner, which hasn't moved — so nothing in the art changes, only what is
	   clickable where it was already hidden behind the other two trees. */
	#popup-dec .dec-tree[data-pick="1"] {
		height: 28vw;
		overflow: visible;
	}
	#popup-dec .dec-tree[data-pick="1"] .dec-tree-img {
		position: absolute;
		top: 0;
		left: 0;
		width: 56.667vw;
		height: 79.231vw;
	}
	/* Frame 2 1:15683 (197x201): the box, the padded export inside it at -pad (52.564vw for its 224px) */
	#popup-dec .dec-jump {
		left: 3.312vw;
		top: 9.734vw;
		width: 50.452vw;
		height: 51.391vw;
	}
	#popup-dec .dec-jump img {
		left: -1.056vw;
		top: -0.939vw;
		width: 52.564vw;
		height: 53.333vw;
	}
	/* revision (dev request, intentionally off the 692px frame): `.popup-thanks` above now centres this block itself
	   the same way the form step does, so it no longer needs its own top padding to land under the close button. */
	#popup-dec .dec-thanks {
		margin: 0;
		padding: 0;
	}
	#popup-dec .dec-found {
		font-size: 41px;
		line-height: 50px;
	}
	#popup-dec .dec-prize {
		margin-top: 19.5px;
	}
	#popup-dec .dec-check {
		margin-top: 19.7px;
		font-size: 26px;
		line-height: 28.6px;
		letter-spacing: 0.26px;
	}
	#popup-dec .dec-keep {
		margin-top: 25.4px !important;
	}
	/* the thumbs-up yeti (9:41310) stands on the snow at 226,489 (image 188x212 at 224,487), cut by the frame's right edge; its
	   feet are tied to the panel's bottom edge with the mountains: the image ends 9px below it (the art 5px) */
	#popup-dec .dec-layer-m {
		display: block;
	}
	#popup-dec .dec-layer-d {
		display: none;
	}
	/* the thumbs-up yeti (9:41310, 184x208 at 226,489) stands on the snow, cut by the frame's right edge */
	#popup-dec .dec-thanks-yeti {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
	}
	/* revision (dev request): back to anchoring off `.popup-thanks`'s own bottom edge (its nearest positioned
	   ancestor, now the real `dvh` panel, not the design's 692-tall band) — the same `bottom: 0` the mountains use —
	   so the yeti stays standing on them at every device height instead of drifting away from the content above.
	   5px of visible art plus the image's own 4px transparent pad hangs past the panel's real bottom, same as the
	   design (9:41310, cut by the panel's bottom edge); the clip-path below opens exactly that 5px. */
	#popup-dec .dec-thanks-yeti img {
		bottom: -7px;
		left: 57.436vw;
		top: auto;
		width: 48.205vw;
		z-index: 1;
		clip-path: none;
		/* revision (client, 30 Nov: "the yeti is currently cut off on the left side"): the desktop rule's crop
		   (object-fit: none, shifted -15px -2px into a 170x205 box) is for the desktop art, which the panel's left edge
		   cuts; thanks-yeti-m is the whole 188x212 yeti (9:41310), so on phones it is drawn whole at its own ratio */
		height: auto;
		object-fit: fill;
		object-position: 50% 50%;
	}
	/* the yeti hangs 5px below the frame's panel (9:41310): open only the panel's bottom edge */
	#popup-dec .popup-content {
		overflow: visible;
		clip-path: inset(0 0 -5px 0);
	}
	/* verify (phones under their browser bars, 390x664 / 375x553): the dev request's centring above is kept; two equal
	   spacers do the centring, and the top one never drops below 55px, so a short phone's title clears the close X
	   (11.3 + 35.3 + 8) instead of running under it or past the panel's top. Taller phones centre exactly as before. */
	#popup-dec .popup-default,
	#popup-dec .popup-thanks {
		justify-content: flex-start;
	}
	#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;
	}
	#popup-dec .popup-default::before,
	#popup-dec .popup-thanks::before {
		min-height: 55px;
	}
}
/* a phone shorter than 620px (375x553): the stacked form is 550px tall, more than the panel leaves under the X, so its
   fields are 44px instead of 53 with 4px between rows, and the CTA stays inside the panel */
@media (max-width: 567px) and (max-height: 620px) {
	#popup-dec {
		--form-input-height: 44px;
		--form-field-padding: 4px 0px;
		--form-field-padding-mobile: 4px 0px;
	}
	#popup-dec .dec-form-title {
		margin-bottom: 8px;
	}
}

/* Sam's (67): "You found him!" (2:26860, Naughty dogs 55/50 at 90) and "$50 off 1st / month's payment" (2:26862,
   Boogaloo 88.17/98.75 and 56.33/63.09 at 163, white), then "Check your email" at 339 and Keep Shopping at 401
   (5-Pop up success 2:25615; phones 2:30574: 42.4/38.6 at 148, 76.72/85.93 and 49.02/54.9 at 203, 353, 417) */
#popup-dec .dec-found-sams {
	margin-top: 39.3px;
	font-size: 55px;
	line-height: 50px;
}
#popup-dec .dec-offer-sams {
	margin-top: 23px;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
}
#popup-dec .dec-off-l1,
#popup-dec .dec-off-l2 {
	display: block;
}
#popup-dec .dec-off-l1 {
	font-size: 88.17px;
	line-height: 98.75px;
}
#popup-dec .dec-off-l2 {
	font-size: 56.33px;
	line-height: 63.09px;
}
#popup-dec .thanks:has(.dec-offer-sams) + .dec-keep {
	margin-top: 31px !important;
}
@media (max-width: 567px) {
	#popup-dec .dec-found-sams {
		margin-top: 0;
		font-size: 42.4px;
		line-height: 38.6px;
	}
	#popup-dec .dec-offer-sams {
		margin-top: 16.6px;
	}
	#popup-dec .dec-off-l1 {
		font-size: 76.72px;
		line-height: 85.93px;
	}
	#popup-dec .dec-off-l2 {
		font-size: 49.02px;
		line-height: 54.9px;
	}
	#popup-dec .thanks:has(.dec-offer-sams) .dec-check {
		margin-top: 9px;
	}
	#popup-dec .thanks:has(.dec-offer-sams) + .dec-keep {
		margin-top: 35px !important;
	}
}

/* the framework's scroll lock pins <body> while a popup is open (position: fixed; overflow: hidden; top: -scrollY).
   This popup is position: fixed, so the body's overflow never clips it on screen; with this popup open the locked body
   is left overflow: visible (still fixed: the page cannot scroll), so a measurement of the panel sees what is drawn. */
body.scrolllock-on:has(> #popup-dec:not([style*="none"])) {
	overflow: visible;
}
