/* Bump and Beyond "play" layer (gated by bb_play_on(); see inc/play.php). */

/* ---------- more doodle placements (sizes carry their own line width; see bb-doodles.css) ---------- */
.bb-dd-dash  { --dd-w: 84px; --sw: 1.8; --dd-r: 10deg; top: 0; right: 0; }
.bb-dd-dash2 { --dd-w: 34px; --sw: 4; top: 70px; right: 96px; }
.bb-dd-faqh  { --dd-w: 64px; --sw: 2.3; --dd-r: -8deg; top: 0; left: 230px; }
.bb-dd-grp   { --dd-w: 56px; --sw: 2.6; --dd-r: -8deg; top: calc(100% + 18px); left: 4px; } /* under the group heading, in the empty left column */
.bb-dd-fin   { --dd-w: 48px; --sw: 3; top: -10px; right: 0; }
.bb-dd-belief { --dd-w: 46px; --sw: 3; --dd-r: 8deg; top: -6px; right: 0; }
.bb-dd-ledger { --dd-w: 52px; --sw: 2.8; --dd-r: -14deg; top: -46px; right: 0; }
.bb-dd-move  { --dd-w: 72px; --sw: 2; --dd-r: 6deg; top: 0; right: 0; }
.bb-dd-tbl   { --dd-w: 52px; --sw: 2.8; --dd-r: 8deg; top: -40px; right: 6px; }
.bb-dd-prod  { --dd-w: 34px; --sw: 4; top: -46px; right: 0; }
.bb-dd-prod2 { --dd-w: 42px; --sw: 3.4; --dd-r: -12deg; top: -54px; right: 44px; }
/* CTA band (brown): cream + coral, one each side */
.bb-dd-cta-a, .bb-dd-cta-b, .bb-dd-cta-c { --dd-ink: #FDE1D6; --dd-acc: #F2A58C; opacity: .85; }
.bb-dd-cta-a { --dd-w: 46px; --sw: 3; --dd-r: -12deg; top: 50%; left: -70px; margin-top: -23px; }
.bb-dd-cta-b { --dd-w: 34px; --sw: 4; top: -6px; right: -50px; }
.bb-dd-cta-c { --dd-w: 22px; --sw: 5; bottom: -6px; right: -18px; }
@media (max-width: 1100px) { .bb-dd-cta-a { left: auto; right: 54px; top: -18px; margin-top: 0; } .bb-dd-cta-b { right: 8px; } .bb-dd-cta-c { display: none; } }
@media (max-width: 900px) {
	.bb-dd-dash { --dd-w: 48px; --sw: 3; top: -18px; right: 10px; } .bb-dd-dash2 { display: none; }
	.bb-dd-faqh { --dd-w: 42px; --sw: 3.4; left: auto; right: 10px; top: -12px; }
	.bb-dd-grp { --dd-w: 38px; --sw: 3.8; top: -2px; left: auto; right: 10px; } /* heading spans the full width on phones: sit at its right end */
	.bb-dd-move { --dd-w: 44px; --sw: 3.2; top: -20px; right: 10px; }
}

/* ---------- interactive doodles: wiggle on hover, clickable for hearts ---------- */
@media (hover: hover) and (pointer: fine) {
	.bb-dd-int { pointer-events: auto; cursor: pointer; }
	.bb-play .bb-dd-int:hover { animation: bb-wiggle 600ms ease-in-out; }
}
@keyframes bb-wiggle { 0%,100% { transform: rotate(var(--dd-r, 0deg)); } 25% { transform: rotate(calc(var(--dd-r, 0deg) - 10deg)) scale(1.08); } 60% { transform: rotate(calc(var(--dd-r, 0deg) + 8deg)) scale(1.08); } }
.bb-heart {
	position: fixed; z-index: 9999; pointer-events: none;
	font-size: 18px; line-height: 1; color: #E07A5F;
	transform: translate(-50%, -50%);
	animation: bb-heart 850ms cubic-bezier(.16, 1, .3, 1) forwards;
}
.bb-heart:nth-child(even) { color: #F2A58C; font-size: 14px; }
@keyframes bb-heart {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
	20% { opacity: 1; }
	100% { opacity: 0; transform: translate(calc(-50% + var(--hx)), calc(-50% + var(--hy))) rotate(var(--hr)) scale(1.1); }
}

/* ---------- currency switcher under the hero mock ---------- */
.bb-cur {
	position: relative; z-index: 2;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
	margin: 26px auto 0; max-width: 440px;
}
.bb-cur-lbl { font-size: .875rem; font-weight: 700; color: #6E5249; margin-right: 4px; }
.bb-cur-btn {
	min-width: 44px; min-height: 40px; padding: 0 12px;
	border-radius: 999px; border: 1.5px solid #F1DED4; background: #fff; color: #4A2F27;
	font: 700 .95rem/1 var(--bb-font-display, 'Fraunces', Georgia, serif);
	cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.bb-cur-btn:hover { border-color: #E07A5F; transform: translateY(-1px); }
.bb-cur-btn.is-on { background: #B04A30; border-color: #B04A30; color: #fff; }
.bb-cur-btn:focus-visible { outline: 2px solid #B04A30; outline-offset: 2px; }
.bb-cur-note { margin: 8px 0 0; min-height: 1.2em; text-align: center; font-size: .8125rem; color: #6E5249; }
/* AED prefix is wider: keep the ring total on one line */
.bb-mock-hero.bb-cur-aed .bb-mock-ring-amount { font-size: .86em; }
.bb-mock-hero .bb-mock-ring-amount { white-space: nowrap; }
.bb-mock-hero .bb-mock-row-amt { white-space: nowrap; }

/* ---------- hero parallax: the mock tilts a little toward the pointer ---------- */
.bb-mock-hero.bb-par { perspective: 900px; }
.bb-mock-hero.bb-par .bb-mock-frame {
	transform: rotateX(calc(var(--py, 0) * -4deg)) rotateY(calc(var(--px, 0) * 5deg));
	transition: transform 240ms cubic-bezier(.16, 1, .3, 1);
	transform-style: preserve-3d;
}
.bb-hero .bb-dd { transition: translate 300ms cubic-bezier(.16, 1, .3, 1); }

/* ---------- pricing card tilt (individual rotate property composes with existing transforms) ---------- */
.bb-pricing-cards { perspective: 1000px; }
.bb-plan-card.bb-tilt { transition: rotate 220ms cubic-bezier(.16, 1, .3, 1); }

/* ---------- scroll progress line ---------- */
.bb-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000;
	background: linear-gradient(90deg, #F2A58C, #E07A5F 40%, #B04A30);
	transform-origin: 0 50%; transform: scaleX(0);
	pointer-events: none;
}
.admin-bar .bb-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .bb-progress { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
	.bb-mock-hero.bb-par .bb-mock-frame, .bb-hero .bb-dd, .bb-plan-card.bb-tilt { transition: none !important; }
	.bb-dd-int:hover { animation: none !important; }
}
@media print { .bb-cur, .bb-cur-note, .bb-progress, .bb-heart { display: none !important; } }
