.hint-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font:var(--font-input);
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
    max-width: 250px;
    word-wrap: break-word;
    white-space: normal;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hint-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.hint-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.hint-tooltip.bottom::before {
    top: -10px;
    border-top-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.9);
}