.sneklet-helper {
    position: fixed;
    bottom: 80px;   /* clear bottom tab bar on mobile */
    left: 16px;
    display: flex;
    align-items: flex-end;
    z-index: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
    pointer-events: none;
}

.sneklet-helper.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Subtle bob animation while visible */
@keyframes sneklet-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
.sneklet-helper.show img {
    animation: sneklet-bob 3s ease-in-out infinite;
}

.sneklet-helper img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
    transition: transform 0.2s ease;
    cursor: pointer;
}
.sneklet-helper img:hover {
    transform: scale(1.08) rotate(-3deg);
    animation-play-state: paused;
}

.sneklet-helper .speech-bubble {
    position: relative;
    background: var(--glass-bg, rgba(20, 12, 32, 0.88));
    border: 1px solid var(--glass-border, rgba(255, 194, 232, 0.2));
    border-radius: 12px;
    padding: 0.75em 1em;
    margin-left: 0.75em;
    max-width: 220px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-body, 'Space Grotesk', sans-serif);
    font-size: 0.82rem;
    color: var(--text-body, #dbe7f3);
    line-height: 1.45;
    animation: bubble-in 0.3s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

@keyframes bubble-in {
    from { opacity: 0; transform: scale(0.85) translateX(-8px); }
    to   { opacity: 1; transform: scale(1) translateX(0); }
}

/* Arrow pointing left toward the sneklet */
.sneklet-helper .speech-bubble::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 8px 7px 0;
    border-color: transparent var(--glass-border, rgba(255, 194, 232, 0.2)) transparent transparent;
}
/* Second pseudo for solid fill */
.sneklet-helper .speech-bubble::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 7px 6px 0;
    border-color: transparent var(--glass-bg, rgba(20,12,32,0.88)) transparent transparent;
    z-index: 1;
}