
/* ========================================
   Anbox Cosmic Galaxy Dynamic Effects
   ======================================== */

.anbox {
    border: none;
    clear: both;
    margin: 20px 0 0px 0px;
    width: 630px;
    line-height: 20px;
    padding: 0;
    position: relative;
    overflow: visible;
    border-radius: 8px;
    background: transparent;
    animation: anbox-fadeIn 0.8s ease-out;
    transition: box-shadow 0.4s ease;
}

/* Entry fade-in animation */
@keyframes anbox-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hover glow effect */
.anbox:hover {
    box-shadow:
        0 0 25px rgba(138, 43, 226, 0.3),
        0 0 50px rgba(65, 105, 225, 0.2);
}

/* Image container */
.anbox>a {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

/* Image style */
.anbox img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease, filter 0.5s ease;
    position: relative;
    z-index: 1;
}

/* Image hover effect */
.anbox:hover img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* ========== Random Distributed Star Effects ========== */
.anbox::before,
.anbox::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
}

/* Star cluster 1 - Random distribution with varying sizes */
.anbox::before {
    width: 2px;
    height: 2px;
    top: 12%;
    left: 5%;
    background: #fff;
    box-shadow:
        /* Main star glow */
        0 0 4px 1px rgba(255, 255, 255, 0.8),
        /* Large stars - bright */
        120px 25px 0 1px #fff,
        120px 25px 6px 2px rgba(200, 220, 255, 0.8),
        380px 15px 0 1px #fff,
        380px 15px 5px 2px rgba(255, 200, 255, 0.7),
        /* Medium stars */
        45px 48px 0 0 #fff,
        45px 48px 4px 1px rgba(180, 200, 255, 0.6),
        195px 8px 0 0 #fff,
        195px 8px 3px 1px rgba(255, 255, 200, 0.5),
        285px 52px 0 0 #fff,
        285px 52px 4px 1px rgba(200, 255, 255, 0.6),
        470px 38px 0 0 #fff,
        470px 38px 3px 1px rgba(255, 220, 200, 0.5),
        /* Small stars - dense */
        18px 22px 0 -0.5px #fff,
        18px 22px 2px 0 rgba(255, 255, 255, 0.4),
        78px 65px 0 -0.5px #fff,
        78px 65px 2px 0 rgba(200, 200, 255, 0.4),
        155px 58px 0 -1px #fff,
        155px 58px 2px 0 rgba(255, 200, 255, 0.3),
        230px 28px 0 -0.5px #fff,
        230px 28px 2px 0 rgba(200, 255, 255, 0.4),
        320px 5px 0 -1px #fff,
        320px 5px 2px 0 rgba(255, 255, 200, 0.3),
        355px 68px 0 -0.5px #fff,
        355px 68px 2px 0 rgba(255, 200, 200, 0.4),
        430px 12px 0 -1px #fff,
        430px 12px 2px 0 rgba(200, 255, 200, 0.3),
        510px 55px 0 -0.5px #fff,
        510px 55px 2px 0 rgba(255, 255, 255, 0.4),
        560px 22px 0 -1px #fff,
        560px 22px 2px 0 rgba(220, 200, 255, 0.3),
        /* Tiny stars - decoration */
        8px 75px 0 -1px #fff,
        62px 12px 0 -1px #fff,
        108px 72px 0 -1px #fff,
        178px 42px 0 -1px #fff,
        265px 18px 0 -1px #fff,
        305px 78px 0 -1px #fff,
        398px 48px 0 -1px #fff,
        445px 8px 0 -1px #fff,
        525px 72px 0 -1px #fff,
        590px 35px 0 -1px #fff,
        610px 62px 0 -1px #fff;
    animation: star-twinkle-1 3s ease-in-out infinite;
}

