.tree-sticker {
    position: fixed;
    bottom: 80px;
    right: -300px;
    /* Hidden off-screen right */
    z-index: 9999;
    cursor: pointer;
    transition: right 0.3s ease-out, transform 0.3s ease-out;
    width: 150px;
    transform-origin: bottom center;
    /* display: none; Removed to allow transition */
}

.tree-sticker__counter {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

@media (min-width: 768px) {
    .tree-sticker:hover {
        transform: scale(1.1);
        transform-origin: bottom center;
    }
}

.tree-sticker.is-visible {
    right: 0;
}

.tree-sticker__img {
    width: 100%;
    display: block;
    height: auto;
}

/* Lights */
.tree-sticker__lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tree-sticker__light {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.8);
    opacity: 0.4;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Modal */
.tree-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.tree-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-modal__content {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    text-align: justify;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tree-modal__close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 15px;
    cursor: pointer;
}

.tree-modal__close:hover,
.tree-modal__close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .tree-sticker {
        width: 80px;
        right: -300px;
        /* Start off-screen right */
        transform: none;
        bottom: 100px;
    }

    .tree-sticker.is-visible {
        right: 5px;
    }

    .tree-modal.is-open {
        align-items: flex-start;
        padding-top: 80px;
    }
}