﻿/* Generated from the approved V3 preview. Component-scoped for Fecify. */
.bbx-v5 {
  color-scheme: light;
  --ink: #101127;
  --lavender-ink: #6c48aa;
  --acid: #c6ff2e;
  --scene-ratio: 1.776833;
  --bbx-stage-vw: 1vw;
  --bbx-section-bg: var(--bbx-full-bleed-bg, rgb(var(--color-background, 248, 242, 237)));
}

.bbx-v5 * { box-sizing: border-box; }

.bbx-v5,
.bbx-v5 { margin: 0; min-width: 320px; background: var(--bbx-section-bg); }

.bbx-v5 {
  color: var(--ink);
  font-family: Inter, Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.bbx-v5 button,
.bbx-v5 a { font: inherit; }

.bbx-v5 {
  width: 100%;
  overflow: clip;
  background: var(--bbx-section-bg);
}

.bbx-v5 .core-studio__container {
  width: 100%;
  height: 100%;
  margin-inline: auto;
}

.bbx-v5 .core-studio__frame {
  width: min(100%, 3840px);
  aspect-ratio: 1672 / 941;
  margin-inline: auto;
  position: relative;
}

.bbx-v5 .core-studio__scene {
  position: absolute;
  inset: 0;
  overflow: visible;
  isolation: isolate;
  background-color: var(--bbx-section-bg);
  background-image: url("../../production-assets-v3/studio-architecture-desktop-4k-v3.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.bbx-v5 .core-studio__scene:focus { outline: none; }

.bbx-v5 .site-header {
  position: absolute;
  z-index: 90;
  inset: 0 0 auto;
  height: 7.864%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 25% 1fr 25%;
  align-items: center;
  padding-inline: 3.05% 3.55%;
  background: rgba(255, 255, 255, 0.965);
  border-bottom: 1px solid rgba(16, 17, 39, 0.12);
}

.bbx-v5 .site-header a { color: var(--ink); text-decoration: none; }

.bbx-v5 .site-header__logo {
  justify-self: start;
  font-size: clamp(18px, calc(var(--bbx-stage-vw) * 1.7), 65px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.bbx-v5 .site-header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(35px, calc(var(--bbx-stage-vw) * 5.55), 93px);
  white-space: nowrap;
}

.bbx-v5 .site-header__nav a,
.bbx-v5 .site-header__cta {
  font-size: clamp(9px, calc(var(--bbx-stage-vw) * 0.84), 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bbx-v5 .site-header__cta {
  justify-self: end;
  display: grid;
  place-items: center;
  width: calc(var(--bbx-stage-vw) * 10.17);
  max-width: 390px;
  min-width: 138px;
  height: clamp(38px, calc(var(--bbx-stage-vw) * 2.51), 96px);
  border-radius: 999px;
  background: var(--acid);
}

.bbx-v5 .hero-copy {
  position: absolute;
  z-index: 35;
  left: 5.03%;
  top: 18.17%;
  width: 32.5%;
}

.bbx-v5 .hero-copy__eyebrow {
  margin: 0 0 1.05%;
  font-size: clamp(10px, calc(var(--bbx-stage-vw) * 0.82), 30px);
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.15;
}

.bbx-v5 .hero-copy h1 {
  margin: 0;
  font-family: Butler, "Bodoni 72", Didot, "Times New Roman", serif;
  font-size: clamp(52px, calc(var(--bbx-stage-vw) * 4.45), 166px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.88;
}

.bbx-v5 .hero-copy__sub {
  margin: 4.6% 0 0 0.2%;
  font-family: Butler, "Bodoni 72", Didot, "Times New Roman", serif;
  font-size: clamp(16px, calc(var(--bbx-stage-vw) * 1.34), 49px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.bbx-v5 .hero-copy__prompt {
  margin-top: 4.2%;
  width: 56.5%;
  height: clamp(42px, calc(var(--bbx-stage-vw) * 3.05), 117px);
  padding: 0 clamp(12px, calc(var(--bbx-stage-vw) * 0.96), 37px);
  display: inline-flex;
  align-items: center;
  gap: clamp(9px, calc(var(--bbx-stage-vw) * 0.9), 35px);
  border: clamp(1px, calc(var(--bbx-stage-vw) * 0.06), 2.3px) solid rgba(16, 17, 39, 0.48);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.62);
  font-size: clamp(9px, calc(var(--bbx-stage-vw) * 0.76), 28px);
  font-weight: 500;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.bbx-v5 .hero-copy__hand {
  width: clamp(19px, calc(var(--bbx-stage-vw) * 1.38), 53px);
  height: clamp(19px, calc(var(--bbx-stage-vw) * 1.38), 53px);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.bbx-v5 .hero-copy__hand svg { width: 100%; height: 100%; overflow: visible; }
.bbx-v5 .hero-copy__hand path { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }

.bbx-v5 .main-pedestal {
  position: absolute;
  z-index: 20;
  left: var(--stage-center-x, 50%);
  top: 49.31%;
  width: 48.68%;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.bbx-v5 .stage-character {
  position: absolute;
  z-index: 30;
  left: var(--stage-center-x, 50%);
  top: var(--stage-foot-desktop, 53.15%);
  width: var(--stage-width-desktop, 22.85%);
  translate: -50% -100%;
  transform-origin: 50% 88%;
  overflow: visible;
  pointer-events: none;
}

.bbx-v5 .stage-character__core {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 12px rgba(63, 39, 78, 0.13));
}

.bbx-v5 .core-idle-eyes {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.bbx-v5 .stage-character.is-plush .core-idle-eyes { display: none; }

.bbx-v5 .core-idle-eye {
  position: absolute;
  top: var(--core-eye-y, 54.5%);
  width: var(--core-eye-size, 23%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  translate: calc(-50% + var(--core-eye-shift-x, 0px)) calc(-50% + var(--core-eye-shift-y, 0px));
  transform-origin: 50% 52%;
  animation: core-eye-blink 5.8s ease-in-out infinite;
  box-shadow: inset 0 0 0 1px rgba(139,226,255,.42), 0 0 10px rgba(87,217,255,.2);
}

.bbx-v5 .core-idle-eye--left { left: var(--core-eye-left-x, 31%); }
.bbx-v5 .core-idle-eye--right { left: var(--core-eye-right-x, 69%); }
.bbx-v5 .core-idle-eye img {
  display: block;
  width: 116%;
  height: 116%;
  object-fit: cover;
  transform: translate(-7%, -7%);
  animation: core-eye-wander 4.8s ease-in-out infinite alternate;
}
.bbx-v5 .core-idle-eye--right img { animation-delay: -1.4s; }

@keyframes core-eye-wander {
  0%, 18% { transform: translate(-9%, -7%) scale(1.02); }
  42%, 60% { transform: translate(-5%, -9%) scale(1.04); }
  82%, 100% { transform: translate(-7%, -4%) scale(1.02); }
}

@keyframes core-eye-blink {
  0%, 44%, 48%, 100% { transform: scaleY(1); }
  46% { transform: scaleY(.08); }
}

.bbx-v5 .stage-character__contact-shadow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0.4%;
  width: var(--stage-shadow-width, 66%);
  height: 5.5%;
  border-radius: 50%;
  background: rgb(65 43 76 / var(--stage-shadow-opacity, .32));
  filter: blur(clamp(4px, calc(var(--bbx-stage-vw) * 0.36), 14px));
  transform: translateX(-50%) scaleX(1.08);
  pointer-events: none;
}

.bbx-v5 .stage-character > .stage-character__sprite { display: none; }
.bbx-v5 .stage-character.is-plush .stage-character__core { display: none; }
.bbx-v5 .stage-character.is-plush .stage-character__sprite { display: block; }
.bbx-v5 .stage-character__sprite .character-sprite__contact-shadow { display: none; }

.bbx-v5 .character-sprite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: visible;
  isolation: isolate;
  pointer-events: none;
}

.bbx-v5 .character-sprite__fur,
.bbx-v5 .character-sprite__eyes,
.bbx-v5 .character-sprite__custom {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.bbx-v5 .character-sprite__custom {
  z-index: 2;
  display: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(54, 37, 67, 0.1));
}

.bbx-v5 .character-sprite.is-custom-image .character-sprite__fur,
.bbx-v5 .character-sprite.is-custom-image .character-sprite__eyes { display: none; }
.bbx-v5 .character-sprite.is-custom-image .character-sprite__custom { display: block; }
.bbx-v5 .character-sprite.is-custom-image::after { display: none; }

.bbx-v5 .character-sprite__fur {
  z-index: 1;
  background-image: linear-gradient(var(--fur-color, #ff8fc5), var(--fur-color, #ff8fc5)), var(--sprite-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-blend-mode: color;
  -webkit-mask-image: var(--sprite-url);
  mask-image: var(--sprite-url);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: brightness(var(--fur-brightness, 1)) contrast(var(--fur-contrast, 1.1)) saturate(var(--fur-saturation, 1)) drop-shadow(0 8px 10px rgba(54, 37, 67, 0.1));
}

.bbx-v5 .character-sprite__fur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sprite-url) center / contain no-repeat;
  filter: grayscale(1) contrast(1.32);
  mix-blend-mode: soft-light;
  opacity: var(--fur-detail, .46);
}

.bbx-v5 .character-sprite__eyes {
  z-index: 2;
  object-fit: contain;
  filter: none;
  -webkit-mask-image:
    radial-gradient(circle at var(--sprite-eye-left-x, 34%) var(--sprite-eye-y, 60%), #000 0 11.5%, transparent 12.3%),
    radial-gradient(circle at var(--sprite-eye-right-x, 66%) var(--sprite-eye-y, 60%), #000 0 11.5%, transparent 12.3%);
  mask-image:
    radial-gradient(circle at var(--sprite-eye-left-x, 34%) var(--sprite-eye-y, 60%), #000 0 11.5%, transparent 12.3%),
    radial-gradient(circle at var(--sprite-eye-right-x, 66%) var(--sprite-eye-y, 60%), #000 0 11.5%, transparent 12.3%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.bbx-v5 .character-sprite::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background-image: linear-gradient(var(--iris-color, #62d8ff), var(--iris-color, #62d8ff)), var(--sprite-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-blend-mode: color;
  -webkit-mask-image:
    radial-gradient(circle at var(--sprite-eye-left-x, 34%) var(--sprite-eye-y, 60%), #000 0 7.8%, transparent 8.4%),
    radial-gradient(circle at var(--sprite-eye-right-x, 66%) var(--sprite-eye-y, 60%), #000 0 7.8%, transparent 8.4%);
  mask-image:
    radial-gradient(circle at var(--sprite-eye-left-x, 34%) var(--sprite-eye-y, 60%), #000 0 7.8%, transparent 8.4%),
    radial-gradient(circle at var(--sprite-eye-right-x, 66%) var(--sprite-eye-y, 60%), #000 0 7.8%, transparent 8.4%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.bbx-v5 .character-sprite__contact-shadow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -2.4%;
  width: var(--shadow-width, 72%);
  height: 8%;
  border-radius: 50%;
  background: rgb(57 37 67 / var(--shadow-opacity, .34));
  filter: blur(clamp(3px, calc(var(--bbx-stage-vw) * .42), 8px));
  transform: translateX(-50%) scaleX(1.08);
  pointer-events: none;
}

.bbx-v5 .stage-character__eyes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.bbx-v5 .dynamic-eye {
  position: absolute;
  top: var(--eye-y, 53%);
  width: var(--eye-size, 18%);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  transform: translate(calc(-50% + var(--eye-shift-x, 0px)), calc(-50% + var(--eye-shift-y, 0px)));
  transition: opacity 180ms ease;
}

.bbx-v5 .dynamic-eye--left { left: var(--eye-left-x, 34%); }
.bbx-v5 .dynamic-eye--right { left: var(--eye-right-x, 68%); }

.bbx-v5 .stage-character.is-eye-enabled .dynamic-eye { opacity: 1; }

.bbx-v5 .dynamic-eye::before,
.bbx-v5 .dynamic-eye::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
}

.bbx-v5 .dynamic-eye__asset {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.bbx-v5 .stage-character.has-custom-eye-assets .dynamic-eye__asset { display: block; }
.bbx-v5 .stage-character.has-custom-eye-assets .dynamic-eye::before,
.bbx-v5 .stage-character.has-custom-eye-assets .dynamic-eye::after { opacity: 0.18; }

.bbx-v5 .dynamic-eye::before {
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62), 0 0 12px var(--eye-glow, rgba(111, 227, 255, 0.45));
  background: radial-gradient(circle at 34% 27%, rgba(255,255,255,0.82) 0 5%, transparent 6%), radial-gradient(circle, transparent 54%, var(--eye-tint, rgba(79, 211, 255, 0.34)) 78%, transparent 81%);
  animation: eye-breathe 2.8s ease-in-out infinite;
}

.bbx-v5 .dynamic-eye::after {
  font-family: Arial, sans-serif;
  font-size: 30%;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 8px currentColor;
}

.bbx-v5 .stage-character[data-eye-mode="heart"] { --eye-tint: rgba(59, 219, 255, 0.38); --eye-glow: rgba(85, 222, 255, 0.5); }
.bbx-v5 .stage-character[data-eye-mode="heart"] .dynamic-eye::after { content: "?"; animation: eye-heart 1.6s ease-in-out infinite; }
.bbx-v5 .stage-character[data-eye-mode="spark"] { --eye-tint: rgba(255, 189, 44, 0.46); --eye-glow: rgba(255, 185, 42, 0.54); }
.bbx-v5 .stage-character[data-eye-mode="spark"] .dynamic-eye::after { content: "?"; animation: eye-spark 1.9s linear infinite; }
.bbx-v5 .stage-character[data-eye-mode="sleepy"] { --eye-tint: rgba(167, 114, 255, 0.42); --eye-glow: rgba(158, 103, 255, 0.52); }
.bbx-v5 .stage-character[data-eye-mode="sleepy"] .dynamic-eye::after { content: "?"; font-size: 44%; transform: translateY(-10%); animation: eye-sleepy 3.4s ease-in-out infinite; }

.bbx-v5 .interaction-fx {
  position: absolute;
  z-index: 55;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.bbx-v5 .drag-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  transition: opacity 120ms ease;
}

.bbx-v5 .drag-trail path {
  fill: none;
  stroke: #c6ff2e;
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(198,255,46,0.9)) drop-shadow(0 0 15px rgba(153,94,255,0.56));
  stroke-dasharray: 10 10;
  animation: trail-flow 0.55s linear infinite;
}

.bbx-v5.is-dragging .drag-trail { opacity: 0.78; }

.bbx-v5 .magnet-ring,
.bbx-v5 .fusion-wave {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
}

.bbx-v5 .magnet-ring {
  border: 2px dashed rgba(198,255,46,0.82);
  box-shadow: 0 0 28px rgba(198,255,46,0.24), inset 0 0 26px rgba(174,111,255,0.15);
}

.bbx-v5.is-magnetized .magnet-ring {
  opacity: 1;
  animation: magnet-pulse 0.9s ease-in-out infinite;
}

.bbx-v5 .fusion-wave { border: 3px solid rgba(198,255,46,0.9); }
.bbx-v5.is-fusing .fusion-wave { animation: fusion-wave 0.72s cubic-bezier(.2,.8,.2,1) both; }

.bbx-v5 .particle-field { position: absolute; inset: 0; overflow: visible; }
.bbx-v5 .fusion-particle {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--particle-color, #c6ff2e);
  box-shadow: 0 0 10px currentColor;
  animation: particle-out 0.75s ease-out both;
}

.bbx-v5 .drag-proxy {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: var(--proxy-width, 150px);
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center;
  filter: drop-shadow(0 18px 18px rgba(53,31,70,0.24));
}

.bbx-v5 .drag-proxy .character-sprite__eyes,
.bbx-v5 .drag-proxy .character-sprite__custom {
  width: 100%;
  height: 100%;
}

.bbx-v5 .eye-dock {
  position: absolute;
  z-index: 40;
  left: 70.4%;
  top: 34.01%;
  width: 18.66%;
  height: 20.08%;
  padding: 1.06% 1.32% 1.15%;
  overflow: visible;
  color: #fff;
  background: radial-gradient(circle at 42% 15%, #22233d 0, #15162f 55%, #101126 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10.25% / 16.4%;
  box-shadow: 0 16px 27px rgba(53, 36, 69, 0.21), inset 0 1px 0 rgba(255,255,255,0.08);
}

.bbx-v5 .eye-dock h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(9px, calc(var(--bbx-stage-vw) * 0.8), 31px);
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1;
}

.bbx-v5 .eye-dock__modes {
  height: 84%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.8%;
  padding-top: 6.5%;
  overflow: visible;
}

.bbx-v5 .eye-mode {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #f8f5ff;
  background: transparent;
  overflow: visible;
}

.bbx-v5 .eye-mode__image {
  width: 88%;
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.13);
}

.bbx-v5 .eye-mode__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.bbx-v5 .eye-mode.is-active .eye-mode__image {
  box-shadow: 0 0 0 3px #d4ff35, 0 0 15px rgba(205, 255, 53, 0.28);
}

.bbx-v5 .eye-mode__dot {
  display: none;
}

.bbx-v5 .eye-mode.is-active::after { display: none; }

.bbx-v5 .eye-mode__name {
  margin-top: clamp(12px, calc(var(--bbx-stage-vw) * 0.82), 30px);
  font-size: clamp(7px, calc(var(--bbx-stage-vw) * 0.73), 28px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bbx-v5 .ip-shelf {
  position: absolute;
  z-index: 50;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.bbx-v5 .ip-shelf__swipe-hint { display: none; }

.bbx-v5 .ip-shelf__track {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 2%;
  padding-inline: 4%;
}

.bbx-v5 .ip-shelf__platform {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 84.27%;
  width: 100%;
  height: 11.05%;
  object-fit: fill;
}

.bbx-v5 .ip-piece {
  position: relative;
  z-index: 2;
  left: auto;
  top: 64.1%;
  width: auto;
  overflow: visible;
  height: 35.9%;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.bbx-v5 .ip-piece:active { cursor: grabbing; }

.bbx-v5 .ip-piece > .character-sprite {
  position: absolute;
  left: 50%;
  top: 0;
  width: 72%;
  transform: translateX(-50%);
  pointer-events: none;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .bbx-v5 .ip-piece:hover > .character-sprite {
    transform: translateX(-50%) translateY(-2.5%) scale(1.035);
  }

  .bbx-v5 .ip-piece:hover .character-slot {
    transform: translateX(-50%) translateY(-2px);
    border-color: rgba(198, 255, 46, 0.85);
    box-shadow: 0 8px 18px rgba(82, 52, 112, 0.16), inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 2px rgba(198,255,46,.16);
  }

  .bbx-v5 .ip-piece:hover .character-slot__icon { color: #7d51b7; transform: rotate(18deg) scale(1.08); }
}

.bbx-v5 .ip-piece:focus-visible { outline: none; }
.bbx-v5 .ip-piece:focus-visible .character-slot__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

@keyframes trail-flow { to { stroke-dashoffset: -20; } }
@keyframes magnet-pulse { 50% { opacity: .65; transform: translate(-50%, -50%) scale(.9); } }
@keyframes fusion-wave { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); } }
@keyframes particle-out { to { opacity: 0; transform: translate(var(--particle-x), var(--particle-y)) scale(.2); } }
@keyframes eye-breathe { 50% { filter: brightness(1.17); transform: scale(1.035); } }
@keyframes eye-heart { 50% { transform: scale(1.22); } }
@keyframes eye-spark { to { transform: rotate(360deg); } }
@keyframes eye-sleepy { 0%,72%,100% { transform: translateY(-10%) scaleY(1); } 78%,88% { transform: translateY(-4%) scaleY(.35); } }

.bbx-v5 .ip-piece h3 {
  position: absolute;
  left: 50%;
  top: var(--label-top);
  margin: 0;
  transform: translateX(-50%);
  min-width: 68%;
  height: clamp(25px, calc(var(--bbx-stage-vw) * 2.2), 48px);
  padding: 0 clamp(8px, calc(var(--bbx-stage-vw) * 0.72), 18px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, calc(var(--bbx-stage-vw) * 0.38), 9px);
  border: 1px solid rgba(111, 78, 151, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(244,235,250,.72));
  box-shadow: 0 5px 12px rgba(72, 49, 91, 0.1), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(7px);
  font-size: clamp(9px, calc(var(--bbx-stage-vw) * 0.82), 30px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.bbx-v5 .character-slot__icon {
  color: #9a70c8;
  font-size: .82em;
  transition: color 180ms ease, transform 180ms ease;
}

.bbx-v5 .character-slot__state { display: none; font-size: 0; letter-spacing: .12em; }
.bbx-v5 .character-slot__state::before { font-size: clamp(7px, calc(var(--bbx-stage-vw) * 0.62), 22px); }
.bbx-v5 .ip-piece.is-drag-source .character-slot__name,
+.bbx-v5 .ip-piece.is-linking .character-slot__name,
+.bbx-v5 .ip-piece.is-linked .character-slot__name { display: inline; }
+.bbx-v5 .ip-piece.is-drag-source .character-slot__state,
+.bbx-v5 .ip-piece.is-linking .character-slot__state,
+.bbx-v5 .ip-piece.is-linked .character-slot__state { display: none; }
.bbx-v5 .ip-piece.is-linked .character-slot { border-color: rgba(198,255,46,.9); background: rgba(245,255,219,.88); }
.bbx-v5 .ip-piece.is-rejected .character-slot { animation: slot-reject 320ms ease; }

.bbx-v5 .ip-piece { --label-top: 71.5%; }
.bbx-v5 .ip-piece--taotao { --iris-color:#43ccff; --fur-contrast:1.10; --fur-detail:.44; }
.bbx-v5 .ip-piece--qingmang { --iris-color:#a86cff; --fur-contrast:1.14; --fur-detail:.52; }
.bbx-v5 .ip-piece--yuebai { --iris-color:#71df55; --fur-contrast:1.24; --fur-saturation:.42; --fur-detail:.72; }
.bbx-v5 .ip-piece--jiuzi { --iris-color:#ffb62f; --fur-contrast:1.16; --fur-detail:.54; }
.bbx-v5 .ip-piece--xuantian { --iris-color:#d9e34b; --fur-contrast:1.42; --fur-saturation:.78; --fur-detail:.88; }

@keyframes slot-reject { 25% { transform: translateX(calc(-50% - 4px)); } 50% { transform: translateX(calc(-50% + 4px)); } 75% { transform: translateX(calc(-50% - 2px)); } }

/* V8 uses one logical coordinate system per artwork. Positioning stays based
   on 1672x980 / 941x1400 regardless of each native source image size. */
.bbx-v5 {
  min-height: 0;
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: var(--bbx-section-bg);
}

.bbx-v5::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: none;
  background: var(--bbx-section-bg);
  transform: translateX(-50%);
  pointer-events: none;
}

.bbx-v5 .core-studio__container,
.bbx-v5 .core-studio__container.container,
.bbx-v5 .core-studio__container.container-fluid,
.bbx-v5 .core-studio__container.container-full {
  padding-inline: 0;
}

.bbx-v5 .core-studio__frame {
  width: 100%;
  height: var(--bbx-live-frame-height, auto);
  aspect-ratio: 1672 / 980;
}

.bbx-v5 .core-studio__scene {
  overflow: hidden;
  background-color: var(--bbx-section-bg);
  background-image: var(--bbx-background-desktop);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.bbx-v5 .site-header,
.bbx-v5 .main-pedestal,
.bbx-v5 .ip-shelf__platform,
.bbx-v5 .ip-shelf__swipe-hint,
.bbx-v5 .shelf-arrow {
  display: none !important;
}

.bbx-v5 .hero-copy {
  left: 4.7%;
  top: 21.3%;
  width: 24.5%;
  text-align: left;
}

.bbx-v5 .hero-copy__eyebrow {
  margin-bottom: 2.8%;
  font-size: clamp(9px, calc(var(--bbx-stage-vw) * .72), 12px);
  letter-spacing: .2em;
}

.bbx-v5 .hero-copy h1 {
  font-size: clamp(38px, calc(var(--bbx-stage-vw) * 3.25), 55px);
  line-height: .92;
  letter-spacing: 0;
}

.bbx-v5 .hero-copy__sub {
  margin-top: 6.2%;
  font-size: clamp(14px, calc(var(--bbx-stage-vw) * 1.02), 18px);
  letter-spacing: 0;
}

.bbx-v5 .hero-copy__prompt {
  width: auto;
  min-width: 0;
  height: clamp(38px, calc(var(--bbx-stage-vw) * 2.75), 46px);
  margin-top: 6.5%;
  padding-inline: clamp(13px, calc(var(--bbx-stage-vw) * 1.08), 18px);
  gap: clamp(7px, calc(var(--bbx-stage-vw) * .62), 11px);
  font-size: clamp(8px, calc(var(--bbx-stage-vw) * .58), 10px);
  letter-spacing: .12em;
}

.bbx-v5 .hero-copy__hand {
  width: clamp(18px, calc(var(--bbx-stage-vw) * 1.22), 21px);
  height: clamp(18px, calc(var(--bbx-stage-vw) * 1.22), 21px);
}

.bbx-v5 .stage-character {
  left: 50%;
  top: var(--stage-foot-desktop, 53.2%);
  width: var(--stage-width-desktop, 15.2%);
}

.bbx-v5 .magnet-ring,
.bbx-v5 .fusion-wave,
.bbx-v5 .fusion-particle {
  left: 50%;
  top: 42.2%;
}

.bbx-v5 .magnet-ring,
.bbx-v5 .fusion-wave {
  width: 21%;
}

.bbx-v5 .eye-dock {
  z-index: 80;
  left: 71.70%;
  top: 28.49%;
  width: 16.24%;
  height: 14.27%;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.bbx-v5 .eye-dock h2,
.bbx-v5 .eye-mode__image,
.bbx-v5 .eye-mode__name {
  display: none;
}

.bbx-v5 .eye-dock__modes {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: visible;
}

.bbx-v5 .eye-mode {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 30%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.bbx-v5 .eye-mode:nth-child(1) { left: 19.2%; }
.bbx-v5 .eye-mode:nth-child(2) { left: 50.2%; }
.bbx-v5 .eye-mode:nth-child(3) { left: 80.3%; }

.bbx-v5 .eye-mode::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 38%;
  height: clamp(2px, calc(var(--bbx-stage-vw) * .18), 3px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bbx-v5 .eye-mode:hover::after,
.bbx-v5 .eye-mode:focus-visible::after {
  background: rgba(255, 255, 255, .76);
}

.bbx-v5 .eye-mode.is-active::after {
  display: block;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(198, 255, 46, .72);
}

.bbx-v5 .ip-shelf,
.bbx-v5 .ip-shelf__track {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: visible;
  pointer-events: none;
}

.bbx-v5 .ip-shelf__track .ip-piece {
  position: absolute;
  top: calc(68.7% + var(--shelf-offset-y, 0px));
  width: 13.7%;
  height: 24%;
  translate: -50% 0;
  pointer-events: auto;
  touch-action: none;
}

.bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(1) { left: 21.43%; }
.bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(2) { left: 35.52%; }
.bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(3) { left: 49.79%; }
.bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(4) { left: 64.08%; }
.bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(5) { left: 78.12%; }

.bbx-v5 .ip-shelf__track .ip-piece > .character-sprite {
  width: calc(67% * var(--shelf-scale, 1));
}

.bbx-v5 .ip-piece h3 {
  top: 75.2%;
  min-width: 58%;
  height: clamp(20px, calc(var(--bbx-stage-vw) * 1.54), 26px);
  padding-inline: clamp(6px, calc(var(--bbx-stage-vw) * .52), 9px);
  gap: 4px;
  font-size: clamp(7px, calc(var(--bbx-stage-vw) * .53), 9px);
  letter-spacing: 0;
}

@media (max-width: 900px) and (orientation: portrait), (max-width: 767px) {
  .bbx-v5 .core-studio__container {
    max-width: 620px;
  }

  .bbx-v5 .core-studio__frame {
    height: var(--bbx-live-frame-height, auto);
    min-height: 0;
    max-height: none;
    aspect-ratio: 941 / 1400;
  }

  .bbx-v5 .core-studio__scene {
    background-image: var(--bbx-background-mobile);
    background-size: 100% 100%;
    background-position: center;
  }

  .bbx-v5 .hero-copy {
    left: 5%;
    top: 3.2%;
    width: 90%;
    text-align: center;
  }

  .bbx-v5 .hero-copy__eyebrow {
    margin-bottom: 2.3%;
    font-size: clamp(8px, calc(var(--bbx-stage-vw) * 2.15), 11px);
    letter-spacing: .18em;
  }

  .bbx-v5 .hero-copy h1 {
    font-size: clamp(34px, calc(var(--bbx-stage-vw) * 8.8), 49px);
    line-height: .9;
    letter-spacing: 0;
  }

  .bbx-v5 .hero-copy__sub {
    margin-top: 3.5%;
    font-size: clamp(13px, calc(var(--bbx-stage-vw) * 3.65), 20px);
  }

  .bbx-v5 .hero-copy__prompt {
    height: clamp(36px, calc(var(--bbx-stage-vw) * 10.3), 48px);
    margin-top: 3.8%;
    margin-inline: auto;
    padding-inline: clamp(12px, calc(var(--bbx-stage-vw) * 3.9), 19px);
    font-size: clamp(8px, calc(var(--bbx-stage-vw) * 2.4), 11px);
  }

  .bbx-v5 .hero-copy__prompt > span:last-child { display: none; }
  .bbx-v5 .hero-copy__prompt::after { content: attr(data-mobile-label); }

  .bbx-v5 .stage-character {
    left: 38.8%;
    top: var(--stage-foot-mobile, 60.8%);
    width: var(--stage-width-mobile, 27%);
  }

  .bbx-v5 .magnet-ring,
  .bbx-v5 .fusion-wave,
  .bbx-v5 .fusion-particle {
    left: 38.8%;
    top: 52.2%;
  }

  .bbx-v5 .magnet-ring,
  .bbx-v5 .fusion-wave {
    width: 36%;
  }

  .bbx-v5 .eye-dock {
    left: 74.27%;
    top: 30.72%;
    width: 20.04%;
    height: 7.39%;
  }

  .bbx-v5 .eye-mode {
    top: 0;
    width: 30%;
    height: 100%;
  }

  .bbx-v5 .eye-mode:nth-child(1) { left: 19.5%; }
  .bbx-v5 .eye-mode:nth-child(2) { left: 50.4%; }
  .bbx-v5 .eye-mode:nth-child(3) { left: 80.1%; }

  .bbx-v5 .eye-mode::after {
    width: 36%;
    height: 2px;
  }

  .bbx-v5 .ip-shelf,
  .bbx-v5 .ip-shelf__track {
    inset: 0;
    overflow: visible;
    touch-action: none;
  }

  .bbx-v5 .ip-shelf__track .ip-piece {
    top: calc(76.1% + var(--shelf-offset-y, 0px));
    width: 18%;
    height: 20%;
    translate: -50% 0;
    touch-action: none;
  }

  .bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(1) { left: 19.26%; }
  .bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(2) { left: 33.95%; }
  .bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(3) { left: 49.25%; }
  .bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(4) { left: 64.13%; }
  .bbx-v5 .ip-shelf__track .ip-piece:nth-of-type(5) { left: 78.52%; }

  .bbx-v5 .ip-shelf__track .ip-piece > .character-sprite {
    width: calc(70% * var(--shelf-scale, 1));
  }

  .bbx-v5 .ip-piece h3 {
    top: 56.5%;
    min-width: 74%;
    height: clamp(18px, calc(var(--bbx-stage-vw) * 6.1), 27px);
    padding-inline: 5px;
    font-size: clamp(6px, calc(var(--bbx-stage-vw) * 2.05), 9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbx-v5 .drag-trail path,
  .bbx-v5 .magnet-ring,
  .bbx-v5 .fusion-wave,
  .bbx-v5 .fusion-particle,
  .bbx-v5 .dynamic-eye::before,
  .bbx-v5 .dynamic-eye::after,
  .bbx-v5 .core-idle-eye,
  .bbx-v5 .core-idle-eye img {
    animation: none !important;
  }
}

