/* ══ ANA Streak – widget dni z rzędu ══════════════════════ */

.ana-streak-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #14102b, #0d1322);
    border: 1px solid rgba(124, 58, 237, 0.45);
    border-radius: 40px;
    padding: 11px 16px 11px 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(16px) scale(0.94);
    transition: opacity 0.32s ease, transform 0.32s ease;
    max-width: 320px;
}
.ana-streak-widget.ana-streak-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ana-streak-flame {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    animation: anaFlameFlicker 1.8s ease-in-out infinite;
}
@keyframes anaFlameFlicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50%      { transform: scale(1.12) rotate(2deg); }
}

.ana-streak-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.ana-streak-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #6a7a9a;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
    transition: color 0.16s ease;
}
.ana-streak-close:hover {
    color: #fff;
}

/* ── Wyróżnienie przy kamieniach milowych ────────────────── */
.ana-streak-widget.ana-streak-milestone {
    border-color: transparent;
    background: linear-gradient(135deg, #7c3aed, #ff4d00);
    animation: anaMilestonePulse 2s ease-in-out infinite;
}
.ana-streak-widget.ana-streak-milestone .ana-streak-text {
    color: #fff;
}
.ana-streak-widget.ana-streak-milestone .ana-streak-close {
    color: rgba(255, 255, 255, 0.7);
}
@keyframes anaMilestonePulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4); }
    50%      { box-shadow: 0 8px 36px rgba(255, 77, 0, 0.6); }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .ana-streak-widget {
        bottom: 14px;
        right: 14px;
        left: 14px;
        max-width: none;
        padding: 12px 14px;
    }
    .ana-streak-text { font-size: 13px; }
    /* Większy obszar zamknięcia dla palca */
    .ana-streak-close {
        font-size: 24px;
        padding: 4px 4px 4px 10px;
        min-width: 32px;
    }
}
