/**
 * Halloween Premium — reference-matched seasonal event styles
 * Uses real illustration assets in assets/img/halloween/
 */

.tcbp-overlay.tcbp-season-halloween {
	--tcbp-halloween-orange: #f97316;
	--tcbp-halloween-ember: #fb923c;
	--tcbp-halloween-gold: #fbbf24;
	--tcbp-halloween-purple: #7c3aed;
	--tcbp-halloween-magenta: #d946ef;
	--tcbp-halloween-night: #12061c;
	--tcbp-hw-hat-size: 5.75rem;
	--tcbp-hw-pumpkin-size: 5.9rem;
	--tcbp-hw-ghost-size: 3.5rem;
	--tcbp-hw-moon-size: 7.25rem;
	--tcbp-hw-decor-opacity: 1;
	background:
		radial-gradient(ellipse at 14% 8%, rgba(249, 115, 22, 0.2), transparent 42%),
		radial-gradient(ellipse at 86% 92%, rgba(168, 85, 247, 0.28), transparent 46%),
		radial-gradient(ellipse at 50% 45%, rgba(42, 10, 58, 0.55), transparent 68%),
		rgba(8, 3, 14, 0.96);
}

.tcbp-overlay.tcbp-season-halloween.tcbp-hw-intensity--subtle {
	--tcbp-hw-hat-size: 4.6rem;
	--tcbp-hw-pumpkin-size: 4.8rem;
	--tcbp-hw-ghost-size: 2.8rem;
	--tcbp-hw-moon-size: 6.25rem;
	--tcbp-hw-decor-opacity: 0.72;
}

.tcbp-overlay.tcbp-season-halloween.tcbp-hw-intensity--bold {
	--tcbp-hw-hat-size: 6.5rem;
	--tcbp-hw-pumpkin-size: 6.6rem;
	--tcbp-hw-ghost-size: 3.9rem;
	--tcbp-hw-moon-size: 7.85rem;
	--tcbp-hw-decor-opacity: 1;
}

.tcbp-season-halloween .tcbp-popup--halloween {
	overflow: visible;
	max-width: min(100%, 432px);
	filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(249, 115, 22, 0.12));
}

.tcbp-season-halloween .tcbp-popup-glow {
	background: linear-gradient(135deg, #f97316, #e879f9, #7c3aed, #fb923c, #a21caf);
	background-size: 280% 280%;
	opacity: 0.92;
}

.tcbp-season-halloween .tcbp-popup-inner--halloween {
	position: relative;
	overflow-x: clip;
	overflow-y: visible;
	isolation: isolate;
	padding: 1.55rem 1.1rem 1.25rem;
	background:
		radial-gradient(ellipse at 18% 0%, rgba(249, 115, 22, 0.14), transparent 42%),
		radial-gradient(ellipse at 88% 8%, rgba(124, 58, 237, 0.16), transparent 40%),
		radial-gradient(ellipse at 50% 100%, rgba(88, 28, 135, 0.28), transparent 45%),
		linear-gradient(168deg, #221033 0%, #14081f 38%, #1a0a24 72%, #100617 100%);
	border-color: color-mix(in srgb, #f97316 34%, rgba(217, 70, 239, 0.32));
	box-shadow:
		0 0 0 1px rgba(249, 115, 22, 0.22),
		0 1px 0 rgba(255, 220, 180, 0.12) inset,
		0 -1px 0 rgba(0, 0, 0, 0.35) inset,
		0 24px 48px rgba(4, 1, 10, 0.62),
		0 0 48px rgba(249, 115, 22, 0.12),
		0 0 84px rgba(168, 85, 247, 0.14);
}

.tcbp-hw-intensity--bold .tcbp-popup-inner--halloween {
	box-shadow:
		0 0 0 1px rgba(249, 115, 22, 0.32),
		0 1px 0 rgba(255, 220, 180, 0.16) inset,
		0 28px 56px rgba(4, 1, 10, 0.72),
		0 0 80px rgba(249, 115, 22, 0.22),
		0 0 130px rgba(168, 85, 247, 0.24);
}

.tcbp-season-halloween .tcbp-popup--premium::before {
	background:
		radial-gradient(ellipse at 50% 20%, rgba(249, 115, 22, 0.3), transparent 60%),
		radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.24), transparent 55%);
	opacity: 0.75;
}

/* Stage decorations inside popup */
.tcbp-halloween-decor {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
	opacity: var(--tcbp-hw-decor-opacity);
}

.tcbp-hw-asset,
picture.tcbp-hw-asset {
	display: block;
	position: absolute;
	pointer-events: none;
	user-select: none;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	line-height: 0;
}

.tcbp-hw-asset img,
picture.tcbp-hw-asset img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}

