/* GoFrag - Пасхальные рыбки v1.0.0 */

/* === Общие стили === */
.gf-ef {
    position: absolute;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
}

.gf-ef svg {
    display: block;
}

/* Анимация сбора (общая) */
.gf-ef-collecting {
    pointer-events: none;
    animation: gf-ef-collect 0.6s ease-out forwards;
}

@keyframes gf-ef-collect {
    0% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 20px rgba(59,130,246,0.8)); }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

/* === ТИП A: Рыбка выглядывает === */
.gf-ef-peek {
    right: -6px;
    top: 50%;
    margin-top: -10px;
    filter: drop-shadow(0 0 6px rgba(59,130,246,0.3));
    transition: right 0.3s ease, filter 0.3s ease;
}

.gf-ef-peek:hover {
    right: 6px;
    filter: drop-shadow(0 0 14px rgba(59,130,246,0.7));
}

.gf-ef-peek svg {
    transition: transform 0.2s ease;
}

.gf-ef-peek:hover svg {
    transform: scale(1.15);
}

/* === ТИП B: Светящаяся искорка === */
.gf-ef-sparkle {
    width: 28px;
    height: 28px;
    right: 15%;
    bottom: 20px;
}

.gf-ef-sparkle-glow {
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: gf-ef-sparkle-glow 2s ease-in-out infinite;
}

.gf-ef-sparkle-dot {
    position: absolute;
    inset: 4px;
    background: radial-gradient(circle, #3b82f6 20%, rgba(59,130,246,0.6) 60%, transparent 100%);
    border-radius: 50%;
    animation: gf-ef-sparkle-pulse 1.5s ease-in-out infinite;
}

.gf-ef-sparkle-reveal {
    position: absolute;
    inset: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.gf-ef-sparkle:hover .gf-ef-sparkle-reveal {
    opacity: 1;
    transform: scale(1);
}

.gf-ef-sparkle:hover .gf-ef-sparkle-dot,
.gf-ef-sparkle:hover .gf-ef-sparkle-glow {
    opacity: 0;
}

@keyframes gf-ef-sparkle-glow {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes gf-ef-sparkle-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* === ТИП D: Пузырь с рыбкой === */
.gf-ef-bubble {
    width: 44px;
    height: 44px;
    left: 12%;
    top: 30%;
    animation: gf-ef-bubble-float 4s ease-in-out infinite;
}

.gf-ef-bubble-circle {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(59,130,246,0.25);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.12), rgba(59,130,246,0.02));
    box-shadow: inset 0 0 10px rgba(59,130,246,0.08);
    transition: all 0.3s ease;
}

.gf-ef-bubble-shine {
    position: absolute;
    top: 7px;
    left: 11px;
    width: 8px;
    height: 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.gf-ef-bubble-fish {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gf-ef-bubble:hover .gf-ef-bubble-circle {
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 0 16px rgba(59,130,246,0.2), inset 0 0 10px rgba(59,130,246,0.12);
}

@keyframes gf-ef-bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* === Летящие +20 === */
.gf-ef-points-fly {
    position: fixed;
    z-index: 100000;
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59,130,246,0.5), 0 2px 4px rgba(0,0,0,0.7);
    pointer-events: none;
    transform: translate(-50%, 0);
    animation: gf-ef-float-up 1.5s ease-out forwards;
    white-space: nowrap;
}

@keyframes gf-ef-float-up {
    0% { opacity: 1; transform: translate(-50%, 0) scale(0.6); }
    20% { opacity: 1; transform: translate(-50%, -8px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -60px) scale(1); }
}

/* === Частицы === */
.gf-ef-particle {
    position: fixed;
    z-index: 100000;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    animation: gf-ef-particle-burst 0.6s ease-out forwards;
}

@keyframes gf-ef-particle-burst {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* === Тост === */
.gf-ef-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1c1c24;
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 16px rgba(59,130,246,0.08);
    z-index: 100001;
    transform: translateX(calc(100% + 30px));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Nunito', sans-serif;
}

.gf-ef-toast-show {
    transform: translateX(0);
}

.gf-ef-toast-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.gf-ef-toast-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gf-ef-toast-title {
    color: #3b82f6;
    font-weight: 700;
    font-size: 15px;
}

.gf-ef-toast-sub {
    color: #888;
    font-size: 13px;
}

.gf-ef-toast-pips {
    display: flex;
    gap: 5px;
    margin-top: 4px;
}

.gf-ef-toast-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s ease;
}

.gf-ef-pip-found {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59,130,246,0.5);
}

/* === Мобилка === */
@media (max-width: 768px) {
    .gf-ef-toast {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: 16px;
        transform: translateY(calc(100% + 30px));
    }

    .gf-ef-toast-show {
        transform: translateY(0);
    }

    .gf-ef-peek {
        right: -4px;
    }

    .gf-ef-bubble {
        width: 40px;
        height: 40px;
    }
}
