/* =====================================================
   PIXIE 3D — Real model container, bubble, animations
   ===================================================== */

.pixie3d-container {
  position: fixed; bottom: 16px; right: 16px;
  z-index: 500; cursor: pointer; user-select: none;
  width: 200px; height: 200px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pixie3d-container:hover { transform: scale(1.04); }

.pixie3d-canvas {
  width: 100%; height: 100%;
  filter: drop-shadow(0 14px 28px rgba(244, 166, 189, 0.45));
}

.pixie3d-bubble {
  position: fixed; bottom: 230px; right: 20px;
  max-width: 280px; padding: 14px 18px;
  background: white; border-radius: 22px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
  font-family: 'Patrick Hand', 'Nunito', cursive;
  font-size: 1.05rem; line-height: 1.4;
  color: var(--t-text, #1F2A44);
  z-index: 501;
  opacity: 0; pointer-events: none;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px solid var(--t-primary, #F4A6BD);
}

.pixie3d-bubble.show {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}

.pixie3d-bubble::after {
  content: '';
  position: absolute;
  bottom: -16px; right: 70px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 16px solid white;
}
.pixie3d-bubble::before {
  content: '';
  position: absolute;
  bottom: -20px; right: 68px;
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 18px solid var(--t-primary, #F4A6BD);
  z-index: -1;
}

.pixie3d-bubble-close {
  position: absolute; top: 4px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--t-bg-2, #f0f0f0);
  border: none; font-size: 0.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: var(--t-text-soft, #666);
}
.pixie3d-bubble-close:hover { background: var(--t-primary-soft, #fce7f0); }

.pixie3d-flash {
  position: fixed; bottom: 240px; right: 20px;
  background: linear-gradient(135deg, var(--t-accent, #FFCB47), var(--t-accent-deep, #F2B544));
  color: var(--t-text, #1F2A44);
  padding: 8px 18px; border-radius: 99px;
  font-family: 'Fredoka One', cursive; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(242, 181, 68, 0.4);
  z-index: 501;
  animation: flashUp 2s ease-out forwards;
  pointer-events: none;
}

@keyframes flashUp {
  0% { transform: translateY(20px) scale(0.5); opacity: 0; }
  20% { transform: translateY(0) scale(1.1); opacity: 1; }
  30% { transform: scale(1); }
  80% { opacity: 1; transform: translateY(-30px); }
  100% { transform: translateY(-50px); opacity: 0; }
}

@media (max-width: 768px) {
  .pixie3d-container { bottom: 12px; right: 12px; width: 140px; height: 140px; }
  .pixie3d-bubble { bottom: 170px; right: 14px; max-width: 220px; font-size: 0.95rem; padding: 10px 14px; }
}

@media (max-height: 600px) {
  .pixie3d-container { display: none; }
}