.tcbp-hw-asset--moon {
	top: -1.35rem;
	left: -2.35rem;
	width: var(--tcbp-hw-moon-size);
	opacity: 0.48;
	filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.22));
	z-index: 0;
	mask-image:
		linear-gradient(180deg, #000 28%, transparent 78%),
		linear-gradient(90deg, #000 42%, transparent 92%);
	mask-composite: intersect;
	-webkit-mask-image:
		linear-gradient(180deg, #000 28%, transparent 78%),
		linear-gradient(90deg, #000 42%, transparent 92%);
	-webkit-mask-composite: source-in;
}

.tcbp-hw-asset--branches {
	top: -0.35rem;
	right: -1.6rem;
	width: 6.75rem;
	opacity: 0.42;
	z-index: 0;
	filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.22)) saturate(0.7) brightness(0.85);
}

.tcbp-hw-asset--bat {
	width: 2.4rem;
	opacity: 0.78;
	animation: tcbp-hw-bat-flit 7s ease-in-out infinite;
	z-index: 1;
}

.tcbp-hw-asset--bat-1 {
	top: 10%;
	right: 18%;
	animation-delay: 0.2s;
}

.tcbp-hw-asset--bat-2 {
	top: 22%;
	left: 42%;
	width: 1.85rem;
	opacity: 0.55;
	animation-delay: 1.8s;
}

.tcbp-hw-asset--bat-3 {
	top: 16%;
	right: 8%;
	width: 1.55rem;
	opacity: 0.45;
	animation-delay: 3.2s;
}

.tcbp-hw-asset--ground {
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	opacity: 0.38;
	z-index: 0;
	filter: blur(0.35px) saturate(0.85) brightness(0.9);
	mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
}

.tcbp-hw-sparkle {
	position: absolute;
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: #fde68a;
	box-shadow: 0 0 10px rgba(251, 191, 36, 0.85);
	opacity: 0.5;
	animation: tcbp-hw-sparkle-twinkle 2.8s ease-in-out infinite;
	z-index: 2;
}

.tcbp-hw-sparkle--1 { top: 34%; left: 14%; }
.tcbp-hw-sparkle--2 { top: 48%; right: 16%; animation-delay: 1s; width: 0.28rem; height: 0.28rem; }
.tcbp-hw-sparkle--3 { bottom: 26%; left: 28%; animation-delay: 1.7s; opacity: 0.35; }

/* Content above stage — never force close into flow */
.tcbp-popup-inner--halloween > .tcbp-preview-note,
.tcbp-popup-inner--halloween > .tcbp-premium-stack,
.tcbp-popup-inner--halloween > .tcbp-exit-tag,
.tcbp-popup-inner--halloween > .tcbp-title,
.tcbp-popup-inner--halloween > .tcbp-description,
.tcbp-popup-inner--halloween > .tcbp-cta,
.tcbp-popup-inner--halloween > .tcbp-premium-breakdown,
.tcbp-popup-inner--halloween > .tcbp-premium-social-proof,
.tcbp-popup-inner--halloween > .tcbp-premium-footer {
	position: relative;
	z-index: 2;
}

.tcbp-popup-inner--halloween > .tcbp-close {
	position: absolute !important;
	top: 0.7rem !important;
	right: 0.7rem !important;
	left: auto !important;
	bottom: auto !important;
	z-index: 50 !important;
	width: 2.2rem;
	height: 2.2rem;
	background: rgba(10, 6, 18, 0.72);
	border-color: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
}

.tcbp-season-halloween .tcbp-premium-stack--halloween {
	gap: 0.75rem;
	width: 100%;
	max-width: 100%;
	padding-top: 0.15rem;
	box-sizing: border-box;
}

.tcbp-season-halloween .tcbp-premium-stack--halloween > .tcbp-premium-bonus-card,
.tcbp-season-halloween .tcbp-premium-stack--halloween > .tcbp-countdown-wrap,
.tcbp-season-halloween .tcbp-premium-stack--halloween > .tcbp-premium-cta-wrap {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

/* Offer tag */
.tcbp-season-halloween .tcbp-offer-tag--halloween {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.42rem 0.95rem 0.42rem 0.55rem;
	border-color: rgba(249, 115, 22, 0.55);
	background: linear-gradient(180deg, rgba(249, 115, 22, 0.34) 0%, rgba(124, 58, 237, 0.22) 100%);
	color: #ffd7a8;
	font-size: 0.6rem;
	letter-spacing: 0.15em;
	text-shadow: 0 0 14px rgba(249, 115, 22, 0.5);
	box-shadow:
		0 1px 0 rgba(255, 230, 200, 0.14) inset,
		0 6px 18px rgba(249, 115, 22, 0.28);
}

.tcbp-offer-tag-icon {
	width: 1.15rem;
	height: 1.15rem;
	object-fit: contain;
	filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.55));
}

