﻿.xplore-guide {
    position: fixed;
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 1200;
    font-family: inherit;
}

.xplore-guide-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.8rem 0.55rem 0.55rem;
    background: rgba(18, 54, 45, 0.96);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

    .xplore-guide-button:hover,
    .xplore-guide-button:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
        background: rgba(22, 74, 60, 0.98);
    }

.xplore-guide-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #e9f8ea, #bfe7d2);
    color: #12362d;
    font-weight: 800;
    box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.12);
}

.xplore-guide-avatar-face {
    display: inline-block;
    font-size: 1.2rem;
    transform: translateY(-1px);
}

.xplore-guide-button-text {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
}

.xplore-guide-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.75rem);
    width: min(22rem, calc(100vw - 2rem));
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    color: #1c2b25;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(18, 54, 45, 0.12);
    backdrop-filter: blur(10px);
}

.xplore-guide-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.xplore-guide-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #437867;
    margin-bottom: 0.15rem;
}

.xplore-guide-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #12362d;
}

.xplore-guide-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(18, 54, 45, 0.08);
    color: #12362d;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

    .xplore-guide-close:hover,
    .xplore-guide-close:focus-visible {
        background: rgba(18, 54, 45, 0.14);
    }

.xplore-guide-message {
    margin: 0 0 0.9rem;
    font-size: 0.96rem;
    line-height: 1.45;
    color: #2b3d36;
}

.xplore-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.xplore-guide-action {
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    background: #12362d;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

    .xplore-guide-action:hover,
    .xplore-guide-action:focus-visible {
        background: #1f5b4b;
    }

.xplore-guide-action-secondary {
    background: rgba(18, 54, 45, 0.09);
    color: #12362d;
}

    .xplore-guide-action-secondary:hover,
    .xplore-guide-action-secondary:focus-visible {
        background: rgba(18, 54, 45, 0.15);
    }

.xplore-guide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid rgba(18, 54, 45, 0.1);
    padding-top: 0.75rem;
}

.xplore-guide-link-button {
    border: 0;
    background: transparent;
    color: #1f5b4b;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

    .xplore-guide-link-button:hover,
    .xplore-guide-link-button:focus-visible {
        text-decoration: underline;
    }

.xplore-guide-link-button-muted {
    color: #6f7f78;
}

.xplore-guide-heartbeat {
    animation: xploreGuidePulse 900ms ease-in-out 3, xploreGuideHeartbeat 900ms ease-in-out 3;
}

.xplore-guide-spotlight {
    position: relative;
    z-index: 1400;
    outline: 3px solid rgba(220, 38, 38, 0.95);
    outline-offset: 5px;
    border-radius: 0.75rem;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08), 0 0 8px rgba(220, 38, 38, 0.18);
    animation-name: xploreGuideSpotlightPulse;
    animation-duration: 850ms;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 5;
}

@keyframes xploreGuideSpotlightPulse {
    0% {
        outline-color: rgba(220, 38, 38, 0.12);
        outline-offset: 3px;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), 0 0 0 rgba(220, 38, 38, 0);
    }

    45% {
        outline-color: rgba(220, 38, 38, 1);
        outline-offset: 8px;
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.28), 0 0 26px rgba(220, 38, 38, 0.62), 0 0 44px rgba(220, 38, 38, 0.36);
    }

    100% {
        outline-color: rgba(220, 38, 38, 0.12);
        outline-offset: 3px;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0), 0 0 0 rgba(220, 38, 38, 0);
    }
}

.xplore-guide-spotlight-frame {
    position: fixed;
    z-index: 1450;
    pointer-events: none;
    box-sizing: border-box;
    border: 3px solid rgba(255, 38, 20, 0.98);
    border-radius: 0.85rem;
    box-shadow: 0 0 0 3px rgba(255, 38, 20, 0.16), 0 0 24px rgba(255, 38, 20, 0.5);
    animation-name: xploreGuideSpotlightFramePulse;
    animation-duration: 850ms;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 5;
}

@keyframes xploreGuideSpotlightFramePulse {
    0% {
        border-color: rgba(255, 38, 20, 0.18);
        box-shadow: 0 0 0 0 rgba(255, 38, 20, 0), 0 0 0 rgba(255, 38, 20, 0);
    }

    45% {
        border-color: rgba(255, 38, 20, 1);
        box-shadow: 0 0 0 6px rgba(255, 38, 20, 0.24), 0 0 26px rgba(255, 38, 20, 0.65), 0 0 42px rgba(255, 38, 20, 0.36);
    }

    100% {
        border-color: rgba(255, 38, 20, 0.18);
        box-shadow: 0 0 0 0 rgba(255, 38, 20, 0), 0 0 0 rgba(255, 38, 20, 0);
    }
}

.xplore-guide-heartbeat {
    position: relative;
    z-index: 1500;
    transform-origin: center center;
    will-change: transform;
    animation-name: xploreGuideHeartBeat;
    animation-duration: 720ms;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 5;
}

@keyframes xploreGuideHeartBeat {
    0%, 100% {
        transform: scale(1);
    }

    35% {
        transform: scale(2);
    }

    60% {
        transform: scale(0.92);
    }
}

.xplore-guide-heart-ping {
    position: fixed;
    z-index: 1600;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #e03a4f;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(224, 58, 79, 0.08);
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    animation-name: xploreGuideHeartPing;
    animation-duration: 760ms;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 5;
}

    .xplore-guide-heart-ping i,
    .xplore-guide-heart-ping svg {
        display: block;
        color: #e03a4f;
        font-size: 1.05rem;
        line-height: 1;
    }

@keyframes xploreGuideHeartPing {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(224, 58, 79, 0.08);
    }

    38% {
        transform: translate(-50%, -50%) scale(1.22);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 6px rgba(224, 58, 79, 0.16);
    }

    68% {
        transform: translate(-50%, -50%) scale(0.98);
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(224, 58, 79, 0.06);
    }
}

@media (max-width: 768px) {
    .xplore-guide {
        left: 0.85rem;
        bottom: calc(0.85rem + env(safe-area-inset-bottom));
    }

    .is-explore-page .xplore-guide {
        bottom: calc(4.85rem + env(safe-area-inset-bottom));
    }

    .xplore-guide-button-text {
        display: none;
    }

    .xplore-guide-button {
        padding: 0.48rem;
    }

    .xplore-guide-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }

    .xplore-guide-panel {
        width: min(21rem, calc(100vw - 1.7rem));
        max-height: min(58vh, 28rem);
        overflow: auto;
    }
}

@keyframes xploreGuideHeartbeat {
    0%, 100% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.08);
    }

    65% {
        transform: scale(0.98);
    }
}
