/* Realtime notifications (duel matched) */
.duel-matched-notification {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    width: min(440px, calc(100vw - 2rem));
}
.duel-matched-notification[hidden] {
    display: none;
}
.duel-matched-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    padding: .9rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid rgba(63, 185, 80, .55);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: duelMatchedIn .3s ease;
}
.duel-matched-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #3fb950, #2ea043);
}
.duel-matched-body {
    flex: 1 1 190px;
    min-width: 0;
}
.duel-matched-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: .1rem;
}
.duel-matched-text {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.duel-matched-btn {
    white-space: nowrap;
}
.duel-matched-close {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .15rem;
    margin-left: auto;
}
.duel-matched-close:hover {
    color: var(--text);
}
@keyframes duelMatchedIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 575.98px) {
    .duel-matched-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
    }
    .duel-matched-btn {
        width: 100%;
    }
}

[data-site-theme="fresh"] .duel-matched-card {
    background: var(--f-panel);
    border-color: rgba(93, 255, 168, 0.4);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}
