/* BBS Core blocks. Colours come from the theme's presets, with fallbacks. */
.bbs-floaters, .bbs-ring-wrap, .bbs-yt, .bbs-products, .bbs-signup, .bbs-contact {
	--bbs-ink: var(--wp--preset--color--ink, #1D1A16);
	--bbs-ink-soft: var(--wp--preset--color--ink-soft, #5E574D);
	--bbs-sun: var(--wp--preset--color--sun, #F6C11B);
	--bbs-sun-pale: var(--wp--preset--color--sun-pale, #FFF1C2);
	--bbs-berry: var(--wp--preset--color--berry, #FF5577);
	--bbs-grape: var(--wp--preset--color--grape, #8C5CF0);
	--bbs-logo: var(--wp--preset--font-family--logo, "DK Lemon Yellow Sun", sans-serif);
	--bbs-round: var(--wp--preset--font-family--round, "Baloo 2", sans-serif);
	--bbs-bounce: cubic-bezier(.3, 1.6, .5, 1);
}

/* ---------------- floating hero friends ---------------- */
.bbs-floaters { position: absolute !important; inset: 0; margin: 0 !important; max-width: none !important; pointer-events: none; z-index: 1; }
.bbs-rays { position: absolute; left: 50%; top: 46%; width: min(1100px, 150vw); aspect-ratio: 1; translate: -50% -50%; z-index: 0; animation: bbs-spin 90s linear infinite; }
@keyframes bbs-spin { to { rotate: 360deg; } }
.bbs-pc { position: absolute; left: calc(var(--x) + var(--nx, 0px)); top: var(--y); height: var(--h); z-index: 2; pointer-events: auto; will-change: translate; }
.bbs-pc.is-off { display: none; }
.bbs-pc[data-depth="1"] { z-index: 1; filter: saturate(.85) blur(1.1px); opacity: .88; }
.bbs-pc[data-depth="3"] { z-index: 4; }
.bbs-pc button { all: unset; display: block; height: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bbs-pc button:focus-visible { outline: 3px solid var(--bbs-grape); outline-offset: 4px; border-radius: 20px; }
.bbs-bob { display: block; height: 100%; animation: bbs-pop .9s var(--bbs-bounce) both, bbs-float var(--ft, 5s) ease-in-out infinite; animation-delay: var(--d, 0s), calc(var(--d, 0s) + .9s); }
.bbs-pc img:not(.bbs-figure img) { height: 100%; width: auto; max-width: none; transform-origin: 50% 95%; filter: drop-shadow(0 18px 16px rgba(80, 50, 10, .2)); user-select: none; -webkit-user-drag: none; transition: transform .35s var(--bbs-bounce); }
.bbs-pc button:hover img:not(.bbs-figure__arm):not(.bbs-figure__body) { transform: scale(1.07); }
.bbs-pc button:hover .bbs-figure { transform: scale(1.06); }
.bbs-pc .bbs-figure { transition: transform .35s var(--bbs-bounce); }
.bbs-pc.hop img { animation: bbs-hop .6s var(--bbs-bounce); }
@keyframes bbs-pop { from { transform: scale(.5) translateY(40px); } to { transform: none; } }
@keyframes bbs-float { 0%, 100% { translate: 0 0; rotate: -2.5deg; } 50% { translate: 0 -12px; rotate: 2.5deg; } }
@keyframes bbs-hop { 0% { transform: none; } 30% { transform: translateY(-16%) scale(1.06, 1.1); } 60% { transform: translateY(2%) scale(1.08, .92); } 100% { transform: none; } }
.bbs-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 19; }

/* ---------------- rotating line-up ---------------- */
.bbs-ring-wrap { position: relative; }
.bbs-ring { position: relative; height: clamp(300px, 30vw, 400px); touch-action: pan-y; cursor: grab; user-select: none; overflow: hidden; }
.bbs-ring:active { cursor: grabbing; }
.bbs-ring::after { content: ""; position: absolute; left: 50%; bottom: 6%; width: min(1000px, 92%); height: 18%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(246, 193, 27, .35), transparent); z-index: 0; }
/* without JS: a simple wrapped row */
.bbs-ring:not(.is-live) { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; height: auto; overflow: visible; }
.bbs-ring:not(.is-live) .bbs-rf { position: relative; left: auto; bottom: auto; height: 160px; }
.bbs-rf { position: absolute; left: 50%; bottom: 10%; height: calc(66% * var(--rel, 1)); transform-origin: 50% 100%; will-change: transform; }
.bbs-rf button { all: unset; display: block; height: 100%; cursor: pointer; }
.bbs-rf button:focus-visible { outline: 3px solid var(--bbs-grape); outline-offset: 4px; border-radius: 16px; }
.bbs-rf img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 16px 14px rgba(80, 50, 10, .22)); pointer-events: none; }
.bbs-dance { display: block; height: 100%; transform-origin: 50% 100%; animation: bbs-float 4.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); }
@keyframes bbs-bop { 0%, 100% { transform: translateY(0) rotate(-2deg); } 25% { transform: translateY(-2.5%) rotate(0deg); } 50% { transform: translateY(0) rotate(2deg); } 75% { transform: translateY(-2.5%) rotate(0deg); } }
.bbs-rf.is-waving:not(.has-parts) .bbs-dance { animation: bbs-wave 1.1s ease-in-out infinite; }
@keyframes bbs-wave { 0%, 100% { transform: rotate(0deg) scale(1.04); } 25% { transform: rotate(-4deg) scale(1.04); } 75% { transform: rotate(4deg) scale(1.04); } }
/* Friends with wave layers: the body is still; on hover/tap the arm swings up from the shoulder and waves. */
.bbs-figure { position: relative; display: block; height: 100%; aspect-ratio: var(--fw) / var(--fh); }
.bbs-figure img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.bbs-figure__arm { transform-origin: var(--px) var(--py); transition: transform .45s var(--bbs-bounce); }
.is-waving .bbs-figure__arm { animation: bbs-arm-up .4s cubic-bezier(.3, 1.4, .5, 1) forwards, bbs-arm-wave .45s ease-in-out .4s infinite alternate; }
@keyframes bbs-arm-up { from { transform: rotate(0deg); } to { transform: rotate(-118deg); } }
@keyframes bbs-arm-wave { from { transform: rotate(-104deg); } to { transform: rotate(-132deg); } }
.bbs-rf.is-waving .bbs-dance { animation-play-state: paused; }
.bbs-rf.is-waving .bbs-figure { transform: scale(1.05); transition: transform .3s var(--bbs-bounce); }
.bbs-ring-name { text-align: center; display: grid; gap: 4px; justify-items: center; min-height: 92px; margin: 8px auto 0; width: max-content; max-width: 90vw; will-change: transform; }
.bbs-ring-name.is-in { animation: bbs-name-in .45s var(--bbs-bounce); }
@keyframes bbs-name-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.bbs-ring-name b { font: 400 clamp(2.2rem, 1.6rem + 2vw, 3.4rem)/1 var(--bbs-logo); letter-spacing: .02em; }
.bbs-ring-name span { color: var(--bbs-ink-soft); }
.bbs-ring-ctrl { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.bbs-ring-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; box-shadow: inset 0 0 0 2.5px var(--bbs-ink), 0 3px 0 var(--bbs-ink); cursor: pointer; display: grid; place-items: center; color: var(--bbs-ink); transition: transform .2s var(--bbs-bounce); }
.bbs-ring-ctrl button:hover { transform: translateY(-2px); }
.bbs-ring-ctrl svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .bbs-ring { height: 250px; } .bbs-rf { height: calc(48% * var(--rel, 1)); } }

/* ---------------- YouTube ---------------- */
.bbs-yt--feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.bbs-yt--feature.no-shorts { grid-template-columns: 1fr; }
.bbs-yt a { text-decoration: none !important; color: #fff; }
.bbs-yt-feature { position: relative; display: block; rotate: -1.6deg; transition: rotate .4s var(--bbs-bounce); }
.bbs-yt-feature:hover { rotate: 0deg; }
.bbs-yt-frame { display: block; position: relative; border-radius: 44px 44px 44px 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 50px -24px rgba(29, 26, 22, .45); }
.bbs-yt-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bbs-yt-feature:hover .bbs-yt-frame img { transform: scale(1.04); }
.bbs-yt-meta { position: absolute; inset: auto 0 0 0; padding: 60px 26px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); display: grid; gap: 2px; }
.bbs-yt-meta strong { font: 700 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.2 var(--bbs-round); }
.bbs-yt-meta small { opacity: .85; }
.bbs-play { position: absolute; display: grid; place-items: center; border-radius: 50%; background: var(--bbs-sun); color: var(--bbs-ink); box-shadow: 0 0 0 4px #fff; transition: transform .3s var(--bbs-bounce); }
.bbs-play svg { width: 40%; height: 40%; margin-left: 8%; }
.bbs-yt-feature > .bbs-play { right: 26px; bottom: 24px; width: 76px; height: 76px; z-index: 2; }
.bbs-yt-feature:hover > .bbs-play { transform: scale(1.12) rotate(-10deg); }
.bbs-sticker { position: absolute; z-index: 3; top: -18px; left: 28px; background: var(--bbs-berry); color: #fff; font: 400 1.6rem/1 var(--bbs-logo); letter-spacing: .04em; padding: .35em .75em .25em; border-radius: 999px; rotate: -6deg; box-shadow: 0 4px 0 #C8304F; }
.bbs-yt-shorts { position: relative; height: clamp(380px, 38vw, 470px); }
.bbs-yt-short { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 20px 36px -18px rgba(29, 26, 22, .55), 0 0 0 5px #fff; transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); transform: translate(-50%, -50%) translateX(var(--sx, 0%)) rotate(var(--sr, 0deg)); }
.bbs-yt-short:nth-child(1) { --sx: 0%; --sr: 0deg; z-index: 3; }
.bbs-yt-short:nth-child(2) { --sx: -58%; --sr: -9deg; z-index: 1; }
.bbs-yt-short:nth-child(3) { --sx: 58%; --sr: 9deg; z-index: 2; }
.bbs-yt-shorts:hover .bbs-yt-short:nth-child(2) { --sx: -78%; --sr: -12deg; }
.bbs-yt-shorts:hover .bbs-yt-short:nth-child(3) { --sx: 78%; --sr: 12deg; }
.bbs-yt-short:hover { transform: translate(-50%, -54%) translateX(var(--sx)) rotate(0deg) scale(1.04); z-index: 5; }
.bbs-yt-short img { width: 100%; height: 100%; object-fit: cover; }
.bbs-yt-short .bbs-yt-meta { padding: 40px 12px 12px; font: 700 .9rem/1.2 var(--bbs-round); }
.bbs-yt-short .bbs-play { width: 40px; height: 40px; left: 10px; top: 10px; box-shadow: 0 0 0 3px #fff; }
.bbs-yt-shorts-label { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; font: 400 1.5rem/1 var(--bbs-logo); letter-spacing: .03em; color: var(--bbs-grape); white-space: nowrap; z-index: 6; }
.bbs-yt--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.bbs-yt-card { display: grid; gap: 8px; color: var(--bbs-ink) !important; }
.bbs-yt-card .bbs-yt-frame { border-radius: 24px; box-shadow: none; }
.bbs-yt-card.is-short .bbs-yt-frame img { object-fit: cover; }
.bbs-yt-card .bbs-play { right: 12px; bottom: 12px; width: 46px; height: 46px; }
.bbs-yt-card strong { font: 700 1.05rem/1.25 var(--bbs-round); }
.bbs-yt-card small { color: var(--bbs-ink-soft); }
@media (max-width: 960px) {
	.bbs-yt--feature { grid-template-columns: 1fr; }
	.bbs-yt-shorts { height: clamp(360px, 80vw, 470px); }
	.bbs-yt-short { width: 34%; }
}
@media (max-width: 640px) {
	.bbs-yt-short { width: 46%; }
	.bbs-yt-feature > .bbs-play { width: 56px; height: 56px; right: 16px; bottom: 16px; }
	.bbs-yt-meta { padding: 50px 18px 16px; }
}

/* ---------------- products ---------------- */
.bbs-products { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 22px 16px; }
.bbs-prod { text-decoration: none !important; display: grid; gap: 6px; min-width: 0; align-content: start; color: var(--bbs-ink); }
.bbs-prod__ph { display: block; background: #fff; border-radius: 24px; aspect-ratio: 1; overflow: hidden; position: relative; transition: transform .35s var(--bbs-bounce), box-shadow .3s; }
.bbs-prod:hover .bbs-prod__ph { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 0 16px 26px -16px rgba(29, 26, 22, .4); }
.bbs-prod__ph img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }
.bbs-prod b { font: 700 .95rem/1.25 var(--bbs-round); }
.bbs-prod__price { font-weight: 700; font-size: .9rem; color: var(--bbs-ink-soft); }
.bbs-prod__add { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; background: var(--bbs-sun); display: grid; place-items: center; font: 800 1.3rem/1 var(--bbs-round); transform: scale(0); transition: transform .25s var(--bbs-bounce); }
.bbs-prod:hover .bbs-prod__add, .bbs-prod:focus-visible .bbs-prod__add { transform: scale(1); }
@media (max-width: 1080px) { .bbs-products { grid-template-columns: repeat(4, 1fr); } .bbs-products .bbs-prod:nth-child(n+9) { display: none; } }
@media (max-width: 640px) { .bbs-products { grid-template-columns: repeat(2, 1fr); } .bbs-products .bbs-prod:nth-child(n+7) { display: none; } }

/* ---------------- sign-up ---------------- */
.bbs-signup form { display: flex; gap: 10px; flex-wrap: wrap; }
.bbs-signup input[type="email"] { flex: 1 1 200px; min-width: 0; font: 500 1rem inherit; font-family: inherit; padding: 1em 1.3em; border-radius: 999px; border: 2.5px solid var(--bbs-ink); background: #fff; color: var(--bbs-ink); }
.bbs-signup button { background: var(--bbs-ink); color: #fff; border: 0; border-radius: 999px; padding: 1em 1.5em; font-weight: 700; cursor: pointer; }
.bbs-signup .bbs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bbs-signup__ok { font-weight: 700; font-size: 1.15rem; }
.bbs-signup__err { margin-top: 8px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
	.bbs-figure__arm, .bbs-rays, .bbs-bob, .bbs-dance, .bbs-pc img, .bbs-yt-short, .bbs-yt-feature { animation: none !important; transition: none !important; }
}

/* ---------------- video grid filter ---------------- */
.bbs-yt-filter { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.bbs-yt-filter button { font: 700 .95rem/1 inherit; font-family: inherit; padding: .7em 1.2em; border-radius: 999px; border: 0; background: #fff; color: var(--bbs-ink); box-shadow: inset 0 0 0 2px #EFE6D2; cursor: pointer; transition: transform .2s var(--bbs-bounce); }
.bbs-yt-filter button:hover { transform: translateY(-2px); }
.bbs-yt-filter button.is-on { background: var(--bbs-sun); box-shadow: inset 0 0 0 2.5px var(--bbs-ink); }
.bbs-yt-card[hidden] { display: none; }
.bbs-yt-card:hover .bbs-yt-frame img { transform: scale(1.04); }
.bbs-yt-card:hover .bbs-play { transform: scale(1.12) rotate(-8deg); }

/* ---------------- contact form ---------------- */
.bbs-contact, .bbs-contact * { box-sizing: border-box; }
.bbs-contact { max-width: 620px; }
.bbs-contact form { display: grid; gap: 14px; min-width: 0; }
.bbs-contact p { margin: 0; }
.bbs-contact label { display: block; font-weight: 700; margin-bottom: 6px; }
.bbs-contact input[type="text"], .bbs-contact input[type="email"], .bbs-contact textarea { width: 100%; max-width: 100%; font: inherit; padding: .8em 1em; border-radius: 18px; border: 2.5px solid #E6DCC6; background: #fff; color: var(--bbs-ink); transition: border-color .2s, box-shadow .2s; }
.bbs-contact input:focus, .bbs-contact textarea:focus { outline: none; border-color: var(--bbs-ink); box-shadow: 0 0 0 4px var(--bbs-sun-pale); }
.bbs-contact textarea { border-radius: 22px; resize: vertical; min-height: 120px; }
.bbs-contact__row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.bbs-contact__topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bbs-contact__topics legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.bbs-chip { display: inline-block !important; margin: 0 !important; font-weight: 600 !important; cursor: pointer; }
.bbs-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bbs-chip span { display: inline-block; padding: .45em .9em; font-size: .92rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px #EFE6D2; transition: transform .2s var(--bbs-bounce), background .2s; }
.bbs-chip:hover span { transform: translateY(-2px); }
.bbs-chip input:checked + span { background: var(--bbs-sun); box-shadow: inset 0 0 0 2.5px var(--bbs-ink); }
.bbs-chip input:focus-visible + span { outline: 3px solid var(--bbs-grape); outline-offset: 2px; }
.bbs-contact__work { display: grid; gap: 12px; background: #FFE6F1; padding: 16px 18px; border-radius: 22px; }
.bbs-contact__work[hidden] { display: none; }
.bbs-contact__file input { display: block; font: inherit; }
.bbs-contact__file small, .bbs-contact__send small { display: block; color: var(--bbs-ink-soft); margin-top: 6px; }
.bbs-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.bbs-check input { margin-top: .3em; width: 18px; height: 18px; accent-color: #1D1A16; }
.bbs-contact button { background: var(--bbs-sun); color: var(--bbs-ink); border: 0; border-radius: 999px; padding: 1em 1.8em; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 0 var(--bbs-ink), inset 0 0 0 2.5px var(--bbs-ink); transition: transform .2s var(--bbs-bounce); }
.bbs-contact button:hover { transform: translateY(-3px) rotate(-1.5deg); }
.bbs-contact .bbs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bbs-contact__err { background: #FFE1E1; color: #8B1D1D; padding: 12px 16px; border-radius: 16px; font-weight: 600; margin-bottom: 14px !important; }
.bbs-contact__ok { text-align: center; padding: 30px 10px; display: grid; gap: 8px; }
.bbs-contact__ok-title { font: 400 2.6rem/1 var(--bbs-logo); }
@media (max-width: 640px) { .bbs-contact__row { grid-template-columns: 1fr; } }

/* inner-page header band: friends only on wide screens */
.bbs-floaters.is-band .bbs-pc[data-depth="2"] { filter: none; }
.bbs-hero--band .bbs-rays { width: min(760px, 140vw); top: 50%; opacity: .7; }

.bbs-products.is-big { gap: 28px 22px; }
.bbs-products.is-big .bbs-prod b { font-size: 1.1rem; }
.bbs-products.is-big .bbs-prod__ph { border-radius: 30px; }
.bbs-pc .bbs-figure { filter: drop-shadow(0 18px 16px rgba(80, 50, 10, .2)); }
