/* --- UNIVERSAL TOOLTIP SYSTEM --- */
#global-tooltip {
    position: fixed;
    z-index: 100000; /* Above everything */
    pointer-events: none;
    background: radial-gradient(circle at top left, #fffcf5, #f5e6b3);
    border: 3px solid #4a3318;
    padding: 12px 18px;
    color: #4a3318;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 0 10px rgba(139,90,43,0.1);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 320px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

#global-tooltip.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tooltip-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: #8b5a2b;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(139,90,43,0.2);
    padding-bottom: 4px;
}

.tooltip-line {
    display: block;
    color: #5d4a37;
    font-size: 0.85rem;
}

.tooltip-img {
    display: block;
    margin: 10px auto 5px;
    max-width: 80px;
    max-height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.tooltip-rarity {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.75rem;
    margin-top: 5px;
    display: block;
}
