/* KRA-1802: browser-owned acknowledgement for /demo role clicks. The script
   runs in the capture phase, so this remains visible even when a dead Blazor
   circuit cannot receive the click. It never blocks or disables another try. */
.demo-role-card.demo-role-click-pending {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.demo-click-feedback {
    position: fixed;
    z-index: 10050;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    background: #102a56;
    color: #fff;
    box-shadow: 0 12px 32px rgba(2, 12, 27, 0.32);
    font-size: 0.95rem;
    font-weight: 600;
}

.demo-click-feedback-delayed {
    background: #67220f;
}

.demo-click-feedback-retry {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.demo-click-feedback-retry:hover,
.demo-click-feedback-retry:focus-visible {
    color: #fff3c4;
}

@media (max-width: 520px) {
    .demo-click-feedback {
        align-items: flex-start;
        width: calc(100vw - 32px);
    }
}
