.speech-bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.bubble-dot {
    position: absolute;
    border: 0.15cqh solid var(--color-gold);
    border-radius: 50%;
    width: auto;
    height: auto;
    background: #eaddc0;
    box-shadow: 0 0.5cqh 1cqh rgba(0, 0, 0, 0.65), 0 0 1cqh var(--color-gold-glow);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.dot-1 {
    width: 1.2cqh;
    height: 1.2cqh;
    left: 47%;
    top: 35cqh;
}

.dot-2 {
    width: 1.8cqh;
    height: 1.8cqh;
    left: 48.5%;
    top: 31.5cqh;
}

.dot-3 {
    width: 2.4cqh;
    height: 2.4cqh;
    left: 49.5%;
    top: 27.5cqh;
}

.speech-bubble-wrapper {
    position: absolute;
    left: 50%;
    top: 22cqh;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transform-origin: bottom center;
    z-index: 101;
    filter: drop-shadow(0 0 0.25cqh var(--color-gold)) drop-shadow(0 0.4cqh 1.2cqh rgba(0, 0, 0, 0.5));
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
}

.bubble-body {
    position: relative;
    border-radius: 2.5cqh;
    padding: 2cqh 3cqh;
    width: 32cqw;
    max-width: 280px;
    background: linear-gradient(135deg, #eaddc0 0%, #cca977 100%);
    border: 0.25cqh solid var(--color-gold);
    box-shadow: 0 0.8cqh 2.5cqh rgba(0, 0, 0, 0.45), 0 0 1.5cqh var(--color-gold-glow);
    text-align: center;
}

.speech-bubble-text {
    margin: 0;
    font-family: var(--font-speech);
    font-size: 2.4cqh;
    font-weight: 700;
    line-height: 1.4;
    color: #1a0b2e;
    text-shadow: 0 0.05cqh 0.1cqh rgba(255, 255, 255, 0.4);
    transition: opacity 0.25s ease;
}

.speech-bubble-container.active .dot-1 {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.1s;
}

.speech-bubble-container.active .dot-2 {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.25s;
}

.speech-bubble-container.active .dot-3 {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.4s;
}

.speech-bubble-container.active .speech-bubble-wrapper {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.55s;
}

.speech-bubble-container.active .bubble-body {
    animation: bubbleSoftFloat 4s ease-in-out infinite 1.2s;
}

@keyframes bubbleSoftFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.8cqh);
    }
}