/* チェックイン完了カード アニメーション */

/* チェックイン完了カード - スライドアップバウンス */
.check-in-complete {
  animation: slide-up-bounce 0.6s var(--transition-bounce, cubic-bezier(0.68, -0.55, 0.265, 1.55));
}

@keyframes slide-up-bounce {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  60% {
    transform: translateY(-8px);
    opacity: 1;
  }
  80% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

/* チェックマークアイコン - 祝福回転 */
.check-in-complete__icon {
  animation: icon-celebrate 0.8s ease-out;
}

@keyframes icon-celebrate {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ポイント獲得バッジ - ポップアニメーション */
.check-in-complete__points {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--gradient-hero, linear-gradient(135deg, #ffe66d 0%, #ff6b35 50%, #ff6b9d 100%));
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--border-radius-full, 50px);
  box-shadow: 0 4px 16px rgba(255, 230, 109, 0.4);
  margin: 12px 0;
  animation: point-pop 0.6s ease-out 0.3s backwards;
}

@keyframes point-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.check-in-complete__points-icon {
  animation: star-spin 0.8s ease-out 0.3s;
}

@keyframes star-spin {
  0% {
    transform: rotate(0deg) scale(0);
  }
  70% {
    transform: rotate(360deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* アクションボタンのボーナス表示 */
.action-btn__bonus {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: 6px;
  background: rgba(255, 230, 109, 0.2);
  color: var(--accent-tertiary, #ffe66d);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--border-radius-full, 50px);
  border: 1px solid rgba(255, 230, 109, 0.3);
}

/* チェックイン完了カード全体のスタイル強化 */
.check-in-complete {
  position: relative;
  overflow: hidden;
  background: var(--gradient-success, linear-gradient(135deg, #a8e6cf 0%, #c5f0e1 100%));
  border-radius: var(--border-radius-xl, 24px);
  padding: 20px;
  box-shadow:
    0 8px 32px rgba(168, 230, 207, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* 星のきらめきオーバーレイ */
.check-in-complete::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: sparkle-drift 20s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes sparkle-drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* 紙吹雪パーティクル（JavaScriptで動的生成） */
.confetti-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
}

/* アクセシビリティ: モーション削減設定 */
@media (prefers-reduced-motion: reduce) {
  .check-in-complete,
  .check-in-complete__icon,
  .check-in-complete__points,
  .check-in-complete__points-icon,
  .confetti-particle {
    animation: none !important;
  }

  .check-in-complete::before {
    animation: none !important;
  }
}

/* モバイル最適化 */
@media (max-width: 576px) {
  .check-in-complete__points {
    font-size: 14px;
    padding: 6px 12px;
  }

  .action-btn__bonus {
    font-size: 11px;
    padding: 2px 6px;
  }
}