/* Star cluster 2 - Second layer random distribution */
.anbox::after {
    width: 2px;
    height: 2px;
    bottom: 15%;
    right: 8%;
    background: #fff;
    box-shadow:
        /* Main star glow */
        0 0 5px 2px rgba(255, 255, 255, 0.9),
        /* Large stars */
        -180px -20px 0 1px #fff,
        -180px -20px 6px 2px rgba(255, 220, 255, 0.8),
        -450px 8px 0 1px #fff,
        -450px 8px 5px 2px rgba(200, 200, 255, 0.7),
        /* Medium stars */
        -58px -45px 0 0 #fff,
        -58px -45px 4px 1px rgba(200, 255, 220, 0.6),
        -135px 15px 0 0 #fff,
        -135px 15px 3px 1px rgba(255, 200, 200, 0.5),
        -280px -35px 0 0 #fff,
        -280px -35px 4px 1px rgba(220, 220, 255, 0.6),
        -380px -55px 0 0 #fff,
        -380px -55px 3px 1px rgba(200, 255, 255, 0.5),
        -520px -25px 0 0 #fff,
        -520px -25px 4px 1px rgba(255, 255, 200, 0.6),
        /* Small stars */
        -25px -68px 0 -0.5px #fff,
        -25px -68px 2px 0 rgba(255, 255, 255, 0.4),
        -95px -8px 0 -0.5px #fff,
        -95px -8px 2px 0 rgba(200, 220, 255, 0.4),
        -165px 32px 0 -1px #fff,
        -165px 32px 2px 0 rgba(255, 200, 220, 0.3),
        -215px -58px 0 -0.5px #fff,
        -215px -58px 2px 0 rgba(220, 255, 220, 0.4),
        -335px 18px 0 -1px #fff,
        -335px 18px 2px 0 rgba(255, 220, 255, 0.3),
        -405px -42px 0 -0.5px #fff,
        -405px -42px 2px 0 rgba(200, 200, 255, 0.4),
        -485px 28px 0 -1px #fff,
        -485px 28px 2px 0 rgba(255, 255, 200, 0.3),
        -555px -48px 0 -0.5px #fff,
        -555px -48px 2px 0 rgba(200, 255, 255, 0.4),
        /* Tiny stars */
        -12px 5px 0 -1px #fff,
        -72px -52px 0 -1px #fff,
        -118px -72px 0 -1px #fff,
        -198px 8px 0 -1px #fff,
        -248px -15px 0 -1px #fff,
        -315px -68px 0 -1px #fff,
        -365px 32px 0 -1px #fff,
        -428px 5px 0 -1px #fff,
        -502px -62px 0 -1px #fff,
        -568px 12px 0 -1px #fff,
        -598px -38px 0 -1px #fff;
    animation: star-twinkle-2 2.8s ease-in-out infinite 0.5s;
}

/* Star twinkle animation 1 */
@keyframes star-twinkle-1 {

    0%,
    100% {
        opacity: 1;
    }

    25% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.85;
    }

    75% {
        opacity: 0.35;
    }
}

/* Star twinkle animation 2 - different rhythm */
@keyframes star-twinkle-2 {

    0%,
    100% {
        opacity: 0.9;
    }

    20% {
        opacity: 0.4;
    }

    40% {
        opacity: 1;
    }

    60% {
        opacity: 0.3;
    }

    80% {
        opacity: 0.75;
    }
}

/* ========== Meteor Effect ========== */
.anbox>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.8),
            #fff);
    border-radius: 2px;
    z-index: 5;
    opacity: 0;
    animation: meteor 6s ease-in-out infinite;
    box-shadow:
        0 0 10px 2px rgba(255, 255, 255, 0.5),
        0 0 20px 4px rgba(150, 150, 255, 0.3);
    transform: rotate(35deg);
    pointer-events: none;
}

/* Meteor animation */
@keyframes meteor {

    0%,
    100% {
        left: -150px;
        top: -20px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20% {
        left: 120%;
        top: 80%;
        opacity: 0;
    }

    21%,
    100% {
        opacity: 0;
        left: -150px;
        top: -20px;
    }
}

/* ========== Nebula Glow Overlay ========== */
.anbox>a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%,
            rgba(138, 43, 226, 0.15) 0%,
            transparent 50%),
        radial-gradient(ellipse at 70% 80%,
            rgba(65, 105, 225, 0.12) 0%,
            transparent 50%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Show nebula glow on hover */
.anbox:hover>a::after {
    opacity: 1;
}

.pointer {
    cursor: pointer;
}

.gg_tip {
    z-index: 2;
    font-size: 12px;
    position: absolute !important;
    display: inline-block;
    padding: 3px 5px;
    line-height: 12px;
    background: rgb(0 0 0 / 12%);
    color: #fff;
    transform: scale(0.85);
    right: -1.5px;
    top: -1.5px;
}