@keyframes sandFlow {
    0% { height: var(--initial-height, 0%); }
    100% { height: 100%; }
}

@keyframes sandFlowReverse {
    0% { height: var(--initial-height, 100%); }
    100% { height: 0%; }
}

.sand-top {
    animation: sandFlowReverse linear;
    animation-play-state: paused;
    transform-origin: top;
    height: var(--initial-height, 100%);
}

.sand-bottom {
    animation: sandFlow linear;
    animation-play-state: paused;
    transform-origin: bottom;
    height: var(--initial-height, 0%);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.coin-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
}

.glow-effect {
    animation: glow 2s infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-effect {
    animation: float 3s ease-in-out infinite;
}

@keyframes sparkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-effect {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 12s infinite;
}