/* ══════════════════════════════════════════════════════════════
   Reader Onboarding Tour
   Spotlight overlay + tooltip card. Desktop only.
   ══════════════════════════════════════════════════════════════ */

.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: auto;
}

.tour-cutout {
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72);
    transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
    pointer-events: none;
    outline: 2px solid rgba(212, 175, 55, 0.85);
    outline-offset: 0;
}

.tour-tooltip {
    position: absolute;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #1f1c17;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 10px;
    padding: 18px 20px 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    color: #f4ecd6;
    font-size: 0.92rem;
    line-height: 1.45;
    transition: top 0.25s ease, left 0.25s ease;
    z-index: 9001;
}

.tour-tooltip-step {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d4af37;
    margin-bottom: 6px;
}

.tour-tooltip-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #f7d976;
    font-weight: 600;
}

.tour-tooltip-body {
    margin: 0 0 14px;
    color: #e8e0c8;
}

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

.tour-skip {
    color: #a8a08a;
    text-decoration: none;
    font-size: 0.85rem;
}
.tour-skip:hover {
    color: #d4af37;
    text-decoration: underline;
}

.tour-next {
    background: #d4af37;
    color: #1f1c17;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}
.tour-next:hover {
    background: #f1c84a;
}

/* ── Arrow ───────────────────────────────────────────── */
.tour-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 9px solid transparent;
}
.tour-place-bottom .tour-tooltip-arrow {
    top: -18px;
    left: 50%;
    margin-left: -9px;
    border-bottom-color: #1f1c17;
}
.tour-place-top .tour-tooltip-arrow {
    bottom: -18px;
    left: 50%;
    margin-left: -9px;
    border-top-color: #1f1c17;
}
.tour-place-left .tour-tooltip-arrow {
    right: -18px;
    top: 50%;
    margin-top: -9px;
    border-left-color: #1f1c17;
}
.tour-place-right .tour-tooltip-arrow {
    left: -18px;
    top: 50%;
    margin-top: -9px;
    border-right-color: #1f1c17;
}

/* ── Help button (replay tour) ───────────────────────── */
.reader-help-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
}
.reader-help-btn:hover {
    background: rgba(212, 175, 55, 0.15);
}
