/* Nút Update Game */

#game-news-btn {
    position: fixed;
    bottom: 100px;
    /* ngay trên nút back-to-top */
    right: 20px;
    background: linear-gradient(135deg, #ff4757, #e84393);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.7);
    z-index: 1001;
    animation: pulseGlow 2s infinite, floatUpDown 3s ease-in-out infinite;
}

#game-news-btn:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #e84393, #ff4757);
}


/* Overlay */

#game-news-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
}


/* Popup */

#game-news-popup {
    display: none;
    position: fixed;
    bottom: -100%;
    right: 20px;
    width: 300px;
    background: #1e1e2f;
    border: 2px solid #ff4757;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.7);
    color: #fff;
    padding: 20px;
    transition: bottom 0.4s ease;
    z-index: 1002;
    font-family: "Segoe UI", sans-serif;
}

#game-news-popup h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    text-align: center;
    color: #ff6b81;
    text-shadow: 0 0 10px #ff4757;
}

#game-news-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#game-news-popup li {
    margin: 10px 0;
}


/* Link */

#game-news-popup a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: #2d2d44;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

#game-news-popup a:hover {
    background: linear-gradient(135deg, #ff4757, #e84393);
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.8);
}


/* Tag màu */

.tag {
    float: right;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
}

.tag.new {
    background: #27ae60;
    animation: tagGlow 1.5s infinite;
}

.tag.fix {
    background: #3498db;
    animation: tagShake 2s infinite;
}

.tag.update {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #000;
    animation: tagColorShift 3s infinite;
    background-size: 200% 200%;
}

.tag.hot {
    background: #e74c3c;
    animation: tagBounce 1.5s infinite;
}


/* Khi bật */

#game-news-popup.active {
    bottom: 0;
}

#game-news-overlay.active {
    display: block;
}


/* Hiệu ứng list */

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 71, 87, 1);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    }
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes tagGlow {
    0% {
        box-shadow: 0 0 4px #27ae60;
    }
    50% {
        box-shadow: 0 0 12px #2ecc71;
    }
    100% {
        box-shadow: 0 0 4px #27ae60;
    }
}

@keyframes tagShake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(-5deg);
    }
    40% {
        transform: rotate(5deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    80% {
        transform: rotate(5deg);
    }
}

@keyframes tagColorShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes tagBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}