/* Homepage panorama controls. The existing artwork and card treatment stay in worlds.css. */
.ahd-hero {
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.ahd-hero.is-dragging,
.ahd-hero.is-dragging * {
    cursor: grabbing !important;
    user-select: none;
}

.ahd-hero:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(232, 200, 132, .9);
}

.ahd-panorama-guide {
    position: absolute;
    z-index: 12;
    bottom: 17px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 24px);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(8, 10, 19, .58);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, .85);
    transform: translateX(-50%);
    transition: opacity .25s ease, visibility .25s ease;
}

.ahd-panorama-guide-text {
    white-space: nowrap;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ahd-panorama-guide-text span {
    margin-inline: .3em;
    color: #e8c884;
}

.ahd-panorama-step {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.ahd-panorama-step span {
    display: block;
    margin-top: -4px;
    font: 300 1.6rem/1 Georgia, serif;
}

.ahd-panorama-step:hover,
.ahd-panorama-step:focus-visible {
    border-color: #e8c884;
    background: rgba(232, 200, 132, .24);
    transform: scale(1.08);
}

.ahd-panorama-step:focus-visible {
    outline: 2px solid #e8c884;
    outline-offset: 3px;
}

.ahd-hero.has-persona-open .ahd-panorama-guide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    /* The homepage's floating audio control otherwise covers the right panorama arrow. */
    .ambient-echoes {
        top: 92px;
        right: 16px;
        bottom: auto;
    }

    .ahd-hero-copy {
        bottom: 72px;
    }

    .ahd-panorama-guide {
        bottom: 10px;
        gap: 8px;
    }

    .ahd-panorama-guide-text {
        font-size: .59rem;
        letter-spacing: .04em;
    }

}

@media (prefers-reduced-motion: reduce) {
    .ahd-panorama-guide,
    .ahd-panorama-step {
        transition: none;
    }
}
