/* Girland külön réteg: WP admin sáv (99999) és v2 fejléc fölött, de popupok alatt. */
.radiohy-birthday-bunting-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101080;
    pointer-events: none;
    padding-top: env(safe-area-inset-top, 0px);
}

.radiohy-birthday-root {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99990;
    overflow: hidden;
}

.rh-bday-bunting {
    position: relative;
    height: 52px;
    display: flex;
    justify-content: center;
    padding: 6px 8px 0;
    gap: 2px;
    opacity: 0.92;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.rh-bday-flag {
    flex: 1;
    max-width: 28px;
    height: 22px;
    background: var(--rh-flag, #ff1e4d);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
    transform-origin: top center;
    animation: rh-bday-flag-sway 3.5s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.08s);
}

.rh-bday-flag:nth-child(odd) {
    animation-duration: 4.2s;
}

@keyframes rh-bday-flag-sway {
    0%,
    100% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(4deg);
    }
}

.rh-bday-balloons {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rh-bday-balloon {
    position: absolute;
    bottom: -120px;
    left: var(--rh-left, 10%);
    width: 42px;
    height: 52px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), var(--rh-balloon, #ff1e4d) 45%);
    border-radius: 50% 50% 45% 45%;
    animation: rh-bday-balloon-rise 14s ease-in infinite;
    animation-delay: var(--rh-delay, 0s);
    opacity: 0.75;
    box-shadow: inset -4px -6px 12px rgba(0, 0, 0, 0.15);
}

.rh-bday-balloon::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 50%;
    width: 2px;
    height: 28px;
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(-50%);
}

@keyframes rh-bday-balloon-rise {
    0% {
        transform: translateY(0) translateX(0) rotate(-3deg);
        opacity: 0;
    }
    8% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-115vh) translateX(18px) rotate(6deg);
        opacity: 0;
    }
}

.rh-bday-fireworks-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.rh-bday-toast {
    position: fixed;
    top: 58px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    z-index: 101081;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(18, 18, 24, 0.88);
    border: 2px solid rgba(255, 209, 102, 0.85);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 32px rgba(255, 30, 77, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.rh-bday-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 961px) {
    .rh-bday-bunting {
        height: 56px;
        gap: 3px;
    }

    .rh-bday-flag {
        max-width: 32px;
        height: 26px;
    }
}

@media (max-width: 640px) {
    .rh-bday-bunting {
        height: 40px;
    }

    .rh-bday-flag {
        max-width: 18px;
        height: 16px;
    }

    .rh-bday-balloon {
        width: 32px;
        height: 40px;
    }

    .rh-bday-toast {
        font-size: 13px;
        max-width: 92vw;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rh-bday-flag,
    .rh-bday-balloon {
        animation: none;
    }

    .rh-bday-balloon {
        opacity: 0.35;
        bottom: 20%;
    }
}