.tcbp-season-halloween .tcbp-headline {
	position: relative;
	z-index: 3;
	font-family: var(--tcbp-font) !important;
	font-weight: 800 !important;
	font-style: normal !important;
	letter-spacing: 0.012em;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.75),
		0 0 18px rgba(0, 0, 0, 0.55),
		0 0 24px rgba(249, 115, 22, 0.22);
}

.tcbp-season-halloween .tcbp-subtitle {
	position: relative;
	z-index: 3;
	color: rgba(230, 210, 240, 0.82);
	font-family: var(--tcbp-font) !important;
}

.tcbp-season-halloween .tcbp-premium-tag-row,
.tcbp-season-halloween .tcbp-premium-hero {
	position: relative;
	z-index: 3;
}

/* Bonus centerpiece — relative context for pumpkin/hat/ghost */
.tcbp-overlay--premium.tcbp-season-halloween .tcbp-bonus-card--halloween,
.tcbp-season-halloween .tcbp-bonus-card--halloween {
	position: relative;
	width: 100%;
	max-width: 100%;
	/* Reserve bottom space so pumpkin overhang never collides with countdown. */
	margin: 1.05rem 0 calc(0.55rem + (var(--tcbp-hw-pumpkin-size) * 0.38));
	padding: 0;
	overflow: visible;
	isolation: isolate;
	z-index: 1;
}

.tcbp-season-halloween .tcbp-bonus-card-glow {
	inset: -8px;
	background: linear-gradient(135deg, #f97316, #fb923c, #c026d3, #7c3aed);
	background-size: 240% 240%;
	opacity: 0.55;
	filter: blur(14px);
}

.tcbp-season-halloween .tcbp-bonus-card-border {
	background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(217, 70, 239, 0.72), rgba(124, 58, 237, 0.9));
	background-size: 240% 240%;
}

.tcbp-season-halloween .tcbp-bonus-card-inner {
	min-height: 7.6rem;
	padding: 1.45rem 1.1rem 1.2rem;
	border-radius: 22px;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.2), transparent 55%),
		linear-gradient(160deg, rgba(78, 28, 110, 0.78) 0%, rgba(36, 12, 56, 0.92) 48%, rgba(16, 8, 28, 0.97) 100%);
	border-color: color-mix(in srgb, #f97316 48%, rgba(217, 70, 239, 0.4));
	box-shadow:
		0 1px 0 rgba(255, 220, 180, 0.22) inset,
		0 -1px 0 rgba(0, 0, 0, 0.25) inset,
		0 16px 36px rgba(249, 115, 22, 0.18),
		0 8px 20px rgba(124, 58, 237, 0.16);
}

