/* =====================================================
   SHARED COMPONENTS — Reusable across story & tour pages
===================================================== */

/* Back-to-Home floating button */
.story-back-home {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 4px solid;
    box-shadow: none !important;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: var(--heading-spacing);
    padding: 10px 18px 8px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    border-radius: 22px;
    corner-shape: squircle;
    line-height: 1;
    white-space: nowrap;
}

.story-back-home:active {
    transform: translateY(1px);
    box-shadow: none !important;
}

.story-back-home .home-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 16px;
    flex-shrink: 0;
    transform: translateY(-1.5px);
}

.story-back-home .home-arrow svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

/* Custom cursor — shared between story & tour */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.custom-cursor img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hide cursor on touch/mobile */
@media (max-width: 768px), (pointer: coarse) {
    .custom-cursor {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Mobile responsive adjustments for back-home button */
@media (max-width: 480px) {
    .story-back-home {
        top: 12px;
        left: 12px;
        padding: 6px 14px;
        font-size: 0.85rem;
        gap: 6px;
        border-radius: 18px;
    }

    .story-back-home .home-arrow {
        width: 15px;
        height: 13px;
        transform: translateY(-1px);
    }
}
