.tt-activity-float,
.tt-activity-float * {
    box-sizing: border-box;
}

.tt-activity-float {
    position: fixed;
    top: 62%;
    right: clamp(16px, 2vw, 30px);
    z-index: 99990;
    display: grid;
    width: 310px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 14px 15px;
    overflow: hidden;
    border: 1px solid rgba(240, 185, 11, .7);
    border-radius: 18px;
    background: linear-gradient(135deg, #1d1f24 0%, #08090b 100%);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .3), 0 0 0 1px rgba(240, 185, 11, .1) inset;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    text-decoration: none !important;
    transform: translateY(-50%);
    animation: tt-activity-float 5s ease-in-out infinite, tt-activity-breathe 4s ease-in-out infinite;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

.tt-activity-float:hover,
.tt-activity-float:focus-visible {
    color: #fff;
    border-color: #f8d33a;
    box-shadow: 0 20px 52px rgba(0, 0, 0, .36), 0 0 24px rgba(240, 185, 11, .18);
    text-decoration: none;
}

.tt-activity-float:focus-visible {
    outline: 3px solid rgba(240, 185, 11, .42);
    outline-offset: 3px;
}

.tt-activity-float.is-obscured {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.tt-activity-float__shine {
    position: absolute;
    z-index: -1;
    top: -70%;
    left: -25%;
    width: 38%;
    height: 240%;
    background: linear-gradient(90deg, transparent, rgba(255, 224, 112, .13), transparent);
    transform: rotate(20deg);
    animation: tt-activity-shine 7s ease-in-out infinite;
    pointer-events: none;
}

.tt-activity-float__icon {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .2), transparent 38%), rgba(240, 185, 11, .11);
}

.tt-activity-float__icon img,
.tt-activity-float__icon svg {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.tt-activity-float__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.tt-activity-float__copy strong {
    color: #f0b90b;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .1px;
}

.tt-activity-float__copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.4;
}

.tt-activity-float__button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f0b90b;
    box-shadow: 0 6px 18px rgba(240, 185, 11, .18);
    color: #111;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.tt-activity-float__button b {
    font-size: 15px;
    line-height: 1;
}

@keyframes tt-activity-float {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 7px)); }
}

@keyframes tt-activity-breathe {
    0%, 100% { box-shadow: 0 16px 44px rgba(0, 0, 0, .3), 0 0 0 rgba(240, 185, 11, 0); }
    50% { box-shadow: 0 18px 48px rgba(0, 0, 0, .34), 0 0 24px rgba(240, 185, 11, .17); }
}

@keyframes tt-activity-shine {
    0%, 68%, 100% { left: -35%; opacity: 0; }
    76% { opacity: .85; }
    90% { left: 115%; opacity: 0; }
}

@media (max-width: 767.98px) {
    .tt-activity-float {
        top: auto;
        right: 8px;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        width: min(178px, calc(100vw - 20px));
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
        border-radius: 14px;
        transform: none;
        animation-name: tt-activity-float-mobile, tt-activity-breathe;
    }

    .tt-activity-float__icon {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .tt-activity-float__icon img,
    .tt-activity-float__icon svg {
        width: 38px;
        height: 38px;
    }

    .tt-activity-float__copy strong {
        font-size: 12.5px;
        line-height: 1.25;
    }

    .tt-activity-float__copy small {
        margin-top: 2px;
        font-size: 9.5px;
        line-height: 1.3;
    }

    .tt-activity-float__button {
        min-height: 23px;
        gap: 3px;
        margin-top: 5px;
        padding: 4px 9px;
        font-size: 10px;
    }

    .tt-activity-float__button b {
        font-size: 12px;
    }

    .tt-activity-float.is-avoiding-critical {
        top: calc(72px + env(safe-area-inset-top, 0px));
        bottom: auto;
        animation-name: tt-activity-float-mobile, tt-activity-breathe;
    }
}

@keyframes tt-activity-float-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 359.98px), (max-height: 620px) {
    .tt-activity-float {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        width: 164px;
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 8px;
    }

    .tt-activity-float__icon,
    .tt-activity-float__icon img,
    .tt-activity-float__icon svg {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt-activity-float,
    .tt-activity-float__shine {
        animation: none;
    }
}
