.action-banner {
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  min-height: 1.6em;
  margin-bottom: 6px;
  animation: bannerPop 0.35s ease;
}

@keyframes bannerPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#actionEmoji {
  display: inline-block;
  margin-right: 6px;
  animation: wiggle 0.6s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.scene-wrap {
  position: relative;
}

.bags-row {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 22px;
  flex-wrap: wrap;
}

.bag-panel {
  background: #f7fbff;
  border-radius: 16px;
  padding: 12px 10px;
  flex: 1 1 140px;
  max-width: 190px;
  min-height: 200px;
}

.bag-panel.bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.bag-character {
  font-size: 3.6rem;
  line-height: 1;
  margin-bottom: 4px;
}

.bag-character .char {
  display: inline-block;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.15));
  animation: idleBob 1.6s ease-in-out infinite;
}

.bag-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

@keyframes idleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bag-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  min-height: 70px;
  align-content: flex-start;
}

.bag-icons span.icon {
  font-size: 1.4rem;
  display: inline-block;
}

.icon-pop {
  animation: iconPop 0.4s ease;
}

@keyframes iconPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.icon-fade-out {
  animation: iconFadeOut 0.3s ease forwards;
}

@keyframes iconFadeOut {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.2); opacity: 0; }
}

.bag-count {
  margin-top: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--text);
}

.bag-count.pulse {
  animation: countPulse 0.4s ease;
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); color: var(--primary); }
  100% { transform: scale(1); }
}

.flight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 20;
}

.flying-icon {
  position: absolute;
  font-size: 1.7rem;
  will-change: transform;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.25));
}

@media (max-width: 620px) {
  .bags-row { flex-direction: column; align-items: center; }
  .bag-panel { max-width: 280px; width: 100%; }
}