.tcbp-season-halloween .tcbp-bonus-card-value {
	font-family: var(--tcbp-font) !important;
	font-size: clamp(2.7rem, 12vw, 3.35rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	background: linear-gradient(180deg, #fff7d6 0%, #fbbf24 46%, #f97316 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.45));
	text-shadow: none;
}

.tcbp-season-halloween .tcbp-bonus-card-label {
	margin-top: 0.55rem;
	padding: 0.26rem 0.8rem;
	border-radius: 0.4rem;
	background: linear-gradient(180deg, #fde68a 0%, #fbbf24 48%, #f59e0b 100%);
	color: #1a0a08;
	font-family: var(--tcbp-font) !important;
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.3) inset,
		0 3px 10px rgba(249, 115, 22, 0.28);
	clip-path: polygon(2% 10%, 98% 0%, 100% 90%, 0% 100%);
}

/* Illustration wraps overlapping card */
.tcbp-hw-hat-wrap,
.tcbp-hw-pumpkin-wrap,
.tcbp-hw-ghost-wrap {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	line-height: 0;
}

.tcbp-hw-hat-wrap {
	top: -2.05rem;
	right: -0.45rem;
	width: var(--tcbp-hw-hat-size);
	animation: tcbp-hw-hat-float 5.2s ease-in-out infinite;
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.tcbp-hw-pumpkin-wrap {
	left: -0.7rem;
	/* Anchor to bonus-card bottom-left; overhang stays inside reserved margin. */
	bottom: calc(var(--tcbp-hw-pumpkin-size) * -0.3);
	width: var(--tcbp-hw-pumpkin-size);
	height: var(--tcbp-hw-pumpkin-size);
	animation: tcbp-hw-pumpkin-glow 3.4s ease-in-out infinite;
	filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.36));
	z-index: 3;
}

.tcbp-hw-ghost-wrap {
	left: -1.15rem;
	top: -0.15rem;
	width: var(--tcbp-hw-ghost-size);
	animation: tcbp-hw-ghost-float 4.8s ease-in-out infinite;
	filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.14));
	opacity: 0.88;
	z-index: 6;
}

.tcbp-hw-asset--hat,
.tcbp-hw-asset--pumpkin,
.tcbp-hw-asset--ghost {
	position: relative;
	width: 100%;
	inset: auto;
	background: transparent;
	mix-blend-mode: normal;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* Countdown — always above decorative pumpkin; stable 4-column grid */
.tcbp-season-halloween .tcbp-countdown-wrap,
.tcbp-season-halloween .tcbp-premium-countdown {
	position: relative;
	z-index: 8;
	isolation: isolate;
	width: 100%;
	margin-top: 0.1rem;
}

.tcbp-season-halloween .tcbp-countdown-heading {
	margin: 0 0 0.7rem;
	color: #fdba74;
	text-align: center;
}

.tcbp-season-halloween .tcbp-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.45rem;
	width: 100%;
	position: relative;
	z-index: 1;
}

.tcbp-season-halloween .tcbp-countdown-unit {
	min-width: 0;
	border-color: rgba(249, 115, 22, 0.38);
	background: linear-gradient(180deg, rgba(88, 30, 120, 0.55) 0%, rgba(28, 10, 42, 0.75) 100%);
	box-shadow:
		0 0 0 1px rgba(249, 115, 22, 0.18),
		0 1px 0 rgba(255, 220, 180, 0.1) inset,
		0 8px 20px rgba(8, 2, 12, 0.35),
		0 0 16px rgba(249, 115, 22, 0.14);
}

.tcbp-season-halloween .tcbp-countdown-value {
	text-shadow: 0 0 16px rgba(249, 115, 22, 0.45);
}

/* Urgency — centered text + full-width track aligned with countdown/CTA */
.tcbp-season-halloween .tcbp-urgency {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin-top: 0.75rem;
	margin-bottom: 0;
	text-align: center;
	position: relative;
	z-index: 8;
}

