/* 动效：toast / 星尘粒子 / 结算揭幕 / 摇晃提示 */

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(.9); }
  to { opacity: 1; transform: none; }
}
.toast {
  position: fixed; top: 16%; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,.94); border: 2px solid #fbbf24; color: #f8fafc;
  padding: 10px 22px; border-radius: 14px; font-size: 20px; z-index: 60;
  animation: toast-in .25s ease-out; text-align: center; max-width: 80vw;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.shake { animation: shake .4s ease-in-out; }

@keyframes hint-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(251,191,36,0); }
  50% { box-shadow: 0 0 22px #fbbf24; }
}
.hint { animation: hint-glow 1s ease-in-out infinite; border-color: #fbbf24 !important; }

@keyframes particle-fly {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); }
}
.particle {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  pointer-events: none; animation: particle-fly .6s ease-out forwards;
}

@keyframes capsule-pop {
  from { transform: scale(1.1) rotate(-3deg); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.capsule { animation: capsule-pop .3s ease-out; }
.capsule.reveal { border-color: #fbbf24; background: rgba(251,191,36,.2); transform: scale(1.06); }

@keyframes meteor-fall {
  from { transform: translateY(-40px); }
  to { transform: translateY(240px); }
}

@keyframes energy-pulse {
  0%, 100% { box-shadow: 0 0 8px #38bdf8; }
  50% { box-shadow: 0 0 26px #38bdf8, 0 0 40px #fbbf24; }
}
.energy-full-pulse { animation: energy-pulse 1.2s infinite; }
