/* Button */
.treasure-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.treasure-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: treasure-pulse 2s infinite;
}

.treasure-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.8);
}

@keyframes treasure-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Overlay */
.treasure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 4000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.treasure-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Modal */
.treasure-modal {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 85vh;
    overflow-y: auto;
    border: 4px solid #FFD700;
}

.treasure-overlay.open .treasure-modal {
    transform: scale(1) translateY(0);
}

.treasure-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.treasure-close:hover {
    color: #333;
}

.treasure-content h2 {
    font-family: 'Georgia', serif;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
    border-bottom: 3px solid #FFD700;
    display: inline-block;
    padding-bottom: 5px;
}

.treasure-content h3 {
    font-size: 18px;
    color: #e67e22;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.treasure-content p {
    line-height: 1.6;
    color: #222;
    margin-bottom: 12px;
    font-size: 16px;
}

.treasure-content ul {
    list-style-type: none;
    padding: 0;
}

.treasure-content li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: #333;
}

.treasure-content li::before {
    content: "•";
    color: #FFD700;
    font-weight: bold;
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -4px;
}

.treasure-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}