.tcbp-season-halloween .tcbp-urgency-head {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0 0 0.45rem;
	text-align: center;
}

.tcbp-season-halloween .tcbp-urgency-text {
	display: block;
	width: 100%;
	margin: 0;
	color: #fdba74;
	font-weight: 800;
	text-align: center;
	letter-spacing: 0.04em;
}

.tcbp-season-halloween .tcbp-urgency-track {
	display: block;
	width: 100%;
	margin: 0 auto;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(67, 32, 16, 0.55);
	border: 1px solid rgba(251, 146, 60, 0.22);
}

.tcbp-season-halloween .tcbp-urgency-bar {
	background: linear-gradient(90deg, #f97316 0%, #d946ef 50%, #7c3aed 100%);
	box-shadow: 0 0 14px rgba(249, 115, 22, 0.55);
	border-radius: inherit;
}

.tcbp-season-halloween .tcbp-breakdown-card--bonus {
	background: linear-gradient(180deg, rgba(249, 115, 22, 0.2) 0%, rgba(255, 255, 255, 0.02) 100%);
	border-color: rgba(249, 115, 22, 0.32);
}

.tcbp-season-halloween .tcbp-breakdown-card--bonus .tcbp-breakdown-value {
	color: #fdba74;
}

.tcbp-season-halloween .tcbp-breakdown-card--receive {
	background: linear-gradient(180deg, rgba(124, 58, 237, 0.22) 0%, rgba(255, 255, 255, 0.02) 100%);
	border-color: rgba(124, 58, 237, 0.34);
}

/* CTA — contained, aligned with card/countdown */
.tcbp-season-halloween .tcbp-premium-cta-wrap {
	position: relative;
	z-index: 8;
	width: 100%;
	max-width: 100%;
	margin: 0.15rem 0 0;
	padding: 0;
}

.tcbp-season-halloween .tcbp-cta--premium {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 100%;
	min-height: 3.2rem;
	margin: 0;
	padding: 0.95rem 1.15rem;
	overflow: hidden;
	border-radius: 16px;
	border-color: rgba(255, 210, 160, 0.28);
	background: linear-gradient(90deg, #fb923c 0%, #f97316 24%, #ec4899 58%, #7c3aed 100%);
	font-family: var(--tcbp-font) !important;
	font-size: 1.02rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	box-shadow:
		0 1px 0 rgba(255, 230, 200, 0.34) inset,
		0 -1px 0 rgba(0, 0, 0, 0.16) inset,
		0 12px 28px rgba(249, 115, 22, 0.32),
		0 6px 14px rgba(124, 58, 237, 0.18);
	animation: tcbp-hw-cta-glow 2.8s ease-in-out infinite;
}

.tcbp-season-halloween .tcbp-cta--premium::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 46%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
	pointer-events: none;
}

.tcbp-season-halloween .tcbp-cta--premium:hover,
.tcbp-season-halloween .tcbp-cta--premium:focus-visible {
	transform: translateY(-1px);
	box-shadow:
		0 1px 0 rgba(255, 230, 200, 0.38) inset,
		0 16px 34px rgba(249, 115, 22, 0.38),
		0 8px 16px rgba(124, 58, 237, 0.22);
}

.tcbp-season-halloween .tcbp-social-proof--premium {
	border-color: rgba(249, 115, 22, 0.2);
	background: linear-gradient(180deg, rgba(249, 115, 22, 0.1) 0%, rgba(124, 58, 237, 0.08) 100%);
}

.tcbp-season-halloween .tcbp-brand-footer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(249, 115, 22, 0.12), rgba(124, 58, 237, 0.1));
	border: 1px solid rgba(249, 115, 22, 0.2);
	color: rgba(253, 186, 116, 0.82);
}

.tcbp-season-halloween .tcbp-exit-tag {
	color: #fdba74;
}

/* Fog */
.tcbp-fog {
	position: absolute;
	border-radius: 50%;
	filter: blur(44px);
	pointer-events: none;
	opacity: 0.32;
	animation: tcbp-fog-drift 11s ease-in-out infinite;
}

