/**
 * アイコン跳ねるアニメーション共通スタイル
 *
 * 使用場所:
 * - 最近引いた人のアイコン (.player-icon-wrapper)
 * - ウェイトリスト登録済みアイコン (.waitlist-user-icon)
 */

/* ========================================
   Keyframes定義（4種類のバウンス）
   ======================================== */

@keyframes bounce1 {
    0%, 20%, 100% { transform: translateY(0); }
    10% { transform: translateY(-10px); }
}

@keyframes bounce2 {
    0%, 20%, 100% { transform: translateY(0); }
    10% { transform: translateY(-14px); }
}

@keyframes bounce3 {
    0%, 20%, 100% { transform: translateY(0); }
    10% { transform: translateY(-8px); }
}

@keyframes bounce4 {
    0%, 20%, 100% { transform: translateY(0); }
    10% { transform: translateY(-12px); }
}

/* ========================================
   パフォーマンス最適化
   ======================================== */

/* GPUアクセラレーションを有効化 */
.player-icon-wrapper,
.waitlist-user-icon {
    will-change: transform;
}

/* ========================================
   最近引いた人のアイコンアニメーション
   ======================================== */

.player-icon-wrapper:nth-child(1) {
    animation: bounce1 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}
.player-icon-wrapper:nth-child(2) {
    animation: bounce2 1.7s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.1s;
}
.player-icon-wrapper:nth-child(3) {
    animation: bounce3 1.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.2s;
}
.player-icon-wrapper:nth-child(4) {
    animation: bounce4 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.15s;
}
.player-icon-wrapper:nth-child(5) {
    animation: bounce1 1.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.3s;
}
.player-icon-wrapper:nth-child(6) {
    animation: bounce2 1.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.25s;
}
.player-icon-wrapper:nth-child(7) {
    animation: bounce3 1.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.35s;
}
.player-icon-wrapper:nth-child(8) {
    animation: bounce4 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.4s;
}
.player-icon-wrapper:nth-child(9) {
    animation: bounce1 1.7s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.2s;
}
.player-icon-wrapper:nth-child(10) {
    animation: bounce2 1.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.45s;
}
.player-icon-wrapper:nth-child(11) {
    animation: bounce3 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.5s;
}
.player-icon-wrapper:nth-child(12) {
    animation: bounce4 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.3s;
}

/* ========================================
   ウェイトリスト登録済みアイコンアニメーション
   ======================================== */

.waitlist-user-icon:nth-child(1) {
    animation: bounce1 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}
.waitlist-user-icon:nth-child(2) {
    animation: bounce2 1.7s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.1s;
}
.waitlist-user-icon:nth-child(3) {
    animation: bounce3 1.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.2s;
}
.waitlist-user-icon:nth-child(4) {
    animation: bounce4 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.15s;
}
.waitlist-user-icon:nth-child(5) {
    animation: bounce1 1.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.3s;
}
.waitlist-user-icon:nth-child(6) {
    animation: bounce2 1.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.25s;
}
.waitlist-user-icon:nth-child(7) {
    animation: bounce3 1.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.35s;
}
.waitlist-user-icon:nth-child(8) {
    animation: bounce4 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.4s;
}
.waitlist-user-icon:nth-child(9) {
    animation: bounce1 1.7s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.2s;
}
.waitlist-user-icon:nth-child(10) {
    animation: bounce2 1.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.45s;
}
.waitlist-user-icon:nth-child(11) {
    animation: bounce3 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.5s;
}
.waitlist-user-icon:nth-child(12) {
    animation: bounce4 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite 0.3s;
}
