/* ============================================================
   THÔNG BÁO "VỪA CÓ NGƯỜI MỞ KHOÁ" — ô nhỏ góc dưới-trái
   (assets/js/social-proof.js). Dùng biến màu của theme nên tự
   đúng cả nền tối (mặc định) lẫn nền sáng.
   ============================================================ */
.tarot-proof {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: min(400px, calc(100vw - 32px));
    padding: 0.7rem 2.2rem 0.7rem 0.75rem;
    border-radius: 14px;
    /* Nền ĐẶC (bg-elevated) — surface-1 của theme là lớp phủ trong suốt, dùng
       làm nền nổi thì chữ phía sau lộ qua. */
    background: var(--theme-bg-elevated, #14141c);
    border: 1px solid var(--theme-border);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    color: var(--theme-text-primary);
    font-size: 0.85rem;
    line-height: 1.45;
    text-wrap: pretty;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

/* Các biến --gk-* của theme là GRADIENT (dùng làm background), không phải màu:
   đường kẻ vàng mép trên lấy --gk-line, còn chữ vàng dùng --theme-gold-text. */
.tarot-proof::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: var(--gk-line, transparent);
}

.tarot-proof.is-in {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.tarot-proof-ico {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gk-soft, rgba(212, 165, 116, 0.12));
    color: var(--theme-gold-text);
    font-size: 0.95rem;
}

.tarot-proof-body {
    min-width: 0;
    color: inherit;
    font-weight: 400;
    text-decoration: none;
}

a.tarot-proof-body:hover .tarot-proof-what {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tarot-proof-name { font-weight: 800; }

.tarot-proof-what {
    font-weight: 700;
    color: var(--theme-gold-text);
}

.tarot-proof-seg { white-space: nowrap; }

.tarot-proof-meta {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.76rem;
    color: var(--theme-text-faint);
    font-variant-numeric: tabular-nums;
}

.tarot-proof-x {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--theme-text-faint);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.tarot-proof-x:hover { color: var(--theme-text-primary); }

@media (max-width: 600px) {
    .tarot-proof {
        left: 12px;
        right: 12px;
        max-width: none;
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tarot-proof { transition: none; transform: none; }
}
