.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    cursor: default;
}

.highlight-hole {
    position: fixed;
    background-color: transparent;
    border-radius: 8px;
    box-shadow: none;
    z-index: 10000;
    pointer-events: none; 
    transition: all 0.2s ease;
}

.help-modal-tour {
    position: fixed;
    background-color: var(--default-text);
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 300px;
    min-width: 260px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.5s ease;
}

.help-modal-tour.visible {
    opacity: 1;
    visibility: visible;
}

.help-modal-tour[data-placement="center"] {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    bottom: auto !important;
}
 

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tour-title {
    margin: 0;
    font-size: var(--body);;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.3;
}

.tour-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.tour-close:hover {
    color: #333;
}

.tour-description {
    margin: 0 0 16px 0;
    font-size: var(--small);
    color: black;
    line-height: 1.5;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.tour-prev {
    background: none;
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--smaller);
    color: #666;
    transition: all 0.2s;
}

.tour-prev:hover {
    background-color: #f5f5f5;
}

.tour-counter {
    font-size: var(--smaller);
    color: #999;
    white-space: nowrap;
}

.tour-next {
    background: var(--primary-green);
    color: var(--default-text);
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--smaller);
    transition: all 0.2s;
}

.tour-next:hover {
    background: #267D4C;
    transform: scale(1.05);
}

.tour-next:active {
    transform: scale(0.98);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .help-modal-tour {
        max-width: 260px;
        min-width: 220px;
        padding: 12px 16px;
    }

    .tour-prev, .tour-next {
        padding: 4px 12px;
    }
    
    .tour-prev {
        padding: 4px 10px;
    }
    
    .tour-next {
        padding: 4px 14px;
    }
}

[data-help-id]:focus-visible {
    outline: 3px solid #ff6600;
    outline-offset: 4px;
}