/* codex: 2026-11-13 折叠动画、彩屑礼花粒子与浮动微提示样式表 */

/* 浮动轻提示 Toast */
.praise-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(33, 33, 33, 0.92);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    max-width: 90vw;
}

.praise-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 彩屑粒子容器 */
#confettiContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 3000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 14px;
    top: -20px;
    opacity: 0.9;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        top: -20px;
        transform: rotate(0deg) translateX(0);
    }
    100% {
        top: 105vh;
        transform: rotate(720deg) translateX(60px);
    }
}

/* 方格折叠微翻动动效 */
@keyframes foldFlipIn {
    0% {
        transform: scale(0.95) rotateY(20deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

.paper-cell.has-stack {
    animation: foldFlipIn 0.25s ease-out;
}

/* 徽章解锁即时弹入与点亮高光动效 */
@keyframes badgePopIn {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.thickness-badge.current {
    animation: badgePopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