.tcbp-fog--1 {
	bottom: 4%;
	left: -8%;
	width: 62%;
	height: 9rem;
	background: radial-gradient(ellipse, rgba(124, 58, 237, 0.42), transparent 70%);
}

.tcbp-fog--2 {
	bottom: 10%;
	right: -10%;
	width: 55%;
	height: 8rem;
	background: radial-gradient(ellipse, rgba(249, 115, 22, 0.28), transparent 70%);
	animation-delay: 2.5s;
}

.tcbp-fog--3 {
	top: 18%;
	left: 30%;
	width: 40%;
	height: 5rem;
	background: radial-gradient(ellipse, rgba(217, 70, 239, 0.16), transparent 70%);
	animation-delay: 4s;
}

.tcbp-hw-mist {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 30%;
	background: linear-gradient(180deg, transparent, rgba(18, 8, 28, 0.55));
	pointer-events: none;
	opacity: 0.55;
}

.tcbp-particle--ember {
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50% 50% 40% 40%;
	background: radial-gradient(circle at 40% 30%, #ffedd5 0%, #f97316 50%, #9a3412 100%);
	box-shadow: 0 0 12px rgba(249, 115, 22, 0.65);
	opacity: 0.45;
}

.tcbp-particle--spark {
	width: 0.28rem;
	height: 0.28rem;
	border-radius: 50%;
	background: #e9d5ff;
	box-shadow: 0 0 10px rgba(217, 70, 239, 0.65);
	opacity: 0.4;
}

@keyframes tcbp-hw-hat-float {
	0%, 100% { transform: translateY(0) rotate(8deg); }
	50% { transform: translateY(-7px) rotate(5deg); }
}

@keyframes tcbp-hw-pumpkin-glow {
	0%, 100% { transform: translateY(0) rotate(-4deg); filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.45)); }
	50% { transform: translateY(-4px) rotate(-2deg); filter: drop-shadow(0 0 24px rgba(249, 115, 22, 0.75)); }
}

@keyframes tcbp-hw-ghost-float {
	0%, 100% { transform: translateY(0) translateX(0); }
	50% { transform: translateY(-10px) translateX(3px); }
}

@keyframes tcbp-hw-bat-flit {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(-8px, -5px) scale(1.05); }
	50% { transform: translate(5px, -10px) scale(0.95); }
	75% { transform: translate(10px, -3px) scale(1.02); }
}

@keyframes tcbp-hw-sparkle-twinkle {
	0%, 100% { opacity: 0.2; transform: scale(0.8); }
	50% { opacity: 0.8; transform: scale(1.25); }
}

@keyframes tcbp-fog-drift {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(14px); }
}

@keyframes tcbp-hw-cta-glow {
	0%, 100% {
		box-shadow:
			0 1px 0 rgba(255, 230, 200, 0.34) inset,
			0 -1px 0 rgba(0, 0, 0, 0.16) inset,
			0 12px 28px rgba(249, 115, 22, 0.3),
			0 6px 14px rgba(124, 58, 237, 0.16);
	}
	50% {
		box-shadow:
			0 1px 0 rgba(255, 230, 200, 0.38) inset,
			0 -1px 0 rgba(0, 0, 0, 0.14) inset,
			0 14px 32px rgba(249, 115, 22, 0.38),
			0 8px 16px rgba(217, 70, 239, 0.2);
	}
}

