
/* =========================================================
   COVER
========================================================= */

.cover-title {
    animation: coverTitleFloat 4s ease-in-out infinite;
}

.cover-submit {
    animation: coverButtonPulse 2.4s ease-in-out infinite;
}

.cover-submit:hover {
    animation-play-state: paused;
    transform: translateX(-50%) scale(1.06);
}

.cover-npc {
    animation: coverNpcFloat 4.8s ease-in-out infinite;
}
/* 我要投稿按鈕 - 呼吸效果 */
.cover-submit img {
    animation: submitBtnPulse 1.8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes submitBtnPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* =========================================================
   ABOUT
========================================================= */

.about-ch {
    transform-origin: center bottom;
    animation: aboutCharacterFloat 5s ease-in-out infinite;
}

.item-1 {
    animation: decoFloatA 5.2s ease-in-out infinite;
}

.item-2 {
    animation: decoFloatB 6.4s ease-in-out infinite;
}

.item-3 {
    animation: decoFloatA 5.8s ease-in-out infinite reverse;
}

.item-4 {
    animation: decoFloatB 6s ease-in-out infinite;
}

.item-5 {
    animation: decoFloatA 7s ease-in-out infinite;
}

.item-6 {
    animation: decoFloatB 5.5s ease-in-out infinite reverse;
}

.item-7 {
    animation: decoFloatA 6.8s ease-in-out infinite;
}


/* =========================================================
   REWARDS
========================================================= */

.reward-card {
    transform-origin: center bottom;
}

.reward-card-main {
    animation: rewardMainFloat 4s ease-in-out infinite;
}

.star-a {
    animation: starTwinkle 3s ease-in-out infinite;
}

.star-b {
    animation: starTwinkle 3.8s ease-in-out infinite .5s;
}

.star-c {
    animation: starTwinkle 4.2s ease-in-out infinite 1s;
}

.deco-ribbon-l {
    animation: ribbonFloat 6s ease-in-out infinite;
}

.deco-ribbon-r {
    animation: ribbonFloat 6.5s ease-in-out infinite reverse;
}


/* =========================================================
   RULES
========================================================= */

.rules-item-1 {
    animation: decoFloatA 6s ease-in-out infinite;
}

.rules-item-2 {
    animation: decoFloatB 7s ease-in-out infinite;
}

.rules-item-3 {
    animation: decoFloatA 5.5s ease-in-out infinite reverse;
}


/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes coverTitleFloat {
    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

@keyframes coverButtonPulse {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
        filter: drop-shadow(0 5px 8px rgba(112, 75, 157, .16));
    }

    50% {
        transform: translateX(-50%) scale(1.045);
        filter: drop-shadow(0 8px 13px rgba(112, 75, 157, .28));
    }
}

@keyframes coverNpcFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes aboutCharacterFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes decoFloatA {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@keyframes decoFloatB {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(8px) rotate(-3deg);
    }
}

@keyframes rewardMainFloat {
    0%,
    100% {
        transform: translateY(-12px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes starTwinkle {
    0%,
    100% {
        transform: scale(1) rotate(0);
        opacity: .65;
    }

    50% {
        transform: scale(1.12) rotate(8deg);
        opacity: 1;
    }
}

@keyframes ribbonFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .cover-title,
    .cover-submit,
    .cover-npc,
    .about-ch,
    .#about .ui-deco,
    .reward-card-main,
    .deco,
    .rules-item {
        animation: none !important;
    }

}