/* css/pity.css — the Pity HUD chip. Gold-on-dark noir voice, docked bottom-left
   above #ui-toolbar so it never overlaps the destiny chip (top) or the toolbar.
   Only shown (via the .visible class) when a guarantee is within ~5 of firing. */

#pity-hud-chip {
    position: fixed;
    left: 12px;
    bottom: 64px;
    display: none;
    max-width: 60vw;
    padding: 6px 12px;
    background: rgba(20, 16, 10, 0.85);
    border: 1px solid #FFD700;
    border-radius: 999px;
    color: #FFD700;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 6000;
    pointer-events: none;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
    backdrop-filter: blur(4px);
}

#pity-hud-chip.visible {
    display: block;
    animation: pity-chip-in 0.4s ease-out both;
}

@keyframes pity-chip-in {
    0%   { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Imminent (≤2 away): a subtle pulse to raise the anticipation. */
#pity-hud-chip.pity-pulse {
    animation: pity-chip-in 0.4s ease-out both, pity-chip-pulse 1.1s ease-in-out infinite 0.4s;
    border-color: #ffe680;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
}

@keyframes pity-chip-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.3); }
    50%      { box-shadow: 0 0 22px rgba(255, 215, 0, 0.6); }
}

@media (max-width: 768px) {
    #pity-hud-chip {
        left: 8px;
        bottom: 8px;
        font-size: 11px;
        max-width: 66vw;
    }
}
