/* =========================================================
   ESTILOS DEL COFRE DEL TESORO Y ANIMACIONES
   ========================================================= */
.treasure-chest-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    text-align: center;
    pointer-events: none;
}

.chest-icon {
    font-size: 80px;
    filter: drop-shadow(0 0 20px #ffd700);
    animation: chest-bounce 0.8s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@keyframes chest-bounce {
    from { transform: scale(1) translateY(0) rotate(-5deg); }
    to { transform: scale(1.2) translateY(-20px) rotate(5deg); }
}

.chest-open {
    animation: chest-shake 0.2s 3, chest-burst 0.5s 0.6s forwards;
}

@keyframes chest-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes chest-burst {
    0% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(3); opacity: 0; filter: brightness(2); }
}
/* =========================================================
   ESTILOS DE MONEDAS Y EFECTO BRILLO
   ========================================================= */
.gold-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    padding: 5px 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.coin-animation {
    animation: coin-pop 0.5s ease-out;
    color: #fff !important;
}

@keyframes coin-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); text-shadow: 0 0 20px #fff; }
    100% { transform: scale(1); }
}

.treasure-chest-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    text-align: center;
    pointer-events: none;
}

.chest-icon {
    font-size: 100px;
    filter: drop-shadow(0 0 30px #ffd700);
}

.chest-open {
    animation: chest-shake 0.2s 3, chest-burst 0.5s 0.6s forwards;
}

@keyframes chest-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes chest-burst {
    0% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(4); opacity: 0; filter: brightness(2); }
}