/* Mobile: compact, keep props visible, avoid covering content */
@media (max-width: 480px) {
	.tcbp-overlay.tcbp-season-halloween {
		--tcbp-hw-hat-size: 4.4rem;
		--tcbp-hw-pumpkin-size: 4.6rem;
		--tcbp-hw-ghost-size: 2.85rem;
		--tcbp-hw-moon-size: 5.75rem;
	}

	.tcbp-hw-intensity--bold {
		--tcbp-hw-hat-size: 4.9rem;
		--tcbp-hw-pumpkin-size: 5.1rem;
		--tcbp-hw-ghost-size: 3.1rem;
		--tcbp-hw-moon-size: 6.25rem;
	}

	.tcbp-season-halloween .tcbp-popup--halloween {
		width: min(100%, calc(100vw - 1rem));
		max-width: 100%;
	}

	.tcbp-season-halloween .tcbp-popup-inner--halloween {
		padding: 1.35rem 0.85rem max(1.05rem, env(safe-area-inset-bottom, 0px));
		overflow-x: hidden;
		overflow-y: auto;
		max-height: min(82vh, calc(100dvh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
	}

	.tcbp-popup-inner--halloween > .tcbp-close {
		top: 0.55rem !important;
		right: 0.55rem !important;
		width: 2rem;
		height: 2rem;
	}

	.tcbp-overlay--premium.tcbp-season-halloween .tcbp-bonus-card--halloween,
	.tcbp-season-halloween .tcbp-bonus-card--halloween {
		margin: 0.85rem 0 calc(0.45rem + (var(--tcbp-hw-pumpkin-size) * 0.36));
		padding: 0;
	}

	.tcbp-hw-hat-wrap {
		top: -1.55rem;
		right: -0.25rem;
	}

	.tcbp-hw-pumpkin-wrap {
		left: -0.5rem;
		bottom: calc(var(--tcbp-hw-pumpkin-size) * -0.28);
		width: var(--tcbp-hw-pumpkin-size);
		height: var(--tcbp-hw-pumpkin-size);
	}

	.tcbp-season-halloween .tcbp-countdown {
		gap: 0.35rem;
	}

	.tcbp-season-halloween .tcbp-urgency {
		margin-top: 0.65rem;
	}

	.tcbp-season-halloween .tcbp-urgency-text {
		font-size: 0.7rem;
	}

	.tcbp-hw-ghost-wrap {
		left: -0.45rem;
		top: -0.05rem;
		opacity: 0.85;
	}

	.tcbp-hw-asset--moon {
		left: -2.1rem;
		top: -1.5rem;
		opacity: 0.38;
	}

	.tcbp-hw-asset--branches {
		width: 4.5rem;
		right: -1.1rem;
		opacity: 0.34;
	}

	.tcbp-hw-asset--ground {
		opacity: 0.28;
	}

	.tcbp-season-halloween .tcbp-bonus-card-inner {
		min-height: 6.35rem;
		padding: 1.05rem 0.8rem 0.95rem;
	}

	.tcbp-season-halloween .tcbp-bonus-card-value {
		font-size: clamp(2.15rem, 11vw, 2.65rem);
	}

	.tcbp-season-halloween .tcbp-cta--premium {
		width: 100%;
		max-width: 100%;
		min-height: 3rem;
		padding: 0.85rem 1rem;
		font-size: 0.98rem;
	}
}

@media (max-width: 390px) {
	.tcbp-overlay.tcbp-season-halloween {
		--tcbp-hw-hat-size: 4.1rem;
		--tcbp-hw-pumpkin-size: 4.3rem;
		--tcbp-hw-ghost-size: 2.6rem;
		--tcbp-hw-moon-size: 5.25rem;
	}
}

@media (max-width: 360px) {
	.tcbp-overlay.tcbp-season-halloween {
		--tcbp-hw-hat-size: 3.75rem;
		--tcbp-hw-pumpkin-size: 3.95rem;
		--tcbp-hw-ghost-size: 2.35rem;
		--tcbp-hw-moon-size: 4.85rem;
	}

	.tcbp-hw-ghost-wrap {
		opacity: 0.8;
	}

	.tcbp-season-halloween .tcbp-headline {
		font-size: clamp(1.35rem, 7vw, 1.7rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcbp-hw-hat-wrap,
	.tcbp-hw-pumpkin-wrap,
	.tcbp-hw-ghost-wrap,
	.tcbp-hw-asset--bat,
	.tcbp-hw-sparkle,
	.tcbp-fog,
	.tcbp-season-halloween .tcbp-cta--premium {
		animation: none;
	}
}
