#tourOverlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 750;
    pointer-events: none;
}

#tourOverlay[hidden] {
    display: none;
}

/* Semi-transparent backdrop (CSS only, no SVG) */
#tourOverlay::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: all;
}

/* Spotlight cut-out above backdrop */
#tourSpotlight {
    position: fixed;
    border-radius: calc(var(--head) / 8);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    border: 2px solid var(--menu-accent);
    pointer-events: none;
    z-index: 751;
    transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

/* Tooltip card */
#tourTooltip {
    position: fixed;
    z-index: 752;
    display: flex;
    flex-flow: column nowrap;
    gap: calc(var(--head) / 4);
    padding: calc(var(--head) / 2);
    border-radius: calc(var(--head) / 8);
    border: 1px solid var(--nemo-toolbar-button-border);
    background: var(--menu-apps-bg);
    color: var(--nemo-text-primary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    pointer-events: all;
    transition: top 0.25s ease, left 0.25s ease;
}

#tourTitle {
    font-size: calc(var(--head) / 2.2);
    font-weight: 600;
    color: var(--nemo-text-primary);
    margin: 0;
}

#tourBody {
    font-size: calc(var(--head) / 2.6);
    color: var(--nemo-text-secondary);
    line-height: 1.5;
    margin: 0;
}

#tourBody code {
    font-family: monospace;
    padding: 0 calc(var(--head) / 12);
    border-radius: calc(var(--head) / 14);
    background: var(--menu-cats-bg);
    color: var(--menu-accent);
    font-size: calc(var(--head) / 3);
}

.tour-tooltip__footer {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--head) / 4);
    margin-top: calc(var(--head) / 6);
}

#tourCounter {
    font-size: calc(var(--head) / 2.8);
    color: var(--nemo-text-secondary);
}

.tour-tooltip__nav {
    display: flex;
    flex-flow: row nowrap;
    gap: calc(var(--head) / 4);
}

.tour-btn {
    padding: calc(var(--head) / 6) calc(var(--head) / 2.5);
    border-radius: calc(var(--head) / 10);
    font-size: calc(var(--head) / 2.6);
    cursor: pointer;
    border: solid 1px var(--nemo-toolbar-button-border);
    background: var(--menu-cats-bg);
    color: var(--nemo-text-primary);
    transition: background 0.15s;
}

.tour-btn:hover:not(:disabled) {
    background: var(--menuHover);
}

.tour-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.tour-btn--primary {
    background: var(--menu-accent);
    border-color: var(--menu-accent);
    color: #fff;
}

.tour-btn--primary:hover {
    opacity: 0.88;
}

#tourSkip {
    margin-right: auto;
    font-size: calc(var(--head) / 2.8);
    color: var(--nemo-text-secondary);
    background: transparent;
    border-color: transparent;
}
