/* Sanctum Gamification UI */

/* Floating Pill */
.sanctum-shard-pill {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #D4AF37;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    z-index: 9990; /* Below mobile nav */
    backdrop-filter: blur(5px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.sanctum-shard-pill:hover {
    transform: scale(1.05);
}

.shard-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
    animation: shard-pulse 3s infinite;
}

.shard-count {
    color: #D4AF37;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

/* Animations */
@keyframes shard-pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(212, 175, 55, 1)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.5)); }
}

.shard-update-anim {
    animation: shard-flash 1s ease-out;
}

@keyframes shard-flash {
    0% { color: #fff; text-shadow: 0 0 10px #fff; transform: scale(1.5); }
    100% { color: #D4AF37; text-shadow: none; transform: scale(1); }
}

/* Mobile Adjustment (Lift above bottom nav if present) */
@media (max-width: 767px) {
    .sanctum-shard-pill {
        bottom: 80px; /* Clear the sticky footer */
    }
}
