/* Update announcement popup — bottom-right, dismiss via X only */

.rblx-update-popup {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99990;
    width: min(360px, calc(100vw - 32px));
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(18, 22, 32, 0.97), rgba(10, 12, 18, 0.98));
    border: 1px solid rgba(67, 175, 255, 0.35);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 40px rgba(67, 175, 255, 0.08);
    backdrop-filter: blur(14px);
    color: #e8eef5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rblx-update-popup.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.rblx-update-popup__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(67, 175, 255, 0.15);
}

.rblx-update-popup__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #43afff;
    background: rgba(67, 175, 255, 0.12);
    border: 1px solid rgba(67, 175, 255, 0.25);
    border-radius: 999px;
    padding: 3px 8px;
    margin-bottom: 6px;
}

.rblx-update-popup__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.rblx-update-popup__date {
    margin: 4px 0 0;
    font-size: 11px;
    color: #8fa3b8;
}

.rblx-update-popup__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #aab8c8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rblx-update-popup__close:hover {
    color: #fff;
    background: rgba(67, 175, 255, 0.2);
    border-color: rgba(67, 175, 255, 0.45);
}

.rblx-update-popup__body {
    padding: 12px 14px 14px;
    max-height: min(52vh, 340px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(67, 175, 255, 0.35) transparent;
}

.rblx-update-popup__section {
    margin-bottom: 12px;
}

.rblx-update-popup__section:last-child {
    margin-bottom: 0;
}

.rblx-update-popup__section-title {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #43afff;
}

.rblx-update-popup__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rblx-update-popup__list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 5px;
    color: #c8d4e0;
}

.rblx-update-popup__list li:last-child {
    margin-bottom: 0;
}

.rblx-update-popup__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #43afff;
    box-shadow: 0 0 6px rgba(67, 175, 255, 0.6);
}

.rblx-update-popup__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
}

.rblx-update-popup__bot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: #67e8f9;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.rblx-update-popup__bot:hover {
    color: #fff;
    text-decoration: underline;
}

.rblx-update-popup__telegram {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(67, 175, 255, 0.08);
    border: 1px solid rgba(67, 175, 255, 0.2);
}

.rblx-update-popup__telegram-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.rblx-update-popup__telegram-note {
    margin: 0;
    font-size: 11px;
    color: #8fa3b8;
    font-style: italic;
}

.rblx-update-popup__telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2aabee, #229ed9);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: 0.2s;
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
}

.rblx-update-popup__telegram-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.45);
    filter: brightness(1.05);
}

@media (max-width: 480px) {
    .rblx-update-popup {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }
}
